1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA_FLAGS 637 SJAVAC_SERVER_JAVA 638 JAVA_TOOL_FLAGS_SMALL 639 JAVA_FLAGS_SMALL 640 JAVA_FLAGS_BIG 641 JAVA_FLAGS 642 JOBS 643 MEMORY_SIZE 644 NUM_CORES 645 ENABLE_INTREE_EC 646 SALIB_NAME 647 HOTSPOT_MAKE_ARGS 648 MSVCR_DLL 649 LIBCXX 650 LLVM_LIBS 651 LLVM_LDFLAGS 652 LLVM_CFLAGS 653 LLVM_CONFIG 654 LIBFFI_LIBS 655 LIBFFI_CFLAGS 656 STATIC_CXX_SETTING 657 LIBDL 658 LIBM 659 LIBZIP_CAN_USE_MMAP 660 USE_EXTERNAL_LIBZ 661 USE_EXTERNAL_LIBPNG 662 PNG_LIBS 663 PNG_CFLAGS 664 USE_EXTERNAL_LCMS 665 LCMS_LIBS 666 LCMS_CFLAGS 667 USE_EXTERNAL_LIBGIF 668 USE_EXTERNAL_LIBJPEG 669 ALSA_LIBS 670 ALSA_CFLAGS 671 FREETYPE_BUNDLE_LIB_PATH 672 FREETYPE_LIBS 673 FREETYPE_CFLAGS 674 CUPS_CFLAGS 675 X_EXTRA_LIBS 676 X_LIBS 677 X_PRE_LIBS 678 X_CFLAGS 679 XMKMF 680 FIXPATH 681 ZIP_DEBUGINFO_FILES 682 ENABLE_DEBUG_SYMBOLS 683 CFLAGS_WARNINGS_ARE_ERRORS 684 COMPILER_SUPPORTS_TARGET_BITS_FLAG 685 ZERO_ARCHFLAG 686 LDFLAGS_CXX_JDK 687 LDFLAGS_JDKEXE_SUFFIX 688 LDFLAGS_JDKLIB_SUFFIX 689 LDFLAGS_JDKEXE 690 LDFLAGS_JDKLIB 691 CXXFLAGS_JDKEXE 692 CXXFLAGS_JDKLIB 693 CFLAGS_JDKEXE 694 CFLAGS_JDKLIB 695 MACOSX_VERSION_MIN 696 LEGACY_EXTRA_LDFLAGS 697 LEGACY_EXTRA_CXXFLAGS 698 LEGACY_EXTRA_CFLAGS 699 CXX_O_FLAG_NONE 700 CXX_O_FLAG_DEBUG 701 CXX_O_FLAG_NORM 702 CXX_O_FLAG_HI 703 CXX_O_FLAG_HIGHEST 704 C_O_FLAG_NONE 705 C_O_FLAG_DEBUG 706 C_O_FLAG_NORM 707 C_O_FLAG_HI 708 C_O_FLAG_HIGHEST 709 CXXFLAGS_DEBUG_OPTIONS 710 CFLAGS_DEBUG_OPTIONS 711 CXXFLAGS_DEBUG_SYMBOLS 712 CFLAGS_DEBUG_SYMBOLS 713 CXX_FLAG_DEPS 714 C_FLAG_DEPS 715 SET_SHARED_LIBRARY_MAPFILE 716 SET_SHARED_LIBRARY_NAME 717 SET_SHARED_LIBRARY_ORIGIN 718 SET_EXECUTABLE_ORIGIN 719 SHARED_LIBRARY_FLAGS 720 CXX_FLAG_REORDER 721 C_FLAG_REORDER 722 SYSROOT_LDFLAGS 723 SYSROOT_CFLAGS 724 RC_FLAGS 725 AR_OUT_OPTION 726 LD_OUT_OPTION 727 EXE_OUT_OPTION 728 CC_OUT_OPTION 729 POST_MCS_CMD 730 POST_STRIP_CMD 731 ARFLAGS 732 COMPILER_TARGET_BITS_FLAG 733 JT_HOME 734 JTREGEXE 735 USING_BROKEN_SUSE_LD 736 PACKAGE_PATH 737 LDEXECXX 738 LDEXE 739 USE_CLANG 740 HOTSPOT_LD 741 HOTSPOT_CXX 742 HOTSPOT_RC 743 HOTSPOT_MT 744 BUILD_LD 745 BUILD_CXX 746 BUILD_CC 747 ac_ct_OBJDUMP 748 OBJDUMP 749 ac_ct_OBJCOPY 750 OBJCOPY 751 ac_ct_NM 752 ac_ct_STRIP 753 MCS 754 GNM 755 NM 756 STRIP 757 MSBUILD 758 DUMPBIN 759 RC 760 MT 761 LIPO 762 ac_ct_OBJC 763 OBJCFLAGS 764 OBJC 765 ac_ct_AR 766 AR 767 AS 768 LDCXX 769 LD 770 CXXCPP 771 CPP 772 ac_ct_CXX 773 CXXFLAGS 774 CXX 775 ac_ct_PROPER_COMPILER_CXX 776 PROPER_COMPILER_CXX 777 TOOLCHAIN_PATH_CXX 778 POTENTIAL_CXX 779 OBJEXT 780 EXEEXT 781 ac_ct_CC 782 CPPFLAGS 783 LDFLAGS 784 CFLAGS 785 CC 786 ac_ct_PROPER_COMPILER_CC 787 PROPER_COMPILER_CC 788 TOOLCHAIN_PATH_CC 789 POTENTIAL_CC 790 VS_LIB 791 VS_INCLUDE 792 VS_PATH 793 CYGWIN_LINK 794 EXE_SUFFIX 795 OBJ_SUFFIX 796 STATIC_LIBRARY 797 SHARED_LIBRARY 798 STATIC_LIBRARY_SUFFIX 799 SHARED_LIBRARY_SUFFIX 800 LIBRARY_PREFIX 801 TOOLCHAIN_TYPE 802 BUILD_HOTSPOT 803 HOTSPOT_DIST 804 BUILD_OUTPUT 805 USE_NEW_HOTSPOT_BUILD 806 OVERRIDE_SRC_ROOT 807 ADD_SRC_ROOT 808 JDK_TOPDIR 809 NASHORN_TOPDIR 810 HOTSPOT_TOPDIR 811 JAXWS_TOPDIR 812 JAXP_TOPDIR 813 CORBA_TOPDIR 814 LANGTOOLS_TOPDIR 815 JAVAC_FLAGS 816 BOOT_JDK_SOURCETARGET 817 JARSIGNER 818 NATIVE2ASCII 819 JAR 820 JAVAH 821 JAVAC 822 JAVA 823 BOOT_JDK 824 JAVA_CHECK 825 JAVAC_CHECK 826 COOKED_BUILD_NUMBER 827 JDK_VERSION 828 COPYRIGHT_YEAR 829 MACOSX_BUNDLE_ID_BASE 830 MACOSX_BUNDLE_NAME_BASE 831 COMPANY_NAME 832 JDK_RC_PLATFORM_NAME 833 PRODUCT_SUFFIX 834 PRODUCT_NAME 835 LAUNCHER_NAME 836 MILESTONE 837 JDK_BUILD_NUMBER 838 JDK_UPDATE_VERSION 839 JDK_MICRO_VERSION 840 JDK_MINOR_VERSION 841 JDK_MAJOR_VERSION 842 USER_RELEASE_SUFFIX 843 COMPRESS_JARS 844 RMICONNECTOR_IIOP 845 UNLIMITED_CRYPTO 846 CACERTS_FILE 847 TEST_IN_BUILD 848 BUILD_HEADLESS 849 SUPPORT_HEADFUL 850 SUPPORT_HEADLESS 851 BDEPS_FTP 852 BDEPS_UNZIP 853 OS_VERSION_MICRO 854 OS_VERSION_MINOR 855 OS_VERSION_MAJOR 856 PKG_CONFIG 857 CODESIGN 858 XATTR 859 DSYMUTIL 860 IS_GNU_TIME 861 TIME 862 STAT 863 HG 864 READELF 865 OTOOL 866 LDD 867 ZIP 868 UNZIP 869 FIND_DELETE 870 OUTPUT_SYNC 871 OUTPUT_SYNC_SUPPORTED 872 MAKE 873 CHECK_TOOLSDIR_MAKE 874 CHECK_TOOLSDIR_GMAKE 875 CHECK_MAKE 876 CHECK_GMAKE 877 PKGHANDLER 878 OUTPUT_ROOT 879 CONF_NAME 880 SPEC 881 SYSROOT 882 SDKROOT 883 XCODEBUILD 884 BUILD_VARIANT_RELEASE 885 DEBUG_CLASSFILES 886 FASTDEBUG 887 VARIANT 888 DEBUG_LEVEL 889 MACOSX_UNIVERSAL 890 INCLUDE_SA 891 JVM_VARIANT_CORE 892 JVM_VARIANT_ZEROSHARK 893 JVM_VARIANT_ZERO 894 JVM_VARIANT_KERNEL 895 JVM_VARIANT_MINIMAL1 896 JVM_VARIANT_CLIENT 897 JVM_VARIANT_SERVER 898 JVM_VARIANTS 899 JVM_INTERPRETER 900 JDK_VARIANT 901 SET_OPENJDK 902 BUILD_LOG_WRAPPER 903 BUILD_LOG_PREVIOUS 904 BUILD_LOG 905 TOPDIR 906 PATH_SEP 907 ZERO_ARCHDEF 908 DEFINE_CROSS_COMPILE_ARCH 909 LP64 910 OPENJDK_TARGET_OS_EXPORT_DIR 911 OPENJDK_TARGET_CPU_JLI_CFLAGS 912 OPENJDK_TARGET_CPU_OSARCH 913 OPENJDK_TARGET_CPU_ISADIR 914 OPENJDK_TARGET_CPU_LIBDIR 915 OPENJDK_TARGET_CPU_LEGACY_LIB 916 OPENJDK_TARGET_CPU_LEGACY 917 REQUIRED_OS_VERSION 918 REQUIRED_OS_NAME 919 COMPILE_TYPE 920 OPENJDK_TARGET_CPU_ENDIAN 921 OPENJDK_TARGET_CPU_BITS 922 OPENJDK_TARGET_CPU_ARCH 923 OPENJDK_TARGET_CPU 924 OPENJDK_TARGET_OS_ENV 925 OPENJDK_TARGET_OS_TYPE 926 OPENJDK_TARGET_OS 927 OPENJDK_BUILD_CPU_ENDIAN 928 OPENJDK_BUILD_CPU_BITS 929 OPENJDK_BUILD_CPU_ARCH 930 OPENJDK_BUILD_CPU 931 OPENJDK_BUILD_OS_ENV 932 OPENJDK_BUILD_OS_TYPE 933 OPENJDK_BUILD_OS 934 OPENJDK_BUILD_AUTOCONF_NAME 935 OPENJDK_TARGET_AUTOCONF_NAME 936 target_os 937 target_vendor 938 target_cpu 939 target 940 host_os 941 host_vendor 942 host_cpu 943 host 944 build_os 945 build_vendor 946 build_cpu 947 build 948 CPIO 949 SETFILE 950 DF 951 READLINK 952 CYGPATH 953 SED 954 FGREP 955 EGREP 956 GREP 957 AWK 958 XARGS 959 WHICH 960 WC 961 UNIQ 962 UNAME 963 TR 964 TOUCH 965 TEE 966 TAR 967 TAIL 968 SORT 969 SH 970 RM 971 PRINTF 972 NAWK 973 MV 974 MKTEMP 975 MKDIR 976 LS 977 LN 978 HEAD 979 FIND 980 FILE 981 EXPR 982 ECHO 983 DIRNAME 984 DIFF 985 DATE 986 CUT 987 CP 988 COMM 989 CMP 990 CHMOD 991 CAT 992 BASH 993 BASENAME 994 DATE_WHEN_CONFIGURED 995 CONFIGURE_COMMAND_LINE 996 target_alias 997 host_alias 998 build_alias 999 LIBS 1000 ECHO_T 1001 ECHO_N 1002 ECHO_C 1003 DEFS 1004 mandir 1005 localedir 1006 libdir 1007 psdir 1008 pdfdir 1009 dvidir 1010 htmldir 1011 infodir 1012 docdir 1013 oldincludedir 1014 includedir 1015 localstatedir 1016 sharedstatedir 1017 sysconfdir 1018 datadir 1019 datarootdir 1020 libexecdir 1021 sbindir 1022 bindir 1023 program_transform_name 1024 prefix 1025 exec_prefix 1026 PACKAGE_URL 1027 PACKAGE_BUGREPORT 1028 PACKAGE_STRING 1029 PACKAGE_VERSION 1030 PACKAGE_TARNAME 1031 PACKAGE_NAME 1032 PATH_SEPARATOR 1033 SHELL' 1034 ac_subst_files='' 1035 ac_user_opts=' 1036 enable_option_checking 1037 with_target_bits 1038 enable_openjdk_only 1039 with_custom_make_dir 1040 with_jdk_variant 1041 with_jvm_interpreter 1042 with_jvm_variants 1043 enable_debug 1044 with_debug_level 1045 with_devkit 1046 with_sys_root 1047 with_sysroot 1048 with_tools_dir 1049 with_toolchain_path 1050 with_extra_path 1051 with_sdk_name 1052 with_conf_name 1053 with_output_sync 1054 with_builddeps_conf 1055 with_builddeps_server 1056 with_builddeps_dir 1057 with_builddeps_group 1058 enable_headful 1059 enable_hotspot_test_in_build 1060 with_cacerts_file 1061 enable_unlimited_crypto 1062 enable_rmiconnector_iiop 1063 with_milestone 1064 with_update_version 1065 with_user_release_suffix 1066 with_build_number 1067 with_copyright_year 1068 with_boot_jdk 1069 with_add_source_root 1070 with_override_source_root 1071 with_adds_and_overrides 1072 with_override_langtools 1073 with_override_corba 1074 with_override_jaxp 1075 with_override_jaxws 1076 with_override_hotspot 1077 with_override_nashorn 1078 with_override_jdk 1079 enable_new_hotspot_build 1080 with_import_hotspot 1081 with_toolchain_type 1082 with_jtreg 1083 with_extra_cflags 1084 with_extra_cxxflags 1085 with_extra_ldflags 1086 enable_debug_symbols 1087 enable_zip_debug_info 1088 with_x 1089 with_cups 1090 with_cups_include 1091 with_freetype 1092 with_freetype_include 1093 with_freetype_lib 1094 with_freetype_src 1095 enable_freetype_bundling 1096 with_alsa 1097 with_alsa_include 1098 with_alsa_lib 1099 with_libjpeg 1100 with_giflib 1101 with_lcms 1102 with_libpng 1103 with_zlib 1104 with_stdc__lib 1105 with_msvcr_dll 1106 with_dxsdk 1107 with_dxsdk_lib 1108 with_dxsdk_include 1109 with_num_cores 1110 with_memory_size 1111 with_jobs 1112 with_boot_jdk_jvmargs 1113 with_sjavac_server_java 1114 enable_sjavac 1115 enable_precompiled_headers 1116 enable_ccache 1117 with_ccache_dir 1118 ' 1119 ac_precious_vars='build_alias 1120 host_alias 1121 target_alias 1122 BASENAME 1123 BASH 1124 CAT 1125 CHMOD 1126 CMP 1127 COMM 1128 CP 1129 CUT 1130 DATE 1131 DIFF 1132 DIRNAME 1133 ECHO 1134 EXPR 1135 FILE 1136 FIND 1137 HEAD 1138 LN 1139 LS 1140 MKDIR 1141 MKTEMP 1142 MV 1143 NAWK 1144 PRINTF 1145 RM 1146 SH 1147 SORT 1148 TAIL 1149 TAR 1150 TEE 1151 TOUCH 1152 TR 1153 UNAME 1154 UNIQ 1155 WC 1156 WHICH 1157 XARGS 1158 AWK 1159 GREP 1160 EGREP 1161 FGREP 1162 SED 1163 CYGPATH 1164 READLINK 1165 DF 1166 SETFILE 1167 CPIO 1168 UNZIP 1169 ZIP 1170 LDD 1171 OTOOL 1172 READELF 1173 HG 1174 STAT 1175 TIME 1176 DSYMUTIL 1177 XATTR 1178 CODESIGN 1179 PKG_CONFIG 1180 JAVA 1181 JAVAC 1182 JAVAH 1183 JAR 1184 NATIVE2ASCII 1185 JARSIGNER 1186 CC 1187 CFLAGS 1188 LDFLAGS 1189 LIBS 1190 CPPFLAGS 1191 CXX 1192 CXXFLAGS 1193 CCC 1194 CPP 1195 CXXCPP 1196 AS 1197 AR 1198 OBJC 1199 OBJCFLAGS 1200 LIPO 1201 STRIP 1202 NM 1203 GNM 1204 MCS 1205 OBJCOPY 1206 OBJDUMP 1207 BUILD_CC 1208 BUILD_CXX 1209 BUILD_LD 1210 JTREGEXE 1211 XMKMF 1212 FREETYPE_CFLAGS 1213 FREETYPE_LIBS 1214 ALSA_CFLAGS 1215 ALSA_LIBS 1216 LCMS_CFLAGS 1217 LCMS_LIBS 1218 PNG_CFLAGS 1219 PNG_LIBS 1220 LIBFFI_CFLAGS 1221 LIBFFI_LIBS 1222 CCACHE' 1223 1224 1225 # Initialize some variables set by options. 1226 ac_init_help= 1227 ac_init_version=false 1228 ac_unrecognized_opts= 1229 ac_unrecognized_sep= 1230 # The variables have the same names as the options, with 1231 # dashes changed to underlines. 1232 cache_file=/dev/null 1233 exec_prefix=NONE 1234 no_create= 1235 no_recursion= 1236 prefix=NONE 1237 program_prefix=NONE 1238 program_suffix=NONE 1239 program_transform_name=s,x,x, 1240 silent= 1241 site= 1242 srcdir= 1243 verbose= 1244 x_includes=NONE 1245 x_libraries=NONE 1246 1247 # Installation directory options. 1248 # These are left unexpanded so users can "make install exec_prefix=/foo" 1249 # and all the variables that are supposed to be based on exec_prefix 1250 # by default will actually change. 1251 # Use braces instead of parens because sh, perl, etc. also accept them. 1252 # (The list follows the same order as the GNU Coding Standards.) 1253 bindir='${exec_prefix}/bin' 1254 sbindir='${exec_prefix}/sbin' 1255 libexecdir='${exec_prefix}/libexec' 1256 datarootdir='${prefix}/share' 1257 datadir='${datarootdir}' 1258 sysconfdir='${prefix}/etc' 1259 sharedstatedir='${prefix}/com' 1260 localstatedir='${prefix}/var' 1261 includedir='${prefix}/include' 1262 oldincludedir='/usr/include' 1263 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1264 infodir='${datarootdir}/info' 1265 htmldir='${docdir}' 1266 dvidir='${docdir}' 1267 pdfdir='${docdir}' 1268 psdir='${docdir}' 1269 libdir='${exec_prefix}/lib' 1270 localedir='${datarootdir}/locale' 1271 mandir='${datarootdir}/man' 1272 1273 ac_prev= 1274 ac_dashdash= 1275 for ac_option 1276 do 1277 # If the previous option needs an argument, assign it. 1278 if test -n "$ac_prev"; then 1279 eval $ac_prev=\$ac_option 1280 ac_prev= 1281 continue 1282 fi 1283 1284 case $ac_option in 1285 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1286 *=) ac_optarg= ;; 1287 *) ac_optarg=yes ;; 1288 esac 1289 1290 # Accept the important Cygnus configure options, so we can diagnose typos. 1291 1292 case $ac_dashdash$ac_option in 1293 --) 1294 ac_dashdash=yes ;; 1295 1296 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1297 ac_prev=bindir ;; 1298 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1299 bindir=$ac_optarg ;; 1300 1301 -build | --build | --buil | --bui | --bu) 1302 ac_prev=build_alias ;; 1303 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1304 build_alias=$ac_optarg ;; 1305 1306 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1307 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1308 ac_prev=cache_file ;; 1309 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1310 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1311 cache_file=$ac_optarg ;; 1312 1313 --config-cache | -C) 1314 cache_file=config.cache ;; 1315 1316 -datadir | --datadir | --datadi | --datad) 1317 ac_prev=datadir ;; 1318 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1319 datadir=$ac_optarg ;; 1320 1321 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1322 | --dataroo | --dataro | --datar) 1323 ac_prev=datarootdir ;; 1324 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1325 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1326 datarootdir=$ac_optarg ;; 1327 1328 -disable-* | --disable-*) 1329 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1330 # Reject names that are not valid shell variable names. 1331 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1332 as_fn_error $? "invalid feature name: $ac_useropt" 1333 ac_useropt_orig=$ac_useropt 1334 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1335 case $ac_user_opts in 1336 *" 1337 "enable_$ac_useropt" 1338 "*) ;; 1339 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1340 ac_unrecognized_sep=', ';; 1341 esac 1342 eval enable_$ac_useropt=no ;; 1343 1344 -docdir | --docdir | --docdi | --doc | --do) 1345 ac_prev=docdir ;; 1346 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1347 docdir=$ac_optarg ;; 1348 1349 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1350 ac_prev=dvidir ;; 1351 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1352 dvidir=$ac_optarg ;; 1353 1354 -enable-* | --enable-*) 1355 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1356 # Reject names that are not valid shell variable names. 1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1358 as_fn_error $? "invalid feature name: $ac_useropt" 1359 ac_useropt_orig=$ac_useropt 1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1361 case $ac_user_opts in 1362 *" 1363 "enable_$ac_useropt" 1364 "*) ;; 1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1366 ac_unrecognized_sep=', ';; 1367 esac 1368 eval enable_$ac_useropt=\$ac_optarg ;; 1369 1370 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1371 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1372 | --exec | --exe | --ex) 1373 ac_prev=exec_prefix ;; 1374 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1375 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1376 | --exec=* | --exe=* | --ex=*) 1377 exec_prefix=$ac_optarg ;; 1378 1379 -gas | --gas | --ga | --g) 1380 # Obsolete; use --with-gas. 1381 with_gas=yes ;; 1382 1383 -help | --help | --hel | --he | -h) 1384 ac_init_help=long ;; 1385 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1386 ac_init_help=recursive ;; 1387 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1388 ac_init_help=short ;; 1389 1390 -host | --host | --hos | --ho) 1391 ac_prev=host_alias ;; 1392 -host=* | --host=* | --hos=* | --ho=*) 1393 host_alias=$ac_optarg ;; 1394 1395 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1396 ac_prev=htmldir ;; 1397 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1398 | --ht=*) 1399 htmldir=$ac_optarg ;; 1400 1401 -includedir | --includedir | --includedi | --included | --include \ 1402 | --includ | --inclu | --incl | --inc) 1403 ac_prev=includedir ;; 1404 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1405 | --includ=* | --inclu=* | --incl=* | --inc=*) 1406 includedir=$ac_optarg ;; 1407 1408 -infodir | --infodir | --infodi | --infod | --info | --inf) 1409 ac_prev=infodir ;; 1410 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1411 infodir=$ac_optarg ;; 1412 1413 -libdir | --libdir | --libdi | --libd) 1414 ac_prev=libdir ;; 1415 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1416 libdir=$ac_optarg ;; 1417 1418 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1419 | --libexe | --libex | --libe) 1420 ac_prev=libexecdir ;; 1421 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1422 | --libexe=* | --libex=* | --libe=*) 1423 libexecdir=$ac_optarg ;; 1424 1425 -localedir | --localedir | --localedi | --localed | --locale) 1426 ac_prev=localedir ;; 1427 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1428 localedir=$ac_optarg ;; 1429 1430 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1431 | --localstate | --localstat | --localsta | --localst | --locals) 1432 ac_prev=localstatedir ;; 1433 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1434 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1435 localstatedir=$ac_optarg ;; 1436 1437 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1438 ac_prev=mandir ;; 1439 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1440 mandir=$ac_optarg ;; 1441 1442 -nfp | --nfp | --nf) 1443 # Obsolete; use --without-fp. 1444 with_fp=no ;; 1445 1446 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1447 | --no-cr | --no-c | -n) 1448 no_create=yes ;; 1449 1450 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1451 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1452 no_recursion=yes ;; 1453 1454 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1455 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1456 | --oldin | --oldi | --old | --ol | --o) 1457 ac_prev=oldincludedir ;; 1458 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1459 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1460 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1461 oldincludedir=$ac_optarg ;; 1462 1463 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1464 ac_prev=prefix ;; 1465 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1466 prefix=$ac_optarg ;; 1467 1468 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1469 | --program-pre | --program-pr | --program-p) 1470 ac_prev=program_prefix ;; 1471 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1472 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1473 program_prefix=$ac_optarg ;; 1474 1475 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1476 | --program-suf | --program-su | --program-s) 1477 ac_prev=program_suffix ;; 1478 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1479 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1480 program_suffix=$ac_optarg ;; 1481 1482 -program-transform-name | --program-transform-name \ 1483 | --program-transform-nam | --program-transform-na \ 1484 | --program-transform-n | --program-transform- \ 1485 | --program-transform | --program-transfor \ 1486 | --program-transfo | --program-transf \ 1487 | --program-trans | --program-tran \ 1488 | --progr-tra | --program-tr | --program-t) 1489 ac_prev=program_transform_name ;; 1490 -program-transform-name=* | --program-transform-name=* \ 1491 | --program-transform-nam=* | --program-transform-na=* \ 1492 | --program-transform-n=* | --program-transform-=* \ 1493 | --program-transform=* | --program-transfor=* \ 1494 | --program-transfo=* | --program-transf=* \ 1495 | --program-trans=* | --program-tran=* \ 1496 | --progr-tra=* | --program-tr=* | --program-t=*) 1497 program_transform_name=$ac_optarg ;; 1498 1499 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1500 ac_prev=pdfdir ;; 1501 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1502 pdfdir=$ac_optarg ;; 1503 1504 -psdir | --psdir | --psdi | --psd | --ps) 1505 ac_prev=psdir ;; 1506 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1507 psdir=$ac_optarg ;; 1508 1509 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1510 | -silent | --silent | --silen | --sile | --sil) 1511 silent=yes ;; 1512 1513 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1514 ac_prev=sbindir ;; 1515 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1516 | --sbi=* | --sb=*) 1517 sbindir=$ac_optarg ;; 1518 1519 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1520 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1521 | --sharedst | --shareds | --shared | --share | --shar \ 1522 | --sha | --sh) 1523 ac_prev=sharedstatedir ;; 1524 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1525 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1526 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1527 | --sha=* | --sh=*) 1528 sharedstatedir=$ac_optarg ;; 1529 1530 -site | --site | --sit) 1531 ac_prev=site ;; 1532 -site=* | --site=* | --sit=*) 1533 site=$ac_optarg ;; 1534 1535 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1536 ac_prev=srcdir ;; 1537 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1538 srcdir=$ac_optarg ;; 1539 1540 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1541 | --syscon | --sysco | --sysc | --sys | --sy) 1542 ac_prev=sysconfdir ;; 1543 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1544 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1545 sysconfdir=$ac_optarg ;; 1546 1547 -target | --target | --targe | --targ | --tar | --ta | --t) 1548 ac_prev=target_alias ;; 1549 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1550 target_alias=$ac_optarg ;; 1551 1552 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1553 verbose=yes ;; 1554 1555 -version | --version | --versio | --versi | --vers | -V) 1556 ac_init_version=: ;; 1557 1558 -with-* | --with-*) 1559 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1560 # Reject names that are not valid shell variable names. 1561 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1562 as_fn_error $? "invalid package name: $ac_useropt" 1563 ac_useropt_orig=$ac_useropt 1564 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1565 case $ac_user_opts in 1566 *" 1567 "with_$ac_useropt" 1568 "*) ;; 1569 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1570 ac_unrecognized_sep=', ';; 1571 esac 1572 eval with_$ac_useropt=\$ac_optarg ;; 1573 1574 -without-* | --without-*) 1575 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1576 # Reject names that are not valid shell variable names. 1577 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1578 as_fn_error $? "invalid package name: $ac_useropt" 1579 ac_useropt_orig=$ac_useropt 1580 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1581 case $ac_user_opts in 1582 *" 1583 "with_$ac_useropt" 1584 "*) ;; 1585 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1586 ac_unrecognized_sep=', ';; 1587 esac 1588 eval with_$ac_useropt=no ;; 1589 1590 --x) 1591 # Obsolete; use --with-x. 1592 with_x=yes ;; 1593 1594 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1595 | --x-incl | --x-inc | --x-in | --x-i) 1596 ac_prev=x_includes ;; 1597 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1598 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1599 x_includes=$ac_optarg ;; 1600 1601 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1602 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1603 ac_prev=x_libraries ;; 1604 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1605 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1606 x_libraries=$ac_optarg ;; 1607 1608 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1609 Try \`$0 --help' for more information" 1610 ;; 1611 1612 *=*) 1613 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1614 # Reject names that are not valid shell variable names. 1615 case $ac_envvar in #( 1616 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1617 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1618 esac 1619 eval $ac_envvar=\$ac_optarg 1620 export $ac_envvar ;; 1621 1622 *) 1623 # FIXME: should be removed in autoconf 3.0. 1624 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1625 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1626 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1627 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1628 ;; 1629 1630 esac 1631 done 1632 1633 if test -n "$ac_prev"; then 1634 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1635 as_fn_error $? "missing argument to $ac_option" 1636 fi 1637 1638 if test -n "$ac_unrecognized_opts"; then 1639 case $enable_option_checking in 1640 no) ;; 1641 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1642 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1643 esac 1644 fi 1645 1646 # Check all directory arguments for consistency. 1647 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1648 datadir sysconfdir sharedstatedir localstatedir includedir \ 1649 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1650 libdir localedir mandir 1651 do 1652 eval ac_val=\$$ac_var 1653 # Remove trailing slashes. 1654 case $ac_val in 1655 */ ) 1656 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1657 eval $ac_var=\$ac_val;; 1658 esac 1659 # Be sure to have absolute directory names. 1660 case $ac_val in 1661 [\\/$]* | ?:[\\/]* ) continue;; 1662 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1663 esac 1664 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1665 done 1666 1667 # There might be people who depend on the old broken behavior: `$host' 1668 # used to hold the argument of --host etc. 1669 # FIXME: To remove some day. 1670 build=$build_alias 1671 host=$host_alias 1672 target=$target_alias 1673 1674 # FIXME: To remove some day. 1675 if test "x$host_alias" != x; then 1676 if test "x$build_alias" = x; then 1677 cross_compiling=maybe 1678 elif test "x$build_alias" != "x$host_alias"; then 1679 cross_compiling=yes 1680 fi 1681 fi 1682 1683 ac_tool_prefix= 1684 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1685 1686 test "$silent" = yes && exec 6>/dev/null 1687 1688 1689 ac_pwd=`pwd` && test -n "$ac_pwd" && 1690 ac_ls_di=`ls -di .` && 1691 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1692 as_fn_error $? "working directory cannot be determined" 1693 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1694 as_fn_error $? "pwd does not report name of working directory" 1695 1696 1697 # Find the source files, if location was not specified. 1698 if test -z "$srcdir"; then 1699 ac_srcdir_defaulted=yes 1700 # Try the directory containing this script, then the parent directory. 1701 ac_confdir=`$as_dirname -- "$as_myself" || 1702 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1703 X"$as_myself" : 'X\(//\)[^/]' \| \ 1704 X"$as_myself" : 'X\(//\)$' \| \ 1705 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1706 $as_echo X"$as_myself" | 1707 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1708 s//\1/ 1709 q 1710 } 1711 /^X\(\/\/\)[^/].*/{ 1712 s//\1/ 1713 q 1714 } 1715 /^X\(\/\/\)$/{ 1716 s//\1/ 1717 q 1718 } 1719 /^X\(\/\).*/{ 1720 s//\1/ 1721 q 1722 } 1723 s/.*/./; q'` 1724 srcdir=$ac_confdir 1725 if test ! -r "$srcdir/$ac_unique_file"; then 1726 srcdir=.. 1727 fi 1728 else 1729 ac_srcdir_defaulted=no 1730 fi 1731 if test ! -r "$srcdir/$ac_unique_file"; then 1732 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1733 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1734 fi 1735 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1736 ac_abs_confdir=`( 1737 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1738 pwd)` 1739 # When building in place, set srcdir=. 1740 if test "$ac_abs_confdir" = "$ac_pwd"; then 1741 srcdir=. 1742 fi 1743 # Remove unnecessary trailing slashes from srcdir. 1744 # Double slashes in file names in object file debugging info 1745 # mess up M-x gdb in Emacs. 1746 case $srcdir in 1747 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1748 esac 1749 for ac_var in $ac_precious_vars; do 1750 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1751 eval ac_env_${ac_var}_value=\$${ac_var} 1752 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1753 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1754 done 1755 1756 # 1757 # Report the --help message. 1758 # 1759 if test "$ac_init_help" = "long"; then 1760 # Omit some internal or obsolete options to make the list less imposing. 1761 # This message is too long to be a string in the A/UX 3.1 sh. 1762 cat <<_ACEOF 1763 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1764 1765 Usage: $0 [OPTION]... [VAR=VALUE]... 1766 1767 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1768 VAR=VALUE. See below for descriptions of some of the useful variables. 1769 1770 Defaults for the options are specified in brackets. 1771 1772 Configuration: 1773 -h, --help display this help and exit 1774 --help=short display options specific to this package 1775 --help=recursive display the short help of all the included packages 1776 -V, --version display version information and exit 1777 -q, --quiet, --silent do not print \`checking ...' messages 1778 --cache-file=FILE cache test results in FILE [disabled] 1779 -C, --config-cache alias for \`--cache-file=config.cache' 1780 -n, --no-create do not create output files 1781 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1782 1783 Installation directories: 1784 --prefix=PREFIX install architecture-independent files in PREFIX 1785 [$ac_default_prefix] 1786 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1787 [PREFIX] 1788 1789 By default, \`make install' will install all the files in 1790 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1791 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1792 for instance \`--prefix=\$HOME'. 1793 1794 For better control, use the options below. 1795 1796 Fine tuning of the installation directories: 1797 --bindir=DIR user executables [EPREFIX/bin] 1798 --sbindir=DIR system admin executables [EPREFIX/sbin] 1799 --libexecdir=DIR program executables [EPREFIX/libexec] 1800 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1801 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1802 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1803 --libdir=DIR object code libraries [EPREFIX/lib] 1804 --includedir=DIR C header files [PREFIX/include] 1805 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1806 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1807 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1808 --infodir=DIR info documentation [DATAROOTDIR/info] 1809 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1810 --mandir=DIR man documentation [DATAROOTDIR/man] 1811 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1812 --htmldir=DIR html documentation [DOCDIR] 1813 --dvidir=DIR dvi documentation [DOCDIR] 1814 --pdfdir=DIR pdf documentation [DOCDIR] 1815 --psdir=DIR ps documentation [DOCDIR] 1816 _ACEOF 1817 1818 cat <<\_ACEOF 1819 1820 X features: 1821 --x-includes=DIR X include files are in DIR 1822 --x-libraries=DIR X library files are in DIR 1823 1824 System types: 1825 --build=BUILD configure for building on BUILD [guessed] 1826 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1827 --target=TARGET configure for building compilers for TARGET [HOST] 1828 _ACEOF 1829 fi 1830 1831 if test -n "$ac_init_help"; then 1832 case $ac_init_help in 1833 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1834 esac 1835 cat <<\_ACEOF 1836 1837 Optional Features: 1838 --disable-option-checking ignore unrecognized --enable/--with options 1839 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1840 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1841 --enable-openjdk-only suppress building custom source even if present 1842 [disabled] 1843 --enable-debug set the debug level to fastdebug (shorthand for 1844 --with-debug-level=fastdebug) [disabled] 1845 --disable-headful disable building headful support (graphical UI 1846 support) [enabled] 1847 --enable-hotspot-test-in-build 1848 run the Queens test after Hotspot build [disabled] 1849 --enable-unlimited-crypto 1850 Enable unlimited crypto policy [disabled] 1851 --enable-rmiconnector-iiop 1852 enable the JMX RMIConnector iiop transport 1853 [disabled] 1854 --enable-new-hotspot-build 1855 enable the new hotspot build system (otherwise use 1856 the old) [disabled] 1857 --disable-debug-symbols disable generation of debug symbols [enabled] 1858 --disable-zip-debug-info 1859 disable zipping of debug-info files [enabled] 1860 --disable-freetype-bundling 1861 disable bundling of the freetype library with the 1862 build result [enabled on Windows or when using 1863 --with-freetype, disabled otherwise] 1864 --enable-sjavac use sjavac to do fast incremental compiles 1865 [disabled] 1866 --disable-precompiled-headers 1867 disable using precompiled headers when compiling C++ 1868 [enabled] 1869 --enable-ccache enable using ccache to speed up recompilations 1870 [disabled] 1871 1872 Optional Packages: 1873 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1874 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1875 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1876 support it), e.g. --with-target-bits=32 [guessed] 1877 --with-custom-make-dir Deprecated. Option is kept for backwards 1878 compatibility and is ignored 1879 --with-jdk-variant JDK variant to build (normal) [normal] 1880 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1881 --with-jvm-variants JVM variants (separated by commas) to build (server, 1882 client, minimal1, kernel, zero, zeroshark, core) 1883 [server] 1884 --with-debug-level set the debug level (release, fastdebug, slowdebug, 1885 optimized (HotSpot build only)) [release] 1886 --with-devkit use this devkit for compilers, tools and resources 1887 --with-sys-root alias for --with-sysroot for backwards compatability 1888 --with-sysroot use this directory as sysroot 1889 --with-tools-dir alias for --with-toolchain-path for backwards 1890 compatibility 1891 --with-toolchain-path prepend these directories when searching for 1892 toolchain binaries (compilers etc) 1893 --with-extra-path prepend these directories to the default path 1894 --with-sdk-name use the platform SDK of the given name. [macosx] 1895 --with-conf-name use this as the name of the configuration [generated 1896 from important configuration options] 1897 --with-output-sync set make output sync type if supported by make. 1898 [recurse] 1899 --with-builddeps-conf use this configuration file for the builddeps 1900 --with-builddeps-server download and use build dependencies from this server 1901 url 1902 --with-builddeps-dir store downloaded build dependencies here 1903 [/localhome/builddeps] 1904 --with-builddeps-group chgrp the downloaded build dependencies to this 1905 group 1906 --with-cacerts-file specify alternative cacerts file 1907 --with-milestone Set milestone value for build [internal] 1908 --with-update-version Set update version value for build [b00] 1909 --with-user-release-suffix 1910 Add a custom string to the version string if build 1911 number is not set.[username_builddateb00] 1912 --with-build-number Set build number value for build [b00] 1913 --with-copyright-year Set copyright year value for build [current year] 1914 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1915 --with-add-source-root for each and every source directory, look in this 1916 additional source root for the same directory; if it 1917 exists and have files in it, include it in the build 1918 --with-override-source-root 1919 for each and every source directory, look in this 1920 override source root for the same directory; if it 1921 exists, use that directory instead and ignore the 1922 directory in the original source root 1923 --with-adds-and-overrides 1924 use the subdirs 'adds' and 'overrides' in the 1925 specified directory as add-source-root and 1926 override-source-root 1927 --with-override-langtools 1928 use this langtools dir for the build 1929 --with-override-corba use this corba dir for the build 1930 --with-override-jaxp use this jaxp dir for the build 1931 --with-override-jaxws use this jaxws dir for the build 1932 --with-override-hotspot use this hotspot dir for the build 1933 --with-override-nashorn use this nashorn dir for the build 1934 --with-override-jdk use this jdk dir for the build 1935 --with-import-hotspot import hotspot binaries from this jdk image or 1936 hotspot build dist dir instead of building from 1937 source 1938 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1939 to show possible values [platform dependent] 1940 --with-jtreg Regression Test Harness [probed] 1941 --with-extra-cflags extra flags to be used when compiling jdk c-files 1942 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1943 --with-extra-ldflags extra flags to be used when linking jdk 1944 --with-x use the X Window System 1945 --with-cups specify prefix directory for the cups package 1946 (expecting the headers under PATH/include) 1947 --with-cups-include specify directory for the cups include files 1948 --with-freetype specify prefix directory for the freetype package 1949 (expecting the libraries under PATH/lib and the 1950 headers under PATH/include) 1951 --with-freetype-include specify directory for the freetype include files 1952 --with-freetype-lib specify directory for the freetype library 1953 --with-freetype-src specify directory with freetype sources to 1954 automatically build the library (experimental, 1955 Windows-only) 1956 --with-alsa specify prefix directory for the alsa package 1957 (expecting the libraries under PATH/lib and the 1958 headers under PATH/include) 1959 --with-alsa-include specify directory for the alsa include files 1960 --with-alsa-lib specify directory for the alsa library 1961 --with-libjpeg use libjpeg from build system or OpenJDK source 1962 (system, bundled) [bundled] 1963 --with-giflib use giflib from build system or OpenJDK source 1964 (system, bundled) [bundled] 1965 --with-lcms use lcms2 from build system or OpenJDK source 1966 (system, bundled) [bundled] 1967 --with-libpng use libpng from build system or OpenJDK source 1968 (system, bundled) [bundled] 1969 --with-zlib use zlib from build system or OpenJDK source 1970 (system, bundled) [bundled] 1971 --with-stdc++lib=<static>,<dynamic>,<default> 1972 force linking of the C++ runtime on Linux to either 1973 static or dynamic, default is static with dynamic as 1974 fallback 1975 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1976 only) [probed] 1977 --with-dxsdk Deprecated. Option is kept for backwards 1978 compatibility and is ignored 1979 --with-dxsdk-lib Deprecated. Option is kept for backwards 1980 compatibility and is ignored 1981 --with-dxsdk-include Deprecated. Option is kept for backwards 1982 compatibility and is ignored 1983 --with-num-cores number of cores in the build system, e.g. 1984 --with-num-cores=8 [probed] 1985 --with-memory-size memory (in MB) available in the build system, e.g. 1986 --with-memory-size=1024 [probed] 1987 --with-jobs number of parallel jobs to let make run [calculated 1988 based on cores and memory] 1989 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1990 invocations of boot JDK, overriding the default 1991 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1992 -enableassertions" 1993 --with-sjavac-server-java 1994 use this java binary for running the sjavac 1995 background server [Boot JDK java] 1996 --with-ccache-dir where to store ccache files [~/.ccache] 1997 1998 Some influential environment variables: 1999 BASENAME Override default value for BASENAME 2000 BASH Override default value for BASH 2001 CAT Override default value for CAT 2002 CHMOD Override default value for CHMOD 2003 CMP Override default value for CMP 2004 COMM Override default value for COMM 2005 CP Override default value for CP 2006 CUT Override default value for CUT 2007 DATE Override default value for DATE 2008 DIFF Override default value for DIFF 2009 DIRNAME Override default value for DIRNAME 2010 ECHO Override default value for ECHO 2011 EXPR Override default value for EXPR 2012 FILE Override default value for FILE 2013 FIND Override default value for FIND 2014 HEAD Override default value for HEAD 2015 LN Override default value for LN 2016 LS Override default value for LS 2017 MKDIR Override default value for MKDIR 2018 MKTEMP Override default value for MKTEMP 2019 MV Override default value for MV 2020 NAWK Override default value for NAWK 2021 PRINTF Override default value for PRINTF 2022 RM Override default value for RM 2023 SH Override default value for SH 2024 SORT Override default value for SORT 2025 TAIL Override default value for TAIL 2026 TAR Override default value for TAR 2027 TEE Override default value for TEE 2028 TOUCH Override default value for TOUCH 2029 TR Override default value for TR 2030 UNAME Override default value for UNAME 2031 UNIQ Override default value for UNIQ 2032 WC Override default value for WC 2033 WHICH Override default value for WHICH 2034 XARGS Override default value for XARGS 2035 AWK Override default value for AWK 2036 GREP Override default value for GREP 2037 EGREP Override default value for EGREP 2038 FGREP Override default value for FGREP 2039 SED Override default value for SED 2040 CYGPATH Override default value for CYGPATH 2041 READLINK Override default value for READLINK 2042 DF Override default value for DF 2043 SETFILE Override default value for SETFILE 2044 CPIO Override default value for CPIO 2045 UNZIP Override default value for UNZIP 2046 ZIP Override default value for ZIP 2047 LDD Override default value for LDD 2048 OTOOL Override default value for OTOOL 2049 READELF Override default value for READELF 2050 HG Override default value for HG 2051 STAT Override default value for STAT 2052 TIME Override default value for TIME 2053 DSYMUTIL Override default value for DSYMUTIL 2054 XATTR Override default value for XATTR 2055 CODESIGN Override default value for CODESIGN 2056 PKG_CONFIG path to pkg-config utility 2057 JAVA Override default value for JAVA 2058 JAVAC Override default value for JAVAC 2059 JAVAH Override default value for JAVAH 2060 JAR Override default value for JAR 2061 NATIVE2ASCII 2062 Override default value for NATIVE2ASCII 2063 JARSIGNER Override default value for JARSIGNER 2064 CC C compiler command 2065 CFLAGS C compiler flags 2066 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2067 nonstandard directory <lib dir> 2068 LIBS libraries to pass to the linker, e.g. -l<library> 2069 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2070 you have headers in a nonstandard directory <include dir> 2071 CXX C++ compiler command 2072 CXXFLAGS C++ compiler flags 2073 CPP C preprocessor 2074 CXXCPP C++ preprocessor 2075 AS Override default value for AS 2076 AR Override default value for AR 2077 OBJC Objective C compiler command 2078 OBJCFLAGS Objective C compiler flags 2079 LIPO Override default value for LIPO 2080 STRIP Override default value for STRIP 2081 NM Override default value for NM 2082 GNM Override default value for GNM 2083 MCS Override default value for MCS 2084 OBJCOPY Override default value for OBJCOPY 2085 OBJDUMP Override default value for OBJDUMP 2086 BUILD_CC Override default value for BUILD_CC 2087 BUILD_CXX Override default value for BUILD_CXX 2088 BUILD_LD Override default value for BUILD_LD 2089 JTREGEXE Override default value for JTREGEXE 2090 XMKMF Path to xmkmf, Makefile generator for X Window System 2091 FREETYPE_CFLAGS 2092 C compiler flags for FREETYPE, overriding pkg-config 2093 FREETYPE_LIBS 2094 linker flags for FREETYPE, overriding pkg-config 2095 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2096 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2097 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2098 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2099 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2100 PNG_LIBS linker flags for PNG, overriding pkg-config 2101 LIBFFI_CFLAGS 2102 C compiler flags for LIBFFI, overriding pkg-config 2103 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2104 CCACHE Override default value for CCACHE 2105 2106 Use these variables to override the choices made by `configure' or to help 2107 it to find libraries and programs with nonstandard names/locations. 2108 2109 Report bugs to <build-dev@openjdk.java.net>. 2110 OpenJDK home page: <http://openjdk.java.net>. 2111 _ACEOF 2112 ac_status=$? 2113 fi 2114 2115 if test "$ac_init_help" = "recursive"; then 2116 # If there are subdirs, report their specific --help. 2117 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2118 test -d "$ac_dir" || 2119 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2120 continue 2121 ac_builddir=. 2122 2123 case "$ac_dir" in 2124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2125 *) 2126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2127 # A ".." for each directory in $ac_dir_suffix. 2128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2129 case $ac_top_builddir_sub in 2130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2132 esac ;; 2133 esac 2134 ac_abs_top_builddir=$ac_pwd 2135 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2136 # for backward compatibility: 2137 ac_top_builddir=$ac_top_build_prefix 2138 2139 case $srcdir in 2140 .) # We are building in place. 2141 ac_srcdir=. 2142 ac_top_srcdir=$ac_top_builddir_sub 2143 ac_abs_top_srcdir=$ac_pwd ;; 2144 [\\/]* | ?:[\\/]* ) # Absolute name. 2145 ac_srcdir=$srcdir$ac_dir_suffix; 2146 ac_top_srcdir=$srcdir 2147 ac_abs_top_srcdir=$srcdir ;; 2148 *) # Relative name. 2149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2150 ac_top_srcdir=$ac_top_build_prefix$srcdir 2151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2152 esac 2153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2154 2155 cd "$ac_dir" || { ac_status=$?; continue; } 2156 # Check for guested configure. 2157 if test -f "$ac_srcdir/configure.gnu"; then 2158 echo && 2159 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2160 elif test -f "$ac_srcdir/configure"; then 2161 echo && 2162 $SHELL "$ac_srcdir/configure" --help=recursive 2163 else 2164 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2165 fi || ac_status=$? 2166 cd "$ac_pwd" || { ac_status=$?; break; } 2167 done 2168 fi 2169 2170 test -n "$ac_init_help" && exit $ac_status 2171 if $ac_init_version; then 2172 cat <<\_ACEOF 2173 OpenJDK configure jdk9 2174 generated by GNU Autoconf 2.69 2175 2176 Copyright (C) 2012 Free Software Foundation, Inc. 2177 This configure script is free software; the Free Software Foundation 2178 gives unlimited permission to copy, distribute and modify it. 2179 _ACEOF 2180 exit 2181 fi 2182 2183 ## ------------------------ ## 2184 ## Autoconf initialization. ## 2185 ## ------------------------ ## 2186 2187 # ac_fn_c_try_compile LINENO 2188 # -------------------------- 2189 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2190 ac_fn_c_try_compile () 2191 { 2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2193 rm -f conftest.$ac_objext 2194 if { { ac_try="$ac_compile" 2195 case "(($ac_try" in 2196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2197 *) ac_try_echo=$ac_try;; 2198 esac 2199 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2200 $as_echo "$ac_try_echo"; } >&5 2201 (eval "$ac_compile") 2>conftest.err 2202 ac_status=$? 2203 if test -s conftest.err; then 2204 grep -v '^ *+' conftest.err >conftest.er1 2205 cat conftest.er1 >&5 2206 mv -f conftest.er1 conftest.err 2207 fi 2208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2209 test $ac_status = 0; } && { 2210 test -z "$ac_c_werror_flag" || 2211 test ! -s conftest.err 2212 } && test -s conftest.$ac_objext; then : 2213 ac_retval=0 2214 else 2215 $as_echo "$as_me: failed program was:" >&5 2216 sed 's/^/| /' conftest.$ac_ext >&5 2217 2218 ac_retval=1 2219 fi 2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2221 as_fn_set_status $ac_retval 2222 2223 } # ac_fn_c_try_compile 2224 2225 # ac_fn_cxx_try_compile LINENO 2226 # ---------------------------- 2227 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2228 ac_fn_cxx_try_compile () 2229 { 2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2231 rm -f conftest.$ac_objext 2232 if { { ac_try="$ac_compile" 2233 case "(($ac_try" in 2234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2235 *) ac_try_echo=$ac_try;; 2236 esac 2237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2238 $as_echo "$ac_try_echo"; } >&5 2239 (eval "$ac_compile") 2>conftest.err 2240 ac_status=$? 2241 if test -s conftest.err; then 2242 grep -v '^ *+' conftest.err >conftest.er1 2243 cat conftest.er1 >&5 2244 mv -f conftest.er1 conftest.err 2245 fi 2246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2247 test $ac_status = 0; } && { 2248 test -z "$ac_cxx_werror_flag" || 2249 test ! -s conftest.err 2250 } && test -s conftest.$ac_objext; then : 2251 ac_retval=0 2252 else 2253 $as_echo "$as_me: failed program was:" >&5 2254 sed 's/^/| /' conftest.$ac_ext >&5 2255 2256 ac_retval=1 2257 fi 2258 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2259 as_fn_set_status $ac_retval 2260 2261 } # ac_fn_cxx_try_compile 2262 2263 # ac_fn_c_try_cpp LINENO 2264 # ---------------------- 2265 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2266 ac_fn_c_try_cpp () 2267 { 2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2269 if { { ac_try="$ac_cpp conftest.$ac_ext" 2270 case "(($ac_try" in 2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2272 *) ac_try_echo=$ac_try;; 2273 esac 2274 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2275 $as_echo "$ac_try_echo"; } >&5 2276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2277 ac_status=$? 2278 if test -s conftest.err; then 2279 grep -v '^ *+' conftest.err >conftest.er1 2280 cat conftest.er1 >&5 2281 mv -f conftest.er1 conftest.err 2282 fi 2283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2284 test $ac_status = 0; } > conftest.i && { 2285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2286 test ! -s conftest.err 2287 }; then : 2288 ac_retval=0 2289 else 2290 $as_echo "$as_me: failed program was:" >&5 2291 sed 's/^/| /' conftest.$ac_ext >&5 2292 2293 ac_retval=1 2294 fi 2295 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2296 as_fn_set_status $ac_retval 2297 2298 } # ac_fn_c_try_cpp 2299 2300 # ac_fn_cxx_try_cpp LINENO 2301 # ------------------------ 2302 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2303 ac_fn_cxx_try_cpp () 2304 { 2305 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2306 if { { ac_try="$ac_cpp conftest.$ac_ext" 2307 case "(($ac_try" in 2308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2309 *) ac_try_echo=$ac_try;; 2310 esac 2311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2312 $as_echo "$ac_try_echo"; } >&5 2313 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2314 ac_status=$? 2315 if test -s conftest.err; then 2316 grep -v '^ *+' conftest.err >conftest.er1 2317 cat conftest.er1 >&5 2318 mv -f conftest.er1 conftest.err 2319 fi 2320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2321 test $ac_status = 0; } > conftest.i && { 2322 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2323 test ! -s conftest.err 2324 }; then : 2325 ac_retval=0 2326 else 2327 $as_echo "$as_me: failed program was:" >&5 2328 sed 's/^/| /' conftest.$ac_ext >&5 2329 2330 ac_retval=1 2331 fi 2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2333 as_fn_set_status $ac_retval 2334 2335 } # ac_fn_cxx_try_cpp 2336 2337 # ac_fn_objc_try_compile LINENO 2338 # ----------------------------- 2339 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2340 ac_fn_objc_try_compile () 2341 { 2342 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2343 rm -f conftest.$ac_objext 2344 if { { ac_try="$ac_compile" 2345 case "(($ac_try" in 2346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2347 *) ac_try_echo=$ac_try;; 2348 esac 2349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2350 $as_echo "$ac_try_echo"; } >&5 2351 (eval "$ac_compile") 2>conftest.err 2352 ac_status=$? 2353 if test -s conftest.err; then 2354 grep -v '^ *+' conftest.err >conftest.er1 2355 cat conftest.er1 >&5 2356 mv -f conftest.er1 conftest.err 2357 fi 2358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2359 test $ac_status = 0; } && { 2360 test -z "$ac_objc_werror_flag" || 2361 test ! -s conftest.err 2362 } && test -s conftest.$ac_objext; then : 2363 ac_retval=0 2364 else 2365 $as_echo "$as_me: failed program was:" >&5 2366 sed 's/^/| /' conftest.$ac_ext >&5 2367 2368 ac_retval=1 2369 fi 2370 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2371 as_fn_set_status $ac_retval 2372 2373 } # ac_fn_objc_try_compile 2374 2375 # ac_fn_c_try_link LINENO 2376 # ----------------------- 2377 # Try to link conftest.$ac_ext, and return whether this succeeded. 2378 ac_fn_c_try_link () 2379 { 2380 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2381 rm -f conftest.$ac_objext conftest$ac_exeext 2382 if { { ac_try="$ac_link" 2383 case "(($ac_try" in 2384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2385 *) ac_try_echo=$ac_try;; 2386 esac 2387 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2388 $as_echo "$ac_try_echo"; } >&5 2389 (eval "$ac_link") 2>conftest.err 2390 ac_status=$? 2391 if test -s conftest.err; then 2392 grep -v '^ *+' conftest.err >conftest.er1 2393 cat conftest.er1 >&5 2394 mv -f conftest.er1 conftest.err 2395 fi 2396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2397 test $ac_status = 0; } && { 2398 test -z "$ac_c_werror_flag" || 2399 test ! -s conftest.err 2400 } && test -s conftest$ac_exeext && { 2401 test "$cross_compiling" = yes || 2402 test -x conftest$ac_exeext 2403 }; then : 2404 ac_retval=0 2405 else 2406 $as_echo "$as_me: failed program was:" >&5 2407 sed 's/^/| /' conftest.$ac_ext >&5 2408 2409 ac_retval=1 2410 fi 2411 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2412 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2413 # interfere with the next link command; also delete a directory that is 2414 # left behind by Apple's compiler. We do this before executing the actions. 2415 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2416 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2417 as_fn_set_status $ac_retval 2418 2419 } # ac_fn_c_try_link 2420 2421 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2422 # --------------------------------------------------------- 2423 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2424 # the include files in INCLUDES and setting the cache variable VAR 2425 # accordingly. 2426 ac_fn_cxx_check_header_mongrel () 2427 { 2428 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2429 if eval \${$3+:} false; then : 2430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2431 $as_echo_n "checking for $2... " >&6; } 2432 if eval \${$3+:} false; then : 2433 $as_echo_n "(cached) " >&6 2434 fi 2435 eval ac_res=\$$3 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2437 $as_echo "$ac_res" >&6; } 2438 else 2439 # Is the header compilable? 2440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2441 $as_echo_n "checking $2 usability... " >&6; } 2442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2443 /* end confdefs.h. */ 2444 $4 2445 #include <$2> 2446 _ACEOF 2447 if ac_fn_cxx_try_compile "$LINENO"; then : 2448 ac_header_compiler=yes 2449 else 2450 ac_header_compiler=no 2451 fi 2452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2454 $as_echo "$ac_header_compiler" >&6; } 2455 2456 # Is the header present? 2457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2458 $as_echo_n "checking $2 presence... " >&6; } 2459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2460 /* end confdefs.h. */ 2461 #include <$2> 2462 _ACEOF 2463 if ac_fn_cxx_try_cpp "$LINENO"; then : 2464 ac_header_preproc=yes 2465 else 2466 ac_header_preproc=no 2467 fi 2468 rm -f conftest.err conftest.i conftest.$ac_ext 2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2470 $as_echo "$ac_header_preproc" >&6; } 2471 2472 # So? What about this header? 2473 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2474 yes:no: ) 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2476 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2478 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2479 ;; 2480 no:yes:* ) 2481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2482 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2484 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2486 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2488 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2490 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2491 ( $as_echo "## ----------------------------------------- ## 2492 ## Report this to build-dev@openjdk.java.net ## 2493 ## ----------------------------------------- ##" 2494 ) | sed "s/^/$as_me: WARNING: /" >&2 2495 ;; 2496 esac 2497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2498 $as_echo_n "checking for $2... " >&6; } 2499 if eval \${$3+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501 else 2502 eval "$3=\$ac_header_compiler" 2503 fi 2504 eval ac_res=\$$3 2505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2506 $as_echo "$ac_res" >&6; } 2507 fi 2508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2509 2510 } # ac_fn_cxx_check_header_mongrel 2511 2512 # ac_fn_cxx_try_run LINENO 2513 # ------------------------ 2514 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2515 # that executables *can* be run. 2516 ac_fn_cxx_try_run () 2517 { 2518 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2519 if { { ac_try="$ac_link" 2520 case "(($ac_try" in 2521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2522 *) ac_try_echo=$ac_try;; 2523 esac 2524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2525 $as_echo "$ac_try_echo"; } >&5 2526 (eval "$ac_link") 2>&5 2527 ac_status=$? 2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2529 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2530 { { case "(($ac_try" in 2531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2532 *) ac_try_echo=$ac_try;; 2533 esac 2534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2535 $as_echo "$ac_try_echo"; } >&5 2536 (eval "$ac_try") 2>&5 2537 ac_status=$? 2538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2539 test $ac_status = 0; }; }; then : 2540 ac_retval=0 2541 else 2542 $as_echo "$as_me: program exited with status $ac_status" >&5 2543 $as_echo "$as_me: failed program was:" >&5 2544 sed 's/^/| /' conftest.$ac_ext >&5 2545 2546 ac_retval=$ac_status 2547 fi 2548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2549 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2550 as_fn_set_status $ac_retval 2551 2552 } # ac_fn_cxx_try_run 2553 2554 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2555 # --------------------------------------------------------- 2556 # Tests whether HEADER exists and can be compiled using the include files in 2557 # INCLUDES, setting the cache variable VAR accordingly. 2558 ac_fn_cxx_check_header_compile () 2559 { 2560 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2562 $as_echo_n "checking for $2... " >&6; } 2563 if eval \${$3+:} false; then : 2564 $as_echo_n "(cached) " >&6 2565 else 2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2567 /* end confdefs.h. */ 2568 $4 2569 #include <$2> 2570 _ACEOF 2571 if ac_fn_cxx_try_compile "$LINENO"; then : 2572 eval "$3=yes" 2573 else 2574 eval "$3=no" 2575 fi 2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2577 fi 2578 eval ac_res=\$$3 2579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2580 $as_echo "$ac_res" >&6; } 2581 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2582 2583 } # ac_fn_cxx_check_header_compile 2584 2585 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2586 # ---------------------------------------------- 2587 # Tries to find the compile-time value of EXPR in a program that includes 2588 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2589 # computed 2590 ac_fn_cxx_compute_int () 2591 { 2592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2593 if test "$cross_compiling" = yes; then 2594 # Depending upon the size, compute the lo and hi bounds. 2595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2596 /* end confdefs.h. */ 2597 $4 2598 int 2599 main () 2600 { 2601 static int test_array [1 - 2 * !(($2) >= 0)]; 2602 test_array [0] = 0; 2603 return test_array [0]; 2604 2605 ; 2606 return 0; 2607 } 2608 _ACEOF 2609 if ac_fn_cxx_try_compile "$LINENO"; then : 2610 ac_lo=0 ac_mid=0 2611 while :; do 2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2613 /* end confdefs.h. */ 2614 $4 2615 int 2616 main () 2617 { 2618 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2619 test_array [0] = 0; 2620 return test_array [0]; 2621 2622 ; 2623 return 0; 2624 } 2625 _ACEOF 2626 if ac_fn_cxx_try_compile "$LINENO"; then : 2627 ac_hi=$ac_mid; break 2628 else 2629 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2630 if test $ac_lo -le $ac_mid; then 2631 ac_lo= ac_hi= 2632 break 2633 fi 2634 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2635 fi 2636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2637 done 2638 else 2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2640 /* end confdefs.h. */ 2641 $4 2642 int 2643 main () 2644 { 2645 static int test_array [1 - 2 * !(($2) < 0)]; 2646 test_array [0] = 0; 2647 return test_array [0]; 2648 2649 ; 2650 return 0; 2651 } 2652 _ACEOF 2653 if ac_fn_cxx_try_compile "$LINENO"; then : 2654 ac_hi=-1 ac_mid=-1 2655 while :; do 2656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2657 /* end confdefs.h. */ 2658 $4 2659 int 2660 main () 2661 { 2662 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2663 test_array [0] = 0; 2664 return test_array [0]; 2665 2666 ; 2667 return 0; 2668 } 2669 _ACEOF 2670 if ac_fn_cxx_try_compile "$LINENO"; then : 2671 ac_lo=$ac_mid; break 2672 else 2673 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2674 if test $ac_mid -le $ac_hi; then 2675 ac_lo= ac_hi= 2676 break 2677 fi 2678 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2679 fi 2680 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2681 done 2682 else 2683 ac_lo= ac_hi= 2684 fi 2685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2686 fi 2687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2688 # Binary search between lo and hi bounds. 2689 while test "x$ac_lo" != "x$ac_hi"; do 2690 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2692 /* end confdefs.h. */ 2693 $4 2694 int 2695 main () 2696 { 2697 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2698 test_array [0] = 0; 2699 return test_array [0]; 2700 2701 ; 2702 return 0; 2703 } 2704 _ACEOF 2705 if ac_fn_cxx_try_compile "$LINENO"; then : 2706 ac_hi=$ac_mid 2707 else 2708 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2709 fi 2710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2711 done 2712 case $ac_lo in #(( 2713 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2714 '') ac_retval=1 ;; 2715 esac 2716 else 2717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2718 /* end confdefs.h. */ 2719 $4 2720 static long int longval () { return $2; } 2721 static unsigned long int ulongval () { return $2; } 2722 #include <stdio.h> 2723 #include <stdlib.h> 2724 int 2725 main () 2726 { 2727 2728 FILE *f = fopen ("conftest.val", "w"); 2729 if (! f) 2730 return 1; 2731 if (($2) < 0) 2732 { 2733 long int i = longval (); 2734 if (i != ($2)) 2735 return 1; 2736 fprintf (f, "%ld", i); 2737 } 2738 else 2739 { 2740 unsigned long int i = ulongval (); 2741 if (i != ($2)) 2742 return 1; 2743 fprintf (f, "%lu", i); 2744 } 2745 /* Do not output a trailing newline, as this causes \r\n confusion 2746 on some platforms. */ 2747 return ferror (f) || fclose (f) != 0; 2748 2749 ; 2750 return 0; 2751 } 2752 _ACEOF 2753 if ac_fn_cxx_try_run "$LINENO"; then : 2754 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2755 else 2756 ac_retval=1 2757 fi 2758 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2759 conftest.$ac_objext conftest.beam conftest.$ac_ext 2760 rm -f conftest.val 2761 2762 fi 2763 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2764 as_fn_set_status $ac_retval 2765 2766 } # ac_fn_cxx_compute_int 2767 2768 # ac_fn_cxx_try_link LINENO 2769 # ------------------------- 2770 # Try to link conftest.$ac_ext, and return whether this succeeded. 2771 ac_fn_cxx_try_link () 2772 { 2773 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2774 rm -f conftest.$ac_objext conftest$ac_exeext 2775 if { { ac_try="$ac_link" 2776 case "(($ac_try" in 2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2778 *) ac_try_echo=$ac_try;; 2779 esac 2780 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2781 $as_echo "$ac_try_echo"; } >&5 2782 (eval "$ac_link") 2>conftest.err 2783 ac_status=$? 2784 if test -s conftest.err; then 2785 grep -v '^ *+' conftest.err >conftest.er1 2786 cat conftest.er1 >&5 2787 mv -f conftest.er1 conftest.err 2788 fi 2789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2790 test $ac_status = 0; } && { 2791 test -z "$ac_cxx_werror_flag" || 2792 test ! -s conftest.err 2793 } && test -s conftest$ac_exeext && { 2794 test "$cross_compiling" = yes || 2795 test -x conftest$ac_exeext 2796 }; then : 2797 ac_retval=0 2798 else 2799 $as_echo "$as_me: failed program was:" >&5 2800 sed 's/^/| /' conftest.$ac_ext >&5 2801 2802 ac_retval=1 2803 fi 2804 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2805 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2806 # interfere with the next link command; also delete a directory that is 2807 # left behind by Apple's compiler. We do this before executing the actions. 2808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2810 as_fn_set_status $ac_retval 2811 2812 } # ac_fn_cxx_try_link 2813 2814 # ac_fn_cxx_check_func LINENO FUNC VAR 2815 # ------------------------------------ 2816 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2817 ac_fn_cxx_check_func () 2818 { 2819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2821 $as_echo_n "checking for $2... " >&6; } 2822 if eval \${$3+:} false; then : 2823 $as_echo_n "(cached) " >&6 2824 else 2825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2826 /* end confdefs.h. */ 2827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2828 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2829 #define $2 innocuous_$2 2830 2831 /* System header to define __stub macros and hopefully few prototypes, 2832 which can conflict with char $2 (); below. 2833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2834 <limits.h> exists even on freestanding compilers. */ 2835 2836 #ifdef __STDC__ 2837 # include <limits.h> 2838 #else 2839 # include <assert.h> 2840 #endif 2841 2842 #undef $2 2843 2844 /* Override any GCC internal prototype to avoid an error. 2845 Use char because int might match the return type of a GCC 2846 builtin and then its argument prototype would still apply. */ 2847 #ifdef __cplusplus 2848 extern "C" 2849 #endif 2850 char $2 (); 2851 /* The GNU C library defines this for functions which it implements 2852 to always fail with ENOSYS. Some functions are actually named 2853 something starting with __ and the normal name is an alias. */ 2854 #if defined __stub_$2 || defined __stub___$2 2855 choke me 2856 #endif 2857 2858 int 2859 main () 2860 { 2861 return $2 (); 2862 ; 2863 return 0; 2864 } 2865 _ACEOF 2866 if ac_fn_cxx_try_link "$LINENO"; then : 2867 eval "$3=yes" 2868 else 2869 eval "$3=no" 2870 fi 2871 rm -f core conftest.err conftest.$ac_objext \ 2872 conftest$ac_exeext conftest.$ac_ext 2873 fi 2874 eval ac_res=\$$3 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2876 $as_echo "$ac_res" >&6; } 2877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2878 2879 } # ac_fn_cxx_check_func 2880 2881 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2882 # ------------------------------------------------------- 2883 # Tests whether HEADER exists and can be compiled using the include files in 2884 # INCLUDES, setting the cache variable VAR accordingly. 2885 ac_fn_c_check_header_compile () 2886 { 2887 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2889 $as_echo_n "checking for $2... " >&6; } 2890 if eval \${$3+:} false; then : 2891 $as_echo_n "(cached) " >&6 2892 else 2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2894 /* end confdefs.h. */ 2895 $4 2896 #include <$2> 2897 _ACEOF 2898 if ac_fn_c_try_compile "$LINENO"; then : 2899 eval "$3=yes" 2900 else 2901 eval "$3=no" 2902 fi 2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2904 fi 2905 eval ac_res=\$$3 2906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2907 $as_echo "$ac_res" >&6; } 2908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2909 2910 } # ac_fn_c_check_header_compile 2911 cat >config.log <<_ACEOF 2912 This file contains any messages produced by compilers while 2913 running configure, to aid debugging if configure makes a mistake. 2914 2915 It was created by OpenJDK $as_me jdk9, which was 2916 generated by GNU Autoconf 2.69. Invocation command line was 2917 2918 $ $0 $@ 2919 2920 _ACEOF 2921 exec 5>>config.log 2922 { 2923 cat <<_ASUNAME 2924 ## --------- ## 2925 ## Platform. ## 2926 ## --------- ## 2927 2928 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2929 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2930 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2931 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2932 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2933 2934 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2935 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2936 2937 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2938 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2939 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2940 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2941 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2942 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2943 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2944 2945 _ASUNAME 2946 2947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2948 for as_dir in $PATH 2949 do 2950 IFS=$as_save_IFS 2951 test -z "$as_dir" && as_dir=. 2952 $as_echo "PATH: $as_dir" 2953 done 2954 IFS=$as_save_IFS 2955 2956 } >&5 2957 2958 cat >&5 <<_ACEOF 2959 2960 2961 ## ----------- ## 2962 ## Core tests. ## 2963 ## ----------- ## 2964 2965 _ACEOF 2966 2967 2968 # Keep a trace of the command line. 2969 # Strip out --no-create and --no-recursion so they do not pile up. 2970 # Strip out --silent because we don't want to record it for future runs. 2971 # Also quote any args containing shell meta-characters. 2972 # Make two passes to allow for proper duplicate-argument suppression. 2973 ac_configure_args= 2974 ac_configure_args0= 2975 ac_configure_args1= 2976 ac_must_keep_next=false 2977 for ac_pass in 1 2 2978 do 2979 for ac_arg 2980 do 2981 case $ac_arg in 2982 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2983 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2984 | -silent | --silent | --silen | --sile | --sil) 2985 continue ;; 2986 *\'*) 2987 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2988 esac 2989 case $ac_pass in 2990 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2991 2) 2992 as_fn_append ac_configure_args1 " '$ac_arg'" 2993 if test $ac_must_keep_next = true; then 2994 ac_must_keep_next=false # Got value, back to normal. 2995 else 2996 case $ac_arg in 2997 *=* | --config-cache | -C | -disable-* | --disable-* \ 2998 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2999 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 3000 | -with-* | --with-* | -without-* | --without-* | --x) 3001 case "$ac_configure_args0 " in 3002 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 3003 esac 3004 ;; 3005 -* ) ac_must_keep_next=true ;; 3006 esac 3007 fi 3008 as_fn_append ac_configure_args " '$ac_arg'" 3009 ;; 3010 esac 3011 done 3012 done 3013 { ac_configure_args0=; unset ac_configure_args0;} 3014 { ac_configure_args1=; unset ac_configure_args1;} 3015 3016 # When interrupted or exit'd, cleanup temporary files, and complete 3017 # config.log. We remove comments because anyway the quotes in there 3018 # would cause problems or look ugly. 3019 # WARNING: Use '\'' to represent an apostrophe within the trap. 3020 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 3021 trap 'exit_status=$? 3022 # Save into config.log some information that might help in debugging. 3023 { 3024 echo 3025 3026 $as_echo "## ---------------- ## 3027 ## Cache variables. ## 3028 ## ---------------- ##" 3029 echo 3030 # The following way of writing the cache mishandles newlines in values, 3031 ( 3032 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 3033 eval ac_val=\$$ac_var 3034 case $ac_val in #( 3035 *${as_nl}*) 3036 case $ac_var in #( 3037 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 3038 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 3039 esac 3040 case $ac_var in #( 3041 _ | IFS | as_nl) ;; #( 3042 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 3043 *) { eval $ac_var=; unset $ac_var;} ;; 3044 esac ;; 3045 esac 3046 done 3047 (set) 2>&1 | 3048 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 3049 *${as_nl}ac_space=\ *) 3050 sed -n \ 3051 "s/'\''/'\''\\\\'\'''\''/g; 3052 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 3053 ;; #( 3054 *) 3055 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 3056 ;; 3057 esac | 3058 sort 3059 ) 3060 echo 3061 3062 $as_echo "## ----------------- ## 3063 ## Output variables. ## 3064 ## ----------------- ##" 3065 echo 3066 for ac_var in $ac_subst_vars 3067 do 3068 eval ac_val=\$$ac_var 3069 case $ac_val in 3070 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3071 esac 3072 $as_echo "$ac_var='\''$ac_val'\''" 3073 done | sort 3074 echo 3075 3076 if test -n "$ac_subst_files"; then 3077 $as_echo "## ------------------- ## 3078 ## File substitutions. ## 3079 ## ------------------- ##" 3080 echo 3081 for ac_var in $ac_subst_files 3082 do 3083 eval ac_val=\$$ac_var 3084 case $ac_val in 3085 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3086 esac 3087 $as_echo "$ac_var='\''$ac_val'\''" 3088 done | sort 3089 echo 3090 fi 3091 3092 if test -s confdefs.h; then 3093 $as_echo "## ----------- ## 3094 ## confdefs.h. ## 3095 ## ----------- ##" 3096 echo 3097 cat confdefs.h 3098 echo 3099 fi 3100 test "$ac_signal" != 0 && 3101 $as_echo "$as_me: caught signal $ac_signal" 3102 $as_echo "$as_me: exit $exit_status" 3103 } >&5 3104 rm -f core *.core core.conftest.* && 3105 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3106 exit $exit_status 3107 ' 0 3108 for ac_signal in 1 2 13 15; do 3109 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3110 done 3111 ac_signal=0 3112 3113 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3114 rm -f -r conftest* confdefs.h 3115 3116 $as_echo "/* confdefs.h */" > confdefs.h 3117 3118 # Predefined preprocessor variables. 3119 3120 cat >>confdefs.h <<_ACEOF 3121 #define PACKAGE_NAME "$PACKAGE_NAME" 3122 _ACEOF 3123 3124 cat >>confdefs.h <<_ACEOF 3125 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3126 _ACEOF 3127 3128 cat >>confdefs.h <<_ACEOF 3129 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3130 _ACEOF 3131 3132 cat >>confdefs.h <<_ACEOF 3133 #define PACKAGE_STRING "$PACKAGE_STRING" 3134 _ACEOF 3135 3136 cat >>confdefs.h <<_ACEOF 3137 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3138 _ACEOF 3139 3140 cat >>confdefs.h <<_ACEOF 3141 #define PACKAGE_URL "$PACKAGE_URL" 3142 _ACEOF 3143 3144 3145 # Let the site file select an alternate cache file if it wants to. 3146 # Prefer an explicitly selected file to automatically selected ones. 3147 ac_site_file1=NONE 3148 ac_site_file2=NONE 3149 if test -n "$CONFIG_SITE"; then 3150 # We do not want a PATH search for config.site. 3151 case $CONFIG_SITE in #(( 3152 -*) ac_site_file1=./$CONFIG_SITE;; 3153 */*) ac_site_file1=$CONFIG_SITE;; 3154 *) ac_site_file1=./$CONFIG_SITE;; 3155 esac 3156 elif test "x$prefix" != xNONE; then 3157 ac_site_file1=$prefix/share/config.site 3158 ac_site_file2=$prefix/etc/config.site 3159 else 3160 ac_site_file1=$ac_default_prefix/share/config.site 3161 ac_site_file2=$ac_default_prefix/etc/config.site 3162 fi 3163 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3164 do 3165 test "x$ac_site_file" = xNONE && continue 3166 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3167 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3168 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3169 sed 's/^/| /' "$ac_site_file" >&5 3170 . "$ac_site_file" \ 3171 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3173 as_fn_error $? "failed to load site script $ac_site_file 3174 See \`config.log' for more details" "$LINENO" 5; } 3175 fi 3176 done 3177 3178 if test -r "$cache_file"; then 3179 # Some versions of bash will fail to source /dev/null (special files 3180 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3181 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3183 $as_echo "$as_me: loading cache $cache_file" >&6;} 3184 case $cache_file in 3185 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3186 *) . "./$cache_file";; 3187 esac 3188 fi 3189 else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3191 $as_echo "$as_me: creating cache $cache_file" >&6;} 3192 >$cache_file 3193 fi 3194 3195 # Check that the precious variables saved in the cache have kept the same 3196 # value. 3197 ac_cache_corrupted=false 3198 for ac_var in $ac_precious_vars; do 3199 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3200 eval ac_new_set=\$ac_env_${ac_var}_set 3201 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3202 eval ac_new_val=\$ac_env_${ac_var}_value 3203 case $ac_old_set,$ac_new_set in 3204 set,) 3205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3206 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3207 ac_cache_corrupted=: ;; 3208 ,set) 3209 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3210 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3211 ac_cache_corrupted=: ;; 3212 ,);; 3213 *) 3214 if test "x$ac_old_val" != "x$ac_new_val"; then 3215 # differences in whitespace do not lead to failure. 3216 ac_old_val_w=`echo x $ac_old_val` 3217 ac_new_val_w=`echo x $ac_new_val` 3218 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3219 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3220 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3221 ac_cache_corrupted=: 3222 else 3223 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3224 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3225 eval $ac_var=\$ac_old_val 3226 fi 3227 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3228 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3229 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3230 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3231 fi;; 3232 esac 3233 # Pass precious variables to config.status. 3234 if test "$ac_new_set" = set; then 3235 case $ac_new_val in 3236 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3237 *) ac_arg=$ac_var=$ac_new_val ;; 3238 esac 3239 case " $ac_configure_args " in 3240 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3241 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3242 esac 3243 fi 3244 done 3245 if $ac_cache_corrupted; then 3246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3248 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3249 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3250 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3251 fi 3252 ## -------------------- ## 3253 ## Main body of script. ## 3254 ## -------------------- ## 3255 3256 ac_ext=c 3257 ac_cpp='$CPP $CPPFLAGS' 3258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3261 3262 3263 3264 ac_aux_dir= 3265 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3266 if test -f "$ac_dir/install-sh"; then 3267 ac_aux_dir=$ac_dir 3268 ac_install_sh="$ac_aux_dir/install-sh -c" 3269 break 3270 elif test -f "$ac_dir/install.sh"; then 3271 ac_aux_dir=$ac_dir 3272 ac_install_sh="$ac_aux_dir/install.sh -c" 3273 break 3274 elif test -f "$ac_dir/shtool"; then 3275 ac_aux_dir=$ac_dir 3276 ac_install_sh="$ac_aux_dir/shtool install -c" 3277 break 3278 fi 3279 done 3280 if test -z "$ac_aux_dir"; then 3281 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3282 fi 3283 3284 # These three variables are undocumented and unsupported, 3285 # and are intended to be withdrawn in a future Autoconf release. 3286 # They can cause serious problems if a builder's source tree is in a directory 3287 # whose full name contains unusual characters. 3288 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3289 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3290 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3291 3292 3293 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3294 3295 # 3296 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3297 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3298 # 3299 # This code is free software; you can redistribute it and/or modify it 3300 # under the terms of the GNU General Public License version 2 only, as 3301 # published by the Free Software Foundation. Oracle designates this 3302 # particular file as subject to the "Classpath" exception as provided 3303 # by Oracle in the LICENSE file that accompanied this code. 3304 # 3305 # This code is distributed in the hope that it will be useful, but WITHOUT 3306 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3307 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3308 # version 2 for more details (a copy is included in the LICENSE file that 3309 # accompanied this code). 3310 # 3311 # You should have received a copy of the GNU General Public License version 3312 # 2 along with this work; if not, write to the Free Software Foundation, 3313 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3314 # 3315 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3316 # or visit www.oracle.com if you need additional information or have any 3317 # questions. 3318 # 3319 3320 # 3321 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3322 # 3323 # This program is free software; you can redistribute it and/or modify 3324 # it under the terms of the GNU General Public License as published by 3325 # the Free Software Foundation; either version 2 of the License, or 3326 # (at your option) any later version. 3327 # 3328 # This program is distributed in the hope that it will be useful, but 3329 # WITHOUT ANY WARRANTY; without even the implied warranty of 3330 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3331 # General Public License for more details. 3332 # 3333 # You should have received a copy of the GNU General Public License 3334 # along with this program; if not, write to the Free Software 3335 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3336 # 3337 # As a special exception to the GNU General Public License, if you 3338 # distribute this file as part of a program that contains a 3339 # configuration script generated by Autoconf, you may include it under 3340 # the same distribution terms that you use for the rest of that program. 3341 3342 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3343 # ---------------------------------- 3344 # PKG_PROG_PKG_CONFIG 3345 3346 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3347 # 3348 # Check to see whether a particular set of modules exists. Similar 3349 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3350 # 3351 # 3352 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3353 # this or PKG_CHECK_MODULES is called, or make sure to call 3354 # PKG_CHECK_EXISTS manually 3355 # -------------------------------------------------------------- 3356 3357 3358 3359 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3360 # --------------------------------------------- 3361 # _PKG_CONFIG 3362 3363 # _PKG_SHORT_ERRORS_SUPPORTED 3364 # ----------------------------- 3365 # _PKG_SHORT_ERRORS_SUPPORTED 3366 3367 3368 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3369 # [ACTION-IF-NOT-FOUND]) 3370 # 3371 # 3372 # Note that if there is a possibility the first call to 3373 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3374 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3375 # 3376 # 3377 # -------------------------------------------------------------- 3378 # PKG_CHECK_MODULES 3379 3380 3381 # Include these first... 3382 # 3383 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3384 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3385 # 3386 # This code is free software; you can redistribute it and/or modify it 3387 # under the terms of the GNU General Public License version 2 only, as 3388 # published by the Free Software Foundation. Oracle designates this 3389 # particular file as subject to the "Classpath" exception as provided 3390 # by Oracle in the LICENSE file that accompanied this code. 3391 # 3392 # This code is distributed in the hope that it will be useful, but WITHOUT 3393 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3394 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3395 # version 2 for more details (a copy is included in the LICENSE file that 3396 # accompanied this code). 3397 # 3398 # You should have received a copy of the GNU General Public License version 3399 # 2 along with this work; if not, write to the Free Software Foundation, 3400 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3401 # 3402 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3403 # or visit www.oracle.com if you need additional information or have any 3404 # questions. 3405 # 3406 3407 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3408 # If so, then append $1 to $2 \ 3409 # Also set JVM_ARG_OK to true/false depending on outcome. 3410 3411 3412 # Appends a string to a path variable, only adding the : when needed. 3413 3414 3415 # Prepends a string to a path variable, only adding the : when needed. 3416 3417 3418 # This will make sure the given variable points to a full and proper 3419 # path. This means: 3420 # 1) There will be no spaces in the path. On unix platforms, 3421 # spaces in the path will result in an error. On Windows, 3422 # the path will be rewritten using short-style to be space-free. 3423 # 2) The path will be absolute, and it will be in unix-style (on 3424 # cygwin). 3425 # $1: The name of the variable to fix 3426 3427 3428 # This will make sure the given variable points to a executable 3429 # with a full and proper path. This means: 3430 # 1) There will be no spaces in the path. On unix platforms, 3431 # spaces in the path will result in an error. On Windows, 3432 # the path will be rewritten using short-style to be space-free. 3433 # 2) The path will be absolute, and it will be in unix-style (on 3434 # cygwin). 3435 # Any arguments given to the executable is preserved. 3436 # If the input variable does not have a directory specification, then 3437 # it need to be in the PATH. 3438 # $1: The name of the variable to fix 3439 3440 3441 3442 3443 # Register a --with argument but mark it as deprecated 3444 # $1: The name of the with argument to deprecate, not including --with- 3445 3446 3447 # Register a --enable argument but mark it as deprecated 3448 # $1: The name of the with argument to deprecate, not including --enable- 3449 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3450 3451 3452 3453 3454 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3455 # $1: variable to check 3456 3457 3458 # Check that there are no unprocessed overridden variables left. 3459 # If so, they are an incorrect argument and we will exit with an error. 3460 3461 3462 # Setup a tool for the given variable. If correctly specified by the user, 3463 # use that value, otherwise search for the tool using the supplied code snippet. 3464 # $1: variable to set 3465 # $2: code snippet to call to look for the tool 3466 3467 3468 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3469 # $1: variable to set 3470 # $2: executable name (or list of names) to look for 3471 3472 3473 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3474 # $1: variable to set 3475 # $2: executable name (or list of names) to look for 3476 3477 3478 # Like BASIC_PATH_PROGS but fails if no tool was found. 3479 # $1: variable to set 3480 # $2: executable name (or list of names) to look for 3481 3482 3483 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3484 # $1: variable to set 3485 # $2: autoconf macro to call to look for the special tool 3486 3487 3488 # Setup the most fundamental tools that relies on not much else to set up, 3489 # but is used by much of the early bootstrap code. 3490 3491 3492 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 #%%% Simple tools %%% 3503 3504 # Check if we have found a usable version of make 3505 # $1: the path to a potential make binary (or empty) 3506 # $2: the description on how we found this 3507 3508 3509 3510 3511 # Goes looking for a usable version of GNU make. 3512 3513 3514 3515 3516 3517 3518 # Check if build directory is on local disk. If not possible to determine, 3519 # we prefer to claim it's local. 3520 # Argument 1: directory to test 3521 # Argument 2: what to do if it is on local disk 3522 # Argument 3: what to do otherwise (remote disk or failure) 3523 3524 3525 # Check that source files have basic read permissions set. This might 3526 # not be the case in cygwin in certain conditions. 3527 3528 3529 3530 3531 # 3532 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3533 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3534 # 3535 # This code is free software; you can redistribute it and/or modify it 3536 # under the terms of the GNU General Public License version 2 only, as 3537 # published by the Free Software Foundation. Oracle designates this 3538 # particular file as subject to the "Classpath" exception as provided 3539 # by Oracle in the LICENSE file that accompanied this code. 3540 # 3541 # This code is distributed in the hope that it will be useful, but WITHOUT 3542 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3543 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3544 # version 2 for more details (a copy is included in the LICENSE file that 3545 # accompanied this code). 3546 # 3547 # You should have received a copy of the GNU General Public License version 3548 # 2 along with this work; if not, write to the Free Software Foundation, 3549 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3550 # 3551 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3552 # or visit www.oracle.com if you need additional information or have any 3553 # questions. 3554 # 3555 3556 3557 3558 3559 3560 # Helper function which possibly converts a path using DOS-style short mode. 3561 # If so, the updated path is stored in $new_path. 3562 # $1: The path to check 3563 3564 3565 # Helper function which possibly converts a path using DOS-style short mode. 3566 # If so, the updated path is stored in $new_path. 3567 # $1: The path to check 3568 3569 3570 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3571 # and could probably be heavily simplified. However, all changes in this 3572 # area tend to need lot of testing in different scenarios, and in lack of 3573 # proper unit testing, cleaning this up has not been deemed worth the effort 3574 # at the moment. 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3585 3586 3587 3588 3589 # 3590 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3591 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3592 # 3593 # This code is free software; you can redistribute it and/or modify it 3594 # under the terms of the GNU General Public License version 2 only, as 3595 # published by the Free Software Foundation. Oracle designates this 3596 # particular file as subject to the "Classpath" exception as provided 3597 # by Oracle in the LICENSE file that accompanied this code. 3598 # 3599 # This code is distributed in the hope that it will be useful, but WITHOUT 3600 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3601 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3602 # version 2 for more details (a copy is included in the LICENSE file that 3603 # accompanied this code). 3604 # 3605 # You should have received a copy of the GNU General Public License version 3606 # 2 along with this work; if not, write to the Free Software Foundation, 3607 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3608 # 3609 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3610 # or visit www.oracle.com if you need additional information or have any 3611 # questions. 3612 # 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 # ... then the rest 3625 # 3626 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3627 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3628 # 3629 # This code is free software; you can redistribute it and/or modify it 3630 # under the terms of the GNU General Public License version 2 only, as 3631 # published by the Free Software Foundation. Oracle designates this 3632 # particular file as subject to the "Classpath" exception as provided 3633 # by Oracle in the LICENSE file that accompanied this code. 3634 # 3635 # This code is distributed in the hope that it will be useful, but WITHOUT 3636 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3637 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3638 # version 2 for more details (a copy is included in the LICENSE file that 3639 # accompanied this code). 3640 # 3641 # You should have received a copy of the GNU General Public License version 3642 # 2 along with this work; if not, write to the Free Software Foundation, 3643 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3644 # 3645 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3646 # or visit www.oracle.com if you need additional information or have any 3647 # questions. 3648 # 3649 3650 ######################################################################## 3651 # This file handles detection of the Boot JDK. The Boot JDK detection 3652 # process has been developed as a response to solve a complex real-world 3653 # problem. Initially, it was simple, but it has grown as platform after 3654 # platform, idiosyncracy after idiosyncracy has been supported. 3655 # 3656 # The basic idea is this: 3657 # 1) You need an acceptable *) JDK to use as a Boot JDK 3658 # 2) There are several ways to locate a JDK, that are mostly platform 3659 # dependent **) 3660 # 3) You can have multiple JDKs installed 3661 # 4) If possible, configure should try to dig out an acceptable JDK 3662 # automatically, without having to resort to command-line options 3663 # 3664 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3665 # javac) and not a JRE, etc. 3666 # 3667 # **) On Windows we typically use a well-known path. 3668 # On MacOSX we typically use the tool java_home. 3669 # On Linux we typically find javac in the $PATH, and then follow a 3670 # chain of symlinks that often ends up in a real JDK. 3671 # 3672 # This leads to the code where we check in different ways to locate a 3673 # JDK, and if one is found, check if it is acceptable. If not, we print 3674 # our reasons for rejecting it (useful when debugging non-working 3675 # configure situations) and continue checking the next one. 3676 ######################################################################## 3677 3678 # Execute the check given as argument, and verify the result 3679 # If the Boot JDK was previously found, do nothing 3680 # $1 A command line (typically autoconf macro) to execute 3681 3682 3683 # Test: Is bootjdk explicitely set by command line arguments? 3684 3685 3686 # Test: Is bootjdk available from builddeps? 3687 3688 3689 # Test: Is $JAVA_HOME set? 3690 3691 3692 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3693 3694 3695 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3696 # $1: Argument to the java_home binary (optional) 3697 3698 3699 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3700 3701 3702 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3703 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3704 # $1 = Path to directory containing jdk installations. 3705 # $2 = String to append to the found JDK directory to get the proper JDK home 3706 3707 3708 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3709 # environmental variable as base for where to look. 3710 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3711 3712 3713 # Test: Is there a JDK installed in default, well-known locations? 3714 3715 3716 # Check that a command-line tool in the Boot JDK is correct 3717 # $1 = name of variable to assign 3718 # $2 = name of binary 3719 3720 3721 ############################################################################### 3722 # 3723 # We need a Boot JDK to bootstrap the build. 3724 # 3725 3726 3727 3728 3729 3730 # 3731 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3732 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3733 # 3734 # This code is free software; you can redistribute it and/or modify it 3735 # under the terms of the GNU General Public License version 2 only, as 3736 # published by the Free Software Foundation. Oracle designates this 3737 # particular file as subject to the "Classpath" exception as provided 3738 # by Oracle in the LICENSE file that accompanied this code. 3739 # 3740 # This code is distributed in the hope that it will be useful, but WITHOUT 3741 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3742 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3743 # version 2 for more details (a copy is included in the LICENSE file that 3744 # accompanied this code). 3745 # 3746 # You should have received a copy of the GNU General Public License version 3747 # 2 along with this work; if not, write to the Free Software Foundation, 3748 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3749 # 3750 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3751 # or visit www.oracle.com if you need additional information or have any 3752 # questions. 3753 # 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 # 3775 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3776 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3777 # 3778 # This code is free software; you can redistribute it and/or modify it 3779 # under the terms of the GNU General Public License version 2 only, as 3780 # published by the Free Software Foundation. Oracle designates this 3781 # particular file as subject to the "Classpath" exception as provided 3782 # by Oracle in the LICENSE file that accompanied this code. 3783 # 3784 # This code is distributed in the hope that it will be useful, but WITHOUT 3785 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3786 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3787 # version 2 for more details (a copy is included in the LICENSE file that 3788 # accompanied this code). 3789 # 3790 # You should have received a copy of the GNU General Public License version 3791 # 2 along with this work; if not, write to the Free Software Foundation, 3792 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3793 # 3794 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3795 # or visit www.oracle.com if you need additional information or have any 3796 # questions. 3797 # 3798 3799 3800 3801 3802 3803 # Documentation on common flags used for solstudio in HIGHEST. 3804 # 3805 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3806 # done with care, there are some assumptions below that need to 3807 # be understood about the use of pointers, and IEEE behavior. 3808 # 3809 # -fns: Use non-standard floating point mode (not IEEE 754) 3810 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3811 # -fsingle: Use single precision floating point with 'float' 3812 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3813 # (Source with excessing pointer casting and data access with mixed 3814 # pointer types are not recommended) 3815 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3816 # (If you expect perfect errno behavior, do not use this) 3817 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3818 # -xrestrict: Pointer parameters to functions do not overlap 3819 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3820 # If you pass in multiple pointers to the same data, do not use this) 3821 # -xlibmil: Inline some library routines 3822 # (If you expect perfect errno behavior, do not use this) 3823 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3824 # (If you expect perfect errno behavior, do not use this) 3825 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3826 3827 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3828 # Bug? 3829 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3830 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3831 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3832 #fi 3833 3834 3835 3836 3837 3838 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3839 # [RUN-IF-FALSE]) 3840 # ------------------------------------------------------------ 3841 # Check that the c and c++ compilers support an argument 3842 3843 3844 # FLAGS_LINKER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3845 # [RUN-IF-FALSE]) 3846 # ------------------------------------------------------------ 3847 # Check that the linker support an argument 3848 3849 3850 3851 3852 # 3853 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3854 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3855 # 3856 # This code is free software; you can redistribute it and/or modify it 3857 # under the terms of the GNU General Public License version 2 only, as 3858 # published by the Free Software Foundation. Oracle designates this 3859 # particular file as subject to the "Classpath" exception as provided 3860 # by Oracle in the LICENSE file that accompanied this code. 3861 # 3862 # This code is distributed in the hope that it will be useful, but WITHOUT 3863 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3864 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3865 # version 2 for more details (a copy is included in the LICENSE file that 3866 # accompanied this code). 3867 # 3868 # You should have received a copy of the GNU General Public License version 3869 # 2 along with this work; if not, write to the Free Software Foundation, 3870 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3871 # 3872 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3873 # or visit www.oracle.com if you need additional information or have any 3874 # questions. 3875 # 3876 3877 3878 3879 3880 3881 cygwin_help() { 3882 case $1 in 3883 unzip) 3884 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3885 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3886 ;; 3887 zip) 3888 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3889 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3890 ;; 3891 make) 3892 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3893 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3894 ;; 3895 freetype) 3896 HELP_MSG=" 3897 The freetype library can now be build during the configure process. 3898 Download the freetype sources and unpack them into an arbitrary directory: 3899 3900 wget http://download.savannah.gnu.org/releases/freetype/freetype-2.5.3.tar.gz 3901 tar -xzf freetype-2.5.3.tar.gz 3902 3903 Then run configure with '--with-freetype-src=<freetype_src>'. This will 3904 automatically build the freetype library into '<freetype_src>/lib64' for 64-bit 3905 builds or into '<freetype_src>/lib32' for 32-bit builds. 3906 Afterwards you can always use '--with-freetype-include=<freetype_src>/include' 3907 and '--with-freetype-lib=<freetype_src>/lib32|64' for other builds." 3908 ;; 3909 esac 3910 } 3911 3912 msys_help() { 3913 PKGHANDLER_COMMAND="" 3914 } 3915 3916 apt_help() { 3917 case $1 in 3918 devkit) 3919 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3920 openjdk) 3921 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3922 alsa) 3923 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3924 cups) 3925 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3926 freetype) 3927 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3928 pulse) 3929 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3930 x11) 3931 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3932 ccache) 3933 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3934 esac 3935 } 3936 3937 yum_help() { 3938 case $1 in 3939 devkit) 3940 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3941 openjdk) 3942 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3943 alsa) 3944 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3945 cups) 3946 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3947 freetype) 3948 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3949 pulse) 3950 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3951 x11) 3952 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel libXi-devel" ;; 3953 ccache) 3954 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3955 esac 3956 } 3957 3958 port_help() { 3959 PKGHANDLER_COMMAND="" 3960 } 3961 3962 pkgutil_help() { 3963 PKGHANDLER_COMMAND="" 3964 } 3965 3966 pkgadd_help() { 3967 PKGHANDLER_COMMAND="" 3968 } 3969 3970 # This function will check if we're called from the "configure" wrapper while 3971 # printing --help. If so, we will print out additional information that can 3972 # only be extracted within the autoconf script, and then exit. This must be 3973 # called at the very beginning in configure.ac. 3974 3975 3976 3977 3978 3979 3980 # 3981 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3982 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3983 # 3984 # This code is free software; you can redistribute it and/or modify it 3985 # under the terms of the GNU General Public License version 2 only, as 3986 # published by the Free Software Foundation. Oracle designates this 3987 # particular file as subject to the "Classpath" exception as provided 3988 # by Oracle in the LICENSE file that accompanied this code. 3989 # 3990 # This code is distributed in the hope that it will be useful, but WITHOUT 3991 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3992 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3993 # version 2 for more details (a copy is included in the LICENSE file that 3994 # accompanied this code). 3995 # 3996 # You should have received a copy of the GNU General Public License version 3997 # 2 along with this work; if not, write to the Free Software Foundation, 3998 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3999 # 4000 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4001 # or visit www.oracle.com if you need additional information or have any 4002 # questions. 4003 # 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 ############################################################################### 4015 # 4016 # Should we build only OpenJDK even if closed sources are present? 4017 # 4018 4019 4020 4021 4022 ############################################################################### 4023 # 4024 # Setup version numbers 4025 # 4026 4027 4028 4029 4030 4031 4032 # 4033 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4034 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4035 # 4036 # This code is free software; you can redistribute it and/or modify it 4037 # under the terms of the GNU General Public License version 2 only, as 4038 # published by the Free Software Foundation. Oracle designates this 4039 # particular file as subject to the "Classpath" exception as provided 4040 # by Oracle in the LICENSE file that accompanied this code. 4041 # 4042 # This code is distributed in the hope that it will be useful, but WITHOUT 4043 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4044 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4045 # version 2 for more details (a copy is included in the LICENSE file that 4046 # accompanied this code). 4047 # 4048 # You should have received a copy of the GNU General Public License version 4049 # 2 along with this work; if not, write to the Free Software Foundation, 4050 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4051 # 4052 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4053 # or visit www.oracle.com if you need additional information or have any 4054 # questions. 4055 # 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 # 4078 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4079 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4080 # 4081 # This code is free software; you can redistribute it and/or modify it 4082 # under the terms of the GNU General Public License version 2 only, as 4083 # published by the Free Software Foundation. Oracle designates this 4084 # particular file as subject to the "Classpath" exception as provided 4085 # by Oracle in the LICENSE file that accompanied this code. 4086 # 4087 # This code is distributed in the hope that it will be useful, but WITHOUT 4088 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4089 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4090 # version 2 for more details (a copy is included in the LICENSE file that 4091 # accompanied this code). 4092 # 4093 # You should have received a copy of the GNU General Public License version 4094 # 2 along with this work; if not, write to the Free Software Foundation, 4095 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4096 # 4097 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4098 # or visit www.oracle.com if you need additional information or have any 4099 # questions. 4100 # 4101 4102 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4103 # Converts autoconf style CPU name to OpenJDK style, into 4104 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4105 4106 4107 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4108 # Converts autoconf style OS name to OpenJDK style, into 4109 # VAR_OS, VAR_OS_TYPE and VAR_OS_ENV. 4110 4111 4112 # Expects $host_os $host_cpu $build_os and $build_cpu 4113 # and $with_target_bits to have been setup! 4114 # 4115 # Translate the standard triplet(quadruplet) definition 4116 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4117 # OPENJDK_BUILD_OS, etc. 4118 4119 4120 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4121 # accordingly. Must be done after setting up build and target system, but before 4122 # doing anything else with these values. 4123 4124 4125 # Setup the legacy variables, for controlling the old makefiles. 4126 # 4127 4128 4129 4130 4131 #%%% Build and target systems %%% 4132 4133 4134 4135 4136 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4137 # Add -mX to various FLAGS variables. 4138 4139 4140 4141 4142 4143 4144 # 4145 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4146 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4147 # 4148 # This code is free software; you can redistribute it and/or modify it 4149 # under the terms of the GNU General Public License version 2 only, as 4150 # published by the Free Software Foundation. Oracle designates this 4151 # particular file as subject to the "Classpath" exception as provided 4152 # by Oracle in the LICENSE file that accompanied this code. 4153 # 4154 # This code is distributed in the hope that it will be useful, but WITHOUT 4155 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4156 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4157 # version 2 for more details (a copy is included in the LICENSE file that 4158 # accompanied this code). 4159 # 4160 # You should have received a copy of the GNU General Public License version 4161 # 2 along with this work; if not, write to the Free Software Foundation, 4162 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4163 # 4164 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4165 # or visit www.oracle.com if you need additional information or have any 4166 # questions. 4167 # 4168 4169 4170 4171 4172 4173 4174 4175 4176 # 4177 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4178 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4179 # 4180 # This code is free software; you can redistribute it and/or modify it 4181 # under the terms of the GNU General Public License version 2 only, as 4182 # published by the Free Software Foundation. Oracle designates this 4183 # particular file as subject to the "Classpath" exception as provided 4184 # by Oracle in the LICENSE file that accompanied this code. 4185 # 4186 # This code is distributed in the hope that it will be useful, but WITHOUT 4187 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4188 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4189 # version 2 for more details (a copy is included in the LICENSE file that 4190 # accompanied this code). 4191 # 4192 # You should have received a copy of the GNU General Public License version 4193 # 2 along with this work; if not, write to the Free Software Foundation, 4194 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4195 # 4196 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4197 # or visit www.oracle.com if you need additional information or have any 4198 # questions. 4199 # 4200 4201 ######################################################################## 4202 # This file is responsible for detecting, verifying and setting up the 4203 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4204 # proper paths to the binaries, but it will not setup any flags. 4205 # 4206 # The binaries used is determined by the toolchain type, which is the family of 4207 # compilers and related tools that are used. 4208 ######################################################################## 4209 4210 4211 # All valid toolchains, regardless of platform (used by help.m4) 4212 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4213 4214 # These toolchains are valid on different platforms 4215 VALID_TOOLCHAINS_linux="gcc clang" 4216 VALID_TOOLCHAINS_solaris="solstudio" 4217 VALID_TOOLCHAINS_macosx="gcc clang" 4218 VALID_TOOLCHAINS_aix="xlc" 4219 VALID_TOOLCHAINS_windows="microsoft" 4220 4221 # Toolchain descriptions 4222 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4223 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4224 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4225 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4226 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4227 4228 # Setup a number of variables describing how native output files are 4229 # named on this platform/toolchain. 4230 4231 4232 # Determine which toolchain type to use, and make sure it is valid for this 4233 # platform. Setup various information about the selected toolchain. 4234 4235 4236 # Before we start detecting the toolchain executables, we might need some 4237 # special setup, e.g. additional paths etc. 4238 4239 4240 # Restore path, etc 4241 4242 4243 # Check if a compiler is of the toolchain type we expect, and save the version 4244 # information from it. If the compiler does not match the expected type, 4245 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4246 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4247 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4248 # 4249 # $1 = compiler to test (CC or CXX) 4250 # $2 = human readable name of compiler (C or C++) 4251 4252 4253 # Try to locate the given C or C++ compiler in the path, or otherwise. 4254 # 4255 # $1 = compiler to test (CC or CXX) 4256 # $2 = human readable name of compiler (C or C++) 4257 # $3 = list of compiler names to search for 4258 4259 4260 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4261 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4262 # archiver (AR). Verify that the compilers are correct according to the 4263 # toolchain type. 4264 4265 4266 # Setup additional tools that is considered a part of the toolchain, but not the 4267 # core part. Many of these are highly platform-specific and do not exist, 4268 # and/or are not needed on all platforms. 4269 4270 4271 # Setup the build tools (i.e, the compiler and linker used to build programs 4272 # that should be run on the build platform, not the target platform, as a build 4273 # helper). Since the non-cross-compile case uses the normal, target compilers 4274 # for this, we can only do this after these have been setup. 4275 4276 4277 # Setup legacy variables that are still needed as alternative ways to refer to 4278 # parts of the toolchain. 4279 4280 4281 # Do some additional checks on the detected tools. 4282 4283 4284 # Setup the JTReg Regression Test Harness. 4285 4286 4287 # 4288 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4289 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4290 # 4291 # This code is free software; you can redistribute it and/or modify it 4292 # under the terms of the GNU General Public License version 2 only, as 4293 # published by the Free Software Foundation. Oracle designates this 4294 # particular file as subject to the "Classpath" exception as provided 4295 # by Oracle in the LICENSE file that accompanied this code. 4296 # 4297 # This code is distributed in the hope that it will be useful, but WITHOUT 4298 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4299 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4300 # version 2 for more details (a copy is included in the LICENSE file that 4301 # accompanied this code). 4302 # 4303 # You should have received a copy of the GNU General Public License version 4304 # 2 along with this work; if not, write to the Free Software Foundation, 4305 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4306 # 4307 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4308 # or visit www.oracle.com if you need additional information or have any 4309 # questions. 4310 # 4311 4312 4313 4314 4315 4316 4317 4318 # Check if the VS env variables were setup prior to running configure. 4319 # If not, then find vcvarsall.bat and run it automatically, and integrate 4320 # the set env variables into the spec file. 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 # This line needs to be here, verbatim, after all includes and the dummy hook 4333 # definitions. It is replaced with custom functionality when building 4334 # custom sources. 4335 #CUSTOM_AUTOCONF_INCLUDE 4336 4337 # Do not change or remove the following line, it is needed for consistency checks: 4338 DATE_WHEN_GENERATED=1420636751 4339 4340 ############################################################################### 4341 # 4342 # Initialization / Boot-strapping 4343 # 4344 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4345 # thus it jumps back and forth, each time gaining something needed later on. 4346 # 4347 ############################################################################### 4348 4349 # If we are requested to print additional help, do that and then exit. 4350 # This must be the very first call. 4351 4352 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4353 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4354 $PRINTF "Which are valid to use depends on the build platform.\n" 4355 for toolchain in $VALID_TOOLCHAINS_all; do 4356 # Use indirect variable referencing 4357 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4358 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4359 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4360 done 4361 4362 # And now exit directly 4363 exit 0 4364 fi 4365 4366 4367 # Basic initialization that must happen first of all in the normal process. 4368 4369 # Save the original command line. This is passed to us by the wrapper configure script. 4370 4371 DATE_WHEN_CONFIGURED=`LANG=C date` 4372 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4374 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4375 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4376 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4377 4378 4379 # Start with tools that do not need have cross compilation support 4380 # and can be expected to be found in the default PATH. These tools are 4381 # used by configure. Nor are these tools expected to be found in the 4382 # devkit from the builddeps server either, since they are 4383 # needed to download the devkit. 4384 4385 # First are all the simple required tools. 4386 4387 4388 4389 # Publish this variable in the help. 4390 4391 4392 if test "x$BASENAME" = x; then 4393 # The variable is not set by user, try to locate tool using the code snippet 4394 for ac_prog in basename 4395 do 4396 # Extract the first word of "$ac_prog", so it can be a program name with args. 4397 set dummy $ac_prog; ac_word=$2 4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399 $as_echo_n "checking for $ac_word... " >&6; } 4400 if ${ac_cv_path_BASENAME+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402 else 4403 case $BASENAME in 4404 [\\/]* | ?:[\\/]*) 4405 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4406 ;; 4407 *) 4408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4409 for as_dir in $PATH 4410 do 4411 IFS=$as_save_IFS 4412 test -z "$as_dir" && as_dir=. 4413 for ac_exec_ext in '' $ac_executable_extensions; do 4414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4415 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4417 break 2 4418 fi 4419 done 4420 done 4421 IFS=$as_save_IFS 4422 4423 ;; 4424 esac 4425 fi 4426 BASENAME=$ac_cv_path_BASENAME 4427 if test -n "$BASENAME"; then 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4429 $as_echo "$BASENAME" >&6; } 4430 else 4431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4432 $as_echo "no" >&6; } 4433 fi 4434 4435 4436 test -n "$BASENAME" && break 4437 done 4438 4439 else 4440 # The variable is set, but is it from the command line or the environment? 4441 4442 # Try to remove the string !BASENAME! from our list. 4443 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4444 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4445 # If it failed, the variable was not from the command line. Ignore it, 4446 # but warn the user (except for BASH, which is always set by the calling BASH). 4447 if test "xBASENAME" != xBASH; then 4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4449 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4450 fi 4451 # Try to locate tool using the code snippet 4452 for ac_prog in basename 4453 do 4454 # Extract the first word of "$ac_prog", so it can be a program name with args. 4455 set dummy $ac_prog; ac_word=$2 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4457 $as_echo_n "checking for $ac_word... " >&6; } 4458 if ${ac_cv_path_BASENAME+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460 else 4461 case $BASENAME in 4462 [\\/]* | ?:[\\/]*) 4463 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4464 ;; 4465 *) 4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4467 for as_dir in $PATH 4468 do 4469 IFS=$as_save_IFS 4470 test -z "$as_dir" && as_dir=. 4471 for ac_exec_ext in '' $ac_executable_extensions; do 4472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4473 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4475 break 2 4476 fi 4477 done 4478 done 4479 IFS=$as_save_IFS 4480 4481 ;; 4482 esac 4483 fi 4484 BASENAME=$ac_cv_path_BASENAME 4485 if test -n "$BASENAME"; then 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4487 $as_echo "$BASENAME" >&6; } 4488 else 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4490 $as_echo "no" >&6; } 4491 fi 4492 4493 4494 test -n "$BASENAME" && break 4495 done 4496 4497 else 4498 # If it succeeded, then it was overridden by the user. We will use it 4499 # for the tool. 4500 4501 # First remove it from the list of overridden variables, so we can test 4502 # for unknown variables in the end. 4503 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4504 4505 # Check if the provided tool contains a complete path. 4506 tool_specified="$BASENAME" 4507 tool_basename="${tool_specified##*/}" 4508 if test "x$tool_basename" = "x$tool_specified"; then 4509 # A command without a complete path is provided, search $PATH. 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4511 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4512 # Extract the first word of "$tool_basename", so it can be a program name with args. 4513 set dummy $tool_basename; ac_word=$2 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4515 $as_echo_n "checking for $ac_word... " >&6; } 4516 if ${ac_cv_path_BASENAME+:} false; then : 4517 $as_echo_n "(cached) " >&6 4518 else 4519 case $BASENAME in 4520 [\\/]* | ?:[\\/]*) 4521 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4522 ;; 4523 *) 4524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4525 for as_dir in $PATH 4526 do 4527 IFS=$as_save_IFS 4528 test -z "$as_dir" && as_dir=. 4529 for ac_exec_ext in '' $ac_executable_extensions; do 4530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4531 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4533 break 2 4534 fi 4535 done 4536 done 4537 IFS=$as_save_IFS 4538 4539 ;; 4540 esac 4541 fi 4542 BASENAME=$ac_cv_path_BASENAME 4543 if test -n "$BASENAME"; then 4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4545 $as_echo "$BASENAME" >&6; } 4546 else 4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4548 $as_echo "no" >&6; } 4549 fi 4550 4551 4552 if test "x$BASENAME" = x; then 4553 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4554 fi 4555 else 4556 # Otherwise we believe it is a complete path. Use it as it is. 4557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4558 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4560 $as_echo_n "checking for BASENAME... " >&6; } 4561 if test ! -x "$tool_specified"; then 4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4563 $as_echo "not found" >&6; } 4564 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4565 fi 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4567 $as_echo "$tool_specified" >&6; } 4568 fi 4569 fi 4570 fi 4571 4572 4573 4574 if test "x$BASENAME" = x; then 4575 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4576 fi 4577 4578 4579 4580 4581 4582 # Publish this variable in the help. 4583 4584 4585 if test "x$BASH" = x; then 4586 # The variable is not set by user, try to locate tool using the code snippet 4587 for ac_prog in bash 4588 do 4589 # Extract the first word of "$ac_prog", so it can be a program name with args. 4590 set dummy $ac_prog; ac_word=$2 4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4592 $as_echo_n "checking for $ac_word... " >&6; } 4593 if ${ac_cv_path_BASH+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595 else 4596 case $BASH in 4597 [\\/]* | ?:[\\/]*) 4598 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4599 ;; 4600 *) 4601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4602 for as_dir in $PATH 4603 do 4604 IFS=$as_save_IFS 4605 test -z "$as_dir" && as_dir=. 4606 for ac_exec_ext in '' $ac_executable_extensions; do 4607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4608 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4610 break 2 4611 fi 4612 done 4613 done 4614 IFS=$as_save_IFS 4615 4616 ;; 4617 esac 4618 fi 4619 BASH=$ac_cv_path_BASH 4620 if test -n "$BASH"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4622 $as_echo "$BASH" >&6; } 4623 else 4624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4625 $as_echo "no" >&6; } 4626 fi 4627 4628 4629 test -n "$BASH" && break 4630 done 4631 4632 else 4633 # The variable is set, but is it from the command line or the environment? 4634 4635 # Try to remove the string !BASH! from our list. 4636 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4637 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4638 # If it failed, the variable was not from the command line. Ignore it, 4639 # but warn the user (except for BASH, which is always set by the calling BASH). 4640 if test "xBASH" != xBASH; then 4641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4642 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4643 fi 4644 # Try to locate tool using the code snippet 4645 for ac_prog in bash 4646 do 4647 # Extract the first word of "$ac_prog", so it can be a program name with args. 4648 set dummy $ac_prog; ac_word=$2 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4650 $as_echo_n "checking for $ac_word... " >&6; } 4651 if ${ac_cv_path_BASH+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653 else 4654 case $BASH in 4655 [\\/]* | ?:[\\/]*) 4656 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4657 ;; 4658 *) 4659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4660 for as_dir in $PATH 4661 do 4662 IFS=$as_save_IFS 4663 test -z "$as_dir" && as_dir=. 4664 for ac_exec_ext in '' $ac_executable_extensions; do 4665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4666 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4668 break 2 4669 fi 4670 done 4671 done 4672 IFS=$as_save_IFS 4673 4674 ;; 4675 esac 4676 fi 4677 BASH=$ac_cv_path_BASH 4678 if test -n "$BASH"; then 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4680 $as_echo "$BASH" >&6; } 4681 else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683 $as_echo "no" >&6; } 4684 fi 4685 4686 4687 test -n "$BASH" && break 4688 done 4689 4690 else 4691 # If it succeeded, then it was overridden by the user. We will use it 4692 # for the tool. 4693 4694 # First remove it from the list of overridden variables, so we can test 4695 # for unknown variables in the end. 4696 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4697 4698 # Check if the provided tool contains a complete path. 4699 tool_specified="$BASH" 4700 tool_basename="${tool_specified##*/}" 4701 if test "x$tool_basename" = "x$tool_specified"; then 4702 # A command without a complete path is provided, search $PATH. 4703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4704 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4705 # Extract the first word of "$tool_basename", so it can be a program name with args. 4706 set dummy $tool_basename; ac_word=$2 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4708 $as_echo_n "checking for $ac_word... " >&6; } 4709 if ${ac_cv_path_BASH+:} false; then : 4710 $as_echo_n "(cached) " >&6 4711 else 4712 case $BASH in 4713 [\\/]* | ?:[\\/]*) 4714 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4715 ;; 4716 *) 4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4718 for as_dir in $PATH 4719 do 4720 IFS=$as_save_IFS 4721 test -z "$as_dir" && as_dir=. 4722 for ac_exec_ext in '' $ac_executable_extensions; do 4723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4724 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4726 break 2 4727 fi 4728 done 4729 done 4730 IFS=$as_save_IFS 4731 4732 ;; 4733 esac 4734 fi 4735 BASH=$ac_cv_path_BASH 4736 if test -n "$BASH"; then 4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4738 $as_echo "$BASH" >&6; } 4739 else 4740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4741 $as_echo "no" >&6; } 4742 fi 4743 4744 4745 if test "x$BASH" = x; then 4746 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4747 fi 4748 else 4749 # Otherwise we believe it is a complete path. Use it as it is. 4750 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4751 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4753 $as_echo_n "checking for BASH... " >&6; } 4754 if test ! -x "$tool_specified"; then 4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4756 $as_echo "not found" >&6; } 4757 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4758 fi 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4760 $as_echo "$tool_specified" >&6; } 4761 fi 4762 fi 4763 fi 4764 4765 4766 4767 if test "x$BASH" = x; then 4768 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4769 fi 4770 4771 4772 4773 4774 4775 # Publish this variable in the help. 4776 4777 4778 if test "x$CAT" = x; then 4779 # The variable is not set by user, try to locate tool using the code snippet 4780 for ac_prog in cat 4781 do 4782 # Extract the first word of "$ac_prog", so it can be a program name with args. 4783 set dummy $ac_prog; ac_word=$2 4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4785 $as_echo_n "checking for $ac_word... " >&6; } 4786 if ${ac_cv_path_CAT+:} false; then : 4787 $as_echo_n "(cached) " >&6 4788 else 4789 case $CAT in 4790 [\\/]* | ?:[\\/]*) 4791 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4792 ;; 4793 *) 4794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4795 for as_dir in $PATH 4796 do 4797 IFS=$as_save_IFS 4798 test -z "$as_dir" && as_dir=. 4799 for ac_exec_ext in '' $ac_executable_extensions; do 4800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4801 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4803 break 2 4804 fi 4805 done 4806 done 4807 IFS=$as_save_IFS 4808 4809 ;; 4810 esac 4811 fi 4812 CAT=$ac_cv_path_CAT 4813 if test -n "$CAT"; then 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4815 $as_echo "$CAT" >&6; } 4816 else 4817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4818 $as_echo "no" >&6; } 4819 fi 4820 4821 4822 test -n "$CAT" && break 4823 done 4824 4825 else 4826 # The variable is set, but is it from the command line or the environment? 4827 4828 # Try to remove the string !CAT! from our list. 4829 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4830 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4831 # If it failed, the variable was not from the command line. Ignore it, 4832 # but warn the user (except for BASH, which is always set by the calling BASH). 4833 if test "xCAT" != xBASH; then 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4835 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4836 fi 4837 # Try to locate tool using the code snippet 4838 for ac_prog in cat 4839 do 4840 # Extract the first word of "$ac_prog", so it can be a program name with args. 4841 set dummy $ac_prog; ac_word=$2 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4843 $as_echo_n "checking for $ac_word... " >&6; } 4844 if ${ac_cv_path_CAT+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846 else 4847 case $CAT in 4848 [\\/]* | ?:[\\/]*) 4849 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4850 ;; 4851 *) 4852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4853 for as_dir in $PATH 4854 do 4855 IFS=$as_save_IFS 4856 test -z "$as_dir" && as_dir=. 4857 for ac_exec_ext in '' $ac_executable_extensions; do 4858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4859 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4861 break 2 4862 fi 4863 done 4864 done 4865 IFS=$as_save_IFS 4866 4867 ;; 4868 esac 4869 fi 4870 CAT=$ac_cv_path_CAT 4871 if test -n "$CAT"; then 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4873 $as_echo "$CAT" >&6; } 4874 else 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4876 $as_echo "no" >&6; } 4877 fi 4878 4879 4880 test -n "$CAT" && break 4881 done 4882 4883 else 4884 # If it succeeded, then it was overridden by the user. We will use it 4885 # for the tool. 4886 4887 # First remove it from the list of overridden variables, so we can test 4888 # for unknown variables in the end. 4889 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4890 4891 # Check if the provided tool contains a complete path. 4892 tool_specified="$CAT" 4893 tool_basename="${tool_specified##*/}" 4894 if test "x$tool_basename" = "x$tool_specified"; then 4895 # A command without a complete path is provided, search $PATH. 4896 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4897 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4898 # Extract the first word of "$tool_basename", so it can be a program name with args. 4899 set dummy $tool_basename; ac_word=$2 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4901 $as_echo_n "checking for $ac_word... " >&6; } 4902 if ${ac_cv_path_CAT+:} false; then : 4903 $as_echo_n "(cached) " >&6 4904 else 4905 case $CAT in 4906 [\\/]* | ?:[\\/]*) 4907 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4908 ;; 4909 *) 4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4911 for as_dir in $PATH 4912 do 4913 IFS=$as_save_IFS 4914 test -z "$as_dir" && as_dir=. 4915 for ac_exec_ext in '' $ac_executable_extensions; do 4916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4917 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4919 break 2 4920 fi 4921 done 4922 done 4923 IFS=$as_save_IFS 4924 4925 ;; 4926 esac 4927 fi 4928 CAT=$ac_cv_path_CAT 4929 if test -n "$CAT"; then 4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4931 $as_echo "$CAT" >&6; } 4932 else 4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4934 $as_echo "no" >&6; } 4935 fi 4936 4937 4938 if test "x$CAT" = x; then 4939 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4940 fi 4941 else 4942 # Otherwise we believe it is a complete path. Use it as it is. 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4944 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4946 $as_echo_n "checking for CAT... " >&6; } 4947 if test ! -x "$tool_specified"; then 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4949 $as_echo "not found" >&6; } 4950 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4951 fi 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4953 $as_echo "$tool_specified" >&6; } 4954 fi 4955 fi 4956 fi 4957 4958 4959 4960 if test "x$CAT" = x; then 4961 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4962 fi 4963 4964 4965 4966 4967 4968 # Publish this variable in the help. 4969 4970 4971 if test "x$CHMOD" = x; then 4972 # The variable is not set by user, try to locate tool using the code snippet 4973 for ac_prog in chmod 4974 do 4975 # Extract the first word of "$ac_prog", so it can be a program name with args. 4976 set dummy $ac_prog; ac_word=$2 4977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4978 $as_echo_n "checking for $ac_word... " >&6; } 4979 if ${ac_cv_path_CHMOD+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981 else 4982 case $CHMOD in 4983 [\\/]* | ?:[\\/]*) 4984 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4985 ;; 4986 *) 4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4988 for as_dir in $PATH 4989 do 4990 IFS=$as_save_IFS 4991 test -z "$as_dir" && as_dir=. 4992 for ac_exec_ext in '' $ac_executable_extensions; do 4993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4994 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4996 break 2 4997 fi 4998 done 4999 done 5000 IFS=$as_save_IFS 5001 5002 ;; 5003 esac 5004 fi 5005 CHMOD=$ac_cv_path_CHMOD 5006 if test -n "$CHMOD"; then 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5008 $as_echo "$CHMOD" >&6; } 5009 else 5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5011 $as_echo "no" >&6; } 5012 fi 5013 5014 5015 test -n "$CHMOD" && break 5016 done 5017 5018 else 5019 # The variable is set, but is it from the command line or the environment? 5020 5021 # Try to remove the string !CHMOD! from our list. 5022 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 5023 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5024 # If it failed, the variable was not from the command line. Ignore it, 5025 # but warn the user (except for BASH, which is always set by the calling BASH). 5026 if test "xCHMOD" != xBASH; then 5027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 5028 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 5029 fi 5030 # Try to locate tool using the code snippet 5031 for ac_prog in chmod 5032 do 5033 # Extract the first word of "$ac_prog", so it can be a program name with args. 5034 set dummy $ac_prog; ac_word=$2 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5036 $as_echo_n "checking for $ac_word... " >&6; } 5037 if ${ac_cv_path_CHMOD+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039 else 5040 case $CHMOD in 5041 [\\/]* | ?:[\\/]*) 5042 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5043 ;; 5044 *) 5045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5046 for as_dir in $PATH 5047 do 5048 IFS=$as_save_IFS 5049 test -z "$as_dir" && as_dir=. 5050 for ac_exec_ext in '' $ac_executable_extensions; do 5051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5052 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5054 break 2 5055 fi 5056 done 5057 done 5058 IFS=$as_save_IFS 5059 5060 ;; 5061 esac 5062 fi 5063 CHMOD=$ac_cv_path_CHMOD 5064 if test -n "$CHMOD"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5066 $as_echo "$CHMOD" >&6; } 5067 else 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069 $as_echo "no" >&6; } 5070 fi 5071 5072 5073 test -n "$CHMOD" && break 5074 done 5075 5076 else 5077 # If it succeeded, then it was overridden by the user. We will use it 5078 # for the tool. 5079 5080 # First remove it from the list of overridden variables, so we can test 5081 # for unknown variables in the end. 5082 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5083 5084 # Check if the provided tool contains a complete path. 5085 tool_specified="$CHMOD" 5086 tool_basename="${tool_specified##*/}" 5087 if test "x$tool_basename" = "x$tool_specified"; then 5088 # A command without a complete path is provided, search $PATH. 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 5090 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 5091 # Extract the first word of "$tool_basename", so it can be a program name with args. 5092 set dummy $tool_basename; ac_word=$2 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5094 $as_echo_n "checking for $ac_word... " >&6; } 5095 if ${ac_cv_path_CHMOD+:} false; then : 5096 $as_echo_n "(cached) " >&6 5097 else 5098 case $CHMOD in 5099 [\\/]* | ?:[\\/]*) 5100 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5101 ;; 5102 *) 5103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5104 for as_dir in $PATH 5105 do 5106 IFS=$as_save_IFS 5107 test -z "$as_dir" && as_dir=. 5108 for ac_exec_ext in '' $ac_executable_extensions; do 5109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5110 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5112 break 2 5113 fi 5114 done 5115 done 5116 IFS=$as_save_IFS 5117 5118 ;; 5119 esac 5120 fi 5121 CHMOD=$ac_cv_path_CHMOD 5122 if test -n "$CHMOD"; then 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5124 $as_echo "$CHMOD" >&6; } 5125 else 5126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5127 $as_echo "no" >&6; } 5128 fi 5129 5130 5131 if test "x$CHMOD" = x; then 5132 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5133 fi 5134 else 5135 # Otherwise we believe it is a complete path. Use it as it is. 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5137 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5139 $as_echo_n "checking for CHMOD... " >&6; } 5140 if test ! -x "$tool_specified"; then 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5142 $as_echo "not found" >&6; } 5143 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5144 fi 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5146 $as_echo "$tool_specified" >&6; } 5147 fi 5148 fi 5149 fi 5150 5151 5152 5153 if test "x$CHMOD" = x; then 5154 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5155 fi 5156 5157 5158 5159 5160 5161 # Publish this variable in the help. 5162 5163 5164 if test "x$CMP" = x; then 5165 # The variable is not set by user, try to locate tool using the code snippet 5166 for ac_prog in cmp 5167 do 5168 # Extract the first word of "$ac_prog", so it can be a program name with args. 5169 set dummy $ac_prog; ac_word=$2 5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5171 $as_echo_n "checking for $ac_word... " >&6; } 5172 if ${ac_cv_path_CMP+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174 else 5175 case $CMP in 5176 [\\/]* | ?:[\\/]*) 5177 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5178 ;; 5179 *) 5180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5181 for as_dir in $PATH 5182 do 5183 IFS=$as_save_IFS 5184 test -z "$as_dir" && as_dir=. 5185 for ac_exec_ext in '' $ac_executable_extensions; do 5186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5187 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5189 break 2 5190 fi 5191 done 5192 done 5193 IFS=$as_save_IFS 5194 5195 ;; 5196 esac 5197 fi 5198 CMP=$ac_cv_path_CMP 5199 if test -n "$CMP"; then 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5201 $as_echo "$CMP" >&6; } 5202 else 5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5204 $as_echo "no" >&6; } 5205 fi 5206 5207 5208 test -n "$CMP" && break 5209 done 5210 5211 else 5212 # The variable is set, but is it from the command line or the environment? 5213 5214 # Try to remove the string !CMP! from our list. 5215 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5216 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5217 # If it failed, the variable was not from the command line. Ignore it, 5218 # but warn the user (except for BASH, which is always set by the calling BASH). 5219 if test "xCMP" != xBASH; then 5220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5221 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5222 fi 5223 # Try to locate tool using the code snippet 5224 for ac_prog in cmp 5225 do 5226 # Extract the first word of "$ac_prog", so it can be a program name with args. 5227 set dummy $ac_prog; ac_word=$2 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5229 $as_echo_n "checking for $ac_word... " >&6; } 5230 if ${ac_cv_path_CMP+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232 else 5233 case $CMP in 5234 [\\/]* | ?:[\\/]*) 5235 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5236 ;; 5237 *) 5238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5239 for as_dir in $PATH 5240 do 5241 IFS=$as_save_IFS 5242 test -z "$as_dir" && as_dir=. 5243 for ac_exec_ext in '' $ac_executable_extensions; do 5244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5245 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5247 break 2 5248 fi 5249 done 5250 done 5251 IFS=$as_save_IFS 5252 5253 ;; 5254 esac 5255 fi 5256 CMP=$ac_cv_path_CMP 5257 if test -n "$CMP"; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5259 $as_echo "$CMP" >&6; } 5260 else 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5262 $as_echo "no" >&6; } 5263 fi 5264 5265 5266 test -n "$CMP" && break 5267 done 5268 5269 else 5270 # If it succeeded, then it was overridden by the user. We will use it 5271 # for the tool. 5272 5273 # First remove it from the list of overridden variables, so we can test 5274 # for unknown variables in the end. 5275 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5276 5277 # Check if the provided tool contains a complete path. 5278 tool_specified="$CMP" 5279 tool_basename="${tool_specified##*/}" 5280 if test "x$tool_basename" = "x$tool_specified"; then 5281 # A command without a complete path is provided, search $PATH. 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5283 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5284 # Extract the first word of "$tool_basename", so it can be a program name with args. 5285 set dummy $tool_basename; ac_word=$2 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5287 $as_echo_n "checking for $ac_word... " >&6; } 5288 if ${ac_cv_path_CMP+:} false; then : 5289 $as_echo_n "(cached) " >&6 5290 else 5291 case $CMP in 5292 [\\/]* | ?:[\\/]*) 5293 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5294 ;; 5295 *) 5296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5297 for as_dir in $PATH 5298 do 5299 IFS=$as_save_IFS 5300 test -z "$as_dir" && as_dir=. 5301 for ac_exec_ext in '' $ac_executable_extensions; do 5302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5303 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5305 break 2 5306 fi 5307 done 5308 done 5309 IFS=$as_save_IFS 5310 5311 ;; 5312 esac 5313 fi 5314 CMP=$ac_cv_path_CMP 5315 if test -n "$CMP"; then 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5317 $as_echo "$CMP" >&6; } 5318 else 5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5320 $as_echo "no" >&6; } 5321 fi 5322 5323 5324 if test "x$CMP" = x; then 5325 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5326 fi 5327 else 5328 # Otherwise we believe it is a complete path. Use it as it is. 5329 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5330 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5332 $as_echo_n "checking for CMP... " >&6; } 5333 if test ! -x "$tool_specified"; then 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5335 $as_echo "not found" >&6; } 5336 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5337 fi 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5339 $as_echo "$tool_specified" >&6; } 5340 fi 5341 fi 5342 fi 5343 5344 5345 5346 if test "x$CMP" = x; then 5347 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5348 fi 5349 5350 5351 5352 5353 5354 # Publish this variable in the help. 5355 5356 5357 if test "x$COMM" = x; then 5358 # The variable is not set by user, try to locate tool using the code snippet 5359 for ac_prog in comm 5360 do 5361 # Extract the first word of "$ac_prog", so it can be a program name with args. 5362 set dummy $ac_prog; ac_word=$2 5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5364 $as_echo_n "checking for $ac_word... " >&6; } 5365 if ${ac_cv_path_COMM+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 case $COMM in 5369 [\\/]* | ?:[\\/]*) 5370 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5371 ;; 5372 *) 5373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5374 for as_dir in $PATH 5375 do 5376 IFS=$as_save_IFS 5377 test -z "$as_dir" && as_dir=. 5378 for ac_exec_ext in '' $ac_executable_extensions; do 5379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5380 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5382 break 2 5383 fi 5384 done 5385 done 5386 IFS=$as_save_IFS 5387 5388 ;; 5389 esac 5390 fi 5391 COMM=$ac_cv_path_COMM 5392 if test -n "$COMM"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5394 $as_echo "$COMM" >&6; } 5395 else 5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5397 $as_echo "no" >&6; } 5398 fi 5399 5400 5401 test -n "$COMM" && break 5402 done 5403 5404 else 5405 # The variable is set, but is it from the command line or the environment? 5406 5407 # Try to remove the string !COMM! from our list. 5408 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5409 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5410 # If it failed, the variable was not from the command line. Ignore it, 5411 # but warn the user (except for BASH, which is always set by the calling BASH). 5412 if test "xCOMM" != xBASH; then 5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5414 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5415 fi 5416 # Try to locate tool using the code snippet 5417 for ac_prog in comm 5418 do 5419 # Extract the first word of "$ac_prog", so it can be a program name with args. 5420 set dummy $ac_prog; ac_word=$2 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5422 $as_echo_n "checking for $ac_word... " >&6; } 5423 if ${ac_cv_path_COMM+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425 else 5426 case $COMM in 5427 [\\/]* | ?:[\\/]*) 5428 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5429 ;; 5430 *) 5431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5432 for as_dir in $PATH 5433 do 5434 IFS=$as_save_IFS 5435 test -z "$as_dir" && as_dir=. 5436 for ac_exec_ext in '' $ac_executable_extensions; do 5437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5438 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5440 break 2 5441 fi 5442 done 5443 done 5444 IFS=$as_save_IFS 5445 5446 ;; 5447 esac 5448 fi 5449 COMM=$ac_cv_path_COMM 5450 if test -n "$COMM"; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5452 $as_echo "$COMM" >&6; } 5453 else 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5455 $as_echo "no" >&6; } 5456 fi 5457 5458 5459 test -n "$COMM" && break 5460 done 5461 5462 else 5463 # If it succeeded, then it was overridden by the user. We will use it 5464 # for the tool. 5465 5466 # First remove it from the list of overridden variables, so we can test 5467 # for unknown variables in the end. 5468 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5469 5470 # Check if the provided tool contains a complete path. 5471 tool_specified="$COMM" 5472 tool_basename="${tool_specified##*/}" 5473 if test "x$tool_basename" = "x$tool_specified"; then 5474 # A command without a complete path is provided, search $PATH. 5475 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5476 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5477 # Extract the first word of "$tool_basename", so it can be a program name with args. 5478 set dummy $tool_basename; ac_word=$2 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5480 $as_echo_n "checking for $ac_word... " >&6; } 5481 if ${ac_cv_path_COMM+:} false; then : 5482 $as_echo_n "(cached) " >&6 5483 else 5484 case $COMM in 5485 [\\/]* | ?:[\\/]*) 5486 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5487 ;; 5488 *) 5489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5490 for as_dir in $PATH 5491 do 5492 IFS=$as_save_IFS 5493 test -z "$as_dir" && as_dir=. 5494 for ac_exec_ext in '' $ac_executable_extensions; do 5495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5496 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5498 break 2 5499 fi 5500 done 5501 done 5502 IFS=$as_save_IFS 5503 5504 ;; 5505 esac 5506 fi 5507 COMM=$ac_cv_path_COMM 5508 if test -n "$COMM"; then 5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5510 $as_echo "$COMM" >&6; } 5511 else 5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5513 $as_echo "no" >&6; } 5514 fi 5515 5516 5517 if test "x$COMM" = x; then 5518 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5519 fi 5520 else 5521 # Otherwise we believe it is a complete path. Use it as it is. 5522 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5523 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5525 $as_echo_n "checking for COMM... " >&6; } 5526 if test ! -x "$tool_specified"; then 5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5528 $as_echo "not found" >&6; } 5529 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5530 fi 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5532 $as_echo "$tool_specified" >&6; } 5533 fi 5534 fi 5535 fi 5536 5537 5538 5539 if test "x$COMM" = x; then 5540 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5541 fi 5542 5543 5544 5545 5546 5547 # Publish this variable in the help. 5548 5549 5550 if test "x$CP" = x; then 5551 # The variable is not set by user, try to locate tool using the code snippet 5552 for ac_prog in cp 5553 do 5554 # Extract the first word of "$ac_prog", so it can be a program name with args. 5555 set dummy $ac_prog; ac_word=$2 5556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5557 $as_echo_n "checking for $ac_word... " >&6; } 5558 if ${ac_cv_path_CP+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560 else 5561 case $CP in 5562 [\\/]* | ?:[\\/]*) 5563 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5564 ;; 5565 *) 5566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5567 for as_dir in $PATH 5568 do 5569 IFS=$as_save_IFS 5570 test -z "$as_dir" && as_dir=. 5571 for ac_exec_ext in '' $ac_executable_extensions; do 5572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5573 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5575 break 2 5576 fi 5577 done 5578 done 5579 IFS=$as_save_IFS 5580 5581 ;; 5582 esac 5583 fi 5584 CP=$ac_cv_path_CP 5585 if test -n "$CP"; then 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5587 $as_echo "$CP" >&6; } 5588 else 5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5590 $as_echo "no" >&6; } 5591 fi 5592 5593 5594 test -n "$CP" && break 5595 done 5596 5597 else 5598 # The variable is set, but is it from the command line or the environment? 5599 5600 # Try to remove the string !CP! from our list. 5601 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5602 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5603 # If it failed, the variable was not from the command line. Ignore it, 5604 # but warn the user (except for BASH, which is always set by the calling BASH). 5605 if test "xCP" != xBASH; then 5606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5607 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5608 fi 5609 # Try to locate tool using the code snippet 5610 for ac_prog in cp 5611 do 5612 # Extract the first word of "$ac_prog", so it can be a program name with args. 5613 set dummy $ac_prog; ac_word=$2 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5615 $as_echo_n "checking for $ac_word... " >&6; } 5616 if ${ac_cv_path_CP+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618 else 5619 case $CP in 5620 [\\/]* | ?:[\\/]*) 5621 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5622 ;; 5623 *) 5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5625 for as_dir in $PATH 5626 do 5627 IFS=$as_save_IFS 5628 test -z "$as_dir" && as_dir=. 5629 for ac_exec_ext in '' $ac_executable_extensions; do 5630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5631 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5633 break 2 5634 fi 5635 done 5636 done 5637 IFS=$as_save_IFS 5638 5639 ;; 5640 esac 5641 fi 5642 CP=$ac_cv_path_CP 5643 if test -n "$CP"; then 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5645 $as_echo "$CP" >&6; } 5646 else 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5648 $as_echo "no" >&6; } 5649 fi 5650 5651 5652 test -n "$CP" && break 5653 done 5654 5655 else 5656 # If it succeeded, then it was overridden by the user. We will use it 5657 # for the tool. 5658 5659 # First remove it from the list of overridden variables, so we can test 5660 # for unknown variables in the end. 5661 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5662 5663 # Check if the provided tool contains a complete path. 5664 tool_specified="$CP" 5665 tool_basename="${tool_specified##*/}" 5666 if test "x$tool_basename" = "x$tool_specified"; then 5667 # A command without a complete path is provided, search $PATH. 5668 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5669 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5670 # Extract the first word of "$tool_basename", so it can be a program name with args. 5671 set dummy $tool_basename; ac_word=$2 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5673 $as_echo_n "checking for $ac_word... " >&6; } 5674 if ${ac_cv_path_CP+:} false; then : 5675 $as_echo_n "(cached) " >&6 5676 else 5677 case $CP in 5678 [\\/]* | ?:[\\/]*) 5679 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5680 ;; 5681 *) 5682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5683 for as_dir in $PATH 5684 do 5685 IFS=$as_save_IFS 5686 test -z "$as_dir" && as_dir=. 5687 for ac_exec_ext in '' $ac_executable_extensions; do 5688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5689 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5691 break 2 5692 fi 5693 done 5694 done 5695 IFS=$as_save_IFS 5696 5697 ;; 5698 esac 5699 fi 5700 CP=$ac_cv_path_CP 5701 if test -n "$CP"; then 5702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5703 $as_echo "$CP" >&6; } 5704 else 5705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5706 $as_echo "no" >&6; } 5707 fi 5708 5709 5710 if test "x$CP" = x; then 5711 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5712 fi 5713 else 5714 # Otherwise we believe it is a complete path. Use it as it is. 5715 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5716 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5718 $as_echo_n "checking for CP... " >&6; } 5719 if test ! -x "$tool_specified"; then 5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5721 $as_echo "not found" >&6; } 5722 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5723 fi 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5725 $as_echo "$tool_specified" >&6; } 5726 fi 5727 fi 5728 fi 5729 5730 5731 5732 if test "x$CP" = x; then 5733 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5734 fi 5735 5736 5737 5738 5739 5740 # Publish this variable in the help. 5741 5742 5743 if test "x$CUT" = x; then 5744 # The variable is not set by user, try to locate tool using the code snippet 5745 for ac_prog in cut 5746 do 5747 # Extract the first word of "$ac_prog", so it can be a program name with args. 5748 set dummy $ac_prog; ac_word=$2 5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5750 $as_echo_n "checking for $ac_word... " >&6; } 5751 if ${ac_cv_path_CUT+:} false; then : 5752 $as_echo_n "(cached) " >&6 5753 else 5754 case $CUT in 5755 [\\/]* | ?:[\\/]*) 5756 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5757 ;; 5758 *) 5759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5760 for as_dir in $PATH 5761 do 5762 IFS=$as_save_IFS 5763 test -z "$as_dir" && as_dir=. 5764 for ac_exec_ext in '' $ac_executable_extensions; do 5765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5766 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5768 break 2 5769 fi 5770 done 5771 done 5772 IFS=$as_save_IFS 5773 5774 ;; 5775 esac 5776 fi 5777 CUT=$ac_cv_path_CUT 5778 if test -n "$CUT"; then 5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5780 $as_echo "$CUT" >&6; } 5781 else 5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5783 $as_echo "no" >&6; } 5784 fi 5785 5786 5787 test -n "$CUT" && break 5788 done 5789 5790 else 5791 # The variable is set, but is it from the command line or the environment? 5792 5793 # Try to remove the string !CUT! from our list. 5794 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5795 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5796 # If it failed, the variable was not from the command line. Ignore it, 5797 # but warn the user (except for BASH, which is always set by the calling BASH). 5798 if test "xCUT" != xBASH; then 5799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5800 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5801 fi 5802 # Try to locate tool using the code snippet 5803 for ac_prog in cut 5804 do 5805 # Extract the first word of "$ac_prog", so it can be a program name with args. 5806 set dummy $ac_prog; ac_word=$2 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5808 $as_echo_n "checking for $ac_word... " >&6; } 5809 if ${ac_cv_path_CUT+:} false; then : 5810 $as_echo_n "(cached) " >&6 5811 else 5812 case $CUT in 5813 [\\/]* | ?:[\\/]*) 5814 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5815 ;; 5816 *) 5817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5818 for as_dir in $PATH 5819 do 5820 IFS=$as_save_IFS 5821 test -z "$as_dir" && as_dir=. 5822 for ac_exec_ext in '' $ac_executable_extensions; do 5823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5824 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5826 break 2 5827 fi 5828 done 5829 done 5830 IFS=$as_save_IFS 5831 5832 ;; 5833 esac 5834 fi 5835 CUT=$ac_cv_path_CUT 5836 if test -n "$CUT"; then 5837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5838 $as_echo "$CUT" >&6; } 5839 else 5840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5841 $as_echo "no" >&6; } 5842 fi 5843 5844 5845 test -n "$CUT" && break 5846 done 5847 5848 else 5849 # If it succeeded, then it was overridden by the user. We will use it 5850 # for the tool. 5851 5852 # First remove it from the list of overridden variables, so we can test 5853 # for unknown variables in the end. 5854 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5855 5856 # Check if the provided tool contains a complete path. 5857 tool_specified="$CUT" 5858 tool_basename="${tool_specified##*/}" 5859 if test "x$tool_basename" = "x$tool_specified"; then 5860 # A command without a complete path is provided, search $PATH. 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5862 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5863 # Extract the first word of "$tool_basename", so it can be a program name with args. 5864 set dummy $tool_basename; ac_word=$2 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5866 $as_echo_n "checking for $ac_word... " >&6; } 5867 if ${ac_cv_path_CUT+:} false; then : 5868 $as_echo_n "(cached) " >&6 5869 else 5870 case $CUT in 5871 [\\/]* | ?:[\\/]*) 5872 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5873 ;; 5874 *) 5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5876 for as_dir in $PATH 5877 do 5878 IFS=$as_save_IFS 5879 test -z "$as_dir" && as_dir=. 5880 for ac_exec_ext in '' $ac_executable_extensions; do 5881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5882 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5884 break 2 5885 fi 5886 done 5887 done 5888 IFS=$as_save_IFS 5889 5890 ;; 5891 esac 5892 fi 5893 CUT=$ac_cv_path_CUT 5894 if test -n "$CUT"; then 5895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5896 $as_echo "$CUT" >&6; } 5897 else 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5899 $as_echo "no" >&6; } 5900 fi 5901 5902 5903 if test "x$CUT" = x; then 5904 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5905 fi 5906 else 5907 # Otherwise we believe it is a complete path. Use it as it is. 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5909 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5911 $as_echo_n "checking for CUT... " >&6; } 5912 if test ! -x "$tool_specified"; then 5913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5914 $as_echo "not found" >&6; } 5915 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5916 fi 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5918 $as_echo "$tool_specified" >&6; } 5919 fi 5920 fi 5921 fi 5922 5923 5924 5925 if test "x$CUT" = x; then 5926 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5927 fi 5928 5929 5930 5931 5932 5933 # Publish this variable in the help. 5934 5935 5936 if test "x$DATE" = x; then 5937 # The variable is not set by user, try to locate tool using the code snippet 5938 for ac_prog in date 5939 do 5940 # Extract the first word of "$ac_prog", so it can be a program name with args. 5941 set dummy $ac_prog; ac_word=$2 5942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5943 $as_echo_n "checking for $ac_word... " >&6; } 5944 if ${ac_cv_path_DATE+:} false; then : 5945 $as_echo_n "(cached) " >&6 5946 else 5947 case $DATE in 5948 [\\/]* | ?:[\\/]*) 5949 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5950 ;; 5951 *) 5952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5953 for as_dir in $PATH 5954 do 5955 IFS=$as_save_IFS 5956 test -z "$as_dir" && as_dir=. 5957 for ac_exec_ext in '' $ac_executable_extensions; do 5958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5959 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5961 break 2 5962 fi 5963 done 5964 done 5965 IFS=$as_save_IFS 5966 5967 ;; 5968 esac 5969 fi 5970 DATE=$ac_cv_path_DATE 5971 if test -n "$DATE"; then 5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5973 $as_echo "$DATE" >&6; } 5974 else 5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5976 $as_echo "no" >&6; } 5977 fi 5978 5979 5980 test -n "$DATE" && break 5981 done 5982 5983 else 5984 # The variable is set, but is it from the command line or the environment? 5985 5986 # Try to remove the string !DATE! from our list. 5987 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 5988 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5989 # If it failed, the variable was not from the command line. Ignore it, 5990 # but warn the user (except for BASH, which is always set by the calling BASH). 5991 if test "xDATE" != xBASH; then 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 5993 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 5994 fi 5995 # Try to locate tool using the code snippet 5996 for ac_prog in date 5997 do 5998 # Extract the first word of "$ac_prog", so it can be a program name with args. 5999 set dummy $ac_prog; ac_word=$2 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6001 $as_echo_n "checking for $ac_word... " >&6; } 6002 if ${ac_cv_path_DATE+:} false; then : 6003 $as_echo_n "(cached) " >&6 6004 else 6005 case $DATE in 6006 [\\/]* | ?:[\\/]*) 6007 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6008 ;; 6009 *) 6010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6011 for as_dir in $PATH 6012 do 6013 IFS=$as_save_IFS 6014 test -z "$as_dir" && as_dir=. 6015 for ac_exec_ext in '' $ac_executable_extensions; do 6016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6017 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6019 break 2 6020 fi 6021 done 6022 done 6023 IFS=$as_save_IFS 6024 6025 ;; 6026 esac 6027 fi 6028 DATE=$ac_cv_path_DATE 6029 if test -n "$DATE"; then 6030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6031 $as_echo "$DATE" >&6; } 6032 else 6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6034 $as_echo "no" >&6; } 6035 fi 6036 6037 6038 test -n "$DATE" && break 6039 done 6040 6041 else 6042 # If it succeeded, then it was overridden by the user. We will use it 6043 # for the tool. 6044 6045 # First remove it from the list of overridden variables, so we can test 6046 # for unknown variables in the end. 6047 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6048 6049 # Check if the provided tool contains a complete path. 6050 tool_specified="$DATE" 6051 tool_basename="${tool_specified##*/}" 6052 if test "x$tool_basename" = "x$tool_specified"; then 6053 # A command without a complete path is provided, search $PATH. 6054 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6055 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6056 # Extract the first word of "$tool_basename", so it can be a program name with args. 6057 set dummy $tool_basename; ac_word=$2 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6059 $as_echo_n "checking for $ac_word... " >&6; } 6060 if ${ac_cv_path_DATE+:} false; then : 6061 $as_echo_n "(cached) " >&6 6062 else 6063 case $DATE in 6064 [\\/]* | ?:[\\/]*) 6065 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6066 ;; 6067 *) 6068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6069 for as_dir in $PATH 6070 do 6071 IFS=$as_save_IFS 6072 test -z "$as_dir" && as_dir=. 6073 for ac_exec_ext in '' $ac_executable_extensions; do 6074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6075 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6077 break 2 6078 fi 6079 done 6080 done 6081 IFS=$as_save_IFS 6082 6083 ;; 6084 esac 6085 fi 6086 DATE=$ac_cv_path_DATE 6087 if test -n "$DATE"; then 6088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6089 $as_echo "$DATE" >&6; } 6090 else 6091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6092 $as_echo "no" >&6; } 6093 fi 6094 6095 6096 if test "x$DATE" = x; then 6097 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6098 fi 6099 else 6100 # Otherwise we believe it is a complete path. Use it as it is. 6101 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6102 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6104 $as_echo_n "checking for DATE... " >&6; } 6105 if test ! -x "$tool_specified"; then 6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6107 $as_echo "not found" >&6; } 6108 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6109 fi 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6111 $as_echo "$tool_specified" >&6; } 6112 fi 6113 fi 6114 fi 6115 6116 6117 6118 if test "x$DATE" = x; then 6119 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6120 fi 6121 6122 6123 6124 6125 6126 # Publish this variable in the help. 6127 6128 6129 if test "x$DIFF" = x; then 6130 # The variable is not set by user, try to locate tool using the code snippet 6131 for ac_prog in gdiff diff 6132 do 6133 # Extract the first word of "$ac_prog", so it can be a program name with args. 6134 set dummy $ac_prog; ac_word=$2 6135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6136 $as_echo_n "checking for $ac_word... " >&6; } 6137 if ${ac_cv_path_DIFF+:} false; then : 6138 $as_echo_n "(cached) " >&6 6139 else 6140 case $DIFF in 6141 [\\/]* | ?:[\\/]*) 6142 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6143 ;; 6144 *) 6145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6146 for as_dir in $PATH 6147 do 6148 IFS=$as_save_IFS 6149 test -z "$as_dir" && as_dir=. 6150 for ac_exec_ext in '' $ac_executable_extensions; do 6151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6152 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6154 break 2 6155 fi 6156 done 6157 done 6158 IFS=$as_save_IFS 6159 6160 ;; 6161 esac 6162 fi 6163 DIFF=$ac_cv_path_DIFF 6164 if test -n "$DIFF"; then 6165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6166 $as_echo "$DIFF" >&6; } 6167 else 6168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6169 $as_echo "no" >&6; } 6170 fi 6171 6172 6173 test -n "$DIFF" && break 6174 done 6175 6176 else 6177 # The variable is set, but is it from the command line or the environment? 6178 6179 # Try to remove the string !DIFF! from our list. 6180 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6181 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6182 # If it failed, the variable was not from the command line. Ignore it, 6183 # but warn the user (except for BASH, which is always set by the calling BASH). 6184 if test "xDIFF" != xBASH; then 6185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6186 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6187 fi 6188 # Try to locate tool using the code snippet 6189 for ac_prog in gdiff diff 6190 do 6191 # Extract the first word of "$ac_prog", so it can be a program name with args. 6192 set dummy $ac_prog; ac_word=$2 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6194 $as_echo_n "checking for $ac_word... " >&6; } 6195 if ${ac_cv_path_DIFF+:} false; then : 6196 $as_echo_n "(cached) " >&6 6197 else 6198 case $DIFF in 6199 [\\/]* | ?:[\\/]*) 6200 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6201 ;; 6202 *) 6203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6204 for as_dir in $PATH 6205 do 6206 IFS=$as_save_IFS 6207 test -z "$as_dir" && as_dir=. 6208 for ac_exec_ext in '' $ac_executable_extensions; do 6209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6210 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6212 break 2 6213 fi 6214 done 6215 done 6216 IFS=$as_save_IFS 6217 6218 ;; 6219 esac 6220 fi 6221 DIFF=$ac_cv_path_DIFF 6222 if test -n "$DIFF"; then 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6224 $as_echo "$DIFF" >&6; } 6225 else 6226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6227 $as_echo "no" >&6; } 6228 fi 6229 6230 6231 test -n "$DIFF" && break 6232 done 6233 6234 else 6235 # If it succeeded, then it was overridden by the user. We will use it 6236 # for the tool. 6237 6238 # First remove it from the list of overridden variables, so we can test 6239 # for unknown variables in the end. 6240 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6241 6242 # Check if the provided tool contains a complete path. 6243 tool_specified="$DIFF" 6244 tool_basename="${tool_specified##*/}" 6245 if test "x$tool_basename" = "x$tool_specified"; then 6246 # A command without a complete path is provided, search $PATH. 6247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6248 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6249 # Extract the first word of "$tool_basename", so it can be a program name with args. 6250 set dummy $tool_basename; ac_word=$2 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6252 $as_echo_n "checking for $ac_word... " >&6; } 6253 if ${ac_cv_path_DIFF+:} false; then : 6254 $as_echo_n "(cached) " >&6 6255 else 6256 case $DIFF in 6257 [\\/]* | ?:[\\/]*) 6258 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6259 ;; 6260 *) 6261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6262 for as_dir in $PATH 6263 do 6264 IFS=$as_save_IFS 6265 test -z "$as_dir" && as_dir=. 6266 for ac_exec_ext in '' $ac_executable_extensions; do 6267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6268 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6270 break 2 6271 fi 6272 done 6273 done 6274 IFS=$as_save_IFS 6275 6276 ;; 6277 esac 6278 fi 6279 DIFF=$ac_cv_path_DIFF 6280 if test -n "$DIFF"; then 6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6282 $as_echo "$DIFF" >&6; } 6283 else 6284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6285 $as_echo "no" >&6; } 6286 fi 6287 6288 6289 if test "x$DIFF" = x; then 6290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6291 fi 6292 else 6293 # Otherwise we believe it is a complete path. Use it as it is. 6294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6295 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6297 $as_echo_n "checking for DIFF... " >&6; } 6298 if test ! -x "$tool_specified"; then 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6300 $as_echo "not found" >&6; } 6301 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6302 fi 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6304 $as_echo "$tool_specified" >&6; } 6305 fi 6306 fi 6307 fi 6308 6309 6310 6311 if test "x$DIFF" = x; then 6312 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6313 fi 6314 6315 6316 6317 6318 6319 # Publish this variable in the help. 6320 6321 6322 if test "x$DIRNAME" = x; then 6323 # The variable is not set by user, try to locate tool using the code snippet 6324 for ac_prog in dirname 6325 do 6326 # Extract the first word of "$ac_prog", so it can be a program name with args. 6327 set dummy $ac_prog; ac_word=$2 6328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6329 $as_echo_n "checking for $ac_word... " >&6; } 6330 if ${ac_cv_path_DIRNAME+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332 else 6333 case $DIRNAME in 6334 [\\/]* | ?:[\\/]*) 6335 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6336 ;; 6337 *) 6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6339 for as_dir in $PATH 6340 do 6341 IFS=$as_save_IFS 6342 test -z "$as_dir" && as_dir=. 6343 for ac_exec_ext in '' $ac_executable_extensions; do 6344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6345 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6347 break 2 6348 fi 6349 done 6350 done 6351 IFS=$as_save_IFS 6352 6353 ;; 6354 esac 6355 fi 6356 DIRNAME=$ac_cv_path_DIRNAME 6357 if test -n "$DIRNAME"; then 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6359 $as_echo "$DIRNAME" >&6; } 6360 else 6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6362 $as_echo "no" >&6; } 6363 fi 6364 6365 6366 test -n "$DIRNAME" && break 6367 done 6368 6369 else 6370 # The variable is set, but is it from the command line or the environment? 6371 6372 # Try to remove the string !DIRNAME! from our list. 6373 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6374 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6375 # If it failed, the variable was not from the command line. Ignore it, 6376 # but warn the user (except for BASH, which is always set by the calling BASH). 6377 if test "xDIRNAME" != xBASH; then 6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6379 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6380 fi 6381 # Try to locate tool using the code snippet 6382 for ac_prog in dirname 6383 do 6384 # Extract the first word of "$ac_prog", so it can be a program name with args. 6385 set dummy $ac_prog; ac_word=$2 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6387 $as_echo_n "checking for $ac_word... " >&6; } 6388 if ${ac_cv_path_DIRNAME+:} false; then : 6389 $as_echo_n "(cached) " >&6 6390 else 6391 case $DIRNAME in 6392 [\\/]* | ?:[\\/]*) 6393 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6394 ;; 6395 *) 6396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6397 for as_dir in $PATH 6398 do 6399 IFS=$as_save_IFS 6400 test -z "$as_dir" && as_dir=. 6401 for ac_exec_ext in '' $ac_executable_extensions; do 6402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6403 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6405 break 2 6406 fi 6407 done 6408 done 6409 IFS=$as_save_IFS 6410 6411 ;; 6412 esac 6413 fi 6414 DIRNAME=$ac_cv_path_DIRNAME 6415 if test -n "$DIRNAME"; then 6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6417 $as_echo "$DIRNAME" >&6; } 6418 else 6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6420 $as_echo "no" >&6; } 6421 fi 6422 6423 6424 test -n "$DIRNAME" && break 6425 done 6426 6427 else 6428 # If it succeeded, then it was overridden by the user. We will use it 6429 # for the tool. 6430 6431 # First remove it from the list of overridden variables, so we can test 6432 # for unknown variables in the end. 6433 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6434 6435 # Check if the provided tool contains a complete path. 6436 tool_specified="$DIRNAME" 6437 tool_basename="${tool_specified##*/}" 6438 if test "x$tool_basename" = "x$tool_specified"; then 6439 # A command without a complete path is provided, search $PATH. 6440 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6441 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6442 # Extract the first word of "$tool_basename", so it can be a program name with args. 6443 set dummy $tool_basename; ac_word=$2 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6445 $as_echo_n "checking for $ac_word... " >&6; } 6446 if ${ac_cv_path_DIRNAME+:} false; then : 6447 $as_echo_n "(cached) " >&6 6448 else 6449 case $DIRNAME in 6450 [\\/]* | ?:[\\/]*) 6451 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6452 ;; 6453 *) 6454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455 for as_dir in $PATH 6456 do 6457 IFS=$as_save_IFS 6458 test -z "$as_dir" && as_dir=. 6459 for ac_exec_ext in '' $ac_executable_extensions; do 6460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6461 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 break 2 6464 fi 6465 done 6466 done 6467 IFS=$as_save_IFS 6468 6469 ;; 6470 esac 6471 fi 6472 DIRNAME=$ac_cv_path_DIRNAME 6473 if test -n "$DIRNAME"; then 6474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6475 $as_echo "$DIRNAME" >&6; } 6476 else 6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6478 $as_echo "no" >&6; } 6479 fi 6480 6481 6482 if test "x$DIRNAME" = x; then 6483 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6484 fi 6485 else 6486 # Otherwise we believe it is a complete path. Use it as it is. 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6488 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6490 $as_echo_n "checking for DIRNAME... " >&6; } 6491 if test ! -x "$tool_specified"; then 6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6493 $as_echo "not found" >&6; } 6494 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6495 fi 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6497 $as_echo "$tool_specified" >&6; } 6498 fi 6499 fi 6500 fi 6501 6502 6503 6504 if test "x$DIRNAME" = x; then 6505 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6506 fi 6507 6508 6509 6510 6511 6512 # Publish this variable in the help. 6513 6514 6515 if test "x$ECHO" = x; then 6516 # The variable is not set by user, try to locate tool using the code snippet 6517 for ac_prog in echo 6518 do 6519 # Extract the first word of "$ac_prog", so it can be a program name with args. 6520 set dummy $ac_prog; ac_word=$2 6521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6522 $as_echo_n "checking for $ac_word... " >&6; } 6523 if ${ac_cv_path_ECHO+:} false; then : 6524 $as_echo_n "(cached) " >&6 6525 else 6526 case $ECHO in 6527 [\\/]* | ?:[\\/]*) 6528 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6529 ;; 6530 *) 6531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6532 for as_dir in $PATH 6533 do 6534 IFS=$as_save_IFS 6535 test -z "$as_dir" && as_dir=. 6536 for ac_exec_ext in '' $ac_executable_extensions; do 6537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6538 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6540 break 2 6541 fi 6542 done 6543 done 6544 IFS=$as_save_IFS 6545 6546 ;; 6547 esac 6548 fi 6549 ECHO=$ac_cv_path_ECHO 6550 if test -n "$ECHO"; then 6551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6552 $as_echo "$ECHO" >&6; } 6553 else 6554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6555 $as_echo "no" >&6; } 6556 fi 6557 6558 6559 test -n "$ECHO" && break 6560 done 6561 6562 else 6563 # The variable is set, but is it from the command line or the environment? 6564 6565 # Try to remove the string !ECHO! from our list. 6566 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6567 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6568 # If it failed, the variable was not from the command line. Ignore it, 6569 # but warn the user (except for BASH, which is always set by the calling BASH). 6570 if test "xECHO" != xBASH; then 6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6572 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6573 fi 6574 # Try to locate tool using the code snippet 6575 for ac_prog in echo 6576 do 6577 # Extract the first word of "$ac_prog", so it can be a program name with args. 6578 set dummy $ac_prog; ac_word=$2 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6580 $as_echo_n "checking for $ac_word... " >&6; } 6581 if ${ac_cv_path_ECHO+:} false; then : 6582 $as_echo_n "(cached) " >&6 6583 else 6584 case $ECHO in 6585 [\\/]* | ?:[\\/]*) 6586 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6587 ;; 6588 *) 6589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6590 for as_dir in $PATH 6591 do 6592 IFS=$as_save_IFS 6593 test -z "$as_dir" && as_dir=. 6594 for ac_exec_ext in '' $ac_executable_extensions; do 6595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6596 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6598 break 2 6599 fi 6600 done 6601 done 6602 IFS=$as_save_IFS 6603 6604 ;; 6605 esac 6606 fi 6607 ECHO=$ac_cv_path_ECHO 6608 if test -n "$ECHO"; then 6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6610 $as_echo "$ECHO" >&6; } 6611 else 6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6613 $as_echo "no" >&6; } 6614 fi 6615 6616 6617 test -n "$ECHO" && break 6618 done 6619 6620 else 6621 # If it succeeded, then it was overridden by the user. We will use it 6622 # for the tool. 6623 6624 # First remove it from the list of overridden variables, so we can test 6625 # for unknown variables in the end. 6626 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6627 6628 # Check if the provided tool contains a complete path. 6629 tool_specified="$ECHO" 6630 tool_basename="${tool_specified##*/}" 6631 if test "x$tool_basename" = "x$tool_specified"; then 6632 # A command without a complete path is provided, search $PATH. 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6634 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6635 # Extract the first word of "$tool_basename", so it can be a program name with args. 6636 set dummy $tool_basename; ac_word=$2 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6638 $as_echo_n "checking for $ac_word... " >&6; } 6639 if ${ac_cv_path_ECHO+:} false; then : 6640 $as_echo_n "(cached) " >&6 6641 else 6642 case $ECHO in 6643 [\\/]* | ?:[\\/]*) 6644 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6645 ;; 6646 *) 6647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6648 for as_dir in $PATH 6649 do 6650 IFS=$as_save_IFS 6651 test -z "$as_dir" && as_dir=. 6652 for ac_exec_ext in '' $ac_executable_extensions; do 6653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6654 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6656 break 2 6657 fi 6658 done 6659 done 6660 IFS=$as_save_IFS 6661 6662 ;; 6663 esac 6664 fi 6665 ECHO=$ac_cv_path_ECHO 6666 if test -n "$ECHO"; then 6667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6668 $as_echo "$ECHO" >&6; } 6669 else 6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6671 $as_echo "no" >&6; } 6672 fi 6673 6674 6675 if test "x$ECHO" = x; then 6676 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6677 fi 6678 else 6679 # Otherwise we believe it is a complete path. Use it as it is. 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6681 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6683 $as_echo_n "checking for ECHO... " >&6; } 6684 if test ! -x "$tool_specified"; then 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6686 $as_echo "not found" >&6; } 6687 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6688 fi 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6690 $as_echo "$tool_specified" >&6; } 6691 fi 6692 fi 6693 fi 6694 6695 6696 6697 if test "x$ECHO" = x; then 6698 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6699 fi 6700 6701 6702 6703 6704 6705 # Publish this variable in the help. 6706 6707 6708 if test "x$EXPR" = x; then 6709 # The variable is not set by user, try to locate tool using the code snippet 6710 for ac_prog in expr 6711 do 6712 # Extract the first word of "$ac_prog", so it can be a program name with args. 6713 set dummy $ac_prog; ac_word=$2 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6715 $as_echo_n "checking for $ac_word... " >&6; } 6716 if ${ac_cv_path_EXPR+:} false; then : 6717 $as_echo_n "(cached) " >&6 6718 else 6719 case $EXPR in 6720 [\\/]* | ?:[\\/]*) 6721 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6722 ;; 6723 *) 6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6725 for as_dir in $PATH 6726 do 6727 IFS=$as_save_IFS 6728 test -z "$as_dir" && as_dir=. 6729 for ac_exec_ext in '' $ac_executable_extensions; do 6730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6731 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6733 break 2 6734 fi 6735 done 6736 done 6737 IFS=$as_save_IFS 6738 6739 ;; 6740 esac 6741 fi 6742 EXPR=$ac_cv_path_EXPR 6743 if test -n "$EXPR"; then 6744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6745 $as_echo "$EXPR" >&6; } 6746 else 6747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6748 $as_echo "no" >&6; } 6749 fi 6750 6751 6752 test -n "$EXPR" && break 6753 done 6754 6755 else 6756 # The variable is set, but is it from the command line or the environment? 6757 6758 # Try to remove the string !EXPR! from our list. 6759 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6760 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6761 # If it failed, the variable was not from the command line. Ignore it, 6762 # but warn the user (except for BASH, which is always set by the calling BASH). 6763 if test "xEXPR" != xBASH; then 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6765 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6766 fi 6767 # Try to locate tool using the code snippet 6768 for ac_prog in expr 6769 do 6770 # Extract the first word of "$ac_prog", so it can be a program name with args. 6771 set dummy $ac_prog; ac_word=$2 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6773 $as_echo_n "checking for $ac_word... " >&6; } 6774 if ${ac_cv_path_EXPR+:} false; then : 6775 $as_echo_n "(cached) " >&6 6776 else 6777 case $EXPR in 6778 [\\/]* | ?:[\\/]*) 6779 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6780 ;; 6781 *) 6782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6783 for as_dir in $PATH 6784 do 6785 IFS=$as_save_IFS 6786 test -z "$as_dir" && as_dir=. 6787 for ac_exec_ext in '' $ac_executable_extensions; do 6788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6789 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6791 break 2 6792 fi 6793 done 6794 done 6795 IFS=$as_save_IFS 6796 6797 ;; 6798 esac 6799 fi 6800 EXPR=$ac_cv_path_EXPR 6801 if test -n "$EXPR"; then 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6803 $as_echo "$EXPR" >&6; } 6804 else 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6806 $as_echo "no" >&6; } 6807 fi 6808 6809 6810 test -n "$EXPR" && break 6811 done 6812 6813 else 6814 # If it succeeded, then it was overridden by the user. We will use it 6815 # for the tool. 6816 6817 # First remove it from the list of overridden variables, so we can test 6818 # for unknown variables in the end. 6819 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6820 6821 # Check if the provided tool contains a complete path. 6822 tool_specified="$EXPR" 6823 tool_basename="${tool_specified##*/}" 6824 if test "x$tool_basename" = "x$tool_specified"; then 6825 # A command without a complete path is provided, search $PATH. 6826 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6827 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6828 # Extract the first word of "$tool_basename", so it can be a program name with args. 6829 set dummy $tool_basename; ac_word=$2 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6831 $as_echo_n "checking for $ac_word... " >&6; } 6832 if ${ac_cv_path_EXPR+:} false; then : 6833 $as_echo_n "(cached) " >&6 6834 else 6835 case $EXPR in 6836 [\\/]* | ?:[\\/]*) 6837 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6838 ;; 6839 *) 6840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6841 for as_dir in $PATH 6842 do 6843 IFS=$as_save_IFS 6844 test -z "$as_dir" && as_dir=. 6845 for ac_exec_ext in '' $ac_executable_extensions; do 6846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6847 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6849 break 2 6850 fi 6851 done 6852 done 6853 IFS=$as_save_IFS 6854 6855 ;; 6856 esac 6857 fi 6858 EXPR=$ac_cv_path_EXPR 6859 if test -n "$EXPR"; then 6860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6861 $as_echo "$EXPR" >&6; } 6862 else 6863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6864 $as_echo "no" >&6; } 6865 fi 6866 6867 6868 if test "x$EXPR" = x; then 6869 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6870 fi 6871 else 6872 # Otherwise we believe it is a complete path. Use it as it is. 6873 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6874 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6876 $as_echo_n "checking for EXPR... " >&6; } 6877 if test ! -x "$tool_specified"; then 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6879 $as_echo "not found" >&6; } 6880 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6881 fi 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6883 $as_echo "$tool_specified" >&6; } 6884 fi 6885 fi 6886 fi 6887 6888 6889 6890 if test "x$EXPR" = x; then 6891 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6892 fi 6893 6894 6895 6896 6897 6898 # Publish this variable in the help. 6899 6900 6901 if test "x$FILE" = x; then 6902 # The variable is not set by user, try to locate tool using the code snippet 6903 for ac_prog in file 6904 do 6905 # Extract the first word of "$ac_prog", so it can be a program name with args. 6906 set dummy $ac_prog; ac_word=$2 6907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6908 $as_echo_n "checking for $ac_word... " >&6; } 6909 if ${ac_cv_path_FILE+:} false; then : 6910 $as_echo_n "(cached) " >&6 6911 else 6912 case $FILE in 6913 [\\/]* | ?:[\\/]*) 6914 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6915 ;; 6916 *) 6917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6918 for as_dir in $PATH 6919 do 6920 IFS=$as_save_IFS 6921 test -z "$as_dir" && as_dir=. 6922 for ac_exec_ext in '' $ac_executable_extensions; do 6923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6924 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6926 break 2 6927 fi 6928 done 6929 done 6930 IFS=$as_save_IFS 6931 6932 ;; 6933 esac 6934 fi 6935 FILE=$ac_cv_path_FILE 6936 if test -n "$FILE"; then 6937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6938 $as_echo "$FILE" >&6; } 6939 else 6940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6941 $as_echo "no" >&6; } 6942 fi 6943 6944 6945 test -n "$FILE" && break 6946 done 6947 6948 else 6949 # The variable is set, but is it from the command line or the environment? 6950 6951 # Try to remove the string !FILE! from our list. 6952 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6953 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6954 # If it failed, the variable was not from the command line. Ignore it, 6955 # but warn the user (except for BASH, which is always set by the calling BASH). 6956 if test "xFILE" != xBASH; then 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6958 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6959 fi 6960 # Try to locate tool using the code snippet 6961 for ac_prog in file 6962 do 6963 # Extract the first word of "$ac_prog", so it can be a program name with args. 6964 set dummy $ac_prog; ac_word=$2 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6966 $as_echo_n "checking for $ac_word... " >&6; } 6967 if ${ac_cv_path_FILE+:} false; then : 6968 $as_echo_n "(cached) " >&6 6969 else 6970 case $FILE in 6971 [\\/]* | ?:[\\/]*) 6972 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6973 ;; 6974 *) 6975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6976 for as_dir in $PATH 6977 do 6978 IFS=$as_save_IFS 6979 test -z "$as_dir" && as_dir=. 6980 for ac_exec_ext in '' $ac_executable_extensions; do 6981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6982 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6984 break 2 6985 fi 6986 done 6987 done 6988 IFS=$as_save_IFS 6989 6990 ;; 6991 esac 6992 fi 6993 FILE=$ac_cv_path_FILE 6994 if test -n "$FILE"; then 6995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6996 $as_echo "$FILE" >&6; } 6997 else 6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6999 $as_echo "no" >&6; } 7000 fi 7001 7002 7003 test -n "$FILE" && break 7004 done 7005 7006 else 7007 # If it succeeded, then it was overridden by the user. We will use it 7008 # for the tool. 7009 7010 # First remove it from the list of overridden variables, so we can test 7011 # for unknown variables in the end. 7012 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7013 7014 # Check if the provided tool contains a complete path. 7015 tool_specified="$FILE" 7016 tool_basename="${tool_specified##*/}" 7017 if test "x$tool_basename" = "x$tool_specified"; then 7018 # A command without a complete path is provided, search $PATH. 7019 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7020 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7021 # Extract the first word of "$tool_basename", so it can be a program name with args. 7022 set dummy $tool_basename; ac_word=$2 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7024 $as_echo_n "checking for $ac_word... " >&6; } 7025 if ${ac_cv_path_FILE+:} false; then : 7026 $as_echo_n "(cached) " >&6 7027 else 7028 case $FILE in 7029 [\\/]* | ?:[\\/]*) 7030 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7031 ;; 7032 *) 7033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7034 for as_dir in $PATH 7035 do 7036 IFS=$as_save_IFS 7037 test -z "$as_dir" && as_dir=. 7038 for ac_exec_ext in '' $ac_executable_extensions; do 7039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7040 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7042 break 2 7043 fi 7044 done 7045 done 7046 IFS=$as_save_IFS 7047 7048 ;; 7049 esac 7050 fi 7051 FILE=$ac_cv_path_FILE 7052 if test -n "$FILE"; then 7053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7054 $as_echo "$FILE" >&6; } 7055 else 7056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7057 $as_echo "no" >&6; } 7058 fi 7059 7060 7061 if test "x$FILE" = x; then 7062 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7063 fi 7064 else 7065 # Otherwise we believe it is a complete path. Use it as it is. 7066 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7067 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7069 $as_echo_n "checking for FILE... " >&6; } 7070 if test ! -x "$tool_specified"; then 7071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7072 $as_echo "not found" >&6; } 7073 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7074 fi 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7076 $as_echo "$tool_specified" >&6; } 7077 fi 7078 fi 7079 fi 7080 7081 7082 7083 if test "x$FILE" = x; then 7084 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7085 fi 7086 7087 7088 7089 7090 7091 # Publish this variable in the help. 7092 7093 7094 if test "x$FIND" = x; then 7095 # The variable is not set by user, try to locate tool using the code snippet 7096 for ac_prog in find 7097 do 7098 # Extract the first word of "$ac_prog", so it can be a program name with args. 7099 set dummy $ac_prog; ac_word=$2 7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7101 $as_echo_n "checking for $ac_word... " >&6; } 7102 if ${ac_cv_path_FIND+:} false; then : 7103 $as_echo_n "(cached) " >&6 7104 else 7105 case $FIND in 7106 [\\/]* | ?:[\\/]*) 7107 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7108 ;; 7109 *) 7110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7111 for as_dir in $PATH 7112 do 7113 IFS=$as_save_IFS 7114 test -z "$as_dir" && as_dir=. 7115 for ac_exec_ext in '' $ac_executable_extensions; do 7116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7117 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7119 break 2 7120 fi 7121 done 7122 done 7123 IFS=$as_save_IFS 7124 7125 ;; 7126 esac 7127 fi 7128 FIND=$ac_cv_path_FIND 7129 if test -n "$FIND"; then 7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7131 $as_echo "$FIND" >&6; } 7132 else 7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7134 $as_echo "no" >&6; } 7135 fi 7136 7137 7138 test -n "$FIND" && break 7139 done 7140 7141 else 7142 # The variable is set, but is it from the command line or the environment? 7143 7144 # Try to remove the string !FIND! from our list. 7145 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7146 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7147 # If it failed, the variable was not from the command line. Ignore it, 7148 # but warn the user (except for BASH, which is always set by the calling BASH). 7149 if test "xFIND" != xBASH; then 7150 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7151 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7152 fi 7153 # Try to locate tool using the code snippet 7154 for ac_prog in find 7155 do 7156 # Extract the first word of "$ac_prog", so it can be a program name with args. 7157 set dummy $ac_prog; ac_word=$2 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7159 $as_echo_n "checking for $ac_word... " >&6; } 7160 if ${ac_cv_path_FIND+:} false; then : 7161 $as_echo_n "(cached) " >&6 7162 else 7163 case $FIND in 7164 [\\/]* | ?:[\\/]*) 7165 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7166 ;; 7167 *) 7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7169 for as_dir in $PATH 7170 do 7171 IFS=$as_save_IFS 7172 test -z "$as_dir" && as_dir=. 7173 for ac_exec_ext in '' $ac_executable_extensions; do 7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7175 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7177 break 2 7178 fi 7179 done 7180 done 7181 IFS=$as_save_IFS 7182 7183 ;; 7184 esac 7185 fi 7186 FIND=$ac_cv_path_FIND 7187 if test -n "$FIND"; then 7188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7189 $as_echo "$FIND" >&6; } 7190 else 7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7192 $as_echo "no" >&6; } 7193 fi 7194 7195 7196 test -n "$FIND" && break 7197 done 7198 7199 else 7200 # If it succeeded, then it was overridden by the user. We will use it 7201 # for the tool. 7202 7203 # First remove it from the list of overridden variables, so we can test 7204 # for unknown variables in the end. 7205 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7206 7207 # Check if the provided tool contains a complete path. 7208 tool_specified="$FIND" 7209 tool_basename="${tool_specified##*/}" 7210 if test "x$tool_basename" = "x$tool_specified"; then 7211 # A command without a complete path is provided, search $PATH. 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7213 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7214 # Extract the first word of "$tool_basename", so it can be a program name with args. 7215 set dummy $tool_basename; ac_word=$2 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7217 $as_echo_n "checking for $ac_word... " >&6; } 7218 if ${ac_cv_path_FIND+:} false; then : 7219 $as_echo_n "(cached) " >&6 7220 else 7221 case $FIND in 7222 [\\/]* | ?:[\\/]*) 7223 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7224 ;; 7225 *) 7226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7227 for as_dir in $PATH 7228 do 7229 IFS=$as_save_IFS 7230 test -z "$as_dir" && as_dir=. 7231 for ac_exec_ext in '' $ac_executable_extensions; do 7232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7233 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7235 break 2 7236 fi 7237 done 7238 done 7239 IFS=$as_save_IFS 7240 7241 ;; 7242 esac 7243 fi 7244 FIND=$ac_cv_path_FIND 7245 if test -n "$FIND"; then 7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7247 $as_echo "$FIND" >&6; } 7248 else 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7250 $as_echo "no" >&6; } 7251 fi 7252 7253 7254 if test "x$FIND" = x; then 7255 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7256 fi 7257 else 7258 # Otherwise we believe it is a complete path. Use it as it is. 7259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7260 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7262 $as_echo_n "checking for FIND... " >&6; } 7263 if test ! -x "$tool_specified"; then 7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7265 $as_echo "not found" >&6; } 7266 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7267 fi 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7269 $as_echo "$tool_specified" >&6; } 7270 fi 7271 fi 7272 fi 7273 7274 7275 7276 if test "x$FIND" = x; then 7277 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7278 fi 7279 7280 7281 7282 7283 7284 # Publish this variable in the help. 7285 7286 7287 if test "x$HEAD" = x; then 7288 # The variable is not set by user, try to locate tool using the code snippet 7289 for ac_prog in head 7290 do 7291 # Extract the first word of "$ac_prog", so it can be a program name with args. 7292 set dummy $ac_prog; ac_word=$2 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7294 $as_echo_n "checking for $ac_word... " >&6; } 7295 if ${ac_cv_path_HEAD+:} false; then : 7296 $as_echo_n "(cached) " >&6 7297 else 7298 case $HEAD in 7299 [\\/]* | ?:[\\/]*) 7300 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7301 ;; 7302 *) 7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7304 for as_dir in $PATH 7305 do 7306 IFS=$as_save_IFS 7307 test -z "$as_dir" && as_dir=. 7308 for ac_exec_ext in '' $ac_executable_extensions; do 7309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7310 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7312 break 2 7313 fi 7314 done 7315 done 7316 IFS=$as_save_IFS 7317 7318 ;; 7319 esac 7320 fi 7321 HEAD=$ac_cv_path_HEAD 7322 if test -n "$HEAD"; then 7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7324 $as_echo "$HEAD" >&6; } 7325 else 7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7327 $as_echo "no" >&6; } 7328 fi 7329 7330 7331 test -n "$HEAD" && break 7332 done 7333 7334 else 7335 # The variable is set, but is it from the command line or the environment? 7336 7337 # Try to remove the string !HEAD! from our list. 7338 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7339 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7340 # If it failed, the variable was not from the command line. Ignore it, 7341 # but warn the user (except for BASH, which is always set by the calling BASH). 7342 if test "xHEAD" != xBASH; then 7343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7344 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7345 fi 7346 # Try to locate tool using the code snippet 7347 for ac_prog in head 7348 do 7349 # Extract the first word of "$ac_prog", so it can be a program name with args. 7350 set dummy $ac_prog; ac_word=$2 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7352 $as_echo_n "checking for $ac_word... " >&6; } 7353 if ${ac_cv_path_HEAD+:} false; then : 7354 $as_echo_n "(cached) " >&6 7355 else 7356 case $HEAD in 7357 [\\/]* | ?:[\\/]*) 7358 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7359 ;; 7360 *) 7361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7362 for as_dir in $PATH 7363 do 7364 IFS=$as_save_IFS 7365 test -z "$as_dir" && as_dir=. 7366 for ac_exec_ext in '' $ac_executable_extensions; do 7367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7368 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7370 break 2 7371 fi 7372 done 7373 done 7374 IFS=$as_save_IFS 7375 7376 ;; 7377 esac 7378 fi 7379 HEAD=$ac_cv_path_HEAD 7380 if test -n "$HEAD"; then 7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7382 $as_echo "$HEAD" >&6; } 7383 else 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7385 $as_echo "no" >&6; } 7386 fi 7387 7388 7389 test -n "$HEAD" && break 7390 done 7391 7392 else 7393 # If it succeeded, then it was overridden by the user. We will use it 7394 # for the tool. 7395 7396 # First remove it from the list of overridden variables, so we can test 7397 # for unknown variables in the end. 7398 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7399 7400 # Check if the provided tool contains a complete path. 7401 tool_specified="$HEAD" 7402 tool_basename="${tool_specified##*/}" 7403 if test "x$tool_basename" = "x$tool_specified"; then 7404 # A command without a complete path is provided, search $PATH. 7405 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7406 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7407 # Extract the first word of "$tool_basename", so it can be a program name with args. 7408 set dummy $tool_basename; ac_word=$2 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7410 $as_echo_n "checking for $ac_word... " >&6; } 7411 if ${ac_cv_path_HEAD+:} false; then : 7412 $as_echo_n "(cached) " >&6 7413 else 7414 case $HEAD in 7415 [\\/]* | ?:[\\/]*) 7416 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7417 ;; 7418 *) 7419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7420 for as_dir in $PATH 7421 do 7422 IFS=$as_save_IFS 7423 test -z "$as_dir" && as_dir=. 7424 for ac_exec_ext in '' $ac_executable_extensions; do 7425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7426 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7428 break 2 7429 fi 7430 done 7431 done 7432 IFS=$as_save_IFS 7433 7434 ;; 7435 esac 7436 fi 7437 HEAD=$ac_cv_path_HEAD 7438 if test -n "$HEAD"; then 7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7440 $as_echo "$HEAD" >&6; } 7441 else 7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7443 $as_echo "no" >&6; } 7444 fi 7445 7446 7447 if test "x$HEAD" = x; then 7448 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7449 fi 7450 else 7451 # Otherwise we believe it is a complete path. Use it as it is. 7452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7453 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7455 $as_echo_n "checking for HEAD... " >&6; } 7456 if test ! -x "$tool_specified"; then 7457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7458 $as_echo "not found" >&6; } 7459 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7460 fi 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7462 $as_echo "$tool_specified" >&6; } 7463 fi 7464 fi 7465 fi 7466 7467 7468 7469 if test "x$HEAD" = x; then 7470 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7471 fi 7472 7473 7474 7475 7476 7477 # Publish this variable in the help. 7478 7479 7480 if test "x$LN" = x; then 7481 # The variable is not set by user, try to locate tool using the code snippet 7482 for ac_prog in ln 7483 do 7484 # Extract the first word of "$ac_prog", so it can be a program name with args. 7485 set dummy $ac_prog; ac_word=$2 7486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7487 $as_echo_n "checking for $ac_word... " >&6; } 7488 if ${ac_cv_path_LN+:} false; then : 7489 $as_echo_n "(cached) " >&6 7490 else 7491 case $LN in 7492 [\\/]* | ?:[\\/]*) 7493 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7494 ;; 7495 *) 7496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7497 for as_dir in $PATH 7498 do 7499 IFS=$as_save_IFS 7500 test -z "$as_dir" && as_dir=. 7501 for ac_exec_ext in '' $ac_executable_extensions; do 7502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7503 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7505 break 2 7506 fi 7507 done 7508 done 7509 IFS=$as_save_IFS 7510 7511 ;; 7512 esac 7513 fi 7514 LN=$ac_cv_path_LN 7515 if test -n "$LN"; then 7516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7517 $as_echo "$LN" >&6; } 7518 else 7519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7520 $as_echo "no" >&6; } 7521 fi 7522 7523 7524 test -n "$LN" && break 7525 done 7526 7527 else 7528 # The variable is set, but is it from the command line or the environment? 7529 7530 # Try to remove the string !LN! from our list. 7531 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7532 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7533 # If it failed, the variable was not from the command line. Ignore it, 7534 # but warn the user (except for BASH, which is always set by the calling BASH). 7535 if test "xLN" != xBASH; then 7536 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7537 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7538 fi 7539 # Try to locate tool using the code snippet 7540 for ac_prog in ln 7541 do 7542 # Extract the first word of "$ac_prog", so it can be a program name with args. 7543 set dummy $ac_prog; ac_word=$2 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7545 $as_echo_n "checking for $ac_word... " >&6; } 7546 if ${ac_cv_path_LN+:} false; then : 7547 $as_echo_n "(cached) " >&6 7548 else 7549 case $LN in 7550 [\\/]* | ?:[\\/]*) 7551 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7552 ;; 7553 *) 7554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7555 for as_dir in $PATH 7556 do 7557 IFS=$as_save_IFS 7558 test -z "$as_dir" && as_dir=. 7559 for ac_exec_ext in '' $ac_executable_extensions; do 7560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7561 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7563 break 2 7564 fi 7565 done 7566 done 7567 IFS=$as_save_IFS 7568 7569 ;; 7570 esac 7571 fi 7572 LN=$ac_cv_path_LN 7573 if test -n "$LN"; then 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7575 $as_echo "$LN" >&6; } 7576 else 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7578 $as_echo "no" >&6; } 7579 fi 7580 7581 7582 test -n "$LN" && break 7583 done 7584 7585 else 7586 # If it succeeded, then it was overridden by the user. We will use it 7587 # for the tool. 7588 7589 # First remove it from the list of overridden variables, so we can test 7590 # for unknown variables in the end. 7591 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7592 7593 # Check if the provided tool contains a complete path. 7594 tool_specified="$LN" 7595 tool_basename="${tool_specified##*/}" 7596 if test "x$tool_basename" = "x$tool_specified"; then 7597 # A command without a complete path is provided, search $PATH. 7598 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7599 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7600 # Extract the first word of "$tool_basename", so it can be a program name with args. 7601 set dummy $tool_basename; ac_word=$2 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7603 $as_echo_n "checking for $ac_word... " >&6; } 7604 if ${ac_cv_path_LN+:} false; then : 7605 $as_echo_n "(cached) " >&6 7606 else 7607 case $LN in 7608 [\\/]* | ?:[\\/]*) 7609 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7610 ;; 7611 *) 7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7613 for as_dir in $PATH 7614 do 7615 IFS=$as_save_IFS 7616 test -z "$as_dir" && as_dir=. 7617 for ac_exec_ext in '' $ac_executable_extensions; do 7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7619 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7621 break 2 7622 fi 7623 done 7624 done 7625 IFS=$as_save_IFS 7626 7627 ;; 7628 esac 7629 fi 7630 LN=$ac_cv_path_LN 7631 if test -n "$LN"; then 7632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7633 $as_echo "$LN" >&6; } 7634 else 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7636 $as_echo "no" >&6; } 7637 fi 7638 7639 7640 if test "x$LN" = x; then 7641 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7642 fi 7643 else 7644 # Otherwise we believe it is a complete path. Use it as it is. 7645 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7646 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7648 $as_echo_n "checking for LN... " >&6; } 7649 if test ! -x "$tool_specified"; then 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7651 $as_echo "not found" >&6; } 7652 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7653 fi 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7655 $as_echo "$tool_specified" >&6; } 7656 fi 7657 fi 7658 fi 7659 7660 7661 7662 if test "x$LN" = x; then 7663 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7664 fi 7665 7666 7667 7668 7669 7670 # Publish this variable in the help. 7671 7672 7673 if test "x$LS" = x; then 7674 # The variable is not set by user, try to locate tool using the code snippet 7675 for ac_prog in ls 7676 do 7677 # Extract the first word of "$ac_prog", so it can be a program name with args. 7678 set dummy $ac_prog; ac_word=$2 7679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7680 $as_echo_n "checking for $ac_word... " >&6; } 7681 if ${ac_cv_path_LS+:} false; then : 7682 $as_echo_n "(cached) " >&6 7683 else 7684 case $LS in 7685 [\\/]* | ?:[\\/]*) 7686 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7687 ;; 7688 *) 7689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7690 for as_dir in $PATH 7691 do 7692 IFS=$as_save_IFS 7693 test -z "$as_dir" && as_dir=. 7694 for ac_exec_ext in '' $ac_executable_extensions; do 7695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7696 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7698 break 2 7699 fi 7700 done 7701 done 7702 IFS=$as_save_IFS 7703 7704 ;; 7705 esac 7706 fi 7707 LS=$ac_cv_path_LS 7708 if test -n "$LS"; then 7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7710 $as_echo "$LS" >&6; } 7711 else 7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7713 $as_echo "no" >&6; } 7714 fi 7715 7716 7717 test -n "$LS" && break 7718 done 7719 7720 else 7721 # The variable is set, but is it from the command line or the environment? 7722 7723 # Try to remove the string !LS! from our list. 7724 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7725 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7726 # If it failed, the variable was not from the command line. Ignore it, 7727 # but warn the user (except for BASH, which is always set by the calling BASH). 7728 if test "xLS" != xBASH; then 7729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7730 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7731 fi 7732 # Try to locate tool using the code snippet 7733 for ac_prog in ls 7734 do 7735 # Extract the first word of "$ac_prog", so it can be a program name with args. 7736 set dummy $ac_prog; ac_word=$2 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7738 $as_echo_n "checking for $ac_word... " >&6; } 7739 if ${ac_cv_path_LS+:} false; then : 7740 $as_echo_n "(cached) " >&6 7741 else 7742 case $LS in 7743 [\\/]* | ?:[\\/]*) 7744 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7745 ;; 7746 *) 7747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7748 for as_dir in $PATH 7749 do 7750 IFS=$as_save_IFS 7751 test -z "$as_dir" && as_dir=. 7752 for ac_exec_ext in '' $ac_executable_extensions; do 7753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7754 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7756 break 2 7757 fi 7758 done 7759 done 7760 IFS=$as_save_IFS 7761 7762 ;; 7763 esac 7764 fi 7765 LS=$ac_cv_path_LS 7766 if test -n "$LS"; then 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7768 $as_echo "$LS" >&6; } 7769 else 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7771 $as_echo "no" >&6; } 7772 fi 7773 7774 7775 test -n "$LS" && break 7776 done 7777 7778 else 7779 # If it succeeded, then it was overridden by the user. We will use it 7780 # for the tool. 7781 7782 # First remove it from the list of overridden variables, so we can test 7783 # for unknown variables in the end. 7784 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7785 7786 # Check if the provided tool contains a complete path. 7787 tool_specified="$LS" 7788 tool_basename="${tool_specified##*/}" 7789 if test "x$tool_basename" = "x$tool_specified"; then 7790 # A command without a complete path is provided, search $PATH. 7791 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7792 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7793 # Extract the first word of "$tool_basename", so it can be a program name with args. 7794 set dummy $tool_basename; ac_word=$2 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7796 $as_echo_n "checking for $ac_word... " >&6; } 7797 if ${ac_cv_path_LS+:} false; then : 7798 $as_echo_n "(cached) " >&6 7799 else 7800 case $LS in 7801 [\\/]* | ?:[\\/]*) 7802 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7803 ;; 7804 *) 7805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7806 for as_dir in $PATH 7807 do 7808 IFS=$as_save_IFS 7809 test -z "$as_dir" && as_dir=. 7810 for ac_exec_ext in '' $ac_executable_extensions; do 7811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7812 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7814 break 2 7815 fi 7816 done 7817 done 7818 IFS=$as_save_IFS 7819 7820 ;; 7821 esac 7822 fi 7823 LS=$ac_cv_path_LS 7824 if test -n "$LS"; then 7825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7826 $as_echo "$LS" >&6; } 7827 else 7828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7829 $as_echo "no" >&6; } 7830 fi 7831 7832 7833 if test "x$LS" = x; then 7834 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7835 fi 7836 else 7837 # Otherwise we believe it is a complete path. Use it as it is. 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7839 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7841 $as_echo_n "checking for LS... " >&6; } 7842 if test ! -x "$tool_specified"; then 7843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7844 $as_echo "not found" >&6; } 7845 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7846 fi 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7848 $as_echo "$tool_specified" >&6; } 7849 fi 7850 fi 7851 fi 7852 7853 7854 7855 if test "x$LS" = x; then 7856 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7857 fi 7858 7859 7860 7861 7862 7863 # Publish this variable in the help. 7864 7865 7866 if test "x$MKDIR" = x; then 7867 # The variable is not set by user, try to locate tool using the code snippet 7868 for ac_prog in mkdir 7869 do 7870 # Extract the first word of "$ac_prog", so it can be a program name with args. 7871 set dummy $ac_prog; ac_word=$2 7872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7873 $as_echo_n "checking for $ac_word... " >&6; } 7874 if ${ac_cv_path_MKDIR+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876 else 7877 case $MKDIR in 7878 [\\/]* | ?:[\\/]*) 7879 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7880 ;; 7881 *) 7882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7883 for as_dir in $PATH 7884 do 7885 IFS=$as_save_IFS 7886 test -z "$as_dir" && as_dir=. 7887 for ac_exec_ext in '' $ac_executable_extensions; do 7888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7889 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7891 break 2 7892 fi 7893 done 7894 done 7895 IFS=$as_save_IFS 7896 7897 ;; 7898 esac 7899 fi 7900 MKDIR=$ac_cv_path_MKDIR 7901 if test -n "$MKDIR"; then 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7903 $as_echo "$MKDIR" >&6; } 7904 else 7905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7906 $as_echo "no" >&6; } 7907 fi 7908 7909 7910 test -n "$MKDIR" && break 7911 done 7912 7913 else 7914 # The variable is set, but is it from the command line or the environment? 7915 7916 # Try to remove the string !MKDIR! from our list. 7917 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7918 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7919 # If it failed, the variable was not from the command line. Ignore it, 7920 # but warn the user (except for BASH, which is always set by the calling BASH). 7921 if test "xMKDIR" != xBASH; then 7922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7923 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7924 fi 7925 # Try to locate tool using the code snippet 7926 for ac_prog in mkdir 7927 do 7928 # Extract the first word of "$ac_prog", so it can be a program name with args. 7929 set dummy $ac_prog; ac_word=$2 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7931 $as_echo_n "checking for $ac_word... " >&6; } 7932 if ${ac_cv_path_MKDIR+:} false; then : 7933 $as_echo_n "(cached) " >&6 7934 else 7935 case $MKDIR in 7936 [\\/]* | ?:[\\/]*) 7937 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7938 ;; 7939 *) 7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7941 for as_dir in $PATH 7942 do 7943 IFS=$as_save_IFS 7944 test -z "$as_dir" && as_dir=. 7945 for ac_exec_ext in '' $ac_executable_extensions; do 7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7947 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7949 break 2 7950 fi 7951 done 7952 done 7953 IFS=$as_save_IFS 7954 7955 ;; 7956 esac 7957 fi 7958 MKDIR=$ac_cv_path_MKDIR 7959 if test -n "$MKDIR"; then 7960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7961 $as_echo "$MKDIR" >&6; } 7962 else 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7964 $as_echo "no" >&6; } 7965 fi 7966 7967 7968 test -n "$MKDIR" && break 7969 done 7970 7971 else 7972 # If it succeeded, then it was overridden by the user. We will use it 7973 # for the tool. 7974 7975 # First remove it from the list of overridden variables, so we can test 7976 # for unknown variables in the end. 7977 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7978 7979 # Check if the provided tool contains a complete path. 7980 tool_specified="$MKDIR" 7981 tool_basename="${tool_specified##*/}" 7982 if test "x$tool_basename" = "x$tool_specified"; then 7983 # A command without a complete path is provided, search $PATH. 7984 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 7985 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 7986 # Extract the first word of "$tool_basename", so it can be a program name with args. 7987 set dummy $tool_basename; ac_word=$2 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7989 $as_echo_n "checking for $ac_word... " >&6; } 7990 if ${ac_cv_path_MKDIR+:} false; then : 7991 $as_echo_n "(cached) " >&6 7992 else 7993 case $MKDIR in 7994 [\\/]* | ?:[\\/]*) 7995 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7996 ;; 7997 *) 7998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7999 for as_dir in $PATH 8000 do 8001 IFS=$as_save_IFS 8002 test -z "$as_dir" && as_dir=. 8003 for ac_exec_ext in '' $ac_executable_extensions; do 8004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8005 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8007 break 2 8008 fi 8009 done 8010 done 8011 IFS=$as_save_IFS 8012 8013 ;; 8014 esac 8015 fi 8016 MKDIR=$ac_cv_path_MKDIR 8017 if test -n "$MKDIR"; then 8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8019 $as_echo "$MKDIR" >&6; } 8020 else 8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8022 $as_echo "no" >&6; } 8023 fi 8024 8025 8026 if test "x$MKDIR" = x; then 8027 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8028 fi 8029 else 8030 # Otherwise we believe it is a complete path. Use it as it is. 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8032 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8034 $as_echo_n "checking for MKDIR... " >&6; } 8035 if test ! -x "$tool_specified"; then 8036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8037 $as_echo "not found" >&6; } 8038 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8039 fi 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8041 $as_echo "$tool_specified" >&6; } 8042 fi 8043 fi 8044 fi 8045 8046 8047 8048 if test "x$MKDIR" = x; then 8049 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8050 fi 8051 8052 8053 8054 8055 8056 # Publish this variable in the help. 8057 8058 8059 if test "x$MKTEMP" = x; then 8060 # The variable is not set by user, try to locate tool using the code snippet 8061 for ac_prog in mktemp 8062 do 8063 # Extract the first word of "$ac_prog", so it can be a program name with args. 8064 set dummy $ac_prog; ac_word=$2 8065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8066 $as_echo_n "checking for $ac_word... " >&6; } 8067 if ${ac_cv_path_MKTEMP+:} false; then : 8068 $as_echo_n "(cached) " >&6 8069 else 8070 case $MKTEMP in 8071 [\\/]* | ?:[\\/]*) 8072 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8073 ;; 8074 *) 8075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8076 for as_dir in $PATH 8077 do 8078 IFS=$as_save_IFS 8079 test -z "$as_dir" && as_dir=. 8080 for ac_exec_ext in '' $ac_executable_extensions; do 8081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8082 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8084 break 2 8085 fi 8086 done 8087 done 8088 IFS=$as_save_IFS 8089 8090 ;; 8091 esac 8092 fi 8093 MKTEMP=$ac_cv_path_MKTEMP 8094 if test -n "$MKTEMP"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8096 $as_echo "$MKTEMP" >&6; } 8097 else 8098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8099 $as_echo "no" >&6; } 8100 fi 8101 8102 8103 test -n "$MKTEMP" && break 8104 done 8105 8106 else 8107 # The variable is set, but is it from the command line or the environment? 8108 8109 # Try to remove the string !MKTEMP! from our list. 8110 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8111 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8112 # If it failed, the variable was not from the command line. Ignore it, 8113 # but warn the user (except for BASH, which is always set by the calling BASH). 8114 if test "xMKTEMP" != xBASH; then 8115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8116 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8117 fi 8118 # Try to locate tool using the code snippet 8119 for ac_prog in mktemp 8120 do 8121 # Extract the first word of "$ac_prog", so it can be a program name with args. 8122 set dummy $ac_prog; ac_word=$2 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8124 $as_echo_n "checking for $ac_word... " >&6; } 8125 if ${ac_cv_path_MKTEMP+:} false; then : 8126 $as_echo_n "(cached) " >&6 8127 else 8128 case $MKTEMP in 8129 [\\/]* | ?:[\\/]*) 8130 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8131 ;; 8132 *) 8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8134 for as_dir in $PATH 8135 do 8136 IFS=$as_save_IFS 8137 test -z "$as_dir" && as_dir=. 8138 for ac_exec_ext in '' $ac_executable_extensions; do 8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8140 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8142 break 2 8143 fi 8144 done 8145 done 8146 IFS=$as_save_IFS 8147 8148 ;; 8149 esac 8150 fi 8151 MKTEMP=$ac_cv_path_MKTEMP 8152 if test -n "$MKTEMP"; then 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8154 $as_echo "$MKTEMP" >&6; } 8155 else 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8157 $as_echo "no" >&6; } 8158 fi 8159 8160 8161 test -n "$MKTEMP" && break 8162 done 8163 8164 else 8165 # If it succeeded, then it was overridden by the user. We will use it 8166 # for the tool. 8167 8168 # First remove it from the list of overridden variables, so we can test 8169 # for unknown variables in the end. 8170 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8171 8172 # Check if the provided tool contains a complete path. 8173 tool_specified="$MKTEMP" 8174 tool_basename="${tool_specified##*/}" 8175 if test "x$tool_basename" = "x$tool_specified"; then 8176 # A command without a complete path is provided, search $PATH. 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8178 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8179 # Extract the first word of "$tool_basename", so it can be a program name with args. 8180 set dummy $tool_basename; ac_word=$2 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8182 $as_echo_n "checking for $ac_word... " >&6; } 8183 if ${ac_cv_path_MKTEMP+:} false; then : 8184 $as_echo_n "(cached) " >&6 8185 else 8186 case $MKTEMP in 8187 [\\/]* | ?:[\\/]*) 8188 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8189 ;; 8190 *) 8191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8192 for as_dir in $PATH 8193 do 8194 IFS=$as_save_IFS 8195 test -z "$as_dir" && as_dir=. 8196 for ac_exec_ext in '' $ac_executable_extensions; do 8197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8198 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8200 break 2 8201 fi 8202 done 8203 done 8204 IFS=$as_save_IFS 8205 8206 ;; 8207 esac 8208 fi 8209 MKTEMP=$ac_cv_path_MKTEMP 8210 if test -n "$MKTEMP"; then 8211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8212 $as_echo "$MKTEMP" >&6; } 8213 else 8214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8215 $as_echo "no" >&6; } 8216 fi 8217 8218 8219 if test "x$MKTEMP" = x; then 8220 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8221 fi 8222 else 8223 # Otherwise we believe it is a complete path. Use it as it is. 8224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8225 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8227 $as_echo_n "checking for MKTEMP... " >&6; } 8228 if test ! -x "$tool_specified"; then 8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8230 $as_echo "not found" >&6; } 8231 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8232 fi 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8234 $as_echo "$tool_specified" >&6; } 8235 fi 8236 fi 8237 fi 8238 8239 8240 8241 if test "x$MKTEMP" = x; then 8242 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8243 fi 8244 8245 8246 8247 8248 8249 # Publish this variable in the help. 8250 8251 8252 if test "x$MV" = x; then 8253 # The variable is not set by user, try to locate tool using the code snippet 8254 for ac_prog in mv 8255 do 8256 # Extract the first word of "$ac_prog", so it can be a program name with args. 8257 set dummy $ac_prog; ac_word=$2 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8259 $as_echo_n "checking for $ac_word... " >&6; } 8260 if ${ac_cv_path_MV+:} false; then : 8261 $as_echo_n "(cached) " >&6 8262 else 8263 case $MV in 8264 [\\/]* | ?:[\\/]*) 8265 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8266 ;; 8267 *) 8268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8269 for as_dir in $PATH 8270 do 8271 IFS=$as_save_IFS 8272 test -z "$as_dir" && as_dir=. 8273 for ac_exec_ext in '' $ac_executable_extensions; do 8274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8275 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8277 break 2 8278 fi 8279 done 8280 done 8281 IFS=$as_save_IFS 8282 8283 ;; 8284 esac 8285 fi 8286 MV=$ac_cv_path_MV 8287 if test -n "$MV"; then 8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8289 $as_echo "$MV" >&6; } 8290 else 8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8292 $as_echo "no" >&6; } 8293 fi 8294 8295 8296 test -n "$MV" && break 8297 done 8298 8299 else 8300 # The variable is set, but is it from the command line or the environment? 8301 8302 # Try to remove the string !MV! from our list. 8303 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8304 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8305 # If it failed, the variable was not from the command line. Ignore it, 8306 # but warn the user (except for BASH, which is always set by the calling BASH). 8307 if test "xMV" != xBASH; then 8308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8309 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8310 fi 8311 # Try to locate tool using the code snippet 8312 for ac_prog in mv 8313 do 8314 # Extract the first word of "$ac_prog", so it can be a program name with args. 8315 set dummy $ac_prog; ac_word=$2 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8317 $as_echo_n "checking for $ac_word... " >&6; } 8318 if ${ac_cv_path_MV+:} false; then : 8319 $as_echo_n "(cached) " >&6 8320 else 8321 case $MV in 8322 [\\/]* | ?:[\\/]*) 8323 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8324 ;; 8325 *) 8326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8327 for as_dir in $PATH 8328 do 8329 IFS=$as_save_IFS 8330 test -z "$as_dir" && as_dir=. 8331 for ac_exec_ext in '' $ac_executable_extensions; do 8332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8333 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8335 break 2 8336 fi 8337 done 8338 done 8339 IFS=$as_save_IFS 8340 8341 ;; 8342 esac 8343 fi 8344 MV=$ac_cv_path_MV 8345 if test -n "$MV"; then 8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8347 $as_echo "$MV" >&6; } 8348 else 8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8350 $as_echo "no" >&6; } 8351 fi 8352 8353 8354 test -n "$MV" && break 8355 done 8356 8357 else 8358 # If it succeeded, then it was overridden by the user. We will use it 8359 # for the tool. 8360 8361 # First remove it from the list of overridden variables, so we can test 8362 # for unknown variables in the end. 8363 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8364 8365 # Check if the provided tool contains a complete path. 8366 tool_specified="$MV" 8367 tool_basename="${tool_specified##*/}" 8368 if test "x$tool_basename" = "x$tool_specified"; then 8369 # A command without a complete path is provided, search $PATH. 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8371 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8372 # Extract the first word of "$tool_basename", so it can be a program name with args. 8373 set dummy $tool_basename; ac_word=$2 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8375 $as_echo_n "checking for $ac_word... " >&6; } 8376 if ${ac_cv_path_MV+:} false; then : 8377 $as_echo_n "(cached) " >&6 8378 else 8379 case $MV in 8380 [\\/]* | ?:[\\/]*) 8381 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8382 ;; 8383 *) 8384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8385 for as_dir in $PATH 8386 do 8387 IFS=$as_save_IFS 8388 test -z "$as_dir" && as_dir=. 8389 for ac_exec_ext in '' $ac_executable_extensions; do 8390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8391 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8393 break 2 8394 fi 8395 done 8396 done 8397 IFS=$as_save_IFS 8398 8399 ;; 8400 esac 8401 fi 8402 MV=$ac_cv_path_MV 8403 if test -n "$MV"; then 8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8405 $as_echo "$MV" >&6; } 8406 else 8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8408 $as_echo "no" >&6; } 8409 fi 8410 8411 8412 if test "x$MV" = x; then 8413 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8414 fi 8415 else 8416 # Otherwise we believe it is a complete path. Use it as it is. 8417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8418 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8420 $as_echo_n "checking for MV... " >&6; } 8421 if test ! -x "$tool_specified"; then 8422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8423 $as_echo "not found" >&6; } 8424 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8425 fi 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8427 $as_echo "$tool_specified" >&6; } 8428 fi 8429 fi 8430 fi 8431 8432 8433 8434 if test "x$MV" = x; then 8435 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8436 fi 8437 8438 8439 8440 8441 8442 # Publish this variable in the help. 8443 8444 8445 if test "x$NAWK" = x; then 8446 # The variable is not set by user, try to locate tool using the code snippet 8447 for ac_prog in nawk gawk awk 8448 do 8449 # Extract the first word of "$ac_prog", so it can be a program name with args. 8450 set dummy $ac_prog; ac_word=$2 8451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8452 $as_echo_n "checking for $ac_word... " >&6; } 8453 if ${ac_cv_path_NAWK+:} false; then : 8454 $as_echo_n "(cached) " >&6 8455 else 8456 case $NAWK in 8457 [\\/]* | ?:[\\/]*) 8458 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8459 ;; 8460 *) 8461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8462 for as_dir in $PATH 8463 do 8464 IFS=$as_save_IFS 8465 test -z "$as_dir" && as_dir=. 8466 for ac_exec_ext in '' $ac_executable_extensions; do 8467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8468 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8470 break 2 8471 fi 8472 done 8473 done 8474 IFS=$as_save_IFS 8475 8476 ;; 8477 esac 8478 fi 8479 NAWK=$ac_cv_path_NAWK 8480 if test -n "$NAWK"; then 8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8482 $as_echo "$NAWK" >&6; } 8483 else 8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8485 $as_echo "no" >&6; } 8486 fi 8487 8488 8489 test -n "$NAWK" && break 8490 done 8491 8492 else 8493 # The variable is set, but is it from the command line or the environment? 8494 8495 # Try to remove the string !NAWK! from our list. 8496 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8497 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8498 # If it failed, the variable was not from the command line. Ignore it, 8499 # but warn the user (except for BASH, which is always set by the calling BASH). 8500 if test "xNAWK" != xBASH; then 8501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8502 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8503 fi 8504 # Try to locate tool using the code snippet 8505 for ac_prog in nawk gawk awk 8506 do 8507 # Extract the first word of "$ac_prog", so it can be a program name with args. 8508 set dummy $ac_prog; ac_word=$2 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8510 $as_echo_n "checking for $ac_word... " >&6; } 8511 if ${ac_cv_path_NAWK+:} false; then : 8512 $as_echo_n "(cached) " >&6 8513 else 8514 case $NAWK in 8515 [\\/]* | ?:[\\/]*) 8516 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8517 ;; 8518 *) 8519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8520 for as_dir in $PATH 8521 do 8522 IFS=$as_save_IFS 8523 test -z "$as_dir" && as_dir=. 8524 for ac_exec_ext in '' $ac_executable_extensions; do 8525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8526 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8528 break 2 8529 fi 8530 done 8531 done 8532 IFS=$as_save_IFS 8533 8534 ;; 8535 esac 8536 fi 8537 NAWK=$ac_cv_path_NAWK 8538 if test -n "$NAWK"; then 8539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8540 $as_echo "$NAWK" >&6; } 8541 else 8542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8543 $as_echo "no" >&6; } 8544 fi 8545 8546 8547 test -n "$NAWK" && break 8548 done 8549 8550 else 8551 # If it succeeded, then it was overridden by the user. We will use it 8552 # for the tool. 8553 8554 # First remove it from the list of overridden variables, so we can test 8555 # for unknown variables in the end. 8556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8557 8558 # Check if the provided tool contains a complete path. 8559 tool_specified="$NAWK" 8560 tool_basename="${tool_specified##*/}" 8561 if test "x$tool_basename" = "x$tool_specified"; then 8562 # A command without a complete path is provided, search $PATH. 8563 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8564 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8565 # Extract the first word of "$tool_basename", so it can be a program name with args. 8566 set dummy $tool_basename; ac_word=$2 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8568 $as_echo_n "checking for $ac_word... " >&6; } 8569 if ${ac_cv_path_NAWK+:} false; then : 8570 $as_echo_n "(cached) " >&6 8571 else 8572 case $NAWK in 8573 [\\/]* | ?:[\\/]*) 8574 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8575 ;; 8576 *) 8577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8578 for as_dir in $PATH 8579 do 8580 IFS=$as_save_IFS 8581 test -z "$as_dir" && as_dir=. 8582 for ac_exec_ext in '' $ac_executable_extensions; do 8583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8584 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8586 break 2 8587 fi 8588 done 8589 done 8590 IFS=$as_save_IFS 8591 8592 ;; 8593 esac 8594 fi 8595 NAWK=$ac_cv_path_NAWK 8596 if test -n "$NAWK"; then 8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8598 $as_echo "$NAWK" >&6; } 8599 else 8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8601 $as_echo "no" >&6; } 8602 fi 8603 8604 8605 if test "x$NAWK" = x; then 8606 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8607 fi 8608 else 8609 # Otherwise we believe it is a complete path. Use it as it is. 8610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8611 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8613 $as_echo_n "checking for NAWK... " >&6; } 8614 if test ! -x "$tool_specified"; then 8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8616 $as_echo "not found" >&6; } 8617 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8618 fi 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8620 $as_echo "$tool_specified" >&6; } 8621 fi 8622 fi 8623 fi 8624 8625 8626 8627 if test "x$NAWK" = x; then 8628 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8629 fi 8630 8631 8632 8633 8634 8635 # Publish this variable in the help. 8636 8637 8638 if test "x$PRINTF" = x; then 8639 # The variable is not set by user, try to locate tool using the code snippet 8640 for ac_prog in printf 8641 do 8642 # Extract the first word of "$ac_prog", so it can be a program name with args. 8643 set dummy $ac_prog; ac_word=$2 8644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8645 $as_echo_n "checking for $ac_word... " >&6; } 8646 if ${ac_cv_path_PRINTF+:} false; then : 8647 $as_echo_n "(cached) " >&6 8648 else 8649 case $PRINTF in 8650 [\\/]* | ?:[\\/]*) 8651 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8652 ;; 8653 *) 8654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8655 for as_dir in $PATH 8656 do 8657 IFS=$as_save_IFS 8658 test -z "$as_dir" && as_dir=. 8659 for ac_exec_ext in '' $ac_executable_extensions; do 8660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8661 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8663 break 2 8664 fi 8665 done 8666 done 8667 IFS=$as_save_IFS 8668 8669 ;; 8670 esac 8671 fi 8672 PRINTF=$ac_cv_path_PRINTF 8673 if test -n "$PRINTF"; then 8674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8675 $as_echo "$PRINTF" >&6; } 8676 else 8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8678 $as_echo "no" >&6; } 8679 fi 8680 8681 8682 test -n "$PRINTF" && break 8683 done 8684 8685 else 8686 # The variable is set, but is it from the command line or the environment? 8687 8688 # Try to remove the string !PRINTF! from our list. 8689 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8690 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8691 # If it failed, the variable was not from the command line. Ignore it, 8692 # but warn the user (except for BASH, which is always set by the calling BASH). 8693 if test "xPRINTF" != xBASH; then 8694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8695 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8696 fi 8697 # Try to locate tool using the code snippet 8698 for ac_prog in printf 8699 do 8700 # Extract the first word of "$ac_prog", so it can be a program name with args. 8701 set dummy $ac_prog; ac_word=$2 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8703 $as_echo_n "checking for $ac_word... " >&6; } 8704 if ${ac_cv_path_PRINTF+:} false; then : 8705 $as_echo_n "(cached) " >&6 8706 else 8707 case $PRINTF in 8708 [\\/]* | ?:[\\/]*) 8709 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8710 ;; 8711 *) 8712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8713 for as_dir in $PATH 8714 do 8715 IFS=$as_save_IFS 8716 test -z "$as_dir" && as_dir=. 8717 for ac_exec_ext in '' $ac_executable_extensions; do 8718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8719 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8721 break 2 8722 fi 8723 done 8724 done 8725 IFS=$as_save_IFS 8726 8727 ;; 8728 esac 8729 fi 8730 PRINTF=$ac_cv_path_PRINTF 8731 if test -n "$PRINTF"; then 8732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8733 $as_echo "$PRINTF" >&6; } 8734 else 8735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8736 $as_echo "no" >&6; } 8737 fi 8738 8739 8740 test -n "$PRINTF" && break 8741 done 8742 8743 else 8744 # If it succeeded, then it was overridden by the user. We will use it 8745 # for the tool. 8746 8747 # First remove it from the list of overridden variables, so we can test 8748 # for unknown variables in the end. 8749 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8750 8751 # Check if the provided tool contains a complete path. 8752 tool_specified="$PRINTF" 8753 tool_basename="${tool_specified##*/}" 8754 if test "x$tool_basename" = "x$tool_specified"; then 8755 # A command without a complete path is provided, search $PATH. 8756 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8757 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8758 # Extract the first word of "$tool_basename", so it can be a program name with args. 8759 set dummy $tool_basename; ac_word=$2 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8761 $as_echo_n "checking for $ac_word... " >&6; } 8762 if ${ac_cv_path_PRINTF+:} false; then : 8763 $as_echo_n "(cached) " >&6 8764 else 8765 case $PRINTF in 8766 [\\/]* | ?:[\\/]*) 8767 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8768 ;; 8769 *) 8770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8771 for as_dir in $PATH 8772 do 8773 IFS=$as_save_IFS 8774 test -z "$as_dir" && as_dir=. 8775 for ac_exec_ext in '' $ac_executable_extensions; do 8776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8777 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8779 break 2 8780 fi 8781 done 8782 done 8783 IFS=$as_save_IFS 8784 8785 ;; 8786 esac 8787 fi 8788 PRINTF=$ac_cv_path_PRINTF 8789 if test -n "$PRINTF"; then 8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8791 $as_echo "$PRINTF" >&6; } 8792 else 8793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8794 $as_echo "no" >&6; } 8795 fi 8796 8797 8798 if test "x$PRINTF" = x; then 8799 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8800 fi 8801 else 8802 # Otherwise we believe it is a complete path. Use it as it is. 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8804 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8806 $as_echo_n "checking for PRINTF... " >&6; } 8807 if test ! -x "$tool_specified"; then 8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8809 $as_echo "not found" >&6; } 8810 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8811 fi 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8813 $as_echo "$tool_specified" >&6; } 8814 fi 8815 fi 8816 fi 8817 8818 8819 8820 if test "x$PRINTF" = x; then 8821 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8822 fi 8823 8824 8825 8826 8827 8828 # Publish this variable in the help. 8829 8830 8831 if test "x$RM" = x; then 8832 # The variable is not set by user, try to locate tool using the code snippet 8833 for ac_prog in rm 8834 do 8835 # Extract the first word of "$ac_prog", so it can be a program name with args. 8836 set dummy $ac_prog; ac_word=$2 8837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8838 $as_echo_n "checking for $ac_word... " >&6; } 8839 if ${ac_cv_path_RM+:} false; then : 8840 $as_echo_n "(cached) " >&6 8841 else 8842 case $RM in 8843 [\\/]* | ?:[\\/]*) 8844 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8845 ;; 8846 *) 8847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8848 for as_dir in $PATH 8849 do 8850 IFS=$as_save_IFS 8851 test -z "$as_dir" && as_dir=. 8852 for ac_exec_ext in '' $ac_executable_extensions; do 8853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8854 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8856 break 2 8857 fi 8858 done 8859 done 8860 IFS=$as_save_IFS 8861 8862 ;; 8863 esac 8864 fi 8865 RM=$ac_cv_path_RM 8866 if test -n "$RM"; then 8867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8868 $as_echo "$RM" >&6; } 8869 else 8870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8871 $as_echo "no" >&6; } 8872 fi 8873 8874 8875 test -n "$RM" && break 8876 done 8877 8878 else 8879 # The variable is set, but is it from the command line or the environment? 8880 8881 # Try to remove the string !RM! from our list. 8882 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8883 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8884 # If it failed, the variable was not from the command line. Ignore it, 8885 # but warn the user (except for BASH, which is always set by the calling BASH). 8886 if test "xRM" != xBASH; then 8887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8888 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8889 fi 8890 # Try to locate tool using the code snippet 8891 for ac_prog in rm 8892 do 8893 # Extract the first word of "$ac_prog", so it can be a program name with args. 8894 set dummy $ac_prog; ac_word=$2 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8896 $as_echo_n "checking for $ac_word... " >&6; } 8897 if ${ac_cv_path_RM+:} false; then : 8898 $as_echo_n "(cached) " >&6 8899 else 8900 case $RM in 8901 [\\/]* | ?:[\\/]*) 8902 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8903 ;; 8904 *) 8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8906 for as_dir in $PATH 8907 do 8908 IFS=$as_save_IFS 8909 test -z "$as_dir" && as_dir=. 8910 for ac_exec_ext in '' $ac_executable_extensions; do 8911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8912 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8914 break 2 8915 fi 8916 done 8917 done 8918 IFS=$as_save_IFS 8919 8920 ;; 8921 esac 8922 fi 8923 RM=$ac_cv_path_RM 8924 if test -n "$RM"; then 8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8926 $as_echo "$RM" >&6; } 8927 else 8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8929 $as_echo "no" >&6; } 8930 fi 8931 8932 8933 test -n "$RM" && break 8934 done 8935 8936 else 8937 # If it succeeded, then it was overridden by the user. We will use it 8938 # for the tool. 8939 8940 # First remove it from the list of overridden variables, so we can test 8941 # for unknown variables in the end. 8942 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8943 8944 # Check if the provided tool contains a complete path. 8945 tool_specified="$RM" 8946 tool_basename="${tool_specified##*/}" 8947 if test "x$tool_basename" = "x$tool_specified"; then 8948 # A command without a complete path is provided, search $PATH. 8949 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8950 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8951 # Extract the first word of "$tool_basename", so it can be a program name with args. 8952 set dummy $tool_basename; ac_word=$2 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8954 $as_echo_n "checking for $ac_word... " >&6; } 8955 if ${ac_cv_path_RM+:} false; then : 8956 $as_echo_n "(cached) " >&6 8957 else 8958 case $RM in 8959 [\\/]* | ?:[\\/]*) 8960 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8961 ;; 8962 *) 8963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8964 for as_dir in $PATH 8965 do 8966 IFS=$as_save_IFS 8967 test -z "$as_dir" && as_dir=. 8968 for ac_exec_ext in '' $ac_executable_extensions; do 8969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8970 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8972 break 2 8973 fi 8974 done 8975 done 8976 IFS=$as_save_IFS 8977 8978 ;; 8979 esac 8980 fi 8981 RM=$ac_cv_path_RM 8982 if test -n "$RM"; then 8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8984 $as_echo "$RM" >&6; } 8985 else 8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8987 $as_echo "no" >&6; } 8988 fi 8989 8990 8991 if test "x$RM" = x; then 8992 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8993 fi 8994 else 8995 # Otherwise we believe it is a complete path. Use it as it is. 8996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 8997 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 8999 $as_echo_n "checking for RM... " >&6; } 9000 if test ! -x "$tool_specified"; then 9001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9002 $as_echo "not found" >&6; } 9003 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9004 fi 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9006 $as_echo "$tool_specified" >&6; } 9007 fi 9008 fi 9009 fi 9010 9011 9012 9013 if test "x$RM" = x; then 9014 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9015 fi 9016 9017 9018 9019 9020 9021 # Publish this variable in the help. 9022 9023 9024 if test "x$SH" = x; then 9025 # The variable is not set by user, try to locate tool using the code snippet 9026 for ac_prog in sh 9027 do 9028 # Extract the first word of "$ac_prog", so it can be a program name with args. 9029 set dummy $ac_prog; ac_word=$2 9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9031 $as_echo_n "checking for $ac_word... " >&6; } 9032 if ${ac_cv_path_SH+:} false; then : 9033 $as_echo_n "(cached) " >&6 9034 else 9035 case $SH in 9036 [\\/]* | ?:[\\/]*) 9037 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9038 ;; 9039 *) 9040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9041 for as_dir in $PATH 9042 do 9043 IFS=$as_save_IFS 9044 test -z "$as_dir" && as_dir=. 9045 for ac_exec_ext in '' $ac_executable_extensions; do 9046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9047 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9049 break 2 9050 fi 9051 done 9052 done 9053 IFS=$as_save_IFS 9054 9055 ;; 9056 esac 9057 fi 9058 SH=$ac_cv_path_SH 9059 if test -n "$SH"; then 9060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9061 $as_echo "$SH" >&6; } 9062 else 9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9064 $as_echo "no" >&6; } 9065 fi 9066 9067 9068 test -n "$SH" && break 9069 done 9070 9071 else 9072 # The variable is set, but is it from the command line or the environment? 9073 9074 # Try to remove the string !SH! from our list. 9075 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9076 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9077 # If it failed, the variable was not from the command line. Ignore it, 9078 # but warn the user (except for BASH, which is always set by the calling BASH). 9079 if test "xSH" != xBASH; then 9080 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9081 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9082 fi 9083 # Try to locate tool using the code snippet 9084 for ac_prog in sh 9085 do 9086 # Extract the first word of "$ac_prog", so it can be a program name with args. 9087 set dummy $ac_prog; ac_word=$2 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9089 $as_echo_n "checking for $ac_word... " >&6; } 9090 if ${ac_cv_path_SH+:} false; then : 9091 $as_echo_n "(cached) " >&6 9092 else 9093 case $SH in 9094 [\\/]* | ?:[\\/]*) 9095 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9096 ;; 9097 *) 9098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9099 for as_dir in $PATH 9100 do 9101 IFS=$as_save_IFS 9102 test -z "$as_dir" && as_dir=. 9103 for ac_exec_ext in '' $ac_executable_extensions; do 9104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9105 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9107 break 2 9108 fi 9109 done 9110 done 9111 IFS=$as_save_IFS 9112 9113 ;; 9114 esac 9115 fi 9116 SH=$ac_cv_path_SH 9117 if test -n "$SH"; then 9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9119 $as_echo "$SH" >&6; } 9120 else 9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9122 $as_echo "no" >&6; } 9123 fi 9124 9125 9126 test -n "$SH" && break 9127 done 9128 9129 else 9130 # If it succeeded, then it was overridden by the user. We will use it 9131 # for the tool. 9132 9133 # First remove it from the list of overridden variables, so we can test 9134 # for unknown variables in the end. 9135 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9136 9137 # Check if the provided tool contains a complete path. 9138 tool_specified="$SH" 9139 tool_basename="${tool_specified##*/}" 9140 if test "x$tool_basename" = "x$tool_specified"; then 9141 # A command without a complete path is provided, search $PATH. 9142 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9143 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9144 # Extract the first word of "$tool_basename", so it can be a program name with args. 9145 set dummy $tool_basename; ac_word=$2 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9147 $as_echo_n "checking for $ac_word... " >&6; } 9148 if ${ac_cv_path_SH+:} false; then : 9149 $as_echo_n "(cached) " >&6 9150 else 9151 case $SH in 9152 [\\/]* | ?:[\\/]*) 9153 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9154 ;; 9155 *) 9156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9157 for as_dir in $PATH 9158 do 9159 IFS=$as_save_IFS 9160 test -z "$as_dir" && as_dir=. 9161 for ac_exec_ext in '' $ac_executable_extensions; do 9162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9163 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9165 break 2 9166 fi 9167 done 9168 done 9169 IFS=$as_save_IFS 9170 9171 ;; 9172 esac 9173 fi 9174 SH=$ac_cv_path_SH 9175 if test -n "$SH"; then 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9177 $as_echo "$SH" >&6; } 9178 else 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9180 $as_echo "no" >&6; } 9181 fi 9182 9183 9184 if test "x$SH" = x; then 9185 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9186 fi 9187 else 9188 # Otherwise we believe it is a complete path. Use it as it is. 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9190 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9192 $as_echo_n "checking for SH... " >&6; } 9193 if test ! -x "$tool_specified"; then 9194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9195 $as_echo "not found" >&6; } 9196 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9197 fi 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9199 $as_echo "$tool_specified" >&6; } 9200 fi 9201 fi 9202 fi 9203 9204 9205 9206 if test "x$SH" = x; then 9207 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9208 fi 9209 9210 9211 9212 9213 9214 # Publish this variable in the help. 9215 9216 9217 if test "x$SORT" = x; then 9218 # The variable is not set by user, try to locate tool using the code snippet 9219 for ac_prog in sort 9220 do 9221 # Extract the first word of "$ac_prog", so it can be a program name with args. 9222 set dummy $ac_prog; ac_word=$2 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9224 $as_echo_n "checking for $ac_word... " >&6; } 9225 if ${ac_cv_path_SORT+:} false; then : 9226 $as_echo_n "(cached) " >&6 9227 else 9228 case $SORT in 9229 [\\/]* | ?:[\\/]*) 9230 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9231 ;; 9232 *) 9233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9234 for as_dir in $PATH 9235 do 9236 IFS=$as_save_IFS 9237 test -z "$as_dir" && as_dir=. 9238 for ac_exec_ext in '' $ac_executable_extensions; do 9239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9240 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9242 break 2 9243 fi 9244 done 9245 done 9246 IFS=$as_save_IFS 9247 9248 ;; 9249 esac 9250 fi 9251 SORT=$ac_cv_path_SORT 9252 if test -n "$SORT"; then 9253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9254 $as_echo "$SORT" >&6; } 9255 else 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9257 $as_echo "no" >&6; } 9258 fi 9259 9260 9261 test -n "$SORT" && break 9262 done 9263 9264 else 9265 # The variable is set, but is it from the command line or the environment? 9266 9267 # Try to remove the string !SORT! from our list. 9268 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9269 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9270 # If it failed, the variable was not from the command line. Ignore it, 9271 # but warn the user (except for BASH, which is always set by the calling BASH). 9272 if test "xSORT" != xBASH; then 9273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9274 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9275 fi 9276 # Try to locate tool using the code snippet 9277 for ac_prog in sort 9278 do 9279 # Extract the first word of "$ac_prog", so it can be a program name with args. 9280 set dummy $ac_prog; ac_word=$2 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9282 $as_echo_n "checking for $ac_word... " >&6; } 9283 if ${ac_cv_path_SORT+:} false; then : 9284 $as_echo_n "(cached) " >&6 9285 else 9286 case $SORT in 9287 [\\/]* | ?:[\\/]*) 9288 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9289 ;; 9290 *) 9291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9292 for as_dir in $PATH 9293 do 9294 IFS=$as_save_IFS 9295 test -z "$as_dir" && as_dir=. 9296 for ac_exec_ext in '' $ac_executable_extensions; do 9297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9298 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9300 break 2 9301 fi 9302 done 9303 done 9304 IFS=$as_save_IFS 9305 9306 ;; 9307 esac 9308 fi 9309 SORT=$ac_cv_path_SORT 9310 if test -n "$SORT"; then 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9312 $as_echo "$SORT" >&6; } 9313 else 9314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9315 $as_echo "no" >&6; } 9316 fi 9317 9318 9319 test -n "$SORT" && break 9320 done 9321 9322 else 9323 # If it succeeded, then it was overridden by the user. We will use it 9324 # for the tool. 9325 9326 # First remove it from the list of overridden variables, so we can test 9327 # for unknown variables in the end. 9328 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9329 9330 # Check if the provided tool contains a complete path. 9331 tool_specified="$SORT" 9332 tool_basename="${tool_specified##*/}" 9333 if test "x$tool_basename" = "x$tool_specified"; then 9334 # A command without a complete path is provided, search $PATH. 9335 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9336 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9337 # Extract the first word of "$tool_basename", so it can be a program name with args. 9338 set dummy $tool_basename; ac_word=$2 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9340 $as_echo_n "checking for $ac_word... " >&6; } 9341 if ${ac_cv_path_SORT+:} false; then : 9342 $as_echo_n "(cached) " >&6 9343 else 9344 case $SORT in 9345 [\\/]* | ?:[\\/]*) 9346 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9347 ;; 9348 *) 9349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9350 for as_dir in $PATH 9351 do 9352 IFS=$as_save_IFS 9353 test -z "$as_dir" && as_dir=. 9354 for ac_exec_ext in '' $ac_executable_extensions; do 9355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9356 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9358 break 2 9359 fi 9360 done 9361 done 9362 IFS=$as_save_IFS 9363 9364 ;; 9365 esac 9366 fi 9367 SORT=$ac_cv_path_SORT 9368 if test -n "$SORT"; then 9369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9370 $as_echo "$SORT" >&6; } 9371 else 9372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9373 $as_echo "no" >&6; } 9374 fi 9375 9376 9377 if test "x$SORT" = x; then 9378 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9379 fi 9380 else 9381 # Otherwise we believe it is a complete path. Use it as it is. 9382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9383 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9385 $as_echo_n "checking for SORT... " >&6; } 9386 if test ! -x "$tool_specified"; then 9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9388 $as_echo "not found" >&6; } 9389 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9390 fi 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9392 $as_echo "$tool_specified" >&6; } 9393 fi 9394 fi 9395 fi 9396 9397 9398 9399 if test "x$SORT" = x; then 9400 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9401 fi 9402 9403 9404 9405 9406 9407 # Publish this variable in the help. 9408 9409 9410 if test "x$TAIL" = x; then 9411 # The variable is not set by user, try to locate tool using the code snippet 9412 for ac_prog in tail 9413 do 9414 # Extract the first word of "$ac_prog", so it can be a program name with args. 9415 set dummy $ac_prog; ac_word=$2 9416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9417 $as_echo_n "checking for $ac_word... " >&6; } 9418 if ${ac_cv_path_TAIL+:} false; then : 9419 $as_echo_n "(cached) " >&6 9420 else 9421 case $TAIL in 9422 [\\/]* | ?:[\\/]*) 9423 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9424 ;; 9425 *) 9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9427 for as_dir in $PATH 9428 do 9429 IFS=$as_save_IFS 9430 test -z "$as_dir" && as_dir=. 9431 for ac_exec_ext in '' $ac_executable_extensions; do 9432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9433 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9435 break 2 9436 fi 9437 done 9438 done 9439 IFS=$as_save_IFS 9440 9441 ;; 9442 esac 9443 fi 9444 TAIL=$ac_cv_path_TAIL 9445 if test -n "$TAIL"; then 9446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9447 $as_echo "$TAIL" >&6; } 9448 else 9449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9450 $as_echo "no" >&6; } 9451 fi 9452 9453 9454 test -n "$TAIL" && break 9455 done 9456 9457 else 9458 # The variable is set, but is it from the command line or the environment? 9459 9460 # Try to remove the string !TAIL! from our list. 9461 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9462 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9463 # If it failed, the variable was not from the command line. Ignore it, 9464 # but warn the user (except for BASH, which is always set by the calling BASH). 9465 if test "xTAIL" != xBASH; then 9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9467 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9468 fi 9469 # Try to locate tool using the code snippet 9470 for ac_prog in tail 9471 do 9472 # Extract the first word of "$ac_prog", so it can be a program name with args. 9473 set dummy $ac_prog; ac_word=$2 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9475 $as_echo_n "checking for $ac_word... " >&6; } 9476 if ${ac_cv_path_TAIL+:} false; then : 9477 $as_echo_n "(cached) " >&6 9478 else 9479 case $TAIL in 9480 [\\/]* | ?:[\\/]*) 9481 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9482 ;; 9483 *) 9484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9485 for as_dir in $PATH 9486 do 9487 IFS=$as_save_IFS 9488 test -z "$as_dir" && as_dir=. 9489 for ac_exec_ext in '' $ac_executable_extensions; do 9490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9491 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9493 break 2 9494 fi 9495 done 9496 done 9497 IFS=$as_save_IFS 9498 9499 ;; 9500 esac 9501 fi 9502 TAIL=$ac_cv_path_TAIL 9503 if test -n "$TAIL"; then 9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9505 $as_echo "$TAIL" >&6; } 9506 else 9507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9508 $as_echo "no" >&6; } 9509 fi 9510 9511 9512 test -n "$TAIL" && break 9513 done 9514 9515 else 9516 # If it succeeded, then it was overridden by the user. We will use it 9517 # for the tool. 9518 9519 # First remove it from the list of overridden variables, so we can test 9520 # for unknown variables in the end. 9521 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9522 9523 # Check if the provided tool contains a complete path. 9524 tool_specified="$TAIL" 9525 tool_basename="${tool_specified##*/}" 9526 if test "x$tool_basename" = "x$tool_specified"; then 9527 # A command without a complete path is provided, search $PATH. 9528 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9529 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9530 # Extract the first word of "$tool_basename", so it can be a program name with args. 9531 set dummy $tool_basename; ac_word=$2 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9533 $as_echo_n "checking for $ac_word... " >&6; } 9534 if ${ac_cv_path_TAIL+:} false; then : 9535 $as_echo_n "(cached) " >&6 9536 else 9537 case $TAIL in 9538 [\\/]* | ?:[\\/]*) 9539 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9540 ;; 9541 *) 9542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9543 for as_dir in $PATH 9544 do 9545 IFS=$as_save_IFS 9546 test -z "$as_dir" && as_dir=. 9547 for ac_exec_ext in '' $ac_executable_extensions; do 9548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9549 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9551 break 2 9552 fi 9553 done 9554 done 9555 IFS=$as_save_IFS 9556 9557 ;; 9558 esac 9559 fi 9560 TAIL=$ac_cv_path_TAIL 9561 if test -n "$TAIL"; then 9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9563 $as_echo "$TAIL" >&6; } 9564 else 9565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9566 $as_echo "no" >&6; } 9567 fi 9568 9569 9570 if test "x$TAIL" = x; then 9571 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9572 fi 9573 else 9574 # Otherwise we believe it is a complete path. Use it as it is. 9575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9576 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9578 $as_echo_n "checking for TAIL... " >&6; } 9579 if test ! -x "$tool_specified"; then 9580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9581 $as_echo "not found" >&6; } 9582 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9583 fi 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9585 $as_echo "$tool_specified" >&6; } 9586 fi 9587 fi 9588 fi 9589 9590 9591 9592 if test "x$TAIL" = x; then 9593 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9594 fi 9595 9596 9597 9598 9599 9600 # Publish this variable in the help. 9601 9602 9603 if test "x$TAR" = x; then 9604 # The variable is not set by user, try to locate tool using the code snippet 9605 for ac_prog in tar 9606 do 9607 # Extract the first word of "$ac_prog", so it can be a program name with args. 9608 set dummy $ac_prog; ac_word=$2 9609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9610 $as_echo_n "checking for $ac_word... " >&6; } 9611 if ${ac_cv_path_TAR+:} false; then : 9612 $as_echo_n "(cached) " >&6 9613 else 9614 case $TAR in 9615 [\\/]* | ?:[\\/]*) 9616 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9617 ;; 9618 *) 9619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9620 for as_dir in $PATH 9621 do 9622 IFS=$as_save_IFS 9623 test -z "$as_dir" && as_dir=. 9624 for ac_exec_ext in '' $ac_executable_extensions; do 9625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9626 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9628 break 2 9629 fi 9630 done 9631 done 9632 IFS=$as_save_IFS 9633 9634 ;; 9635 esac 9636 fi 9637 TAR=$ac_cv_path_TAR 9638 if test -n "$TAR"; then 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9640 $as_echo "$TAR" >&6; } 9641 else 9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9643 $as_echo "no" >&6; } 9644 fi 9645 9646 9647 test -n "$TAR" && break 9648 done 9649 9650 else 9651 # The variable is set, but is it from the command line or the environment? 9652 9653 # Try to remove the string !TAR! from our list. 9654 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9655 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9656 # If it failed, the variable was not from the command line. Ignore it, 9657 # but warn the user (except for BASH, which is always set by the calling BASH). 9658 if test "xTAR" != xBASH; then 9659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9660 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9661 fi 9662 # Try to locate tool using the code snippet 9663 for ac_prog in tar 9664 do 9665 # Extract the first word of "$ac_prog", so it can be a program name with args. 9666 set dummy $ac_prog; ac_word=$2 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9668 $as_echo_n "checking for $ac_word... " >&6; } 9669 if ${ac_cv_path_TAR+:} false; then : 9670 $as_echo_n "(cached) " >&6 9671 else 9672 case $TAR in 9673 [\\/]* | ?:[\\/]*) 9674 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9675 ;; 9676 *) 9677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9678 for as_dir in $PATH 9679 do 9680 IFS=$as_save_IFS 9681 test -z "$as_dir" && as_dir=. 9682 for ac_exec_ext in '' $ac_executable_extensions; do 9683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9684 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9686 break 2 9687 fi 9688 done 9689 done 9690 IFS=$as_save_IFS 9691 9692 ;; 9693 esac 9694 fi 9695 TAR=$ac_cv_path_TAR 9696 if test -n "$TAR"; then 9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9698 $as_echo "$TAR" >&6; } 9699 else 9700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9701 $as_echo "no" >&6; } 9702 fi 9703 9704 9705 test -n "$TAR" && break 9706 done 9707 9708 else 9709 # If it succeeded, then it was overridden by the user. We will use it 9710 # for the tool. 9711 9712 # First remove it from the list of overridden variables, so we can test 9713 # for unknown variables in the end. 9714 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9715 9716 # Check if the provided tool contains a complete path. 9717 tool_specified="$TAR" 9718 tool_basename="${tool_specified##*/}" 9719 if test "x$tool_basename" = "x$tool_specified"; then 9720 # A command without a complete path is provided, search $PATH. 9721 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9722 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9723 # Extract the first word of "$tool_basename", so it can be a program name with args. 9724 set dummy $tool_basename; ac_word=$2 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9726 $as_echo_n "checking for $ac_word... " >&6; } 9727 if ${ac_cv_path_TAR+:} false; then : 9728 $as_echo_n "(cached) " >&6 9729 else 9730 case $TAR in 9731 [\\/]* | ?:[\\/]*) 9732 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9733 ;; 9734 *) 9735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9736 for as_dir in $PATH 9737 do 9738 IFS=$as_save_IFS 9739 test -z "$as_dir" && as_dir=. 9740 for ac_exec_ext in '' $ac_executable_extensions; do 9741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9742 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9744 break 2 9745 fi 9746 done 9747 done 9748 IFS=$as_save_IFS 9749 9750 ;; 9751 esac 9752 fi 9753 TAR=$ac_cv_path_TAR 9754 if test -n "$TAR"; then 9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9756 $as_echo "$TAR" >&6; } 9757 else 9758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9759 $as_echo "no" >&6; } 9760 fi 9761 9762 9763 if test "x$TAR" = x; then 9764 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9765 fi 9766 else 9767 # Otherwise we believe it is a complete path. Use it as it is. 9768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9769 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9771 $as_echo_n "checking for TAR... " >&6; } 9772 if test ! -x "$tool_specified"; then 9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9774 $as_echo "not found" >&6; } 9775 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9776 fi 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9778 $as_echo "$tool_specified" >&6; } 9779 fi 9780 fi 9781 fi 9782 9783 9784 9785 if test "x$TAR" = x; then 9786 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9787 fi 9788 9789 9790 9791 9792 9793 # Publish this variable in the help. 9794 9795 9796 if test "x$TEE" = x; then 9797 # The variable is not set by user, try to locate tool using the code snippet 9798 for ac_prog in tee 9799 do 9800 # Extract the first word of "$ac_prog", so it can be a program name with args. 9801 set dummy $ac_prog; ac_word=$2 9802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9803 $as_echo_n "checking for $ac_word... " >&6; } 9804 if ${ac_cv_path_TEE+:} false; then : 9805 $as_echo_n "(cached) " >&6 9806 else 9807 case $TEE in 9808 [\\/]* | ?:[\\/]*) 9809 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9810 ;; 9811 *) 9812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9813 for as_dir in $PATH 9814 do 9815 IFS=$as_save_IFS 9816 test -z "$as_dir" && as_dir=. 9817 for ac_exec_ext in '' $ac_executable_extensions; do 9818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9819 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9821 break 2 9822 fi 9823 done 9824 done 9825 IFS=$as_save_IFS 9826 9827 ;; 9828 esac 9829 fi 9830 TEE=$ac_cv_path_TEE 9831 if test -n "$TEE"; then 9832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9833 $as_echo "$TEE" >&6; } 9834 else 9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9836 $as_echo "no" >&6; } 9837 fi 9838 9839 9840 test -n "$TEE" && break 9841 done 9842 9843 else 9844 # The variable is set, but is it from the command line or the environment? 9845 9846 # Try to remove the string !TEE! from our list. 9847 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9848 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9849 # If it failed, the variable was not from the command line. Ignore it, 9850 # but warn the user (except for BASH, which is always set by the calling BASH). 9851 if test "xTEE" != xBASH; then 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9853 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9854 fi 9855 # Try to locate tool using the code snippet 9856 for ac_prog in tee 9857 do 9858 # Extract the first word of "$ac_prog", so it can be a program name with args. 9859 set dummy $ac_prog; ac_word=$2 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9861 $as_echo_n "checking for $ac_word... " >&6; } 9862 if ${ac_cv_path_TEE+:} false; then : 9863 $as_echo_n "(cached) " >&6 9864 else 9865 case $TEE in 9866 [\\/]* | ?:[\\/]*) 9867 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9868 ;; 9869 *) 9870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9871 for as_dir in $PATH 9872 do 9873 IFS=$as_save_IFS 9874 test -z "$as_dir" && as_dir=. 9875 for ac_exec_ext in '' $ac_executable_extensions; do 9876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9877 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9879 break 2 9880 fi 9881 done 9882 done 9883 IFS=$as_save_IFS 9884 9885 ;; 9886 esac 9887 fi 9888 TEE=$ac_cv_path_TEE 9889 if test -n "$TEE"; then 9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9891 $as_echo "$TEE" >&6; } 9892 else 9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9894 $as_echo "no" >&6; } 9895 fi 9896 9897 9898 test -n "$TEE" && break 9899 done 9900 9901 else 9902 # If it succeeded, then it was overridden by the user. We will use it 9903 # for the tool. 9904 9905 # First remove it from the list of overridden variables, so we can test 9906 # for unknown variables in the end. 9907 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9908 9909 # Check if the provided tool contains a complete path. 9910 tool_specified="$TEE" 9911 tool_basename="${tool_specified##*/}" 9912 if test "x$tool_basename" = "x$tool_specified"; then 9913 # A command without a complete path is provided, search $PATH. 9914 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9915 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9916 # Extract the first word of "$tool_basename", so it can be a program name with args. 9917 set dummy $tool_basename; ac_word=$2 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9919 $as_echo_n "checking for $ac_word... " >&6; } 9920 if ${ac_cv_path_TEE+:} false; then : 9921 $as_echo_n "(cached) " >&6 9922 else 9923 case $TEE in 9924 [\\/]* | ?:[\\/]*) 9925 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9926 ;; 9927 *) 9928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9929 for as_dir in $PATH 9930 do 9931 IFS=$as_save_IFS 9932 test -z "$as_dir" && as_dir=. 9933 for ac_exec_ext in '' $ac_executable_extensions; do 9934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9935 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9937 break 2 9938 fi 9939 done 9940 done 9941 IFS=$as_save_IFS 9942 9943 ;; 9944 esac 9945 fi 9946 TEE=$ac_cv_path_TEE 9947 if test -n "$TEE"; then 9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9949 $as_echo "$TEE" >&6; } 9950 else 9951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9952 $as_echo "no" >&6; } 9953 fi 9954 9955 9956 if test "x$TEE" = x; then 9957 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9958 fi 9959 else 9960 # Otherwise we believe it is a complete path. Use it as it is. 9961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9962 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9964 $as_echo_n "checking for TEE... " >&6; } 9965 if test ! -x "$tool_specified"; then 9966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9967 $as_echo "not found" >&6; } 9968 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9969 fi 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9971 $as_echo "$tool_specified" >&6; } 9972 fi 9973 fi 9974 fi 9975 9976 9977 9978 if test "x$TEE" = x; then 9979 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9980 fi 9981 9982 9983 9984 9985 9986 # Publish this variable in the help. 9987 9988 9989 if test "x$TOUCH" = x; then 9990 # The variable is not set by user, try to locate tool using the code snippet 9991 for ac_prog in touch 9992 do 9993 # Extract the first word of "$ac_prog", so it can be a program name with args. 9994 set dummy $ac_prog; ac_word=$2 9995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9996 $as_echo_n "checking for $ac_word... " >&6; } 9997 if ${ac_cv_path_TOUCH+:} false; then : 9998 $as_echo_n "(cached) " >&6 9999 else 10000 case $TOUCH in 10001 [\\/]* | ?:[\\/]*) 10002 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10003 ;; 10004 *) 10005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10006 for as_dir in $PATH 10007 do 10008 IFS=$as_save_IFS 10009 test -z "$as_dir" && as_dir=. 10010 for ac_exec_ext in '' $ac_executable_extensions; do 10011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10012 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10014 break 2 10015 fi 10016 done 10017 done 10018 IFS=$as_save_IFS 10019 10020 ;; 10021 esac 10022 fi 10023 TOUCH=$ac_cv_path_TOUCH 10024 if test -n "$TOUCH"; then 10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10026 $as_echo "$TOUCH" >&6; } 10027 else 10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10029 $as_echo "no" >&6; } 10030 fi 10031 10032 10033 test -n "$TOUCH" && break 10034 done 10035 10036 else 10037 # The variable is set, but is it from the command line or the environment? 10038 10039 # Try to remove the string !TOUCH! from our list. 10040 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10041 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10042 # If it failed, the variable was not from the command line. Ignore it, 10043 # but warn the user (except for BASH, which is always set by the calling BASH). 10044 if test "xTOUCH" != xBASH; then 10045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10046 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10047 fi 10048 # Try to locate tool using the code snippet 10049 for ac_prog in touch 10050 do 10051 # Extract the first word of "$ac_prog", so it can be a program name with args. 10052 set dummy $ac_prog; ac_word=$2 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10054 $as_echo_n "checking for $ac_word... " >&6; } 10055 if ${ac_cv_path_TOUCH+:} false; then : 10056 $as_echo_n "(cached) " >&6 10057 else 10058 case $TOUCH in 10059 [\\/]* | ?:[\\/]*) 10060 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10061 ;; 10062 *) 10063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10064 for as_dir in $PATH 10065 do 10066 IFS=$as_save_IFS 10067 test -z "$as_dir" && as_dir=. 10068 for ac_exec_ext in '' $ac_executable_extensions; do 10069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10070 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10072 break 2 10073 fi 10074 done 10075 done 10076 IFS=$as_save_IFS 10077 10078 ;; 10079 esac 10080 fi 10081 TOUCH=$ac_cv_path_TOUCH 10082 if test -n "$TOUCH"; then 10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10084 $as_echo "$TOUCH" >&6; } 10085 else 10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10087 $as_echo "no" >&6; } 10088 fi 10089 10090 10091 test -n "$TOUCH" && break 10092 done 10093 10094 else 10095 # If it succeeded, then it was overridden by the user. We will use it 10096 # for the tool. 10097 10098 # First remove it from the list of overridden variables, so we can test 10099 # for unknown variables in the end. 10100 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10101 10102 # Check if the provided tool contains a complete path. 10103 tool_specified="$TOUCH" 10104 tool_basename="${tool_specified##*/}" 10105 if test "x$tool_basename" = "x$tool_specified"; then 10106 # A command without a complete path is provided, search $PATH. 10107 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10108 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10109 # Extract the first word of "$tool_basename", so it can be a program name with args. 10110 set dummy $tool_basename; ac_word=$2 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10112 $as_echo_n "checking for $ac_word... " >&6; } 10113 if ${ac_cv_path_TOUCH+:} false; then : 10114 $as_echo_n "(cached) " >&6 10115 else 10116 case $TOUCH in 10117 [\\/]* | ?:[\\/]*) 10118 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10119 ;; 10120 *) 10121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10122 for as_dir in $PATH 10123 do 10124 IFS=$as_save_IFS 10125 test -z "$as_dir" && as_dir=. 10126 for ac_exec_ext in '' $ac_executable_extensions; do 10127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10128 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10130 break 2 10131 fi 10132 done 10133 done 10134 IFS=$as_save_IFS 10135 10136 ;; 10137 esac 10138 fi 10139 TOUCH=$ac_cv_path_TOUCH 10140 if test -n "$TOUCH"; then 10141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10142 $as_echo "$TOUCH" >&6; } 10143 else 10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10145 $as_echo "no" >&6; } 10146 fi 10147 10148 10149 if test "x$TOUCH" = x; then 10150 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10151 fi 10152 else 10153 # Otherwise we believe it is a complete path. Use it as it is. 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10155 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10157 $as_echo_n "checking for TOUCH... " >&6; } 10158 if test ! -x "$tool_specified"; then 10159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10160 $as_echo "not found" >&6; } 10161 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10162 fi 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10164 $as_echo "$tool_specified" >&6; } 10165 fi 10166 fi 10167 fi 10168 10169 10170 10171 if test "x$TOUCH" = x; then 10172 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10173 fi 10174 10175 10176 10177 10178 10179 # Publish this variable in the help. 10180 10181 10182 if test "x$TR" = x; then 10183 # The variable is not set by user, try to locate tool using the code snippet 10184 for ac_prog in tr 10185 do 10186 # Extract the first word of "$ac_prog", so it can be a program name with args. 10187 set dummy $ac_prog; ac_word=$2 10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10189 $as_echo_n "checking for $ac_word... " >&6; } 10190 if ${ac_cv_path_TR+:} false; then : 10191 $as_echo_n "(cached) " >&6 10192 else 10193 case $TR in 10194 [\\/]* | ?:[\\/]*) 10195 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10196 ;; 10197 *) 10198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10199 for as_dir in $PATH 10200 do 10201 IFS=$as_save_IFS 10202 test -z "$as_dir" && as_dir=. 10203 for ac_exec_ext in '' $ac_executable_extensions; do 10204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10205 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10207 break 2 10208 fi 10209 done 10210 done 10211 IFS=$as_save_IFS 10212 10213 ;; 10214 esac 10215 fi 10216 TR=$ac_cv_path_TR 10217 if test -n "$TR"; then 10218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10219 $as_echo "$TR" >&6; } 10220 else 10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10222 $as_echo "no" >&6; } 10223 fi 10224 10225 10226 test -n "$TR" && break 10227 done 10228 10229 else 10230 # The variable is set, but is it from the command line or the environment? 10231 10232 # Try to remove the string !TR! from our list. 10233 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10234 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10235 # If it failed, the variable was not from the command line. Ignore it, 10236 # but warn the user (except for BASH, which is always set by the calling BASH). 10237 if test "xTR" != xBASH; then 10238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10239 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10240 fi 10241 # Try to locate tool using the code snippet 10242 for ac_prog in tr 10243 do 10244 # Extract the first word of "$ac_prog", so it can be a program name with args. 10245 set dummy $ac_prog; ac_word=$2 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10247 $as_echo_n "checking for $ac_word... " >&6; } 10248 if ${ac_cv_path_TR+:} false; then : 10249 $as_echo_n "(cached) " >&6 10250 else 10251 case $TR in 10252 [\\/]* | ?:[\\/]*) 10253 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10254 ;; 10255 *) 10256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10257 for as_dir in $PATH 10258 do 10259 IFS=$as_save_IFS 10260 test -z "$as_dir" && as_dir=. 10261 for ac_exec_ext in '' $ac_executable_extensions; do 10262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10263 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10265 break 2 10266 fi 10267 done 10268 done 10269 IFS=$as_save_IFS 10270 10271 ;; 10272 esac 10273 fi 10274 TR=$ac_cv_path_TR 10275 if test -n "$TR"; then 10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10277 $as_echo "$TR" >&6; } 10278 else 10279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10280 $as_echo "no" >&6; } 10281 fi 10282 10283 10284 test -n "$TR" && break 10285 done 10286 10287 else 10288 # If it succeeded, then it was overridden by the user. We will use it 10289 # for the tool. 10290 10291 # First remove it from the list of overridden variables, so we can test 10292 # for unknown variables in the end. 10293 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10294 10295 # Check if the provided tool contains a complete path. 10296 tool_specified="$TR" 10297 tool_basename="${tool_specified##*/}" 10298 if test "x$tool_basename" = "x$tool_specified"; then 10299 # A command without a complete path is provided, search $PATH. 10300 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10301 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10302 # Extract the first word of "$tool_basename", so it can be a program name with args. 10303 set dummy $tool_basename; ac_word=$2 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10305 $as_echo_n "checking for $ac_word... " >&6; } 10306 if ${ac_cv_path_TR+:} false; then : 10307 $as_echo_n "(cached) " >&6 10308 else 10309 case $TR in 10310 [\\/]* | ?:[\\/]*) 10311 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10312 ;; 10313 *) 10314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10315 for as_dir in $PATH 10316 do 10317 IFS=$as_save_IFS 10318 test -z "$as_dir" && as_dir=. 10319 for ac_exec_ext in '' $ac_executable_extensions; do 10320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10321 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10323 break 2 10324 fi 10325 done 10326 done 10327 IFS=$as_save_IFS 10328 10329 ;; 10330 esac 10331 fi 10332 TR=$ac_cv_path_TR 10333 if test -n "$TR"; then 10334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10335 $as_echo "$TR" >&6; } 10336 else 10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10338 $as_echo "no" >&6; } 10339 fi 10340 10341 10342 if test "x$TR" = x; then 10343 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10344 fi 10345 else 10346 # Otherwise we believe it is a complete path. Use it as it is. 10347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10348 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10350 $as_echo_n "checking for TR... " >&6; } 10351 if test ! -x "$tool_specified"; then 10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10353 $as_echo "not found" >&6; } 10354 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10355 fi 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10357 $as_echo "$tool_specified" >&6; } 10358 fi 10359 fi 10360 fi 10361 10362 10363 10364 if test "x$TR" = x; then 10365 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10366 fi 10367 10368 10369 10370 10371 10372 # Publish this variable in the help. 10373 10374 10375 if test "x$UNAME" = x; then 10376 # The variable is not set by user, try to locate tool using the code snippet 10377 for ac_prog in uname 10378 do 10379 # Extract the first word of "$ac_prog", so it can be a program name with args. 10380 set dummy $ac_prog; ac_word=$2 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10382 $as_echo_n "checking for $ac_word... " >&6; } 10383 if ${ac_cv_path_UNAME+:} false; then : 10384 $as_echo_n "(cached) " >&6 10385 else 10386 case $UNAME in 10387 [\\/]* | ?:[\\/]*) 10388 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10389 ;; 10390 *) 10391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10392 for as_dir in $PATH 10393 do 10394 IFS=$as_save_IFS 10395 test -z "$as_dir" && as_dir=. 10396 for ac_exec_ext in '' $ac_executable_extensions; do 10397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10398 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10400 break 2 10401 fi 10402 done 10403 done 10404 IFS=$as_save_IFS 10405 10406 ;; 10407 esac 10408 fi 10409 UNAME=$ac_cv_path_UNAME 10410 if test -n "$UNAME"; then 10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10412 $as_echo "$UNAME" >&6; } 10413 else 10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10415 $as_echo "no" >&6; } 10416 fi 10417 10418 10419 test -n "$UNAME" && break 10420 done 10421 10422 else 10423 # The variable is set, but is it from the command line or the environment? 10424 10425 # Try to remove the string !UNAME! from our list. 10426 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10427 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10428 # If it failed, the variable was not from the command line. Ignore it, 10429 # but warn the user (except for BASH, which is always set by the calling BASH). 10430 if test "xUNAME" != xBASH; then 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10432 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10433 fi 10434 # Try to locate tool using the code snippet 10435 for ac_prog in uname 10436 do 10437 # Extract the first word of "$ac_prog", so it can be a program name with args. 10438 set dummy $ac_prog; ac_word=$2 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10440 $as_echo_n "checking for $ac_word... " >&6; } 10441 if ${ac_cv_path_UNAME+:} false; then : 10442 $as_echo_n "(cached) " >&6 10443 else 10444 case $UNAME in 10445 [\\/]* | ?:[\\/]*) 10446 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10447 ;; 10448 *) 10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10450 for as_dir in $PATH 10451 do 10452 IFS=$as_save_IFS 10453 test -z "$as_dir" && as_dir=. 10454 for ac_exec_ext in '' $ac_executable_extensions; do 10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10456 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10458 break 2 10459 fi 10460 done 10461 done 10462 IFS=$as_save_IFS 10463 10464 ;; 10465 esac 10466 fi 10467 UNAME=$ac_cv_path_UNAME 10468 if test -n "$UNAME"; then 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10470 $as_echo "$UNAME" >&6; } 10471 else 10472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10473 $as_echo "no" >&6; } 10474 fi 10475 10476 10477 test -n "$UNAME" && break 10478 done 10479 10480 else 10481 # If it succeeded, then it was overridden by the user. We will use it 10482 # for the tool. 10483 10484 # First remove it from the list of overridden variables, so we can test 10485 # for unknown variables in the end. 10486 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10487 10488 # Check if the provided tool contains a complete path. 10489 tool_specified="$UNAME" 10490 tool_basename="${tool_specified##*/}" 10491 if test "x$tool_basename" = "x$tool_specified"; then 10492 # A command without a complete path is provided, search $PATH. 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10494 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10495 # Extract the first word of "$tool_basename", so it can be a program name with args. 10496 set dummy $tool_basename; ac_word=$2 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10498 $as_echo_n "checking for $ac_word... " >&6; } 10499 if ${ac_cv_path_UNAME+:} false; then : 10500 $as_echo_n "(cached) " >&6 10501 else 10502 case $UNAME in 10503 [\\/]* | ?:[\\/]*) 10504 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10505 ;; 10506 *) 10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10508 for as_dir in $PATH 10509 do 10510 IFS=$as_save_IFS 10511 test -z "$as_dir" && as_dir=. 10512 for ac_exec_ext in '' $ac_executable_extensions; do 10513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10514 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10516 break 2 10517 fi 10518 done 10519 done 10520 IFS=$as_save_IFS 10521 10522 ;; 10523 esac 10524 fi 10525 UNAME=$ac_cv_path_UNAME 10526 if test -n "$UNAME"; then 10527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10528 $as_echo "$UNAME" >&6; } 10529 else 10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10531 $as_echo "no" >&6; } 10532 fi 10533 10534 10535 if test "x$UNAME" = x; then 10536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10537 fi 10538 else 10539 # Otherwise we believe it is a complete path. Use it as it is. 10540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10541 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10543 $as_echo_n "checking for UNAME... " >&6; } 10544 if test ! -x "$tool_specified"; then 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10546 $as_echo "not found" >&6; } 10547 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10548 fi 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10550 $as_echo "$tool_specified" >&6; } 10551 fi 10552 fi 10553 fi 10554 10555 10556 10557 if test "x$UNAME" = x; then 10558 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10559 fi 10560 10561 10562 10563 10564 10565 # Publish this variable in the help. 10566 10567 10568 if test "x$UNIQ" = x; then 10569 # The variable is not set by user, try to locate tool using the code snippet 10570 for ac_prog in uniq 10571 do 10572 # Extract the first word of "$ac_prog", so it can be a program name with args. 10573 set dummy $ac_prog; ac_word=$2 10574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10575 $as_echo_n "checking for $ac_word... " >&6; } 10576 if ${ac_cv_path_UNIQ+:} false; then : 10577 $as_echo_n "(cached) " >&6 10578 else 10579 case $UNIQ in 10580 [\\/]* | ?:[\\/]*) 10581 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10582 ;; 10583 *) 10584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10585 for as_dir in $PATH 10586 do 10587 IFS=$as_save_IFS 10588 test -z "$as_dir" && as_dir=. 10589 for ac_exec_ext in '' $ac_executable_extensions; do 10590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10591 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10593 break 2 10594 fi 10595 done 10596 done 10597 IFS=$as_save_IFS 10598 10599 ;; 10600 esac 10601 fi 10602 UNIQ=$ac_cv_path_UNIQ 10603 if test -n "$UNIQ"; then 10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10605 $as_echo "$UNIQ" >&6; } 10606 else 10607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10608 $as_echo "no" >&6; } 10609 fi 10610 10611 10612 test -n "$UNIQ" && break 10613 done 10614 10615 else 10616 # The variable is set, but is it from the command line or the environment? 10617 10618 # Try to remove the string !UNIQ! from our list. 10619 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10620 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10621 # If it failed, the variable was not from the command line. Ignore it, 10622 # but warn the user (except for BASH, which is always set by the calling BASH). 10623 if test "xUNIQ" != xBASH; then 10624 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10625 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10626 fi 10627 # Try to locate tool using the code snippet 10628 for ac_prog in uniq 10629 do 10630 # Extract the first word of "$ac_prog", so it can be a program name with args. 10631 set dummy $ac_prog; ac_word=$2 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10633 $as_echo_n "checking for $ac_word... " >&6; } 10634 if ${ac_cv_path_UNIQ+:} false; then : 10635 $as_echo_n "(cached) " >&6 10636 else 10637 case $UNIQ in 10638 [\\/]* | ?:[\\/]*) 10639 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10640 ;; 10641 *) 10642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10643 for as_dir in $PATH 10644 do 10645 IFS=$as_save_IFS 10646 test -z "$as_dir" && as_dir=. 10647 for ac_exec_ext in '' $ac_executable_extensions; do 10648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10649 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10651 break 2 10652 fi 10653 done 10654 done 10655 IFS=$as_save_IFS 10656 10657 ;; 10658 esac 10659 fi 10660 UNIQ=$ac_cv_path_UNIQ 10661 if test -n "$UNIQ"; then 10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10663 $as_echo "$UNIQ" >&6; } 10664 else 10665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10666 $as_echo "no" >&6; } 10667 fi 10668 10669 10670 test -n "$UNIQ" && break 10671 done 10672 10673 else 10674 # If it succeeded, then it was overridden by the user. We will use it 10675 # for the tool. 10676 10677 # First remove it from the list of overridden variables, so we can test 10678 # for unknown variables in the end. 10679 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10680 10681 # Check if the provided tool contains a complete path. 10682 tool_specified="$UNIQ" 10683 tool_basename="${tool_specified##*/}" 10684 if test "x$tool_basename" = "x$tool_specified"; then 10685 # A command without a complete path is provided, search $PATH. 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10687 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10688 # Extract the first word of "$tool_basename", so it can be a program name with args. 10689 set dummy $tool_basename; ac_word=$2 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10691 $as_echo_n "checking for $ac_word... " >&6; } 10692 if ${ac_cv_path_UNIQ+:} false; then : 10693 $as_echo_n "(cached) " >&6 10694 else 10695 case $UNIQ in 10696 [\\/]* | ?:[\\/]*) 10697 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10698 ;; 10699 *) 10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10701 for as_dir in $PATH 10702 do 10703 IFS=$as_save_IFS 10704 test -z "$as_dir" && as_dir=. 10705 for ac_exec_ext in '' $ac_executable_extensions; do 10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10707 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10709 break 2 10710 fi 10711 done 10712 done 10713 IFS=$as_save_IFS 10714 10715 ;; 10716 esac 10717 fi 10718 UNIQ=$ac_cv_path_UNIQ 10719 if test -n "$UNIQ"; then 10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10721 $as_echo "$UNIQ" >&6; } 10722 else 10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10724 $as_echo "no" >&6; } 10725 fi 10726 10727 10728 if test "x$UNIQ" = x; then 10729 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10730 fi 10731 else 10732 # Otherwise we believe it is a complete path. Use it as it is. 10733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10734 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10736 $as_echo_n "checking for UNIQ... " >&6; } 10737 if test ! -x "$tool_specified"; then 10738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10739 $as_echo "not found" >&6; } 10740 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10741 fi 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10743 $as_echo "$tool_specified" >&6; } 10744 fi 10745 fi 10746 fi 10747 10748 10749 10750 if test "x$UNIQ" = x; then 10751 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10752 fi 10753 10754 10755 10756 10757 10758 # Publish this variable in the help. 10759 10760 10761 if test "x$WC" = x; then 10762 # The variable is not set by user, try to locate tool using the code snippet 10763 for ac_prog in wc 10764 do 10765 # Extract the first word of "$ac_prog", so it can be a program name with args. 10766 set dummy $ac_prog; ac_word=$2 10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10768 $as_echo_n "checking for $ac_word... " >&6; } 10769 if ${ac_cv_path_WC+:} false; then : 10770 $as_echo_n "(cached) " >&6 10771 else 10772 case $WC in 10773 [\\/]* | ?:[\\/]*) 10774 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10775 ;; 10776 *) 10777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10778 for as_dir in $PATH 10779 do 10780 IFS=$as_save_IFS 10781 test -z "$as_dir" && as_dir=. 10782 for ac_exec_ext in '' $ac_executable_extensions; do 10783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10784 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10786 break 2 10787 fi 10788 done 10789 done 10790 IFS=$as_save_IFS 10791 10792 ;; 10793 esac 10794 fi 10795 WC=$ac_cv_path_WC 10796 if test -n "$WC"; then 10797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10798 $as_echo "$WC" >&6; } 10799 else 10800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10801 $as_echo "no" >&6; } 10802 fi 10803 10804 10805 test -n "$WC" && break 10806 done 10807 10808 else 10809 # The variable is set, but is it from the command line or the environment? 10810 10811 # Try to remove the string !WC! from our list. 10812 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10813 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10814 # If it failed, the variable was not from the command line. Ignore it, 10815 # but warn the user (except for BASH, which is always set by the calling BASH). 10816 if test "xWC" != xBASH; then 10817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10818 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10819 fi 10820 # Try to locate tool using the code snippet 10821 for ac_prog in wc 10822 do 10823 # Extract the first word of "$ac_prog", so it can be a program name with args. 10824 set dummy $ac_prog; ac_word=$2 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10826 $as_echo_n "checking for $ac_word... " >&6; } 10827 if ${ac_cv_path_WC+:} false; then : 10828 $as_echo_n "(cached) " >&6 10829 else 10830 case $WC in 10831 [\\/]* | ?:[\\/]*) 10832 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10833 ;; 10834 *) 10835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10836 for as_dir in $PATH 10837 do 10838 IFS=$as_save_IFS 10839 test -z "$as_dir" && as_dir=. 10840 for ac_exec_ext in '' $ac_executable_extensions; do 10841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10842 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10844 break 2 10845 fi 10846 done 10847 done 10848 IFS=$as_save_IFS 10849 10850 ;; 10851 esac 10852 fi 10853 WC=$ac_cv_path_WC 10854 if test -n "$WC"; then 10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10856 $as_echo "$WC" >&6; } 10857 else 10858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10859 $as_echo "no" >&6; } 10860 fi 10861 10862 10863 test -n "$WC" && break 10864 done 10865 10866 else 10867 # If it succeeded, then it was overridden by the user. We will use it 10868 # for the tool. 10869 10870 # First remove it from the list of overridden variables, so we can test 10871 # for unknown variables in the end. 10872 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10873 10874 # Check if the provided tool contains a complete path. 10875 tool_specified="$WC" 10876 tool_basename="${tool_specified##*/}" 10877 if test "x$tool_basename" = "x$tool_specified"; then 10878 # A command without a complete path is provided, search $PATH. 10879 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10880 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10881 # Extract the first word of "$tool_basename", so it can be a program name with args. 10882 set dummy $tool_basename; ac_word=$2 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10884 $as_echo_n "checking for $ac_word... " >&6; } 10885 if ${ac_cv_path_WC+:} false; then : 10886 $as_echo_n "(cached) " >&6 10887 else 10888 case $WC in 10889 [\\/]* | ?:[\\/]*) 10890 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10891 ;; 10892 *) 10893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10894 for as_dir in $PATH 10895 do 10896 IFS=$as_save_IFS 10897 test -z "$as_dir" && as_dir=. 10898 for ac_exec_ext in '' $ac_executable_extensions; do 10899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10900 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10902 break 2 10903 fi 10904 done 10905 done 10906 IFS=$as_save_IFS 10907 10908 ;; 10909 esac 10910 fi 10911 WC=$ac_cv_path_WC 10912 if test -n "$WC"; then 10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10914 $as_echo "$WC" >&6; } 10915 else 10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10917 $as_echo "no" >&6; } 10918 fi 10919 10920 10921 if test "x$WC" = x; then 10922 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10923 fi 10924 else 10925 # Otherwise we believe it is a complete path. Use it as it is. 10926 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10927 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10929 $as_echo_n "checking for WC... " >&6; } 10930 if test ! -x "$tool_specified"; then 10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10932 $as_echo "not found" >&6; } 10933 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10934 fi 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10936 $as_echo "$tool_specified" >&6; } 10937 fi 10938 fi 10939 fi 10940 10941 10942 10943 if test "x$WC" = x; then 10944 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10945 fi 10946 10947 10948 10949 10950 10951 # Publish this variable in the help. 10952 10953 10954 if test "x$WHICH" = x; then 10955 # The variable is not set by user, try to locate tool using the code snippet 10956 for ac_prog in which 10957 do 10958 # Extract the first word of "$ac_prog", so it can be a program name with args. 10959 set dummy $ac_prog; ac_word=$2 10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10961 $as_echo_n "checking for $ac_word... " >&6; } 10962 if ${ac_cv_path_WHICH+:} false; then : 10963 $as_echo_n "(cached) " >&6 10964 else 10965 case $WHICH in 10966 [\\/]* | ?:[\\/]*) 10967 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10968 ;; 10969 *) 10970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10971 for as_dir in $PATH 10972 do 10973 IFS=$as_save_IFS 10974 test -z "$as_dir" && as_dir=. 10975 for ac_exec_ext in '' $ac_executable_extensions; do 10976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10977 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10979 break 2 10980 fi 10981 done 10982 done 10983 IFS=$as_save_IFS 10984 10985 ;; 10986 esac 10987 fi 10988 WHICH=$ac_cv_path_WHICH 10989 if test -n "$WHICH"; then 10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 10991 $as_echo "$WHICH" >&6; } 10992 else 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10994 $as_echo "no" >&6; } 10995 fi 10996 10997 10998 test -n "$WHICH" && break 10999 done 11000 11001 else 11002 # The variable is set, but is it from the command line or the environment? 11003 11004 # Try to remove the string !WHICH! from our list. 11005 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11006 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11007 # If it failed, the variable was not from the command line. Ignore it, 11008 # but warn the user (except for BASH, which is always set by the calling BASH). 11009 if test "xWHICH" != xBASH; then 11010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11011 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11012 fi 11013 # Try to locate tool using the code snippet 11014 for ac_prog in which 11015 do 11016 # Extract the first word of "$ac_prog", so it can be a program name with args. 11017 set dummy $ac_prog; ac_word=$2 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11019 $as_echo_n "checking for $ac_word... " >&6; } 11020 if ${ac_cv_path_WHICH+:} false; then : 11021 $as_echo_n "(cached) " >&6 11022 else 11023 case $WHICH in 11024 [\\/]* | ?:[\\/]*) 11025 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11026 ;; 11027 *) 11028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11029 for as_dir in $PATH 11030 do 11031 IFS=$as_save_IFS 11032 test -z "$as_dir" && as_dir=. 11033 for ac_exec_ext in '' $ac_executable_extensions; do 11034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11035 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11037 break 2 11038 fi 11039 done 11040 done 11041 IFS=$as_save_IFS 11042 11043 ;; 11044 esac 11045 fi 11046 WHICH=$ac_cv_path_WHICH 11047 if test -n "$WHICH"; then 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11049 $as_echo "$WHICH" >&6; } 11050 else 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11052 $as_echo "no" >&6; } 11053 fi 11054 11055 11056 test -n "$WHICH" && break 11057 done 11058 11059 else 11060 # If it succeeded, then it was overridden by the user. We will use it 11061 # for the tool. 11062 11063 # First remove it from the list of overridden variables, so we can test 11064 # for unknown variables in the end. 11065 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11066 11067 # Check if the provided tool contains a complete path. 11068 tool_specified="$WHICH" 11069 tool_basename="${tool_specified##*/}" 11070 if test "x$tool_basename" = "x$tool_specified"; then 11071 # A command without a complete path is provided, search $PATH. 11072 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11073 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11074 # Extract the first word of "$tool_basename", so it can be a program name with args. 11075 set dummy $tool_basename; ac_word=$2 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11077 $as_echo_n "checking for $ac_word... " >&6; } 11078 if ${ac_cv_path_WHICH+:} false; then : 11079 $as_echo_n "(cached) " >&6 11080 else 11081 case $WHICH in 11082 [\\/]* | ?:[\\/]*) 11083 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11084 ;; 11085 *) 11086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11087 for as_dir in $PATH 11088 do 11089 IFS=$as_save_IFS 11090 test -z "$as_dir" && as_dir=. 11091 for ac_exec_ext in '' $ac_executable_extensions; do 11092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11093 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11095 break 2 11096 fi 11097 done 11098 done 11099 IFS=$as_save_IFS 11100 11101 ;; 11102 esac 11103 fi 11104 WHICH=$ac_cv_path_WHICH 11105 if test -n "$WHICH"; then 11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11107 $as_echo "$WHICH" >&6; } 11108 else 11109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11110 $as_echo "no" >&6; } 11111 fi 11112 11113 11114 if test "x$WHICH" = x; then 11115 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11116 fi 11117 else 11118 # Otherwise we believe it is a complete path. Use it as it is. 11119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11120 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11122 $as_echo_n "checking for WHICH... " >&6; } 11123 if test ! -x "$tool_specified"; then 11124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11125 $as_echo "not found" >&6; } 11126 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11127 fi 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11129 $as_echo "$tool_specified" >&6; } 11130 fi 11131 fi 11132 fi 11133 11134 11135 11136 if test "x$WHICH" = x; then 11137 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11138 fi 11139 11140 11141 11142 11143 11144 # Publish this variable in the help. 11145 11146 11147 if test "x$XARGS" = x; then 11148 # The variable is not set by user, try to locate tool using the code snippet 11149 for ac_prog in xargs 11150 do 11151 # Extract the first word of "$ac_prog", so it can be a program name with args. 11152 set dummy $ac_prog; ac_word=$2 11153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11154 $as_echo_n "checking for $ac_word... " >&6; } 11155 if ${ac_cv_path_XARGS+:} false; then : 11156 $as_echo_n "(cached) " >&6 11157 else 11158 case $XARGS in 11159 [\\/]* | ?:[\\/]*) 11160 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11161 ;; 11162 *) 11163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11164 for as_dir in $PATH 11165 do 11166 IFS=$as_save_IFS 11167 test -z "$as_dir" && as_dir=. 11168 for ac_exec_ext in '' $ac_executable_extensions; do 11169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11170 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11172 break 2 11173 fi 11174 done 11175 done 11176 IFS=$as_save_IFS 11177 11178 ;; 11179 esac 11180 fi 11181 XARGS=$ac_cv_path_XARGS 11182 if test -n "$XARGS"; then 11183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11184 $as_echo "$XARGS" >&6; } 11185 else 11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11187 $as_echo "no" >&6; } 11188 fi 11189 11190 11191 test -n "$XARGS" && break 11192 done 11193 11194 else 11195 # The variable is set, but is it from the command line or the environment? 11196 11197 # Try to remove the string !XARGS! from our list. 11198 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11199 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11200 # If it failed, the variable was not from the command line. Ignore it, 11201 # but warn the user (except for BASH, which is always set by the calling BASH). 11202 if test "xXARGS" != xBASH; then 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11204 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11205 fi 11206 # Try to locate tool using the code snippet 11207 for ac_prog in xargs 11208 do 11209 # Extract the first word of "$ac_prog", so it can be a program name with args. 11210 set dummy $ac_prog; ac_word=$2 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11212 $as_echo_n "checking for $ac_word... " >&6; } 11213 if ${ac_cv_path_XARGS+:} false; then : 11214 $as_echo_n "(cached) " >&6 11215 else 11216 case $XARGS in 11217 [\\/]* | ?:[\\/]*) 11218 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11219 ;; 11220 *) 11221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11222 for as_dir in $PATH 11223 do 11224 IFS=$as_save_IFS 11225 test -z "$as_dir" && as_dir=. 11226 for ac_exec_ext in '' $ac_executable_extensions; do 11227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11228 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11230 break 2 11231 fi 11232 done 11233 done 11234 IFS=$as_save_IFS 11235 11236 ;; 11237 esac 11238 fi 11239 XARGS=$ac_cv_path_XARGS 11240 if test -n "$XARGS"; then 11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11242 $as_echo "$XARGS" >&6; } 11243 else 11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11245 $as_echo "no" >&6; } 11246 fi 11247 11248 11249 test -n "$XARGS" && break 11250 done 11251 11252 else 11253 # If it succeeded, then it was overridden by the user. We will use it 11254 # for the tool. 11255 11256 # First remove it from the list of overridden variables, so we can test 11257 # for unknown variables in the end. 11258 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11259 11260 # Check if the provided tool contains a complete path. 11261 tool_specified="$XARGS" 11262 tool_basename="${tool_specified##*/}" 11263 if test "x$tool_basename" = "x$tool_specified"; then 11264 # A command without a complete path is provided, search $PATH. 11265 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11266 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11267 # Extract the first word of "$tool_basename", so it can be a program name with args. 11268 set dummy $tool_basename; ac_word=$2 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11270 $as_echo_n "checking for $ac_word... " >&6; } 11271 if ${ac_cv_path_XARGS+:} false; then : 11272 $as_echo_n "(cached) " >&6 11273 else 11274 case $XARGS in 11275 [\\/]* | ?:[\\/]*) 11276 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11277 ;; 11278 *) 11279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11280 for as_dir in $PATH 11281 do 11282 IFS=$as_save_IFS 11283 test -z "$as_dir" && as_dir=. 11284 for ac_exec_ext in '' $ac_executable_extensions; do 11285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11286 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11288 break 2 11289 fi 11290 done 11291 done 11292 IFS=$as_save_IFS 11293 11294 ;; 11295 esac 11296 fi 11297 XARGS=$ac_cv_path_XARGS 11298 if test -n "$XARGS"; then 11299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11300 $as_echo "$XARGS" >&6; } 11301 else 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11303 $as_echo "no" >&6; } 11304 fi 11305 11306 11307 if test "x$XARGS" = x; then 11308 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11309 fi 11310 else 11311 # Otherwise we believe it is a complete path. Use it as it is. 11312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11313 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11315 $as_echo_n "checking for XARGS... " >&6; } 11316 if test ! -x "$tool_specified"; then 11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11318 $as_echo "not found" >&6; } 11319 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11320 fi 11321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11322 $as_echo "$tool_specified" >&6; } 11323 fi 11324 fi 11325 fi 11326 11327 11328 11329 if test "x$XARGS" = x; then 11330 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11331 fi 11332 11333 11334 11335 # Then required tools that require some special treatment. 11336 11337 11338 # Publish this variable in the help. 11339 11340 11341 if test "x$AWK" = x; then 11342 # The variable is not set by user, try to locate tool using the code snippet 11343 for ac_prog in gawk mawk nawk awk 11344 do 11345 # Extract the first word of "$ac_prog", so it can be a program name with args. 11346 set dummy $ac_prog; ac_word=$2 11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11348 $as_echo_n "checking for $ac_word... " >&6; } 11349 if ${ac_cv_prog_AWK+:} false; then : 11350 $as_echo_n "(cached) " >&6 11351 else 11352 if test -n "$AWK"; then 11353 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11354 else 11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11356 for as_dir in $PATH 11357 do 11358 IFS=$as_save_IFS 11359 test -z "$as_dir" && as_dir=. 11360 for ac_exec_ext in '' $ac_executable_extensions; do 11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11362 ac_cv_prog_AWK="$ac_prog" 11363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11364 break 2 11365 fi 11366 done 11367 done 11368 IFS=$as_save_IFS 11369 11370 fi 11371 fi 11372 AWK=$ac_cv_prog_AWK 11373 if test -n "$AWK"; then 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11375 $as_echo "$AWK" >&6; } 11376 else 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11378 $as_echo "no" >&6; } 11379 fi 11380 11381 11382 test -n "$AWK" && break 11383 done 11384 11385 else 11386 # The variable is set, but is it from the command line or the environment? 11387 11388 # Try to remove the string !AWK! from our list. 11389 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11390 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11391 # If it failed, the variable was not from the command line. Ignore it, 11392 # but warn the user (except for BASH, which is always set by the calling BASH). 11393 if test "xAWK" != xBASH; then 11394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11395 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11396 fi 11397 # Try to locate tool using the code snippet 11398 for ac_prog in gawk mawk nawk awk 11399 do 11400 # Extract the first word of "$ac_prog", so it can be a program name with args. 11401 set dummy $ac_prog; ac_word=$2 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11403 $as_echo_n "checking for $ac_word... " >&6; } 11404 if ${ac_cv_prog_AWK+:} false; then : 11405 $as_echo_n "(cached) " >&6 11406 else 11407 if test -n "$AWK"; then 11408 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11409 else 11410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11411 for as_dir in $PATH 11412 do 11413 IFS=$as_save_IFS 11414 test -z "$as_dir" && as_dir=. 11415 for ac_exec_ext in '' $ac_executable_extensions; do 11416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11417 ac_cv_prog_AWK="$ac_prog" 11418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11419 break 2 11420 fi 11421 done 11422 done 11423 IFS=$as_save_IFS 11424 11425 fi 11426 fi 11427 AWK=$ac_cv_prog_AWK 11428 if test -n "$AWK"; then 11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11430 $as_echo "$AWK" >&6; } 11431 else 11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11433 $as_echo "no" >&6; } 11434 fi 11435 11436 11437 test -n "$AWK" && break 11438 done 11439 11440 else 11441 # If it succeeded, then it was overridden by the user. We will use it 11442 # for the tool. 11443 11444 # First remove it from the list of overridden variables, so we can test 11445 # for unknown variables in the end. 11446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11447 11448 # Check if the provided tool contains a complete path. 11449 tool_specified="$AWK" 11450 tool_basename="${tool_specified##*/}" 11451 if test "x$tool_basename" = "x$tool_specified"; then 11452 # A command without a complete path is provided, search $PATH. 11453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11454 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11455 # Extract the first word of "$tool_basename", so it can be a program name with args. 11456 set dummy $tool_basename; ac_word=$2 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11458 $as_echo_n "checking for $ac_word... " >&6; } 11459 if ${ac_cv_path_AWK+:} false; then : 11460 $as_echo_n "(cached) " >&6 11461 else 11462 case $AWK in 11463 [\\/]* | ?:[\\/]*) 11464 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11465 ;; 11466 *) 11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11468 for as_dir in $PATH 11469 do 11470 IFS=$as_save_IFS 11471 test -z "$as_dir" && as_dir=. 11472 for ac_exec_ext in '' $ac_executable_extensions; do 11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11474 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11476 break 2 11477 fi 11478 done 11479 done 11480 IFS=$as_save_IFS 11481 11482 ;; 11483 esac 11484 fi 11485 AWK=$ac_cv_path_AWK 11486 if test -n "$AWK"; then 11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11488 $as_echo "$AWK" >&6; } 11489 else 11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11491 $as_echo "no" >&6; } 11492 fi 11493 11494 11495 if test "x$AWK" = x; then 11496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11497 fi 11498 else 11499 # Otherwise we believe it is a complete path. Use it as it is. 11500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11501 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11503 $as_echo_n "checking for AWK... " >&6; } 11504 if test ! -x "$tool_specified"; then 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11506 $as_echo "not found" >&6; } 11507 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11508 fi 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11510 $as_echo "$tool_specified" >&6; } 11511 fi 11512 fi 11513 fi 11514 11515 11516 if test "x$AWK" = x; then 11517 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11518 fi 11519 11520 11521 11522 11523 # Publish this variable in the help. 11524 11525 11526 if test "x$GREP" = x; then 11527 # The variable is not set by user, try to locate tool using the code snippet 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11529 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11530 if ${ac_cv_path_GREP+:} false; then : 11531 $as_echo_n "(cached) " >&6 11532 else 11533 if test -z "$GREP"; then 11534 ac_path_GREP_found=false 11535 # Loop through the user's path and test for each of PROGNAME-LIST 11536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11537 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11538 do 11539 IFS=$as_save_IFS 11540 test -z "$as_dir" && as_dir=. 11541 for ac_prog in grep ggrep; do 11542 for ac_exec_ext in '' $ac_executable_extensions; do 11543 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11544 as_fn_executable_p "$ac_path_GREP" || continue 11545 # Check for GNU ac_path_GREP and select it if it is found. 11546 # Check for GNU $ac_path_GREP 11547 case `"$ac_path_GREP" --version 2>&1` in 11548 *GNU*) 11549 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11550 *) 11551 ac_count=0 11552 $as_echo_n 0123456789 >"conftest.in" 11553 while : 11554 do 11555 cat "conftest.in" "conftest.in" >"conftest.tmp" 11556 mv "conftest.tmp" "conftest.in" 11557 cp "conftest.in" "conftest.nl" 11558 $as_echo 'GREP' >> "conftest.nl" 11559 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11560 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11561 as_fn_arith $ac_count + 1 && ac_count=$as_val 11562 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11563 # Best one so far, save it but keep looking for a better one 11564 ac_cv_path_GREP="$ac_path_GREP" 11565 ac_path_GREP_max=$ac_count 11566 fi 11567 # 10*(2^10) chars as input seems more than enough 11568 test $ac_count -gt 10 && break 11569 done 11570 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11571 esac 11572 11573 $ac_path_GREP_found && break 3 11574 done 11575 done 11576 done 11577 IFS=$as_save_IFS 11578 if test -z "$ac_cv_path_GREP"; then 11579 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11580 fi 11581 else 11582 ac_cv_path_GREP=$GREP 11583 fi 11584 11585 fi 11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11587 $as_echo "$ac_cv_path_GREP" >&6; } 11588 GREP="$ac_cv_path_GREP" 11589 11590 11591 else 11592 # The variable is set, but is it from the command line or the environment? 11593 11594 # Try to remove the string !GREP! from our list. 11595 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11596 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11597 # If it failed, the variable was not from the command line. Ignore it, 11598 # but warn the user (except for BASH, which is always set by the calling BASH). 11599 if test "xGREP" != xBASH; then 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11601 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11602 fi 11603 # Try to locate tool using the code snippet 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11605 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11606 if ${ac_cv_path_GREP+:} false; then : 11607 $as_echo_n "(cached) " >&6 11608 else 11609 if test -z "$GREP"; then 11610 ac_path_GREP_found=false 11611 # Loop through the user's path and test for each of PROGNAME-LIST 11612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11613 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11614 do 11615 IFS=$as_save_IFS 11616 test -z "$as_dir" && as_dir=. 11617 for ac_prog in grep ggrep; do 11618 for ac_exec_ext in '' $ac_executable_extensions; do 11619 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11620 as_fn_executable_p "$ac_path_GREP" || continue 11621 # Check for GNU ac_path_GREP and select it if it is found. 11622 # Check for GNU $ac_path_GREP 11623 case `"$ac_path_GREP" --version 2>&1` in 11624 *GNU*) 11625 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11626 *) 11627 ac_count=0 11628 $as_echo_n 0123456789 >"conftest.in" 11629 while : 11630 do 11631 cat "conftest.in" "conftest.in" >"conftest.tmp" 11632 mv "conftest.tmp" "conftest.in" 11633 cp "conftest.in" "conftest.nl" 11634 $as_echo 'GREP' >> "conftest.nl" 11635 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11636 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11637 as_fn_arith $ac_count + 1 && ac_count=$as_val 11638 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11639 # Best one so far, save it but keep looking for a better one 11640 ac_cv_path_GREP="$ac_path_GREP" 11641 ac_path_GREP_max=$ac_count 11642 fi 11643 # 10*(2^10) chars as input seems more than enough 11644 test $ac_count -gt 10 && break 11645 done 11646 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11647 esac 11648 11649 $ac_path_GREP_found && break 3 11650 done 11651 done 11652 done 11653 IFS=$as_save_IFS 11654 if test -z "$ac_cv_path_GREP"; then 11655 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11656 fi 11657 else 11658 ac_cv_path_GREP=$GREP 11659 fi 11660 11661 fi 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11663 $as_echo "$ac_cv_path_GREP" >&6; } 11664 GREP="$ac_cv_path_GREP" 11665 11666 11667 else 11668 # If it succeeded, then it was overridden by the user. We will use it 11669 # for the tool. 11670 11671 # First remove it from the list of overridden variables, so we can test 11672 # for unknown variables in the end. 11673 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11674 11675 # Check if the provided tool contains a complete path. 11676 tool_specified="$GREP" 11677 tool_basename="${tool_specified##*/}" 11678 if test "x$tool_basename" = "x$tool_specified"; then 11679 # A command without a complete path is provided, search $PATH. 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11681 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11682 # Extract the first word of "$tool_basename", so it can be a program name with args. 11683 set dummy $tool_basename; ac_word=$2 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11685 $as_echo_n "checking for $ac_word... " >&6; } 11686 if ${ac_cv_path_GREP+:} false; then : 11687 $as_echo_n "(cached) " >&6 11688 else 11689 case $GREP in 11690 [\\/]* | ?:[\\/]*) 11691 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11692 ;; 11693 *) 11694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11695 for as_dir in $PATH 11696 do 11697 IFS=$as_save_IFS 11698 test -z "$as_dir" && as_dir=. 11699 for ac_exec_ext in '' $ac_executable_extensions; do 11700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11701 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11703 break 2 11704 fi 11705 done 11706 done 11707 IFS=$as_save_IFS 11708 11709 ;; 11710 esac 11711 fi 11712 GREP=$ac_cv_path_GREP 11713 if test -n "$GREP"; then 11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11715 $as_echo "$GREP" >&6; } 11716 else 11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11718 $as_echo "no" >&6; } 11719 fi 11720 11721 11722 if test "x$GREP" = x; then 11723 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11724 fi 11725 else 11726 # Otherwise we believe it is a complete path. Use it as it is. 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11728 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11730 $as_echo_n "checking for GREP... " >&6; } 11731 if test ! -x "$tool_specified"; then 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11733 $as_echo "not found" >&6; } 11734 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11735 fi 11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11737 $as_echo "$tool_specified" >&6; } 11738 fi 11739 fi 11740 fi 11741 11742 11743 if test "x$GREP" = x; then 11744 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11745 fi 11746 11747 11748 11749 11750 # Publish this variable in the help. 11751 11752 11753 if test "x$EGREP" = x; then 11754 # The variable is not set by user, try to locate tool using the code snippet 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11756 $as_echo_n "checking for egrep... " >&6; } 11757 if ${ac_cv_path_EGREP+:} false; then : 11758 $as_echo_n "(cached) " >&6 11759 else 11760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11761 then ac_cv_path_EGREP="$GREP -E" 11762 else 11763 if test -z "$EGREP"; then 11764 ac_path_EGREP_found=false 11765 # Loop through the user's path and test for each of PROGNAME-LIST 11766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11768 do 11769 IFS=$as_save_IFS 11770 test -z "$as_dir" && as_dir=. 11771 for ac_prog in egrep; do 11772 for ac_exec_ext in '' $ac_executable_extensions; do 11773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11774 as_fn_executable_p "$ac_path_EGREP" || continue 11775 # Check for GNU ac_path_EGREP and select it if it is found. 11776 # Check for GNU $ac_path_EGREP 11777 case `"$ac_path_EGREP" --version 2>&1` in 11778 *GNU*) 11779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11780 *) 11781 ac_count=0 11782 $as_echo_n 0123456789 >"conftest.in" 11783 while : 11784 do 11785 cat "conftest.in" "conftest.in" >"conftest.tmp" 11786 mv "conftest.tmp" "conftest.in" 11787 cp "conftest.in" "conftest.nl" 11788 $as_echo 'EGREP' >> "conftest.nl" 11789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11791 as_fn_arith $ac_count + 1 && ac_count=$as_val 11792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11793 # Best one so far, save it but keep looking for a better one 11794 ac_cv_path_EGREP="$ac_path_EGREP" 11795 ac_path_EGREP_max=$ac_count 11796 fi 11797 # 10*(2^10) chars as input seems more than enough 11798 test $ac_count -gt 10 && break 11799 done 11800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11801 esac 11802 11803 $ac_path_EGREP_found && break 3 11804 done 11805 done 11806 done 11807 IFS=$as_save_IFS 11808 if test -z "$ac_cv_path_EGREP"; then 11809 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11810 fi 11811 else 11812 ac_cv_path_EGREP=$EGREP 11813 fi 11814 11815 fi 11816 fi 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11818 $as_echo "$ac_cv_path_EGREP" >&6; } 11819 EGREP="$ac_cv_path_EGREP" 11820 11821 11822 else 11823 # The variable is set, but is it from the command line or the environment? 11824 11825 # Try to remove the string !EGREP! from our list. 11826 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11827 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11828 # If it failed, the variable was not from the command line. Ignore it, 11829 # but warn the user (except for BASH, which is always set by the calling BASH). 11830 if test "xEGREP" != xBASH; then 11831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11832 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11833 fi 11834 # Try to locate tool using the code snippet 11835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11836 $as_echo_n "checking for egrep... " >&6; } 11837 if ${ac_cv_path_EGREP+:} false; then : 11838 $as_echo_n "(cached) " >&6 11839 else 11840 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11841 then ac_cv_path_EGREP="$GREP -E" 11842 else 11843 if test -z "$EGREP"; then 11844 ac_path_EGREP_found=false 11845 # Loop through the user's path and test for each of PROGNAME-LIST 11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11847 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11848 do 11849 IFS=$as_save_IFS 11850 test -z "$as_dir" && as_dir=. 11851 for ac_prog in egrep; do 11852 for ac_exec_ext in '' $ac_executable_extensions; do 11853 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11854 as_fn_executable_p "$ac_path_EGREP" || continue 11855 # Check for GNU ac_path_EGREP and select it if it is found. 11856 # Check for GNU $ac_path_EGREP 11857 case `"$ac_path_EGREP" --version 2>&1` in 11858 *GNU*) 11859 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11860 *) 11861 ac_count=0 11862 $as_echo_n 0123456789 >"conftest.in" 11863 while : 11864 do 11865 cat "conftest.in" "conftest.in" >"conftest.tmp" 11866 mv "conftest.tmp" "conftest.in" 11867 cp "conftest.in" "conftest.nl" 11868 $as_echo 'EGREP' >> "conftest.nl" 11869 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11870 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11871 as_fn_arith $ac_count + 1 && ac_count=$as_val 11872 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11873 # Best one so far, save it but keep looking for a better one 11874 ac_cv_path_EGREP="$ac_path_EGREP" 11875 ac_path_EGREP_max=$ac_count 11876 fi 11877 # 10*(2^10) chars as input seems more than enough 11878 test $ac_count -gt 10 && break 11879 done 11880 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11881 esac 11882 11883 $ac_path_EGREP_found && break 3 11884 done 11885 done 11886 done 11887 IFS=$as_save_IFS 11888 if test -z "$ac_cv_path_EGREP"; then 11889 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11890 fi 11891 else 11892 ac_cv_path_EGREP=$EGREP 11893 fi 11894 11895 fi 11896 fi 11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11898 $as_echo "$ac_cv_path_EGREP" >&6; } 11899 EGREP="$ac_cv_path_EGREP" 11900 11901 11902 else 11903 # If it succeeded, then it was overridden by the user. We will use it 11904 # for the tool. 11905 11906 # First remove it from the list of overridden variables, so we can test 11907 # for unknown variables in the end. 11908 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11909 11910 # Check if the provided tool contains a complete path. 11911 tool_specified="$EGREP" 11912 tool_basename="${tool_specified##*/}" 11913 if test "x$tool_basename" = "x$tool_specified"; then 11914 # A command without a complete path is provided, search $PATH. 11915 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11916 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11917 # Extract the first word of "$tool_basename", so it can be a program name with args. 11918 set dummy $tool_basename; ac_word=$2 11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11920 $as_echo_n "checking for $ac_word... " >&6; } 11921 if ${ac_cv_path_EGREP+:} false; then : 11922 $as_echo_n "(cached) " >&6 11923 else 11924 case $EGREP in 11925 [\\/]* | ?:[\\/]*) 11926 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11927 ;; 11928 *) 11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11930 for as_dir in $PATH 11931 do 11932 IFS=$as_save_IFS 11933 test -z "$as_dir" && as_dir=. 11934 for ac_exec_ext in '' $ac_executable_extensions; do 11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11936 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11938 break 2 11939 fi 11940 done 11941 done 11942 IFS=$as_save_IFS 11943 11944 ;; 11945 esac 11946 fi 11947 EGREP=$ac_cv_path_EGREP 11948 if test -n "$EGREP"; then 11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11950 $as_echo "$EGREP" >&6; } 11951 else 11952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11953 $as_echo "no" >&6; } 11954 fi 11955 11956 11957 if test "x$EGREP" = x; then 11958 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11959 fi 11960 else 11961 # Otherwise we believe it is a complete path. Use it as it is. 11962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11963 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11965 $as_echo_n "checking for EGREP... " >&6; } 11966 if test ! -x "$tool_specified"; then 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11968 $as_echo "not found" >&6; } 11969 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11970 fi 11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11972 $as_echo "$tool_specified" >&6; } 11973 fi 11974 fi 11975 fi 11976 11977 11978 if test "x$EGREP" = x; then 11979 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11980 fi 11981 11982 11983 11984 11985 # Publish this variable in the help. 11986 11987 11988 if test "x$FGREP" = x; then 11989 # The variable is not set by user, try to locate tool using the code snippet 11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11991 $as_echo_n "checking for fgrep... " >&6; } 11992 if ${ac_cv_path_FGREP+:} false; then : 11993 $as_echo_n "(cached) " >&6 11994 else 11995 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11996 then ac_cv_path_FGREP="$GREP -F" 11997 else 11998 if test -z "$FGREP"; then 11999 ac_path_FGREP_found=false 12000 # Loop through the user's path and test for each of PROGNAME-LIST 12001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12003 do 12004 IFS=$as_save_IFS 12005 test -z "$as_dir" && as_dir=. 12006 for ac_prog in fgrep; do 12007 for ac_exec_ext in '' $ac_executable_extensions; do 12008 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12009 as_fn_executable_p "$ac_path_FGREP" || continue 12010 # Check for GNU ac_path_FGREP and select it if it is found. 12011 # Check for GNU $ac_path_FGREP 12012 case `"$ac_path_FGREP" --version 2>&1` in 12013 *GNU*) 12014 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12015 *) 12016 ac_count=0 12017 $as_echo_n 0123456789 >"conftest.in" 12018 while : 12019 do 12020 cat "conftest.in" "conftest.in" >"conftest.tmp" 12021 mv "conftest.tmp" "conftest.in" 12022 cp "conftest.in" "conftest.nl" 12023 $as_echo 'FGREP' >> "conftest.nl" 12024 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12026 as_fn_arith $ac_count + 1 && ac_count=$as_val 12027 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12028 # Best one so far, save it but keep looking for a better one 12029 ac_cv_path_FGREP="$ac_path_FGREP" 12030 ac_path_FGREP_max=$ac_count 12031 fi 12032 # 10*(2^10) chars as input seems more than enough 12033 test $ac_count -gt 10 && break 12034 done 12035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12036 esac 12037 12038 $ac_path_FGREP_found && break 3 12039 done 12040 done 12041 done 12042 IFS=$as_save_IFS 12043 if test -z "$ac_cv_path_FGREP"; then 12044 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12045 fi 12046 else 12047 ac_cv_path_FGREP=$FGREP 12048 fi 12049 12050 fi 12051 fi 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12053 $as_echo "$ac_cv_path_FGREP" >&6; } 12054 FGREP="$ac_cv_path_FGREP" 12055 12056 12057 else 12058 # The variable is set, but is it from the command line or the environment? 12059 12060 # Try to remove the string !FGREP! from our list. 12061 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12062 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12063 # If it failed, the variable was not from the command line. Ignore it, 12064 # but warn the user (except for BASH, which is always set by the calling BASH). 12065 if test "xFGREP" != xBASH; then 12066 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12067 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12068 fi 12069 # Try to locate tool using the code snippet 12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12071 $as_echo_n "checking for fgrep... " >&6; } 12072 if ${ac_cv_path_FGREP+:} false; then : 12073 $as_echo_n "(cached) " >&6 12074 else 12075 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12076 then ac_cv_path_FGREP="$GREP -F" 12077 else 12078 if test -z "$FGREP"; then 12079 ac_path_FGREP_found=false 12080 # Loop through the user's path and test for each of PROGNAME-LIST 12081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12082 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12083 do 12084 IFS=$as_save_IFS 12085 test -z "$as_dir" && as_dir=. 12086 for ac_prog in fgrep; do 12087 for ac_exec_ext in '' $ac_executable_extensions; do 12088 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12089 as_fn_executable_p "$ac_path_FGREP" || continue 12090 # Check for GNU ac_path_FGREP and select it if it is found. 12091 # Check for GNU $ac_path_FGREP 12092 case `"$ac_path_FGREP" --version 2>&1` in 12093 *GNU*) 12094 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12095 *) 12096 ac_count=0 12097 $as_echo_n 0123456789 >"conftest.in" 12098 while : 12099 do 12100 cat "conftest.in" "conftest.in" >"conftest.tmp" 12101 mv "conftest.tmp" "conftest.in" 12102 cp "conftest.in" "conftest.nl" 12103 $as_echo 'FGREP' >> "conftest.nl" 12104 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12105 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12106 as_fn_arith $ac_count + 1 && ac_count=$as_val 12107 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12108 # Best one so far, save it but keep looking for a better one 12109 ac_cv_path_FGREP="$ac_path_FGREP" 12110 ac_path_FGREP_max=$ac_count 12111 fi 12112 # 10*(2^10) chars as input seems more than enough 12113 test $ac_count -gt 10 && break 12114 done 12115 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12116 esac 12117 12118 $ac_path_FGREP_found && break 3 12119 done 12120 done 12121 done 12122 IFS=$as_save_IFS 12123 if test -z "$ac_cv_path_FGREP"; then 12124 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12125 fi 12126 else 12127 ac_cv_path_FGREP=$FGREP 12128 fi 12129 12130 fi 12131 fi 12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12133 $as_echo "$ac_cv_path_FGREP" >&6; } 12134 FGREP="$ac_cv_path_FGREP" 12135 12136 12137 else 12138 # If it succeeded, then it was overridden by the user. We will use it 12139 # for the tool. 12140 12141 # First remove it from the list of overridden variables, so we can test 12142 # for unknown variables in the end. 12143 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12144 12145 # Check if the provided tool contains a complete path. 12146 tool_specified="$FGREP" 12147 tool_basename="${tool_specified##*/}" 12148 if test "x$tool_basename" = "x$tool_specified"; then 12149 # A command without a complete path is provided, search $PATH. 12150 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12151 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12152 # Extract the first word of "$tool_basename", so it can be a program name with args. 12153 set dummy $tool_basename; ac_word=$2 12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12155 $as_echo_n "checking for $ac_word... " >&6; } 12156 if ${ac_cv_path_FGREP+:} false; then : 12157 $as_echo_n "(cached) " >&6 12158 else 12159 case $FGREP in 12160 [\\/]* | ?:[\\/]*) 12161 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12162 ;; 12163 *) 12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12165 for as_dir in $PATH 12166 do 12167 IFS=$as_save_IFS 12168 test -z "$as_dir" && as_dir=. 12169 for ac_exec_ext in '' $ac_executable_extensions; do 12170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12171 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12173 break 2 12174 fi 12175 done 12176 done 12177 IFS=$as_save_IFS 12178 12179 ;; 12180 esac 12181 fi 12182 FGREP=$ac_cv_path_FGREP 12183 if test -n "$FGREP"; then 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12185 $as_echo "$FGREP" >&6; } 12186 else 12187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12188 $as_echo "no" >&6; } 12189 fi 12190 12191 12192 if test "x$FGREP" = x; then 12193 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12194 fi 12195 else 12196 # Otherwise we believe it is a complete path. Use it as it is. 12197 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12198 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12200 $as_echo_n "checking for FGREP... " >&6; } 12201 if test ! -x "$tool_specified"; then 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12203 $as_echo "not found" >&6; } 12204 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12205 fi 12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12207 $as_echo "$tool_specified" >&6; } 12208 fi 12209 fi 12210 fi 12211 12212 12213 if test "x$FGREP" = x; then 12214 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12215 fi 12216 12217 12218 12219 12220 # Publish this variable in the help. 12221 12222 12223 if test "x$SED" = x; then 12224 # The variable is not set by user, try to locate tool using the code snippet 12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12226 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12227 if ${ac_cv_path_SED+:} false; then : 12228 $as_echo_n "(cached) " >&6 12229 else 12230 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12231 for ac_i in 1 2 3 4 5 6 7; do 12232 ac_script="$ac_script$as_nl$ac_script" 12233 done 12234 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12235 { ac_script=; unset ac_script;} 12236 if test -z "$SED"; then 12237 ac_path_SED_found=false 12238 # Loop through the user's path and test for each of PROGNAME-LIST 12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12240 for as_dir in $PATH 12241 do 12242 IFS=$as_save_IFS 12243 test -z "$as_dir" && as_dir=. 12244 for ac_prog in sed gsed; do 12245 for ac_exec_ext in '' $ac_executable_extensions; do 12246 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12247 as_fn_executable_p "$ac_path_SED" || continue 12248 # Check for GNU ac_path_SED and select it if it is found. 12249 # Check for GNU $ac_path_SED 12250 case `"$ac_path_SED" --version 2>&1` in 12251 *GNU*) 12252 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12253 *) 12254 ac_count=0 12255 $as_echo_n 0123456789 >"conftest.in" 12256 while : 12257 do 12258 cat "conftest.in" "conftest.in" >"conftest.tmp" 12259 mv "conftest.tmp" "conftest.in" 12260 cp "conftest.in" "conftest.nl" 12261 $as_echo '' >> "conftest.nl" 12262 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12263 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12264 as_fn_arith $ac_count + 1 && ac_count=$as_val 12265 if test $ac_count -gt ${ac_path_SED_max-0}; then 12266 # Best one so far, save it but keep looking for a better one 12267 ac_cv_path_SED="$ac_path_SED" 12268 ac_path_SED_max=$ac_count 12269 fi 12270 # 10*(2^10) chars as input seems more than enough 12271 test $ac_count -gt 10 && break 12272 done 12273 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12274 esac 12275 12276 $ac_path_SED_found && break 3 12277 done 12278 done 12279 done 12280 IFS=$as_save_IFS 12281 if test -z "$ac_cv_path_SED"; then 12282 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12283 fi 12284 else 12285 ac_cv_path_SED=$SED 12286 fi 12287 12288 fi 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12290 $as_echo "$ac_cv_path_SED" >&6; } 12291 SED="$ac_cv_path_SED" 12292 rm -f conftest.sed 12293 12294 else 12295 # The variable is set, but is it from the command line or the environment? 12296 12297 # Try to remove the string !SED! from our list. 12298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12300 # If it failed, the variable was not from the command line. Ignore it, 12301 # but warn the user (except for BASH, which is always set by the calling BASH). 12302 if test "xSED" != xBASH; then 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12304 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12305 fi 12306 # Try to locate tool using the code snippet 12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12308 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12309 if ${ac_cv_path_SED+:} false; then : 12310 $as_echo_n "(cached) " >&6 12311 else 12312 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12313 for ac_i in 1 2 3 4 5 6 7; do 12314 ac_script="$ac_script$as_nl$ac_script" 12315 done 12316 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12317 { ac_script=; unset ac_script;} 12318 if test -z "$SED"; then 12319 ac_path_SED_found=false 12320 # Loop through the user's path and test for each of PROGNAME-LIST 12321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12322 for as_dir in $PATH 12323 do 12324 IFS=$as_save_IFS 12325 test -z "$as_dir" && as_dir=. 12326 for ac_prog in sed gsed; do 12327 for ac_exec_ext in '' $ac_executable_extensions; do 12328 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12329 as_fn_executable_p "$ac_path_SED" || continue 12330 # Check for GNU ac_path_SED and select it if it is found. 12331 # Check for GNU $ac_path_SED 12332 case `"$ac_path_SED" --version 2>&1` in 12333 *GNU*) 12334 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12335 *) 12336 ac_count=0 12337 $as_echo_n 0123456789 >"conftest.in" 12338 while : 12339 do 12340 cat "conftest.in" "conftest.in" >"conftest.tmp" 12341 mv "conftest.tmp" "conftest.in" 12342 cp "conftest.in" "conftest.nl" 12343 $as_echo '' >> "conftest.nl" 12344 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12345 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12346 as_fn_arith $ac_count + 1 && ac_count=$as_val 12347 if test $ac_count -gt ${ac_path_SED_max-0}; then 12348 # Best one so far, save it but keep looking for a better one 12349 ac_cv_path_SED="$ac_path_SED" 12350 ac_path_SED_max=$ac_count 12351 fi 12352 # 10*(2^10) chars as input seems more than enough 12353 test $ac_count -gt 10 && break 12354 done 12355 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12356 esac 12357 12358 $ac_path_SED_found && break 3 12359 done 12360 done 12361 done 12362 IFS=$as_save_IFS 12363 if test -z "$ac_cv_path_SED"; then 12364 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12365 fi 12366 else 12367 ac_cv_path_SED=$SED 12368 fi 12369 12370 fi 12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12372 $as_echo "$ac_cv_path_SED" >&6; } 12373 SED="$ac_cv_path_SED" 12374 rm -f conftest.sed 12375 12376 else 12377 # If it succeeded, then it was overridden by the user. We will use it 12378 # for the tool. 12379 12380 # First remove it from the list of overridden variables, so we can test 12381 # for unknown variables in the end. 12382 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12383 12384 # Check if the provided tool contains a complete path. 12385 tool_specified="$SED" 12386 tool_basename="${tool_specified##*/}" 12387 if test "x$tool_basename" = "x$tool_specified"; then 12388 # A command without a complete path is provided, search $PATH. 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12390 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12391 # Extract the first word of "$tool_basename", so it can be a program name with args. 12392 set dummy $tool_basename; ac_word=$2 12393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12394 $as_echo_n "checking for $ac_word... " >&6; } 12395 if ${ac_cv_path_SED+:} false; then : 12396 $as_echo_n "(cached) " >&6 12397 else 12398 case $SED in 12399 [\\/]* | ?:[\\/]*) 12400 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12401 ;; 12402 *) 12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12404 for as_dir in $PATH 12405 do 12406 IFS=$as_save_IFS 12407 test -z "$as_dir" && as_dir=. 12408 for ac_exec_ext in '' $ac_executable_extensions; do 12409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12410 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12412 break 2 12413 fi 12414 done 12415 done 12416 IFS=$as_save_IFS 12417 12418 ;; 12419 esac 12420 fi 12421 SED=$ac_cv_path_SED 12422 if test -n "$SED"; then 12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12424 $as_echo "$SED" >&6; } 12425 else 12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12427 $as_echo "no" >&6; } 12428 fi 12429 12430 12431 if test "x$SED" = x; then 12432 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12433 fi 12434 else 12435 # Otherwise we believe it is a complete path. Use it as it is. 12436 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12437 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12439 $as_echo_n "checking for SED... " >&6; } 12440 if test ! -x "$tool_specified"; then 12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12442 $as_echo "not found" >&6; } 12443 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12444 fi 12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12446 $as_echo "$tool_specified" >&6; } 12447 fi 12448 fi 12449 fi 12450 12451 12452 if test "x$SED" = x; then 12453 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12454 fi 12455 12456 12457 12458 # Always force rm. 12459 RM="$RM -f" 12460 12461 # pwd behaves differently on various platforms and some don't support the -L flag. 12462 # Always use the bash builtin pwd to get uniform behavior. 12463 THEPWDCMD=pwd 12464 12465 # These are not required on all platforms 12466 12467 12468 # Publish this variable in the help. 12469 12470 12471 if test "x$CYGPATH" = x; then 12472 # The variable is not set by user, try to locate tool using the code snippet 12473 for ac_prog in cygpath 12474 do 12475 # Extract the first word of "$ac_prog", so it can be a program name with args. 12476 set dummy $ac_prog; ac_word=$2 12477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12478 $as_echo_n "checking for $ac_word... " >&6; } 12479 if ${ac_cv_path_CYGPATH+:} false; then : 12480 $as_echo_n "(cached) " >&6 12481 else 12482 case $CYGPATH in 12483 [\\/]* | ?:[\\/]*) 12484 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12485 ;; 12486 *) 12487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12488 for as_dir in $PATH 12489 do 12490 IFS=$as_save_IFS 12491 test -z "$as_dir" && as_dir=. 12492 for ac_exec_ext in '' $ac_executable_extensions; do 12493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12494 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12496 break 2 12497 fi 12498 done 12499 done 12500 IFS=$as_save_IFS 12501 12502 ;; 12503 esac 12504 fi 12505 CYGPATH=$ac_cv_path_CYGPATH 12506 if test -n "$CYGPATH"; then 12507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12508 $as_echo "$CYGPATH" >&6; } 12509 else 12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12511 $as_echo "no" >&6; } 12512 fi 12513 12514 12515 test -n "$CYGPATH" && break 12516 done 12517 12518 else 12519 # The variable is set, but is it from the command line or the environment? 12520 12521 # Try to remove the string !CYGPATH! from our list. 12522 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12523 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12524 # If it failed, the variable was not from the command line. Ignore it, 12525 # but warn the user (except for BASH, which is always set by the calling BASH). 12526 if test "xCYGPATH" != xBASH; then 12527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12528 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12529 fi 12530 # Try to locate tool using the code snippet 12531 for ac_prog in cygpath 12532 do 12533 # Extract the first word of "$ac_prog", so it can be a program name with args. 12534 set dummy $ac_prog; ac_word=$2 12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12536 $as_echo_n "checking for $ac_word... " >&6; } 12537 if ${ac_cv_path_CYGPATH+:} false; then : 12538 $as_echo_n "(cached) " >&6 12539 else 12540 case $CYGPATH in 12541 [\\/]* | ?:[\\/]*) 12542 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12543 ;; 12544 *) 12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12546 for as_dir in $PATH 12547 do 12548 IFS=$as_save_IFS 12549 test -z "$as_dir" && as_dir=. 12550 for ac_exec_ext in '' $ac_executable_extensions; do 12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12552 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12554 break 2 12555 fi 12556 done 12557 done 12558 IFS=$as_save_IFS 12559 12560 ;; 12561 esac 12562 fi 12563 CYGPATH=$ac_cv_path_CYGPATH 12564 if test -n "$CYGPATH"; then 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12566 $as_echo "$CYGPATH" >&6; } 12567 else 12568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12569 $as_echo "no" >&6; } 12570 fi 12571 12572 12573 test -n "$CYGPATH" && break 12574 done 12575 12576 else 12577 # If it succeeded, then it was overridden by the user. We will use it 12578 # for the tool. 12579 12580 # First remove it from the list of overridden variables, so we can test 12581 # for unknown variables in the end. 12582 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12583 12584 # Check if the provided tool contains a complete path. 12585 tool_specified="$CYGPATH" 12586 tool_basename="${tool_specified##*/}" 12587 if test "x$tool_basename" = "x$tool_specified"; then 12588 # A command without a complete path is provided, search $PATH. 12589 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12590 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12591 # Extract the first word of "$tool_basename", so it can be a program name with args. 12592 set dummy $tool_basename; ac_word=$2 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12594 $as_echo_n "checking for $ac_word... " >&6; } 12595 if ${ac_cv_path_CYGPATH+:} false; then : 12596 $as_echo_n "(cached) " >&6 12597 else 12598 case $CYGPATH in 12599 [\\/]* | ?:[\\/]*) 12600 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12601 ;; 12602 *) 12603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12604 for as_dir in $PATH 12605 do 12606 IFS=$as_save_IFS 12607 test -z "$as_dir" && as_dir=. 12608 for ac_exec_ext in '' $ac_executable_extensions; do 12609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12610 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12612 break 2 12613 fi 12614 done 12615 done 12616 IFS=$as_save_IFS 12617 12618 ;; 12619 esac 12620 fi 12621 CYGPATH=$ac_cv_path_CYGPATH 12622 if test -n "$CYGPATH"; then 12623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12624 $as_echo "$CYGPATH" >&6; } 12625 else 12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12627 $as_echo "no" >&6; } 12628 fi 12629 12630 12631 if test "x$CYGPATH" = x; then 12632 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12633 fi 12634 else 12635 # Otherwise we believe it is a complete path. Use it as it is. 12636 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12637 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12639 $as_echo_n "checking for CYGPATH... " >&6; } 12640 if test ! -x "$tool_specified"; then 12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12642 $as_echo "not found" >&6; } 12643 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12644 fi 12645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12646 $as_echo "$tool_specified" >&6; } 12647 fi 12648 fi 12649 fi 12650 12651 12652 12653 12654 # Publish this variable in the help. 12655 12656 12657 if test "x$READLINK" = x; then 12658 # The variable is not set by user, try to locate tool using the code snippet 12659 for ac_prog in greadlink readlink 12660 do 12661 # Extract the first word of "$ac_prog", so it can be a program name with args. 12662 set dummy $ac_prog; ac_word=$2 12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12664 $as_echo_n "checking for $ac_word... " >&6; } 12665 if ${ac_cv_path_READLINK+:} false; then : 12666 $as_echo_n "(cached) " >&6 12667 else 12668 case $READLINK in 12669 [\\/]* | ?:[\\/]*) 12670 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12671 ;; 12672 *) 12673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12674 for as_dir in $PATH 12675 do 12676 IFS=$as_save_IFS 12677 test -z "$as_dir" && as_dir=. 12678 for ac_exec_ext in '' $ac_executable_extensions; do 12679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12680 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12682 break 2 12683 fi 12684 done 12685 done 12686 IFS=$as_save_IFS 12687 12688 ;; 12689 esac 12690 fi 12691 READLINK=$ac_cv_path_READLINK 12692 if test -n "$READLINK"; then 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12694 $as_echo "$READLINK" >&6; } 12695 else 12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12697 $as_echo "no" >&6; } 12698 fi 12699 12700 12701 test -n "$READLINK" && break 12702 done 12703 12704 else 12705 # The variable is set, but is it from the command line or the environment? 12706 12707 # Try to remove the string !READLINK! from our list. 12708 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12709 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12710 # If it failed, the variable was not from the command line. Ignore it, 12711 # but warn the user (except for BASH, which is always set by the calling BASH). 12712 if test "xREADLINK" != xBASH; then 12713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12714 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12715 fi 12716 # Try to locate tool using the code snippet 12717 for ac_prog in greadlink readlink 12718 do 12719 # Extract the first word of "$ac_prog", so it can be a program name with args. 12720 set dummy $ac_prog; ac_word=$2 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12722 $as_echo_n "checking for $ac_word... " >&6; } 12723 if ${ac_cv_path_READLINK+:} false; then : 12724 $as_echo_n "(cached) " >&6 12725 else 12726 case $READLINK in 12727 [\\/]* | ?:[\\/]*) 12728 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12729 ;; 12730 *) 12731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12732 for as_dir in $PATH 12733 do 12734 IFS=$as_save_IFS 12735 test -z "$as_dir" && as_dir=. 12736 for ac_exec_ext in '' $ac_executable_extensions; do 12737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12738 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12740 break 2 12741 fi 12742 done 12743 done 12744 IFS=$as_save_IFS 12745 12746 ;; 12747 esac 12748 fi 12749 READLINK=$ac_cv_path_READLINK 12750 if test -n "$READLINK"; then 12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12752 $as_echo "$READLINK" >&6; } 12753 else 12754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12755 $as_echo "no" >&6; } 12756 fi 12757 12758 12759 test -n "$READLINK" && break 12760 done 12761 12762 else 12763 # If it succeeded, then it was overridden by the user. We will use it 12764 # for the tool. 12765 12766 # First remove it from the list of overridden variables, so we can test 12767 # for unknown variables in the end. 12768 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12769 12770 # Check if the provided tool contains a complete path. 12771 tool_specified="$READLINK" 12772 tool_basename="${tool_specified##*/}" 12773 if test "x$tool_basename" = "x$tool_specified"; then 12774 # A command without a complete path is provided, search $PATH. 12775 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12776 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12777 # Extract the first word of "$tool_basename", so it can be a program name with args. 12778 set dummy $tool_basename; ac_word=$2 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12780 $as_echo_n "checking for $ac_word... " >&6; } 12781 if ${ac_cv_path_READLINK+:} false; then : 12782 $as_echo_n "(cached) " >&6 12783 else 12784 case $READLINK in 12785 [\\/]* | ?:[\\/]*) 12786 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12787 ;; 12788 *) 12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12790 for as_dir in $PATH 12791 do 12792 IFS=$as_save_IFS 12793 test -z "$as_dir" && as_dir=. 12794 for ac_exec_ext in '' $ac_executable_extensions; do 12795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12796 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12798 break 2 12799 fi 12800 done 12801 done 12802 IFS=$as_save_IFS 12803 12804 ;; 12805 esac 12806 fi 12807 READLINK=$ac_cv_path_READLINK 12808 if test -n "$READLINK"; then 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12810 $as_echo "$READLINK" >&6; } 12811 else 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12813 $as_echo "no" >&6; } 12814 fi 12815 12816 12817 if test "x$READLINK" = x; then 12818 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12819 fi 12820 else 12821 # Otherwise we believe it is a complete path. Use it as it is. 12822 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12823 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12825 $as_echo_n "checking for READLINK... " >&6; } 12826 if test ! -x "$tool_specified"; then 12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12828 $as_echo "not found" >&6; } 12829 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12830 fi 12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12832 $as_echo "$tool_specified" >&6; } 12833 fi 12834 fi 12835 fi 12836 12837 12838 12839 12840 # Publish this variable in the help. 12841 12842 12843 if test "x$DF" = x; then 12844 # The variable is not set by user, try to locate tool using the code snippet 12845 for ac_prog in df 12846 do 12847 # Extract the first word of "$ac_prog", so it can be a program name with args. 12848 set dummy $ac_prog; ac_word=$2 12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12850 $as_echo_n "checking for $ac_word... " >&6; } 12851 if ${ac_cv_path_DF+:} false; then : 12852 $as_echo_n "(cached) " >&6 12853 else 12854 case $DF in 12855 [\\/]* | ?:[\\/]*) 12856 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12857 ;; 12858 *) 12859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12860 for as_dir in $PATH 12861 do 12862 IFS=$as_save_IFS 12863 test -z "$as_dir" && as_dir=. 12864 for ac_exec_ext in '' $ac_executable_extensions; do 12865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12866 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12868 break 2 12869 fi 12870 done 12871 done 12872 IFS=$as_save_IFS 12873 12874 ;; 12875 esac 12876 fi 12877 DF=$ac_cv_path_DF 12878 if test -n "$DF"; then 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12880 $as_echo "$DF" >&6; } 12881 else 12882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12883 $as_echo "no" >&6; } 12884 fi 12885 12886 12887 test -n "$DF" && break 12888 done 12889 12890 else 12891 # The variable is set, but is it from the command line or the environment? 12892 12893 # Try to remove the string !DF! from our list. 12894 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12895 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12896 # If it failed, the variable was not from the command line. Ignore it, 12897 # but warn the user (except for BASH, which is always set by the calling BASH). 12898 if test "xDF" != xBASH; then 12899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12900 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12901 fi 12902 # Try to locate tool using the code snippet 12903 for ac_prog in df 12904 do 12905 # Extract the first word of "$ac_prog", so it can be a program name with args. 12906 set dummy $ac_prog; ac_word=$2 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12908 $as_echo_n "checking for $ac_word... " >&6; } 12909 if ${ac_cv_path_DF+:} false; then : 12910 $as_echo_n "(cached) " >&6 12911 else 12912 case $DF in 12913 [\\/]* | ?:[\\/]*) 12914 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12915 ;; 12916 *) 12917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12918 for as_dir in $PATH 12919 do 12920 IFS=$as_save_IFS 12921 test -z "$as_dir" && as_dir=. 12922 for ac_exec_ext in '' $ac_executable_extensions; do 12923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12924 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12926 break 2 12927 fi 12928 done 12929 done 12930 IFS=$as_save_IFS 12931 12932 ;; 12933 esac 12934 fi 12935 DF=$ac_cv_path_DF 12936 if test -n "$DF"; then 12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12938 $as_echo "$DF" >&6; } 12939 else 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12941 $as_echo "no" >&6; } 12942 fi 12943 12944 12945 test -n "$DF" && break 12946 done 12947 12948 else 12949 # If it succeeded, then it was overridden by the user. We will use it 12950 # for the tool. 12951 12952 # First remove it from the list of overridden variables, so we can test 12953 # for unknown variables in the end. 12954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12955 12956 # Check if the provided tool contains a complete path. 12957 tool_specified="$DF" 12958 tool_basename="${tool_specified##*/}" 12959 if test "x$tool_basename" = "x$tool_specified"; then 12960 # A command without a complete path is provided, search $PATH. 12961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12962 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12963 # Extract the first word of "$tool_basename", so it can be a program name with args. 12964 set dummy $tool_basename; ac_word=$2 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12966 $as_echo_n "checking for $ac_word... " >&6; } 12967 if ${ac_cv_path_DF+:} false; then : 12968 $as_echo_n "(cached) " >&6 12969 else 12970 case $DF in 12971 [\\/]* | ?:[\\/]*) 12972 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12973 ;; 12974 *) 12975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12976 for as_dir in $PATH 12977 do 12978 IFS=$as_save_IFS 12979 test -z "$as_dir" && as_dir=. 12980 for ac_exec_ext in '' $ac_executable_extensions; do 12981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12982 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12984 break 2 12985 fi 12986 done 12987 done 12988 IFS=$as_save_IFS 12989 12990 ;; 12991 esac 12992 fi 12993 DF=$ac_cv_path_DF 12994 if test -n "$DF"; then 12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12996 $as_echo "$DF" >&6; } 12997 else 12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12999 $as_echo "no" >&6; } 13000 fi 13001 13002 13003 if test "x$DF" = x; then 13004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13005 fi 13006 else 13007 # Otherwise we believe it is a complete path. Use it as it is. 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13009 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13011 $as_echo_n "checking for DF... " >&6; } 13012 if test ! -x "$tool_specified"; then 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13014 $as_echo "not found" >&6; } 13015 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13016 fi 13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13018 $as_echo "$tool_specified" >&6; } 13019 fi 13020 fi 13021 fi 13022 13023 13024 13025 13026 # Publish this variable in the help. 13027 13028 13029 if test "x$SETFILE" = x; then 13030 # The variable is not set by user, try to locate tool using the code snippet 13031 for ac_prog in SetFile 13032 do 13033 # Extract the first word of "$ac_prog", so it can be a program name with args. 13034 set dummy $ac_prog; ac_word=$2 13035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13036 $as_echo_n "checking for $ac_word... " >&6; } 13037 if ${ac_cv_path_SETFILE+:} false; then : 13038 $as_echo_n "(cached) " >&6 13039 else 13040 case $SETFILE in 13041 [\\/]* | ?:[\\/]*) 13042 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13043 ;; 13044 *) 13045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13046 for as_dir in $PATH 13047 do 13048 IFS=$as_save_IFS 13049 test -z "$as_dir" && as_dir=. 13050 for ac_exec_ext in '' $ac_executable_extensions; do 13051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13052 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13054 break 2 13055 fi 13056 done 13057 done 13058 IFS=$as_save_IFS 13059 13060 ;; 13061 esac 13062 fi 13063 SETFILE=$ac_cv_path_SETFILE 13064 if test -n "$SETFILE"; then 13065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13066 $as_echo "$SETFILE" >&6; } 13067 else 13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13069 $as_echo "no" >&6; } 13070 fi 13071 13072 13073 test -n "$SETFILE" && break 13074 done 13075 13076 else 13077 # The variable is set, but is it from the command line or the environment? 13078 13079 # Try to remove the string !SETFILE! from our list. 13080 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13081 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13082 # If it failed, the variable was not from the command line. Ignore it, 13083 # but warn the user (except for BASH, which is always set by the calling BASH). 13084 if test "xSETFILE" != xBASH; then 13085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13086 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13087 fi 13088 # Try to locate tool using the code snippet 13089 for ac_prog in SetFile 13090 do 13091 # Extract the first word of "$ac_prog", so it can be a program name with args. 13092 set dummy $ac_prog; ac_word=$2 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13094 $as_echo_n "checking for $ac_word... " >&6; } 13095 if ${ac_cv_path_SETFILE+:} false; then : 13096 $as_echo_n "(cached) " >&6 13097 else 13098 case $SETFILE in 13099 [\\/]* | ?:[\\/]*) 13100 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13101 ;; 13102 *) 13103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13104 for as_dir in $PATH 13105 do 13106 IFS=$as_save_IFS 13107 test -z "$as_dir" && as_dir=. 13108 for ac_exec_ext in '' $ac_executable_extensions; do 13109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13110 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13112 break 2 13113 fi 13114 done 13115 done 13116 IFS=$as_save_IFS 13117 13118 ;; 13119 esac 13120 fi 13121 SETFILE=$ac_cv_path_SETFILE 13122 if test -n "$SETFILE"; then 13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13124 $as_echo "$SETFILE" >&6; } 13125 else 13126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13127 $as_echo "no" >&6; } 13128 fi 13129 13130 13131 test -n "$SETFILE" && break 13132 done 13133 13134 else 13135 # If it succeeded, then it was overridden by the user. We will use it 13136 # for the tool. 13137 13138 # First remove it from the list of overridden variables, so we can test 13139 # for unknown variables in the end. 13140 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13141 13142 # Check if the provided tool contains a complete path. 13143 tool_specified="$SETFILE" 13144 tool_basename="${tool_specified##*/}" 13145 if test "x$tool_basename" = "x$tool_specified"; then 13146 # A command without a complete path is provided, search $PATH. 13147 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13148 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13149 # Extract the first word of "$tool_basename", so it can be a program name with args. 13150 set dummy $tool_basename; ac_word=$2 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13152 $as_echo_n "checking for $ac_word... " >&6; } 13153 if ${ac_cv_path_SETFILE+:} false; then : 13154 $as_echo_n "(cached) " >&6 13155 else 13156 case $SETFILE in 13157 [\\/]* | ?:[\\/]*) 13158 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13159 ;; 13160 *) 13161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13162 for as_dir in $PATH 13163 do 13164 IFS=$as_save_IFS 13165 test -z "$as_dir" && as_dir=. 13166 for ac_exec_ext in '' $ac_executable_extensions; do 13167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13168 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13170 break 2 13171 fi 13172 done 13173 done 13174 IFS=$as_save_IFS 13175 13176 ;; 13177 esac 13178 fi 13179 SETFILE=$ac_cv_path_SETFILE 13180 if test -n "$SETFILE"; then 13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13182 $as_echo "$SETFILE" >&6; } 13183 else 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13185 $as_echo "no" >&6; } 13186 fi 13187 13188 13189 if test "x$SETFILE" = x; then 13190 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13191 fi 13192 else 13193 # Otherwise we believe it is a complete path. Use it as it is. 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13195 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13197 $as_echo_n "checking for SETFILE... " >&6; } 13198 if test ! -x "$tool_specified"; then 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13200 $as_echo "not found" >&6; } 13201 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13202 fi 13203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13204 $as_echo "$tool_specified" >&6; } 13205 fi 13206 fi 13207 fi 13208 13209 13210 13211 13212 # Publish this variable in the help. 13213 13214 13215 if test "x$CPIO" = x; then 13216 # The variable is not set by user, try to locate tool using the code snippet 13217 for ac_prog in cpio bsdcpio 13218 do 13219 # Extract the first word of "$ac_prog", so it can be a program name with args. 13220 set dummy $ac_prog; ac_word=$2 13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13222 $as_echo_n "checking for $ac_word... " >&6; } 13223 if ${ac_cv_path_CPIO+:} false; then : 13224 $as_echo_n "(cached) " >&6 13225 else 13226 case $CPIO in 13227 [\\/]* | ?:[\\/]*) 13228 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13229 ;; 13230 *) 13231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13232 for as_dir in $PATH 13233 do 13234 IFS=$as_save_IFS 13235 test -z "$as_dir" && as_dir=. 13236 for ac_exec_ext in '' $ac_executable_extensions; do 13237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13238 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13240 break 2 13241 fi 13242 done 13243 done 13244 IFS=$as_save_IFS 13245 13246 ;; 13247 esac 13248 fi 13249 CPIO=$ac_cv_path_CPIO 13250 if test -n "$CPIO"; then 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13252 $as_echo "$CPIO" >&6; } 13253 else 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13255 $as_echo "no" >&6; } 13256 fi 13257 13258 13259 test -n "$CPIO" && break 13260 done 13261 13262 else 13263 # The variable is set, but is it from the command line or the environment? 13264 13265 # Try to remove the string !CPIO! from our list. 13266 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 13267 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13268 # If it failed, the variable was not from the command line. Ignore it, 13269 # but warn the user (except for BASH, which is always set by the calling BASH). 13270 if test "xCPIO" != xBASH; then 13271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 13272 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 13273 fi 13274 # Try to locate tool using the code snippet 13275 for ac_prog in cpio bsdcpio 13276 do 13277 # Extract the first word of "$ac_prog", so it can be a program name with args. 13278 set dummy $ac_prog; ac_word=$2 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13280 $as_echo_n "checking for $ac_word... " >&6; } 13281 if ${ac_cv_path_CPIO+:} false; then : 13282 $as_echo_n "(cached) " >&6 13283 else 13284 case $CPIO in 13285 [\\/]* | ?:[\\/]*) 13286 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13287 ;; 13288 *) 13289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13290 for as_dir in $PATH 13291 do 13292 IFS=$as_save_IFS 13293 test -z "$as_dir" && as_dir=. 13294 for ac_exec_ext in '' $ac_executable_extensions; do 13295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13296 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13298 break 2 13299 fi 13300 done 13301 done 13302 IFS=$as_save_IFS 13303 13304 ;; 13305 esac 13306 fi 13307 CPIO=$ac_cv_path_CPIO 13308 if test -n "$CPIO"; then 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13310 $as_echo "$CPIO" >&6; } 13311 else 13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13313 $as_echo "no" >&6; } 13314 fi 13315 13316 13317 test -n "$CPIO" && break 13318 done 13319 13320 else 13321 # If it succeeded, then it was overridden by the user. We will use it 13322 # for the tool. 13323 13324 # First remove it from the list of overridden variables, so we can test 13325 # for unknown variables in the end. 13326 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13327 13328 # Check if the provided tool contains a complete path. 13329 tool_specified="$CPIO" 13330 tool_basename="${tool_specified##*/}" 13331 if test "x$tool_basename" = "x$tool_specified"; then 13332 # A command without a complete path is provided, search $PATH. 13333 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 13334 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 13335 # Extract the first word of "$tool_basename", so it can be a program name with args. 13336 set dummy $tool_basename; ac_word=$2 13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13338 $as_echo_n "checking for $ac_word... " >&6; } 13339 if ${ac_cv_path_CPIO+:} false; then : 13340 $as_echo_n "(cached) " >&6 13341 else 13342 case $CPIO in 13343 [\\/]* | ?:[\\/]*) 13344 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 13345 ;; 13346 *) 13347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13348 for as_dir in $PATH 13349 do 13350 IFS=$as_save_IFS 13351 test -z "$as_dir" && as_dir=. 13352 for ac_exec_ext in '' $ac_executable_extensions; do 13353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13354 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 13355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13356 break 2 13357 fi 13358 done 13359 done 13360 IFS=$as_save_IFS 13361 13362 ;; 13363 esac 13364 fi 13365 CPIO=$ac_cv_path_CPIO 13366 if test -n "$CPIO"; then 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 13368 $as_echo "$CPIO" >&6; } 13369 else 13370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13371 $as_echo "no" >&6; } 13372 fi 13373 13374 13375 if test "x$CPIO" = x; then 13376 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13377 fi 13378 else 13379 # Otherwise we believe it is a complete path. Use it as it is. 13380 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 13381 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 13383 $as_echo_n "checking for CPIO... " >&6; } 13384 if test ! -x "$tool_specified"; then 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13386 $as_echo "not found" >&6; } 13387 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 13388 fi 13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13390 $as_echo "$tool_specified" >&6; } 13391 fi 13392 fi 13393 fi 13394 13395 13396 13397 13398 # Now we can determine OpenJDK build and target platforms. This is required to 13399 # have early on. 13400 # Make sure we can run config.sub. 13401 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13402 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13403 13404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13405 $as_echo_n "checking build system type... " >&6; } 13406 if ${ac_cv_build+:} false; then : 13407 $as_echo_n "(cached) " >&6 13408 else 13409 ac_build_alias=$build_alias 13410 test "x$ac_build_alias" = x && 13411 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13412 test "x$ac_build_alias" = x && 13413 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13414 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13415 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13416 13417 fi 13418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13419 $as_echo "$ac_cv_build" >&6; } 13420 case $ac_cv_build in 13421 *-*-*) ;; 13422 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13423 esac 13424 build=$ac_cv_build 13425 ac_save_IFS=$IFS; IFS='-' 13426 set x $ac_cv_build 13427 shift 13428 build_cpu=$1 13429 build_vendor=$2 13430 shift; shift 13431 # Remember, the first character of IFS is used to create $*, 13432 # except with old shells: 13433 build_os=$* 13434 IFS=$ac_save_IFS 13435 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13436 13437 13438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13439 $as_echo_n "checking host system type... " >&6; } 13440 if ${ac_cv_host+:} false; then : 13441 $as_echo_n "(cached) " >&6 13442 else 13443 if test "x$host_alias" = x; then 13444 ac_cv_host=$ac_cv_build 13445 else 13446 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13447 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13448 fi 13449 13450 fi 13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13452 $as_echo "$ac_cv_host" >&6; } 13453 case $ac_cv_host in 13454 *-*-*) ;; 13455 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13456 esac 13457 host=$ac_cv_host 13458 ac_save_IFS=$IFS; IFS='-' 13459 set x $ac_cv_host 13460 shift 13461 host_cpu=$1 13462 host_vendor=$2 13463 shift; shift 13464 # Remember, the first character of IFS is used to create $*, 13465 # except with old shells: 13466 host_os=$* 13467 IFS=$ac_save_IFS 13468 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13469 13470 13471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13472 $as_echo_n "checking target system type... " >&6; } 13473 if ${ac_cv_target+:} false; then : 13474 $as_echo_n "(cached) " >&6 13475 else 13476 if test "x$target_alias" = x; then 13477 ac_cv_target=$ac_cv_host 13478 else 13479 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13480 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13481 fi 13482 13483 fi 13484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13485 $as_echo "$ac_cv_target" >&6; } 13486 case $ac_cv_target in 13487 *-*-*) ;; 13488 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13489 esac 13490 target=$ac_cv_target 13491 ac_save_IFS=$IFS; IFS='-' 13492 set x $ac_cv_target 13493 shift 13494 target_cpu=$1 13495 target_vendor=$2 13496 shift; shift 13497 # Remember, the first character of IFS is used to create $*, 13498 # except with old shells: 13499 target_os=$* 13500 IFS=$ac_save_IFS 13501 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13502 13503 13504 # The aliases save the names the user supplied, while $host etc. 13505 # will get canonicalized. 13506 test -n "$target_alias" && 13507 test "$program_prefix$program_suffix$program_transform_name" = \ 13508 NONENONEs,x,x, && 13509 program_prefix=${target_alias}- 13510 13511 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13512 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13513 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13514 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13515 # to use the configure naming style. 13516 13517 13518 13519 13520 13521 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13522 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13523 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13524 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13525 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13526 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13527 13528 13529 13530 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13531 13532 case "$build_os" in 13533 *linux*) 13534 VAR_OS=linux 13535 VAR_OS_TYPE=unix 13536 ;; 13537 *solaris*) 13538 VAR_OS=solaris 13539 VAR_OS_TYPE=unix 13540 ;; 13541 *darwin*) 13542 VAR_OS=macosx 13543 VAR_OS_TYPE=unix 13544 ;; 13545 *bsd*) 13546 VAR_OS=bsd 13547 VAR_OS_TYPE=unix 13548 ;; 13549 *cygwin*) 13550 VAR_OS=windows 13551 VAR_OS_ENV=windows.cygwin 13552 ;; 13553 *mingw*) 13554 VAR_OS=windows 13555 VAR_OS_ENV=windows.msys 13556 ;; 13557 *aix*) 13558 VAR_OS=aix 13559 VAR_OS_TYPE=unix 13560 ;; 13561 *) 13562 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13563 ;; 13564 esac 13565 13566 13567 # First argument is the cpu name from the trip/quad 13568 case "$build_cpu" in 13569 x86_64) 13570 VAR_CPU=x86_64 13571 VAR_CPU_ARCH=x86 13572 VAR_CPU_BITS=64 13573 VAR_CPU_ENDIAN=little 13574 ;; 13575 i?86) 13576 VAR_CPU=x86 13577 VAR_CPU_ARCH=x86 13578 VAR_CPU_BITS=32 13579 VAR_CPU_ENDIAN=little 13580 ;; 13581 arm*) 13582 VAR_CPU=arm 13583 VAR_CPU_ARCH=arm 13584 VAR_CPU_BITS=32 13585 VAR_CPU_ENDIAN=little 13586 ;; 13587 powerpc) 13588 VAR_CPU=ppc 13589 VAR_CPU_ARCH=ppc 13590 VAR_CPU_BITS=32 13591 VAR_CPU_ENDIAN=big 13592 ;; 13593 powerpc64) 13594 VAR_CPU=ppc64 13595 VAR_CPU_ARCH=ppc 13596 VAR_CPU_BITS=64 13597 VAR_CPU_ENDIAN=big 13598 ;; 13599 powerpc64le) 13600 VAR_CPU=ppc64 13601 VAR_CPU_ARCH=ppc 13602 VAR_CPU_BITS=64 13603 VAR_CPU_ENDIAN=little 13604 ;; 13605 s390) 13606 VAR_CPU=s390 13607 VAR_CPU_ARCH=s390 13608 VAR_CPU_BITS=32 13609 VAR_CPU_ENDIAN=big 13610 ;; 13611 s390x) 13612 VAR_CPU=s390x 13613 VAR_CPU_ARCH=s390 13614 VAR_CPU_BITS=64 13615 VAR_CPU_ENDIAN=big 13616 ;; 13617 sparc) 13618 VAR_CPU=sparc 13619 VAR_CPU_ARCH=sparc 13620 VAR_CPU_BITS=32 13621 VAR_CPU_ENDIAN=big 13622 ;; 13623 sparcv9|sparc64) 13624 VAR_CPU=sparcv9 13625 VAR_CPU_ARCH=sparc 13626 VAR_CPU_BITS=64 13627 VAR_CPU_ENDIAN=big 13628 ;; 13629 *) 13630 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13631 ;; 13632 esac 13633 13634 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13635 OPENJDK_BUILD_OS="$VAR_OS" 13636 if test "x$VAR_OS_TYPE" != x; then 13637 OPENJDK_BUILD_OS_TYPE="$VAR_OS_TYPE" 13638 else 13639 OPENJDK_BUILD_OS_TYPE="$VAR_OS" 13640 fi 13641 if test "x$VAR_OS_ENV" != x; then 13642 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13643 else 13644 OPENJDK_BUILD_OS_ENV="$VAR_OS" 13645 fi 13646 OPENJDK_BUILD_CPU="$VAR_CPU" 13647 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13648 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13649 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13650 13651 13652 13653 13654 13655 13656 13657 13658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13659 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13661 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13662 13663 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13664 13665 case "$host_os" in 13666 *linux*) 13667 VAR_OS=linux 13668 VAR_OS_TYPE=unix 13669 ;; 13670 *solaris*) 13671 VAR_OS=solaris 13672 VAR_OS_TYPE=unix 13673 ;; 13674 *darwin*) 13675 VAR_OS=macosx 13676 VAR_OS_TYPE=unix 13677 ;; 13678 *bsd*) 13679 VAR_OS=bsd 13680 VAR_OS_TYPE=unix 13681 ;; 13682 *cygwin*) 13683 VAR_OS=windows 13684 VAR_OS_ENV=windows.cygwin 13685 ;; 13686 *mingw*) 13687 VAR_OS=windows 13688 VAR_OS_ENV=windows.msys 13689 ;; 13690 *aix*) 13691 VAR_OS=aix 13692 VAR_OS_TYPE=unix 13693 ;; 13694 *) 13695 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13696 ;; 13697 esac 13698 13699 13700 # First argument is the cpu name from the trip/quad 13701 case "$host_cpu" in 13702 x86_64) 13703 VAR_CPU=x86_64 13704 VAR_CPU_ARCH=x86 13705 VAR_CPU_BITS=64 13706 VAR_CPU_ENDIAN=little 13707 ;; 13708 i?86) 13709 VAR_CPU=x86 13710 VAR_CPU_ARCH=x86 13711 VAR_CPU_BITS=32 13712 VAR_CPU_ENDIAN=little 13713 ;; 13714 arm*) 13715 VAR_CPU=arm 13716 VAR_CPU_ARCH=arm 13717 VAR_CPU_BITS=32 13718 VAR_CPU_ENDIAN=little 13719 ;; 13720 powerpc) 13721 VAR_CPU=ppc 13722 VAR_CPU_ARCH=ppc 13723 VAR_CPU_BITS=32 13724 VAR_CPU_ENDIAN=big 13725 ;; 13726 powerpc64) 13727 VAR_CPU=ppc64 13728 VAR_CPU_ARCH=ppc 13729 VAR_CPU_BITS=64 13730 VAR_CPU_ENDIAN=big 13731 ;; 13732 powerpc64le) 13733 VAR_CPU=ppc64 13734 VAR_CPU_ARCH=ppc 13735 VAR_CPU_BITS=64 13736 VAR_CPU_ENDIAN=little 13737 ;; 13738 s390) 13739 VAR_CPU=s390 13740 VAR_CPU_ARCH=s390 13741 VAR_CPU_BITS=32 13742 VAR_CPU_ENDIAN=big 13743 ;; 13744 s390x) 13745 VAR_CPU=s390x 13746 VAR_CPU_ARCH=s390 13747 VAR_CPU_BITS=64 13748 VAR_CPU_ENDIAN=big 13749 ;; 13750 sparc) 13751 VAR_CPU=sparc 13752 VAR_CPU_ARCH=sparc 13753 VAR_CPU_BITS=32 13754 VAR_CPU_ENDIAN=big 13755 ;; 13756 sparcv9|sparc64) 13757 VAR_CPU=sparcv9 13758 VAR_CPU_ARCH=sparc 13759 VAR_CPU_BITS=64 13760 VAR_CPU_ENDIAN=big 13761 ;; 13762 *) 13763 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13764 ;; 13765 esac 13766 13767 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13768 OPENJDK_TARGET_OS="$VAR_OS" 13769 if test "x$VAR_OS_TYPE" != x; then 13770 OPENJDK_TARGET_OS_TYPE="$VAR_OS_TYPE" 13771 else 13772 OPENJDK_TARGET_OS_TYPE="$VAR_OS" 13773 fi 13774 if test "x$VAR_OS_ENV" != x; then 13775 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13776 else 13777 OPENJDK_TARGET_OS_ENV="$VAR_OS" 13778 fi 13779 OPENJDK_TARGET_CPU="$VAR_CPU" 13780 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13781 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13782 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13783 13784 13785 13786 13787 13788 13789 13790 13791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13792 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13794 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13795 13796 13797 13798 # Check whether --with-target-bits was given. 13799 if test "${with_target_bits+set}" = set; then : 13800 withval=$with_target_bits; 13801 fi 13802 13803 13804 # We have three types of compiles: 13805 # native == normal compilation, target system == build system 13806 # cross == traditional cross compilation, target system != build system; special toolchain needed 13807 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13808 # 13809 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13810 # We're doing a proper cross-compilation 13811 COMPILE_TYPE="cross" 13812 else 13813 COMPILE_TYPE="native" 13814 fi 13815 13816 if test "x$with_target_bits" != x; then 13817 if test "x$COMPILE_TYPE" = "xcross"; then 13818 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13819 fi 13820 13821 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13822 # A reduced build is requested 13823 COMPILE_TYPE="reduced" 13824 OPENJDK_TARGET_CPU_BITS=32 13825 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13826 OPENJDK_TARGET_CPU=x86 13827 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13828 OPENJDK_TARGET_CPU=sparc 13829 else 13830 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13831 fi 13832 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13833 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 13834 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13836 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13837 else 13838 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13839 fi 13840 fi 13841 13842 13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13844 $as_echo_n "checking compilation type... " >&6; } 13845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13846 $as_echo "$COMPILE_TYPE" >&6; } 13847 13848 13849 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13850 REQUIRED_OS_NAME=SunOS 13851 REQUIRED_OS_VERSION=5.10 13852 fi 13853 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13854 REQUIRED_OS_NAME=Linux 13855 REQUIRED_OS_VERSION=2.6 13856 fi 13857 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13858 REQUIRED_OS_NAME=Windows 13859 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13860 REQUIRED_OS_VERSION=5.2 13861 else 13862 REQUIRED_OS_VERSION=5.1 13863 fi 13864 fi 13865 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13866 REQUIRED_OS_NAME=Darwin 13867 REQUIRED_OS_VERSION=11.2 13868 fi 13869 13870 13871 13872 13873 13874 # Also store the legacy naming of the cpu. 13875 # Ie i586 and amd64 instead of x86 and x86_64 13876 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13877 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13878 OPENJDK_TARGET_CPU_LEGACY="i586" 13879 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13880 # On all platforms except MacOSX replace x86_64 with amd64. 13881 OPENJDK_TARGET_CPU_LEGACY="amd64" 13882 fi 13883 13884 13885 # And the second legacy naming of the cpu. 13886 # Ie i386 and amd64 instead of x86 and x86_64. 13887 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13888 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13889 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13890 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13891 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13892 fi 13893 13894 13895 # This is the name of the cpu (but using i386 and amd64 instead of 13896 # x86 and x86_64, respectively), preceeded by a /, to be used when 13897 # locating libraries. On macosx, it's empty, though. 13898 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13899 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13900 OPENJDK_TARGET_CPU_LIBDIR="" 13901 fi 13902 13903 13904 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13905 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13906 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13907 OPENJDK_TARGET_CPU_ISADIR="" 13908 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13909 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13910 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13911 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13912 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13913 fi 13914 fi 13915 13916 13917 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13918 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13919 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13920 # On linux only, we replace x86 with i386. 13921 OPENJDK_TARGET_CPU_OSARCH="i386" 13922 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13923 # On all platforms except macosx, we replace x86_64 with amd64. 13924 OPENJDK_TARGET_CPU_OSARCH="amd64" 13925 fi 13926 13927 13928 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13929 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13930 OPENJDK_TARGET_CPU_JLI="i386" 13931 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13932 # On all platforms except macosx, we replace x86_64 with amd64. 13933 OPENJDK_TARGET_CPU_JLI="amd64" 13934 fi 13935 # Now setup the -D flags for building libjli. 13936 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13937 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13938 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13939 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13940 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13941 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13942 fi 13943 fi 13944 13945 13946 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13947 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13948 else 13949 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_TYPE} 13950 fi 13951 13952 13953 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13954 A_LP64="LP64:=" 13955 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13956 # unpack200.exe 13957 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13958 ADD_LP64="-D_LP64=1" 13959 fi 13960 fi 13961 LP64=$A_LP64 13962 13963 13964 if test "x$COMPILE_TYPE" = "xcross"; then 13965 # FIXME: ... or should this include reduced builds..? 13966 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13967 else 13968 DEFINE_CROSS_COMPILE_ARCH="" 13969 fi 13970 13971 13972 # ZERO_ARCHDEF is used to enable architecture-specific code 13973 case "${OPENJDK_TARGET_CPU}" in 13974 ppc) ZERO_ARCHDEF=PPC32 ;; 13975 ppc64) ZERO_ARCHDEF=PPC64 ;; 13976 s390*) ZERO_ARCHDEF=S390 ;; 13977 sparc*) ZERO_ARCHDEF=SPARC ;; 13978 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13979 x86) ZERO_ARCHDEF=IA32 ;; 13980 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13981 esac 13982 13983 13984 13985 13986 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13987 13988 # Save the current directory this script was started from 13989 CURDIR="$PWD" 13990 13991 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13992 PATH_SEP=";" 13993 13994 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13995 if test $SRC_ROOT_LENGTH -gt 100; then 13996 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13997 fi 13998 13999 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 14001 $as_echo_n "checking cygwin release... " >&6; } 14002 CYGWIN_VERSION=`$UNAME -r` 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 14004 $as_echo "$CYGWIN_VERSION" >&6; } 14005 WINDOWS_ENV_VENDOR='cygwin' 14006 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 14007 14008 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 14009 if test "x$CYGWIN_VERSION_OK" = x; then 14010 { $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 14011 $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;} 14012 as_fn_error $? "Cannot continue" "$LINENO" 5 14013 fi 14014 if test "x$CYGPATH" = x; then 14015 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 14016 fi 14017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 14018 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 14019 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14020 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 14021 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 14022 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 14024 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 14025 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 14026 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 14027 if test "x$test_cygdrive_prefix" = x; then 14028 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 14029 fi 14030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 14032 $as_echo_n "checking msys release... " >&6; } 14033 MSYS_VERSION=`$UNAME -r` 14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 14035 $as_echo "$MSYS_VERSION" >&6; } 14036 14037 WINDOWS_ENV_VENDOR='msys' 14038 WINDOWS_ENV_VERSION="$MSYS_VERSION" 14039 14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 14041 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 14042 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 14043 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 14044 14045 windows_path="$MSYS_ROOT_PATH" 14046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14047 unix_path=`$CYGPATH -u "$windows_path"` 14048 MSYS_ROOT_PATH="$unix_path" 14049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14050 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14051 MSYS_ROOT_PATH="$unix_path" 14052 fi 14053 14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 14055 $as_echo "$MSYS_ROOT_PATH" >&6; } 14056 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 14057 else 14058 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 14059 fi 14060 14061 # Test if windows or unix (cygwin/msys) find is first in path. 14062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 14063 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 14064 FIND_BINARY_OUTPUT=`find --version 2>&1` 14065 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 14067 $as_echo "unix style" >&6; } 14068 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 14070 $as_echo "Windows" >&6; } 14071 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 14072 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 14073 { $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 14074 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 14075 as_fn_error $? "Cannot continue" "$LINENO" 5 14076 else 14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 14078 $as_echo "unknown" >&6; } 14079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 14080 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 14081 fi 14082 14083 else 14084 PATH_SEP=":" 14085 fi 14086 14087 14088 # We get the top-level directory from the supporting wrappers. 14089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14090 $as_echo_n "checking for top-level directory... " >&6; } 14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14092 $as_echo "$TOPDIR" >&6; } 14093 14094 14095 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14096 14097 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14098 14099 # Input might be given as Windows format, start by converting to 14100 # unix format. 14101 path="$CURDIR" 14102 new_path=`$CYGPATH -u "$path"` 14103 14104 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14105 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14106 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14107 # "foo.exe" is OK but "foo" is an error. 14108 # 14109 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14110 # It is also a way to make sure we got the proper file name for the real test later on. 14111 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14112 if test "x$test_shortpath" = x; then 14113 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14114 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14115 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14116 fi 14117 14118 # Call helper function which possibly converts this using DOS-style short mode. 14119 # If so, the updated path is stored in $new_path. 14120 14121 input_path="$new_path" 14122 # Check if we need to convert this using DOS-style short mode. If the path 14123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14124 # take no chances and rewrite it. 14125 # Note: m4 eats our [], so we need to use [ and ] instead. 14126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14127 if test "x$has_forbidden_chars" != x; then 14128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14129 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14130 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14131 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14132 # Going to short mode and back again did indeed matter. Since short mode is 14133 # case insensitive, let's make it lowercase to improve readability. 14134 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14135 # Now convert it back to Unix-stile (cygpath) 14136 input_path=`$CYGPATH -u "$shortmode_path"` 14137 new_path="$input_path" 14138 fi 14139 fi 14140 14141 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14142 if test "x$test_cygdrive_prefix" = x; then 14143 # As a simple fix, exclude /usr/bin since it's not a real path. 14144 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14145 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14146 # a path prefixed by /cygdrive for fixpath to work. 14147 new_path="$CYGWIN_ROOT_PATH$input_path" 14148 fi 14149 fi 14150 14151 14152 if test "x$path" != "x$new_path"; then 14153 CURDIR="$new_path" 14154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14155 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14156 fi 14157 14158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14159 14160 path="$CURDIR" 14161 has_colon=`$ECHO $path | $GREP ^.:` 14162 new_path="$path" 14163 if test "x$has_colon" = x; then 14164 # Not in mixed or Windows style, start by that. 14165 new_path=`cmd //c echo $path` 14166 fi 14167 14168 14169 input_path="$new_path" 14170 # Check if we need to convert this using DOS-style short mode. If the path 14171 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14172 # take no chances and rewrite it. 14173 # Note: m4 eats our [], so we need to use [ and ] instead. 14174 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14175 if test "x$has_forbidden_chars" != x; then 14176 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14177 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14178 fi 14179 14180 14181 windows_path="$new_path" 14182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14183 unix_path=`$CYGPATH -u "$windows_path"` 14184 new_path="$unix_path" 14185 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14186 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14187 new_path="$unix_path" 14188 fi 14189 14190 if test "x$path" != "x$new_path"; then 14191 CURDIR="$new_path" 14192 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14193 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14194 fi 14195 14196 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14197 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14198 14199 else 14200 # We're on a unix platform. Hooray! :) 14201 path="$CURDIR" 14202 has_space=`$ECHO "$path" | $GREP " "` 14203 if test "x$has_space" != x; then 14204 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14205 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14206 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14207 fi 14208 14209 # Use eval to expand a potential ~ 14210 eval path="$path" 14211 if test ! -f "$path" && test ! -d "$path"; then 14212 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14213 fi 14214 14215 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14216 fi 14217 14218 14219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14220 14221 # Input might be given as Windows format, start by converting to 14222 # unix format. 14223 path="$TOPDIR" 14224 new_path=`$CYGPATH -u "$path"` 14225 14226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14229 # "foo.exe" is OK but "foo" is an error. 14230 # 14231 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14232 # It is also a way to make sure we got the proper file name for the real test later on. 14233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14234 if test "x$test_shortpath" = x; then 14235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14236 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14237 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14238 fi 14239 14240 # Call helper function which possibly converts this using DOS-style short mode. 14241 # If so, the updated path is stored in $new_path. 14242 14243 input_path="$new_path" 14244 # Check if we need to convert this using DOS-style short mode. If the path 14245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14246 # take no chances and rewrite it. 14247 # Note: m4 eats our [], so we need to use [ and ] instead. 14248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14249 if test "x$has_forbidden_chars" != x; then 14250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14251 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14252 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14253 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14254 # Going to short mode and back again did indeed matter. Since short mode is 14255 # case insensitive, let's make it lowercase to improve readability. 14256 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14257 # Now convert it back to Unix-stile (cygpath) 14258 input_path=`$CYGPATH -u "$shortmode_path"` 14259 new_path="$input_path" 14260 fi 14261 fi 14262 14263 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14264 if test "x$test_cygdrive_prefix" = x; then 14265 # As a simple fix, exclude /usr/bin since it's not a real path. 14266 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14267 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14268 # a path prefixed by /cygdrive for fixpath to work. 14269 new_path="$CYGWIN_ROOT_PATH$input_path" 14270 fi 14271 fi 14272 14273 14274 if test "x$path" != "x$new_path"; then 14275 TOPDIR="$new_path" 14276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14277 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14278 fi 14279 14280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14281 14282 path="$TOPDIR" 14283 has_colon=`$ECHO $path | $GREP ^.:` 14284 new_path="$path" 14285 if test "x$has_colon" = x; then 14286 # Not in mixed or Windows style, start by that. 14287 new_path=`cmd //c echo $path` 14288 fi 14289 14290 14291 input_path="$new_path" 14292 # Check if we need to convert this using DOS-style short mode. If the path 14293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14294 # take no chances and rewrite it. 14295 # Note: m4 eats our [], so we need to use [ and ] instead. 14296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14297 if test "x$has_forbidden_chars" != x; then 14298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14299 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14300 fi 14301 14302 14303 windows_path="$new_path" 14304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14305 unix_path=`$CYGPATH -u "$windows_path"` 14306 new_path="$unix_path" 14307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14309 new_path="$unix_path" 14310 fi 14311 14312 if test "x$path" != "x$new_path"; then 14313 TOPDIR="$new_path" 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14315 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14316 fi 14317 14318 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14319 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14320 14321 else 14322 # We're on a unix platform. Hooray! :) 14323 path="$TOPDIR" 14324 has_space=`$ECHO "$path" | $GREP " "` 14325 if test "x$has_space" != x; then 14326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14327 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14328 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14329 fi 14330 14331 # Use eval to expand a potential ~ 14332 eval path="$path" 14333 if test ! -f "$path" && test ! -d "$path"; then 14334 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14335 fi 14336 14337 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14338 fi 14339 14340 # SRC_ROOT is a traditional alias for TOPDIR. 14341 SRC_ROOT=$TOPDIR 14342 14343 # Locate the directory of this script. 14344 AUTOCONF_DIR=$TOPDIR/common/autoconf 14345 14346 14347 # Setup default logging of stdout and stderr to build.log in the output root. 14348 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14349 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14350 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14351 14352 14353 14354 14355 14356 # Check if it's a pure open build or if custom sources are to be used. 14357 14358 # Check whether --enable-openjdk-only was given. 14359 if test "${enable_openjdk_only+set}" = set; then : 14360 enableval=$enable_openjdk_only; 14361 else 14362 enable_openjdk_only="no" 14363 fi 14364 14365 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14367 $as_echo_n "checking for presence of closed sources... " >&6; } 14368 if test -d "$SRC_ROOT/jdk/src/closed"; then 14369 CLOSED_SOURCE_PRESENT=yes 14370 else 14371 CLOSED_SOURCE_PRESENT=no 14372 fi 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14374 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14375 14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14377 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14378 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14380 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14381 14382 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14383 OPENJDK=true 14384 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14386 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14387 fi 14388 else 14389 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14390 OPENJDK=true 14391 else 14392 OPENJDK=false 14393 fi 14394 fi 14395 14396 if test "x$OPENJDK" = "xtrue"; then 14397 SET_OPENJDK="OPENJDK=true" 14398 fi 14399 14400 14401 14402 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14403 # the IncludeCustomExtension macro. 14404 14405 14406 # Check whether --with-custom-make-dir was given. 14407 if test "${with_custom_make_dir+set}" = set; then : 14408 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5 14409 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14410 fi 14411 14412 14413 14414 14415 # These are needed to be able to create a configuration name (and thus the output directory) 14416 14417 ############################################################################### 14418 # 14419 # Check which variant of the JDK that we want to build. 14420 # Currently we have: 14421 # normal: standard edition 14422 # but the custom make system may add other variants 14423 # 14424 # Effectively the JDK variant gives a name to a specific set of 14425 # modules to compile into the JDK. In the future, these modules 14426 # might even be Jigsaw modules. 14427 # 14428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14429 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14430 14431 # Check whether --with-jdk-variant was given. 14432 if test "${with_jdk_variant+set}" = set; then : 14433 withval=$with_jdk_variant; 14434 fi 14435 14436 14437 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14438 JDK_VARIANT="normal" 14439 else 14440 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14441 fi 14442 14443 14444 14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14446 $as_echo "$JDK_VARIANT" >&6; } 14447 14448 14449 ############################################################################### 14450 # 14451 # Check which interpreter of the JVM we want to build. 14452 # Currently we have: 14453 # template: Template interpreter (the default) 14454 # cpp : C++ interpreter 14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14456 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14457 14458 # Check whether --with-jvm-interpreter was given. 14459 if test "${with_jvm_interpreter+set}" = set; then : 14460 withval=$with_jvm_interpreter; 14461 fi 14462 14463 14464 if test "x$with_jvm_interpreter" = x; then 14465 with_jvm_interpreter="template" 14466 fi 14467 14468 JVM_INTERPRETER="$with_jvm_interpreter" 14469 14470 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14471 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14472 fi 14473 14474 14475 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14477 $as_echo "$with_jvm_interpreter" >&6; } 14478 14479 14480 14481 ############################################################################### 14482 # 14483 # Check which variants of the JVM that we want to build. 14484 # Currently we have: 14485 # server: normal interpreter and a tiered C1/C2 compiler 14486 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14487 # minimal1: reduced form of client with optional VM services and features stripped out 14488 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14489 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14490 # zero: no machine code interpreter, no compiler 14491 # zeroshark: zero interpreter and shark/llvm compiler backend 14492 # core: interpreter only, no compiler (only works on some platforms) 14493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14494 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14495 14496 # Check whether --with-jvm-variants was given. 14497 if test "${with_jvm_variants+set}" = set; then : 14498 withval=$with_jvm_variants; 14499 fi 14500 14501 14502 if test "x$with_jvm_variants" = x; then 14503 with_jvm_variants="server" 14504 fi 14505 14506 JVM_VARIANTS=",$with_jvm_variants," 14507 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,//'` 14508 14509 if test "x$TEST_VARIANTS" != "x,"; then 14510 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14511 fi 14512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14513 $as_echo "$with_jvm_variants" >&6; } 14514 14515 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14516 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14517 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14518 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14519 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14520 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14521 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14522 14523 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14524 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14525 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14526 fi 14527 fi 14528 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14529 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14530 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14531 fi 14532 fi 14533 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14534 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14535 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14536 fi 14537 fi 14538 14539 # Replace the commas with AND for use in the build directory name. 14540 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14541 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/'` 14542 if test "x$COUNT_VARIANTS" != "x,1"; then 14543 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14544 else 14545 BUILDING_MULTIPLE_JVM_VARIANTS=no 14546 fi 14547 14548 14549 14550 14551 14552 14553 14554 14555 14556 14557 INCLUDE_SA=true 14558 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14559 INCLUDE_SA=false 14560 fi 14561 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14562 INCLUDE_SA=false 14563 fi 14564 if test "x$OPENJDK_TARGET_OS" = xaix ; then 14565 INCLUDE_SA=false 14566 fi 14567 14568 14569 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14570 MACOSX_UNIVERSAL="true" 14571 fi 14572 14573 14574 14575 14576 ############################################################################### 14577 # 14578 # Set the debug level 14579 # release: no debug information, all optimizations, no asserts. 14580 # optimized: no debug information, all optimizations, no asserts, HotSpot target is 'optimized'. 14581 # fastdebug: debug information (-g), all optimizations, all asserts 14582 # slowdebug: debug information (-g), no optimizations, all asserts 14583 # 14584 DEBUG_LEVEL="release" 14585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14586 $as_echo_n "checking which debug level to use... " >&6; } 14587 # Check whether --enable-debug was given. 14588 if test "${enable_debug+set}" = set; then : 14589 enableval=$enable_debug; 14590 ENABLE_DEBUG="${enableval}" 14591 DEBUG_LEVEL="fastdebug" 14592 14593 else 14594 ENABLE_DEBUG="no" 14595 fi 14596 14597 14598 14599 # Check whether --with-debug-level was given. 14600 if test "${with_debug_level+set}" = set; then : 14601 withval=$with_debug_level; 14602 DEBUG_LEVEL="${withval}" 14603 if test "x$ENABLE_DEBUG" = xyes; then 14604 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14605 fi 14606 14607 fi 14608 14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14610 $as_echo "$DEBUG_LEVEL" >&6; } 14611 14612 if test "x$DEBUG_LEVEL" != xrelease && \ 14613 test "x$DEBUG_LEVEL" != xoptimized && \ 14614 test "x$DEBUG_LEVEL" != xfastdebug && \ 14615 test "x$DEBUG_LEVEL" != xslowdebug; then 14616 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14617 fi 14618 14619 14620 ############################################################################### 14621 # 14622 # Setup legacy vars/targets and new vars to deal with different debug levels. 14623 # 14624 14625 case $DEBUG_LEVEL in 14626 release ) 14627 VARIANT="OPT" 14628 FASTDEBUG="false" 14629 DEBUG_CLASSFILES="false" 14630 BUILD_VARIANT_RELEASE="" 14631 HOTSPOT_DEBUG_LEVEL="product" 14632 HOTSPOT_EXPORT="product" 14633 ;; 14634 fastdebug ) 14635 VARIANT="DBG" 14636 FASTDEBUG="true" 14637 DEBUG_CLASSFILES="true" 14638 BUILD_VARIANT_RELEASE="-fastdebug" 14639 HOTSPOT_DEBUG_LEVEL="fastdebug" 14640 HOTSPOT_EXPORT="fastdebug" 14641 ;; 14642 slowdebug ) 14643 VARIANT="DBG" 14644 FASTDEBUG="false" 14645 DEBUG_CLASSFILES="true" 14646 BUILD_VARIANT_RELEASE="-debug" 14647 HOTSPOT_DEBUG_LEVEL="debug" 14648 HOTSPOT_EXPORT="debug" 14649 ;; 14650 optimized ) 14651 VARIANT="OPT" 14652 FASTDEBUG="false" 14653 DEBUG_CLASSFILES="false" 14654 BUILD_VARIANT_RELEASE="-optimized" 14655 HOTSPOT_DEBUG_LEVEL="optimized" 14656 HOTSPOT_EXPORT="optimized" 14657 ;; 14658 esac 14659 14660 # The debug level 'optimized' is a little special because it is currently only 14661 # applicable to the HotSpot build where it means to build a completely 14662 # optimized version of the VM without any debugging code (like for the 14663 # 'release' debug level which is called 'product' in the HotSpot build) but 14664 # with the exception that it can contain additional code which is otherwise 14665 # protected by '#ifndef PRODUCT' macros. These 'optimized' builds are used to 14666 # test new and/or experimental features which are not intended for customer 14667 # shipment. Because these new features need to be tested and benchmarked in 14668 # real world scenarios, we want to build the containing JDK at the 'release' 14669 # debug level. 14670 if test "x$DEBUG_LEVEL" = xoptimized; then 14671 DEBUG_LEVEL="release" 14672 fi 14673 14674 ##### 14675 # Generate the legacy makefile targets for hotspot. 14676 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14677 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14678 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14679 # But until then ... 14680 HOTSPOT_TARGET="" 14681 14682 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14683 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14684 fi 14685 14686 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14687 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14688 fi 14689 14690 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14691 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14692 fi 14693 14694 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14695 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14696 fi 14697 14698 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14699 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14700 fi 14701 14702 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14703 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14704 fi 14705 14706 if test "x$JVM_VARIANT_CORE" = xtrue; then 14707 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14708 fi 14709 14710 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14711 14712 # On Macosx universal binaries are produced, but they only contain 14713 # 64 bit intel. This invalidates control of which jvms are built 14714 # from configure, but only server is valid anyway. Fix this 14715 # when hotspot makefiles are rewritten. 14716 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14717 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14718 fi 14719 14720 ##### 14721 14722 14723 14724 14725 14726 14727 14728 14729 # With basic setup done, call the custom early hook. 14730 14731 14732 # Check if we have devkits, extra paths or sysroot set. 14733 14734 14735 # Check whether --with-devkit was given. 14736 if test "${with_devkit+set}" = set; then : 14737 withval=$with_devkit; 14738 14739 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14740 14741 # Input might be given as Windows format, start by converting to 14742 # unix format. 14743 path="$with_devkit" 14744 new_path=`$CYGPATH -u "$path"` 14745 14746 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14747 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14748 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14749 # "foo.exe" is OK but "foo" is an error. 14750 # 14751 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14752 # It is also a way to make sure we got the proper file name for the real test later on. 14753 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14754 if test "x$test_shortpath" = x; then 14755 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14756 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14757 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14758 fi 14759 14760 # Call helper function which possibly converts this using DOS-style short mode. 14761 # If so, the updated path is stored in $new_path. 14762 14763 input_path="$new_path" 14764 # Check if we need to convert this using DOS-style short mode. If the path 14765 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14766 # take no chances and rewrite it. 14767 # Note: m4 eats our [], so we need to use [ and ] instead. 14768 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14769 if test "x$has_forbidden_chars" != x; then 14770 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14771 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14772 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14773 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14774 # Going to short mode and back again did indeed matter. Since short mode is 14775 # case insensitive, let's make it lowercase to improve readability. 14776 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14777 # Now convert it back to Unix-stile (cygpath) 14778 input_path=`$CYGPATH -u "$shortmode_path"` 14779 new_path="$input_path" 14780 fi 14781 fi 14782 14783 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14784 if test "x$test_cygdrive_prefix" = x; then 14785 # As a simple fix, exclude /usr/bin since it's not a real path. 14786 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14787 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14788 # a path prefixed by /cygdrive for fixpath to work. 14789 new_path="$CYGWIN_ROOT_PATH$input_path" 14790 fi 14791 fi 14792 14793 14794 if test "x$path" != "x$new_path"; then 14795 with_devkit="$new_path" 14796 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14797 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14798 fi 14799 14800 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14801 14802 path="$with_devkit" 14803 has_colon=`$ECHO $path | $GREP ^.:` 14804 new_path="$path" 14805 if test "x$has_colon" = x; then 14806 # Not in mixed or Windows style, start by that. 14807 new_path=`cmd //c echo $path` 14808 fi 14809 14810 14811 input_path="$new_path" 14812 # Check if we need to convert this using DOS-style short mode. If the path 14813 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14814 # take no chances and rewrite it. 14815 # Note: m4 eats our [], so we need to use [ and ] instead. 14816 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14817 if test "x$has_forbidden_chars" != x; then 14818 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14819 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14820 fi 14821 14822 14823 windows_path="$new_path" 14824 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14825 unix_path=`$CYGPATH -u "$windows_path"` 14826 new_path="$unix_path" 14827 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14828 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14829 new_path="$unix_path" 14830 fi 14831 14832 if test "x$path" != "x$new_path"; then 14833 with_devkit="$new_path" 14834 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14835 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14836 fi 14837 14838 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14839 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14840 14841 else 14842 # We're on a unix platform. Hooray! :) 14843 path="$with_devkit" 14844 has_space=`$ECHO "$path" | $GREP " "` 14845 if test "x$has_space" != x; then 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14847 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14848 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14849 fi 14850 14851 # Use eval to expand a potential ~ 14852 eval path="$path" 14853 if test ! -f "$path" && test ! -d "$path"; then 14854 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14855 fi 14856 14857 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14858 fi 14859 14860 DEVKIT_ROOT="$with_devkit" 14861 # Check for a meta data info file in the root of the devkit 14862 if test -f "$DEVKIT_ROOT/devkit.info"; then 14863 # This potentially sets the following: 14864 # DEVKIT_NAME: A descriptive name of the devkit 14865 # DEVKIT_TOOLCHAIN_PATH: Corresponds to --with-toolchain-path 14866 # DEVKIT_EXTRA_PATH: Corresponds to --with-extra-path 14867 # DEVKIT_SYSROOT: Corresponds to --with-sysroot 14868 . $DEVKIT_ROOT/devkit.info 14869 fi 14870 14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for devkit" >&5 14872 $as_echo_n "checking for devkit... " >&6; } 14873 if test "x$DEVKIT_NAME" != x; then 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_NAME in $DEVKIT_ROOT" >&5 14875 $as_echo "$DEVKIT_NAME in $DEVKIT_ROOT" >&6; } 14876 else 14877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEVKIT_ROOT" >&5 14878 $as_echo "$DEVKIT_ROOT" >&6; } 14879 fi 14880 14881 if test "x$DEVKIT_EXTRA_PATH" != x; then 14882 14883 if test "x$DEVKIT_EXTRA_PATH" != x; then 14884 if test "x$EXTRA_PATH" = x; then 14885 EXTRA_PATH="$DEVKIT_EXTRA_PATH" 14886 else 14887 EXTRA_PATH="$DEVKIT_EXTRA_PATH:$EXTRA_PATH" 14888 fi 14889 fi 14890 14891 fi 14892 14893 # Fallback default of just /bin if DEVKIT_PATH is not defined 14894 if test "x$DEVKIT_TOOLCHAIN_PATH" = x; then 14895 DEVKIT_TOOLCHAIN_PATH="$DEVKIT_ROOT/bin" 14896 fi 14897 14898 if test "x$DEVKIT_TOOLCHAIN_PATH" != x; then 14899 if test "x$TOOLCHAIN_PATH" = x; then 14900 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH" 14901 else 14902 TOOLCHAIN_PATH="$DEVKIT_TOOLCHAIN_PATH:$TOOLCHAIN_PATH" 14903 fi 14904 fi 14905 14906 14907 # If DEVKIT_SYSROOT is set, use that, otherwise try a couple of known 14908 # places for backwards compatiblity. 14909 if test "x$DEVKIT_SYSROOT" != x; then 14910 SYSROOT="$DEVKIT_SYSROOT" 14911 elif test -d "$DEVKIT_ROOT/$host_alias/libc"; then 14912 SYSROOT="$DEVKIT_ROOT/$host_alias/libc" 14913 elif test -d "$DEVKIT_ROOT/$host/sys-root"; then 14914 SYSROOT="$DEVKIT_ROOT/$host/sys-root" 14915 fi 14916 14917 14918 fi 14919 14920 14921 # You can force the sysroot if the sysroot encoded into the compiler tools 14922 # is not correct. 14923 14924 # Check whether --with-sys-root was given. 14925 if test "${with_sys_root+set}" = set; then : 14926 withval=$with_sys_root; SYSROOT=$with_sys_root 14927 14928 fi 14929 14930 14931 14932 # Check whether --with-sysroot was given. 14933 if test "${with_sysroot+set}" = set; then : 14934 withval=$with_sysroot; SYSROOT=$with_sysroot 14935 14936 fi 14937 14938 14939 14940 # Check whether --with-tools-dir was given. 14941 if test "${with_tools_dir+set}" = set; then : 14942 withval=$with_tools_dir; 14943 if test "x$with_tools_dir" != x; then 14944 if test "x$TOOLCHAIN_PATH" = x; then 14945 TOOLCHAIN_PATH="$with_tools_dir" 14946 else 14947 TOOLCHAIN_PATH="$with_tools_dir:$TOOLCHAIN_PATH" 14948 fi 14949 fi 14950 14951 14952 fi 14953 14954 14955 14956 # Check whether --with-toolchain-path was given. 14957 if test "${with_toolchain_path+set}" = set; then : 14958 withval=$with_toolchain_path; 14959 if test "x$with_toolchain_path" != x; then 14960 if test "x$TOOLCHAIN_PATH" = x; then 14961 TOOLCHAIN_PATH="$with_toolchain_path" 14962 else 14963 TOOLCHAIN_PATH="$with_toolchain_path:$TOOLCHAIN_PATH" 14964 fi 14965 fi 14966 14967 14968 fi 14969 14970 14971 14972 # Check whether --with-extra-path was given. 14973 if test "${with_extra_path+set}" = set; then : 14974 withval=$with_extra_path; 14975 if test "x$with_extra_path" != x; then 14976 if test "x$EXTRA_PATH" = x; then 14977 EXTRA_PATH="$with_extra_path" 14978 else 14979 EXTRA_PATH="$with_extra_path:$EXTRA_PATH" 14980 fi 14981 fi 14982 14983 14984 fi 14985 14986 14987 if test "x$OPENJDK_BUILD_OS" = "xmacosx"; then 14988 # detect if Xcode is installed by running xcodebuild -version 14989 # if no Xcode installed, xcodebuild exits with 1 14990 # if Xcode is installed, even if xcode-select is misconfigured, then it exits with 0 14991 if /usr/bin/xcodebuild -version >/dev/null 2>&1; then 14992 # We need to use xcodebuild in the toolchain dir provided by the user, this will 14993 # fall back on the stub binary in /usr/bin/xcodebuild 14994 # Extract the first word of "xcodebuild", so it can be a program name with args. 14995 set dummy xcodebuild; ac_word=$2 14996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14997 $as_echo_n "checking for $ac_word... " >&6; } 14998 if ${ac_cv_path_XCODEBUILD+:} false; then : 14999 $as_echo_n "(cached) " >&6 15000 else 15001 case $XCODEBUILD in 15002 [\\/]* | ?:[\\/]*) 15003 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 15004 ;; 15005 *) 15006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15007 for as_dir in $TOOLCHAIN_PATH 15008 do 15009 IFS=$as_save_IFS 15010 test -z "$as_dir" && as_dir=. 15011 for ac_exec_ext in '' $ac_executable_extensions; do 15012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15013 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 15014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15015 break 2 15016 fi 15017 done 15018 done 15019 IFS=$as_save_IFS 15020 15021 test -z "$ac_cv_path_XCODEBUILD" && ac_cv_path_XCODEBUILD="/usr/bin/xcodebuild" 15022 ;; 15023 esac 15024 fi 15025 XCODEBUILD=$ac_cv_path_XCODEBUILD 15026 if test -n "$XCODEBUILD"; then 15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 15028 $as_echo "$XCODEBUILD" >&6; } 15029 else 15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15031 $as_echo "no" >&6; } 15032 fi 15033 15034 15035 else 15036 # this should result in SYSROOT being empty, unless --with-sysroot is provided 15037 # when only the command line tools are installed there are no SDKs, so headers 15038 # are copied into the system frameworks 15039 XCODEBUILD= 15040 15041 fi 15042 15043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sdk name" >&5 15044 $as_echo_n "checking for sdk name... " >&6; } 15045 15046 # Check whether --with-sdk-name was given. 15047 if test "${with_sdk_name+set}" = set; then : 15048 withval=$with_sdk_name; SDKNAME=$with_sdk_name 15049 15050 fi 15051 15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKNAME" >&5 15053 $as_echo "$SDKNAME" >&6; } 15054 15055 # if toolchain path is specified then don't rely on system headers, they may not compile 15056 HAVE_SYSTEM_FRAMEWORK_HEADERS=0 15057 test -z "$TOOLCHAIN_PATH" && \ 15058 HAVE_SYSTEM_FRAMEWORK_HEADERS=`test ! -f /System/Library/Frameworks/Foundation.framework/Headers/Foundation.h; echo $?` 15059 15060 if test -z "$SYSROOT"; then 15061 if test -n "$XCODEBUILD"; then 15062 # if we don't have system headers, use default SDK name (last resort) 15063 if test -z "$SDKNAME" -a $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15064 SDKNAME=${SDKNAME:-macosx} 15065 fi 15066 15067 if test -n "$SDKNAME"; then 15068 # Call xcodebuild to determine SYSROOT 15069 SYSROOT=`"$XCODEBUILD" -sdk $SDKNAME -version | grep '^Path: ' | sed 's/Path: //'` 15070 fi 15071 else 15072 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0; then 15073 as_fn_error $? "No xcodebuild tool and no system framework headers found, use --with-sysroot or --with-sdk-name to provide a path to a valid SDK" "$LINENO" 5 15074 fi 15075 fi 15076 else 15077 # warn user if --with-sdk-name was also set 15078 if test -n "$with_sdk_name"; then 15079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&5 15080 $as_echo "$as_me: WARNING: Both SYSROOT and --with-sdk-name are set, only SYSROOT will be used" >&2;} 15081 fi 15082 fi 15083 15084 if test $HAVE_SYSTEM_FRAMEWORK_HEADERS -eq 0 -a -z "$SYSROOT"; then 15085 # If no system framework headers, then SYSROOT must be set, or we won't build 15086 as_fn_error $? "Unable to determine SYSROOT and no headers found in /System/Library/Frameworks. Check Xcode configuration, --with-sysroot or --with-sdk-name arguments." "$LINENO" 5 15087 fi 15088 15089 # Perform a basic sanity test 15090 if test ! -f "$SYSROOT/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 15091 if test -z "$SYSROOT"; then 15092 as_fn_error $? "Unable to find required framework headers, provide a path to an SDK via --with-sysroot or --with-sdk-name and be sure Xcode is installed properly" "$LINENO" 5 15093 else 15094 as_fn_error $? "Invalid SDK or SYSROOT path, dependent framework headers not found" "$LINENO" 5 15095 fi 15096 fi 15097 15098 # set SDKROOT too, Xcode tools will pick it up 15099 SDKROOT=$SYSROOT 15100 15101 fi 15102 15103 # Prepend the extra path to the global path 15104 15105 if test "x$EXTRA_PATH" != x; then 15106 if test "x$PATH" = x; then 15107 PATH="$EXTRA_PATH" 15108 else 15109 PATH="$EXTRA_PATH:$PATH" 15110 fi 15111 fi 15112 15113 15114 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 15115 # Add extra search paths on solaris for utilities like ar and as etc... 15116 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 15117 fi 15118 15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 15120 $as_echo_n "checking for sysroot... " >&6; } 15121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSROOT" >&5 15122 $as_echo "$SYSROOT" >&6; } 15123 15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolchain path" >&5 15125 $as_echo_n "checking for toolchain path... " >&6; } 15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH" >&5 15127 $as_echo "$TOOLCHAIN_PATH" >&6; } 15128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra path" >&5 15129 $as_echo_n "checking for extra path... " >&6; } 15130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTRA_PATH" >&5 15131 $as_echo "$EXTRA_PATH" >&6; } 15132 15133 15134 # To properly create a configuration name, we need to have the OpenJDK target 15135 # and options (variants and debug level) parsed. 15136 15137 15138 15139 # Check whether --with-conf-name was given. 15140 if test "${with_conf_name+set}" = set; then : 15141 withval=$with_conf_name; CONF_NAME=${with_conf_name} 15142 fi 15143 15144 15145 # Test from where we are running configure, in or outside of src root. 15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 15147 $as_echo_n "checking where to store configuration... " >&6; } 15148 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 15149 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 15150 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 15151 # We are running configure from the src root. 15152 # Create a default ./build/target-variant-debuglevel output root. 15153 if test "x${CONF_NAME}" = x; then 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 15155 $as_echo "in default location" >&6; } 15156 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 15157 else 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 15159 $as_echo "in build directory with custom name" >&6; } 15160 fi 15161 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 15162 $MKDIR -p "$OUTPUT_ROOT" 15163 if test ! -d "$OUTPUT_ROOT"; then 15164 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 15165 fi 15166 else 15167 # We are running configure from outside of the src dir. 15168 # Then use the current directory as output dir! 15169 # If configuration is situated in normal build directory, just use the build 15170 # directory name as configuration name, otherwise use the complete path. 15171 if test "x${CONF_NAME}" = x; then 15172 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 15173 fi 15174 OUTPUT_ROOT="$CURDIR" 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 15176 $as_echo "in current directory" >&6; } 15177 15178 # WARNING: This might be a bad thing to do. You need to be sure you want to 15179 # have a configuration in this directory. Do some sanity checks! 15180 15181 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 15182 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 15183 # other files 15184 files_present=`$LS $OUTPUT_ROOT` 15185 # Configure has already touched config.log and confdefs.h in the current dir when this check 15186 # is performed. 15187 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 15188 | $TR -d '\n'` 15189 if test "x$filtered_files" != x; then 15190 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 15191 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 15192 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 15193 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 15194 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 15195 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 15196 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 15197 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 15198 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 15199 $as_echo "$as_me: seriously mess up just about everything." >&6;} 15200 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 15201 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 15202 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 15203 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 15204 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 15205 fi 15206 fi 15207 fi 15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 15209 $as_echo_n "checking what configuration name to use... " >&6; } 15210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 15211 $as_echo "$CONF_NAME" >&6; } 15212 15213 15214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15215 15216 # Input might be given as Windows format, start by converting to 15217 # unix format. 15218 path="$OUTPUT_ROOT" 15219 new_path=`$CYGPATH -u "$path"` 15220 15221 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15222 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15223 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15224 # "foo.exe" is OK but "foo" is an error. 15225 # 15226 # This test is therefore slightly more accurate than "test -f" to check for file precense. 15227 # It is also a way to make sure we got the proper file name for the real test later on. 15228 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15229 if test "x$test_shortpath" = x; then 15230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15231 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15232 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 15233 fi 15234 15235 # Call helper function which possibly converts this using DOS-style short mode. 15236 # If so, the updated path is stored in $new_path. 15237 15238 input_path="$new_path" 15239 # Check if we need to convert this using DOS-style short mode. If the path 15240 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15241 # take no chances and rewrite it. 15242 # Note: m4 eats our [], so we need to use [ and ] instead. 15243 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15244 if test "x$has_forbidden_chars" != x; then 15245 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15246 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15247 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15248 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15249 # Going to short mode and back again did indeed matter. Since short mode is 15250 # case insensitive, let's make it lowercase to improve readability. 15251 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15252 # Now convert it back to Unix-stile (cygpath) 15253 input_path=`$CYGPATH -u "$shortmode_path"` 15254 new_path="$input_path" 15255 fi 15256 fi 15257 15258 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15259 if test "x$test_cygdrive_prefix" = x; then 15260 # As a simple fix, exclude /usr/bin since it's not a real path. 15261 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 15262 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15263 # a path prefixed by /cygdrive for fixpath to work. 15264 new_path="$CYGWIN_ROOT_PATH$input_path" 15265 fi 15266 fi 15267 15268 15269 if test "x$path" != "x$new_path"; then 15270 OUTPUT_ROOT="$new_path" 15271 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15272 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15273 fi 15274 15275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15276 15277 path="$OUTPUT_ROOT" 15278 has_colon=`$ECHO $path | $GREP ^.:` 15279 new_path="$path" 15280 if test "x$has_colon" = x; then 15281 # Not in mixed or Windows style, start by that. 15282 new_path=`cmd //c echo $path` 15283 fi 15284 15285 15286 input_path="$new_path" 15287 # Check if we need to convert this using DOS-style short mode. If the path 15288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15289 # take no chances and rewrite it. 15290 # Note: m4 eats our [], so we need to use [ and ] instead. 15291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15292 if test "x$has_forbidden_chars" != x; then 15293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15294 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15295 fi 15296 15297 15298 windows_path="$new_path" 15299 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15300 unix_path=`$CYGPATH -u "$windows_path"` 15301 new_path="$unix_path" 15302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15303 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15304 new_path="$unix_path" 15305 fi 15306 15307 if test "x$path" != "x$new_path"; then 15308 OUTPUT_ROOT="$new_path" 15309 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 15310 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 15311 fi 15312 15313 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15314 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15315 15316 else 15317 # We're on a unix platform. Hooray! :) 15318 path="$OUTPUT_ROOT" 15319 has_space=`$ECHO "$path" | $GREP " "` 15320 if test "x$has_space" != x; then 15321 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 15322 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 15323 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 15324 fi 15325 15326 # Use eval to expand a potential ~ 15327 eval path="$path" 15328 if test ! -f "$path" && test ! -d "$path"; then 15329 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 15330 fi 15331 15332 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 15333 fi 15334 15335 15336 SPEC=$OUTPUT_ROOT/spec.gmk 15337 15338 CONF_NAME=$CONF_NAME 15339 15340 OUTPUT_ROOT=$OUTPUT_ROOT 15341 15342 15343 # The spec.gmk file contains all variables for the make system. 15344 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15345 15346 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15347 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15348 15349 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15350 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15351 15352 # The compare.sh is used to compare the build output to other builds. 15353 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15354 15355 # The generated Makefile knows where the spec.gmk is and where the source is. 15356 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15357 # which will look for generated configurations 15358 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15359 15360 15361 15362 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15363 15364 for ac_prog in apt-get yum port pkgutil pkgadd 15365 do 15366 # Extract the first word of "$ac_prog", so it can be a program name with args. 15367 set dummy $ac_prog; ac_word=$2 15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15369 $as_echo_n "checking for $ac_word... " >&6; } 15370 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15371 $as_echo_n "(cached) " >&6 15372 else 15373 if test -n "$PKGHANDLER"; then 15374 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15375 else 15376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15377 for as_dir in $PATH 15378 do 15379 IFS=$as_save_IFS 15380 test -z "$as_dir" && as_dir=. 15381 for ac_exec_ext in '' $ac_executable_extensions; do 15382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15383 ac_cv_prog_PKGHANDLER="$ac_prog" 15384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15385 break 2 15386 fi 15387 done 15388 done 15389 IFS=$as_save_IFS 15390 15391 fi 15392 fi 15393 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15394 if test -n "$PKGHANDLER"; then 15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15396 $as_echo "$PKGHANDLER" >&6; } 15397 else 15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15399 $as_echo "no" >&6; } 15400 fi 15401 15402 15403 test -n "$PKGHANDLER" && break 15404 done 15405 15406 15407 15408 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15409 15410 15411 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15412 if test "x$MAKE" != x; then 15413 # User has supplied a make, test it. 15414 if test ! -f "$MAKE"; then 15415 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15416 fi 15417 15418 MAKE_CANDIDATE=""$MAKE"" 15419 DESCRIPTION="user supplied MAKE=$MAKE" 15420 if test "x$MAKE_CANDIDATE" != x; then 15421 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15422 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15423 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15424 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15425 if test "x$IS_GNU_MAKE" = x; then 15426 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15427 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15428 else 15429 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15430 if test "x$IS_MODERN_MAKE" = x; then 15431 { $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 15432 $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;} 15433 else 15434 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15436 MAKE_EXPECTED_ENV='cygwin' 15437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15438 MAKE_EXPECTED_ENV='msys' 15439 else 15440 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15441 fi 15442 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15443 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15444 else 15445 # Not relevant for non-Windows 15446 IS_MAKE_CORRECT_ENV=true 15447 fi 15448 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15449 { $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 15450 $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;} 15451 else 15452 FOUND_MAKE=$MAKE_CANDIDATE 15453 15454 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15455 15456 # First separate the path from the arguments. This will split at the first 15457 # space. 15458 complete="$FOUND_MAKE" 15459 path="${complete%% *}" 15460 tmp="$complete EOL" 15461 arguments="${tmp#* }" 15462 15463 # Input might be given as Windows format, start by converting to 15464 # unix format. 15465 new_path=`$CYGPATH -u "$path"` 15466 15467 # Now try to locate executable using which 15468 new_path=`$WHICH "$new_path" 2> /dev/null` 15469 # bat and cmd files are not always considered executable in cygwin causing which 15470 # to not find them 15471 if test "x$new_path" = x \ 15472 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15473 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15474 new_path=`$CYGPATH -u "$path"` 15475 fi 15476 if test "x$new_path" = x; then 15477 # Oops. Which didn't find the executable. 15478 # The splitting of arguments from the executable at a space might have been incorrect, 15479 # since paths with space are more likely in Windows. Give it another try with the whole 15480 # argument. 15481 path="$complete" 15482 arguments="EOL" 15483 new_path=`$CYGPATH -u "$path"` 15484 new_path=`$WHICH "$new_path" 2> /dev/null` 15485 # bat and cmd files are not always considered executable in cygwin causing which 15486 # to not find them 15487 if test "x$new_path" = x \ 15488 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15489 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15490 new_path=`$CYGPATH -u "$path"` 15491 fi 15492 if test "x$new_path" = x; then 15493 # It's still not found. Now this is an unrecoverable error. 15494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15495 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15496 has_space=`$ECHO "$complete" | $GREP " "` 15497 if test "x$has_space" != x; then 15498 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15499 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15500 fi 15501 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15502 fi 15503 fi 15504 15505 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15506 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15507 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15508 # "foo.exe" is OK but "foo" is an error. 15509 # 15510 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15511 # It is also a way to make sure we got the proper file name for the real test later on. 15512 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15513 if test "x$test_shortpath" = x; then 15514 # Short path failed, file does not exist as specified. 15515 # Try adding .exe or .cmd 15516 if test -f "${new_path}.exe"; then 15517 input_to_shortpath="${new_path}.exe" 15518 elif test -f "${new_path}.cmd"; then 15519 input_to_shortpath="${new_path}.cmd" 15520 else 15521 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15522 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15523 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15524 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15525 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15526 fi 15527 else 15528 input_to_shortpath="$new_path" 15529 fi 15530 15531 # Call helper function which possibly converts this using DOS-style short mode. 15532 # If so, the updated path is stored in $new_path. 15533 new_path="$input_to_shortpath" 15534 15535 input_path="$input_to_shortpath" 15536 # Check if we need to convert this using DOS-style short mode. If the path 15537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15538 # take no chances and rewrite it. 15539 # Note: m4 eats our [], so we need to use [ and ] instead. 15540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15541 if test "x$has_forbidden_chars" != x; then 15542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15543 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15544 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15545 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15546 # Going to short mode and back again did indeed matter. Since short mode is 15547 # case insensitive, let's make it lowercase to improve readability. 15548 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15549 # Now convert it back to Unix-stile (cygpath) 15550 input_path=`$CYGPATH -u "$shortmode_path"` 15551 new_path="$input_path" 15552 fi 15553 fi 15554 15555 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15556 if test "x$test_cygdrive_prefix" = x; then 15557 # As a simple fix, exclude /usr/bin since it's not a real path. 15558 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15559 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15560 # a path prefixed by /cygdrive for fixpath to work. 15561 new_path="$CYGWIN_ROOT_PATH$input_path" 15562 fi 15563 fi 15564 15565 # remove trailing .exe if any 15566 new_path="${new_path/%.exe/}" 15567 15568 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15569 15570 # First separate the path from the arguments. This will split at the first 15571 # space. 15572 complete="$FOUND_MAKE" 15573 path="${complete%% *}" 15574 tmp="$complete EOL" 15575 arguments="${tmp#* }" 15576 15577 # Input might be given as Windows format, start by converting to 15578 # unix format. 15579 new_path="$path" 15580 15581 windows_path="$new_path" 15582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15583 unix_path=`$CYGPATH -u "$windows_path"` 15584 new_path="$unix_path" 15585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15587 new_path="$unix_path" 15588 fi 15589 15590 15591 # Now try to locate executable using which 15592 new_path=`$WHICH "$new_path" 2> /dev/null` 15593 15594 if test "x$new_path" = x; then 15595 # Oops. Which didn't find the executable. 15596 # The splitting of arguments from the executable at a space might have been incorrect, 15597 # since paths with space are more likely in Windows. Give it another try with the whole 15598 # argument. 15599 path="$complete" 15600 arguments="EOL" 15601 new_path="$path" 15602 15603 windows_path="$new_path" 15604 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15605 unix_path=`$CYGPATH -u "$windows_path"` 15606 new_path="$unix_path" 15607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15608 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15609 new_path="$unix_path" 15610 fi 15611 15612 15613 new_path=`$WHICH "$new_path" 2> /dev/null` 15614 # bat and cmd files are not always considered executable in MSYS causing which 15615 # to not find them 15616 if test "x$new_path" = x \ 15617 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15618 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15619 new_path="$path" 15620 15621 windows_path="$new_path" 15622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15623 unix_path=`$CYGPATH -u "$windows_path"` 15624 new_path="$unix_path" 15625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15626 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15627 new_path="$unix_path" 15628 fi 15629 15630 fi 15631 15632 if test "x$new_path" = x; then 15633 # It's still not found. Now this is an unrecoverable error. 15634 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15635 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15636 has_space=`$ECHO "$complete" | $GREP " "` 15637 if test "x$has_space" != x; then 15638 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15639 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15640 fi 15641 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15642 fi 15643 fi 15644 15645 # Now new_path has a complete unix path to the binary 15646 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15647 # Keep paths in /bin as-is, but remove trailing .exe if any 15648 new_path="${new_path/%.exe/}" 15649 # Do not save /bin paths to all_fixpath_prefixes! 15650 else 15651 # Not in mixed or Windows style, start by that. 15652 new_path=`cmd //c echo $new_path` 15653 15654 input_path="$new_path" 15655 # Check if we need to convert this using DOS-style short mode. If the path 15656 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15657 # take no chances and rewrite it. 15658 # Note: m4 eats our [], so we need to use [ and ] instead. 15659 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15660 if test "x$has_forbidden_chars" != x; then 15661 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15662 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15663 fi 15664 15665 # Output is in $new_path 15666 15667 windows_path="$new_path" 15668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15669 unix_path=`$CYGPATH -u "$windows_path"` 15670 new_path="$unix_path" 15671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15673 new_path="$unix_path" 15674 fi 15675 15676 # remove trailing .exe if any 15677 new_path="${new_path/%.exe/}" 15678 15679 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15680 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15681 fi 15682 15683 else 15684 # We're on a unix platform. Hooray! :) 15685 # First separate the path from the arguments. This will split at the first 15686 # space. 15687 complete="$FOUND_MAKE" 15688 path="${complete%% *}" 15689 tmp="$complete EOL" 15690 arguments="${tmp#* }" 15691 15692 # Cannot rely on the command "which" here since it doesn't always work. 15693 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15694 if test -z "$is_absolute_path"; then 15695 # Path to executable is not absolute. Find it. 15696 IFS_save="$IFS" 15697 IFS=: 15698 for p in $PATH; do 15699 if test -f "$p/$path" && test -x "$p/$path"; then 15700 new_path="$p/$path" 15701 break 15702 fi 15703 done 15704 IFS="$IFS_save" 15705 else 15706 # This is an absolute path, we can use it without further modifications. 15707 new_path="$path" 15708 fi 15709 15710 if test "x$new_path" = x; then 15711 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15712 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15713 has_space=`$ECHO "$complete" | $GREP " "` 15714 if test "x$has_space" != x; then 15715 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15716 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15717 fi 15718 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15719 fi 15720 fi 15721 15722 # Now join together the path and the arguments once again 15723 if test "x$arguments" != xEOL; then 15724 new_complete="$new_path ${arguments% *}" 15725 else 15726 new_complete="$new_path" 15727 fi 15728 15729 if test "x$complete" != "x$new_complete"; then 15730 FOUND_MAKE="$new_complete" 15731 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15732 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15733 fi 15734 15735 fi 15736 fi 15737 fi 15738 fi 15739 15740 if test "x$FOUND_MAKE" = x; then 15741 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15742 fi 15743 else 15744 # Try our hardest to locate a correct version of GNU make 15745 for ac_prog in gmake 15746 do 15747 # Extract the first word of "$ac_prog", so it can be a program name with args. 15748 set dummy $ac_prog; ac_word=$2 15749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15750 $as_echo_n "checking for $ac_word... " >&6; } 15751 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15752 $as_echo_n "(cached) " >&6 15753 else 15754 case $CHECK_GMAKE in 15755 [\\/]* | ?:[\\/]*) 15756 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15757 ;; 15758 *) 15759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15760 for as_dir in $PATH 15761 do 15762 IFS=$as_save_IFS 15763 test -z "$as_dir" && as_dir=. 15764 for ac_exec_ext in '' $ac_executable_extensions; do 15765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15766 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15768 break 2 15769 fi 15770 done 15771 done 15772 IFS=$as_save_IFS 15773 15774 ;; 15775 esac 15776 fi 15777 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15778 if test -n "$CHECK_GMAKE"; then 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15780 $as_echo "$CHECK_GMAKE" >&6; } 15781 else 15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15783 $as_echo "no" >&6; } 15784 fi 15785 15786 15787 test -n "$CHECK_GMAKE" && break 15788 done 15789 15790 15791 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15792 DESCRIPTION="gmake in PATH" 15793 if test "x$MAKE_CANDIDATE" != x; then 15794 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15795 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15796 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15797 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15798 if test "x$IS_GNU_MAKE" = x; then 15799 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15800 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15801 else 15802 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15803 if test "x$IS_MODERN_MAKE" = x; then 15804 { $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 15805 $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;} 15806 else 15807 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15809 MAKE_EXPECTED_ENV='cygwin' 15810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15811 MAKE_EXPECTED_ENV='msys' 15812 else 15813 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15814 fi 15815 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15816 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15817 else 15818 # Not relevant for non-Windows 15819 IS_MAKE_CORRECT_ENV=true 15820 fi 15821 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15822 { $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 15823 $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;} 15824 else 15825 FOUND_MAKE=$MAKE_CANDIDATE 15826 15827 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15828 15829 # First separate the path from the arguments. This will split at the first 15830 # space. 15831 complete="$FOUND_MAKE" 15832 path="${complete%% *}" 15833 tmp="$complete EOL" 15834 arguments="${tmp#* }" 15835 15836 # Input might be given as Windows format, start by converting to 15837 # unix format. 15838 new_path=`$CYGPATH -u "$path"` 15839 15840 # Now try to locate executable using which 15841 new_path=`$WHICH "$new_path" 2> /dev/null` 15842 # bat and cmd files are not always considered executable in cygwin causing which 15843 # to not find them 15844 if test "x$new_path" = x \ 15845 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15846 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15847 new_path=`$CYGPATH -u "$path"` 15848 fi 15849 if test "x$new_path" = x; then 15850 # Oops. Which didn't find the executable. 15851 # The splitting of arguments from the executable at a space might have been incorrect, 15852 # since paths with space are more likely in Windows. Give it another try with the whole 15853 # argument. 15854 path="$complete" 15855 arguments="EOL" 15856 new_path=`$CYGPATH -u "$path"` 15857 new_path=`$WHICH "$new_path" 2> /dev/null` 15858 # bat and cmd files are not always considered executable in cygwin causing which 15859 # to not find them 15860 if test "x$new_path" = x \ 15861 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15862 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15863 new_path=`$CYGPATH -u "$path"` 15864 fi 15865 if test "x$new_path" = x; then 15866 # It's still not found. Now this is an unrecoverable error. 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15868 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15869 has_space=`$ECHO "$complete" | $GREP " "` 15870 if test "x$has_space" != x; then 15871 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15872 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15873 fi 15874 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15875 fi 15876 fi 15877 15878 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15879 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15880 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15881 # "foo.exe" is OK but "foo" is an error. 15882 # 15883 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15884 # It is also a way to make sure we got the proper file name for the real test later on. 15885 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15886 if test "x$test_shortpath" = x; then 15887 # Short path failed, file does not exist as specified. 15888 # Try adding .exe or .cmd 15889 if test -f "${new_path}.exe"; then 15890 input_to_shortpath="${new_path}.exe" 15891 elif test -f "${new_path}.cmd"; then 15892 input_to_shortpath="${new_path}.cmd" 15893 else 15894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15895 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15896 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15897 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15898 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15899 fi 15900 else 15901 input_to_shortpath="$new_path" 15902 fi 15903 15904 # Call helper function which possibly converts this using DOS-style short mode. 15905 # If so, the updated path is stored in $new_path. 15906 new_path="$input_to_shortpath" 15907 15908 input_path="$input_to_shortpath" 15909 # Check if we need to convert this using DOS-style short mode. If the path 15910 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15911 # take no chances and rewrite it. 15912 # Note: m4 eats our [], so we need to use [ and ] instead. 15913 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15914 if test "x$has_forbidden_chars" != x; then 15915 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15916 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15917 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15918 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15919 # Going to short mode and back again did indeed matter. Since short mode is 15920 # case insensitive, let's make it lowercase to improve readability. 15921 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15922 # Now convert it back to Unix-stile (cygpath) 15923 input_path=`$CYGPATH -u "$shortmode_path"` 15924 new_path="$input_path" 15925 fi 15926 fi 15927 15928 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15929 if test "x$test_cygdrive_prefix" = x; then 15930 # As a simple fix, exclude /usr/bin since it's not a real path. 15931 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15932 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15933 # a path prefixed by /cygdrive for fixpath to work. 15934 new_path="$CYGWIN_ROOT_PATH$input_path" 15935 fi 15936 fi 15937 15938 # remove trailing .exe if any 15939 new_path="${new_path/%.exe/}" 15940 15941 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15942 15943 # First separate the path from the arguments. This will split at the first 15944 # space. 15945 complete="$FOUND_MAKE" 15946 path="${complete%% *}" 15947 tmp="$complete EOL" 15948 arguments="${tmp#* }" 15949 15950 # Input might be given as Windows format, start by converting to 15951 # unix format. 15952 new_path="$path" 15953 15954 windows_path="$new_path" 15955 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15956 unix_path=`$CYGPATH -u "$windows_path"` 15957 new_path="$unix_path" 15958 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15959 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15960 new_path="$unix_path" 15961 fi 15962 15963 15964 # Now try to locate executable using which 15965 new_path=`$WHICH "$new_path" 2> /dev/null` 15966 15967 if test "x$new_path" = x; then 15968 # Oops. Which didn't find the executable. 15969 # The splitting of arguments from the executable at a space might have been incorrect, 15970 # since paths with space are more likely in Windows. Give it another try with the whole 15971 # argument. 15972 path="$complete" 15973 arguments="EOL" 15974 new_path="$path" 15975 15976 windows_path="$new_path" 15977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15978 unix_path=`$CYGPATH -u "$windows_path"` 15979 new_path="$unix_path" 15980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15981 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15982 new_path="$unix_path" 15983 fi 15984 15985 15986 new_path=`$WHICH "$new_path" 2> /dev/null` 15987 # bat and cmd files are not always considered executable in MSYS causing which 15988 # to not find them 15989 if test "x$new_path" = x \ 15990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15992 new_path="$path" 15993 15994 windows_path="$new_path" 15995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15996 unix_path=`$CYGPATH -u "$windows_path"` 15997 new_path="$unix_path" 15998 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15999 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16000 new_path="$unix_path" 16001 fi 16002 16003 fi 16004 16005 if test "x$new_path" = x; then 16006 # It's still not found. Now this is an unrecoverable error. 16007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16008 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16009 has_space=`$ECHO "$complete" | $GREP " "` 16010 if test "x$has_space" != x; then 16011 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16012 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16013 fi 16014 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16015 fi 16016 fi 16017 16018 # Now new_path has a complete unix path to the binary 16019 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16020 # Keep paths in /bin as-is, but remove trailing .exe if any 16021 new_path="${new_path/%.exe/}" 16022 # Do not save /bin paths to all_fixpath_prefixes! 16023 else 16024 # Not in mixed or Windows style, start by that. 16025 new_path=`cmd //c echo $new_path` 16026 16027 input_path="$new_path" 16028 # Check if we need to convert this using DOS-style short mode. If the path 16029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16030 # take no chances and rewrite it. 16031 # Note: m4 eats our [], so we need to use [ and ] instead. 16032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16033 if test "x$has_forbidden_chars" != x; then 16034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16035 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16036 fi 16037 16038 # Output is in $new_path 16039 16040 windows_path="$new_path" 16041 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16042 unix_path=`$CYGPATH -u "$windows_path"` 16043 new_path="$unix_path" 16044 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16045 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16046 new_path="$unix_path" 16047 fi 16048 16049 # remove trailing .exe if any 16050 new_path="${new_path/%.exe/}" 16051 16052 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16053 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16054 fi 16055 16056 else 16057 # We're on a unix platform. Hooray! :) 16058 # First separate the path from the arguments. This will split at the first 16059 # space. 16060 complete="$FOUND_MAKE" 16061 path="${complete%% *}" 16062 tmp="$complete EOL" 16063 arguments="${tmp#* }" 16064 16065 # Cannot rely on the command "which" here since it doesn't always work. 16066 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16067 if test -z "$is_absolute_path"; then 16068 # Path to executable is not absolute. Find it. 16069 IFS_save="$IFS" 16070 IFS=: 16071 for p in $PATH; do 16072 if test -f "$p/$path" && test -x "$p/$path"; then 16073 new_path="$p/$path" 16074 break 16075 fi 16076 done 16077 IFS="$IFS_save" 16078 else 16079 # This is an absolute path, we can use it without further modifications. 16080 new_path="$path" 16081 fi 16082 16083 if test "x$new_path" = x; then 16084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16085 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16086 has_space=`$ECHO "$complete" | $GREP " "` 16087 if test "x$has_space" != x; then 16088 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16089 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16090 fi 16091 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16092 fi 16093 fi 16094 16095 # Now join together the path and the arguments once again 16096 if test "x$arguments" != xEOL; then 16097 new_complete="$new_path ${arguments% *}" 16098 else 16099 new_complete="$new_path" 16100 fi 16101 16102 if test "x$complete" != "x$new_complete"; then 16103 FOUND_MAKE="$new_complete" 16104 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16105 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16106 fi 16107 16108 fi 16109 fi 16110 fi 16111 fi 16112 16113 16114 if test "x$FOUND_MAKE" = x; then 16115 for ac_prog in make 16116 do 16117 # Extract the first word of "$ac_prog", so it can be a program name with args. 16118 set dummy $ac_prog; ac_word=$2 16119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16120 $as_echo_n "checking for $ac_word... " >&6; } 16121 if ${ac_cv_path_CHECK_MAKE+:} false; then : 16122 $as_echo_n "(cached) " >&6 16123 else 16124 case $CHECK_MAKE in 16125 [\\/]* | ?:[\\/]*) 16126 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 16127 ;; 16128 *) 16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16130 for as_dir in $PATH 16131 do 16132 IFS=$as_save_IFS 16133 test -z "$as_dir" && as_dir=. 16134 for ac_exec_ext in '' $ac_executable_extensions; do 16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16136 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 16137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16138 break 2 16139 fi 16140 done 16141 done 16142 IFS=$as_save_IFS 16143 16144 ;; 16145 esac 16146 fi 16147 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 16148 if test -n "$CHECK_MAKE"; then 16149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 16150 $as_echo "$CHECK_MAKE" >&6; } 16151 else 16152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16153 $as_echo "no" >&6; } 16154 fi 16155 16156 16157 test -n "$CHECK_MAKE" && break 16158 done 16159 16160 16161 MAKE_CANDIDATE=""$CHECK_MAKE"" 16162 DESCRIPTION="make in PATH" 16163 if test "x$MAKE_CANDIDATE" != x; then 16164 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16165 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16166 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16167 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16168 if test "x$IS_GNU_MAKE" = x; then 16169 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16170 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16171 else 16172 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16173 if test "x$IS_MODERN_MAKE" = x; then 16174 { $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 16175 $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;} 16176 else 16177 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16179 MAKE_EXPECTED_ENV='cygwin' 16180 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16181 MAKE_EXPECTED_ENV='msys' 16182 else 16183 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16184 fi 16185 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16186 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16187 else 16188 # Not relevant for non-Windows 16189 IS_MAKE_CORRECT_ENV=true 16190 fi 16191 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16192 { $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 16193 $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;} 16194 else 16195 FOUND_MAKE=$MAKE_CANDIDATE 16196 16197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16198 16199 # First separate the path from the arguments. This will split at the first 16200 # space. 16201 complete="$FOUND_MAKE" 16202 path="${complete%% *}" 16203 tmp="$complete EOL" 16204 arguments="${tmp#* }" 16205 16206 # Input might be given as Windows format, start by converting to 16207 # unix format. 16208 new_path=`$CYGPATH -u "$path"` 16209 16210 # Now try to locate executable using which 16211 new_path=`$WHICH "$new_path" 2> /dev/null` 16212 # bat and cmd files are not always considered executable in cygwin causing which 16213 # to not find them 16214 if test "x$new_path" = x \ 16215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16217 new_path=`$CYGPATH -u "$path"` 16218 fi 16219 if test "x$new_path" = x; then 16220 # Oops. Which didn't find the executable. 16221 # The splitting of arguments from the executable at a space might have been incorrect, 16222 # since paths with space are more likely in Windows. Give it another try with the whole 16223 # argument. 16224 path="$complete" 16225 arguments="EOL" 16226 new_path=`$CYGPATH -u "$path"` 16227 new_path=`$WHICH "$new_path" 2> /dev/null` 16228 # bat and cmd files are not always considered executable in cygwin causing which 16229 # to not find them 16230 if test "x$new_path" = x \ 16231 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16232 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16233 new_path=`$CYGPATH -u "$path"` 16234 fi 16235 if test "x$new_path" = x; then 16236 # It's still not found. Now this is an unrecoverable error. 16237 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16238 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16239 has_space=`$ECHO "$complete" | $GREP " "` 16240 if test "x$has_space" != x; then 16241 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16242 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16243 fi 16244 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16245 fi 16246 fi 16247 16248 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16249 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16250 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16251 # "foo.exe" is OK but "foo" is an error. 16252 # 16253 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16254 # It is also a way to make sure we got the proper file name for the real test later on. 16255 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16256 if test "x$test_shortpath" = x; then 16257 # Short path failed, file does not exist as specified. 16258 # Try adding .exe or .cmd 16259 if test -f "${new_path}.exe"; then 16260 input_to_shortpath="${new_path}.exe" 16261 elif test -f "${new_path}.cmd"; then 16262 input_to_shortpath="${new_path}.cmd" 16263 else 16264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16265 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16266 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16267 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16268 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16269 fi 16270 else 16271 input_to_shortpath="$new_path" 16272 fi 16273 16274 # Call helper function which possibly converts this using DOS-style short mode. 16275 # If so, the updated path is stored in $new_path. 16276 new_path="$input_to_shortpath" 16277 16278 input_path="$input_to_shortpath" 16279 # Check if we need to convert this using DOS-style short mode. If the path 16280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16281 # take no chances and rewrite it. 16282 # Note: m4 eats our [], so we need to use [ and ] instead. 16283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16284 if test "x$has_forbidden_chars" != x; then 16285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16289 # Going to short mode and back again did indeed matter. Since short mode is 16290 # case insensitive, let's make it lowercase to improve readability. 16291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16292 # Now convert it back to Unix-stile (cygpath) 16293 input_path=`$CYGPATH -u "$shortmode_path"` 16294 new_path="$input_path" 16295 fi 16296 fi 16297 16298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16299 if test "x$test_cygdrive_prefix" = x; then 16300 # As a simple fix, exclude /usr/bin since it's not a real path. 16301 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16303 # a path prefixed by /cygdrive for fixpath to work. 16304 new_path="$CYGWIN_ROOT_PATH$input_path" 16305 fi 16306 fi 16307 16308 # remove trailing .exe if any 16309 new_path="${new_path/%.exe/}" 16310 16311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16312 16313 # First separate the path from the arguments. This will split at the first 16314 # space. 16315 complete="$FOUND_MAKE" 16316 path="${complete%% *}" 16317 tmp="$complete EOL" 16318 arguments="${tmp#* }" 16319 16320 # Input might be given as Windows format, start by converting to 16321 # unix format. 16322 new_path="$path" 16323 16324 windows_path="$new_path" 16325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16326 unix_path=`$CYGPATH -u "$windows_path"` 16327 new_path="$unix_path" 16328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16330 new_path="$unix_path" 16331 fi 16332 16333 16334 # Now try to locate executable using which 16335 new_path=`$WHICH "$new_path" 2> /dev/null` 16336 16337 if test "x$new_path" = x; then 16338 # Oops. Which didn't find the executable. 16339 # The splitting of arguments from the executable at a space might have been incorrect, 16340 # since paths with space are more likely in Windows. Give it another try with the whole 16341 # argument. 16342 path="$complete" 16343 arguments="EOL" 16344 new_path="$path" 16345 16346 windows_path="$new_path" 16347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16348 unix_path=`$CYGPATH -u "$windows_path"` 16349 new_path="$unix_path" 16350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16352 new_path="$unix_path" 16353 fi 16354 16355 16356 new_path=`$WHICH "$new_path" 2> /dev/null` 16357 # bat and cmd files are not always considered executable in MSYS causing which 16358 # to not find them 16359 if test "x$new_path" = x \ 16360 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16361 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16362 new_path="$path" 16363 16364 windows_path="$new_path" 16365 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16366 unix_path=`$CYGPATH -u "$windows_path"` 16367 new_path="$unix_path" 16368 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16369 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16370 new_path="$unix_path" 16371 fi 16372 16373 fi 16374 16375 if test "x$new_path" = x; then 16376 # It's still not found. Now this is an unrecoverable error. 16377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16378 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16379 has_space=`$ECHO "$complete" | $GREP " "` 16380 if test "x$has_space" != x; then 16381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16383 fi 16384 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16385 fi 16386 fi 16387 16388 # Now new_path has a complete unix path to the binary 16389 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16390 # Keep paths in /bin as-is, but remove trailing .exe if any 16391 new_path="${new_path/%.exe/}" 16392 # Do not save /bin paths to all_fixpath_prefixes! 16393 else 16394 # Not in mixed or Windows style, start by that. 16395 new_path=`cmd //c echo $new_path` 16396 16397 input_path="$new_path" 16398 # Check if we need to convert this using DOS-style short mode. If the path 16399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16400 # take no chances and rewrite it. 16401 # Note: m4 eats our [], so we need to use [ and ] instead. 16402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16403 if test "x$has_forbidden_chars" != x; then 16404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16405 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16406 fi 16407 16408 # Output is in $new_path 16409 16410 windows_path="$new_path" 16411 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16412 unix_path=`$CYGPATH -u "$windows_path"` 16413 new_path="$unix_path" 16414 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16415 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16416 new_path="$unix_path" 16417 fi 16418 16419 # remove trailing .exe if any 16420 new_path="${new_path/%.exe/}" 16421 16422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16424 fi 16425 16426 else 16427 # We're on a unix platform. Hooray! :) 16428 # First separate the path from the arguments. This will split at the first 16429 # space. 16430 complete="$FOUND_MAKE" 16431 path="${complete%% *}" 16432 tmp="$complete EOL" 16433 arguments="${tmp#* }" 16434 16435 # Cannot rely on the command "which" here since it doesn't always work. 16436 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16437 if test -z "$is_absolute_path"; then 16438 # Path to executable is not absolute. Find it. 16439 IFS_save="$IFS" 16440 IFS=: 16441 for p in $PATH; do 16442 if test -f "$p/$path" && test -x "$p/$path"; then 16443 new_path="$p/$path" 16444 break 16445 fi 16446 done 16447 IFS="$IFS_save" 16448 else 16449 # This is an absolute path, we can use it without further modifications. 16450 new_path="$path" 16451 fi 16452 16453 if test "x$new_path" = x; then 16454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16455 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16456 has_space=`$ECHO "$complete" | $GREP " "` 16457 if test "x$has_space" != x; then 16458 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16459 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16460 fi 16461 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16462 fi 16463 fi 16464 16465 # Now join together the path and the arguments once again 16466 if test "x$arguments" != xEOL; then 16467 new_complete="$new_path ${arguments% *}" 16468 else 16469 new_complete="$new_path" 16470 fi 16471 16472 if test "x$complete" != "x$new_complete"; then 16473 FOUND_MAKE="$new_complete" 16474 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16475 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16476 fi 16477 16478 fi 16479 fi 16480 fi 16481 fi 16482 16483 fi 16484 16485 if test "x$FOUND_MAKE" = x; then 16486 if test "x$TOOLCHAIN_PATH" != x; then 16487 # We have a toolchain path, check that as well before giving up. 16488 OLD_PATH=$PATH 16489 PATH=$TOOLCHAIN_PATH:$PATH 16490 for ac_prog in gmake 16491 do 16492 # Extract the first word of "$ac_prog", so it can be a program name with args. 16493 set dummy $ac_prog; ac_word=$2 16494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16495 $as_echo_n "checking for $ac_word... " >&6; } 16496 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16497 $as_echo_n "(cached) " >&6 16498 else 16499 case $CHECK_TOOLSDIR_GMAKE in 16500 [\\/]* | ?:[\\/]*) 16501 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16502 ;; 16503 *) 16504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16505 for as_dir in $PATH 16506 do 16507 IFS=$as_save_IFS 16508 test -z "$as_dir" && as_dir=. 16509 for ac_exec_ext in '' $ac_executable_extensions; do 16510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16511 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16513 break 2 16514 fi 16515 done 16516 done 16517 IFS=$as_save_IFS 16518 16519 ;; 16520 esac 16521 fi 16522 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16523 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16525 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16526 else 16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16528 $as_echo "no" >&6; } 16529 fi 16530 16531 16532 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16533 done 16534 16535 16536 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16537 DESCRIPTION="gmake in tools-dir" 16538 if test "x$MAKE_CANDIDATE" != x; then 16539 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16540 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16541 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16542 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16543 if test "x$IS_GNU_MAKE" = x; then 16544 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16545 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16546 else 16547 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16548 if test "x$IS_MODERN_MAKE" = x; then 16549 { $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 16550 $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;} 16551 else 16552 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16554 MAKE_EXPECTED_ENV='cygwin' 16555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16556 MAKE_EXPECTED_ENV='msys' 16557 else 16558 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16559 fi 16560 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16561 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16562 else 16563 # Not relevant for non-Windows 16564 IS_MAKE_CORRECT_ENV=true 16565 fi 16566 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16567 { $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 16568 $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;} 16569 else 16570 FOUND_MAKE=$MAKE_CANDIDATE 16571 16572 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16573 16574 # First separate the path from the arguments. This will split at the first 16575 # space. 16576 complete="$FOUND_MAKE" 16577 path="${complete%% *}" 16578 tmp="$complete EOL" 16579 arguments="${tmp#* }" 16580 16581 # Input might be given as Windows format, start by converting to 16582 # unix format. 16583 new_path=`$CYGPATH -u "$path"` 16584 16585 # Now try to locate executable using which 16586 new_path=`$WHICH "$new_path" 2> /dev/null` 16587 # bat and cmd files are not always considered executable in cygwin causing which 16588 # to not find them 16589 if test "x$new_path" = x \ 16590 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16591 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16592 new_path=`$CYGPATH -u "$path"` 16593 fi 16594 if test "x$new_path" = x; then 16595 # Oops. Which didn't find the executable. 16596 # The splitting of arguments from the executable at a space might have been incorrect, 16597 # since paths with space are more likely in Windows. Give it another try with the whole 16598 # argument. 16599 path="$complete" 16600 arguments="EOL" 16601 new_path=`$CYGPATH -u "$path"` 16602 new_path=`$WHICH "$new_path" 2> /dev/null` 16603 # bat and cmd files are not always considered executable in cygwin causing which 16604 # to not find them 16605 if test "x$new_path" = x \ 16606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16608 new_path=`$CYGPATH -u "$path"` 16609 fi 16610 if test "x$new_path" = x; then 16611 # It's still not found. Now this is an unrecoverable error. 16612 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16613 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16614 has_space=`$ECHO "$complete" | $GREP " "` 16615 if test "x$has_space" != x; then 16616 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16617 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16618 fi 16619 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16620 fi 16621 fi 16622 16623 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16624 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16625 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16626 # "foo.exe" is OK but "foo" is an error. 16627 # 16628 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16629 # It is also a way to make sure we got the proper file name for the real test later on. 16630 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16631 if test "x$test_shortpath" = x; then 16632 # Short path failed, file does not exist as specified. 16633 # Try adding .exe or .cmd 16634 if test -f "${new_path}.exe"; then 16635 input_to_shortpath="${new_path}.exe" 16636 elif test -f "${new_path}.cmd"; then 16637 input_to_shortpath="${new_path}.cmd" 16638 else 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16640 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16641 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16642 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16643 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16644 fi 16645 else 16646 input_to_shortpath="$new_path" 16647 fi 16648 16649 # Call helper function which possibly converts this using DOS-style short mode. 16650 # If so, the updated path is stored in $new_path. 16651 new_path="$input_to_shortpath" 16652 16653 input_path="$input_to_shortpath" 16654 # Check if we need to convert this using DOS-style short mode. If the path 16655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16656 # take no chances and rewrite it. 16657 # Note: m4 eats our [], so we need to use [ and ] instead. 16658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16659 if test "x$has_forbidden_chars" != x; then 16660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16661 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16662 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16663 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16664 # Going to short mode and back again did indeed matter. Since short mode is 16665 # case insensitive, let's make it lowercase to improve readability. 16666 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16667 # Now convert it back to Unix-stile (cygpath) 16668 input_path=`$CYGPATH -u "$shortmode_path"` 16669 new_path="$input_path" 16670 fi 16671 fi 16672 16673 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16674 if test "x$test_cygdrive_prefix" = x; then 16675 # As a simple fix, exclude /usr/bin since it's not a real path. 16676 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16677 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16678 # a path prefixed by /cygdrive for fixpath to work. 16679 new_path="$CYGWIN_ROOT_PATH$input_path" 16680 fi 16681 fi 16682 16683 # remove trailing .exe if any 16684 new_path="${new_path/%.exe/}" 16685 16686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16687 16688 # First separate the path from the arguments. This will split at the first 16689 # space. 16690 complete="$FOUND_MAKE" 16691 path="${complete%% *}" 16692 tmp="$complete EOL" 16693 arguments="${tmp#* }" 16694 16695 # Input might be given as Windows format, start by converting to 16696 # unix format. 16697 new_path="$path" 16698 16699 windows_path="$new_path" 16700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16701 unix_path=`$CYGPATH -u "$windows_path"` 16702 new_path="$unix_path" 16703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16705 new_path="$unix_path" 16706 fi 16707 16708 16709 # Now try to locate executable using which 16710 new_path=`$WHICH "$new_path" 2> /dev/null` 16711 16712 if test "x$new_path" = x; then 16713 # Oops. Which didn't find the executable. 16714 # The splitting of arguments from the executable at a space might have been incorrect, 16715 # since paths with space are more likely in Windows. Give it another try with the whole 16716 # argument. 16717 path="$complete" 16718 arguments="EOL" 16719 new_path="$path" 16720 16721 windows_path="$new_path" 16722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16723 unix_path=`$CYGPATH -u "$windows_path"` 16724 new_path="$unix_path" 16725 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16726 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16727 new_path="$unix_path" 16728 fi 16729 16730 16731 new_path=`$WHICH "$new_path" 2> /dev/null` 16732 # bat and cmd files are not always considered executable in MSYS causing which 16733 # to not find them 16734 if test "x$new_path" = x \ 16735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16737 new_path="$path" 16738 16739 windows_path="$new_path" 16740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16741 unix_path=`$CYGPATH -u "$windows_path"` 16742 new_path="$unix_path" 16743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16745 new_path="$unix_path" 16746 fi 16747 16748 fi 16749 16750 if test "x$new_path" = x; then 16751 # It's still not found. Now this is an unrecoverable error. 16752 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16753 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16754 has_space=`$ECHO "$complete" | $GREP " "` 16755 if test "x$has_space" != x; then 16756 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16757 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16758 fi 16759 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16760 fi 16761 fi 16762 16763 # Now new_path has a complete unix path to the binary 16764 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16765 # Keep paths in /bin as-is, but remove trailing .exe if any 16766 new_path="${new_path/%.exe/}" 16767 # Do not save /bin paths to all_fixpath_prefixes! 16768 else 16769 # Not in mixed or Windows style, start by that. 16770 new_path=`cmd //c echo $new_path` 16771 16772 input_path="$new_path" 16773 # Check if we need to convert this using DOS-style short mode. If the path 16774 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16775 # take no chances and rewrite it. 16776 # Note: m4 eats our [], so we need to use [ and ] instead. 16777 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16778 if test "x$has_forbidden_chars" != x; then 16779 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16780 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16781 fi 16782 16783 # Output is in $new_path 16784 16785 windows_path="$new_path" 16786 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16787 unix_path=`$CYGPATH -u "$windows_path"` 16788 new_path="$unix_path" 16789 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16790 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16791 new_path="$unix_path" 16792 fi 16793 16794 # remove trailing .exe if any 16795 new_path="${new_path/%.exe/}" 16796 16797 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16798 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16799 fi 16800 16801 else 16802 # We're on a unix platform. Hooray! :) 16803 # First separate the path from the arguments. This will split at the first 16804 # space. 16805 complete="$FOUND_MAKE" 16806 path="${complete%% *}" 16807 tmp="$complete EOL" 16808 arguments="${tmp#* }" 16809 16810 # Cannot rely on the command "which" here since it doesn't always work. 16811 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16812 if test -z "$is_absolute_path"; then 16813 # Path to executable is not absolute. Find it. 16814 IFS_save="$IFS" 16815 IFS=: 16816 for p in $PATH; do 16817 if test -f "$p/$path" && test -x "$p/$path"; then 16818 new_path="$p/$path" 16819 break 16820 fi 16821 done 16822 IFS="$IFS_save" 16823 else 16824 # This is an absolute path, we can use it without further modifications. 16825 new_path="$path" 16826 fi 16827 16828 if test "x$new_path" = x; then 16829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16830 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16831 has_space=`$ECHO "$complete" | $GREP " "` 16832 if test "x$has_space" != x; then 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16834 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16835 fi 16836 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16837 fi 16838 fi 16839 16840 # Now join together the path and the arguments once again 16841 if test "x$arguments" != xEOL; then 16842 new_complete="$new_path ${arguments% *}" 16843 else 16844 new_complete="$new_path" 16845 fi 16846 16847 if test "x$complete" != "x$new_complete"; then 16848 FOUND_MAKE="$new_complete" 16849 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16850 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16851 fi 16852 16853 fi 16854 fi 16855 fi 16856 fi 16857 16858 if test "x$FOUND_MAKE" = x; then 16859 for ac_prog in make 16860 do 16861 # Extract the first word of "$ac_prog", so it can be a program name with args. 16862 set dummy $ac_prog; ac_word=$2 16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16864 $as_echo_n "checking for $ac_word... " >&6; } 16865 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16866 $as_echo_n "(cached) " >&6 16867 else 16868 case $CHECK_TOOLSDIR_MAKE in 16869 [\\/]* | ?:[\\/]*) 16870 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16871 ;; 16872 *) 16873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16874 for as_dir in $PATH 16875 do 16876 IFS=$as_save_IFS 16877 test -z "$as_dir" && as_dir=. 16878 for ac_exec_ext in '' $ac_executable_extensions; do 16879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16880 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16882 break 2 16883 fi 16884 done 16885 done 16886 IFS=$as_save_IFS 16887 16888 ;; 16889 esac 16890 fi 16891 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16892 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16894 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16895 else 16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16897 $as_echo "no" >&6; } 16898 fi 16899 16900 16901 test -n "$CHECK_TOOLSDIR_MAKE" && break 16902 done 16903 16904 16905 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16906 DESCRIPTION="make in tools-dir" 16907 if test "x$MAKE_CANDIDATE" != x; then 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16909 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16910 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16911 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16912 if test "x$IS_GNU_MAKE" = x; then 16913 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16914 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16915 else 16916 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16917 if test "x$IS_MODERN_MAKE" = x; then 16918 { $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 16919 $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;} 16920 else 16921 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16922 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16923 MAKE_EXPECTED_ENV='cygwin' 16924 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16925 MAKE_EXPECTED_ENV='msys' 16926 else 16927 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16928 fi 16929 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16930 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16931 else 16932 # Not relevant for non-Windows 16933 IS_MAKE_CORRECT_ENV=true 16934 fi 16935 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16936 { $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 16937 $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;} 16938 else 16939 FOUND_MAKE=$MAKE_CANDIDATE 16940 16941 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16942 16943 # First separate the path from the arguments. This will split at the first 16944 # space. 16945 complete="$FOUND_MAKE" 16946 path="${complete%% *}" 16947 tmp="$complete EOL" 16948 arguments="${tmp#* }" 16949 16950 # Input might be given as Windows format, start by converting to 16951 # unix format. 16952 new_path=`$CYGPATH -u "$path"` 16953 16954 # Now try to locate executable using which 16955 new_path=`$WHICH "$new_path" 2> /dev/null` 16956 # bat and cmd files are not always considered executable in cygwin causing which 16957 # to not find them 16958 if test "x$new_path" = x \ 16959 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16960 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16961 new_path=`$CYGPATH -u "$path"` 16962 fi 16963 if test "x$new_path" = x; then 16964 # Oops. Which didn't find the executable. 16965 # The splitting of arguments from the executable at a space might have been incorrect, 16966 # since paths with space are more likely in Windows. Give it another try with the whole 16967 # argument. 16968 path="$complete" 16969 arguments="EOL" 16970 new_path=`$CYGPATH -u "$path"` 16971 new_path=`$WHICH "$new_path" 2> /dev/null` 16972 # bat and cmd files are not always considered executable in cygwin causing which 16973 # to not find them 16974 if test "x$new_path" = x \ 16975 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16976 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16977 new_path=`$CYGPATH -u "$path"` 16978 fi 16979 if test "x$new_path" = x; then 16980 # It's still not found. Now this is an unrecoverable error. 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16982 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16983 has_space=`$ECHO "$complete" | $GREP " "` 16984 if test "x$has_space" != x; then 16985 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16987 fi 16988 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16989 fi 16990 fi 16991 16992 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16993 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16994 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16995 # "foo.exe" is OK but "foo" is an error. 16996 # 16997 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16998 # It is also a way to make sure we got the proper file name for the real test later on. 16999 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 17000 if test "x$test_shortpath" = x; then 17001 # Short path failed, file does not exist as specified. 17002 # Try adding .exe or .cmd 17003 if test -f "${new_path}.exe"; then 17004 input_to_shortpath="${new_path}.exe" 17005 elif test -f "${new_path}.cmd"; then 17006 input_to_shortpath="${new_path}.cmd" 17007 else 17008 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 17009 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 17010 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 17011 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 17012 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17013 fi 17014 else 17015 input_to_shortpath="$new_path" 17016 fi 17017 17018 # Call helper function which possibly converts this using DOS-style short mode. 17019 # If so, the updated path is stored in $new_path. 17020 new_path="$input_to_shortpath" 17021 17022 input_path="$input_to_shortpath" 17023 # Check if we need to convert this using DOS-style short mode. If the path 17024 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17025 # take no chances and rewrite it. 17026 # Note: m4 eats our [], so we need to use [ and ] instead. 17027 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 17028 if test "x$has_forbidden_chars" != x; then 17029 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17030 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 17031 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 17032 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 17033 # Going to short mode and back again did indeed matter. Since short mode is 17034 # case insensitive, let's make it lowercase to improve readability. 17035 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17036 # Now convert it back to Unix-stile (cygpath) 17037 input_path=`$CYGPATH -u "$shortmode_path"` 17038 new_path="$input_path" 17039 fi 17040 fi 17041 17042 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 17043 if test "x$test_cygdrive_prefix" = x; then 17044 # As a simple fix, exclude /usr/bin since it's not a real path. 17045 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 17046 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 17047 # a path prefixed by /cygdrive for fixpath to work. 17048 new_path="$CYGWIN_ROOT_PATH$input_path" 17049 fi 17050 fi 17051 17052 # remove trailing .exe if any 17053 new_path="${new_path/%.exe/}" 17054 17055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17056 17057 # First separate the path from the arguments. This will split at the first 17058 # space. 17059 complete="$FOUND_MAKE" 17060 path="${complete%% *}" 17061 tmp="$complete EOL" 17062 arguments="${tmp#* }" 17063 17064 # Input might be given as Windows format, start by converting to 17065 # unix format. 17066 new_path="$path" 17067 17068 windows_path="$new_path" 17069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17070 unix_path=`$CYGPATH -u "$windows_path"` 17071 new_path="$unix_path" 17072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17074 new_path="$unix_path" 17075 fi 17076 17077 17078 # Now try to locate executable using which 17079 new_path=`$WHICH "$new_path" 2> /dev/null` 17080 17081 if test "x$new_path" = x; then 17082 # Oops. Which didn't find the executable. 17083 # The splitting of arguments from the executable at a space might have been incorrect, 17084 # since paths with space are more likely in Windows. Give it another try with the whole 17085 # argument. 17086 path="$complete" 17087 arguments="EOL" 17088 new_path="$path" 17089 17090 windows_path="$new_path" 17091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17092 unix_path=`$CYGPATH -u "$windows_path"` 17093 new_path="$unix_path" 17094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17096 new_path="$unix_path" 17097 fi 17098 17099 17100 new_path=`$WHICH "$new_path" 2> /dev/null` 17101 # bat and cmd files are not always considered executable in MSYS causing which 17102 # to not find them 17103 if test "x$new_path" = x \ 17104 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 17105 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 17106 new_path="$path" 17107 17108 windows_path="$new_path" 17109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17110 unix_path=`$CYGPATH -u "$windows_path"` 17111 new_path="$unix_path" 17112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17114 new_path="$unix_path" 17115 fi 17116 17117 fi 17118 17119 if test "x$new_path" = x; then 17120 # It's still not found. Now this is an unrecoverable error. 17121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17122 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17123 has_space=`$ECHO "$complete" | $GREP " "` 17124 if test "x$has_space" != x; then 17125 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 17126 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 17127 fi 17128 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17129 fi 17130 fi 17131 17132 # Now new_path has a complete unix path to the binary 17133 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 17134 # Keep paths in /bin as-is, but remove trailing .exe if any 17135 new_path="${new_path/%.exe/}" 17136 # Do not save /bin paths to all_fixpath_prefixes! 17137 else 17138 # Not in mixed or Windows style, start by that. 17139 new_path=`cmd //c echo $new_path` 17140 17141 input_path="$new_path" 17142 # Check if we need to convert this using DOS-style short mode. If the path 17143 # contains just simple characters, use it. Otherwise (spaces, weird characters), 17144 # take no chances and rewrite it. 17145 # Note: m4 eats our [], so we need to use [ and ] instead. 17146 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 17147 if test "x$has_forbidden_chars" != x; then 17148 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 17149 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 17150 fi 17151 17152 # Output is in $new_path 17153 17154 windows_path="$new_path" 17155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 17156 unix_path=`$CYGPATH -u "$windows_path"` 17157 new_path="$unix_path" 17158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 17159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 17160 new_path="$unix_path" 17161 fi 17162 17163 # remove trailing .exe if any 17164 new_path="${new_path/%.exe/}" 17165 17166 # Save the first 10 bytes of this path to the storage, so fixpath can work. 17167 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 17168 fi 17169 17170 else 17171 # We're on a unix platform. Hooray! :) 17172 # First separate the path from the arguments. This will split at the first 17173 # space. 17174 complete="$FOUND_MAKE" 17175 path="${complete%% *}" 17176 tmp="$complete EOL" 17177 arguments="${tmp#* }" 17178 17179 # Cannot rely on the command "which" here since it doesn't always work. 17180 is_absolute_path=`$ECHO "$path" | $GREP ^/` 17181 if test -z "$is_absolute_path"; then 17182 # Path to executable is not absolute. Find it. 17183 IFS_save="$IFS" 17184 IFS=: 17185 for p in $PATH; do 17186 if test -f "$p/$path" && test -x "$p/$path"; then 17187 new_path="$p/$path" 17188 break 17189 fi 17190 done 17191 IFS="$IFS_save" 17192 else 17193 # This is an absolute path, we can use it without further modifications. 17194 new_path="$path" 17195 fi 17196 17197 if test "x$new_path" = x; then 17198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 17199 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 17200 has_space=`$ECHO "$complete" | $GREP " "` 17201 if test "x$has_space" != x; then 17202 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 17203 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 17204 fi 17205 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 17206 fi 17207 fi 17208 17209 # Now join together the path and the arguments once again 17210 if test "x$arguments" != xEOL; then 17211 new_complete="$new_path ${arguments% *}" 17212 else 17213 new_complete="$new_path" 17214 fi 17215 17216 if test "x$complete" != "x$new_complete"; then 17217 FOUND_MAKE="$new_complete" 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 17219 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 17220 fi 17221 17222 fi 17223 fi 17224 fi 17225 fi 17226 17227 fi 17228 PATH=$OLD_PATH 17229 fi 17230 fi 17231 17232 if test "x$FOUND_MAKE" = x; then 17233 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 17234 fi 17235 fi 17236 17237 MAKE=$FOUND_MAKE 17238 17239 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 17240 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 17241 17242 17243 # Check if make supports the output sync option and if so, setup using it. 17244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if make --output-sync is supported" >&5 17245 $as_echo_n "checking if make --output-sync is supported... " >&6; } 17246 if $MAKE --version -O > /dev/null 2>&1; then 17247 OUTPUT_SYNC_SUPPORTED=true 17248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17249 $as_echo "yes" >&6; } 17250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for output-sync value" >&5 17251 $as_echo_n "checking for output-sync value... " >&6; } 17252 17253 # Check whether --with-output-sync was given. 17254 if test "${with_output_sync+set}" = set; then : 17255 withval=$with_output_sync; OUTPUT_SYNC=$with_output_sync 17256 fi 17257 17258 if test "x$OUTPUT_SYNC" = "x"; then 17259 OUTPUT_SYNC=none 17260 fi 17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_SYNC" >&5 17262 $as_echo "$OUTPUT_SYNC" >&6; } 17263 if ! $MAKE --version -O$OUTPUT_SYNC > /dev/null 2>&1; then 17264 as_fn_error $? "Make did not the support the value $OUTPUT_SYNC as output sync type." "$LINENO" 5 17265 fi 17266 else 17267 OUTPUT_SYNC_SUPPORTED=false 17268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17269 $as_echo "no" >&6; } 17270 fi 17271 17272 17273 17274 17275 17276 17277 # Test if find supports -delete 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 17279 $as_echo_n "checking if find supports -delete... " >&6; } 17280 FIND_DELETE="-delete" 17281 17282 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 17283 17284 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 17285 17286 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 17287 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 17288 # No, it does not. 17289 rm $DELETEDIR/TestIfFindSupportsDelete 17290 if test "x$OPENJDK_TARGET_OS" = "xaix"; then 17291 # AIX 'find' is buggy if called with '-exec {} \+' and an empty file list 17292 FIND_DELETE="-print | xargs rm" 17293 else 17294 FIND_DELETE="-exec rm \{\} \+" 17295 fi 17296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17297 $as_echo "no" >&6; } 17298 else 17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17300 $as_echo "yes" >&6; } 17301 fi 17302 rmdir $DELETEDIR 17303 17304 17305 17306 # These tools might not be installed by default, 17307 # need hint on how to install them. 17308 17309 17310 17311 # Publish this variable in the help. 17312 17313 17314 if test "x$UNZIP" = x; then 17315 # The variable is not set by user, try to locate tool using the code snippet 17316 for ac_prog in unzip 17317 do 17318 # Extract the first word of "$ac_prog", so it can be a program name with args. 17319 set dummy $ac_prog; ac_word=$2 17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17321 $as_echo_n "checking for $ac_word... " >&6; } 17322 if ${ac_cv_path_UNZIP+:} false; then : 17323 $as_echo_n "(cached) " >&6 17324 else 17325 case $UNZIP in 17326 [\\/]* | ?:[\\/]*) 17327 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17328 ;; 17329 *) 17330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17331 for as_dir in $PATH 17332 do 17333 IFS=$as_save_IFS 17334 test -z "$as_dir" && as_dir=. 17335 for ac_exec_ext in '' $ac_executable_extensions; do 17336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17337 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17339 break 2 17340 fi 17341 done 17342 done 17343 IFS=$as_save_IFS 17344 17345 ;; 17346 esac 17347 fi 17348 UNZIP=$ac_cv_path_UNZIP 17349 if test -n "$UNZIP"; then 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17351 $as_echo "$UNZIP" >&6; } 17352 else 17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17354 $as_echo "no" >&6; } 17355 fi 17356 17357 17358 test -n "$UNZIP" && break 17359 done 17360 17361 else 17362 # The variable is set, but is it from the command line or the environment? 17363 17364 # Try to remove the string !UNZIP! from our list. 17365 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 17366 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17367 # If it failed, the variable was not from the command line. Ignore it, 17368 # but warn the user (except for BASH, which is always set by the calling BASH). 17369 if test "xUNZIP" != xBASH; then 17370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 17371 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 17372 fi 17373 # Try to locate tool using the code snippet 17374 for ac_prog in unzip 17375 do 17376 # Extract the first word of "$ac_prog", so it can be a program name with args. 17377 set dummy $ac_prog; ac_word=$2 17378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17379 $as_echo_n "checking for $ac_word... " >&6; } 17380 if ${ac_cv_path_UNZIP+:} false; then : 17381 $as_echo_n "(cached) " >&6 17382 else 17383 case $UNZIP in 17384 [\\/]* | ?:[\\/]*) 17385 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17386 ;; 17387 *) 17388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17389 for as_dir in $PATH 17390 do 17391 IFS=$as_save_IFS 17392 test -z "$as_dir" && as_dir=. 17393 for ac_exec_ext in '' $ac_executable_extensions; do 17394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17395 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17397 break 2 17398 fi 17399 done 17400 done 17401 IFS=$as_save_IFS 17402 17403 ;; 17404 esac 17405 fi 17406 UNZIP=$ac_cv_path_UNZIP 17407 if test -n "$UNZIP"; then 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17409 $as_echo "$UNZIP" >&6; } 17410 else 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17412 $as_echo "no" >&6; } 17413 fi 17414 17415 17416 test -n "$UNZIP" && break 17417 done 17418 17419 else 17420 # If it succeeded, then it was overridden by the user. We will use it 17421 # for the tool. 17422 17423 # First remove it from the list of overridden variables, so we can test 17424 # for unknown variables in the end. 17425 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17426 17427 # Check if the provided tool contains a complete path. 17428 tool_specified="$UNZIP" 17429 tool_basename="${tool_specified##*/}" 17430 if test "x$tool_basename" = "x$tool_specified"; then 17431 # A command without a complete path is provided, search $PATH. 17432 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 17433 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 17434 # Extract the first word of "$tool_basename", so it can be a program name with args. 17435 set dummy $tool_basename; ac_word=$2 17436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17437 $as_echo_n "checking for $ac_word... " >&6; } 17438 if ${ac_cv_path_UNZIP+:} false; then : 17439 $as_echo_n "(cached) " >&6 17440 else 17441 case $UNZIP in 17442 [\\/]* | ?:[\\/]*) 17443 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 17444 ;; 17445 *) 17446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17447 for as_dir in $PATH 17448 do 17449 IFS=$as_save_IFS 17450 test -z "$as_dir" && as_dir=. 17451 for ac_exec_ext in '' $ac_executable_extensions; do 17452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17453 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 17454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17455 break 2 17456 fi 17457 done 17458 done 17459 IFS=$as_save_IFS 17460 17461 ;; 17462 esac 17463 fi 17464 UNZIP=$ac_cv_path_UNZIP 17465 if test -n "$UNZIP"; then 17466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17467 $as_echo "$UNZIP" >&6; } 17468 else 17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17470 $as_echo "no" >&6; } 17471 fi 17472 17473 17474 if test "x$UNZIP" = x; then 17475 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17476 fi 17477 else 17478 # Otherwise we believe it is a complete path. Use it as it is. 17479 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17480 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17482 $as_echo_n "checking for UNZIP... " >&6; } 17483 if test ! -x "$tool_specified"; then 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17485 $as_echo "not found" >&6; } 17486 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17487 fi 17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17489 $as_echo "$tool_specified" >&6; } 17490 fi 17491 fi 17492 fi 17493 17494 17495 17496 if test "x$UNZIP" = x; then 17497 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17498 fi 17499 17500 17501 17502 17503 17504 # Publish this variable in the help. 17505 17506 17507 if test "x$ZIP" = x; then 17508 # The variable is not set by user, try to locate tool using the code snippet 17509 for ac_prog in zip 17510 do 17511 # Extract the first word of "$ac_prog", so it can be a program name with args. 17512 set dummy $ac_prog; ac_word=$2 17513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17514 $as_echo_n "checking for $ac_word... " >&6; } 17515 if ${ac_cv_path_ZIP+:} false; then : 17516 $as_echo_n "(cached) " >&6 17517 else 17518 case $ZIP in 17519 [\\/]* | ?:[\\/]*) 17520 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17521 ;; 17522 *) 17523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17524 for as_dir in $PATH 17525 do 17526 IFS=$as_save_IFS 17527 test -z "$as_dir" && as_dir=. 17528 for ac_exec_ext in '' $ac_executable_extensions; do 17529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17530 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17532 break 2 17533 fi 17534 done 17535 done 17536 IFS=$as_save_IFS 17537 17538 ;; 17539 esac 17540 fi 17541 ZIP=$ac_cv_path_ZIP 17542 if test -n "$ZIP"; then 17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17544 $as_echo "$ZIP" >&6; } 17545 else 17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17547 $as_echo "no" >&6; } 17548 fi 17549 17550 17551 test -n "$ZIP" && break 17552 done 17553 17554 else 17555 # The variable is set, but is it from the command line or the environment? 17556 17557 # Try to remove the string !ZIP! from our list. 17558 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17559 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17560 # If it failed, the variable was not from the command line. Ignore it, 17561 # but warn the user (except for BASH, which is always set by the calling BASH). 17562 if test "xZIP" != xBASH; then 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17564 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17565 fi 17566 # Try to locate tool using the code snippet 17567 for ac_prog in zip 17568 do 17569 # Extract the first word of "$ac_prog", so it can be a program name with args. 17570 set dummy $ac_prog; ac_word=$2 17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17572 $as_echo_n "checking for $ac_word... " >&6; } 17573 if ${ac_cv_path_ZIP+:} false; then : 17574 $as_echo_n "(cached) " >&6 17575 else 17576 case $ZIP in 17577 [\\/]* | ?:[\\/]*) 17578 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17579 ;; 17580 *) 17581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17582 for as_dir in $PATH 17583 do 17584 IFS=$as_save_IFS 17585 test -z "$as_dir" && as_dir=. 17586 for ac_exec_ext in '' $ac_executable_extensions; do 17587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17588 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17590 break 2 17591 fi 17592 done 17593 done 17594 IFS=$as_save_IFS 17595 17596 ;; 17597 esac 17598 fi 17599 ZIP=$ac_cv_path_ZIP 17600 if test -n "$ZIP"; then 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17602 $as_echo "$ZIP" >&6; } 17603 else 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17605 $as_echo "no" >&6; } 17606 fi 17607 17608 17609 test -n "$ZIP" && break 17610 done 17611 17612 else 17613 # If it succeeded, then it was overridden by the user. We will use it 17614 # for the tool. 17615 17616 # First remove it from the list of overridden variables, so we can test 17617 # for unknown variables in the end. 17618 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17619 17620 # Check if the provided tool contains a complete path. 17621 tool_specified="$ZIP" 17622 tool_basename="${tool_specified##*/}" 17623 if test "x$tool_basename" = "x$tool_specified"; then 17624 # A command without a complete path is provided, search $PATH. 17625 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17626 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17627 # Extract the first word of "$tool_basename", so it can be a program name with args. 17628 set dummy $tool_basename; ac_word=$2 17629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17630 $as_echo_n "checking for $ac_word... " >&6; } 17631 if ${ac_cv_path_ZIP+:} false; then : 17632 $as_echo_n "(cached) " >&6 17633 else 17634 case $ZIP in 17635 [\\/]* | ?:[\\/]*) 17636 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17637 ;; 17638 *) 17639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17640 for as_dir in $PATH 17641 do 17642 IFS=$as_save_IFS 17643 test -z "$as_dir" && as_dir=. 17644 for ac_exec_ext in '' $ac_executable_extensions; do 17645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17646 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17648 break 2 17649 fi 17650 done 17651 done 17652 IFS=$as_save_IFS 17653 17654 ;; 17655 esac 17656 fi 17657 ZIP=$ac_cv_path_ZIP 17658 if test -n "$ZIP"; then 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17660 $as_echo "$ZIP" >&6; } 17661 else 17662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17663 $as_echo "no" >&6; } 17664 fi 17665 17666 17667 if test "x$ZIP" = x; then 17668 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17669 fi 17670 else 17671 # Otherwise we believe it is a complete path. Use it as it is. 17672 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17673 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17675 $as_echo_n "checking for ZIP... " >&6; } 17676 if test ! -x "$tool_specified"; then 17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17678 $as_echo "not found" >&6; } 17679 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17680 fi 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17682 $as_echo "$tool_specified" >&6; } 17683 fi 17684 fi 17685 fi 17686 17687 17688 17689 if test "x$ZIP" = x; then 17690 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17691 fi 17692 17693 17694 17695 # Non-required basic tools 17696 17697 17698 17699 # Publish this variable in the help. 17700 17701 17702 if test "x$LDD" = x; then 17703 # The variable is not set by user, try to locate tool using the code snippet 17704 for ac_prog in ldd 17705 do 17706 # Extract the first word of "$ac_prog", so it can be a program name with args. 17707 set dummy $ac_prog; ac_word=$2 17708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17709 $as_echo_n "checking for $ac_word... " >&6; } 17710 if ${ac_cv_path_LDD+:} false; then : 17711 $as_echo_n "(cached) " >&6 17712 else 17713 case $LDD in 17714 [\\/]* | ?:[\\/]*) 17715 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17716 ;; 17717 *) 17718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17719 for as_dir in $PATH 17720 do 17721 IFS=$as_save_IFS 17722 test -z "$as_dir" && as_dir=. 17723 for ac_exec_ext in '' $ac_executable_extensions; do 17724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17725 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17727 break 2 17728 fi 17729 done 17730 done 17731 IFS=$as_save_IFS 17732 17733 ;; 17734 esac 17735 fi 17736 LDD=$ac_cv_path_LDD 17737 if test -n "$LDD"; then 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17739 $as_echo "$LDD" >&6; } 17740 else 17741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17742 $as_echo "no" >&6; } 17743 fi 17744 17745 17746 test -n "$LDD" && break 17747 done 17748 17749 else 17750 # The variable is set, but is it from the command line or the environment? 17751 17752 # Try to remove the string !LDD! from our list. 17753 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17754 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17755 # If it failed, the variable was not from the command line. Ignore it, 17756 # but warn the user (except for BASH, which is always set by the calling BASH). 17757 if test "xLDD" != xBASH; then 17758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17759 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17760 fi 17761 # Try to locate tool using the code snippet 17762 for ac_prog in ldd 17763 do 17764 # Extract the first word of "$ac_prog", so it can be a program name with args. 17765 set dummy $ac_prog; ac_word=$2 17766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17767 $as_echo_n "checking for $ac_word... " >&6; } 17768 if ${ac_cv_path_LDD+:} false; then : 17769 $as_echo_n "(cached) " >&6 17770 else 17771 case $LDD in 17772 [\\/]* | ?:[\\/]*) 17773 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17774 ;; 17775 *) 17776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17777 for as_dir in $PATH 17778 do 17779 IFS=$as_save_IFS 17780 test -z "$as_dir" && as_dir=. 17781 for ac_exec_ext in '' $ac_executable_extensions; do 17782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17783 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17785 break 2 17786 fi 17787 done 17788 done 17789 IFS=$as_save_IFS 17790 17791 ;; 17792 esac 17793 fi 17794 LDD=$ac_cv_path_LDD 17795 if test -n "$LDD"; then 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17797 $as_echo "$LDD" >&6; } 17798 else 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17800 $as_echo "no" >&6; } 17801 fi 17802 17803 17804 test -n "$LDD" && break 17805 done 17806 17807 else 17808 # If it succeeded, then it was overridden by the user. We will use it 17809 # for the tool. 17810 17811 # First remove it from the list of overridden variables, so we can test 17812 # for unknown variables in the end. 17813 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17814 17815 # Check if the provided tool contains a complete path. 17816 tool_specified="$LDD" 17817 tool_basename="${tool_specified##*/}" 17818 if test "x$tool_basename" = "x$tool_specified"; then 17819 # A command without a complete path is provided, search $PATH. 17820 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17821 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17822 # Extract the first word of "$tool_basename", so it can be a program name with args. 17823 set dummy $tool_basename; ac_word=$2 17824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17825 $as_echo_n "checking for $ac_word... " >&6; } 17826 if ${ac_cv_path_LDD+:} false; then : 17827 $as_echo_n "(cached) " >&6 17828 else 17829 case $LDD in 17830 [\\/]* | ?:[\\/]*) 17831 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17832 ;; 17833 *) 17834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17835 for as_dir in $PATH 17836 do 17837 IFS=$as_save_IFS 17838 test -z "$as_dir" && as_dir=. 17839 for ac_exec_ext in '' $ac_executable_extensions; do 17840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17841 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17843 break 2 17844 fi 17845 done 17846 done 17847 IFS=$as_save_IFS 17848 17849 ;; 17850 esac 17851 fi 17852 LDD=$ac_cv_path_LDD 17853 if test -n "$LDD"; then 17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17855 $as_echo "$LDD" >&6; } 17856 else 17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17858 $as_echo "no" >&6; } 17859 fi 17860 17861 17862 if test "x$LDD" = x; then 17863 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17864 fi 17865 else 17866 # Otherwise we believe it is a complete path. Use it as it is. 17867 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17868 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17870 $as_echo_n "checking for LDD... " >&6; } 17871 if test ! -x "$tool_specified"; then 17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17873 $as_echo "not found" >&6; } 17874 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17875 fi 17876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17877 $as_echo "$tool_specified" >&6; } 17878 fi 17879 fi 17880 fi 17881 17882 17883 if test "x$LDD" = "x"; then 17884 # List shared lib dependencies is used for 17885 # debug output and checking for forbidden dependencies. 17886 # We can build without it. 17887 LDD="true" 17888 fi 17889 17890 17891 # Publish this variable in the help. 17892 17893 17894 if test "x$OTOOL" = x; then 17895 # The variable is not set by user, try to locate tool using the code snippet 17896 for ac_prog in otool 17897 do 17898 # Extract the first word of "$ac_prog", so it can be a program name with args. 17899 set dummy $ac_prog; ac_word=$2 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17901 $as_echo_n "checking for $ac_word... " >&6; } 17902 if ${ac_cv_path_OTOOL+:} false; then : 17903 $as_echo_n "(cached) " >&6 17904 else 17905 case $OTOOL in 17906 [\\/]* | ?:[\\/]*) 17907 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17908 ;; 17909 *) 17910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17911 for as_dir in $PATH 17912 do 17913 IFS=$as_save_IFS 17914 test -z "$as_dir" && as_dir=. 17915 for ac_exec_ext in '' $ac_executable_extensions; do 17916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17917 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17919 break 2 17920 fi 17921 done 17922 done 17923 IFS=$as_save_IFS 17924 17925 ;; 17926 esac 17927 fi 17928 OTOOL=$ac_cv_path_OTOOL 17929 if test -n "$OTOOL"; then 17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17931 $as_echo "$OTOOL" >&6; } 17932 else 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17934 $as_echo "no" >&6; } 17935 fi 17936 17937 17938 test -n "$OTOOL" && break 17939 done 17940 17941 else 17942 # The variable is set, but is it from the command line or the environment? 17943 17944 # Try to remove the string !OTOOL! from our list. 17945 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17946 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17947 # If it failed, the variable was not from the command line. Ignore it, 17948 # but warn the user (except for BASH, which is always set by the calling BASH). 17949 if test "xOTOOL" != xBASH; then 17950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17951 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17952 fi 17953 # Try to locate tool using the code snippet 17954 for ac_prog in otool 17955 do 17956 # Extract the first word of "$ac_prog", so it can be a program name with args. 17957 set dummy $ac_prog; ac_word=$2 17958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17959 $as_echo_n "checking for $ac_word... " >&6; } 17960 if ${ac_cv_path_OTOOL+:} false; then : 17961 $as_echo_n "(cached) " >&6 17962 else 17963 case $OTOOL in 17964 [\\/]* | ?:[\\/]*) 17965 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17966 ;; 17967 *) 17968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17969 for as_dir in $PATH 17970 do 17971 IFS=$as_save_IFS 17972 test -z "$as_dir" && as_dir=. 17973 for ac_exec_ext in '' $ac_executable_extensions; do 17974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17975 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17977 break 2 17978 fi 17979 done 17980 done 17981 IFS=$as_save_IFS 17982 17983 ;; 17984 esac 17985 fi 17986 OTOOL=$ac_cv_path_OTOOL 17987 if test -n "$OTOOL"; then 17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17989 $as_echo "$OTOOL" >&6; } 17990 else 17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17992 $as_echo "no" >&6; } 17993 fi 17994 17995 17996 test -n "$OTOOL" && break 17997 done 17998 17999 else 18000 # If it succeeded, then it was overridden by the user. We will use it 18001 # for the tool. 18002 18003 # First remove it from the list of overridden variables, so we can test 18004 # for unknown variables in the end. 18005 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18006 18007 # Check if the provided tool contains a complete path. 18008 tool_specified="$OTOOL" 18009 tool_basename="${tool_specified##*/}" 18010 if test "x$tool_basename" = "x$tool_specified"; then 18011 # A command without a complete path is provided, search $PATH. 18012 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 18013 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 18014 # Extract the first word of "$tool_basename", so it can be a program name with args. 18015 set dummy $tool_basename; ac_word=$2 18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18017 $as_echo_n "checking for $ac_word... " >&6; } 18018 if ${ac_cv_path_OTOOL+:} false; then : 18019 $as_echo_n "(cached) " >&6 18020 else 18021 case $OTOOL in 18022 [\\/]* | ?:[\\/]*) 18023 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 18024 ;; 18025 *) 18026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18027 for as_dir in $PATH 18028 do 18029 IFS=$as_save_IFS 18030 test -z "$as_dir" && as_dir=. 18031 for ac_exec_ext in '' $ac_executable_extensions; do 18032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18033 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 18034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18035 break 2 18036 fi 18037 done 18038 done 18039 IFS=$as_save_IFS 18040 18041 ;; 18042 esac 18043 fi 18044 OTOOL=$ac_cv_path_OTOOL 18045 if test -n "$OTOOL"; then 18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 18047 $as_echo "$OTOOL" >&6; } 18048 else 18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18050 $as_echo "no" >&6; } 18051 fi 18052 18053 18054 if test "x$OTOOL" = x; then 18055 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18056 fi 18057 else 18058 # Otherwise we believe it is a complete path. Use it as it is. 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 18060 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 18062 $as_echo_n "checking for OTOOL... " >&6; } 18063 if test ! -x "$tool_specified"; then 18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18065 $as_echo "not found" >&6; } 18066 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 18067 fi 18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18069 $as_echo "$tool_specified" >&6; } 18070 fi 18071 fi 18072 fi 18073 18074 18075 if test "x$OTOOL" = "x"; then 18076 OTOOL="true" 18077 fi 18078 18079 18080 # Publish this variable in the help. 18081 18082 18083 if test "x$READELF" = x; then 18084 # The variable is not set by user, try to locate tool using the code snippet 18085 for ac_prog in greadelf readelf 18086 do 18087 # Extract the first word of "$ac_prog", so it can be a program name with args. 18088 set dummy $ac_prog; ac_word=$2 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18090 $as_echo_n "checking for $ac_word... " >&6; } 18091 if ${ac_cv_path_READELF+:} false; then : 18092 $as_echo_n "(cached) " >&6 18093 else 18094 case $READELF in 18095 [\\/]* | ?:[\\/]*) 18096 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18097 ;; 18098 *) 18099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18100 for as_dir in $PATH 18101 do 18102 IFS=$as_save_IFS 18103 test -z "$as_dir" && as_dir=. 18104 for ac_exec_ext in '' $ac_executable_extensions; do 18105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18106 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18108 break 2 18109 fi 18110 done 18111 done 18112 IFS=$as_save_IFS 18113 18114 ;; 18115 esac 18116 fi 18117 READELF=$ac_cv_path_READELF 18118 if test -n "$READELF"; then 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18120 $as_echo "$READELF" >&6; } 18121 else 18122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18123 $as_echo "no" >&6; } 18124 fi 18125 18126 18127 test -n "$READELF" && break 18128 done 18129 18130 else 18131 # The variable is set, but is it from the command line or the environment? 18132 18133 # Try to remove the string !READELF! from our list. 18134 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 18135 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18136 # If it failed, the variable was not from the command line. Ignore it, 18137 # but warn the user (except for BASH, which is always set by the calling BASH). 18138 if test "xREADELF" != xBASH; then 18139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 18140 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 18141 fi 18142 # Try to locate tool using the code snippet 18143 for ac_prog in greadelf readelf 18144 do 18145 # Extract the first word of "$ac_prog", so it can be a program name with args. 18146 set dummy $ac_prog; ac_word=$2 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18148 $as_echo_n "checking for $ac_word... " >&6; } 18149 if ${ac_cv_path_READELF+:} false; then : 18150 $as_echo_n "(cached) " >&6 18151 else 18152 case $READELF in 18153 [\\/]* | ?:[\\/]*) 18154 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18155 ;; 18156 *) 18157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18158 for as_dir in $PATH 18159 do 18160 IFS=$as_save_IFS 18161 test -z "$as_dir" && as_dir=. 18162 for ac_exec_ext in '' $ac_executable_extensions; do 18163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18164 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18166 break 2 18167 fi 18168 done 18169 done 18170 IFS=$as_save_IFS 18171 18172 ;; 18173 esac 18174 fi 18175 READELF=$ac_cv_path_READELF 18176 if test -n "$READELF"; then 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18178 $as_echo "$READELF" >&6; } 18179 else 18180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18181 $as_echo "no" >&6; } 18182 fi 18183 18184 18185 test -n "$READELF" && break 18186 done 18187 18188 else 18189 # If it succeeded, then it was overridden by the user. We will use it 18190 # for the tool. 18191 18192 # First remove it from the list of overridden variables, so we can test 18193 # for unknown variables in the end. 18194 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18195 18196 # Check if the provided tool contains a complete path. 18197 tool_specified="$READELF" 18198 tool_basename="${tool_specified##*/}" 18199 if test "x$tool_basename" = "x$tool_specified"; then 18200 # A command without a complete path is provided, search $PATH. 18201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 18202 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 18203 # Extract the first word of "$tool_basename", so it can be a program name with args. 18204 set dummy $tool_basename; ac_word=$2 18205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18206 $as_echo_n "checking for $ac_word... " >&6; } 18207 if ${ac_cv_path_READELF+:} false; then : 18208 $as_echo_n "(cached) " >&6 18209 else 18210 case $READELF in 18211 [\\/]* | ?:[\\/]*) 18212 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 18213 ;; 18214 *) 18215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18216 for as_dir in $PATH 18217 do 18218 IFS=$as_save_IFS 18219 test -z "$as_dir" && as_dir=. 18220 for ac_exec_ext in '' $ac_executable_extensions; do 18221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18222 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 18223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18224 break 2 18225 fi 18226 done 18227 done 18228 IFS=$as_save_IFS 18229 18230 ;; 18231 esac 18232 fi 18233 READELF=$ac_cv_path_READELF 18234 if test -n "$READELF"; then 18235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 18236 $as_echo "$READELF" >&6; } 18237 else 18238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18239 $as_echo "no" >&6; } 18240 fi 18241 18242 18243 if test "x$READELF" = x; then 18244 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18245 fi 18246 else 18247 # Otherwise we believe it is a complete path. Use it as it is. 18248 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 18249 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 18251 $as_echo_n "checking for READELF... " >&6; } 18252 if test ! -x "$tool_specified"; then 18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18254 $as_echo "not found" >&6; } 18255 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 18256 fi 18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18258 $as_echo "$tool_specified" >&6; } 18259 fi 18260 fi 18261 fi 18262 18263 18264 18265 18266 # Publish this variable in the help. 18267 18268 18269 if test "x$HG" = x; then 18270 # The variable is not set by user, try to locate tool using the code snippet 18271 for ac_prog in hg 18272 do 18273 # Extract the first word of "$ac_prog", so it can be a program name with args. 18274 set dummy $ac_prog; ac_word=$2 18275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18276 $as_echo_n "checking for $ac_word... " >&6; } 18277 if ${ac_cv_path_HG+:} false; then : 18278 $as_echo_n "(cached) " >&6 18279 else 18280 case $HG in 18281 [\\/]* | ?:[\\/]*) 18282 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18283 ;; 18284 *) 18285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18286 for as_dir in $PATH 18287 do 18288 IFS=$as_save_IFS 18289 test -z "$as_dir" && as_dir=. 18290 for ac_exec_ext in '' $ac_executable_extensions; do 18291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18292 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18293 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18294 break 2 18295 fi 18296 done 18297 done 18298 IFS=$as_save_IFS 18299 18300 ;; 18301 esac 18302 fi 18303 HG=$ac_cv_path_HG 18304 if test -n "$HG"; then 18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18306 $as_echo "$HG" >&6; } 18307 else 18308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18309 $as_echo "no" >&6; } 18310 fi 18311 18312 18313 test -n "$HG" && break 18314 done 18315 18316 else 18317 # The variable is set, but is it from the command line or the environment? 18318 18319 # Try to remove the string !HG! from our list. 18320 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 18321 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18322 # If it failed, the variable was not from the command line. Ignore it, 18323 # but warn the user (except for BASH, which is always set by the calling BASH). 18324 if test "xHG" != xBASH; then 18325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 18326 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 18327 fi 18328 # Try to locate tool using the code snippet 18329 for ac_prog in hg 18330 do 18331 # Extract the first word of "$ac_prog", so it can be a program name with args. 18332 set dummy $ac_prog; ac_word=$2 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18334 $as_echo_n "checking for $ac_word... " >&6; } 18335 if ${ac_cv_path_HG+:} false; then : 18336 $as_echo_n "(cached) " >&6 18337 else 18338 case $HG in 18339 [\\/]* | ?:[\\/]*) 18340 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18341 ;; 18342 *) 18343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18344 for as_dir in $PATH 18345 do 18346 IFS=$as_save_IFS 18347 test -z "$as_dir" && as_dir=. 18348 for ac_exec_ext in '' $ac_executable_extensions; do 18349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18350 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18352 break 2 18353 fi 18354 done 18355 done 18356 IFS=$as_save_IFS 18357 18358 ;; 18359 esac 18360 fi 18361 HG=$ac_cv_path_HG 18362 if test -n "$HG"; then 18363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18364 $as_echo "$HG" >&6; } 18365 else 18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18367 $as_echo "no" >&6; } 18368 fi 18369 18370 18371 test -n "$HG" && break 18372 done 18373 18374 else 18375 # If it succeeded, then it was overridden by the user. We will use it 18376 # for the tool. 18377 18378 # First remove it from the list of overridden variables, so we can test 18379 # for unknown variables in the end. 18380 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18381 18382 # Check if the provided tool contains a complete path. 18383 tool_specified="$HG" 18384 tool_basename="${tool_specified##*/}" 18385 if test "x$tool_basename" = "x$tool_specified"; then 18386 # A command without a complete path is provided, search $PATH. 18387 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 18388 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 18389 # Extract the first word of "$tool_basename", so it can be a program name with args. 18390 set dummy $tool_basename; ac_word=$2 18391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18392 $as_echo_n "checking for $ac_word... " >&6; } 18393 if ${ac_cv_path_HG+:} false; then : 18394 $as_echo_n "(cached) " >&6 18395 else 18396 case $HG in 18397 [\\/]* | ?:[\\/]*) 18398 ac_cv_path_HG="$HG" # Let the user override the test with a path. 18399 ;; 18400 *) 18401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18402 for as_dir in $PATH 18403 do 18404 IFS=$as_save_IFS 18405 test -z "$as_dir" && as_dir=. 18406 for ac_exec_ext in '' $ac_executable_extensions; do 18407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18408 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 18409 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18410 break 2 18411 fi 18412 done 18413 done 18414 IFS=$as_save_IFS 18415 18416 ;; 18417 esac 18418 fi 18419 HG=$ac_cv_path_HG 18420 if test -n "$HG"; then 18421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 18422 $as_echo "$HG" >&6; } 18423 else 18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18425 $as_echo "no" >&6; } 18426 fi 18427 18428 18429 if test "x$HG" = x; then 18430 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18431 fi 18432 else 18433 # Otherwise we believe it is a complete path. Use it as it is. 18434 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 18435 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 18437 $as_echo_n "checking for HG... " >&6; } 18438 if test ! -x "$tool_specified"; then 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18440 $as_echo "not found" >&6; } 18441 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 18442 fi 18443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18444 $as_echo "$tool_specified" >&6; } 18445 fi 18446 fi 18447 fi 18448 18449 18450 18451 18452 # Publish this variable in the help. 18453 18454 18455 if test "x$STAT" = x; then 18456 # The variable is not set by user, try to locate tool using the code snippet 18457 for ac_prog in stat 18458 do 18459 # Extract the first word of "$ac_prog", so it can be a program name with args. 18460 set dummy $ac_prog; ac_word=$2 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18462 $as_echo_n "checking for $ac_word... " >&6; } 18463 if ${ac_cv_path_STAT+:} false; then : 18464 $as_echo_n "(cached) " >&6 18465 else 18466 case $STAT in 18467 [\\/]* | ?:[\\/]*) 18468 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18469 ;; 18470 *) 18471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18472 for as_dir in $PATH 18473 do 18474 IFS=$as_save_IFS 18475 test -z "$as_dir" && as_dir=. 18476 for ac_exec_ext in '' $ac_executable_extensions; do 18477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18478 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18480 break 2 18481 fi 18482 done 18483 done 18484 IFS=$as_save_IFS 18485 18486 ;; 18487 esac 18488 fi 18489 STAT=$ac_cv_path_STAT 18490 if test -n "$STAT"; then 18491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18492 $as_echo "$STAT" >&6; } 18493 else 18494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18495 $as_echo "no" >&6; } 18496 fi 18497 18498 18499 test -n "$STAT" && break 18500 done 18501 18502 else 18503 # The variable is set, but is it from the command line or the environment? 18504 18505 # Try to remove the string !STAT! from our list. 18506 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18507 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18508 # If it failed, the variable was not from the command line. Ignore it, 18509 # but warn the user (except for BASH, which is always set by the calling BASH). 18510 if test "xSTAT" != xBASH; then 18511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18512 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18513 fi 18514 # Try to locate tool using the code snippet 18515 for ac_prog in stat 18516 do 18517 # Extract the first word of "$ac_prog", so it can be a program name with args. 18518 set dummy $ac_prog; ac_word=$2 18519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18520 $as_echo_n "checking for $ac_word... " >&6; } 18521 if ${ac_cv_path_STAT+:} false; then : 18522 $as_echo_n "(cached) " >&6 18523 else 18524 case $STAT in 18525 [\\/]* | ?:[\\/]*) 18526 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18527 ;; 18528 *) 18529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18530 for as_dir in $PATH 18531 do 18532 IFS=$as_save_IFS 18533 test -z "$as_dir" && as_dir=. 18534 for ac_exec_ext in '' $ac_executable_extensions; do 18535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18536 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18538 break 2 18539 fi 18540 done 18541 done 18542 IFS=$as_save_IFS 18543 18544 ;; 18545 esac 18546 fi 18547 STAT=$ac_cv_path_STAT 18548 if test -n "$STAT"; then 18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18550 $as_echo "$STAT" >&6; } 18551 else 18552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18553 $as_echo "no" >&6; } 18554 fi 18555 18556 18557 test -n "$STAT" && break 18558 done 18559 18560 else 18561 # If it succeeded, then it was overridden by the user. We will use it 18562 # for the tool. 18563 18564 # First remove it from the list of overridden variables, so we can test 18565 # for unknown variables in the end. 18566 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18567 18568 # Check if the provided tool contains a complete path. 18569 tool_specified="$STAT" 18570 tool_basename="${tool_specified##*/}" 18571 if test "x$tool_basename" = "x$tool_specified"; then 18572 # A command without a complete path is provided, search $PATH. 18573 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18574 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18575 # Extract the first word of "$tool_basename", so it can be a program name with args. 18576 set dummy $tool_basename; ac_word=$2 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18578 $as_echo_n "checking for $ac_word... " >&6; } 18579 if ${ac_cv_path_STAT+:} false; then : 18580 $as_echo_n "(cached) " >&6 18581 else 18582 case $STAT in 18583 [\\/]* | ?:[\\/]*) 18584 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18585 ;; 18586 *) 18587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18588 for as_dir in $PATH 18589 do 18590 IFS=$as_save_IFS 18591 test -z "$as_dir" && as_dir=. 18592 for ac_exec_ext in '' $ac_executable_extensions; do 18593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18594 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18596 break 2 18597 fi 18598 done 18599 done 18600 IFS=$as_save_IFS 18601 18602 ;; 18603 esac 18604 fi 18605 STAT=$ac_cv_path_STAT 18606 if test -n "$STAT"; then 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18608 $as_echo "$STAT" >&6; } 18609 else 18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18611 $as_echo "no" >&6; } 18612 fi 18613 18614 18615 if test "x$STAT" = x; then 18616 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18617 fi 18618 else 18619 # Otherwise we believe it is a complete path. Use it as it is. 18620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18621 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18623 $as_echo_n "checking for STAT... " >&6; } 18624 if test ! -x "$tool_specified"; then 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18626 $as_echo "not found" >&6; } 18627 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18628 fi 18629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18630 $as_echo "$tool_specified" >&6; } 18631 fi 18632 fi 18633 fi 18634 18635 18636 18637 18638 # Publish this variable in the help. 18639 18640 18641 if test "x$TIME" = x; then 18642 # The variable is not set by user, try to locate tool using the code snippet 18643 for ac_prog in time 18644 do 18645 # Extract the first word of "$ac_prog", so it can be a program name with args. 18646 set dummy $ac_prog; ac_word=$2 18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18648 $as_echo_n "checking for $ac_word... " >&6; } 18649 if ${ac_cv_path_TIME+:} false; then : 18650 $as_echo_n "(cached) " >&6 18651 else 18652 case $TIME in 18653 [\\/]* | ?:[\\/]*) 18654 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18655 ;; 18656 *) 18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18658 for as_dir in $PATH 18659 do 18660 IFS=$as_save_IFS 18661 test -z "$as_dir" && as_dir=. 18662 for ac_exec_ext in '' $ac_executable_extensions; do 18663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18664 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18666 break 2 18667 fi 18668 done 18669 done 18670 IFS=$as_save_IFS 18671 18672 ;; 18673 esac 18674 fi 18675 TIME=$ac_cv_path_TIME 18676 if test -n "$TIME"; then 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18678 $as_echo "$TIME" >&6; } 18679 else 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18681 $as_echo "no" >&6; } 18682 fi 18683 18684 18685 test -n "$TIME" && break 18686 done 18687 18688 else 18689 # The variable is set, but is it from the command line or the environment? 18690 18691 # Try to remove the string !TIME! from our list. 18692 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18693 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18694 # If it failed, the variable was not from the command line. Ignore it, 18695 # but warn the user (except for BASH, which is always set by the calling BASH). 18696 if test "xTIME" != xBASH; then 18697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18698 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18699 fi 18700 # Try to locate tool using the code snippet 18701 for ac_prog in time 18702 do 18703 # Extract the first word of "$ac_prog", so it can be a program name with args. 18704 set dummy $ac_prog; ac_word=$2 18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18706 $as_echo_n "checking for $ac_word... " >&6; } 18707 if ${ac_cv_path_TIME+:} false; then : 18708 $as_echo_n "(cached) " >&6 18709 else 18710 case $TIME in 18711 [\\/]* | ?:[\\/]*) 18712 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18713 ;; 18714 *) 18715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18716 for as_dir in $PATH 18717 do 18718 IFS=$as_save_IFS 18719 test -z "$as_dir" && as_dir=. 18720 for ac_exec_ext in '' $ac_executable_extensions; do 18721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18722 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18724 break 2 18725 fi 18726 done 18727 done 18728 IFS=$as_save_IFS 18729 18730 ;; 18731 esac 18732 fi 18733 TIME=$ac_cv_path_TIME 18734 if test -n "$TIME"; then 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18736 $as_echo "$TIME" >&6; } 18737 else 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18739 $as_echo "no" >&6; } 18740 fi 18741 18742 18743 test -n "$TIME" && break 18744 done 18745 18746 else 18747 # If it succeeded, then it was overridden by the user. We will use it 18748 # for the tool. 18749 18750 # First remove it from the list of overridden variables, so we can test 18751 # for unknown variables in the end. 18752 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18753 18754 # Check if the provided tool contains a complete path. 18755 tool_specified="$TIME" 18756 tool_basename="${tool_specified##*/}" 18757 if test "x$tool_basename" = "x$tool_specified"; then 18758 # A command without a complete path is provided, search $PATH. 18759 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18760 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18761 # Extract the first word of "$tool_basename", so it can be a program name with args. 18762 set dummy $tool_basename; ac_word=$2 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18764 $as_echo_n "checking for $ac_word... " >&6; } 18765 if ${ac_cv_path_TIME+:} false; then : 18766 $as_echo_n "(cached) " >&6 18767 else 18768 case $TIME in 18769 [\\/]* | ?:[\\/]*) 18770 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18771 ;; 18772 *) 18773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18774 for as_dir in $PATH 18775 do 18776 IFS=$as_save_IFS 18777 test -z "$as_dir" && as_dir=. 18778 for ac_exec_ext in '' $ac_executable_extensions; do 18779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18780 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18782 break 2 18783 fi 18784 done 18785 done 18786 IFS=$as_save_IFS 18787 18788 ;; 18789 esac 18790 fi 18791 TIME=$ac_cv_path_TIME 18792 if test -n "$TIME"; then 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18794 $as_echo "$TIME" >&6; } 18795 else 18796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18797 $as_echo "no" >&6; } 18798 fi 18799 18800 18801 if test "x$TIME" = x; then 18802 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18803 fi 18804 else 18805 # Otherwise we believe it is a complete path. Use it as it is. 18806 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18807 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18809 $as_echo_n "checking for TIME... " >&6; } 18810 if test ! -x "$tool_specified"; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18812 $as_echo "not found" >&6; } 18813 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18814 fi 18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18816 $as_echo "$tool_specified" >&6; } 18817 fi 18818 fi 18819 fi 18820 18821 18822 # Check if it's GNU time 18823 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18824 if test "x$IS_GNU_TIME" != x; then 18825 IS_GNU_TIME=yes 18826 else 18827 IS_GNU_TIME=no 18828 fi 18829 18830 18831 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18832 18833 18834 18835 # Publish this variable in the help. 18836 18837 18838 if test "x$DSYMUTIL" = x; then 18839 # The variable is not set by user, try to locate tool using the code snippet 18840 for ac_prog in dsymutil 18841 do 18842 # Extract the first word of "$ac_prog", so it can be a program name with args. 18843 set dummy $ac_prog; ac_word=$2 18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18845 $as_echo_n "checking for $ac_word... " >&6; } 18846 if ${ac_cv_path_DSYMUTIL+:} false; then : 18847 $as_echo_n "(cached) " >&6 18848 else 18849 case $DSYMUTIL in 18850 [\\/]* | ?:[\\/]*) 18851 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18852 ;; 18853 *) 18854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18855 for as_dir in $PATH 18856 do 18857 IFS=$as_save_IFS 18858 test -z "$as_dir" && as_dir=. 18859 for ac_exec_ext in '' $ac_executable_extensions; do 18860 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18861 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18863 break 2 18864 fi 18865 done 18866 done 18867 IFS=$as_save_IFS 18868 18869 ;; 18870 esac 18871 fi 18872 DSYMUTIL=$ac_cv_path_DSYMUTIL 18873 if test -n "$DSYMUTIL"; then 18874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18875 $as_echo "$DSYMUTIL" >&6; } 18876 else 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18878 $as_echo "no" >&6; } 18879 fi 18880 18881 18882 test -n "$DSYMUTIL" && break 18883 done 18884 18885 else 18886 # The variable is set, but is it from the command line or the environment? 18887 18888 # Try to remove the string !DSYMUTIL! from our list. 18889 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18890 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18891 # If it failed, the variable was not from the command line. Ignore it, 18892 # but warn the user (except for BASH, which is always set by the calling BASH). 18893 if test "xDSYMUTIL" != xBASH; then 18894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18895 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18896 fi 18897 # Try to locate tool using the code snippet 18898 for ac_prog in dsymutil 18899 do 18900 # Extract the first word of "$ac_prog", so it can be a program name with args. 18901 set dummy $ac_prog; ac_word=$2 18902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18903 $as_echo_n "checking for $ac_word... " >&6; } 18904 if ${ac_cv_path_DSYMUTIL+:} false; then : 18905 $as_echo_n "(cached) " >&6 18906 else 18907 case $DSYMUTIL in 18908 [\\/]* | ?:[\\/]*) 18909 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18910 ;; 18911 *) 18912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18913 for as_dir in $PATH 18914 do 18915 IFS=$as_save_IFS 18916 test -z "$as_dir" && as_dir=. 18917 for ac_exec_ext in '' $ac_executable_extensions; do 18918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18919 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18921 break 2 18922 fi 18923 done 18924 done 18925 IFS=$as_save_IFS 18926 18927 ;; 18928 esac 18929 fi 18930 DSYMUTIL=$ac_cv_path_DSYMUTIL 18931 if test -n "$DSYMUTIL"; then 18932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18933 $as_echo "$DSYMUTIL" >&6; } 18934 else 18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18936 $as_echo "no" >&6; } 18937 fi 18938 18939 18940 test -n "$DSYMUTIL" && break 18941 done 18942 18943 else 18944 # If it succeeded, then it was overridden by the user. We will use it 18945 # for the tool. 18946 18947 # First remove it from the list of overridden variables, so we can test 18948 # for unknown variables in the end. 18949 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18950 18951 # Check if the provided tool contains a complete path. 18952 tool_specified="$DSYMUTIL" 18953 tool_basename="${tool_specified##*/}" 18954 if test "x$tool_basename" = "x$tool_specified"; then 18955 # A command without a complete path is provided, search $PATH. 18956 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18957 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18958 # Extract the first word of "$tool_basename", so it can be a program name with args. 18959 set dummy $tool_basename; ac_word=$2 18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18961 $as_echo_n "checking for $ac_word... " >&6; } 18962 if ${ac_cv_path_DSYMUTIL+:} false; then : 18963 $as_echo_n "(cached) " >&6 18964 else 18965 case $DSYMUTIL in 18966 [\\/]* | ?:[\\/]*) 18967 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18968 ;; 18969 *) 18970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18971 for as_dir in $PATH 18972 do 18973 IFS=$as_save_IFS 18974 test -z "$as_dir" && as_dir=. 18975 for ac_exec_ext in '' $ac_executable_extensions; do 18976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18977 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18979 break 2 18980 fi 18981 done 18982 done 18983 IFS=$as_save_IFS 18984 18985 ;; 18986 esac 18987 fi 18988 DSYMUTIL=$ac_cv_path_DSYMUTIL 18989 if test -n "$DSYMUTIL"; then 18990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18991 $as_echo "$DSYMUTIL" >&6; } 18992 else 18993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18994 $as_echo "no" >&6; } 18995 fi 18996 18997 18998 if test "x$DSYMUTIL" = x; then 18999 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19000 fi 19001 else 19002 # Otherwise we believe it is a complete path. Use it as it is. 19003 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 19004 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 19005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 19006 $as_echo_n "checking for DSYMUTIL... " >&6; } 19007 if test ! -x "$tool_specified"; then 19008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19009 $as_echo "not found" >&6; } 19010 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 19011 fi 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19013 $as_echo "$tool_specified" >&6; } 19014 fi 19015 fi 19016 fi 19017 19018 19019 19020 if test "x$DSYMUTIL" = x; then 19021 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 19022 fi 19023 19024 19025 19026 19027 19028 # Publish this variable in the help. 19029 19030 19031 if test "x$XATTR" = x; then 19032 # The variable is not set by user, try to locate tool using the code snippet 19033 for ac_prog in xattr 19034 do 19035 # Extract the first word of "$ac_prog", so it can be a program name with args. 19036 set dummy $ac_prog; ac_word=$2 19037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19038 $as_echo_n "checking for $ac_word... " >&6; } 19039 if ${ac_cv_path_XATTR+:} false; then : 19040 $as_echo_n "(cached) " >&6 19041 else 19042 case $XATTR in 19043 [\\/]* | ?:[\\/]*) 19044 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19045 ;; 19046 *) 19047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19048 for as_dir in $PATH 19049 do 19050 IFS=$as_save_IFS 19051 test -z "$as_dir" && as_dir=. 19052 for ac_exec_ext in '' $ac_executable_extensions; do 19053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19054 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19056 break 2 19057 fi 19058 done 19059 done 19060 IFS=$as_save_IFS 19061 19062 ;; 19063 esac 19064 fi 19065 XATTR=$ac_cv_path_XATTR 19066 if test -n "$XATTR"; then 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19068 $as_echo "$XATTR" >&6; } 19069 else 19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19071 $as_echo "no" >&6; } 19072 fi 19073 19074 19075 test -n "$XATTR" && break 19076 done 19077 19078 else 19079 # The variable is set, but is it from the command line or the environment? 19080 19081 # Try to remove the string !XATTR! from our list. 19082 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 19083 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19084 # If it failed, the variable was not from the command line. Ignore it, 19085 # but warn the user (except for BASH, which is always set by the calling BASH). 19086 if test "xXATTR" != xBASH; then 19087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 19088 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 19089 fi 19090 # Try to locate tool using the code snippet 19091 for ac_prog in xattr 19092 do 19093 # Extract the first word of "$ac_prog", so it can be a program name with args. 19094 set dummy $ac_prog; ac_word=$2 19095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19096 $as_echo_n "checking for $ac_word... " >&6; } 19097 if ${ac_cv_path_XATTR+:} false; then : 19098 $as_echo_n "(cached) " >&6 19099 else 19100 case $XATTR in 19101 [\\/]* | ?:[\\/]*) 19102 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19103 ;; 19104 *) 19105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19106 for as_dir in $PATH 19107 do 19108 IFS=$as_save_IFS 19109 test -z "$as_dir" && as_dir=. 19110 for ac_exec_ext in '' $ac_executable_extensions; do 19111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19112 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19114 break 2 19115 fi 19116 done 19117 done 19118 IFS=$as_save_IFS 19119 19120 ;; 19121 esac 19122 fi 19123 XATTR=$ac_cv_path_XATTR 19124 if test -n "$XATTR"; then 19125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19126 $as_echo "$XATTR" >&6; } 19127 else 19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19129 $as_echo "no" >&6; } 19130 fi 19131 19132 19133 test -n "$XATTR" && break 19134 done 19135 19136 else 19137 # If it succeeded, then it was overridden by the user. We will use it 19138 # for the tool. 19139 19140 # First remove it from the list of overridden variables, so we can test 19141 # for unknown variables in the end. 19142 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19143 19144 # Check if the provided tool contains a complete path. 19145 tool_specified="$XATTR" 19146 tool_basename="${tool_specified##*/}" 19147 if test "x$tool_basename" = "x$tool_specified"; then 19148 # A command without a complete path is provided, search $PATH. 19149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 19150 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 19151 # Extract the first word of "$tool_basename", so it can be a program name with args. 19152 set dummy $tool_basename; ac_word=$2 19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19154 $as_echo_n "checking for $ac_word... " >&6; } 19155 if ${ac_cv_path_XATTR+:} false; then : 19156 $as_echo_n "(cached) " >&6 19157 else 19158 case $XATTR in 19159 [\\/]* | ?:[\\/]*) 19160 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 19161 ;; 19162 *) 19163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19164 for as_dir in $PATH 19165 do 19166 IFS=$as_save_IFS 19167 test -z "$as_dir" && as_dir=. 19168 for ac_exec_ext in '' $ac_executable_extensions; do 19169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19170 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 19171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19172 break 2 19173 fi 19174 done 19175 done 19176 IFS=$as_save_IFS 19177 19178 ;; 19179 esac 19180 fi 19181 XATTR=$ac_cv_path_XATTR 19182 if test -n "$XATTR"; then 19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 19184 $as_echo "$XATTR" >&6; } 19185 else 19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19187 $as_echo "no" >&6; } 19188 fi 19189 19190 19191 if test "x$XATTR" = x; then 19192 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19193 fi 19194 else 19195 # Otherwise we believe it is a complete path. Use it as it is. 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 19197 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 19199 $as_echo_n "checking for XATTR... " >&6; } 19200 if test ! -x "$tool_specified"; then 19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19202 $as_echo "not found" >&6; } 19203 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 19204 fi 19205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19206 $as_echo "$tool_specified" >&6; } 19207 fi 19208 fi 19209 fi 19210 19211 19212 19213 if test "x$XATTR" = x; then 19214 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 19215 fi 19216 19217 19218 19219 19220 # Publish this variable in the help. 19221 19222 19223 if test "x$CODESIGN" = x; then 19224 # The variable is not set by user, try to locate tool using the code snippet 19225 for ac_prog in codesign 19226 do 19227 # Extract the first word of "$ac_prog", so it can be a program name with args. 19228 set dummy $ac_prog; ac_word=$2 19229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19230 $as_echo_n "checking for $ac_word... " >&6; } 19231 if ${ac_cv_path_CODESIGN+:} false; then : 19232 $as_echo_n "(cached) " >&6 19233 else 19234 case $CODESIGN in 19235 [\\/]* | ?:[\\/]*) 19236 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19237 ;; 19238 *) 19239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19240 for as_dir in $PATH 19241 do 19242 IFS=$as_save_IFS 19243 test -z "$as_dir" && as_dir=. 19244 for ac_exec_ext in '' $ac_executable_extensions; do 19245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19246 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19248 break 2 19249 fi 19250 done 19251 done 19252 IFS=$as_save_IFS 19253 19254 ;; 19255 esac 19256 fi 19257 CODESIGN=$ac_cv_path_CODESIGN 19258 if test -n "$CODESIGN"; then 19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19260 $as_echo "$CODESIGN" >&6; } 19261 else 19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19263 $as_echo "no" >&6; } 19264 fi 19265 19266 19267 test -n "$CODESIGN" && break 19268 done 19269 19270 else 19271 # The variable is set, but is it from the command line or the environment? 19272 19273 # Try to remove the string !CODESIGN! from our list. 19274 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19275 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19276 # If it failed, the variable was not from the command line. Ignore it, 19277 # but warn the user (except for BASH, which is always set by the calling BASH). 19278 if test "xCODESIGN" != xBASH; then 19279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19280 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19281 fi 19282 # Try to locate tool using the code snippet 19283 for ac_prog in codesign 19284 do 19285 # Extract the first word of "$ac_prog", so it can be a program name with args. 19286 set dummy $ac_prog; ac_word=$2 19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19288 $as_echo_n "checking for $ac_word... " >&6; } 19289 if ${ac_cv_path_CODESIGN+:} false; then : 19290 $as_echo_n "(cached) " >&6 19291 else 19292 case $CODESIGN in 19293 [\\/]* | ?:[\\/]*) 19294 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19295 ;; 19296 *) 19297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19298 for as_dir in $PATH 19299 do 19300 IFS=$as_save_IFS 19301 test -z "$as_dir" && as_dir=. 19302 for ac_exec_ext in '' $ac_executable_extensions; do 19303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19304 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19306 break 2 19307 fi 19308 done 19309 done 19310 IFS=$as_save_IFS 19311 19312 ;; 19313 esac 19314 fi 19315 CODESIGN=$ac_cv_path_CODESIGN 19316 if test -n "$CODESIGN"; then 19317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19318 $as_echo "$CODESIGN" >&6; } 19319 else 19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19321 $as_echo "no" >&6; } 19322 fi 19323 19324 19325 test -n "$CODESIGN" && break 19326 done 19327 19328 else 19329 # If it succeeded, then it was overridden by the user. We will use it 19330 # for the tool. 19331 19332 # First remove it from the list of overridden variables, so we can test 19333 # for unknown variables in the end. 19334 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19335 19336 # Check if the provided tool contains a complete path. 19337 tool_specified="$CODESIGN" 19338 tool_basename="${tool_specified##*/}" 19339 if test "x$tool_basename" = "x$tool_specified"; then 19340 # A command without a complete path is provided, search $PATH. 19341 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19342 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19343 # Extract the first word of "$tool_basename", so it can be a program name with args. 19344 set dummy $tool_basename; ac_word=$2 19345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19346 $as_echo_n "checking for $ac_word... " >&6; } 19347 if ${ac_cv_path_CODESIGN+:} false; then : 19348 $as_echo_n "(cached) " >&6 19349 else 19350 case $CODESIGN in 19351 [\\/]* | ?:[\\/]*) 19352 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19353 ;; 19354 *) 19355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19356 for as_dir in $PATH 19357 do 19358 IFS=$as_save_IFS 19359 test -z "$as_dir" && as_dir=. 19360 for ac_exec_ext in '' $ac_executable_extensions; do 19361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19362 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19364 break 2 19365 fi 19366 done 19367 done 19368 IFS=$as_save_IFS 19369 19370 ;; 19371 esac 19372 fi 19373 CODESIGN=$ac_cv_path_CODESIGN 19374 if test -n "$CODESIGN"; then 19375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19376 $as_echo "$CODESIGN" >&6; } 19377 else 19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19379 $as_echo "no" >&6; } 19380 fi 19381 19382 19383 if test "x$CODESIGN" = x; then 19384 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19385 fi 19386 else 19387 # Otherwise we believe it is a complete path. Use it as it is. 19388 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19389 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19391 $as_echo_n "checking for CODESIGN... " >&6; } 19392 if test ! -x "$tool_specified"; then 19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19394 $as_echo "not found" >&6; } 19395 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19396 fi 19397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19398 $as_echo "$tool_specified" >&6; } 19399 fi 19400 fi 19401 fi 19402 19403 19404 if test "x$CODESIGN" != "x"; then 19405 # Verify that the openjdk_codesign certificate is present 19406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19407 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19408 rm -f codesign-testfile 19409 touch codesign-testfile 19410 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19411 rm -f codesign-testfile 19412 if test "x$CODESIGN" = x; then 19413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19414 $as_echo "no" >&6; } 19415 else 19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19417 $as_echo "yes" >&6; } 19418 fi 19419 fi 19420 fi 19421 19422 19423 # Check if pkg-config is available. 19424 19425 19426 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19427 if test -n "$ac_tool_prefix"; then 19428 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19429 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19431 $as_echo_n "checking for $ac_word... " >&6; } 19432 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19433 $as_echo_n "(cached) " >&6 19434 else 19435 case $PKG_CONFIG in 19436 [\\/]* | ?:[\\/]*) 19437 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19438 ;; 19439 *) 19440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19441 for as_dir in $PATH 19442 do 19443 IFS=$as_save_IFS 19444 test -z "$as_dir" && as_dir=. 19445 for ac_exec_ext in '' $ac_executable_extensions; do 19446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19447 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19449 break 2 19450 fi 19451 done 19452 done 19453 IFS=$as_save_IFS 19454 19455 ;; 19456 esac 19457 fi 19458 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19459 if test -n "$PKG_CONFIG"; then 19460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19461 $as_echo "$PKG_CONFIG" >&6; } 19462 else 19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19464 $as_echo "no" >&6; } 19465 fi 19466 19467 19468 fi 19469 if test -z "$ac_cv_path_PKG_CONFIG"; then 19470 ac_pt_PKG_CONFIG=$PKG_CONFIG 19471 # Extract the first word of "pkg-config", so it can be a program name with args. 19472 set dummy pkg-config; ac_word=$2 19473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19474 $as_echo_n "checking for $ac_word... " >&6; } 19475 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19476 $as_echo_n "(cached) " >&6 19477 else 19478 case $ac_pt_PKG_CONFIG in 19479 [\\/]* | ?:[\\/]*) 19480 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19481 ;; 19482 *) 19483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19484 for as_dir in $PATH 19485 do 19486 IFS=$as_save_IFS 19487 test -z "$as_dir" && as_dir=. 19488 for ac_exec_ext in '' $ac_executable_extensions; do 19489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19490 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19491 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19492 break 2 19493 fi 19494 done 19495 done 19496 IFS=$as_save_IFS 19497 19498 ;; 19499 esac 19500 fi 19501 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19502 if test -n "$ac_pt_PKG_CONFIG"; then 19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19504 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19505 else 19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19507 $as_echo "no" >&6; } 19508 fi 19509 19510 if test "x$ac_pt_PKG_CONFIG" = x; then 19511 PKG_CONFIG="" 19512 else 19513 case $cross_compiling:$ac_tool_warned in 19514 yes:) 19515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19517 ac_tool_warned=yes ;; 19518 esac 19519 PKG_CONFIG=$ac_pt_PKG_CONFIG 19520 fi 19521 else 19522 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19523 fi 19524 19525 fi 19526 if test -n "$PKG_CONFIG"; then 19527 _pkg_min_version=0.9.0 19528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19529 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19530 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19532 $as_echo "yes" >&6; } 19533 else 19534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19535 $as_echo "no" >&6; } 19536 PKG_CONFIG="" 19537 fi 19538 19539 fi 19540 19541 # After basic tools have been setup, we can check build os specific details. 19542 19543 ############################################################################### 19544 19545 # Note that this is the build platform OS version! 19546 19547 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19548 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19549 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19550 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19551 19552 19553 19554 19555 19556 # Setup builddeps, for automatic downloading of tools we need. 19557 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19558 # boot-jdk setup, but we need to have basic tools setup first. 19559 19560 19561 # Check whether --with-builddeps-conf was given. 19562 if test "${with_builddeps_conf+set}" = set; then : 19563 withval=$with_builddeps_conf; 19564 fi 19565 19566 19567 19568 # Check whether --with-builddeps-server was given. 19569 if test "${with_builddeps_server+set}" = set; then : 19570 withval=$with_builddeps_server; 19571 fi 19572 19573 19574 19575 # Check whether --with-builddeps-dir was given. 19576 if test "${with_builddeps_dir+set}" = set; then : 19577 withval=$with_builddeps_dir; 19578 else 19579 with_builddeps_dir=/localhome/builddeps 19580 fi 19581 19582 19583 19584 # Check whether --with-builddeps-group was given. 19585 if test "${with_builddeps_group+set}" = set; then : 19586 withval=$with_builddeps_group; 19587 fi 19588 19589 19590 19591 19592 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19593 if test "x$with_builddeps_conf" != x; then 19594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19595 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19596 builddepsfile=$with_builddeps_conf 19597 if test -s $builddepsfile; then 19598 . $builddepsfile 19599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19600 $as_echo "loaded!" >&6; } 19601 else 19602 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19603 fi 19604 else 19605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19606 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19607 builddepsfile=`mktemp` 19608 touch $builddepsfile 19609 # Put all found confs into a single file. 19610 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19611 # Source the file to acquire the variables 19612 if test -s $builddepsfile; then 19613 . $builddepsfile 19614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19615 $as_echo "found at least one!" >&6; } 19616 else 19617 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19618 fi 19619 fi 19620 # Create build and target names that use _ instead of "-" and ".". 19621 # This is necessary to use them in variable names. 19622 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19623 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19624 # Extract rewrite information for build and target 19625 eval rewritten_build=\${REWRITE_${build_var}} 19626 if test "x$rewritten_build" = x; then 19627 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19628 echo Build stays the same $rewritten_build 19629 else 19630 echo Rewriting build for builddeps into $rewritten_build 19631 fi 19632 eval rewritten_target=\${REWRITE_${target_var}} 19633 if test "x$rewritten_target" = x; then 19634 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19635 echo Target stays the same $rewritten_target 19636 else 19637 echo Rewriting target for builddeps into $rewritten_target 19638 fi 19639 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19640 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19641 fi 19642 for ac_prog in 7z unzip 19643 do 19644 # Extract the first word of "$ac_prog", so it can be a program name with args. 19645 set dummy $ac_prog; ac_word=$2 19646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19647 $as_echo_n "checking for $ac_word... " >&6; } 19648 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19649 $as_echo_n "(cached) " >&6 19650 else 19651 if test -n "$BDEPS_UNZIP"; then 19652 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19653 else 19654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19655 for as_dir in $PATH 19656 do 19657 IFS=$as_save_IFS 19658 test -z "$as_dir" && as_dir=. 19659 for ac_exec_ext in '' $ac_executable_extensions; do 19660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19661 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19663 break 2 19664 fi 19665 done 19666 done 19667 IFS=$as_save_IFS 19668 19669 fi 19670 fi 19671 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19672 if test -n "$BDEPS_UNZIP"; then 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19674 $as_echo "$BDEPS_UNZIP" >&6; } 19675 else 19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19677 $as_echo "no" >&6; } 19678 fi 19679 19680 19681 test -n "$BDEPS_UNZIP" && break 19682 done 19683 19684 if test "x$BDEPS_UNZIP" = x7z; then 19685 BDEPS_UNZIP="7z x" 19686 fi 19687 19688 for ac_prog in wget lftp ftp 19689 do 19690 # Extract the first word of "$ac_prog", so it can be a program name with args. 19691 set dummy $ac_prog; ac_word=$2 19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19693 $as_echo_n "checking for $ac_word... " >&6; } 19694 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19695 $as_echo_n "(cached) " >&6 19696 else 19697 if test -n "$BDEPS_FTP"; then 19698 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19699 else 19700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19701 for as_dir in $PATH 19702 do 19703 IFS=$as_save_IFS 19704 test -z "$as_dir" && as_dir=. 19705 for ac_exec_ext in '' $ac_executable_extensions; do 19706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19707 ac_cv_prog_BDEPS_FTP="$ac_prog" 19708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19709 break 2 19710 fi 19711 done 19712 done 19713 IFS=$as_save_IFS 19714 19715 fi 19716 fi 19717 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19718 if test -n "$BDEPS_FTP"; then 19719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19720 $as_echo "$BDEPS_FTP" >&6; } 19721 else 19722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19723 $as_echo "no" >&6; } 19724 fi 19725 19726 19727 test -n "$BDEPS_FTP" && break 19728 done 19729 19730 19731 19732 ############################################################################### 19733 # 19734 # Determine OpenJDK variants, options and version numbers. 19735 # 19736 ############################################################################### 19737 19738 # We need build & target for this. 19739 19740 19741 ############################################################################### 19742 # 19743 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19744 # We always build headless support. 19745 # 19746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19747 $as_echo_n "checking headful support... " >&6; } 19748 # Check whether --enable-headful was given. 19749 if test "${enable_headful+set}" = set; then : 19750 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19751 else 19752 SUPPORT_HEADFUL=yes 19753 fi 19754 19755 19756 SUPPORT_HEADLESS=yes 19757 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19758 19759 if test "x$SUPPORT_HEADFUL" = xyes; then 19760 # We are building both headful and headless. 19761 headful_msg="include support for both headful and headless" 19762 fi 19763 19764 if test "x$SUPPORT_HEADFUL" = xno; then 19765 # Thus we are building headless only. 19766 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19767 headful_msg="headless only" 19768 fi 19769 19770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19771 $as_echo "$headful_msg" >&6; } 19772 19773 19774 19775 19776 19777 # Control wether Hotspot runs Queens test after build. 19778 # Check whether --enable-hotspot-test-in-build was given. 19779 if test "${enable_hotspot_test_in_build+set}" = set; then : 19780 enableval=$enable_hotspot_test_in_build; 19781 else 19782 enable_hotspot_test_in_build=no 19783 fi 19784 19785 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19786 TEST_IN_BUILD=true 19787 else 19788 TEST_IN_BUILD=false 19789 fi 19790 19791 19792 ############################################################################### 19793 # 19794 # Choose cacerts source file 19795 # 19796 19797 # Check whether --with-cacerts-file was given. 19798 if test "${with_cacerts_file+set}" = set; then : 19799 withval=$with_cacerts_file; 19800 fi 19801 19802 if test "x$with_cacerts_file" != x; then 19803 CACERTS_FILE=$with_cacerts_file 19804 fi 19805 19806 19807 ############################################################################### 19808 # 19809 # Enable or disable unlimited crypto 19810 # 19811 # Check whether --enable-unlimited-crypto was given. 19812 if test "${enable_unlimited_crypto+set}" = set; then : 19813 enableval=$enable_unlimited_crypto; 19814 else 19815 enable_unlimited_crypto=no 19816 fi 19817 19818 if test "x$enable_unlimited_crypto" = "xyes"; then 19819 UNLIMITED_CRYPTO=true 19820 else 19821 UNLIMITED_CRYPTO=false 19822 fi 19823 19824 19825 ############################################################################### 19826 # 19827 # Enable or disable the elliptic curve crypto implementation 19828 # 19829 19830 19831 ############################################################################### 19832 # 19833 # --enable-rmiconnector-iiop 19834 # 19835 # Check whether --enable-rmiconnector-iiop was given. 19836 if test "${enable_rmiconnector_iiop+set}" = set; then : 19837 enableval=$enable_rmiconnector_iiop; 19838 fi 19839 19840 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19841 RMICONNECTOR_IIOP=true 19842 else 19843 RMICONNECTOR_IIOP=false 19844 fi 19845 19846 19847 ############################################################################### 19848 # 19849 # Compress jars 19850 # 19851 COMPRESS_JARS=false 19852 19853 19854 19855 19856 # Source the version numbers 19857 . $AUTOCONF_DIR/version-numbers 19858 19859 # Get the settings from parameters 19860 19861 # Check whether --with-milestone was given. 19862 if test "${with_milestone+set}" = set; then : 19863 withval=$with_milestone; 19864 fi 19865 19866 if test "x$with_milestone" = xyes; then 19867 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19868 elif test "x$with_milestone" != x; then 19869 MILESTONE="$with_milestone" 19870 fi 19871 if test "x$MILESTONE" = x; then 19872 MILESTONE=internal 19873 fi 19874 19875 19876 # Check whether --with-update-version was given. 19877 if test "${with_update_version+set}" = set; then : 19878 withval=$with_update_version; 19879 fi 19880 19881 if test "x$with_update_version" = xyes; then 19882 as_fn_error $? "Update version must have a value" "$LINENO" 5 19883 elif test "x$with_update_version" != x; then 19884 JDK_UPDATE_VERSION="$with_update_version" 19885 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19886 # to a bug in expr (which reduces it to just X). To work around this, we 19887 # always add a 0 to one digit update versions. 19888 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19889 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19890 fi 19891 fi 19892 19893 19894 # Check whether --with-user-release-suffix was given. 19895 if test "${with_user_release_suffix+set}" = set; then : 19896 withval=$with_user_release_suffix; 19897 fi 19898 19899 if test "x$with_user_release_suffix" = xyes; then 19900 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19901 elif test "x$with_user_release_suffix" != x; then 19902 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19903 fi 19904 19905 19906 # Check whether --with-build-number was given. 19907 if test "${with_build_number+set}" = set; then : 19908 withval=$with_build_number; 19909 fi 19910 19911 if test "x$with_build_number" = xyes; then 19912 as_fn_error $? "Build number must have a value" "$LINENO" 5 19913 elif test "x$with_build_number" != x; then 19914 JDK_BUILD_NUMBER="$with_build_number" 19915 fi 19916 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19917 if test "x$JDK_BUILD_NUMBER" = x; then 19918 JDK_BUILD_NUMBER=b00 19919 if test "x$USER_RELEASE_SUFFIX" = x; then 19920 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19921 # Avoid [:alnum:] since it depends on the locale. 19922 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19923 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19924 fi 19925 fi 19926 19927 # Now set the JDK version, milestone, build number etc. 19928 19929 19930 19931 19932 19933 19934 19935 19936 19937 19938 19939 19940 19941 19942 19943 19944 # Check whether --with-copyright-year was given. 19945 if test "${with_copyright_year+set}" = set; then : 19946 withval=$with_copyright_year; 19947 fi 19948 19949 if test "x$with_copyright_year" = xyes; then 19950 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 19951 elif test "x$with_copyright_year" != x; then 19952 COPYRIGHT_YEAR="$with_copyright_year" 19953 else 19954 COPYRIGHT_YEAR=`date +'%Y'` 19955 fi 19956 19957 19958 if test "x$JDK_UPDATE_VERSION" != x; then 19959 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19960 else 19961 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19962 fi 19963 19964 19965 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19966 19967 19968 19969 ############################################################################### 19970 # 19971 # Setup BootJDK, used to bootstrap the build. 19972 # 19973 ############################################################################### 19974 19975 19976 BOOT_JDK_FOUND=no 19977 19978 # Check whether --with-boot-jdk was given. 19979 if test "${with_boot_jdk+set}" = set; then : 19980 withval=$with_boot_jdk; 19981 fi 19982 19983 19984 # We look for the Boot JDK through various means, going from more certain to 19985 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19986 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19987 # must check if this is indeed valid; otherwise we'll continue looking. 19988 19989 # Test: Is bootjdk explicitely set by command line arguments? 19990 19991 if test "x$BOOT_JDK_FOUND" = xno; then 19992 # Now execute the test 19993 19994 if test "x$with_boot_jdk" != x; then 19995 BOOT_JDK=$with_boot_jdk 19996 BOOT_JDK_FOUND=maybe 19997 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19998 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19999 fi 20000 20001 20002 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20003 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20004 # Do we have a bin/java? 20005 if test ! -x "$BOOT_JDK/bin/java"; then 20006 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20007 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20008 BOOT_JDK_FOUND=no 20009 else 20010 # Do we have a bin/javac? 20011 if test ! -x "$BOOT_JDK/bin/javac"; then 20012 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20013 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20014 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20015 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20016 BOOT_JDK_FOUND=no 20017 else 20018 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20019 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20020 20021 # Extra M4 quote needed to protect [] in grep expression. 20022 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20023 if test "x$FOUND_CORRECT_VERSION" = x; then 20024 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20025 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20027 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20028 BOOT_JDK_FOUND=no 20029 else 20030 # We're done! :-) 20031 BOOT_JDK_FOUND=yes 20032 20033 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20034 20035 # Input might be given as Windows format, start by converting to 20036 # unix format. 20037 path="$BOOT_JDK" 20038 new_path=`$CYGPATH -u "$path"` 20039 20040 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20041 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20042 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20043 # "foo.exe" is OK but "foo" is an error. 20044 # 20045 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20046 # It is also a way to make sure we got the proper file name for the real test later on. 20047 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20048 if test "x$test_shortpath" = x; then 20049 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20050 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20051 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20052 fi 20053 20054 # Call helper function which possibly converts this using DOS-style short mode. 20055 # If so, the updated path is stored in $new_path. 20056 20057 input_path="$new_path" 20058 # Check if we need to convert this using DOS-style short mode. If the path 20059 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20060 # take no chances and rewrite it. 20061 # Note: m4 eats our [], so we need to use [ and ] instead. 20062 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20063 if test "x$has_forbidden_chars" != x; then 20064 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20065 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20066 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20067 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20068 # Going to short mode and back again did indeed matter. Since short mode is 20069 # case insensitive, let's make it lowercase to improve readability. 20070 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20071 # Now convert it back to Unix-stile (cygpath) 20072 input_path=`$CYGPATH -u "$shortmode_path"` 20073 new_path="$input_path" 20074 fi 20075 fi 20076 20077 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20078 if test "x$test_cygdrive_prefix" = x; then 20079 # As a simple fix, exclude /usr/bin since it's not a real path. 20080 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20081 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20082 # a path prefixed by /cygdrive for fixpath to work. 20083 new_path="$CYGWIN_ROOT_PATH$input_path" 20084 fi 20085 fi 20086 20087 20088 if test "x$path" != "x$new_path"; then 20089 BOOT_JDK="$new_path" 20090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20091 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20092 fi 20093 20094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20095 20096 path="$BOOT_JDK" 20097 has_colon=`$ECHO $path | $GREP ^.:` 20098 new_path="$path" 20099 if test "x$has_colon" = x; then 20100 # Not in mixed or Windows style, start by that. 20101 new_path=`cmd //c echo $path` 20102 fi 20103 20104 20105 input_path="$new_path" 20106 # Check if we need to convert this using DOS-style short mode. If the path 20107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20108 # take no chances and rewrite it. 20109 # Note: m4 eats our [], so we need to use [ and ] instead. 20110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20111 if test "x$has_forbidden_chars" != x; then 20112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20113 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20114 fi 20115 20116 20117 windows_path="$new_path" 20118 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20119 unix_path=`$CYGPATH -u "$windows_path"` 20120 new_path="$unix_path" 20121 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20122 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20123 new_path="$unix_path" 20124 fi 20125 20126 if test "x$path" != "x$new_path"; then 20127 BOOT_JDK="$new_path" 20128 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20129 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20130 fi 20131 20132 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20133 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20134 20135 else 20136 # We're on a unix platform. Hooray! :) 20137 path="$BOOT_JDK" 20138 has_space=`$ECHO "$path" | $GREP " "` 20139 if test "x$has_space" != x; then 20140 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20141 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20142 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20143 fi 20144 20145 # Use eval to expand a potential ~ 20146 eval path="$path" 20147 if test ! -f "$path" && test ! -d "$path"; then 20148 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20149 fi 20150 20151 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20152 fi 20153 20154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20155 $as_echo_n "checking for Boot JDK... " >&6; } 20156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20157 $as_echo "$BOOT_JDK" >&6; } 20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20159 $as_echo_n "checking Boot JDK version... " >&6; } 20160 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20162 $as_echo "$BOOT_JDK_VERSION" >&6; } 20163 fi # end check jdk version 20164 fi # end check javac 20165 fi # end check java 20166 fi # end check boot jdk found 20167 fi 20168 20169 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 20170 # Having specified an argument which is incorrect will produce an instant failure; 20171 # we should not go on looking 20172 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 20173 fi 20174 20175 # Test: Is bootjdk available from builddeps? 20176 20177 if test "x$BOOT_JDK_FOUND" = xno; then 20178 # Now execute the test 20179 20180 20181 20182 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 20183 # Source the builddeps file again, to make sure it uses the latest variables! 20184 . $builddepsfile 20185 # Look for a target and build machine specific resource! 20186 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 20187 if test "x$resource" = x; then 20188 # Ok, lets instead look for a target specific resource 20189 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 20190 fi 20191 if test "x$resource" = x; then 20192 # Ok, lets instead look for a build specific resource 20193 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 20194 fi 20195 if test "x$resource" = x; then 20196 # Ok, lets instead look for a generic resource 20197 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 20198 resource=${builddep_bootjdk} 20199 fi 20200 if test "x$resource" != x; then 20201 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 20202 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 20203 # If the resource in the builddeps.conf file is an existing directory, 20204 # for example /java/linux/cups 20205 if test -d ${resource}; then 20206 depdir=${resource} 20207 else 20208 20209 # bootjdk is for example mymodule 20210 # $resource is for example libs/general/libmymod_1_2_3.zip 20211 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 20212 # $with_builddeps_dir is for example /localhome/builddeps 20213 # depdir is the name of the variable into which we store the depdir, eg MYMOD 20214 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 20215 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 20216 filename=`basename $resource` 20217 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 20218 filebase=${filename%%.*} 20219 extension=${filename#*.} 20220 installdir=$with_builddeps_dir/$filebase 20221 if test ! -f $installdir/$filename.unpacked; then 20222 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 20223 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 20224 if test ! -d $installdir; then 20225 mkdir -p $installdir 20226 fi 20227 if test ! -d $installdir; then 20228 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 20229 fi 20230 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 20231 touch $tmpfile 20232 if test ! -f $tmpfile; then 20233 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 20234 fi 20235 20236 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 20237 # $tmpfile is the local file name for the downloaded file. 20238 VALID_TOOL=no 20239 if test "x$BDEPS_FTP" = xwget; then 20240 VALID_TOOL=yes 20241 wget -O $tmpfile $with_builddeps_server/$resource 20242 fi 20243 if test "x$BDEPS_FTP" = xlftp; then 20244 VALID_TOOL=yes 20245 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 20246 fi 20247 if test "x$BDEPS_FTP" = xftp; then 20248 VALID_TOOL=yes 20249 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 20250 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 20251 FTPUSERPWD=${FTPSERVER%%@*} 20252 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 20253 FTPUSER=${userpwd%%:*} 20254 FTPPWD=${userpwd#*@} 20255 FTPSERVER=${FTPSERVER#*@} 20256 else 20257 FTPUSER=ftp 20258 FTPPWD=ftp 20259 fi 20260 # the "pass" command does not work on some 20261 # ftp clients (read ftp.exe) but if it works, 20262 # passive mode is better! 20263 ( \ 20264 echo "user $FTPUSER $FTPPWD" ; \ 20265 echo "pass" ; \ 20266 echo "bin" ; \ 20267 echo "get $FTPPATH $tmpfile" ; \ 20268 ) | ftp -in $FTPSERVER 20269 fi 20270 if test "x$VALID_TOOL" != xyes; then 20271 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20272 fi 20273 20274 mv $tmpfile $installdir/$filename 20275 if test ! -s $installdir/$filename; then 20276 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20277 fi 20278 case "$extension" in 20279 zip) echo "Unzipping $installdir/$filename..." 20280 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20281 ;; 20282 tar.gz) echo "Untaring $installdir/$filename..." 20283 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20284 ;; 20285 tgz) echo "Untaring $installdir/$filename..." 20286 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20287 ;; 20288 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20289 ;; 20290 esac 20291 fi 20292 if test -f $installdir/$filename.unpacked; then 20293 depdir=$installdir 20294 fi 20295 20296 fi 20297 # Source the builddeps file again, because in the previous command, the depdir 20298 # was updated to point at the current build dependency install directory. 20299 . $builddepsfile 20300 # Now extract variables from the builddeps.conf files. 20301 theroot=${builddep_bootjdk_ROOT} 20302 thecflags=${builddep_bootjdk_CFLAGS} 20303 thelibs=${builddep_bootjdk_LIBS} 20304 if test "x$depdir" = x; then 20305 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20306 fi 20307 BOOT_JDK=$depdir 20308 if test "x$theroot" != x; then 20309 BOOT_JDK="$theroot" 20310 fi 20311 if test "x$thecflags" != x; then 20312 BOOT_JDK_CFLAGS="$thecflags" 20313 fi 20314 if test "x$thelibs" != x; then 20315 BOOT_JDK_LIBS="$thelibs" 20316 fi 20317 BOOT_JDK_FOUND=maybe 20318 else BOOT_JDK_FOUND=no 20319 20320 fi 20321 else BOOT_JDK_FOUND=no 20322 20323 fi 20324 20325 20326 20327 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20328 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20329 # Do we have a bin/java? 20330 if test ! -x "$BOOT_JDK/bin/java"; then 20331 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20332 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20333 BOOT_JDK_FOUND=no 20334 else 20335 # Do we have a bin/javac? 20336 if test ! -x "$BOOT_JDK/bin/javac"; then 20337 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20338 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20339 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20340 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20341 BOOT_JDK_FOUND=no 20342 else 20343 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20344 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20345 20346 # Extra M4 quote needed to protect [] in grep expression. 20347 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20348 if test "x$FOUND_CORRECT_VERSION" = x; then 20349 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20350 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20351 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20352 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20353 BOOT_JDK_FOUND=no 20354 else 20355 # We're done! :-) 20356 BOOT_JDK_FOUND=yes 20357 20358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20359 20360 # Input might be given as Windows format, start by converting to 20361 # unix format. 20362 path="$BOOT_JDK" 20363 new_path=`$CYGPATH -u "$path"` 20364 20365 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20366 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20367 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20368 # "foo.exe" is OK but "foo" is an error. 20369 # 20370 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20371 # It is also a way to make sure we got the proper file name for the real test later on. 20372 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20373 if test "x$test_shortpath" = x; then 20374 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20375 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20376 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20377 fi 20378 20379 # Call helper function which possibly converts this using DOS-style short mode. 20380 # If so, the updated path is stored in $new_path. 20381 20382 input_path="$new_path" 20383 # Check if we need to convert this using DOS-style short mode. If the path 20384 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20385 # take no chances and rewrite it. 20386 # Note: m4 eats our [], so we need to use [ and ] instead. 20387 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20388 if test "x$has_forbidden_chars" != x; then 20389 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20390 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20391 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20392 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20393 # Going to short mode and back again did indeed matter. Since short mode is 20394 # case insensitive, let's make it lowercase to improve readability. 20395 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20396 # Now convert it back to Unix-stile (cygpath) 20397 input_path=`$CYGPATH -u "$shortmode_path"` 20398 new_path="$input_path" 20399 fi 20400 fi 20401 20402 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20403 if test "x$test_cygdrive_prefix" = x; then 20404 # As a simple fix, exclude /usr/bin since it's not a real path. 20405 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20406 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20407 # a path prefixed by /cygdrive for fixpath to work. 20408 new_path="$CYGWIN_ROOT_PATH$input_path" 20409 fi 20410 fi 20411 20412 20413 if test "x$path" != "x$new_path"; then 20414 BOOT_JDK="$new_path" 20415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20416 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20417 fi 20418 20419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20420 20421 path="$BOOT_JDK" 20422 has_colon=`$ECHO $path | $GREP ^.:` 20423 new_path="$path" 20424 if test "x$has_colon" = x; then 20425 # Not in mixed or Windows style, start by that. 20426 new_path=`cmd //c echo $path` 20427 fi 20428 20429 20430 input_path="$new_path" 20431 # Check if we need to convert this using DOS-style short mode. If the path 20432 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20433 # take no chances and rewrite it. 20434 # Note: m4 eats our [], so we need to use [ and ] instead. 20435 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20436 if test "x$has_forbidden_chars" != x; then 20437 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20438 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20439 fi 20440 20441 20442 windows_path="$new_path" 20443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20444 unix_path=`$CYGPATH -u "$windows_path"` 20445 new_path="$unix_path" 20446 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20447 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20448 new_path="$unix_path" 20449 fi 20450 20451 if test "x$path" != "x$new_path"; then 20452 BOOT_JDK="$new_path" 20453 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20454 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20455 fi 20456 20457 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20458 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20459 20460 else 20461 # We're on a unix platform. Hooray! :) 20462 path="$BOOT_JDK" 20463 has_space=`$ECHO "$path" | $GREP " "` 20464 if test "x$has_space" != x; then 20465 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20466 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20467 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20468 fi 20469 20470 # Use eval to expand a potential ~ 20471 eval path="$path" 20472 if test ! -f "$path" && test ! -d "$path"; then 20473 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20474 fi 20475 20476 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20477 fi 20478 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20480 $as_echo_n "checking for Boot JDK... " >&6; } 20481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20482 $as_echo "$BOOT_JDK" >&6; } 20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20484 $as_echo_n "checking Boot JDK version... " >&6; } 20485 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20487 $as_echo "$BOOT_JDK_VERSION" >&6; } 20488 fi # end check jdk version 20489 fi # end check javac 20490 fi # end check java 20491 fi # end check boot jdk found 20492 fi 20493 20494 20495 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20496 20497 if test "x$BOOT_JDK_FOUND" = xno; then 20498 # Now execute the test 20499 20500 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20501 # First check at user selected default 20502 20503 if test "x$BOOT_JDK_FOUND" = xno; then 20504 # Now execute the test 20505 20506 if test -x /usr/libexec/java_home; then 20507 BOOT_JDK=`/usr/libexec/java_home ` 20508 BOOT_JDK_FOUND=maybe 20509 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20510 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20511 fi 20512 20513 20514 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20515 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20516 # Do we have a bin/java? 20517 if test ! -x "$BOOT_JDK/bin/java"; then 20518 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20519 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20520 BOOT_JDK_FOUND=no 20521 else 20522 # Do we have a bin/javac? 20523 if test ! -x "$BOOT_JDK/bin/javac"; then 20524 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20525 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20526 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20527 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20528 BOOT_JDK_FOUND=no 20529 else 20530 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20531 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20532 20533 # Extra M4 quote needed to protect [] in grep expression. 20534 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20535 if test "x$FOUND_CORRECT_VERSION" = x; then 20536 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20538 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20539 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20540 BOOT_JDK_FOUND=no 20541 else 20542 # We're done! :-) 20543 BOOT_JDK_FOUND=yes 20544 20545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20546 20547 # Input might be given as Windows format, start by converting to 20548 # unix format. 20549 path="$BOOT_JDK" 20550 new_path=`$CYGPATH -u "$path"` 20551 20552 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20553 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20554 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20555 # "foo.exe" is OK but "foo" is an error. 20556 # 20557 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20558 # It is also a way to make sure we got the proper file name for the real test later on. 20559 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20560 if test "x$test_shortpath" = x; then 20561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20562 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20563 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20564 fi 20565 20566 # Call helper function which possibly converts this using DOS-style short mode. 20567 # If so, the updated path is stored in $new_path. 20568 20569 input_path="$new_path" 20570 # Check if we need to convert this using DOS-style short mode. If the path 20571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20572 # take no chances and rewrite it. 20573 # Note: m4 eats our [], so we need to use [ and ] instead. 20574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20575 if test "x$has_forbidden_chars" != x; then 20576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20577 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20578 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20579 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20580 # Going to short mode and back again did indeed matter. Since short mode is 20581 # case insensitive, let's make it lowercase to improve readability. 20582 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20583 # Now convert it back to Unix-stile (cygpath) 20584 input_path=`$CYGPATH -u "$shortmode_path"` 20585 new_path="$input_path" 20586 fi 20587 fi 20588 20589 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20590 if test "x$test_cygdrive_prefix" = x; then 20591 # As a simple fix, exclude /usr/bin since it's not a real path. 20592 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20593 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20594 # a path prefixed by /cygdrive for fixpath to work. 20595 new_path="$CYGWIN_ROOT_PATH$input_path" 20596 fi 20597 fi 20598 20599 20600 if test "x$path" != "x$new_path"; then 20601 BOOT_JDK="$new_path" 20602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20603 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20604 fi 20605 20606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20607 20608 path="$BOOT_JDK" 20609 has_colon=`$ECHO $path | $GREP ^.:` 20610 new_path="$path" 20611 if test "x$has_colon" = x; then 20612 # Not in mixed or Windows style, start by that. 20613 new_path=`cmd //c echo $path` 20614 fi 20615 20616 20617 input_path="$new_path" 20618 # Check if we need to convert this using DOS-style short mode. If the path 20619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20620 # take no chances and rewrite it. 20621 # Note: m4 eats our [], so we need to use [ and ] instead. 20622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20623 if test "x$has_forbidden_chars" != x; then 20624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20626 fi 20627 20628 20629 windows_path="$new_path" 20630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20631 unix_path=`$CYGPATH -u "$windows_path"` 20632 new_path="$unix_path" 20633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20635 new_path="$unix_path" 20636 fi 20637 20638 if test "x$path" != "x$new_path"; then 20639 BOOT_JDK="$new_path" 20640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20641 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20642 fi 20643 20644 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20645 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20646 20647 else 20648 # We're on a unix platform. Hooray! :) 20649 path="$BOOT_JDK" 20650 has_space=`$ECHO "$path" | $GREP " "` 20651 if test "x$has_space" != x; then 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20653 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20654 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20655 fi 20656 20657 # Use eval to expand a potential ~ 20658 eval path="$path" 20659 if test ! -f "$path" && test ! -d "$path"; then 20660 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20661 fi 20662 20663 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20664 fi 20665 20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20667 $as_echo_n "checking for Boot JDK... " >&6; } 20668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20669 $as_echo "$BOOT_JDK" >&6; } 20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20671 $as_echo_n "checking Boot JDK version... " >&6; } 20672 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20674 $as_echo "$BOOT_JDK_VERSION" >&6; } 20675 fi # end check jdk version 20676 fi # end check javac 20677 fi # end check java 20678 fi # end check boot jdk found 20679 fi 20680 20681 # If that did not work out (e.g. too old), try explicit versions instead 20682 20683 if test "x$BOOT_JDK_FOUND" = xno; then 20684 # Now execute the test 20685 20686 if test -x /usr/libexec/java_home; then 20687 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20688 BOOT_JDK_FOUND=maybe 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20690 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20691 fi 20692 20693 20694 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20695 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20696 # Do we have a bin/java? 20697 if test ! -x "$BOOT_JDK/bin/java"; then 20698 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20700 BOOT_JDK_FOUND=no 20701 else 20702 # Do we have a bin/javac? 20703 if test ! -x "$BOOT_JDK/bin/javac"; then 20704 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20705 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20706 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20707 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20708 BOOT_JDK_FOUND=no 20709 else 20710 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20711 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20712 20713 # Extra M4 quote needed to protect [] in grep expression. 20714 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20715 if test "x$FOUND_CORRECT_VERSION" = x; then 20716 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20719 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20720 BOOT_JDK_FOUND=no 20721 else 20722 # We're done! :-) 20723 BOOT_JDK_FOUND=yes 20724 20725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20726 20727 # Input might be given as Windows format, start by converting to 20728 # unix format. 20729 path="$BOOT_JDK" 20730 new_path=`$CYGPATH -u "$path"` 20731 20732 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20733 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20734 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20735 # "foo.exe" is OK but "foo" is an error. 20736 # 20737 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20738 # It is also a way to make sure we got the proper file name for the real test later on. 20739 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20740 if test "x$test_shortpath" = x; then 20741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20742 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20743 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20744 fi 20745 20746 # Call helper function which possibly converts this using DOS-style short mode. 20747 # If so, the updated path is stored in $new_path. 20748 20749 input_path="$new_path" 20750 # Check if we need to convert this using DOS-style short mode. If the path 20751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20752 # take no chances and rewrite it. 20753 # Note: m4 eats our [], so we need to use [ and ] instead. 20754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20755 if test "x$has_forbidden_chars" != x; then 20756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20757 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20758 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20759 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20760 # Going to short mode and back again did indeed matter. Since short mode is 20761 # case insensitive, let's make it lowercase to improve readability. 20762 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20763 # Now convert it back to Unix-stile (cygpath) 20764 input_path=`$CYGPATH -u "$shortmode_path"` 20765 new_path="$input_path" 20766 fi 20767 fi 20768 20769 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20770 if test "x$test_cygdrive_prefix" = x; then 20771 # As a simple fix, exclude /usr/bin since it's not a real path. 20772 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20773 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20774 # a path prefixed by /cygdrive for fixpath to work. 20775 new_path="$CYGWIN_ROOT_PATH$input_path" 20776 fi 20777 fi 20778 20779 20780 if test "x$path" != "x$new_path"; then 20781 BOOT_JDK="$new_path" 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20783 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20784 fi 20785 20786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20787 20788 path="$BOOT_JDK" 20789 has_colon=`$ECHO $path | $GREP ^.:` 20790 new_path="$path" 20791 if test "x$has_colon" = x; then 20792 # Not in mixed or Windows style, start by that. 20793 new_path=`cmd //c echo $path` 20794 fi 20795 20796 20797 input_path="$new_path" 20798 # Check if we need to convert this using DOS-style short mode. If the path 20799 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20800 # take no chances and rewrite it. 20801 # Note: m4 eats our [], so we need to use [ and ] instead. 20802 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20803 if test "x$has_forbidden_chars" != x; then 20804 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20805 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20806 fi 20807 20808 20809 windows_path="$new_path" 20810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20811 unix_path=`$CYGPATH -u "$windows_path"` 20812 new_path="$unix_path" 20813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20815 new_path="$unix_path" 20816 fi 20817 20818 if test "x$path" != "x$new_path"; then 20819 BOOT_JDK="$new_path" 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20821 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20822 fi 20823 20824 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20825 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20826 20827 else 20828 # We're on a unix platform. Hooray! :) 20829 path="$BOOT_JDK" 20830 has_space=`$ECHO "$path" | $GREP " "` 20831 if test "x$has_space" != x; then 20832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20833 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20834 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20835 fi 20836 20837 # Use eval to expand a potential ~ 20838 eval path="$path" 20839 if test ! -f "$path" && test ! -d "$path"; then 20840 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20841 fi 20842 20843 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20844 fi 20845 20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20847 $as_echo_n "checking for Boot JDK... " >&6; } 20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20849 $as_echo "$BOOT_JDK" >&6; } 20850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20851 $as_echo_n "checking Boot JDK version... " >&6; } 20852 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20854 $as_echo "$BOOT_JDK_VERSION" >&6; } 20855 fi # end check jdk version 20856 fi # end check javac 20857 fi # end check java 20858 fi # end check boot jdk found 20859 fi 20860 20861 20862 if test "x$BOOT_JDK_FOUND" = xno; then 20863 # Now execute the test 20864 20865 if test -x /usr/libexec/java_home; then 20866 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20867 BOOT_JDK_FOUND=maybe 20868 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20869 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20870 fi 20871 20872 20873 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20874 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20875 # Do we have a bin/java? 20876 if test ! -x "$BOOT_JDK/bin/java"; then 20877 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20878 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20879 BOOT_JDK_FOUND=no 20880 else 20881 # Do we have a bin/javac? 20882 if test ! -x "$BOOT_JDK/bin/javac"; then 20883 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20884 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20885 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20886 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20887 BOOT_JDK_FOUND=no 20888 else 20889 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20890 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20891 20892 # Extra M4 quote needed to protect [] in grep expression. 20893 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 20894 if test "x$FOUND_CORRECT_VERSION" = x; then 20895 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20896 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20897 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 20898 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 20899 BOOT_JDK_FOUND=no 20900 else 20901 # We're done! :-) 20902 BOOT_JDK_FOUND=yes 20903 20904 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20905 20906 # Input might be given as Windows format, start by converting to 20907 # unix format. 20908 path="$BOOT_JDK" 20909 new_path=`$CYGPATH -u "$path"` 20910 20911 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20912 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20913 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20914 # "foo.exe" is OK but "foo" is an error. 20915 # 20916 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20917 # It is also a way to make sure we got the proper file name for the real test later on. 20918 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20919 if test "x$test_shortpath" = x; then 20920 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20921 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20922 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20923 fi 20924 20925 # Call helper function which possibly converts this using DOS-style short mode. 20926 # If so, the updated path is stored in $new_path. 20927 20928 input_path="$new_path" 20929 # Check if we need to convert this using DOS-style short mode. If the path 20930 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20931 # take no chances and rewrite it. 20932 # Note: m4 eats our [], so we need to use [ and ] instead. 20933 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20934 if test "x$has_forbidden_chars" != x; then 20935 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20936 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20937 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20938 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20939 # Going to short mode and back again did indeed matter. Since short mode is 20940 # case insensitive, let's make it lowercase to improve readability. 20941 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20942 # Now convert it back to Unix-stile (cygpath) 20943 input_path=`$CYGPATH -u "$shortmode_path"` 20944 new_path="$input_path" 20945 fi 20946 fi 20947 20948 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20949 if test "x$test_cygdrive_prefix" = x; then 20950 # As a simple fix, exclude /usr/bin since it's not a real path. 20951 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20952 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20953 # a path prefixed by /cygdrive for fixpath to work. 20954 new_path="$CYGWIN_ROOT_PATH$input_path" 20955 fi 20956 fi 20957 20958 20959 if test "x$path" != "x$new_path"; then 20960 BOOT_JDK="$new_path" 20961 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20962 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20963 fi 20964 20965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20966 20967 path="$BOOT_JDK" 20968 has_colon=`$ECHO $path | $GREP ^.:` 20969 new_path="$path" 20970 if test "x$has_colon" = x; then 20971 # Not in mixed or Windows style, start by that. 20972 new_path=`cmd //c echo $path` 20973 fi 20974 20975 20976 input_path="$new_path" 20977 # Check if we need to convert this using DOS-style short mode. If the path 20978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20979 # take no chances and rewrite it. 20980 # Note: m4 eats our [], so we need to use [ and ] instead. 20981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20982 if test "x$has_forbidden_chars" != x; then 20983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20984 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20985 fi 20986 20987 20988 windows_path="$new_path" 20989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20990 unix_path=`$CYGPATH -u "$windows_path"` 20991 new_path="$unix_path" 20992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20994 new_path="$unix_path" 20995 fi 20996 20997 if test "x$path" != "x$new_path"; then 20998 BOOT_JDK="$new_path" 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21000 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21001 fi 21002 21003 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21004 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21005 21006 else 21007 # We're on a unix platform. Hooray! :) 21008 path="$BOOT_JDK" 21009 has_space=`$ECHO "$path" | $GREP " "` 21010 if test "x$has_space" != x; then 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21012 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21013 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21014 fi 21015 21016 # Use eval to expand a potential ~ 21017 eval path="$path" 21018 if test ! -f "$path" && test ! -d "$path"; then 21019 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21020 fi 21021 21022 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21023 fi 21024 21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21026 $as_echo_n "checking for Boot JDK... " >&6; } 21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21028 $as_echo "$BOOT_JDK" >&6; } 21029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21030 $as_echo_n "checking Boot JDK version... " >&6; } 21031 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21033 $as_echo "$BOOT_JDK_VERSION" >&6; } 21034 fi # end check jdk version 21035 fi # end check javac 21036 fi # end check java 21037 fi # end check boot jdk found 21038 fi 21039 21040 21041 if test "x$BOOT_JDK_FOUND" = xno; then 21042 # Now execute the test 21043 21044 if test -x /usr/libexec/java_home; then 21045 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 21046 BOOT_JDK_FOUND=maybe 21047 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 21048 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 21049 fi 21050 21051 21052 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21053 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21054 # Do we have a bin/java? 21055 if test ! -x "$BOOT_JDK/bin/java"; then 21056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21058 BOOT_JDK_FOUND=no 21059 else 21060 # Do we have a bin/javac? 21061 if test ! -x "$BOOT_JDK/bin/javac"; then 21062 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21063 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21064 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21065 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21066 BOOT_JDK_FOUND=no 21067 else 21068 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21069 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21070 21071 # Extra M4 quote needed to protect [] in grep expression. 21072 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21073 if test "x$FOUND_CORRECT_VERSION" = x; then 21074 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21075 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21076 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21077 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21078 BOOT_JDK_FOUND=no 21079 else 21080 # We're done! :-) 21081 BOOT_JDK_FOUND=yes 21082 21083 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21084 21085 # Input might be given as Windows format, start by converting to 21086 # unix format. 21087 path="$BOOT_JDK" 21088 new_path=`$CYGPATH -u "$path"` 21089 21090 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21091 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21092 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21093 # "foo.exe" is OK but "foo" is an error. 21094 # 21095 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21096 # It is also a way to make sure we got the proper file name for the real test later on. 21097 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21098 if test "x$test_shortpath" = x; then 21099 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21100 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21101 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21102 fi 21103 21104 # Call helper function which possibly converts this using DOS-style short mode. 21105 # If so, the updated path is stored in $new_path. 21106 21107 input_path="$new_path" 21108 # Check if we need to convert this using DOS-style short mode. If the path 21109 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21110 # take no chances and rewrite it. 21111 # Note: m4 eats our [], so we need to use [ and ] instead. 21112 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21113 if test "x$has_forbidden_chars" != x; then 21114 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21115 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21116 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21117 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21118 # Going to short mode and back again did indeed matter. Since short mode is 21119 # case insensitive, let's make it lowercase to improve readability. 21120 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21121 # Now convert it back to Unix-stile (cygpath) 21122 input_path=`$CYGPATH -u "$shortmode_path"` 21123 new_path="$input_path" 21124 fi 21125 fi 21126 21127 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21128 if test "x$test_cygdrive_prefix" = x; then 21129 # As a simple fix, exclude /usr/bin since it's not a real path. 21130 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21131 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21132 # a path prefixed by /cygdrive for fixpath to work. 21133 new_path="$CYGWIN_ROOT_PATH$input_path" 21134 fi 21135 fi 21136 21137 21138 if test "x$path" != "x$new_path"; then 21139 BOOT_JDK="$new_path" 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21141 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21142 fi 21143 21144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21145 21146 path="$BOOT_JDK" 21147 has_colon=`$ECHO $path | $GREP ^.:` 21148 new_path="$path" 21149 if test "x$has_colon" = x; then 21150 # Not in mixed or Windows style, start by that. 21151 new_path=`cmd //c echo $path` 21152 fi 21153 21154 21155 input_path="$new_path" 21156 # Check if we need to convert this using DOS-style short mode. If the path 21157 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21158 # take no chances and rewrite it. 21159 # Note: m4 eats our [], so we need to use [ and ] instead. 21160 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21161 if test "x$has_forbidden_chars" != x; then 21162 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21163 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21164 fi 21165 21166 21167 windows_path="$new_path" 21168 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21169 unix_path=`$CYGPATH -u "$windows_path"` 21170 new_path="$unix_path" 21171 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21172 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21173 new_path="$unix_path" 21174 fi 21175 21176 if test "x$path" != "x$new_path"; then 21177 BOOT_JDK="$new_path" 21178 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21179 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21180 fi 21181 21182 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21183 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21184 21185 else 21186 # We're on a unix platform. Hooray! :) 21187 path="$BOOT_JDK" 21188 has_space=`$ECHO "$path" | $GREP " "` 21189 if test "x$has_space" != x; then 21190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21191 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21192 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21193 fi 21194 21195 # Use eval to expand a potential ~ 21196 eval path="$path" 21197 if test ! -f "$path" && test ! -d "$path"; then 21198 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21199 fi 21200 21201 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21202 fi 21203 21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21205 $as_echo_n "checking for Boot JDK... " >&6; } 21206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21207 $as_echo "$BOOT_JDK" >&6; } 21208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21209 $as_echo_n "checking Boot JDK version... " >&6; } 21210 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21212 $as_echo "$BOOT_JDK_VERSION" >&6; } 21213 fi # end check jdk version 21214 fi # end check javac 21215 fi # end check java 21216 fi # end check boot jdk found 21217 fi 21218 21219 fi 21220 21221 21222 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21223 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21224 # Do we have a bin/java? 21225 if test ! -x "$BOOT_JDK/bin/java"; then 21226 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21227 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21228 BOOT_JDK_FOUND=no 21229 else 21230 # Do we have a bin/javac? 21231 if test ! -x "$BOOT_JDK/bin/javac"; then 21232 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21233 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21234 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21235 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21236 BOOT_JDK_FOUND=no 21237 else 21238 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21239 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21240 21241 # Extra M4 quote needed to protect [] in grep expression. 21242 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21243 if test "x$FOUND_CORRECT_VERSION" = x; then 21244 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21245 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21246 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21247 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21248 BOOT_JDK_FOUND=no 21249 else 21250 # We're done! :-) 21251 BOOT_JDK_FOUND=yes 21252 21253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21254 21255 # Input might be given as Windows format, start by converting to 21256 # unix format. 21257 path="$BOOT_JDK" 21258 new_path=`$CYGPATH -u "$path"` 21259 21260 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21261 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21262 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21263 # "foo.exe" is OK but "foo" is an error. 21264 # 21265 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21266 # It is also a way to make sure we got the proper file name for the real test later on. 21267 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21268 if test "x$test_shortpath" = x; then 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21270 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21271 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21272 fi 21273 21274 # Call helper function which possibly converts this using DOS-style short mode. 21275 # If so, the updated path is stored in $new_path. 21276 21277 input_path="$new_path" 21278 # Check if we need to convert this using DOS-style short mode. If the path 21279 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21280 # take no chances and rewrite it. 21281 # Note: m4 eats our [], so we need to use [ and ] instead. 21282 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21283 if test "x$has_forbidden_chars" != x; then 21284 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21285 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21286 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21287 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21288 # Going to short mode and back again did indeed matter. Since short mode is 21289 # case insensitive, let's make it lowercase to improve readability. 21290 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21291 # Now convert it back to Unix-stile (cygpath) 21292 input_path=`$CYGPATH -u "$shortmode_path"` 21293 new_path="$input_path" 21294 fi 21295 fi 21296 21297 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21298 if test "x$test_cygdrive_prefix" = x; then 21299 # As a simple fix, exclude /usr/bin since it's not a real path. 21300 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21301 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21302 # a path prefixed by /cygdrive for fixpath to work. 21303 new_path="$CYGWIN_ROOT_PATH$input_path" 21304 fi 21305 fi 21306 21307 21308 if test "x$path" != "x$new_path"; then 21309 BOOT_JDK="$new_path" 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21311 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21312 fi 21313 21314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21315 21316 path="$BOOT_JDK" 21317 has_colon=`$ECHO $path | $GREP ^.:` 21318 new_path="$path" 21319 if test "x$has_colon" = x; then 21320 # Not in mixed or Windows style, start by that. 21321 new_path=`cmd //c echo $path` 21322 fi 21323 21324 21325 input_path="$new_path" 21326 # Check if we need to convert this using DOS-style short mode. If the path 21327 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21328 # take no chances and rewrite it. 21329 # Note: m4 eats our [], so we need to use [ and ] instead. 21330 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21331 if test "x$has_forbidden_chars" != x; then 21332 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21333 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21334 fi 21335 21336 21337 windows_path="$new_path" 21338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21339 unix_path=`$CYGPATH -u "$windows_path"` 21340 new_path="$unix_path" 21341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21343 new_path="$unix_path" 21344 fi 21345 21346 if test "x$path" != "x$new_path"; then 21347 BOOT_JDK="$new_path" 21348 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21349 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21350 fi 21351 21352 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21353 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21354 21355 else 21356 # We're on a unix platform. Hooray! :) 21357 path="$BOOT_JDK" 21358 has_space=`$ECHO "$path" | $GREP " "` 21359 if test "x$has_space" != x; then 21360 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21361 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21362 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21363 fi 21364 21365 # Use eval to expand a potential ~ 21366 eval path="$path" 21367 if test ! -f "$path" && test ! -d "$path"; then 21368 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21369 fi 21370 21371 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21372 fi 21373 21374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21375 $as_echo_n "checking for Boot JDK... " >&6; } 21376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21377 $as_echo "$BOOT_JDK" >&6; } 21378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21379 $as_echo_n "checking Boot JDK version... " >&6; } 21380 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21382 $as_echo "$BOOT_JDK_VERSION" >&6; } 21383 fi # end check jdk version 21384 fi # end check javac 21385 fi # end check java 21386 fi # end check boot jdk found 21387 fi 21388 21389 21390 # Test: Is $JAVA_HOME set? 21391 21392 if test "x$BOOT_JDK_FOUND" = xno; then 21393 # Now execute the test 21394 21395 if test "x$JAVA_HOME" != x; then 21396 JAVA_HOME_PROCESSED="$JAVA_HOME" 21397 21398 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21399 21400 # Input might be given as Windows format, start by converting to 21401 # unix format. 21402 path="$JAVA_HOME_PROCESSED" 21403 new_path=`$CYGPATH -u "$path"` 21404 21405 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21406 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21407 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21408 # "foo.exe" is OK but "foo" is an error. 21409 # 21410 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21411 # It is also a way to make sure we got the proper file name for the real test later on. 21412 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21413 if test "x$test_shortpath" = x; then 21414 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21415 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21416 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21417 fi 21418 21419 # Call helper function which possibly converts this using DOS-style short mode. 21420 # If so, the updated path is stored in $new_path. 21421 21422 input_path="$new_path" 21423 # Check if we need to convert this using DOS-style short mode. If the path 21424 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21425 # take no chances and rewrite it. 21426 # Note: m4 eats our [], so we need to use [ and ] instead. 21427 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21428 if test "x$has_forbidden_chars" != x; then 21429 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21430 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21431 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21432 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21433 # Going to short mode and back again did indeed matter. Since short mode is 21434 # case insensitive, let's make it lowercase to improve readability. 21435 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21436 # Now convert it back to Unix-stile (cygpath) 21437 input_path=`$CYGPATH -u "$shortmode_path"` 21438 new_path="$input_path" 21439 fi 21440 fi 21441 21442 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21443 if test "x$test_cygdrive_prefix" = x; then 21444 # As a simple fix, exclude /usr/bin since it's not a real path. 21445 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21446 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21447 # a path prefixed by /cygdrive for fixpath to work. 21448 new_path="$CYGWIN_ROOT_PATH$input_path" 21449 fi 21450 fi 21451 21452 21453 if test "x$path" != "x$new_path"; then 21454 JAVA_HOME_PROCESSED="$new_path" 21455 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21456 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21457 fi 21458 21459 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21460 21461 path="$JAVA_HOME_PROCESSED" 21462 has_colon=`$ECHO $path | $GREP ^.:` 21463 new_path="$path" 21464 if test "x$has_colon" = x; then 21465 # Not in mixed or Windows style, start by that. 21466 new_path=`cmd //c echo $path` 21467 fi 21468 21469 21470 input_path="$new_path" 21471 # Check if we need to convert this using DOS-style short mode. If the path 21472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21473 # take no chances and rewrite it. 21474 # Note: m4 eats our [], so we need to use [ and ] instead. 21475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21476 if test "x$has_forbidden_chars" != x; then 21477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21478 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21479 fi 21480 21481 21482 windows_path="$new_path" 21483 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21484 unix_path=`$CYGPATH -u "$windows_path"` 21485 new_path="$unix_path" 21486 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21487 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21488 new_path="$unix_path" 21489 fi 21490 21491 if test "x$path" != "x$new_path"; then 21492 JAVA_HOME_PROCESSED="$new_path" 21493 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21494 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21495 fi 21496 21497 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21498 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21499 21500 else 21501 # We're on a unix platform. Hooray! :) 21502 path="$JAVA_HOME_PROCESSED" 21503 has_space=`$ECHO "$path" | $GREP " "` 21504 if test "x$has_space" != x; then 21505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21506 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21507 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21508 fi 21509 21510 # Use eval to expand a potential ~ 21511 eval path="$path" 21512 if test ! -f "$path" && test ! -d "$path"; then 21513 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21514 fi 21515 21516 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21517 fi 21518 21519 if test ! -d "$JAVA_HOME_PROCESSED"; then 21520 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21521 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21522 else 21523 # Aha, the user has set a JAVA_HOME 21524 # let us use that as the Boot JDK. 21525 BOOT_JDK="$JAVA_HOME_PROCESSED" 21526 BOOT_JDK_FOUND=maybe 21527 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21528 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21529 fi 21530 fi 21531 21532 21533 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21534 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21535 # Do we have a bin/java? 21536 if test ! -x "$BOOT_JDK/bin/java"; then 21537 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21538 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21539 BOOT_JDK_FOUND=no 21540 else 21541 # Do we have a bin/javac? 21542 if test ! -x "$BOOT_JDK/bin/javac"; then 21543 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21544 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21545 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21546 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21547 BOOT_JDK_FOUND=no 21548 else 21549 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21550 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21551 21552 # Extra M4 quote needed to protect [] in grep expression. 21553 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21554 if test "x$FOUND_CORRECT_VERSION" = x; then 21555 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21558 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21559 BOOT_JDK_FOUND=no 21560 else 21561 # We're done! :-) 21562 BOOT_JDK_FOUND=yes 21563 21564 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21565 21566 # Input might be given as Windows format, start by converting to 21567 # unix format. 21568 path="$BOOT_JDK" 21569 new_path=`$CYGPATH -u "$path"` 21570 21571 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21572 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21573 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21574 # "foo.exe" is OK but "foo" is an error. 21575 # 21576 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21577 # It is also a way to make sure we got the proper file name for the real test later on. 21578 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21579 if test "x$test_shortpath" = x; then 21580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21581 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21582 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21583 fi 21584 21585 # Call helper function which possibly converts this using DOS-style short mode. 21586 # If so, the updated path is stored in $new_path. 21587 21588 input_path="$new_path" 21589 # Check if we need to convert this using DOS-style short mode. If the path 21590 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21591 # take no chances and rewrite it. 21592 # Note: m4 eats our [], so we need to use [ and ] instead. 21593 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21594 if test "x$has_forbidden_chars" != x; then 21595 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21596 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21597 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21598 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21599 # Going to short mode and back again did indeed matter. Since short mode is 21600 # case insensitive, let's make it lowercase to improve readability. 21601 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21602 # Now convert it back to Unix-stile (cygpath) 21603 input_path=`$CYGPATH -u "$shortmode_path"` 21604 new_path="$input_path" 21605 fi 21606 fi 21607 21608 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21609 if test "x$test_cygdrive_prefix" = x; then 21610 # As a simple fix, exclude /usr/bin since it's not a real path. 21611 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21612 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21613 # a path prefixed by /cygdrive for fixpath to work. 21614 new_path="$CYGWIN_ROOT_PATH$input_path" 21615 fi 21616 fi 21617 21618 21619 if test "x$path" != "x$new_path"; then 21620 BOOT_JDK="$new_path" 21621 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21622 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21623 fi 21624 21625 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21626 21627 path="$BOOT_JDK" 21628 has_colon=`$ECHO $path | $GREP ^.:` 21629 new_path="$path" 21630 if test "x$has_colon" = x; then 21631 # Not in mixed or Windows style, start by that. 21632 new_path=`cmd //c echo $path` 21633 fi 21634 21635 21636 input_path="$new_path" 21637 # Check if we need to convert this using DOS-style short mode. If the path 21638 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21639 # take no chances and rewrite it. 21640 # Note: m4 eats our [], so we need to use [ and ] instead. 21641 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21642 if test "x$has_forbidden_chars" != x; then 21643 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21644 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21645 fi 21646 21647 21648 windows_path="$new_path" 21649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21650 unix_path=`$CYGPATH -u "$windows_path"` 21651 new_path="$unix_path" 21652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21653 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21654 new_path="$unix_path" 21655 fi 21656 21657 if test "x$path" != "x$new_path"; then 21658 BOOT_JDK="$new_path" 21659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21660 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21661 fi 21662 21663 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21664 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21665 21666 else 21667 # We're on a unix platform. Hooray! :) 21668 path="$BOOT_JDK" 21669 has_space=`$ECHO "$path" | $GREP " "` 21670 if test "x$has_space" != x; then 21671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21672 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21673 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21674 fi 21675 21676 # Use eval to expand a potential ~ 21677 eval path="$path" 21678 if test ! -f "$path" && test ! -d "$path"; then 21679 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21680 fi 21681 21682 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21683 fi 21684 21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21686 $as_echo_n "checking for Boot JDK... " >&6; } 21687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21688 $as_echo "$BOOT_JDK" >&6; } 21689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21690 $as_echo_n "checking Boot JDK version... " >&6; } 21691 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21693 $as_echo "$BOOT_JDK_VERSION" >&6; } 21694 fi # end check jdk version 21695 fi # end check javac 21696 fi # end check java 21697 fi # end check boot jdk found 21698 fi 21699 21700 21701 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21702 21703 if test "x$BOOT_JDK_FOUND" = xno; then 21704 # Now execute the test 21705 21706 # Extract the first word of "javac", so it can be a program name with args. 21707 set dummy javac; ac_word=$2 21708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21709 $as_echo_n "checking for $ac_word... " >&6; } 21710 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21711 $as_echo_n "(cached) " >&6 21712 else 21713 case $JAVAC_CHECK in 21714 [\\/]* | ?:[\\/]*) 21715 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21716 ;; 21717 *) 21718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21719 for as_dir in $PATH 21720 do 21721 IFS=$as_save_IFS 21722 test -z "$as_dir" && as_dir=. 21723 for ac_exec_ext in '' $ac_executable_extensions; do 21724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21725 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21727 break 2 21728 fi 21729 done 21730 done 21731 IFS=$as_save_IFS 21732 21733 ;; 21734 esac 21735 fi 21736 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21737 if test -n "$JAVAC_CHECK"; then 21738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21739 $as_echo "$JAVAC_CHECK" >&6; } 21740 else 21741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21742 $as_echo "no" >&6; } 21743 fi 21744 21745 21746 # Extract the first word of "java", so it can be a program name with args. 21747 set dummy java; ac_word=$2 21748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21749 $as_echo_n "checking for $ac_word... " >&6; } 21750 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21751 $as_echo_n "(cached) " >&6 21752 else 21753 case $JAVA_CHECK in 21754 [\\/]* | ?:[\\/]*) 21755 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21756 ;; 21757 *) 21758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21759 for as_dir in $PATH 21760 do 21761 IFS=$as_save_IFS 21762 test -z "$as_dir" && as_dir=. 21763 for ac_exec_ext in '' $ac_executable_extensions; do 21764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21765 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21767 break 2 21768 fi 21769 done 21770 done 21771 IFS=$as_save_IFS 21772 21773 ;; 21774 esac 21775 fi 21776 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21777 if test -n "$JAVA_CHECK"; then 21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21779 $as_echo "$JAVA_CHECK" >&6; } 21780 else 21781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21782 $as_echo "no" >&6; } 21783 fi 21784 21785 21786 BINARY="$JAVAC_CHECK" 21787 if test "x$JAVAC_CHECK" = x; then 21788 BINARY="$JAVA_CHECK" 21789 fi 21790 if test "x$BINARY" != x; then 21791 # So there is a java(c) binary, it might be part of a JDK. 21792 # Lets find the JDK/JRE directory by following symbolic links. 21793 # Linux/GNU systems often have links from /usr/bin/java to 21794 # /etc/alternatives/java to the real JDK binary. 21795 21796 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21797 # Follow a chain of symbolic links. Use readlink 21798 # where it exists, else fall back to horribly 21799 # complicated shell code. 21800 if test "x$READLINK_TESTED" != yes; then 21801 # On MacOSX there is a readlink tool with a different 21802 # purpose than the GNU readlink tool. Check the found readlink. 21803 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21804 if test "x$ISGNU" = x; then 21805 # A readlink that we do not know how to use. 21806 # Are there other non-GNU readlinks out there? 21807 READLINK_TESTED=yes 21808 READLINK= 21809 fi 21810 fi 21811 21812 if test "x$READLINK" != x; then 21813 BINARY=`$READLINK -f $BINARY` 21814 else 21815 # Save the current directory for restoring afterwards 21816 STARTDIR=$PWD 21817 COUNTER=0 21818 sym_link_dir=`$DIRNAME $BINARY` 21819 sym_link_file=`$BASENAME $BINARY` 21820 cd $sym_link_dir 21821 # Use -P flag to resolve symlinks in directories. 21822 cd `$THEPWDCMD -P` 21823 sym_link_dir=`$THEPWDCMD -P` 21824 # Resolve file symlinks 21825 while test $COUNTER -lt 20; do 21826 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21827 if test "x$ISLINK" == x; then 21828 # This is not a symbolic link! We are done! 21829 break 21830 fi 21831 # Again resolve directory symlinks since the target of the just found 21832 # link could be in a different directory 21833 cd `$DIRNAME $ISLINK` 21834 sym_link_dir=`$THEPWDCMD -P` 21835 sym_link_file=`$BASENAME $ISLINK` 21836 let COUNTER=COUNTER+1 21837 done 21838 cd $STARTDIR 21839 BINARY=$sym_link_dir/$sym_link_file 21840 fi 21841 fi 21842 21843 BOOT_JDK=`dirname "$BINARY"` 21844 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21845 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21846 # Looks like we found ourselves an JDK 21847 BOOT_JDK_FOUND=maybe 21848 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21849 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21850 fi 21851 fi 21852 21853 21854 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21855 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21856 # Do we have a bin/java? 21857 if test ! -x "$BOOT_JDK/bin/java"; then 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21860 BOOT_JDK_FOUND=no 21861 else 21862 # Do we have a bin/javac? 21863 if test ! -x "$BOOT_JDK/bin/javac"; then 21864 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21865 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21867 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21868 BOOT_JDK_FOUND=no 21869 else 21870 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21872 21873 # Extra M4 quote needed to protect [] in grep expression. 21874 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 21875 if test "x$FOUND_CORRECT_VERSION" = x; then 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 21879 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 21880 BOOT_JDK_FOUND=no 21881 else 21882 # We're done! :-) 21883 BOOT_JDK_FOUND=yes 21884 21885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21886 21887 # Input might be given as Windows format, start by converting to 21888 # unix format. 21889 path="$BOOT_JDK" 21890 new_path=`$CYGPATH -u "$path"` 21891 21892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21895 # "foo.exe" is OK but "foo" is an error. 21896 # 21897 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21898 # It is also a way to make sure we got the proper file name for the real test later on. 21899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21900 if test "x$test_shortpath" = x; then 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21902 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21903 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21904 fi 21905 21906 # Call helper function which possibly converts this using DOS-style short mode. 21907 # If so, the updated path is stored in $new_path. 21908 21909 input_path="$new_path" 21910 # Check if we need to convert this using DOS-style short mode. If the path 21911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21912 # take no chances and rewrite it. 21913 # Note: m4 eats our [], so we need to use [ and ] instead. 21914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21915 if test "x$has_forbidden_chars" != x; then 21916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21920 # Going to short mode and back again did indeed matter. Since short mode is 21921 # case insensitive, let's make it lowercase to improve readability. 21922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21923 # Now convert it back to Unix-stile (cygpath) 21924 input_path=`$CYGPATH -u "$shortmode_path"` 21925 new_path="$input_path" 21926 fi 21927 fi 21928 21929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21930 if test "x$test_cygdrive_prefix" = x; then 21931 # As a simple fix, exclude /usr/bin since it's not a real path. 21932 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21934 # a path prefixed by /cygdrive for fixpath to work. 21935 new_path="$CYGWIN_ROOT_PATH$input_path" 21936 fi 21937 fi 21938 21939 21940 if test "x$path" != "x$new_path"; then 21941 BOOT_JDK="$new_path" 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21944 fi 21945 21946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21947 21948 path="$BOOT_JDK" 21949 has_colon=`$ECHO $path | $GREP ^.:` 21950 new_path="$path" 21951 if test "x$has_colon" = x; then 21952 # Not in mixed or Windows style, start by that. 21953 new_path=`cmd //c echo $path` 21954 fi 21955 21956 21957 input_path="$new_path" 21958 # Check if we need to convert this using DOS-style short mode. If the path 21959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21960 # take no chances and rewrite it. 21961 # Note: m4 eats our [], so we need to use [ and ] instead. 21962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21963 if test "x$has_forbidden_chars" != x; then 21964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21966 fi 21967 21968 21969 windows_path="$new_path" 21970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21971 unix_path=`$CYGPATH -u "$windows_path"` 21972 new_path="$unix_path" 21973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21975 new_path="$unix_path" 21976 fi 21977 21978 if test "x$path" != "x$new_path"; then 21979 BOOT_JDK="$new_path" 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21982 fi 21983 21984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21986 21987 else 21988 # We're on a unix platform. Hooray! :) 21989 path="$BOOT_JDK" 21990 has_space=`$ECHO "$path" | $GREP " "` 21991 if test "x$has_space" != x; then 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21993 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21994 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21995 fi 21996 21997 # Use eval to expand a potential ~ 21998 eval path="$path" 21999 if test ! -f "$path" && test ! -d "$path"; then 22000 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22001 fi 22002 22003 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22004 fi 22005 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22007 $as_echo_n "checking for Boot JDK... " >&6; } 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22009 $as_echo "$BOOT_JDK" >&6; } 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22011 $as_echo_n "checking Boot JDK version... " >&6; } 22012 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22014 $as_echo "$BOOT_JDK_VERSION" >&6; } 22015 fi # end check jdk version 22016 fi # end check javac 22017 fi # end check java 22018 fi # end check boot jdk found 22019 fi 22020 22021 22022 # Test: Is there a JDK installed in default, well-known locations? 22023 22024 if test "x$BOOT_JDK_FOUND" = xno; then 22025 # Now execute the test 22026 22027 if test "x$OPENJDK_TARGET_OS" = xwindows; then 22028 22029 if test "x$BOOT_JDK_FOUND" = xno; then 22030 # Now execute the test 22031 22032 if test "x$ProgramW6432" != x; then 22033 VIRTUAL_DIR="$ProgramW6432/Java" 22034 22035 windows_path="$VIRTUAL_DIR" 22036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22037 unix_path=`$CYGPATH -u "$windows_path"` 22038 VIRTUAL_DIR="$unix_path" 22039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22041 VIRTUAL_DIR="$unix_path" 22042 fi 22043 22044 22045 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22046 BOOT_JDK_SUFFIX="" 22047 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22048 if test "x$ALL_JDKS_FOUND" != x; then 22049 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22050 22051 if test "x$BOOT_JDK_FOUND" = xno; then 22052 # Now execute the test 22053 22054 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22055 if test -d "$BOOT_JDK"; then 22056 BOOT_JDK_FOUND=maybe 22057 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22058 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22059 fi 22060 22061 22062 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22063 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22064 # Do we have a bin/java? 22065 if test ! -x "$BOOT_JDK/bin/java"; then 22066 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22067 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22068 BOOT_JDK_FOUND=no 22069 else 22070 # Do we have a bin/javac? 22071 if test ! -x "$BOOT_JDK/bin/javac"; then 22072 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22073 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22074 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22075 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22076 BOOT_JDK_FOUND=no 22077 else 22078 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22079 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22080 22081 # Extra M4 quote needed to protect [] in grep expression. 22082 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22083 if test "x$FOUND_CORRECT_VERSION" = x; then 22084 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22085 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22086 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22087 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22088 BOOT_JDK_FOUND=no 22089 else 22090 # We're done! :-) 22091 BOOT_JDK_FOUND=yes 22092 22093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22094 22095 # Input might be given as Windows format, start by converting to 22096 # unix format. 22097 path="$BOOT_JDK" 22098 new_path=`$CYGPATH -u "$path"` 22099 22100 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22101 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22102 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22103 # "foo.exe" is OK but "foo" is an error. 22104 # 22105 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22106 # It is also a way to make sure we got the proper file name for the real test later on. 22107 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22108 if test "x$test_shortpath" = x; then 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22110 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22111 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22112 fi 22113 22114 # Call helper function which possibly converts this using DOS-style short mode. 22115 # If so, the updated path is stored in $new_path. 22116 22117 input_path="$new_path" 22118 # Check if we need to convert this using DOS-style short mode. If the path 22119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22120 # take no chances and rewrite it. 22121 # Note: m4 eats our [], so we need to use [ and ] instead. 22122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22123 if test "x$has_forbidden_chars" != x; then 22124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22125 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22126 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22127 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22128 # Going to short mode and back again did indeed matter. Since short mode is 22129 # case insensitive, let's make it lowercase to improve readability. 22130 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22131 # Now convert it back to Unix-stile (cygpath) 22132 input_path=`$CYGPATH -u "$shortmode_path"` 22133 new_path="$input_path" 22134 fi 22135 fi 22136 22137 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22138 if test "x$test_cygdrive_prefix" = x; then 22139 # As a simple fix, exclude /usr/bin since it's not a real path. 22140 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22141 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22142 # a path prefixed by /cygdrive for fixpath to work. 22143 new_path="$CYGWIN_ROOT_PATH$input_path" 22144 fi 22145 fi 22146 22147 22148 if test "x$path" != "x$new_path"; then 22149 BOOT_JDK="$new_path" 22150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22151 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22152 fi 22153 22154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22155 22156 path="$BOOT_JDK" 22157 has_colon=`$ECHO $path | $GREP ^.:` 22158 new_path="$path" 22159 if test "x$has_colon" = x; then 22160 # Not in mixed or Windows style, start by that. 22161 new_path=`cmd //c echo $path` 22162 fi 22163 22164 22165 input_path="$new_path" 22166 # Check if we need to convert this using DOS-style short mode. If the path 22167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22168 # take no chances and rewrite it. 22169 # Note: m4 eats our [], so we need to use [ and ] instead. 22170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22171 if test "x$has_forbidden_chars" != x; then 22172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22173 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22174 fi 22175 22176 22177 windows_path="$new_path" 22178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22179 unix_path=`$CYGPATH -u "$windows_path"` 22180 new_path="$unix_path" 22181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22183 new_path="$unix_path" 22184 fi 22185 22186 if test "x$path" != "x$new_path"; then 22187 BOOT_JDK="$new_path" 22188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22189 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22190 fi 22191 22192 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22193 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22194 22195 else 22196 # We're on a unix platform. Hooray! :) 22197 path="$BOOT_JDK" 22198 has_space=`$ECHO "$path" | $GREP " "` 22199 if test "x$has_space" != x; then 22200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22201 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22202 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22203 fi 22204 22205 # Use eval to expand a potential ~ 22206 eval path="$path" 22207 if test ! -f "$path" && test ! -d "$path"; then 22208 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22209 fi 22210 22211 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22212 fi 22213 22214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22215 $as_echo_n "checking for Boot JDK... " >&6; } 22216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22217 $as_echo "$BOOT_JDK" >&6; } 22218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22219 $as_echo_n "checking Boot JDK version... " >&6; } 22220 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22222 $as_echo "$BOOT_JDK_VERSION" >&6; } 22223 fi # end check jdk version 22224 fi # end check javac 22225 fi # end check java 22226 fi # end check boot jdk found 22227 fi 22228 22229 done 22230 fi 22231 22232 fi 22233 22234 22235 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22236 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22237 # Do we have a bin/java? 22238 if test ! -x "$BOOT_JDK/bin/java"; then 22239 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22240 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22241 BOOT_JDK_FOUND=no 22242 else 22243 # Do we have a bin/javac? 22244 if test ! -x "$BOOT_JDK/bin/javac"; then 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22247 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22248 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22249 BOOT_JDK_FOUND=no 22250 else 22251 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22252 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22253 22254 # Extra M4 quote needed to protect [] in grep expression. 22255 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22256 if test "x$FOUND_CORRECT_VERSION" = x; then 22257 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22258 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22260 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22261 BOOT_JDK_FOUND=no 22262 else 22263 # We're done! :-) 22264 BOOT_JDK_FOUND=yes 22265 22266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22267 22268 # Input might be given as Windows format, start by converting to 22269 # unix format. 22270 path="$BOOT_JDK" 22271 new_path=`$CYGPATH -u "$path"` 22272 22273 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22274 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22275 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22276 # "foo.exe" is OK but "foo" is an error. 22277 # 22278 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22279 # It is also a way to make sure we got the proper file name for the real test later on. 22280 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22281 if test "x$test_shortpath" = x; then 22282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22283 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22284 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22285 fi 22286 22287 # Call helper function which possibly converts this using DOS-style short mode. 22288 # If so, the updated path is stored in $new_path. 22289 22290 input_path="$new_path" 22291 # Check if we need to convert this using DOS-style short mode. If the path 22292 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22293 # take no chances and rewrite it. 22294 # Note: m4 eats our [], so we need to use [ and ] instead. 22295 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22296 if test "x$has_forbidden_chars" != x; then 22297 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22298 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22299 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22300 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22301 # Going to short mode and back again did indeed matter. Since short mode is 22302 # case insensitive, let's make it lowercase to improve readability. 22303 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22304 # Now convert it back to Unix-stile (cygpath) 22305 input_path=`$CYGPATH -u "$shortmode_path"` 22306 new_path="$input_path" 22307 fi 22308 fi 22309 22310 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22311 if test "x$test_cygdrive_prefix" = x; then 22312 # As a simple fix, exclude /usr/bin since it's not a real path. 22313 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22314 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22315 # a path prefixed by /cygdrive for fixpath to work. 22316 new_path="$CYGWIN_ROOT_PATH$input_path" 22317 fi 22318 fi 22319 22320 22321 if test "x$path" != "x$new_path"; then 22322 BOOT_JDK="$new_path" 22323 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22324 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22325 fi 22326 22327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22328 22329 path="$BOOT_JDK" 22330 has_colon=`$ECHO $path | $GREP ^.:` 22331 new_path="$path" 22332 if test "x$has_colon" = x; then 22333 # Not in mixed or Windows style, start by that. 22334 new_path=`cmd //c echo $path` 22335 fi 22336 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 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22347 fi 22348 22349 22350 windows_path="$new_path" 22351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22352 unix_path=`$CYGPATH -u "$windows_path"` 22353 new_path="$unix_path" 22354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22356 new_path="$unix_path" 22357 fi 22358 22359 if test "x$path" != "x$new_path"; then 22360 BOOT_JDK="$new_path" 22361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22362 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22363 fi 22364 22365 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22366 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22367 22368 else 22369 # We're on a unix platform. Hooray! :) 22370 path="$BOOT_JDK" 22371 has_space=`$ECHO "$path" | $GREP " "` 22372 if test "x$has_space" != x; then 22373 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22374 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22375 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22376 fi 22377 22378 # Use eval to expand a potential ~ 22379 eval path="$path" 22380 if test ! -f "$path" && test ! -d "$path"; then 22381 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22382 fi 22383 22384 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22385 fi 22386 22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22388 $as_echo_n "checking for Boot JDK... " >&6; } 22389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22390 $as_echo "$BOOT_JDK" >&6; } 22391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22392 $as_echo_n "checking Boot JDK version... " >&6; } 22393 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22395 $as_echo "$BOOT_JDK_VERSION" >&6; } 22396 fi # end check jdk version 22397 fi # end check javac 22398 fi # end check java 22399 fi # end check boot jdk found 22400 fi 22401 22402 22403 if test "x$BOOT_JDK_FOUND" = xno; then 22404 # Now execute the test 22405 22406 if test "x$PROGRAMW6432" != x; then 22407 VIRTUAL_DIR="$PROGRAMW6432/Java" 22408 22409 windows_path="$VIRTUAL_DIR" 22410 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22411 unix_path=`$CYGPATH -u "$windows_path"` 22412 VIRTUAL_DIR="$unix_path" 22413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22414 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22415 VIRTUAL_DIR="$unix_path" 22416 fi 22417 22418 22419 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22420 BOOT_JDK_SUFFIX="" 22421 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22422 if test "x$ALL_JDKS_FOUND" != x; then 22423 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22424 22425 if test "x$BOOT_JDK_FOUND" = xno; then 22426 # Now execute the test 22427 22428 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22429 if test -d "$BOOT_JDK"; then 22430 BOOT_JDK_FOUND=maybe 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22432 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22433 fi 22434 22435 22436 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22437 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22438 # Do we have a bin/java? 22439 if test ! -x "$BOOT_JDK/bin/java"; then 22440 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22441 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22442 BOOT_JDK_FOUND=no 22443 else 22444 # Do we have a bin/javac? 22445 if test ! -x "$BOOT_JDK/bin/javac"; then 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22447 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22448 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22449 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22450 BOOT_JDK_FOUND=no 22451 else 22452 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22453 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22454 22455 # Extra M4 quote needed to protect [] in grep expression. 22456 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22457 if test "x$FOUND_CORRECT_VERSION" = x; then 22458 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22459 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22460 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22461 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22462 BOOT_JDK_FOUND=no 22463 else 22464 # We're done! :-) 22465 BOOT_JDK_FOUND=yes 22466 22467 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22468 22469 # Input might be given as Windows format, start by converting to 22470 # unix format. 22471 path="$BOOT_JDK" 22472 new_path=`$CYGPATH -u "$path"` 22473 22474 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22475 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22476 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22477 # "foo.exe" is OK but "foo" is an error. 22478 # 22479 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22480 # It is also a way to make sure we got the proper file name for the real test later on. 22481 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22482 if test "x$test_shortpath" = x; then 22483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22484 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22485 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22486 fi 22487 22488 # Call helper function which possibly converts this using DOS-style short mode. 22489 # If so, the updated path is stored in $new_path. 22490 22491 input_path="$new_path" 22492 # Check if we need to convert this using DOS-style short mode. If the path 22493 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22494 # take no chances and rewrite it. 22495 # Note: m4 eats our [], so we need to use [ and ] instead. 22496 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22497 if test "x$has_forbidden_chars" != x; then 22498 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22499 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22500 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22501 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22502 # Going to short mode and back again did indeed matter. Since short mode is 22503 # case insensitive, let's make it lowercase to improve readability. 22504 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22505 # Now convert it back to Unix-stile (cygpath) 22506 input_path=`$CYGPATH -u "$shortmode_path"` 22507 new_path="$input_path" 22508 fi 22509 fi 22510 22511 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22512 if test "x$test_cygdrive_prefix" = x; then 22513 # As a simple fix, exclude /usr/bin since it's not a real path. 22514 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22515 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22516 # a path prefixed by /cygdrive for fixpath to work. 22517 new_path="$CYGWIN_ROOT_PATH$input_path" 22518 fi 22519 fi 22520 22521 22522 if test "x$path" != "x$new_path"; then 22523 BOOT_JDK="$new_path" 22524 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22525 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22526 fi 22527 22528 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22529 22530 path="$BOOT_JDK" 22531 has_colon=`$ECHO $path | $GREP ^.:` 22532 new_path="$path" 22533 if test "x$has_colon" = x; then 22534 # Not in mixed or Windows style, start by that. 22535 new_path=`cmd //c echo $path` 22536 fi 22537 22538 22539 input_path="$new_path" 22540 # Check if we need to convert this using DOS-style short mode. If the path 22541 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22542 # take no chances and rewrite it. 22543 # Note: m4 eats our [], so we need to use [ and ] instead. 22544 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22545 if test "x$has_forbidden_chars" != x; then 22546 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22547 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22548 fi 22549 22550 22551 windows_path="$new_path" 22552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22553 unix_path=`$CYGPATH -u "$windows_path"` 22554 new_path="$unix_path" 22555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22557 new_path="$unix_path" 22558 fi 22559 22560 if test "x$path" != "x$new_path"; then 22561 BOOT_JDK="$new_path" 22562 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22563 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22564 fi 22565 22566 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22567 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22568 22569 else 22570 # We're on a unix platform. Hooray! :) 22571 path="$BOOT_JDK" 22572 has_space=`$ECHO "$path" | $GREP " "` 22573 if test "x$has_space" != x; then 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22575 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22576 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22577 fi 22578 22579 # Use eval to expand a potential ~ 22580 eval path="$path" 22581 if test ! -f "$path" && test ! -d "$path"; then 22582 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22583 fi 22584 22585 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22586 fi 22587 22588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22589 $as_echo_n "checking for Boot JDK... " >&6; } 22590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22591 $as_echo "$BOOT_JDK" >&6; } 22592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22593 $as_echo_n "checking Boot JDK version... " >&6; } 22594 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22596 $as_echo "$BOOT_JDK_VERSION" >&6; } 22597 fi # end check jdk version 22598 fi # end check javac 22599 fi # end check java 22600 fi # end check boot jdk found 22601 fi 22602 22603 done 22604 fi 22605 22606 fi 22607 22608 22609 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22610 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22611 # Do we have a bin/java? 22612 if test ! -x "$BOOT_JDK/bin/java"; then 22613 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22614 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22615 BOOT_JDK_FOUND=no 22616 else 22617 # Do we have a bin/javac? 22618 if test ! -x "$BOOT_JDK/bin/javac"; then 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22620 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22621 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22622 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22623 BOOT_JDK_FOUND=no 22624 else 22625 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22626 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22627 22628 # Extra M4 quote needed to protect [] in grep expression. 22629 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22630 if test "x$FOUND_CORRECT_VERSION" = x; then 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22632 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22634 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22635 BOOT_JDK_FOUND=no 22636 else 22637 # We're done! :-) 22638 BOOT_JDK_FOUND=yes 22639 22640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22641 22642 # Input might be given as Windows format, start by converting to 22643 # unix format. 22644 path="$BOOT_JDK" 22645 new_path=`$CYGPATH -u "$path"` 22646 22647 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22648 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22649 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22650 # "foo.exe" is OK but "foo" is an error. 22651 # 22652 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22653 # It is also a way to make sure we got the proper file name for the real test later on. 22654 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22655 if test "x$test_shortpath" = x; then 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22657 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22658 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22659 fi 22660 22661 # Call helper function which possibly converts this using DOS-style short mode. 22662 # If so, the updated path is stored in $new_path. 22663 22664 input_path="$new_path" 22665 # Check if we need to convert this using DOS-style short mode. If the path 22666 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22667 # take no chances and rewrite it. 22668 # Note: m4 eats our [], so we need to use [ and ] instead. 22669 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22670 if test "x$has_forbidden_chars" != x; then 22671 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22672 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22673 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22674 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22675 # Going to short mode and back again did indeed matter. Since short mode is 22676 # case insensitive, let's make it lowercase to improve readability. 22677 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22678 # Now convert it back to Unix-stile (cygpath) 22679 input_path=`$CYGPATH -u "$shortmode_path"` 22680 new_path="$input_path" 22681 fi 22682 fi 22683 22684 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22685 if test "x$test_cygdrive_prefix" = x; then 22686 # As a simple fix, exclude /usr/bin since it's not a real path. 22687 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22688 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22689 # a path prefixed by /cygdrive for fixpath to work. 22690 new_path="$CYGWIN_ROOT_PATH$input_path" 22691 fi 22692 fi 22693 22694 22695 if test "x$path" != "x$new_path"; then 22696 BOOT_JDK="$new_path" 22697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22698 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22699 fi 22700 22701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22702 22703 path="$BOOT_JDK" 22704 has_colon=`$ECHO $path | $GREP ^.:` 22705 new_path="$path" 22706 if test "x$has_colon" = x; then 22707 # Not in mixed or Windows style, start by that. 22708 new_path=`cmd //c echo $path` 22709 fi 22710 22711 22712 input_path="$new_path" 22713 # Check if we need to convert this using DOS-style short mode. If the path 22714 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22715 # take no chances and rewrite it. 22716 # Note: m4 eats our [], so we need to use [ and ] instead. 22717 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22718 if test "x$has_forbidden_chars" != x; then 22719 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22720 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22721 fi 22722 22723 22724 windows_path="$new_path" 22725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22726 unix_path=`$CYGPATH -u "$windows_path"` 22727 new_path="$unix_path" 22728 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22729 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22730 new_path="$unix_path" 22731 fi 22732 22733 if test "x$path" != "x$new_path"; then 22734 BOOT_JDK="$new_path" 22735 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22736 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22737 fi 22738 22739 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22740 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22741 22742 else 22743 # We're on a unix platform. Hooray! :) 22744 path="$BOOT_JDK" 22745 has_space=`$ECHO "$path" | $GREP " "` 22746 if test "x$has_space" != x; then 22747 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22748 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22749 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22750 fi 22751 22752 # Use eval to expand a potential ~ 22753 eval path="$path" 22754 if test ! -f "$path" && test ! -d "$path"; then 22755 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22756 fi 22757 22758 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22759 fi 22760 22761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22762 $as_echo_n "checking for Boot JDK... " >&6; } 22763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22764 $as_echo "$BOOT_JDK" >&6; } 22765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22766 $as_echo_n "checking Boot JDK version... " >&6; } 22767 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22769 $as_echo "$BOOT_JDK_VERSION" >&6; } 22770 fi # end check jdk version 22771 fi # end check javac 22772 fi # end check java 22773 fi # end check boot jdk found 22774 fi 22775 22776 22777 if test "x$BOOT_JDK_FOUND" = xno; then 22778 # Now execute the test 22779 22780 if test "x$PROGRAMFILES" != x; then 22781 VIRTUAL_DIR="$PROGRAMFILES/Java" 22782 22783 windows_path="$VIRTUAL_DIR" 22784 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22785 unix_path=`$CYGPATH -u "$windows_path"` 22786 VIRTUAL_DIR="$unix_path" 22787 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22788 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22789 VIRTUAL_DIR="$unix_path" 22790 fi 22791 22792 22793 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22794 BOOT_JDK_SUFFIX="" 22795 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22796 if test "x$ALL_JDKS_FOUND" != x; then 22797 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22798 22799 if test "x$BOOT_JDK_FOUND" = xno; then 22800 # Now execute the test 22801 22802 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22803 if test -d "$BOOT_JDK"; then 22804 BOOT_JDK_FOUND=maybe 22805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22806 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22807 fi 22808 22809 22810 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22811 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22812 # Do we have a bin/java? 22813 if test ! -x "$BOOT_JDK/bin/java"; then 22814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22816 BOOT_JDK_FOUND=no 22817 else 22818 # Do we have a bin/javac? 22819 if test ! -x "$BOOT_JDK/bin/javac"; then 22820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22822 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22823 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22824 BOOT_JDK_FOUND=no 22825 else 22826 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22827 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22828 22829 # Extra M4 quote needed to protect [] in grep expression. 22830 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 22831 if test "x$FOUND_CORRECT_VERSION" = x; then 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 22835 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 22836 BOOT_JDK_FOUND=no 22837 else 22838 # We're done! :-) 22839 BOOT_JDK_FOUND=yes 22840 22841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22842 22843 # Input might be given as Windows format, start by converting to 22844 # unix format. 22845 path="$BOOT_JDK" 22846 new_path=`$CYGPATH -u "$path"` 22847 22848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22851 # "foo.exe" is OK but "foo" is an error. 22852 # 22853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22854 # It is also a way to make sure we got the proper file name for the real test later on. 22855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22856 if test "x$test_shortpath" = x; then 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22859 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22860 fi 22861 22862 # Call helper function which possibly converts this using DOS-style short mode. 22863 # If so, the updated path is stored in $new_path. 22864 22865 input_path="$new_path" 22866 # Check if we need to convert this using DOS-style short mode. If the path 22867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22868 # take no chances and rewrite it. 22869 # Note: m4 eats our [], so we need to use [ and ] instead. 22870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22871 if test "x$has_forbidden_chars" != x; then 22872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22876 # Going to short mode and back again did indeed matter. Since short mode is 22877 # case insensitive, let's make it lowercase to improve readability. 22878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22879 # Now convert it back to Unix-stile (cygpath) 22880 input_path=`$CYGPATH -u "$shortmode_path"` 22881 new_path="$input_path" 22882 fi 22883 fi 22884 22885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22886 if test "x$test_cygdrive_prefix" = x; then 22887 # As a simple fix, exclude /usr/bin since it's not a real path. 22888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22890 # a path prefixed by /cygdrive for fixpath to work. 22891 new_path="$CYGWIN_ROOT_PATH$input_path" 22892 fi 22893 fi 22894 22895 22896 if test "x$path" != "x$new_path"; then 22897 BOOT_JDK="$new_path" 22898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22899 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22900 fi 22901 22902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22903 22904 path="$BOOT_JDK" 22905 has_colon=`$ECHO $path | $GREP ^.:` 22906 new_path="$path" 22907 if test "x$has_colon" = x; then 22908 # Not in mixed or Windows style, start by that. 22909 new_path=`cmd //c echo $path` 22910 fi 22911 22912 22913 input_path="$new_path" 22914 # Check if we need to convert this using DOS-style short mode. If the path 22915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22916 # take no chances and rewrite it. 22917 # Note: m4 eats our [], so we need to use [ and ] instead. 22918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22919 if test "x$has_forbidden_chars" != x; then 22920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22922 fi 22923 22924 22925 windows_path="$new_path" 22926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22927 unix_path=`$CYGPATH -u "$windows_path"` 22928 new_path="$unix_path" 22929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22931 new_path="$unix_path" 22932 fi 22933 22934 if test "x$path" != "x$new_path"; then 22935 BOOT_JDK="$new_path" 22936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22937 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22938 fi 22939 22940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22942 22943 else 22944 # We're on a unix platform. Hooray! :) 22945 path="$BOOT_JDK" 22946 has_space=`$ECHO "$path" | $GREP " "` 22947 if test "x$has_space" != x; then 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22949 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22951 fi 22952 22953 # Use eval to expand a potential ~ 22954 eval path="$path" 22955 if test ! -f "$path" && test ! -d "$path"; then 22956 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22957 fi 22958 22959 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22960 fi 22961 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22963 $as_echo_n "checking for Boot JDK... " >&6; } 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22965 $as_echo "$BOOT_JDK" >&6; } 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22967 $as_echo_n "checking Boot JDK version... " >&6; } 22968 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22970 $as_echo "$BOOT_JDK_VERSION" >&6; } 22971 fi # end check jdk version 22972 fi # end check javac 22973 fi # end check java 22974 fi # end check boot jdk found 22975 fi 22976 22977 done 22978 fi 22979 22980 fi 22981 22982 22983 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22984 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22985 # Do we have a bin/java? 22986 if test ! -x "$BOOT_JDK/bin/java"; then 22987 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22989 BOOT_JDK_FOUND=no 22990 else 22991 # Do we have a bin/javac? 22992 if test ! -x "$BOOT_JDK/bin/javac"; then 22993 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22994 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22996 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22997 BOOT_JDK_FOUND=no 22998 else 22999 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23000 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23001 23002 # Extra M4 quote needed to protect [] in grep expression. 23003 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23004 if test "x$FOUND_CORRECT_VERSION" = x; then 23005 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23008 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23009 BOOT_JDK_FOUND=no 23010 else 23011 # We're done! :-) 23012 BOOT_JDK_FOUND=yes 23013 23014 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23015 23016 # Input might be given as Windows format, start by converting to 23017 # unix format. 23018 path="$BOOT_JDK" 23019 new_path=`$CYGPATH -u "$path"` 23020 23021 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23022 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23023 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23024 # "foo.exe" is OK but "foo" is an error. 23025 # 23026 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23027 # It is also a way to make sure we got the proper file name for the real test later on. 23028 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23029 if test "x$test_shortpath" = x; then 23030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23031 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23032 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23033 fi 23034 23035 # Call helper function which possibly converts this using DOS-style short mode. 23036 # If so, the updated path is stored in $new_path. 23037 23038 input_path="$new_path" 23039 # Check if we need to convert this using DOS-style short mode. If the path 23040 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23041 # take no chances and rewrite it. 23042 # Note: m4 eats our [], so we need to use [ and ] instead. 23043 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23044 if test "x$has_forbidden_chars" != x; then 23045 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23046 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23047 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23048 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23049 # Going to short mode and back again did indeed matter. Since short mode is 23050 # case insensitive, let's make it lowercase to improve readability. 23051 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23052 # Now convert it back to Unix-stile (cygpath) 23053 input_path=`$CYGPATH -u "$shortmode_path"` 23054 new_path="$input_path" 23055 fi 23056 fi 23057 23058 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23059 if test "x$test_cygdrive_prefix" = x; then 23060 # As a simple fix, exclude /usr/bin since it's not a real path. 23061 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23062 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23063 # a path prefixed by /cygdrive for fixpath to work. 23064 new_path="$CYGWIN_ROOT_PATH$input_path" 23065 fi 23066 fi 23067 23068 23069 if test "x$path" != "x$new_path"; then 23070 BOOT_JDK="$new_path" 23071 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23072 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23073 fi 23074 23075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23076 23077 path="$BOOT_JDK" 23078 has_colon=`$ECHO $path | $GREP ^.:` 23079 new_path="$path" 23080 if test "x$has_colon" = x; then 23081 # Not in mixed or Windows style, start by that. 23082 new_path=`cmd //c echo $path` 23083 fi 23084 23085 23086 input_path="$new_path" 23087 # Check if we need to convert this using DOS-style short mode. If the path 23088 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23089 # take no chances and rewrite it. 23090 # Note: m4 eats our [], so we need to use [ and ] instead. 23091 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23092 if test "x$has_forbidden_chars" != x; then 23093 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23094 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23095 fi 23096 23097 23098 windows_path="$new_path" 23099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23100 unix_path=`$CYGPATH -u "$windows_path"` 23101 new_path="$unix_path" 23102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23104 new_path="$unix_path" 23105 fi 23106 23107 if test "x$path" != "x$new_path"; then 23108 BOOT_JDK="$new_path" 23109 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23110 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23111 fi 23112 23113 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23114 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23115 23116 else 23117 # We're on a unix platform. Hooray! :) 23118 path="$BOOT_JDK" 23119 has_space=`$ECHO "$path" | $GREP " "` 23120 if test "x$has_space" != x; then 23121 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23122 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23123 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23124 fi 23125 23126 # Use eval to expand a potential ~ 23127 eval path="$path" 23128 if test ! -f "$path" && test ! -d "$path"; then 23129 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23130 fi 23131 23132 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23133 fi 23134 23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23136 $as_echo_n "checking for Boot JDK... " >&6; } 23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23138 $as_echo "$BOOT_JDK" >&6; } 23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23140 $as_echo_n "checking Boot JDK version... " >&6; } 23141 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23143 $as_echo "$BOOT_JDK_VERSION" >&6; } 23144 fi # end check jdk version 23145 fi # end check javac 23146 fi # end check java 23147 fi # end check boot jdk found 23148 fi 23149 23150 23151 if test "x$BOOT_JDK_FOUND" = xno; then 23152 # Now execute the test 23153 23154 if test "x$ProgramFiles" != x; then 23155 VIRTUAL_DIR="$ProgramFiles/Java" 23156 23157 windows_path="$VIRTUAL_DIR" 23158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23159 unix_path=`$CYGPATH -u "$windows_path"` 23160 VIRTUAL_DIR="$unix_path" 23161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23163 VIRTUAL_DIR="$unix_path" 23164 fi 23165 23166 23167 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 23168 BOOT_JDK_SUFFIX="" 23169 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23170 if test "x$ALL_JDKS_FOUND" != x; then 23171 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23172 23173 if test "x$BOOT_JDK_FOUND" = xno; then 23174 # Now execute the test 23175 23176 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23177 if test -d "$BOOT_JDK"; then 23178 BOOT_JDK_FOUND=maybe 23179 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23180 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23181 fi 23182 23183 23184 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23185 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23186 # Do we have a bin/java? 23187 if test ! -x "$BOOT_JDK/bin/java"; then 23188 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23189 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23190 BOOT_JDK_FOUND=no 23191 else 23192 # Do we have a bin/javac? 23193 if test ! -x "$BOOT_JDK/bin/javac"; then 23194 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23195 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23196 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23197 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23198 BOOT_JDK_FOUND=no 23199 else 23200 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23201 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23202 23203 # Extra M4 quote needed to protect [] in grep expression. 23204 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23205 if test "x$FOUND_CORRECT_VERSION" = x; then 23206 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23208 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23209 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23210 BOOT_JDK_FOUND=no 23211 else 23212 # We're done! :-) 23213 BOOT_JDK_FOUND=yes 23214 23215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23216 23217 # Input might be given as Windows format, start by converting to 23218 # unix format. 23219 path="$BOOT_JDK" 23220 new_path=`$CYGPATH -u "$path"` 23221 23222 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23223 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23224 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23225 # "foo.exe" is OK but "foo" is an error. 23226 # 23227 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23228 # It is also a way to make sure we got the proper file name for the real test later on. 23229 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23230 if test "x$test_shortpath" = x; then 23231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23232 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23233 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23234 fi 23235 23236 # Call helper function which possibly converts this using DOS-style short mode. 23237 # If so, the updated path is stored in $new_path. 23238 23239 input_path="$new_path" 23240 # Check if we need to convert this using DOS-style short mode. If the path 23241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23242 # take no chances and rewrite it. 23243 # Note: m4 eats our [], so we need to use [ and ] instead. 23244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23245 if test "x$has_forbidden_chars" != x; then 23246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23247 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23248 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23249 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23250 # Going to short mode and back again did indeed matter. Since short mode is 23251 # case insensitive, let's make it lowercase to improve readability. 23252 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23253 # Now convert it back to Unix-stile (cygpath) 23254 input_path=`$CYGPATH -u "$shortmode_path"` 23255 new_path="$input_path" 23256 fi 23257 fi 23258 23259 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23260 if test "x$test_cygdrive_prefix" = x; then 23261 # As a simple fix, exclude /usr/bin since it's not a real path. 23262 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23263 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23264 # a path prefixed by /cygdrive for fixpath to work. 23265 new_path="$CYGWIN_ROOT_PATH$input_path" 23266 fi 23267 fi 23268 23269 23270 if test "x$path" != "x$new_path"; then 23271 BOOT_JDK="$new_path" 23272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23273 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23274 fi 23275 23276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23277 23278 path="$BOOT_JDK" 23279 has_colon=`$ECHO $path | $GREP ^.:` 23280 new_path="$path" 23281 if test "x$has_colon" = x; then 23282 # Not in mixed or Windows style, start by that. 23283 new_path=`cmd //c echo $path` 23284 fi 23285 23286 23287 input_path="$new_path" 23288 # Check if we need to convert this using DOS-style short mode. If the path 23289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23290 # take no chances and rewrite it. 23291 # Note: m4 eats our [], so we need to use [ and ] instead. 23292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23293 if test "x$has_forbidden_chars" != x; then 23294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23295 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23296 fi 23297 23298 23299 windows_path="$new_path" 23300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23301 unix_path=`$CYGPATH -u "$windows_path"` 23302 new_path="$unix_path" 23303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23304 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23305 new_path="$unix_path" 23306 fi 23307 23308 if test "x$path" != "x$new_path"; then 23309 BOOT_JDK="$new_path" 23310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23311 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23312 fi 23313 23314 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23315 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23316 23317 else 23318 # We're on a unix platform. Hooray! :) 23319 path="$BOOT_JDK" 23320 has_space=`$ECHO "$path" | $GREP " "` 23321 if test "x$has_space" != x; then 23322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23323 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23324 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23325 fi 23326 23327 # Use eval to expand a potential ~ 23328 eval path="$path" 23329 if test ! -f "$path" && test ! -d "$path"; then 23330 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23331 fi 23332 23333 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23334 fi 23335 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23337 $as_echo_n "checking for Boot JDK... " >&6; } 23338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23339 $as_echo "$BOOT_JDK" >&6; } 23340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23341 $as_echo_n "checking Boot JDK version... " >&6; } 23342 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23344 $as_echo "$BOOT_JDK_VERSION" >&6; } 23345 fi # end check jdk version 23346 fi # end check javac 23347 fi # end check java 23348 fi # end check boot jdk found 23349 fi 23350 23351 done 23352 fi 23353 23354 fi 23355 23356 23357 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23358 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23359 # Do we have a bin/java? 23360 if test ! -x "$BOOT_JDK/bin/java"; then 23361 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23362 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23363 BOOT_JDK_FOUND=no 23364 else 23365 # Do we have a bin/javac? 23366 if test ! -x "$BOOT_JDK/bin/javac"; then 23367 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23368 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23369 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23370 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23371 BOOT_JDK_FOUND=no 23372 else 23373 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23374 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23375 23376 # Extra M4 quote needed to protect [] in grep expression. 23377 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23378 if test "x$FOUND_CORRECT_VERSION" = x; then 23379 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23380 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23381 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23382 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23383 BOOT_JDK_FOUND=no 23384 else 23385 # We're done! :-) 23386 BOOT_JDK_FOUND=yes 23387 23388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23389 23390 # Input might be given as Windows format, start by converting to 23391 # unix format. 23392 path="$BOOT_JDK" 23393 new_path=`$CYGPATH -u "$path"` 23394 23395 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23396 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23397 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23398 # "foo.exe" is OK but "foo" is an error. 23399 # 23400 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23401 # It is also a way to make sure we got the proper file name for the real test later on. 23402 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23403 if test "x$test_shortpath" = x; then 23404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23405 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23406 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23407 fi 23408 23409 # Call helper function which possibly converts this using DOS-style short mode. 23410 # If so, the updated path is stored in $new_path. 23411 23412 input_path="$new_path" 23413 # Check if we need to convert this using DOS-style short mode. If the path 23414 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23415 # take no chances and rewrite it. 23416 # Note: m4 eats our [], so we need to use [ and ] instead. 23417 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23418 if test "x$has_forbidden_chars" != x; then 23419 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23420 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23421 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23422 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23423 # Going to short mode and back again did indeed matter. Since short mode is 23424 # case insensitive, let's make it lowercase to improve readability. 23425 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23426 # Now convert it back to Unix-stile (cygpath) 23427 input_path=`$CYGPATH -u "$shortmode_path"` 23428 new_path="$input_path" 23429 fi 23430 fi 23431 23432 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23433 if test "x$test_cygdrive_prefix" = x; then 23434 # As a simple fix, exclude /usr/bin since it's not a real path. 23435 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23436 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23437 # a path prefixed by /cygdrive for fixpath to work. 23438 new_path="$CYGWIN_ROOT_PATH$input_path" 23439 fi 23440 fi 23441 23442 23443 if test "x$path" != "x$new_path"; then 23444 BOOT_JDK="$new_path" 23445 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23446 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23447 fi 23448 23449 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23450 23451 path="$BOOT_JDK" 23452 has_colon=`$ECHO $path | $GREP ^.:` 23453 new_path="$path" 23454 if test "x$has_colon" = x; then 23455 # Not in mixed or Windows style, start by that. 23456 new_path=`cmd //c echo $path` 23457 fi 23458 23459 23460 input_path="$new_path" 23461 # Check if we need to convert this using DOS-style short mode. If the path 23462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23463 # take no chances and rewrite it. 23464 # Note: m4 eats our [], so we need to use [ and ] instead. 23465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23466 if test "x$has_forbidden_chars" != x; then 23467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23468 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23469 fi 23470 23471 23472 windows_path="$new_path" 23473 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23474 unix_path=`$CYGPATH -u "$windows_path"` 23475 new_path="$unix_path" 23476 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23477 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23478 new_path="$unix_path" 23479 fi 23480 23481 if test "x$path" != "x$new_path"; then 23482 BOOT_JDK="$new_path" 23483 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23484 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23485 fi 23486 23487 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23488 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23489 23490 else 23491 # We're on a unix platform. Hooray! :) 23492 path="$BOOT_JDK" 23493 has_space=`$ECHO "$path" | $GREP " "` 23494 if test "x$has_space" != x; then 23495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23496 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23497 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23498 fi 23499 23500 # Use eval to expand a potential ~ 23501 eval path="$path" 23502 if test ! -f "$path" && test ! -d "$path"; then 23503 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23504 fi 23505 23506 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23507 fi 23508 23509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23510 $as_echo_n "checking for Boot JDK... " >&6; } 23511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23512 $as_echo "$BOOT_JDK" >&6; } 23513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23514 $as_echo_n "checking Boot JDK version... " >&6; } 23515 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23517 $as_echo "$BOOT_JDK_VERSION" >&6; } 23518 fi # end check jdk version 23519 fi # end check javac 23520 fi # end check java 23521 fi # end check boot jdk found 23522 fi 23523 23524 23525 if test "x$BOOT_JDK_FOUND" = xno; then 23526 # Now execute the test 23527 23528 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23529 BOOT_JDK_SUFFIX="" 23530 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23531 if test "x$ALL_JDKS_FOUND" != x; then 23532 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23533 23534 if test "x$BOOT_JDK_FOUND" = xno; then 23535 # Now execute the test 23536 23537 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23538 if test -d "$BOOT_JDK"; then 23539 BOOT_JDK_FOUND=maybe 23540 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23541 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23542 fi 23543 23544 23545 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23546 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23547 # Do we have a bin/java? 23548 if test ! -x "$BOOT_JDK/bin/java"; then 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23550 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23551 BOOT_JDK_FOUND=no 23552 else 23553 # Do we have a bin/javac? 23554 if test ! -x "$BOOT_JDK/bin/javac"; then 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23556 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23557 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23558 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23559 BOOT_JDK_FOUND=no 23560 else 23561 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23562 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23563 23564 # Extra M4 quote needed to protect [] in grep expression. 23565 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23566 if test "x$FOUND_CORRECT_VERSION" = x; then 23567 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23568 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23570 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23571 BOOT_JDK_FOUND=no 23572 else 23573 # We're done! :-) 23574 BOOT_JDK_FOUND=yes 23575 23576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23577 23578 # Input might be given as Windows format, start by converting to 23579 # unix format. 23580 path="$BOOT_JDK" 23581 new_path=`$CYGPATH -u "$path"` 23582 23583 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23584 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23585 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23586 # "foo.exe" is OK but "foo" is an error. 23587 # 23588 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23589 # It is also a way to make sure we got the proper file name for the real test later on. 23590 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23591 if test "x$test_shortpath" = x; then 23592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23593 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23594 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23595 fi 23596 23597 # Call helper function which possibly converts this using DOS-style short mode. 23598 # If so, the updated path is stored in $new_path. 23599 23600 input_path="$new_path" 23601 # Check if we need to convert this using DOS-style short mode. If the path 23602 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23603 # take no chances and rewrite it. 23604 # Note: m4 eats our [], so we need to use [ and ] instead. 23605 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23606 if test "x$has_forbidden_chars" != x; then 23607 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23608 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23609 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23610 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23611 # Going to short mode and back again did indeed matter. Since short mode is 23612 # case insensitive, let's make it lowercase to improve readability. 23613 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23614 # Now convert it back to Unix-stile (cygpath) 23615 input_path=`$CYGPATH -u "$shortmode_path"` 23616 new_path="$input_path" 23617 fi 23618 fi 23619 23620 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23621 if test "x$test_cygdrive_prefix" = x; then 23622 # As a simple fix, exclude /usr/bin since it's not a real path. 23623 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23624 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23625 # a path prefixed by /cygdrive for fixpath to work. 23626 new_path="$CYGWIN_ROOT_PATH$input_path" 23627 fi 23628 fi 23629 23630 23631 if test "x$path" != "x$new_path"; then 23632 BOOT_JDK="$new_path" 23633 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23634 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23635 fi 23636 23637 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23638 23639 path="$BOOT_JDK" 23640 has_colon=`$ECHO $path | $GREP ^.:` 23641 new_path="$path" 23642 if test "x$has_colon" = x; then 23643 # Not in mixed or Windows style, start by that. 23644 new_path=`cmd //c echo $path` 23645 fi 23646 23647 23648 input_path="$new_path" 23649 # Check if we need to convert this using DOS-style short mode. If the path 23650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23651 # take no chances and rewrite it. 23652 # Note: m4 eats our [], so we need to use [ and ] instead. 23653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23654 if test "x$has_forbidden_chars" != x; then 23655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23656 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23657 fi 23658 23659 23660 windows_path="$new_path" 23661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23662 unix_path=`$CYGPATH -u "$windows_path"` 23663 new_path="$unix_path" 23664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23666 new_path="$unix_path" 23667 fi 23668 23669 if test "x$path" != "x$new_path"; then 23670 BOOT_JDK="$new_path" 23671 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23672 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23673 fi 23674 23675 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23676 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23677 23678 else 23679 # We're on a unix platform. Hooray! :) 23680 path="$BOOT_JDK" 23681 has_space=`$ECHO "$path" | $GREP " "` 23682 if test "x$has_space" != x; then 23683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23684 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23685 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23686 fi 23687 23688 # Use eval to expand a potential ~ 23689 eval path="$path" 23690 if test ! -f "$path" && test ! -d "$path"; then 23691 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23692 fi 23693 23694 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23695 fi 23696 23697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23698 $as_echo_n "checking for Boot JDK... " >&6; } 23699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23700 $as_echo "$BOOT_JDK" >&6; } 23701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23702 $as_echo_n "checking Boot JDK version... " >&6; } 23703 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23705 $as_echo "$BOOT_JDK_VERSION" >&6; } 23706 fi # end check jdk version 23707 fi # end check javac 23708 fi # end check java 23709 fi # end check boot jdk found 23710 fi 23711 23712 done 23713 fi 23714 23715 23716 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23717 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23718 # Do we have a bin/java? 23719 if test ! -x "$BOOT_JDK/bin/java"; then 23720 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23721 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23722 BOOT_JDK_FOUND=no 23723 else 23724 # Do we have a bin/javac? 23725 if test ! -x "$BOOT_JDK/bin/javac"; then 23726 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23727 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23728 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23729 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23730 BOOT_JDK_FOUND=no 23731 else 23732 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23733 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23734 23735 # Extra M4 quote needed to protect [] in grep expression. 23736 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23737 if test "x$FOUND_CORRECT_VERSION" = x; then 23738 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23739 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23740 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23741 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23742 BOOT_JDK_FOUND=no 23743 else 23744 # We're done! :-) 23745 BOOT_JDK_FOUND=yes 23746 23747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23748 23749 # Input might be given as Windows format, start by converting to 23750 # unix format. 23751 path="$BOOT_JDK" 23752 new_path=`$CYGPATH -u "$path"` 23753 23754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23757 # "foo.exe" is OK but "foo" is an error. 23758 # 23759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23760 # It is also a way to make sure we got the proper file name for the real test later on. 23761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23762 if test "x$test_shortpath" = x; then 23763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23764 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23765 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23766 fi 23767 23768 # Call helper function which possibly converts this using DOS-style short mode. 23769 # If so, the updated path is stored in $new_path. 23770 23771 input_path="$new_path" 23772 # Check if we need to convert this using DOS-style short mode. If the path 23773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23774 # take no chances and rewrite it. 23775 # Note: m4 eats our [], so we need to use [ and ] instead. 23776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23777 if test "x$has_forbidden_chars" != x; then 23778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23782 # Going to short mode and back again did indeed matter. Since short mode is 23783 # case insensitive, let's make it lowercase to improve readability. 23784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23785 # Now convert it back to Unix-stile (cygpath) 23786 input_path=`$CYGPATH -u "$shortmode_path"` 23787 new_path="$input_path" 23788 fi 23789 fi 23790 23791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23792 if test "x$test_cygdrive_prefix" = x; then 23793 # As a simple fix, exclude /usr/bin since it's not a real path. 23794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23796 # a path prefixed by /cygdrive for fixpath to work. 23797 new_path="$CYGWIN_ROOT_PATH$input_path" 23798 fi 23799 fi 23800 23801 23802 if test "x$path" != "x$new_path"; then 23803 BOOT_JDK="$new_path" 23804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23805 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23806 fi 23807 23808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23809 23810 path="$BOOT_JDK" 23811 has_colon=`$ECHO $path | $GREP ^.:` 23812 new_path="$path" 23813 if test "x$has_colon" = x; then 23814 # Not in mixed or Windows style, start by that. 23815 new_path=`cmd //c echo $path` 23816 fi 23817 23818 23819 input_path="$new_path" 23820 # Check if we need to convert this using DOS-style short mode. If the path 23821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23822 # take no chances and rewrite it. 23823 # Note: m4 eats our [], so we need to use [ and ] instead. 23824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23825 if test "x$has_forbidden_chars" != x; then 23826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23828 fi 23829 23830 23831 windows_path="$new_path" 23832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23833 unix_path=`$CYGPATH -u "$windows_path"` 23834 new_path="$unix_path" 23835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23837 new_path="$unix_path" 23838 fi 23839 23840 if test "x$path" != "x$new_path"; then 23841 BOOT_JDK="$new_path" 23842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23843 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23844 fi 23845 23846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23848 23849 else 23850 # We're on a unix platform. Hooray! :) 23851 path="$BOOT_JDK" 23852 has_space=`$ECHO "$path" | $GREP " "` 23853 if test "x$has_space" != x; then 23854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23855 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23857 fi 23858 23859 # Use eval to expand a potential ~ 23860 eval path="$path" 23861 if test ! -f "$path" && test ! -d "$path"; then 23862 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23863 fi 23864 23865 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23866 fi 23867 23868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23869 $as_echo_n "checking for Boot JDK... " >&6; } 23870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23871 $as_echo "$BOOT_JDK" >&6; } 23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23873 $as_echo_n "checking Boot JDK version... " >&6; } 23874 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23876 $as_echo "$BOOT_JDK_VERSION" >&6; } 23877 fi # end check jdk version 23878 fi # end check javac 23879 fi # end check java 23880 fi # end check boot jdk found 23881 fi 23882 23883 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23884 23885 if test "x$BOOT_JDK_FOUND" = xno; then 23886 # Now execute the test 23887 23888 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23889 BOOT_JDK_SUFFIX="/Contents/Home" 23890 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23891 if test "x$ALL_JDKS_FOUND" != x; then 23892 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23893 23894 if test "x$BOOT_JDK_FOUND" = xno; then 23895 # Now execute the test 23896 23897 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23898 if test -d "$BOOT_JDK"; then 23899 BOOT_JDK_FOUND=maybe 23900 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23901 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23902 fi 23903 23904 23905 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23906 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23907 # Do we have a bin/java? 23908 if test ! -x "$BOOT_JDK/bin/java"; then 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23910 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23911 BOOT_JDK_FOUND=no 23912 else 23913 # Do we have a bin/javac? 23914 if test ! -x "$BOOT_JDK/bin/javac"; then 23915 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23916 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23917 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23918 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23919 BOOT_JDK_FOUND=no 23920 else 23921 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23922 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23923 23924 # Extra M4 quote needed to protect [] in grep expression. 23925 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 23926 if test "x$FOUND_CORRECT_VERSION" = x; then 23927 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23928 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 23930 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 23931 BOOT_JDK_FOUND=no 23932 else 23933 # We're done! :-) 23934 BOOT_JDK_FOUND=yes 23935 23936 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23937 23938 # Input might be given as Windows format, start by converting to 23939 # unix format. 23940 path="$BOOT_JDK" 23941 new_path=`$CYGPATH -u "$path"` 23942 23943 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23944 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23945 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23946 # "foo.exe" is OK but "foo" is an error. 23947 # 23948 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23949 # It is also a way to make sure we got the proper file name for the real test later on. 23950 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23951 if test "x$test_shortpath" = x; then 23952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23953 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23954 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23955 fi 23956 23957 # Call helper function which possibly converts this using DOS-style short mode. 23958 # If so, the updated path is stored in $new_path. 23959 23960 input_path="$new_path" 23961 # Check if we need to convert this using DOS-style short mode. If the path 23962 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23963 # take no chances and rewrite it. 23964 # Note: m4 eats our [], so we need to use [ and ] instead. 23965 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23966 if test "x$has_forbidden_chars" != x; then 23967 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23968 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23969 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23970 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23971 # Going to short mode and back again did indeed matter. Since short mode is 23972 # case insensitive, let's make it lowercase to improve readability. 23973 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23974 # Now convert it back to Unix-stile (cygpath) 23975 input_path=`$CYGPATH -u "$shortmode_path"` 23976 new_path="$input_path" 23977 fi 23978 fi 23979 23980 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23981 if test "x$test_cygdrive_prefix" = x; then 23982 # As a simple fix, exclude /usr/bin since it's not a real path. 23983 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23984 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23985 # a path prefixed by /cygdrive for fixpath to work. 23986 new_path="$CYGWIN_ROOT_PATH$input_path" 23987 fi 23988 fi 23989 23990 23991 if test "x$path" != "x$new_path"; then 23992 BOOT_JDK="$new_path" 23993 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23994 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23995 fi 23996 23997 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23998 23999 path="$BOOT_JDK" 24000 has_colon=`$ECHO $path | $GREP ^.:` 24001 new_path="$path" 24002 if test "x$has_colon" = x; then 24003 # Not in mixed or Windows style, start by that. 24004 new_path=`cmd //c echo $path` 24005 fi 24006 24007 24008 input_path="$new_path" 24009 # Check if we need to convert this using DOS-style short mode. If the path 24010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24011 # take no chances and rewrite it. 24012 # Note: m4 eats our [], so we need to use [ and ] instead. 24013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24014 if test "x$has_forbidden_chars" != x; then 24015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24016 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24017 fi 24018 24019 24020 windows_path="$new_path" 24021 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24022 unix_path=`$CYGPATH -u "$windows_path"` 24023 new_path="$unix_path" 24024 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24025 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24026 new_path="$unix_path" 24027 fi 24028 24029 if test "x$path" != "x$new_path"; then 24030 BOOT_JDK="$new_path" 24031 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24032 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24033 fi 24034 24035 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24036 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24037 24038 else 24039 # We're on a unix platform. Hooray! :) 24040 path="$BOOT_JDK" 24041 has_space=`$ECHO "$path" | $GREP " "` 24042 if test "x$has_space" != x; then 24043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24044 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24045 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24046 fi 24047 24048 # Use eval to expand a potential ~ 24049 eval path="$path" 24050 if test ! -f "$path" && test ! -d "$path"; then 24051 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24052 fi 24053 24054 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24055 fi 24056 24057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24058 $as_echo_n "checking for Boot JDK... " >&6; } 24059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24060 $as_echo "$BOOT_JDK" >&6; } 24061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24062 $as_echo_n "checking Boot JDK version... " >&6; } 24063 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24065 $as_echo "$BOOT_JDK_VERSION" >&6; } 24066 fi # end check jdk version 24067 fi # end check javac 24068 fi # end check java 24069 fi # end check boot jdk found 24070 fi 24071 24072 done 24073 fi 24074 24075 24076 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24077 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24078 # Do we have a bin/java? 24079 if test ! -x "$BOOT_JDK/bin/java"; then 24080 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24082 BOOT_JDK_FOUND=no 24083 else 24084 # Do we have a bin/javac? 24085 if test ! -x "$BOOT_JDK/bin/javac"; then 24086 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24087 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24088 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24089 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24090 BOOT_JDK_FOUND=no 24091 else 24092 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24093 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24094 24095 # Extra M4 quote needed to protect [] in grep expression. 24096 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24097 if test "x$FOUND_CORRECT_VERSION" = x; then 24098 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24099 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24101 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24102 BOOT_JDK_FOUND=no 24103 else 24104 # We're done! :-) 24105 BOOT_JDK_FOUND=yes 24106 24107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24108 24109 # Input might be given as Windows format, start by converting to 24110 # unix format. 24111 path="$BOOT_JDK" 24112 new_path=`$CYGPATH -u "$path"` 24113 24114 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24115 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24116 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24117 # "foo.exe" is OK but "foo" is an error. 24118 # 24119 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24120 # It is also a way to make sure we got the proper file name for the real test later on. 24121 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24122 if test "x$test_shortpath" = x; then 24123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24124 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24125 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24126 fi 24127 24128 # Call helper function which possibly converts this using DOS-style short mode. 24129 # If so, the updated path is stored in $new_path. 24130 24131 input_path="$new_path" 24132 # Check if we need to convert this using DOS-style short mode. If the path 24133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24134 # take no chances and rewrite it. 24135 # Note: m4 eats our [], so we need to use [ and ] instead. 24136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24137 if test "x$has_forbidden_chars" != x; then 24138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24139 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24140 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24141 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24142 # Going to short mode and back again did indeed matter. Since short mode is 24143 # case insensitive, let's make it lowercase to improve readability. 24144 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24145 # Now convert it back to Unix-stile (cygpath) 24146 input_path=`$CYGPATH -u "$shortmode_path"` 24147 new_path="$input_path" 24148 fi 24149 fi 24150 24151 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24152 if test "x$test_cygdrive_prefix" = x; then 24153 # As a simple fix, exclude /usr/bin since it's not a real path. 24154 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24155 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24156 # a path prefixed by /cygdrive for fixpath to work. 24157 new_path="$CYGWIN_ROOT_PATH$input_path" 24158 fi 24159 fi 24160 24161 24162 if test "x$path" != "x$new_path"; then 24163 BOOT_JDK="$new_path" 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24165 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24166 fi 24167 24168 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24169 24170 path="$BOOT_JDK" 24171 has_colon=`$ECHO $path | $GREP ^.:` 24172 new_path="$path" 24173 if test "x$has_colon" = x; then 24174 # Not in mixed or Windows style, start by that. 24175 new_path=`cmd //c echo $path` 24176 fi 24177 24178 24179 input_path="$new_path" 24180 # Check if we need to convert this using DOS-style short mode. If the path 24181 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24182 # take no chances and rewrite it. 24183 # Note: m4 eats our [], so we need to use [ and ] instead. 24184 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24185 if test "x$has_forbidden_chars" != x; then 24186 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24187 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24188 fi 24189 24190 24191 windows_path="$new_path" 24192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24193 unix_path=`$CYGPATH -u "$windows_path"` 24194 new_path="$unix_path" 24195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24197 new_path="$unix_path" 24198 fi 24199 24200 if test "x$path" != "x$new_path"; then 24201 BOOT_JDK="$new_path" 24202 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24203 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24204 fi 24205 24206 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24207 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24208 24209 else 24210 # We're on a unix platform. Hooray! :) 24211 path="$BOOT_JDK" 24212 has_space=`$ECHO "$path" | $GREP " "` 24213 if test "x$has_space" != x; then 24214 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24215 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24216 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24217 fi 24218 24219 # Use eval to expand a potential ~ 24220 eval path="$path" 24221 if test ! -f "$path" && test ! -d "$path"; then 24222 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24223 fi 24224 24225 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24226 fi 24227 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24229 $as_echo_n "checking for Boot JDK... " >&6; } 24230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24231 $as_echo "$BOOT_JDK" >&6; } 24232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24233 $as_echo_n "checking Boot JDK version... " >&6; } 24234 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24236 $as_echo "$BOOT_JDK_VERSION" >&6; } 24237 fi # end check jdk version 24238 fi # end check javac 24239 fi # end check java 24240 fi # end check boot jdk found 24241 fi 24242 24243 24244 if test "x$BOOT_JDK_FOUND" = xno; then 24245 # Now execute the test 24246 24247 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24248 BOOT_JDK_SUFFIX="/Contents/Home" 24249 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24250 if test "x$ALL_JDKS_FOUND" != x; then 24251 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24252 24253 if test "x$BOOT_JDK_FOUND" = xno; then 24254 # Now execute the test 24255 24256 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24257 if test -d "$BOOT_JDK"; then 24258 BOOT_JDK_FOUND=maybe 24259 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24260 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24261 fi 24262 24263 24264 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24265 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24266 # Do we have a bin/java? 24267 if test ! -x "$BOOT_JDK/bin/java"; then 24268 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24269 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24270 BOOT_JDK_FOUND=no 24271 else 24272 # Do we have a bin/javac? 24273 if test ! -x "$BOOT_JDK/bin/javac"; then 24274 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24275 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24276 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24277 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24278 BOOT_JDK_FOUND=no 24279 else 24280 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24281 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24282 24283 # Extra M4 quote needed to protect [] in grep expression. 24284 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24285 if test "x$FOUND_CORRECT_VERSION" = x; then 24286 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24287 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24288 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24289 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24290 BOOT_JDK_FOUND=no 24291 else 24292 # We're done! :-) 24293 BOOT_JDK_FOUND=yes 24294 24295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24296 24297 # Input might be given as Windows format, start by converting to 24298 # unix format. 24299 path="$BOOT_JDK" 24300 new_path=`$CYGPATH -u "$path"` 24301 24302 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24303 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24304 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24305 # "foo.exe" is OK but "foo" is an error. 24306 # 24307 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24308 # It is also a way to make sure we got the proper file name for the real test later on. 24309 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24310 if test "x$test_shortpath" = x; then 24311 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24312 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24313 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24314 fi 24315 24316 # Call helper function which possibly converts this using DOS-style short mode. 24317 # If so, the updated path is stored in $new_path. 24318 24319 input_path="$new_path" 24320 # Check if we need to convert this using DOS-style short mode. If the path 24321 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24322 # take no chances and rewrite it. 24323 # Note: m4 eats our [], so we need to use [ and ] instead. 24324 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24325 if test "x$has_forbidden_chars" != x; then 24326 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24327 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24328 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24329 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24330 # Going to short mode and back again did indeed matter. Since short mode is 24331 # case insensitive, let's make it lowercase to improve readability. 24332 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24333 # Now convert it back to Unix-stile (cygpath) 24334 input_path=`$CYGPATH -u "$shortmode_path"` 24335 new_path="$input_path" 24336 fi 24337 fi 24338 24339 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24340 if test "x$test_cygdrive_prefix" = x; then 24341 # As a simple fix, exclude /usr/bin since it's not a real path. 24342 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24343 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24344 # a path prefixed by /cygdrive for fixpath to work. 24345 new_path="$CYGWIN_ROOT_PATH$input_path" 24346 fi 24347 fi 24348 24349 24350 if test "x$path" != "x$new_path"; then 24351 BOOT_JDK="$new_path" 24352 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24353 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24354 fi 24355 24356 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24357 24358 path="$BOOT_JDK" 24359 has_colon=`$ECHO $path | $GREP ^.:` 24360 new_path="$path" 24361 if test "x$has_colon" = x; then 24362 # Not in mixed or Windows style, start by that. 24363 new_path=`cmd //c echo $path` 24364 fi 24365 24366 24367 input_path="$new_path" 24368 # Check if we need to convert this using DOS-style short mode. If the path 24369 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24370 # take no chances and rewrite it. 24371 # Note: m4 eats our [], so we need to use [ and ] instead. 24372 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24373 if test "x$has_forbidden_chars" != x; then 24374 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24375 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24376 fi 24377 24378 24379 windows_path="$new_path" 24380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24381 unix_path=`$CYGPATH -u "$windows_path"` 24382 new_path="$unix_path" 24383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24385 new_path="$unix_path" 24386 fi 24387 24388 if test "x$path" != "x$new_path"; then 24389 BOOT_JDK="$new_path" 24390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24391 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24392 fi 24393 24394 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24395 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24396 24397 else 24398 # We're on a unix platform. Hooray! :) 24399 path="$BOOT_JDK" 24400 has_space=`$ECHO "$path" | $GREP " "` 24401 if test "x$has_space" != x; then 24402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24403 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24404 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24405 fi 24406 24407 # Use eval to expand a potential ~ 24408 eval path="$path" 24409 if test ! -f "$path" && test ! -d "$path"; then 24410 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24411 fi 24412 24413 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24414 fi 24415 24416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24417 $as_echo_n "checking for Boot JDK... " >&6; } 24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24419 $as_echo "$BOOT_JDK" >&6; } 24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24421 $as_echo_n "checking Boot JDK version... " >&6; } 24422 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24424 $as_echo "$BOOT_JDK_VERSION" >&6; } 24425 fi # end check jdk version 24426 fi # end check javac 24427 fi # end check java 24428 fi # end check boot jdk found 24429 fi 24430 24431 done 24432 fi 24433 24434 24435 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24436 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24437 # Do we have a bin/java? 24438 if test ! -x "$BOOT_JDK/bin/java"; then 24439 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24440 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24441 BOOT_JDK_FOUND=no 24442 else 24443 # Do we have a bin/javac? 24444 if test ! -x "$BOOT_JDK/bin/javac"; then 24445 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24446 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24447 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24448 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24449 BOOT_JDK_FOUND=no 24450 else 24451 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24452 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24453 24454 # Extra M4 quote needed to protect [] in grep expression. 24455 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24456 if test "x$FOUND_CORRECT_VERSION" = x; then 24457 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24458 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24459 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24460 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24461 BOOT_JDK_FOUND=no 24462 else 24463 # We're done! :-) 24464 BOOT_JDK_FOUND=yes 24465 24466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24467 24468 # Input might be given as Windows format, start by converting to 24469 # unix format. 24470 path="$BOOT_JDK" 24471 new_path=`$CYGPATH -u "$path"` 24472 24473 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24474 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24475 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24476 # "foo.exe" is OK but "foo" is an error. 24477 # 24478 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24479 # It is also a way to make sure we got the proper file name for the real test later on. 24480 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24481 if test "x$test_shortpath" = x; then 24482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24483 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24484 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24485 fi 24486 24487 # Call helper function which possibly converts this using DOS-style short mode. 24488 # If so, the updated path is stored in $new_path. 24489 24490 input_path="$new_path" 24491 # Check if we need to convert this using DOS-style short mode. If the path 24492 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24493 # take no chances and rewrite it. 24494 # Note: m4 eats our [], so we need to use [ and ] instead. 24495 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24496 if test "x$has_forbidden_chars" != x; then 24497 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24498 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24499 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24500 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24501 # Going to short mode and back again did indeed matter. Since short mode is 24502 # case insensitive, let's make it lowercase to improve readability. 24503 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24504 # Now convert it back to Unix-stile (cygpath) 24505 input_path=`$CYGPATH -u "$shortmode_path"` 24506 new_path="$input_path" 24507 fi 24508 fi 24509 24510 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24511 if test "x$test_cygdrive_prefix" = x; then 24512 # As a simple fix, exclude /usr/bin since it's not a real path. 24513 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24514 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24515 # a path prefixed by /cygdrive for fixpath to work. 24516 new_path="$CYGWIN_ROOT_PATH$input_path" 24517 fi 24518 fi 24519 24520 24521 if test "x$path" != "x$new_path"; then 24522 BOOT_JDK="$new_path" 24523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24524 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24525 fi 24526 24527 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24528 24529 path="$BOOT_JDK" 24530 has_colon=`$ECHO $path | $GREP ^.:` 24531 new_path="$path" 24532 if test "x$has_colon" = x; then 24533 # Not in mixed or Windows style, start by that. 24534 new_path=`cmd //c echo $path` 24535 fi 24536 24537 24538 input_path="$new_path" 24539 # Check if we need to convert this using DOS-style short mode. If the path 24540 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24541 # take no chances and rewrite it. 24542 # Note: m4 eats our [], so we need to use [ and ] instead. 24543 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24544 if test "x$has_forbidden_chars" != x; then 24545 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24546 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24547 fi 24548 24549 24550 windows_path="$new_path" 24551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24552 unix_path=`$CYGPATH -u "$windows_path"` 24553 new_path="$unix_path" 24554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24556 new_path="$unix_path" 24557 fi 24558 24559 if test "x$path" != "x$new_path"; then 24560 BOOT_JDK="$new_path" 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24562 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24563 fi 24564 24565 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24566 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24567 24568 else 24569 # We're on a unix platform. Hooray! :) 24570 path="$BOOT_JDK" 24571 has_space=`$ECHO "$path" | $GREP " "` 24572 if test "x$has_space" != x; then 24573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24574 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24575 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24576 fi 24577 24578 # Use eval to expand a potential ~ 24579 eval path="$path" 24580 if test ! -f "$path" && test ! -d "$path"; then 24581 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24582 fi 24583 24584 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24585 fi 24586 24587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24588 $as_echo_n "checking for Boot JDK... " >&6; } 24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24590 $as_echo "$BOOT_JDK" >&6; } 24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24592 $as_echo_n "checking Boot JDK version... " >&6; } 24593 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24595 $as_echo "$BOOT_JDK_VERSION" >&6; } 24596 fi # end check jdk version 24597 fi # end check javac 24598 fi # end check java 24599 fi # end check boot jdk found 24600 fi 24601 24602 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24603 24604 if test "x$BOOT_JDK_FOUND" = xno; then 24605 # Now execute the test 24606 24607 BOOT_JDK_PREFIX="/usr/lib/jvm" 24608 BOOT_JDK_SUFFIX="" 24609 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24610 if test "x$ALL_JDKS_FOUND" != x; then 24611 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24612 24613 if test "x$BOOT_JDK_FOUND" = xno; then 24614 # Now execute the test 24615 24616 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24617 if test -d "$BOOT_JDK"; then 24618 BOOT_JDK_FOUND=maybe 24619 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24620 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24621 fi 24622 24623 24624 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24625 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24626 # Do we have a bin/java? 24627 if test ! -x "$BOOT_JDK/bin/java"; then 24628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24630 BOOT_JDK_FOUND=no 24631 else 24632 # Do we have a bin/javac? 24633 if test ! -x "$BOOT_JDK/bin/javac"; then 24634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24636 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24638 BOOT_JDK_FOUND=no 24639 else 24640 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24641 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24642 24643 # Extra M4 quote needed to protect [] in grep expression. 24644 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24645 if test "x$FOUND_CORRECT_VERSION" = x; then 24646 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24647 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24648 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24649 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24650 BOOT_JDK_FOUND=no 24651 else 24652 # We're done! :-) 24653 BOOT_JDK_FOUND=yes 24654 24655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24656 24657 # Input might be given as Windows format, start by converting to 24658 # unix format. 24659 path="$BOOT_JDK" 24660 new_path=`$CYGPATH -u "$path"` 24661 24662 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24663 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24664 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24665 # "foo.exe" is OK but "foo" is an error. 24666 # 24667 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24668 # It is also a way to make sure we got the proper file name for the real test later on. 24669 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24670 if test "x$test_shortpath" = x; then 24671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24672 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24673 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24674 fi 24675 24676 # Call helper function which possibly converts this using DOS-style short mode. 24677 # If so, the updated path is stored in $new_path. 24678 24679 input_path="$new_path" 24680 # Check if we need to convert this using DOS-style short mode. If the path 24681 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24682 # take no chances and rewrite it. 24683 # Note: m4 eats our [], so we need to use [ and ] instead. 24684 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24685 if test "x$has_forbidden_chars" != x; then 24686 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24687 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24688 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24689 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24690 # Going to short mode and back again did indeed matter. Since short mode is 24691 # case insensitive, let's make it lowercase to improve readability. 24692 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24693 # Now convert it back to Unix-stile (cygpath) 24694 input_path=`$CYGPATH -u "$shortmode_path"` 24695 new_path="$input_path" 24696 fi 24697 fi 24698 24699 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24700 if test "x$test_cygdrive_prefix" = x; then 24701 # As a simple fix, exclude /usr/bin since it's not a real path. 24702 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24703 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24704 # a path prefixed by /cygdrive for fixpath to work. 24705 new_path="$CYGWIN_ROOT_PATH$input_path" 24706 fi 24707 fi 24708 24709 24710 if test "x$path" != "x$new_path"; then 24711 BOOT_JDK="$new_path" 24712 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24713 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24714 fi 24715 24716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24717 24718 path="$BOOT_JDK" 24719 has_colon=`$ECHO $path | $GREP ^.:` 24720 new_path="$path" 24721 if test "x$has_colon" = x; then 24722 # Not in mixed or Windows style, start by that. 24723 new_path=`cmd //c echo $path` 24724 fi 24725 24726 24727 input_path="$new_path" 24728 # Check if we need to convert this using DOS-style short mode. If the path 24729 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24730 # take no chances and rewrite it. 24731 # Note: m4 eats our [], so we need to use [ and ] instead. 24732 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24733 if test "x$has_forbidden_chars" != x; then 24734 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24735 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24736 fi 24737 24738 24739 windows_path="$new_path" 24740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24741 unix_path=`$CYGPATH -u "$windows_path"` 24742 new_path="$unix_path" 24743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24745 new_path="$unix_path" 24746 fi 24747 24748 if test "x$path" != "x$new_path"; then 24749 BOOT_JDK="$new_path" 24750 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24751 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24752 fi 24753 24754 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24755 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24756 24757 else 24758 # We're on a unix platform. Hooray! :) 24759 path="$BOOT_JDK" 24760 has_space=`$ECHO "$path" | $GREP " "` 24761 if test "x$has_space" != x; then 24762 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24763 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24764 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24765 fi 24766 24767 # Use eval to expand a potential ~ 24768 eval path="$path" 24769 if test ! -f "$path" && test ! -d "$path"; then 24770 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24771 fi 24772 24773 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24774 fi 24775 24776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24777 $as_echo_n "checking for Boot JDK... " >&6; } 24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24779 $as_echo "$BOOT_JDK" >&6; } 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24781 $as_echo_n "checking Boot JDK version... " >&6; } 24782 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24784 $as_echo "$BOOT_JDK_VERSION" >&6; } 24785 fi # end check jdk version 24786 fi # end check javac 24787 fi # end check java 24788 fi # end check boot jdk found 24789 fi 24790 24791 done 24792 fi 24793 24794 24795 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24796 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24797 # Do we have a bin/java? 24798 if test ! -x "$BOOT_JDK/bin/java"; then 24799 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24800 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24801 BOOT_JDK_FOUND=no 24802 else 24803 # Do we have a bin/javac? 24804 if test ! -x "$BOOT_JDK/bin/javac"; then 24805 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24806 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24807 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24808 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24809 BOOT_JDK_FOUND=no 24810 else 24811 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24812 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24813 24814 # Extra M4 quote needed to protect [] in grep expression. 24815 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24816 if test "x$FOUND_CORRECT_VERSION" = x; then 24817 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24818 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24819 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24820 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24821 BOOT_JDK_FOUND=no 24822 else 24823 # We're done! :-) 24824 BOOT_JDK_FOUND=yes 24825 24826 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24827 24828 # Input might be given as Windows format, start by converting to 24829 # unix format. 24830 path="$BOOT_JDK" 24831 new_path=`$CYGPATH -u "$path"` 24832 24833 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24834 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24835 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24836 # "foo.exe" is OK but "foo" is an error. 24837 # 24838 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24839 # It is also a way to make sure we got the proper file name for the real test later on. 24840 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24841 if test "x$test_shortpath" = x; then 24842 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24843 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24844 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24845 fi 24846 24847 # Call helper function which possibly converts this using DOS-style short mode. 24848 # If so, the updated path is stored in $new_path. 24849 24850 input_path="$new_path" 24851 # Check if we need to convert this using DOS-style short mode. If the path 24852 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24853 # take no chances and rewrite it. 24854 # Note: m4 eats our [], so we need to use [ and ] instead. 24855 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24856 if test "x$has_forbidden_chars" != x; then 24857 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24858 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24859 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24860 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24861 # Going to short mode and back again did indeed matter. Since short mode is 24862 # case insensitive, let's make it lowercase to improve readability. 24863 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24864 # Now convert it back to Unix-stile (cygpath) 24865 input_path=`$CYGPATH -u "$shortmode_path"` 24866 new_path="$input_path" 24867 fi 24868 fi 24869 24870 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24871 if test "x$test_cygdrive_prefix" = x; then 24872 # As a simple fix, exclude /usr/bin since it's not a real path. 24873 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24874 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24875 # a path prefixed by /cygdrive for fixpath to work. 24876 new_path="$CYGWIN_ROOT_PATH$input_path" 24877 fi 24878 fi 24879 24880 24881 if test "x$path" != "x$new_path"; then 24882 BOOT_JDK="$new_path" 24883 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24884 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24885 fi 24886 24887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24888 24889 path="$BOOT_JDK" 24890 has_colon=`$ECHO $path | $GREP ^.:` 24891 new_path="$path" 24892 if test "x$has_colon" = x; then 24893 # Not in mixed or Windows style, start by that. 24894 new_path=`cmd //c echo $path` 24895 fi 24896 24897 24898 input_path="$new_path" 24899 # Check if we need to convert this using DOS-style short mode. If the path 24900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24901 # take no chances and rewrite it. 24902 # Note: m4 eats our [], so we need to use [ and ] instead. 24903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24904 if test "x$has_forbidden_chars" != x; then 24905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24906 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24907 fi 24908 24909 24910 windows_path="$new_path" 24911 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24912 unix_path=`$CYGPATH -u "$windows_path"` 24913 new_path="$unix_path" 24914 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24915 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24916 new_path="$unix_path" 24917 fi 24918 24919 if test "x$path" != "x$new_path"; then 24920 BOOT_JDK="$new_path" 24921 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24922 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24923 fi 24924 24925 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24926 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24927 24928 else 24929 # We're on a unix platform. Hooray! :) 24930 path="$BOOT_JDK" 24931 has_space=`$ECHO "$path" | $GREP " "` 24932 if test "x$has_space" != x; then 24933 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24934 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24935 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24936 fi 24937 24938 # Use eval to expand a potential ~ 24939 eval path="$path" 24940 if test ! -f "$path" && test ! -d "$path"; then 24941 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24942 fi 24943 24944 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24945 fi 24946 24947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24948 $as_echo_n "checking for Boot JDK... " >&6; } 24949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24950 $as_echo "$BOOT_JDK" >&6; } 24951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24952 $as_echo_n "checking Boot JDK version... " >&6; } 24953 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24955 $as_echo "$BOOT_JDK_VERSION" >&6; } 24956 fi # end check jdk version 24957 fi # end check javac 24958 fi # end check java 24959 fi # end check boot jdk found 24960 fi 24961 24962 fi 24963 24964 24965 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24966 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24967 # Do we have a bin/java? 24968 if test ! -x "$BOOT_JDK/bin/java"; then 24969 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24971 BOOT_JDK_FOUND=no 24972 else 24973 # Do we have a bin/javac? 24974 if test ! -x "$BOOT_JDK/bin/javac"; then 24975 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24976 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24977 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24978 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24979 BOOT_JDK_FOUND=no 24980 else 24981 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24982 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24983 24984 # Extra M4 quote needed to protect [] in grep expression. 24985 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[89]\.'` 24986 if test "x$FOUND_CORRECT_VERSION" = x; then 24987 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24989 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 8 or 9)" >&5 24990 $as_echo "$as_me: (Your Boot JDK must be version 8 or 9)" >&6;} 24991 BOOT_JDK_FOUND=no 24992 else 24993 # We're done! :-) 24994 BOOT_JDK_FOUND=yes 24995 24996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24997 24998 # Input might be given as Windows format, start by converting to 24999 # unix format. 25000 path="$BOOT_JDK" 25001 new_path=`$CYGPATH -u "$path"` 25002 25003 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25004 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25005 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25006 # "foo.exe" is OK but "foo" is an error. 25007 # 25008 # This test is therefore slightly more accurate than "test -f" to check for file precense. 25009 # It is also a way to make sure we got the proper file name for the real test later on. 25010 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25011 if test "x$test_shortpath" = x; then 25012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25013 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25014 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 25015 fi 25016 25017 # Call helper function which possibly converts this using DOS-style short mode. 25018 # If so, the updated path is stored in $new_path. 25019 25020 input_path="$new_path" 25021 # Check if we need to convert this using DOS-style short mode. If the path 25022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25023 # take no chances and rewrite it. 25024 # Note: m4 eats our [], so we need to use [ and ] instead. 25025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25026 if test "x$has_forbidden_chars" != x; then 25027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25028 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25029 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25030 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25031 # Going to short mode and back again did indeed matter. Since short mode is 25032 # case insensitive, let's make it lowercase to improve readability. 25033 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25034 # Now convert it back to Unix-stile (cygpath) 25035 input_path=`$CYGPATH -u "$shortmode_path"` 25036 new_path="$input_path" 25037 fi 25038 fi 25039 25040 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25041 if test "x$test_cygdrive_prefix" = x; then 25042 # As a simple fix, exclude /usr/bin since it's not a real path. 25043 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 25044 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25045 # a path prefixed by /cygdrive for fixpath to work. 25046 new_path="$CYGWIN_ROOT_PATH$input_path" 25047 fi 25048 fi 25049 25050 25051 if test "x$path" != "x$new_path"; then 25052 BOOT_JDK="$new_path" 25053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25054 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25055 fi 25056 25057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25058 25059 path="$BOOT_JDK" 25060 has_colon=`$ECHO $path | $GREP ^.:` 25061 new_path="$path" 25062 if test "x$has_colon" = x; then 25063 # Not in mixed or Windows style, start by that. 25064 new_path=`cmd //c echo $path` 25065 fi 25066 25067 25068 input_path="$new_path" 25069 # Check if we need to convert this using DOS-style short mode. If the path 25070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25071 # take no chances and rewrite it. 25072 # Note: m4 eats our [], so we need to use [ and ] instead. 25073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25074 if test "x$has_forbidden_chars" != x; then 25075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25076 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25077 fi 25078 25079 25080 windows_path="$new_path" 25081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25082 unix_path=`$CYGPATH -u "$windows_path"` 25083 new_path="$unix_path" 25084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25086 new_path="$unix_path" 25087 fi 25088 25089 if test "x$path" != "x$new_path"; then 25090 BOOT_JDK="$new_path" 25091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 25092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 25093 fi 25094 25095 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25096 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25097 25098 else 25099 # We're on a unix platform. Hooray! :) 25100 path="$BOOT_JDK" 25101 has_space=`$ECHO "$path" | $GREP " "` 25102 if test "x$has_space" != x; then 25103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25105 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25106 fi 25107 25108 # Use eval to expand a potential ~ 25109 eval path="$path" 25110 if test ! -f "$path" && test ! -d "$path"; then 25111 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25112 fi 25113 25114 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25115 fi 25116 25117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25118 $as_echo_n "checking for Boot JDK... " >&6; } 25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25120 $as_echo "$BOOT_JDK" >&6; } 25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25122 $as_echo_n "checking Boot JDK version... " >&6; } 25123 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25125 $as_echo "$BOOT_JDK_VERSION" >&6; } 25126 fi # end check jdk version 25127 fi # end check javac 25128 fi # end check java 25129 fi # end check boot jdk found 25130 fi 25131 25132 25133 # If we haven't found anything yet, we've truly lost. Give up. 25134 if test "x$BOOT_JDK_FOUND" = xno; then 25135 25136 # Print a helpful message on how to acquire the necessary build dependency. 25137 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25138 MISSING_DEPENDENCY=openjdk 25139 25140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25141 cygwin_help $MISSING_DEPENDENCY 25142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25143 msys_help $MISSING_DEPENDENCY 25144 else 25145 PKGHANDLER_COMMAND= 25146 25147 case $PKGHANDLER in 25148 apt-get) 25149 apt_help $MISSING_DEPENDENCY ;; 25150 yum) 25151 yum_help $MISSING_DEPENDENCY ;; 25152 port) 25153 port_help $MISSING_DEPENDENCY ;; 25154 pkgutil) 25155 pkgutil_help $MISSING_DEPENDENCY ;; 25156 pkgadd) 25157 pkgadd_help $MISSING_DEPENDENCY ;; 25158 esac 25159 25160 if test "x$PKGHANDLER_COMMAND" != x; then 25161 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25162 fi 25163 fi 25164 25165 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25166 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25167 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25168 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25169 as_fn_error $? "Cannot continue" "$LINENO" 5 25170 fi 25171 25172 25173 25174 # Setup tools from the Boot JDK. 25175 25176 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25177 25178 # Publish this variable in the help. 25179 25180 25181 if test "x$JAVA" = x; then 25182 # The variable is not set by user, try to locate tool using the code snippet 25183 25184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25185 $as_echo_n "checking for java in Boot JDK... " >&6; } 25186 JAVA=$BOOT_JDK/bin/java 25187 if test ! -x $JAVA; then 25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25189 $as_echo "not found" >&6; } 25190 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25191 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25192 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25193 fi 25194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25195 $as_echo "ok" >&6; } 25196 25197 25198 else 25199 # The variable is set, but is it from the command line or the environment? 25200 25201 # Try to remove the string !JAVA! from our list. 25202 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25203 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25204 # If it failed, the variable was not from the command line. Ignore it, 25205 # but warn the user (except for BASH, which is always set by the calling BASH). 25206 if test "xJAVA" != xBASH; then 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25208 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25209 fi 25210 # Try to locate tool using the code snippet 25211 25212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25213 $as_echo_n "checking for java in Boot JDK... " >&6; } 25214 JAVA=$BOOT_JDK/bin/java 25215 if test ! -x $JAVA; then 25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25217 $as_echo "not found" >&6; } 25218 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25219 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25220 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25221 fi 25222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25223 $as_echo "ok" >&6; } 25224 25225 25226 else 25227 # If it succeeded, then it was overridden by the user. We will use it 25228 # for the tool. 25229 25230 # First remove it from the list of overridden variables, so we can test 25231 # for unknown variables in the end. 25232 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25233 25234 # Check if the provided tool contains a complete path. 25235 tool_specified="$JAVA" 25236 tool_basename="${tool_specified##*/}" 25237 if test "x$tool_basename" = "x$tool_specified"; then 25238 # A command without a complete path is provided, search $PATH. 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25240 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25241 # Extract the first word of "$tool_basename", so it can be a program name with args. 25242 set dummy $tool_basename; ac_word=$2 25243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25244 $as_echo_n "checking for $ac_word... " >&6; } 25245 if ${ac_cv_path_JAVA+:} false; then : 25246 $as_echo_n "(cached) " >&6 25247 else 25248 case $JAVA in 25249 [\\/]* | ?:[\\/]*) 25250 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25251 ;; 25252 *) 25253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25254 for as_dir in $PATH 25255 do 25256 IFS=$as_save_IFS 25257 test -z "$as_dir" && as_dir=. 25258 for ac_exec_ext in '' $ac_executable_extensions; do 25259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25260 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25262 break 2 25263 fi 25264 done 25265 done 25266 IFS=$as_save_IFS 25267 25268 ;; 25269 esac 25270 fi 25271 JAVA=$ac_cv_path_JAVA 25272 if test -n "$JAVA"; then 25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25274 $as_echo "$JAVA" >&6; } 25275 else 25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25277 $as_echo "no" >&6; } 25278 fi 25279 25280 25281 if test "x$JAVA" = x; then 25282 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25283 fi 25284 else 25285 # Otherwise we believe it is a complete path. Use it as it is. 25286 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25287 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25289 $as_echo_n "checking for JAVA... " >&6; } 25290 if test ! -x "$tool_specified"; then 25291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25292 $as_echo "not found" >&6; } 25293 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25294 fi 25295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25296 $as_echo "$tool_specified" >&6; } 25297 fi 25298 fi 25299 fi 25300 25301 25302 25303 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25304 25305 # Publish this variable in the help. 25306 25307 25308 if test "x$JAVAC" = x; then 25309 # The variable is not set by user, try to locate tool using the code snippet 25310 25311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25312 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25313 JAVAC=$BOOT_JDK/bin/javac 25314 if test ! -x $JAVAC; then 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25316 $as_echo "not found" >&6; } 25317 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25318 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25319 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25320 fi 25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25322 $as_echo "ok" >&6; } 25323 25324 25325 else 25326 # The variable is set, but is it from the command line or the environment? 25327 25328 # Try to remove the string !JAVAC! from our list. 25329 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25330 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25331 # If it failed, the variable was not from the command line. Ignore it, 25332 # but warn the user (except for BASH, which is always set by the calling BASH). 25333 if test "xJAVAC" != xBASH; then 25334 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25335 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25336 fi 25337 # Try to locate tool using the code snippet 25338 25339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25340 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25341 JAVAC=$BOOT_JDK/bin/javac 25342 if test ! -x $JAVAC; then 25343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25344 $as_echo "not found" >&6; } 25345 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25346 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25347 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25348 fi 25349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25350 $as_echo "ok" >&6; } 25351 25352 25353 else 25354 # If it succeeded, then it was overridden by the user. We will use it 25355 # for the tool. 25356 25357 # First remove it from the list of overridden variables, so we can test 25358 # for unknown variables in the end. 25359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25360 25361 # Check if the provided tool contains a complete path. 25362 tool_specified="$JAVAC" 25363 tool_basename="${tool_specified##*/}" 25364 if test "x$tool_basename" = "x$tool_specified"; then 25365 # A command without a complete path is provided, search $PATH. 25366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25367 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25368 # Extract the first word of "$tool_basename", so it can be a program name with args. 25369 set dummy $tool_basename; ac_word=$2 25370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25371 $as_echo_n "checking for $ac_word... " >&6; } 25372 if ${ac_cv_path_JAVAC+:} false; then : 25373 $as_echo_n "(cached) " >&6 25374 else 25375 case $JAVAC in 25376 [\\/]* | ?:[\\/]*) 25377 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25378 ;; 25379 *) 25380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25381 for as_dir in $PATH 25382 do 25383 IFS=$as_save_IFS 25384 test -z "$as_dir" && as_dir=. 25385 for ac_exec_ext in '' $ac_executable_extensions; do 25386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25387 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25389 break 2 25390 fi 25391 done 25392 done 25393 IFS=$as_save_IFS 25394 25395 ;; 25396 esac 25397 fi 25398 JAVAC=$ac_cv_path_JAVAC 25399 if test -n "$JAVAC"; then 25400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25401 $as_echo "$JAVAC" >&6; } 25402 else 25403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25404 $as_echo "no" >&6; } 25405 fi 25406 25407 25408 if test "x$JAVAC" = x; then 25409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25410 fi 25411 else 25412 # Otherwise we believe it is a complete path. Use it as it is. 25413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25414 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25416 $as_echo_n "checking for JAVAC... " >&6; } 25417 if test ! -x "$tool_specified"; then 25418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25419 $as_echo "not found" >&6; } 25420 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25421 fi 25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25423 $as_echo "$tool_specified" >&6; } 25424 fi 25425 fi 25426 fi 25427 25428 25429 25430 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25431 25432 # Publish this variable in the help. 25433 25434 25435 if test "x$JAVAH" = x; then 25436 # The variable is not set by user, try to locate tool using the code snippet 25437 25438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25439 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25440 JAVAH=$BOOT_JDK/bin/javah 25441 if test ! -x $JAVAH; then 25442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25443 $as_echo "not found" >&6; } 25444 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25445 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25446 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25447 fi 25448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25449 $as_echo "ok" >&6; } 25450 25451 25452 else 25453 # The variable is set, but is it from the command line or the environment? 25454 25455 # Try to remove the string !JAVAH! from our list. 25456 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25457 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25458 # If it failed, the variable was not from the command line. Ignore it, 25459 # but warn the user (except for BASH, which is always set by the calling BASH). 25460 if test "xJAVAH" != xBASH; then 25461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25462 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25463 fi 25464 # Try to locate tool using the code snippet 25465 25466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25467 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25468 JAVAH=$BOOT_JDK/bin/javah 25469 if test ! -x $JAVAH; then 25470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25471 $as_echo "not found" >&6; } 25472 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25473 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25474 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25475 fi 25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25477 $as_echo "ok" >&6; } 25478 25479 25480 else 25481 # If it succeeded, then it was overridden by the user. We will use it 25482 # for the tool. 25483 25484 # First remove it from the list of overridden variables, so we can test 25485 # for unknown variables in the end. 25486 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25487 25488 # Check if the provided tool contains a complete path. 25489 tool_specified="$JAVAH" 25490 tool_basename="${tool_specified##*/}" 25491 if test "x$tool_basename" = "x$tool_specified"; then 25492 # A command without a complete path is provided, search $PATH. 25493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25494 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25495 # Extract the first word of "$tool_basename", so it can be a program name with args. 25496 set dummy $tool_basename; ac_word=$2 25497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25498 $as_echo_n "checking for $ac_word... " >&6; } 25499 if ${ac_cv_path_JAVAH+:} false; then : 25500 $as_echo_n "(cached) " >&6 25501 else 25502 case $JAVAH in 25503 [\\/]* | ?:[\\/]*) 25504 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25505 ;; 25506 *) 25507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25508 for as_dir in $PATH 25509 do 25510 IFS=$as_save_IFS 25511 test -z "$as_dir" && as_dir=. 25512 for ac_exec_ext in '' $ac_executable_extensions; do 25513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25514 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25516 break 2 25517 fi 25518 done 25519 done 25520 IFS=$as_save_IFS 25521 25522 ;; 25523 esac 25524 fi 25525 JAVAH=$ac_cv_path_JAVAH 25526 if test -n "$JAVAH"; then 25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25528 $as_echo "$JAVAH" >&6; } 25529 else 25530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25531 $as_echo "no" >&6; } 25532 fi 25533 25534 25535 if test "x$JAVAH" = x; then 25536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25537 fi 25538 else 25539 # Otherwise we believe it is a complete path. Use it as it is. 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25541 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25543 $as_echo_n "checking for JAVAH... " >&6; } 25544 if test ! -x "$tool_specified"; then 25545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25546 $as_echo "not found" >&6; } 25547 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25548 fi 25549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25550 $as_echo "$tool_specified" >&6; } 25551 fi 25552 fi 25553 fi 25554 25555 25556 25557 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25558 25559 # Publish this variable in the help. 25560 25561 25562 if test "x$JAR" = x; then 25563 # The variable is not set by user, try to locate tool using the code snippet 25564 25565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25566 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25567 JAR=$BOOT_JDK/bin/jar 25568 if test ! -x $JAR; then 25569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25570 $as_echo "not found" >&6; } 25571 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25572 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25573 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25574 fi 25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25576 $as_echo "ok" >&6; } 25577 25578 25579 else 25580 # The variable is set, but is it from the command line or the environment? 25581 25582 # Try to remove the string !JAR! from our list. 25583 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25584 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25585 # If it failed, the variable was not from the command line. Ignore it, 25586 # but warn the user (except for BASH, which is always set by the calling BASH). 25587 if test "xJAR" != xBASH; then 25588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25589 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25590 fi 25591 # Try to locate tool using the code snippet 25592 25593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25594 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25595 JAR=$BOOT_JDK/bin/jar 25596 if test ! -x $JAR; then 25597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25598 $as_echo "not found" >&6; } 25599 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25600 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25601 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25602 fi 25603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25604 $as_echo "ok" >&6; } 25605 25606 25607 else 25608 # If it succeeded, then it was overridden by the user. We will use it 25609 # for the tool. 25610 25611 # First remove it from the list of overridden variables, so we can test 25612 # for unknown variables in the end. 25613 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25614 25615 # Check if the provided tool contains a complete path. 25616 tool_specified="$JAR" 25617 tool_basename="${tool_specified##*/}" 25618 if test "x$tool_basename" = "x$tool_specified"; then 25619 # A command without a complete path is provided, search $PATH. 25620 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25621 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25622 # Extract the first word of "$tool_basename", so it can be a program name with args. 25623 set dummy $tool_basename; ac_word=$2 25624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25625 $as_echo_n "checking for $ac_word... " >&6; } 25626 if ${ac_cv_path_JAR+:} false; then : 25627 $as_echo_n "(cached) " >&6 25628 else 25629 case $JAR in 25630 [\\/]* | ?:[\\/]*) 25631 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25632 ;; 25633 *) 25634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25635 for as_dir in $PATH 25636 do 25637 IFS=$as_save_IFS 25638 test -z "$as_dir" && as_dir=. 25639 for ac_exec_ext in '' $ac_executable_extensions; do 25640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25641 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25643 break 2 25644 fi 25645 done 25646 done 25647 IFS=$as_save_IFS 25648 25649 ;; 25650 esac 25651 fi 25652 JAR=$ac_cv_path_JAR 25653 if test -n "$JAR"; then 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25655 $as_echo "$JAR" >&6; } 25656 else 25657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25658 $as_echo "no" >&6; } 25659 fi 25660 25661 25662 if test "x$JAR" = x; then 25663 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25664 fi 25665 else 25666 # Otherwise we believe it is a complete path. Use it as it is. 25667 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25668 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25670 $as_echo_n "checking for JAR... " >&6; } 25671 if test ! -x "$tool_specified"; then 25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25673 $as_echo "not found" >&6; } 25674 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25675 fi 25676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25677 $as_echo "$tool_specified" >&6; } 25678 fi 25679 fi 25680 fi 25681 25682 25683 25684 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25685 25686 # Publish this variable in the help. 25687 25688 25689 if test "x$NATIVE2ASCII" = x; then 25690 # The variable is not set by user, try to locate tool using the code snippet 25691 25692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25693 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25694 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25695 if test ! -x $NATIVE2ASCII; then 25696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25697 $as_echo "not found" >&6; } 25698 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25699 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25700 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25701 fi 25702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25703 $as_echo "ok" >&6; } 25704 25705 25706 else 25707 # The variable is set, but is it from the command line or the environment? 25708 25709 # Try to remove the string !NATIVE2ASCII! from our list. 25710 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25711 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25712 # If it failed, the variable was not from the command line. Ignore it, 25713 # but warn the user (except for BASH, which is always set by the calling BASH). 25714 if test "xNATIVE2ASCII" != xBASH; then 25715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25716 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25717 fi 25718 # Try to locate tool using the code snippet 25719 25720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25721 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25722 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25723 if test ! -x $NATIVE2ASCII; then 25724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25725 $as_echo "not found" >&6; } 25726 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25727 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25728 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25729 fi 25730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25731 $as_echo "ok" >&6; } 25732 25733 25734 else 25735 # If it succeeded, then it was overridden by the user. We will use it 25736 # for the tool. 25737 25738 # First remove it from the list of overridden variables, so we can test 25739 # for unknown variables in the end. 25740 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25741 25742 # Check if the provided tool contains a complete path. 25743 tool_specified="$NATIVE2ASCII" 25744 tool_basename="${tool_specified##*/}" 25745 if test "x$tool_basename" = "x$tool_specified"; then 25746 # A command without a complete path is provided, search $PATH. 25747 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25748 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25749 # Extract the first word of "$tool_basename", so it can be a program name with args. 25750 set dummy $tool_basename; ac_word=$2 25751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25752 $as_echo_n "checking for $ac_word... " >&6; } 25753 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25754 $as_echo_n "(cached) " >&6 25755 else 25756 case $NATIVE2ASCII in 25757 [\\/]* | ?:[\\/]*) 25758 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25759 ;; 25760 *) 25761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25762 for as_dir in $PATH 25763 do 25764 IFS=$as_save_IFS 25765 test -z "$as_dir" && as_dir=. 25766 for ac_exec_ext in '' $ac_executable_extensions; do 25767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25768 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25770 break 2 25771 fi 25772 done 25773 done 25774 IFS=$as_save_IFS 25775 25776 ;; 25777 esac 25778 fi 25779 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25780 if test -n "$NATIVE2ASCII"; then 25781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25782 $as_echo "$NATIVE2ASCII" >&6; } 25783 else 25784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25785 $as_echo "no" >&6; } 25786 fi 25787 25788 25789 if test "x$NATIVE2ASCII" = x; then 25790 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25791 fi 25792 else 25793 # Otherwise we believe it is a complete path. Use it as it is. 25794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25795 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25797 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25798 if test ! -x "$tool_specified"; then 25799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25800 $as_echo "not found" >&6; } 25801 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 25802 fi 25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25804 $as_echo "$tool_specified" >&6; } 25805 fi 25806 fi 25807 fi 25808 25809 25810 25811 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25812 25813 # Publish this variable in the help. 25814 25815 25816 if test "x$JARSIGNER" = x; then 25817 # The variable is not set by user, try to locate tool using the code snippet 25818 25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25820 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25821 JARSIGNER=$BOOT_JDK/bin/jarsigner 25822 if test ! -x $JARSIGNER; then 25823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25824 $as_echo "not found" >&6; } 25825 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25826 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25827 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25828 fi 25829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25830 $as_echo "ok" >&6; } 25831 25832 25833 else 25834 # The variable is set, but is it from the command line or the environment? 25835 25836 # Try to remove the string !JARSIGNER! from our list. 25837 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 25838 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25839 # If it failed, the variable was not from the command line. Ignore it, 25840 # but warn the user (except for BASH, which is always set by the calling BASH). 25841 if test "xJARSIGNER" != xBASH; then 25842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 25843 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 25844 fi 25845 # Try to locate tool using the code snippet 25846 25847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25848 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25849 JARSIGNER=$BOOT_JDK/bin/jarsigner 25850 if test ! -x $JARSIGNER; then 25851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25852 $as_echo "not found" >&6; } 25853 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25854 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25855 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25856 fi 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25858 $as_echo "ok" >&6; } 25859 25860 25861 else 25862 # If it succeeded, then it was overridden by the user. We will use it 25863 # for the tool. 25864 25865 # First remove it from the list of overridden variables, so we can test 25866 # for unknown variables in the end. 25867 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25868 25869 # Check if the provided tool contains a complete path. 25870 tool_specified="$JARSIGNER" 25871 tool_basename="${tool_specified##*/}" 25872 if test "x$tool_basename" = "x$tool_specified"; then 25873 # A command without a complete path is provided, search $PATH. 25874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 25875 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 25876 # Extract the first word of "$tool_basename", so it can be a program name with args. 25877 set dummy $tool_basename; ac_word=$2 25878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25879 $as_echo_n "checking for $ac_word... " >&6; } 25880 if ${ac_cv_path_JARSIGNER+:} false; then : 25881 $as_echo_n "(cached) " >&6 25882 else 25883 case $JARSIGNER in 25884 [\\/]* | ?:[\\/]*) 25885 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 25886 ;; 25887 *) 25888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25889 for as_dir in $PATH 25890 do 25891 IFS=$as_save_IFS 25892 test -z "$as_dir" && as_dir=. 25893 for ac_exec_ext in '' $ac_executable_extensions; do 25894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25895 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 25896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25897 break 2 25898 fi 25899 done 25900 done 25901 IFS=$as_save_IFS 25902 25903 ;; 25904 esac 25905 fi 25906 JARSIGNER=$ac_cv_path_JARSIGNER 25907 if test -n "$JARSIGNER"; then 25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 25909 $as_echo "$JARSIGNER" >&6; } 25910 else 25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25912 $as_echo "no" >&6; } 25913 fi 25914 25915 25916 if test "x$JARSIGNER" = x; then 25917 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25918 fi 25919 else 25920 # Otherwise we believe it is a complete path. Use it as it is. 25921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 25922 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 25923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 25924 $as_echo_n "checking for JARSIGNER... " >&6; } 25925 if test ! -x "$tool_specified"; then 25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25927 $as_echo "not found" >&6; } 25928 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 25929 fi 25930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25931 $as_echo "$tool_specified" >&6; } 25932 fi 25933 fi 25934 fi 25935 25936 25937 25938 # Finally, set some other options... 25939 25940 # When compiling code to be executed by the Boot JDK, force jdk8 compatibility. 25941 BOOT_JDK_SOURCETARGET="-source 8 -target 8" 25942 25943 25944 25945 25946 ############################################################################### 25947 # 25948 # Configure the sources to use. We can add or override individual directories. 25949 # 25950 ############################################################################### 25951 25952 25953 # Where are the sources. Any of these can be overridden 25954 # using --with-override-corba and the likes. 25955 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 25956 CORBA_TOPDIR="$SRC_ROOT/corba" 25957 JAXP_TOPDIR="$SRC_ROOT/jaxp" 25958 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 25959 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 25960 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 25961 JDK_TOPDIR="$SRC_ROOT/jdk" 25962 25963 25964 25965 25966 25967 25968 25969 25970 25971 25972 ############################################################################### 25973 # 25974 # Pickup additional source for a component from outside of the source root 25975 # or override source for a component. 25976 # 25977 25978 # Check whether --with-add-source-root was given. 25979 if test "${with_add_source_root+set}" = set; then : 25980 withval=$with_add_source_root; 25981 fi 25982 25983 25984 25985 # Check whether --with-override-source-root was given. 25986 if test "${with_override_source_root+set}" = set; then : 25987 withval=$with_override_source_root; 25988 fi 25989 25990 25991 25992 # Check whether --with-adds-and-overrides was given. 25993 if test "${with_adds_and_overrides+set}" = set; then : 25994 withval=$with_adds_and_overrides; 25995 fi 25996 25997 25998 if test "x$with_adds_and_overrides" != x; then 25999 with_add_source_root="$with_adds_and_overrides/adds" 26000 with_override_source_root="$with_adds_and_overrides/overrides" 26001 fi 26002 26003 if test "x$with_add_source_root" != x; then 26004 if ! test -d $with_add_source_root; then 26005 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26006 fi 26007 CURDIR="$PWD" 26008 cd "$with_add_source_root" 26009 ADD_SRC_ROOT="`pwd`" 26010 cd "$CURDIR" 26011 # Verify that the addon source root does not have any root makefiles. 26012 # If it does, then it is usually an error, prevent this. 26013 if test -f $with_add_source_root/langtools/make/Makefile; then 26014 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 26015 fi 26016 if test -f $with_add_source_root/corba/make/Makefile; then 26017 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 26018 fi 26019 if test -f $with_add_source_root/jaxp/make/Makefile; then 26020 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 26021 fi 26022 if test -f $with_add_source_root/jaxws/make/Makefile; then 26023 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 26024 fi 26025 if test -f $with_add_source_root/hotspot/make/Makefile; then 26026 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 26027 fi 26028 if test -f $with_add_source_root/nashorn/make/Makefile; then 26029 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 26030 fi 26031 if test -f $with_add_source_root/jdk/make/Makefile; then 26032 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 26033 fi 26034 fi 26035 26036 26037 if test "x$with_override_source_root" != x; then 26038 if ! test -d $with_override_source_root; then 26039 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26040 fi 26041 CURDIR="$PWD" 26042 cd "$with_override_source_root" 26043 OVERRIDE_SRC_ROOT="`pwd`" 26044 cd "$CURDIR" 26045 if test -f $with_override_source_root/langtools/make/Makefile; then 26046 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 26047 fi 26048 if test -f $with_override_source_root/corba/make/Makefile; then 26049 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 26050 fi 26051 if test -f $with_override_source_root/jaxp/make/Makefile; then 26052 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 26053 fi 26054 if test -f $with_override_source_root/jaxws/make/Makefile; then 26055 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 26056 fi 26057 if test -f $with_override_source_root/hotspot/make/Makefile; then 26058 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 26059 fi 26060 if test -f $with_override_source_root/nashorn/make/Makefile; then 26061 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 26062 fi 26063 if test -f $with_override_source_root/jdk/make/Makefile; then 26064 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 26065 fi 26066 fi 26067 26068 26069 ############################################################################### 26070 # 26071 # Override a repo completely, this is used for example when you have 3 small 26072 # development sandboxes of the langtools sources and want to avoid having 3 full 26073 # OpenJDK sources checked out on disk. 26074 # 26075 # Assuming that the 3 langtools sandboxes are located here: 26076 # /home/fredrik/sandbox1/langtools 26077 # /home/fredrik/sandbox2/langtools 26078 # /home/fredrik/sandbox3/langtools 26079 # 26080 # From the source root you create build subdirs manually: 26081 # mkdir -p build1 build2 build3 26082 # in each build directory run: 26083 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26084 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26085 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26086 # 26087 26088 26089 # Check whether --with-override-langtools was given. 26090 if test "${with_override_langtools+set}" = set; then : 26091 withval=$with_override_langtools; 26092 fi 26093 26094 26095 26096 # Check whether --with-override-corba was given. 26097 if test "${with_override_corba+set}" = set; then : 26098 withval=$with_override_corba; 26099 fi 26100 26101 26102 26103 # Check whether --with-override-jaxp was given. 26104 if test "${with_override_jaxp+set}" = set; then : 26105 withval=$with_override_jaxp; 26106 fi 26107 26108 26109 26110 # Check whether --with-override-jaxws was given. 26111 if test "${with_override_jaxws+set}" = set; then : 26112 withval=$with_override_jaxws; 26113 fi 26114 26115 26116 26117 # Check whether --with-override-hotspot was given. 26118 if test "${with_override_hotspot+set}" = set; then : 26119 withval=$with_override_hotspot; 26120 fi 26121 26122 26123 26124 # Check whether --with-override-nashorn was given. 26125 if test "${with_override_nashorn+set}" = set; then : 26126 withval=$with_override_nashorn; 26127 fi 26128 26129 26130 26131 # Check whether --with-override-jdk was given. 26132 if test "${with_override_jdk+set}" = set; then : 26133 withval=$with_override_jdk; 26134 fi 26135 26136 26137 if test "x$with_override_langtools" != x; then 26138 CURDIR="$PWD" 26139 cd "$with_override_langtools" 26140 LANGTOOLS_TOPDIR="`pwd`" 26141 cd "$CURDIR" 26142 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26143 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26144 fi 26145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26146 $as_echo_n "checking if langtools should be overridden... " >&6; } 26147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26148 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26149 fi 26150 if test "x$with_override_corba" != x; then 26151 CURDIR="$PWD" 26152 cd "$with_override_corba" 26153 CORBA_TOPDIR="`pwd`" 26154 cd "$CURDIR" 26155 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26156 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26157 fi 26158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26159 $as_echo_n "checking if corba should be overridden... " >&6; } 26160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26161 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26162 fi 26163 if test "x$with_override_jaxp" != x; then 26164 CURDIR="$PWD" 26165 cd "$with_override_jaxp" 26166 JAXP_TOPDIR="`pwd`" 26167 cd "$CURDIR" 26168 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26169 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26170 fi 26171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26172 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26174 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26175 fi 26176 if test "x$with_override_jaxws" != x; then 26177 CURDIR="$PWD" 26178 cd "$with_override_jaxws" 26179 JAXWS_TOPDIR="`pwd`" 26180 cd "$CURDIR" 26181 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26182 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26183 fi 26184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26185 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26187 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26188 fi 26189 if test "x$with_override_hotspot" != x; then 26190 CURDIR="$PWD" 26191 cd "$with_override_hotspot" 26192 HOTSPOT_TOPDIR="`pwd`" 26193 cd "$CURDIR" 26194 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26195 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26196 fi 26197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26198 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26200 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26201 fi 26202 if test "x$with_override_nashorn" != x; then 26203 CURDIR="$PWD" 26204 cd "$with_override_nashorn" 26205 NASHORN_TOPDIR="`pwd`" 26206 cd "$CURDIR" 26207 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26208 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26209 fi 26210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26211 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26213 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26214 fi 26215 if test "x$with_override_jdk" != x; then 26216 CURDIR="$PWD" 26217 cd "$with_override_jdk" 26218 JDK_TOPDIR="`pwd`" 26219 cd "$CURDIR" 26220 if ! test -f $JDK_TOPDIR/make/Makefile; then 26221 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26222 fi 26223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26224 $as_echo_n "checking if JDK should be overridden... " >&6; } 26225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26226 $as_echo "yes with $JDK_TOPDIR" >&6; } 26227 fi 26228 26229 # Check whether --enable-new-hotspot-build was given. 26230 if test "${enable_new_hotspot_build+set}" = set; then : 26231 enableval=$enable_new_hotspot_build; 26232 fi 26233 26234 26235 if test "x$enable_new_hotspot_build" = "x" || test "x$enable_new_hotspot_build" = "xno"; then 26236 USE_NEW_HOTSPOT_BUILD=false 26237 else 26238 USE_NEW_HOTSPOT_BUILD=true 26239 fi 26240 26241 26242 26243 BUILD_OUTPUT="$OUTPUT_ROOT" 26244 26245 26246 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26247 BUILD_HOTSPOT=true 26248 26249 26250 26251 # Check whether --with-import-hotspot was given. 26252 if test "${with_import_hotspot+set}" = set; then : 26253 withval=$with_import_hotspot; 26254 fi 26255 26256 if test "x$with_import_hotspot" != x; then 26257 CURDIR="$PWD" 26258 cd "$with_import_hotspot" 26259 HOTSPOT_DIST="`pwd`" 26260 cd "$CURDIR" 26261 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26262 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26263 fi 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26265 $as_echo_n "checking if hotspot should be imported... " >&6; } 26266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26267 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26268 BUILD_HOTSPOT=false 26269 fi 26270 26271 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26272 26273 26274 ############################################################################### 26275 # 26276 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26277 # native code. 26278 # 26279 ############################################################################### 26280 26281 # First determine the toolchain type (compiler family) 26282 26283 26284 # Check whether --with-toolchain-type was given. 26285 if test "${with_toolchain_type+set}" = set; then : 26286 withval=$with_toolchain_type; 26287 fi 26288 26289 26290 # Use indirect variable referencing 26291 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26292 VALID_TOOLCHAINS=${!toolchain_var_name} 26293 26294 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26295 if test -n "$XCODEBUILD"; then 26296 # On Mac OS X, default toolchain to clang after Xcode 5 26297 XCODE_VERSION_OUTPUT=`"$XCODEBUILD" -version 2>&1 | $HEAD -n 1` 26298 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26299 if test $? -ne 0; then 26300 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26301 fi 26302 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26303 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26304 $CUT -f 1 -d .` 26305 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26306 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26307 if test $XCODE_MAJOR_VERSION -ge 5; then 26308 DEFAULT_TOOLCHAIN="clang" 26309 else 26310 DEFAULT_TOOLCHAIN="gcc" 26311 fi 26312 else 26313 # If Xcode is not installed, but the command line tools are 26314 # then we can't run xcodebuild. On these systems we should 26315 # default to clang 26316 DEFAULT_TOOLCHAIN="clang" 26317 fi 26318 else 26319 # First toolchain type in the list is the default 26320 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26321 fi 26322 26323 if test "x$with_toolchain_type" = xlist; then 26324 # List all toolchains 26325 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26326 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26327 for toolchain in $VALID_TOOLCHAINS; do 26328 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26329 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26330 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26331 done 26332 26333 exit 0 26334 elif test "x$with_toolchain_type" != x; then 26335 # User override; check that it is valid 26336 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26337 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26338 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26339 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26340 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26341 as_fn_error $? "Cannot continue." "$LINENO" 5 26342 fi 26343 TOOLCHAIN_TYPE=$with_toolchain_type 26344 else 26345 # No flag given, use default 26346 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26347 fi 26348 26349 26350 TOOLCHAIN_CC_BINARY_clang="clang" 26351 TOOLCHAIN_CC_BINARY_gcc="gcc" 26352 TOOLCHAIN_CC_BINARY_microsoft="cl" 26353 TOOLCHAIN_CC_BINARY_solstudio="cc" 26354 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26355 26356 TOOLCHAIN_CXX_BINARY_clang="clang++" 26357 TOOLCHAIN_CXX_BINARY_gcc="g++" 26358 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26359 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26360 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26361 26362 # Use indirect variable referencing 26363 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26364 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26365 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26366 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26367 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26368 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26369 26370 26371 # Define filename patterns 26372 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26373 LIBRARY_PREFIX= 26374 SHARED_LIBRARY_SUFFIX='.dll' 26375 STATIC_LIBRARY_SUFFIX='.lib' 26376 SHARED_LIBRARY='$1.dll' 26377 STATIC_LIBRARY='$1.lib' 26378 OBJ_SUFFIX='.obj' 26379 EXE_SUFFIX='.exe' 26380 else 26381 LIBRARY_PREFIX=lib 26382 SHARED_LIBRARY_SUFFIX='.so' 26383 STATIC_LIBRARY_SUFFIX='.a' 26384 SHARED_LIBRARY='lib$1.so' 26385 STATIC_LIBRARY='lib$1.a' 26386 OBJ_SUFFIX='.o' 26387 EXE_SUFFIX='' 26388 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26389 SHARED_LIBRARY='lib$1.dylib' 26390 SHARED_LIBRARY_SUFFIX='.dylib' 26391 fi 26392 fi 26393 26394 26395 26396 26397 26398 26399 26400 26401 26402 26403 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26404 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26405 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26406 else 26407 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26408 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26409 fi 26410 26411 26412 # Then detect the actual binaries needed 26413 26414 # FIXME: Is this needed? 26415 ac_ext=cpp 26416 ac_cpp='$CXXCPP $CPPFLAGS' 26417 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26418 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26419 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26420 26421 26422 # Store the CFLAGS etc passed to the configure script. 26423 ORG_CFLAGS="$CFLAGS" 26424 ORG_CXXFLAGS="$CXXFLAGS" 26425 ORG_OBJCFLAGS="$OBJCFLAGS" 26426 26427 # On Windows, we need to detect the visual studio installation first. 26428 # This will change the PATH, but we need to keep that new PATH even 26429 # after toolchain detection is done, since the compiler (on x86) uses 26430 # it for DLL resolution in runtime. 26431 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26432 26433 # Store path to cygwin link.exe to help excluding it when searching for 26434 # VS linker. This must be done before changing the PATH when looking for VS. 26435 # Extract the first word of "link", so it can be a program name with args. 26436 set dummy link; ac_word=$2 26437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26438 $as_echo_n "checking for $ac_word... " >&6; } 26439 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26440 $as_echo_n "(cached) " >&6 26441 else 26442 case $CYGWIN_LINK in 26443 [\\/]* | ?:[\\/]*) 26444 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26445 ;; 26446 *) 26447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26448 for as_dir in $PATH 26449 do 26450 IFS=$as_save_IFS 26451 test -z "$as_dir" && as_dir=. 26452 for ac_exec_ext in '' $ac_executable_extensions; do 26453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26454 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26456 break 2 26457 fi 26458 done 26459 done 26460 IFS=$as_save_IFS 26461 26462 ;; 26463 esac 26464 fi 26465 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26466 if test -n "$CYGWIN_LINK"; then 26467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26468 $as_echo "$CYGWIN_LINK" >&6; } 26469 else 26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26471 $as_echo "no" >&6; } 26472 fi 26473 26474 26475 if test "x$CYGWIN_LINK" != x; then 26476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26477 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26478 "$CYGWIN_LINK" --version > /dev/null 26479 if test $? -eq 0 ; then 26480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26481 $as_echo "yes" >&6; } 26482 else 26483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26484 $as_echo "no" >&6; } 26485 # This might be the VS linker. Don't exclude it later on. 26486 CYGWIN_LINK="" 26487 fi 26488 fi 26489 26490 # First-hand choice is to locate and run the vsvars bat file. 26491 26492 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26493 VCVARSFILE="vc/bin/vcvars32.bat" 26494 else 26495 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26496 fi 26497 26498 VS_ENV_CMD="" 26499 VS_ENV_ARGS="" 26500 if test "x$with_toolsdir" != x; then 26501 26502 if test "x$VS_ENV_CMD" = x; then 26503 VS100BASE="$with_toolsdir/../.." 26504 METHOD="--with-tools-dir" 26505 26506 windows_path="$VS100BASE" 26507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26508 unix_path=`$CYGPATH -u "$windows_path"` 26509 VS100BASE="$unix_path" 26510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26512 VS100BASE="$unix_path" 26513 fi 26514 26515 if test -d "$VS100BASE"; then 26516 if test -f "$VS100BASE/$VCVARSFILE"; then 26517 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26518 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26519 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26520 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26521 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26522 # TODO: improve detection for other versions of VS 26523 PLATFORM_TOOLSET="v100" 26524 else 26525 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26526 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26527 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26528 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26529 fi 26530 fi 26531 fi 26532 26533 fi 26534 26535 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26536 # Having specified an argument which is incorrect will produce an instant failure; 26537 # we should not go on looking 26538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26539 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26540 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26541 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26542 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26543 fi 26544 26545 if test "x$VS100COMNTOOLS" != x; then 26546 26547 if test "x$VS_ENV_CMD" = x; then 26548 VS100BASE="$VS100COMNTOOLS/../.." 26549 METHOD="VS100COMNTOOLS variable" 26550 26551 windows_path="$VS100BASE" 26552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26553 unix_path=`$CYGPATH -u "$windows_path"` 26554 VS100BASE="$unix_path" 26555 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26556 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26557 VS100BASE="$unix_path" 26558 fi 26559 26560 if test -d "$VS100BASE"; then 26561 if test -f "$VS100BASE/$VCVARSFILE"; then 26562 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26563 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26564 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26565 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26566 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26567 # TODO: improve detection for other versions of VS 26568 PLATFORM_TOOLSET="v100" 26569 else 26570 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26571 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26572 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26573 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26574 fi 26575 fi 26576 fi 26577 26578 fi 26579 if test "x$PROGRAMFILES" != x; then 26580 26581 if test "x$VS_ENV_CMD" = x; then 26582 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26583 METHOD="well-known name" 26584 26585 windows_path="$VS100BASE" 26586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26587 unix_path=`$CYGPATH -u "$windows_path"` 26588 VS100BASE="$unix_path" 26589 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26590 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26591 VS100BASE="$unix_path" 26592 fi 26593 26594 if test -d "$VS100BASE"; then 26595 if test -f "$VS100BASE/$VCVARSFILE"; then 26596 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26597 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26598 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26599 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26600 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26601 # TODO: improve detection for other versions of VS 26602 PLATFORM_TOOLSET="v100" 26603 else 26604 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26605 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26606 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26607 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26608 fi 26609 fi 26610 fi 26611 26612 fi 26613 26614 if test "x$VS_ENV_CMD" = x; then 26615 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26616 METHOD="well-known name" 26617 26618 windows_path="$VS100BASE" 26619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26620 unix_path=`$CYGPATH -u "$windows_path"` 26621 VS100BASE="$unix_path" 26622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26624 VS100BASE="$unix_path" 26625 fi 26626 26627 if test -d "$VS100BASE"; then 26628 if test -f "$VS100BASE/$VCVARSFILE"; then 26629 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26630 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26631 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26632 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26633 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26634 # TODO: improve detection for other versions of VS 26635 PLATFORM_TOOLSET="v100" 26636 else 26637 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26638 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26639 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26640 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26641 fi 26642 fi 26643 fi 26644 26645 26646 if test "x$VS_ENV_CMD" = x; then 26647 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 26648 METHOD="well-known name" 26649 26650 windows_path="$VS100BASE" 26651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26652 unix_path=`$CYGPATH -u "$windows_path"` 26653 VS100BASE="$unix_path" 26654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26656 VS100BASE="$unix_path" 26657 fi 26658 26659 if test -d "$VS100BASE"; then 26660 if test -f "$VS100BASE/$VCVARSFILE"; then 26661 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26662 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26663 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26664 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26665 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be one of 'v100', 'v110' or 'v120' for VS 2010, 2012 or VS2013 26666 # TODO: improve detection for other versions of VS 26667 PLATFORM_TOOLSET="v100" 26668 else 26669 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26670 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26671 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26672 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26673 fi 26674 fi 26675 fi 26676 26677 26678 if test "x$ProgramW6432" != x; then 26679 26680 if test "x$VS_ENV_CMD" = x; then 26681 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 26682 METHOD="well-known name" 26683 26684 windows_path="$WIN_SDK_BASE" 26685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26686 unix_path=`$CYGPATH -u "$windows_path"` 26687 WIN_SDK_BASE="$unix_path" 26688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26690 WIN_SDK_BASE="$unix_path" 26691 fi 26692 26693 if test -d "$WIN_SDK_BASE"; then 26694 # There have been cases of partial or broken SDK installations. A missing 26695 # lib dir is not going to work. 26696 if test ! -d "$WIN_SDK_BASE/../lib"; then 26697 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26698 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26699 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26700 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26701 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26702 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26703 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26704 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26705 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26706 VS_ENV_ARGS="/x86" 26707 else 26708 VS_ENV_ARGS="/x64" 26709 fi 26710 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26711 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26712 # TODO: improve detection for other versions of SDK 26713 PLATFORM_TOOLSET="Windows7.1SDK" 26714 else 26715 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26716 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26717 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26718 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26719 fi 26720 fi 26721 fi 26722 26723 fi 26724 if test "x$PROGRAMW6432" != x; then 26725 26726 if test "x$VS_ENV_CMD" = x; then 26727 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 26728 METHOD="well-known name" 26729 26730 windows_path="$WIN_SDK_BASE" 26731 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26732 unix_path=`$CYGPATH -u "$windows_path"` 26733 WIN_SDK_BASE="$unix_path" 26734 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26735 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26736 WIN_SDK_BASE="$unix_path" 26737 fi 26738 26739 if test -d "$WIN_SDK_BASE"; then 26740 # There have been cases of partial or broken SDK installations. A missing 26741 # lib dir is not going to work. 26742 if test ! -d "$WIN_SDK_BASE/../lib"; then 26743 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26744 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26745 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26746 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26747 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26748 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26749 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26750 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26751 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26752 VS_ENV_ARGS="/x86" 26753 else 26754 VS_ENV_ARGS="/x64" 26755 fi 26756 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26757 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26758 # TODO: improve detection for other versions of SDK 26759 PLATFORM_TOOLSET="Windows7.1SDK" 26760 else 26761 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26762 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26763 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26764 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26765 fi 26766 fi 26767 fi 26768 26769 fi 26770 if test "x$PROGRAMFILES" != x; then 26771 26772 if test "x$VS_ENV_CMD" = x; then 26773 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 26774 METHOD="well-known name" 26775 26776 windows_path="$WIN_SDK_BASE" 26777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26778 unix_path=`$CYGPATH -u "$windows_path"` 26779 WIN_SDK_BASE="$unix_path" 26780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26782 WIN_SDK_BASE="$unix_path" 26783 fi 26784 26785 if test -d "$WIN_SDK_BASE"; then 26786 # There have been cases of partial or broken SDK installations. A missing 26787 # lib dir is not going to work. 26788 if test ! -d "$WIN_SDK_BASE/../lib"; then 26789 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26790 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26791 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26792 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26793 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26794 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26795 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26796 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26797 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26798 VS_ENV_ARGS="/x86" 26799 else 26800 VS_ENV_ARGS="/x64" 26801 fi 26802 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26803 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26804 # TODO: improve detection for other versions of SDK 26805 PLATFORM_TOOLSET="Windows7.1SDK" 26806 else 26807 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26808 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26809 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26810 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26811 fi 26812 fi 26813 fi 26814 26815 fi 26816 26817 if test "x$VS_ENV_CMD" = x; then 26818 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 26819 METHOD="well-known name" 26820 26821 windows_path="$WIN_SDK_BASE" 26822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26823 unix_path=`$CYGPATH -u "$windows_path"` 26824 WIN_SDK_BASE="$unix_path" 26825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26827 WIN_SDK_BASE="$unix_path" 26828 fi 26829 26830 if test -d "$WIN_SDK_BASE"; then 26831 # There have been cases of partial or broken SDK installations. A missing 26832 # lib dir is not going to work. 26833 if test ! -d "$WIN_SDK_BASE/../lib"; then 26834 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26835 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26836 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26837 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26838 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26839 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26840 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26841 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26842 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26843 VS_ENV_ARGS="/x86" 26844 else 26845 VS_ENV_ARGS="/x64" 26846 fi 26847 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26848 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26849 # TODO: improve detection for other versions of SDK 26850 PLATFORM_TOOLSET="Windows7.1SDK" 26851 else 26852 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26853 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26854 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26855 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26856 fi 26857 fi 26858 fi 26859 26860 26861 if test "x$VS_ENV_CMD" = x; then 26862 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 26863 METHOD="well-known name" 26864 26865 windows_path="$WIN_SDK_BASE" 26866 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26867 unix_path=`$CYGPATH -u "$windows_path"` 26868 WIN_SDK_BASE="$unix_path" 26869 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26870 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26871 WIN_SDK_BASE="$unix_path" 26872 fi 26873 26874 if test -d "$WIN_SDK_BASE"; then 26875 # There have been cases of partial or broken SDK installations. A missing 26876 # lib dir is not going to work. 26877 if test ! -d "$WIN_SDK_BASE/../lib"; then 26878 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26879 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26880 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26881 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26882 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26883 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26884 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26885 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26886 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26887 VS_ENV_ARGS="/x86" 26888 else 26889 VS_ENV_ARGS="/x64" 26890 fi 26891 # PLATFORM_TOOLSET is used during the compilation of the freetype sources (see 26892 # 'LIB_BUILD_FREETYPE' in libraries.m4) and must be 'Windows7.1SDK' for Windows7.1SDK 26893 # TODO: improve detection for other versions of SDK 26894 PLATFORM_TOOLSET="Windows7.1SDK" 26895 else 26896 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26897 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26898 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26899 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26900 fi 26901 fi 26902 fi 26903 26904 26905 if test "x$VS_ENV_CMD" != x; then 26906 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26907 26908 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26909 26910 # First separate the path from the arguments. This will split at the first 26911 # space. 26912 complete="$VS_ENV_CMD" 26913 path="${complete%% *}" 26914 tmp="$complete EOL" 26915 arguments="${tmp#* }" 26916 26917 # Input might be given as Windows format, start by converting to 26918 # unix format. 26919 new_path=`$CYGPATH -u "$path"` 26920 26921 # Now try to locate executable using which 26922 new_path=`$WHICH "$new_path" 2> /dev/null` 26923 # bat and cmd files are not always considered executable in cygwin causing which 26924 # to not find them 26925 if test "x$new_path" = x \ 26926 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26927 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26928 new_path=`$CYGPATH -u "$path"` 26929 fi 26930 if test "x$new_path" = x; then 26931 # Oops. Which didn't find the executable. 26932 # The splitting of arguments from the executable at a space might have been incorrect, 26933 # since paths with space are more likely in Windows. Give it another try with the whole 26934 # argument. 26935 path="$complete" 26936 arguments="EOL" 26937 new_path=`$CYGPATH -u "$path"` 26938 new_path=`$WHICH "$new_path" 2> /dev/null` 26939 # bat and cmd files are not always considered executable in cygwin causing which 26940 # to not find them 26941 if test "x$new_path" = x \ 26942 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26943 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26944 new_path=`$CYGPATH -u "$path"` 26945 fi 26946 if test "x$new_path" = x; then 26947 # It's still not found. Now this is an unrecoverable error. 26948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26949 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26950 has_space=`$ECHO "$complete" | $GREP " "` 26951 if test "x$has_space" != x; then 26952 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26953 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26954 fi 26955 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26956 fi 26957 fi 26958 26959 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26960 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26961 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26962 # "foo.exe" is OK but "foo" is an error. 26963 # 26964 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26965 # It is also a way to make sure we got the proper file name for the real test later on. 26966 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26967 if test "x$test_shortpath" = x; then 26968 # Short path failed, file does not exist as specified. 26969 # Try adding .exe or .cmd 26970 if test -f "${new_path}.exe"; then 26971 input_to_shortpath="${new_path}.exe" 26972 elif test -f "${new_path}.cmd"; then 26973 input_to_shortpath="${new_path}.cmd" 26974 else 26975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 26976 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 26977 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26978 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26979 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26980 fi 26981 else 26982 input_to_shortpath="$new_path" 26983 fi 26984 26985 # Call helper function which possibly converts this using DOS-style short mode. 26986 # If so, the updated path is stored in $new_path. 26987 new_path="$input_to_shortpath" 26988 26989 input_path="$input_to_shortpath" 26990 # Check if we need to convert this using DOS-style short mode. If the path 26991 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26992 # take no chances and rewrite it. 26993 # Note: m4 eats our [], so we need to use [ and ] instead. 26994 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26995 if test "x$has_forbidden_chars" != x; then 26996 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26997 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26998 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26999 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27000 # Going to short mode and back again did indeed matter. Since short mode is 27001 # case insensitive, let's make it lowercase to improve readability. 27002 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27003 # Now convert it back to Unix-stile (cygpath) 27004 input_path=`$CYGPATH -u "$shortmode_path"` 27005 new_path="$input_path" 27006 fi 27007 fi 27008 27009 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27010 if test "x$test_cygdrive_prefix" = x; then 27011 # As a simple fix, exclude /usr/bin since it's not a real path. 27012 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27013 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27014 # a path prefixed by /cygdrive for fixpath to work. 27015 new_path="$CYGWIN_ROOT_PATH$input_path" 27016 fi 27017 fi 27018 27019 # remove trailing .exe if any 27020 new_path="${new_path/%.exe/}" 27021 27022 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27023 27024 # First separate the path from the arguments. This will split at the first 27025 # space. 27026 complete="$VS_ENV_CMD" 27027 path="${complete%% *}" 27028 tmp="$complete EOL" 27029 arguments="${tmp#* }" 27030 27031 # Input might be given as Windows format, start by converting to 27032 # unix format. 27033 new_path="$path" 27034 27035 windows_path="$new_path" 27036 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27037 unix_path=`$CYGPATH -u "$windows_path"` 27038 new_path="$unix_path" 27039 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27040 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27041 new_path="$unix_path" 27042 fi 27043 27044 27045 # Now try to locate executable using which 27046 new_path=`$WHICH "$new_path" 2> /dev/null` 27047 27048 if test "x$new_path" = x; then 27049 # Oops. Which didn't find the executable. 27050 # The splitting of arguments from the executable at a space might have been incorrect, 27051 # since paths with space are more likely in Windows. Give it another try with the whole 27052 # argument. 27053 path="$complete" 27054 arguments="EOL" 27055 new_path="$path" 27056 27057 windows_path="$new_path" 27058 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27059 unix_path=`$CYGPATH -u "$windows_path"` 27060 new_path="$unix_path" 27061 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27062 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27063 new_path="$unix_path" 27064 fi 27065 27066 27067 new_path=`$WHICH "$new_path" 2> /dev/null` 27068 # bat and cmd files are not always considered executable in MSYS causing which 27069 # to not find them 27070 if test "x$new_path" = x \ 27071 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27072 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27073 new_path="$path" 27074 27075 windows_path="$new_path" 27076 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27077 unix_path=`$CYGPATH -u "$windows_path"` 27078 new_path="$unix_path" 27079 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27080 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27081 new_path="$unix_path" 27082 fi 27083 27084 fi 27085 27086 if test "x$new_path" = x; then 27087 # It's still not found. Now this is an unrecoverable error. 27088 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27089 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27090 has_space=`$ECHO "$complete" | $GREP " "` 27091 if test "x$has_space" != x; then 27092 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27093 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27094 fi 27095 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27096 fi 27097 fi 27098 27099 # Now new_path has a complete unix path to the binary 27100 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27101 # Keep paths in /bin as-is, but remove trailing .exe if any 27102 new_path="${new_path/%.exe/}" 27103 # Do not save /bin paths to all_fixpath_prefixes! 27104 else 27105 # Not in mixed or Windows style, start by that. 27106 new_path=`cmd //c echo $new_path` 27107 27108 input_path="$new_path" 27109 # Check if we need to convert this using DOS-style short mode. If the path 27110 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27111 # take no chances and rewrite it. 27112 # Note: m4 eats our [], so we need to use [ and ] instead. 27113 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27114 if test "x$has_forbidden_chars" != x; then 27115 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27116 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27117 fi 27118 27119 # Output is in $new_path 27120 27121 windows_path="$new_path" 27122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27123 unix_path=`$CYGPATH -u "$windows_path"` 27124 new_path="$unix_path" 27125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27127 new_path="$unix_path" 27128 fi 27129 27130 # remove trailing .exe if any 27131 new_path="${new_path/%.exe/}" 27132 27133 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27134 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27135 fi 27136 27137 else 27138 # We're on a unix platform. Hooray! :) 27139 # First separate the path from the arguments. This will split at the first 27140 # space. 27141 complete="$VS_ENV_CMD" 27142 path="${complete%% *}" 27143 tmp="$complete EOL" 27144 arguments="${tmp#* }" 27145 27146 # Cannot rely on the command "which" here since it doesn't always work. 27147 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27148 if test -z "$is_absolute_path"; then 27149 # Path to executable is not absolute. Find it. 27150 IFS_save="$IFS" 27151 IFS=: 27152 for p in $PATH; do 27153 if test -f "$p/$path" && test -x "$p/$path"; then 27154 new_path="$p/$path" 27155 break 27156 fi 27157 done 27158 IFS="$IFS_save" 27159 else 27160 # This is an absolute path, we can use it without further modifications. 27161 new_path="$path" 27162 fi 27163 27164 if test "x$new_path" = x; then 27165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27166 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27167 has_space=`$ECHO "$complete" | $GREP " "` 27168 if test "x$has_space" != x; then 27169 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27170 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27171 fi 27172 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27173 fi 27174 fi 27175 27176 # Now join together the path and the arguments once again 27177 if test "x$arguments" != xEOL; then 27178 new_complete="$new_path ${arguments% *}" 27179 else 27180 new_complete="$new_path" 27181 fi 27182 27183 if test "x$complete" != "x$new_complete"; then 27184 VS_ENV_CMD="$new_complete" 27185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27186 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27187 fi 27188 27189 27190 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27191 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27192 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27193 27194 # We need to create a couple of temporary files. 27195 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 27196 $MKDIR -p $VS_ENV_TMP_DIR 27197 27198 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 27199 # Instead create a shell script which will set the relevant variables when run. 27200 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 27201 27202 unix_path="$WINPATH_VS_ENV_CMD" 27203 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27204 windows_path=`$CYGPATH -m "$unix_path"` 27205 WINPATH_VS_ENV_CMD="$windows_path" 27206 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27207 windows_path=`cmd //c echo $unix_path` 27208 WINPATH_VS_ENV_CMD="$windows_path" 27209 fi 27210 27211 WINPATH_BASH="$BASH" 27212 27213 unix_path="$WINPATH_BASH" 27214 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27215 windows_path=`$CYGPATH -m "$unix_path"` 27216 WINPATH_BASH="$windows_path" 27217 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27218 windows_path=`cmd //c echo $unix_path` 27219 WINPATH_BASH="$windows_path" 27220 fi 27221 27222 27223 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 27224 # script (executable by bash) that will setup the important variables. 27225 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 27226 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 27227 # This will end up something like: 27228 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 27229 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 27230 # These will end up something like: 27231 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 27232 # The trailing space for everyone except PATH is no typo, but is needed due 27233 # to trailing \ in the Windows paths. These will be stripped later. 27234 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27235 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27236 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27237 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27238 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27239 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 27240 27241 # Now execute the newly created bat file. 27242 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 27243 # Change directory so we don't need to mess with Windows paths in redirects. 27244 cd $VS_ENV_TMP_DIR 27245 cmd /c extract-vs-env.bat | $CAT 27246 cd $CURDIR 27247 27248 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 27249 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27250 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27251 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27252 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27253 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27254 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27255 as_fn_error $? "Cannot continue" "$LINENO" 5 27256 fi 27257 27258 # Now set all paths and other env variables. This will allow the rest of 27259 # the configure script to find and run the compiler in the proper way. 27260 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27261 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27262 . $VS_ENV_TMP_DIR/set-vs-env.sh 27263 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 27264 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 27265 else 27266 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27267 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27268 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27269 fi 27270 27271 # At this point, we should have correct variables in the environment, or we can't continue. 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27273 $as_echo_n "checking for Visual Studio variables... " >&6; } 27274 27275 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27276 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 27277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27278 $as_echo "present but broken" >&6; } 27279 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27280 else 27281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27282 $as_echo "ok" >&6; } 27283 # Remove any trailing "\" and " " from the variables. 27284 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 27285 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 27286 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 27287 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 27288 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 27289 # Remove any paths containing # (typically F#) as that messes up make. This 27290 # is needed if visual studio was installed with F# support. 27291 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 27292 27293 27294 27295 27296 fi 27297 else 27298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27299 $as_echo "not found" >&6; } 27300 27301 if test "x$VS_ENV_CMD" = x; then 27302 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27303 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27305 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27306 else 27307 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27308 $as_echo "$as_me: Running the extraction script failed." >&6;} 27309 fi 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27311 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27312 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27313 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27314 as_fn_error $? "Cannot continue" "$LINENO" 5 27315 fi 27316 27317 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 27318 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 27319 PATH="$VS_PATH" 27320 # The microsoft toolchain also requires INCLUDE and LIB to be set. 27321 export INCLUDE="$VS_INCLUDE" 27322 export LIB="$VS_LIB" 27323 fi 27324 27325 # autoconf magic only relies on PATH, so update it if tools dir is specified 27326 OLD_PATH="$PATH" 27327 27328 # For solaris we really need solaris tools, and not the GNU equivalent. 27329 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27330 # so add that to path before starting to probe. 27331 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27332 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27333 PATH="/usr/ccs/bin:$PATH" 27334 fi 27335 27336 # Finally add TOOLCHAIN_PATH at the beginning, to allow --with-tools-dir to 27337 # override all other locations. 27338 if test "x$TOOLCHAIN_PATH" != x; then 27339 PATH=$TOOLCHAIN_PATH:$PATH 27340 fi 27341 27342 27343 # 27344 # Setup the compilers (CC and CXX) 27345 # 27346 27347 COMPILER_NAME=C 27348 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27349 27350 if test "x$CC" != x; then 27351 # User has supplied compiler name already, always let that override. 27352 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27353 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27354 if test "x`basename $CC`" = "x$CC"; then 27355 # A command without a complete path is provided, search $PATH. 27356 27357 for ac_prog in $CC 27358 do 27359 # Extract the first word of "$ac_prog", so it can be a program name with args. 27360 set dummy $ac_prog; ac_word=$2 27361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27362 $as_echo_n "checking for $ac_word... " >&6; } 27363 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27364 $as_echo_n "(cached) " >&6 27365 else 27366 case $POTENTIAL_CC in 27367 [\\/]* | ?:[\\/]*) 27368 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27369 ;; 27370 *) 27371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27372 for as_dir in $PATH 27373 do 27374 IFS=$as_save_IFS 27375 test -z "$as_dir" && as_dir=. 27376 for ac_exec_ext in '' $ac_executable_extensions; do 27377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27378 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27380 break 2 27381 fi 27382 done 27383 done 27384 IFS=$as_save_IFS 27385 27386 ;; 27387 esac 27388 fi 27389 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27390 if test -n "$POTENTIAL_CC"; then 27391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27392 $as_echo "$POTENTIAL_CC" >&6; } 27393 else 27394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27395 $as_echo "no" >&6; } 27396 fi 27397 27398 27399 test -n "$POTENTIAL_CC" && break 27400 done 27401 27402 if test "x$POTENTIAL_CC" != x; then 27403 CC=$POTENTIAL_CC 27404 else 27405 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27406 fi 27407 else 27408 # Otherwise it might already be a complete path 27409 if test ! -x "$CC"; then 27410 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27411 fi 27412 fi 27413 else 27414 # No user supplied value. Locate compiler ourselves. 27415 27416 # If we are cross compiling, assume cross compilation tools follows the 27417 # cross compilation standard where they are prefixed with the autoconf 27418 # standard name for the target. For example the binary 27419 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27420 # If we are not cross compiling, then the default compiler name will be 27421 # used. 27422 27423 CC= 27424 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 27425 # before checking the rest of the PATH. 27426 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27427 # step, this should not be necessary. 27428 if test -n "$TOOLCHAIN_PATH"; then 27429 PATH_save="$PATH" 27430 PATH="$TOOLCHAIN_PATH" 27431 for ac_prog in $SEARCH_LIST 27432 do 27433 # Extract the first word of "$ac_prog", so it can be a program name with args. 27434 set dummy $ac_prog; ac_word=$2 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27436 $as_echo_n "checking for $ac_word... " >&6; } 27437 if ${ac_cv_path_TOOLCHAIN_PATH_CC+:} false; then : 27438 $as_echo_n "(cached) " >&6 27439 else 27440 case $TOOLCHAIN_PATH_CC in 27441 [\\/]* | ?:[\\/]*) 27442 ac_cv_path_TOOLCHAIN_PATH_CC="$TOOLCHAIN_PATH_CC" # Let the user override the test with a path. 27443 ;; 27444 *) 27445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27446 for as_dir in $PATH 27447 do 27448 IFS=$as_save_IFS 27449 test -z "$as_dir" && as_dir=. 27450 for ac_exec_ext in '' $ac_executable_extensions; do 27451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27452 ac_cv_path_TOOLCHAIN_PATH_CC="$as_dir/$ac_word$ac_exec_ext" 27453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27454 break 2 27455 fi 27456 done 27457 done 27458 IFS=$as_save_IFS 27459 27460 ;; 27461 esac 27462 fi 27463 TOOLCHAIN_PATH_CC=$ac_cv_path_TOOLCHAIN_PATH_CC 27464 if test -n "$TOOLCHAIN_PATH_CC"; then 27465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CC" >&5 27466 $as_echo "$TOOLCHAIN_PATH_CC" >&6; } 27467 else 27468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27469 $as_echo "no" >&6; } 27470 fi 27471 27472 27473 test -n "$TOOLCHAIN_PATH_CC" && break 27474 done 27475 27476 CC=$TOOLCHAIN_PATH_CC 27477 PATH="$PATH_save" 27478 fi 27479 27480 # AC_PATH_PROGS can't be run multiple times with the same variable, 27481 # so create a new name for this run. 27482 if test "x$CC" = x; then 27483 for ac_prog in $SEARCH_LIST 27484 do 27485 # Extract the first word of "$ac_prog", so it can be a program name with args. 27486 set dummy $ac_prog; ac_word=$2 27487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27488 $as_echo_n "checking for $ac_word... " >&6; } 27489 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27490 $as_echo_n "(cached) " >&6 27491 else 27492 case $POTENTIAL_CC in 27493 [\\/]* | ?:[\\/]*) 27494 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27495 ;; 27496 *) 27497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27498 for as_dir in $PATH 27499 do 27500 IFS=$as_save_IFS 27501 test -z "$as_dir" && as_dir=. 27502 for ac_exec_ext in '' $ac_executable_extensions; do 27503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27504 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27506 break 2 27507 fi 27508 done 27509 done 27510 IFS=$as_save_IFS 27511 27512 ;; 27513 esac 27514 fi 27515 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27516 if test -n "$POTENTIAL_CC"; then 27517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27518 $as_echo "$POTENTIAL_CC" >&6; } 27519 else 27520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27521 $as_echo "no" >&6; } 27522 fi 27523 27524 27525 test -n "$POTENTIAL_CC" && break 27526 done 27527 27528 CC=$POTENTIAL_CC 27529 fi 27530 27531 if test "x$CC" = x; then 27532 27533 # Print a helpful message on how to acquire the necessary build dependency. 27534 # devkit is the help tag: freetype, cups, pulse, alsa etc 27535 MISSING_DEPENDENCY=devkit 27536 27537 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27538 cygwin_help $MISSING_DEPENDENCY 27539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27540 msys_help $MISSING_DEPENDENCY 27541 else 27542 PKGHANDLER_COMMAND= 27543 27544 case $PKGHANDLER in 27545 apt-get) 27546 apt_help $MISSING_DEPENDENCY ;; 27547 yum) 27548 yum_help $MISSING_DEPENDENCY ;; 27549 port) 27550 port_help $MISSING_DEPENDENCY ;; 27551 pkgutil) 27552 pkgutil_help $MISSING_DEPENDENCY ;; 27553 pkgadd) 27554 pkgadd_help $MISSING_DEPENDENCY ;; 27555 esac 27556 27557 if test "x$PKGHANDLER_COMMAND" != x; then 27558 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27559 fi 27560 fi 27561 27562 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27563 fi 27564 fi 27565 27566 # Now we have a compiler binary in CC. Make sure it's okay. 27567 27568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27569 27570 # First separate the path from the arguments. This will split at the first 27571 # space. 27572 complete="$CC" 27573 path="${complete%% *}" 27574 tmp="$complete EOL" 27575 arguments="${tmp#* }" 27576 27577 # Input might be given as Windows format, start by converting to 27578 # unix format. 27579 new_path=`$CYGPATH -u "$path"` 27580 27581 # Now try to locate executable using which 27582 new_path=`$WHICH "$new_path" 2> /dev/null` 27583 # bat and cmd files are not always considered executable in cygwin causing which 27584 # to not find them 27585 if test "x$new_path" = x \ 27586 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27587 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27588 new_path=`$CYGPATH -u "$path"` 27589 fi 27590 if test "x$new_path" = x; then 27591 # Oops. Which didn't find the executable. 27592 # The splitting of arguments from the executable at a space might have been incorrect, 27593 # since paths with space are more likely in Windows. Give it another try with the whole 27594 # argument. 27595 path="$complete" 27596 arguments="EOL" 27597 new_path=`$CYGPATH -u "$path"` 27598 new_path=`$WHICH "$new_path" 2> /dev/null` 27599 # bat and cmd files are not always considered executable in cygwin causing which 27600 # to not find them 27601 if test "x$new_path" = x \ 27602 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27603 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27604 new_path=`$CYGPATH -u "$path"` 27605 fi 27606 if test "x$new_path" = x; then 27607 # It's still not found. Now this is an unrecoverable error. 27608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27609 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27610 has_space=`$ECHO "$complete" | $GREP " "` 27611 if test "x$has_space" != x; then 27612 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27614 fi 27615 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27616 fi 27617 fi 27618 27619 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27620 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27621 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27622 # "foo.exe" is OK but "foo" is an error. 27623 # 27624 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27625 # It is also a way to make sure we got the proper file name for the real test later on. 27626 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27627 if test "x$test_shortpath" = x; then 27628 # Short path failed, file does not exist as specified. 27629 # Try adding .exe or .cmd 27630 if test -f "${new_path}.exe"; then 27631 input_to_shortpath="${new_path}.exe" 27632 elif test -f "${new_path}.cmd"; then 27633 input_to_shortpath="${new_path}.cmd" 27634 else 27635 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27636 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27637 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27638 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27639 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27640 fi 27641 else 27642 input_to_shortpath="$new_path" 27643 fi 27644 27645 # Call helper function which possibly converts this using DOS-style short mode. 27646 # If so, the updated path is stored in $new_path. 27647 new_path="$input_to_shortpath" 27648 27649 input_path="$input_to_shortpath" 27650 # Check if we need to convert this using DOS-style short mode. If the path 27651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27652 # take no chances and rewrite it. 27653 # Note: m4 eats our [], so we need to use [ and ] instead. 27654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27655 if test "x$has_forbidden_chars" != x; then 27656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27657 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27658 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27659 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27660 # Going to short mode and back again did indeed matter. Since short mode is 27661 # case insensitive, let's make it lowercase to improve readability. 27662 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27663 # Now convert it back to Unix-stile (cygpath) 27664 input_path=`$CYGPATH -u "$shortmode_path"` 27665 new_path="$input_path" 27666 fi 27667 fi 27668 27669 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27670 if test "x$test_cygdrive_prefix" = x; then 27671 # As a simple fix, exclude /usr/bin since it's not a real path. 27672 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27673 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27674 # a path prefixed by /cygdrive for fixpath to work. 27675 new_path="$CYGWIN_ROOT_PATH$input_path" 27676 fi 27677 fi 27678 27679 # remove trailing .exe if any 27680 new_path="${new_path/%.exe/}" 27681 27682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27683 27684 # First separate the path from the arguments. This will split at the first 27685 # space. 27686 complete="$CC" 27687 path="${complete%% *}" 27688 tmp="$complete EOL" 27689 arguments="${tmp#* }" 27690 27691 # Input might be given as Windows format, start by converting to 27692 # unix format. 27693 new_path="$path" 27694 27695 windows_path="$new_path" 27696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27697 unix_path=`$CYGPATH -u "$windows_path"` 27698 new_path="$unix_path" 27699 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27700 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27701 new_path="$unix_path" 27702 fi 27703 27704 27705 # Now try to locate executable using which 27706 new_path=`$WHICH "$new_path" 2> /dev/null` 27707 27708 if test "x$new_path" = x; then 27709 # Oops. Which didn't find the executable. 27710 # The splitting of arguments from the executable at a space might have been incorrect, 27711 # since paths with space are more likely in Windows. Give it another try with the whole 27712 # argument. 27713 path="$complete" 27714 arguments="EOL" 27715 new_path="$path" 27716 27717 windows_path="$new_path" 27718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27719 unix_path=`$CYGPATH -u "$windows_path"` 27720 new_path="$unix_path" 27721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27723 new_path="$unix_path" 27724 fi 27725 27726 27727 new_path=`$WHICH "$new_path" 2> /dev/null` 27728 # bat and cmd files are not always considered executable in MSYS causing which 27729 # to not find them 27730 if test "x$new_path" = x \ 27731 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27732 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27733 new_path="$path" 27734 27735 windows_path="$new_path" 27736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27737 unix_path=`$CYGPATH -u "$windows_path"` 27738 new_path="$unix_path" 27739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27740 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27741 new_path="$unix_path" 27742 fi 27743 27744 fi 27745 27746 if test "x$new_path" = x; then 27747 # It's still not found. Now this is an unrecoverable error. 27748 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27749 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27750 has_space=`$ECHO "$complete" | $GREP " "` 27751 if test "x$has_space" != x; then 27752 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27753 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27754 fi 27755 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27756 fi 27757 fi 27758 27759 # Now new_path has a complete unix path to the binary 27760 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27761 # Keep paths in /bin as-is, but remove trailing .exe if any 27762 new_path="${new_path/%.exe/}" 27763 # Do not save /bin paths to all_fixpath_prefixes! 27764 else 27765 # Not in mixed or Windows style, start by that. 27766 new_path=`cmd //c echo $new_path` 27767 27768 input_path="$new_path" 27769 # Check if we need to convert this using DOS-style short mode. If the path 27770 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27771 # take no chances and rewrite it. 27772 # Note: m4 eats our [], so we need to use [ and ] instead. 27773 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27774 if test "x$has_forbidden_chars" != x; then 27775 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27776 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27777 fi 27778 27779 # Output is in $new_path 27780 27781 windows_path="$new_path" 27782 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27783 unix_path=`$CYGPATH -u "$windows_path"` 27784 new_path="$unix_path" 27785 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27786 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27787 new_path="$unix_path" 27788 fi 27789 27790 # remove trailing .exe if any 27791 new_path="${new_path/%.exe/}" 27792 27793 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27794 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27795 fi 27796 27797 else 27798 # We're on a unix platform. Hooray! :) 27799 # First separate the path from the arguments. This will split at the first 27800 # space. 27801 complete="$CC" 27802 path="${complete%% *}" 27803 tmp="$complete EOL" 27804 arguments="${tmp#* }" 27805 27806 # Cannot rely on the command "which" here since it doesn't always work. 27807 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27808 if test -z "$is_absolute_path"; then 27809 # Path to executable is not absolute. Find it. 27810 IFS_save="$IFS" 27811 IFS=: 27812 for p in $PATH; do 27813 if test -f "$p/$path" && test -x "$p/$path"; then 27814 new_path="$p/$path" 27815 break 27816 fi 27817 done 27818 IFS="$IFS_save" 27819 else 27820 # This is an absolute path, we can use it without further modifications. 27821 new_path="$path" 27822 fi 27823 27824 if test "x$new_path" = x; then 27825 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27826 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27827 has_space=`$ECHO "$complete" | $GREP " "` 27828 if test "x$has_space" != x; then 27829 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27830 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27831 fi 27832 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27833 fi 27834 fi 27835 27836 # Now join together the path and the arguments once again 27837 if test "x$arguments" != xEOL; then 27838 new_complete="$new_path ${arguments% *}" 27839 else 27840 new_complete="$new_path" 27841 fi 27842 27843 if test "x$complete" != "x$new_complete"; then 27844 CC="$new_complete" 27845 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27846 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27847 fi 27848 27849 TEST_COMPILER="$CC" 27850 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 27851 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 27852 if test "x$OPENJDK_BUILD_OS" != xaix; then 27853 # FIXME: This test should not be needed anymore; we don't do that for any platform. 27854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27855 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27856 27857 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27858 # Follow a chain of symbolic links. Use readlink 27859 # where it exists, else fall back to horribly 27860 # complicated shell code. 27861 if test "x$READLINK_TESTED" != yes; then 27862 # On MacOSX there is a readlink tool with a different 27863 # purpose than the GNU readlink tool. Check the found readlink. 27864 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27865 if test "x$ISGNU" = x; then 27866 # A readlink that we do not know how to use. 27867 # Are there other non-GNU readlinks out there? 27868 READLINK_TESTED=yes 27869 READLINK= 27870 fi 27871 fi 27872 27873 if test "x$READLINK" != x; then 27874 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 27875 else 27876 # Save the current directory for restoring afterwards 27877 STARTDIR=$PWD 27878 COUNTER=0 27879 sym_link_dir=`$DIRNAME $TEST_COMPILER` 27880 sym_link_file=`$BASENAME $TEST_COMPILER` 27881 cd $sym_link_dir 27882 # Use -P flag to resolve symlinks in directories. 27883 cd `$THEPWDCMD -P` 27884 sym_link_dir=`$THEPWDCMD -P` 27885 # Resolve file symlinks 27886 while test $COUNTER -lt 20; do 27887 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27888 if test "x$ISLINK" == x; then 27889 # This is not a symbolic link! We are done! 27890 break 27891 fi 27892 # Again resolve directory symlinks since the target of the just found 27893 # link could be in a different directory 27894 cd `$DIRNAME $ISLINK` 27895 sym_link_dir=`$THEPWDCMD -P` 27896 sym_link_file=`$BASENAME $ISLINK` 27897 let COUNTER=COUNTER+1 27898 done 27899 cd $STARTDIR 27900 TEST_COMPILER=$sym_link_dir/$sym_link_file 27901 fi 27902 fi 27903 27904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 27905 $as_echo "$TEST_COMPILER" >&6; } 27906 fi 27907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 27908 $as_echo_n "checking if CC is disguised ccache... " >&6; } 27909 27910 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 27911 if test "x$COMPILER_BASENAME" = "xccache"; then 27912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 27913 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 27914 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 27915 # We want to control ccache invocation ourselves, so ignore this cc and try 27916 # searching again. 27917 27918 # Remove the path to the fake ccache cc from the PATH 27919 RETRY_COMPILER_SAVED_PATH="$PATH" 27920 COMPILER_DIRNAME=`$DIRNAME $CC` 27921 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 27922 27923 # Try again looking for our compiler 27924 if test -n "$ac_tool_prefix"; then 27925 for ac_prog in $TOOLCHAIN_CC_BINARY 27926 do 27927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27930 $as_echo_n "checking for $ac_word... " >&6; } 27931 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 27932 $as_echo_n "(cached) " >&6 27933 else 27934 if test -n "$PROPER_COMPILER_CC"; then 27935 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 27936 else 27937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27938 for as_dir in $PATH 27939 do 27940 IFS=$as_save_IFS 27941 test -z "$as_dir" && as_dir=. 27942 for ac_exec_ext in '' $ac_executable_extensions; do 27943 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27944 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 27945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27946 break 2 27947 fi 27948 done 27949 done 27950 IFS=$as_save_IFS 27951 27952 fi 27953 fi 27954 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 27955 if test -n "$PROPER_COMPILER_CC"; then 27956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27957 $as_echo "$PROPER_COMPILER_CC" >&6; } 27958 else 27959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27960 $as_echo "no" >&6; } 27961 fi 27962 27963 27964 test -n "$PROPER_COMPILER_CC" && break 27965 done 27966 fi 27967 if test -z "$PROPER_COMPILER_CC"; then 27968 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 27969 for ac_prog in $TOOLCHAIN_CC_BINARY 27970 do 27971 # Extract the first word of "$ac_prog", so it can be a program name with args. 27972 set dummy $ac_prog; ac_word=$2 27973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27974 $as_echo_n "checking for $ac_word... " >&6; } 27975 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 27976 $as_echo_n "(cached) " >&6 27977 else 27978 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 27979 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 27980 else 27981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27982 for as_dir in $PATH 27983 do 27984 IFS=$as_save_IFS 27985 test -z "$as_dir" && as_dir=. 27986 for ac_exec_ext in '' $ac_executable_extensions; do 27987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27988 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 27989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27990 break 2 27991 fi 27992 done 27993 done 27994 IFS=$as_save_IFS 27995 27996 fi 27997 fi 27998 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 27999 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28001 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28002 else 28003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28004 $as_echo "no" >&6; } 28005 fi 28006 28007 28008 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28009 done 28010 28011 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28012 PROPER_COMPILER_CC="" 28013 else 28014 case $cross_compiling:$ac_tool_warned in 28015 yes:) 28016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28018 ac_tool_warned=yes ;; 28019 esac 28020 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28021 fi 28022 fi 28023 28024 28025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28026 28027 # First separate the path from the arguments. This will split at the first 28028 # space. 28029 complete="$PROPER_COMPILER_CC" 28030 path="${complete%% *}" 28031 tmp="$complete EOL" 28032 arguments="${tmp#* }" 28033 28034 # Input might be given as Windows format, start by converting to 28035 # unix format. 28036 new_path=`$CYGPATH -u "$path"` 28037 28038 # Now try to locate executable using which 28039 new_path=`$WHICH "$new_path" 2> /dev/null` 28040 # bat and cmd files are not always considered executable in cygwin causing which 28041 # to not find them 28042 if test "x$new_path" = x \ 28043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28045 new_path=`$CYGPATH -u "$path"` 28046 fi 28047 if test "x$new_path" = x; then 28048 # Oops. Which didn't find the executable. 28049 # The splitting of arguments from the executable at a space might have been incorrect, 28050 # since paths with space are more likely in Windows. Give it another try with the whole 28051 # argument. 28052 path="$complete" 28053 arguments="EOL" 28054 new_path=`$CYGPATH -u "$path"` 28055 new_path=`$WHICH "$new_path" 2> /dev/null` 28056 # bat and cmd files are not always considered executable in cygwin causing which 28057 # to not find them 28058 if test "x$new_path" = x \ 28059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28061 new_path=`$CYGPATH -u "$path"` 28062 fi 28063 if test "x$new_path" = x; then 28064 # It's still not found. Now this is an unrecoverable error. 28065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28066 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28067 has_space=`$ECHO "$complete" | $GREP " "` 28068 if test "x$has_space" != x; then 28069 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28071 fi 28072 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28073 fi 28074 fi 28075 28076 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28077 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28078 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28079 # "foo.exe" is OK but "foo" is an error. 28080 # 28081 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28082 # It is also a way to make sure we got the proper file name for the real test later on. 28083 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28084 if test "x$test_shortpath" = x; then 28085 # Short path failed, file does not exist as specified. 28086 # Try adding .exe or .cmd 28087 if test -f "${new_path}.exe"; then 28088 input_to_shortpath="${new_path}.exe" 28089 elif test -f "${new_path}.cmd"; then 28090 input_to_shortpath="${new_path}.cmd" 28091 else 28092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28093 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28094 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28095 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28096 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28097 fi 28098 else 28099 input_to_shortpath="$new_path" 28100 fi 28101 28102 # Call helper function which possibly converts this using DOS-style short mode. 28103 # If so, the updated path is stored in $new_path. 28104 new_path="$input_to_shortpath" 28105 28106 input_path="$input_to_shortpath" 28107 # Check if we need to convert this using DOS-style short mode. If the path 28108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28109 # take no chances and rewrite it. 28110 # Note: m4 eats our [], so we need to use [ and ] instead. 28111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28112 if test "x$has_forbidden_chars" != x; then 28113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28117 # Going to short mode and back again did indeed matter. Since short mode is 28118 # case insensitive, let's make it lowercase to improve readability. 28119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28120 # Now convert it back to Unix-stile (cygpath) 28121 input_path=`$CYGPATH -u "$shortmode_path"` 28122 new_path="$input_path" 28123 fi 28124 fi 28125 28126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28127 if test "x$test_cygdrive_prefix" = x; then 28128 # As a simple fix, exclude /usr/bin since it's not a real path. 28129 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28131 # a path prefixed by /cygdrive for fixpath to work. 28132 new_path="$CYGWIN_ROOT_PATH$input_path" 28133 fi 28134 fi 28135 28136 # remove trailing .exe if any 28137 new_path="${new_path/%.exe/}" 28138 28139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28140 28141 # First separate the path from the arguments. This will split at the first 28142 # space. 28143 complete="$PROPER_COMPILER_CC" 28144 path="${complete%% *}" 28145 tmp="$complete EOL" 28146 arguments="${tmp#* }" 28147 28148 # Input might be given as Windows format, start by converting to 28149 # unix format. 28150 new_path="$path" 28151 28152 windows_path="$new_path" 28153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28154 unix_path=`$CYGPATH -u "$windows_path"` 28155 new_path="$unix_path" 28156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28158 new_path="$unix_path" 28159 fi 28160 28161 28162 # Now try to locate executable using which 28163 new_path=`$WHICH "$new_path" 2> /dev/null` 28164 28165 if test "x$new_path" = x; then 28166 # Oops. Which didn't find the executable. 28167 # The splitting of arguments from the executable at a space might have been incorrect, 28168 # since paths with space are more likely in Windows. Give it another try with the whole 28169 # argument. 28170 path="$complete" 28171 arguments="EOL" 28172 new_path="$path" 28173 28174 windows_path="$new_path" 28175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28176 unix_path=`$CYGPATH -u "$windows_path"` 28177 new_path="$unix_path" 28178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28180 new_path="$unix_path" 28181 fi 28182 28183 28184 new_path=`$WHICH "$new_path" 2> /dev/null` 28185 # bat and cmd files are not always considered executable in MSYS causing which 28186 # to not find them 28187 if test "x$new_path" = x \ 28188 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28189 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28190 new_path="$path" 28191 28192 windows_path="$new_path" 28193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28194 unix_path=`$CYGPATH -u "$windows_path"` 28195 new_path="$unix_path" 28196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28198 new_path="$unix_path" 28199 fi 28200 28201 fi 28202 28203 if test "x$new_path" = x; then 28204 # It's still not found. Now this is an unrecoverable error. 28205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28206 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28207 has_space=`$ECHO "$complete" | $GREP " "` 28208 if test "x$has_space" != x; then 28209 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28211 fi 28212 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28213 fi 28214 fi 28215 28216 # Now new_path has a complete unix path to the binary 28217 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28218 # Keep paths in /bin as-is, but remove trailing .exe if any 28219 new_path="${new_path/%.exe/}" 28220 # Do not save /bin paths to all_fixpath_prefixes! 28221 else 28222 # Not in mixed or Windows style, start by that. 28223 new_path=`cmd //c echo $new_path` 28224 28225 input_path="$new_path" 28226 # Check if we need to convert this using DOS-style short mode. If the path 28227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28228 # take no chances and rewrite it. 28229 # Note: m4 eats our [], so we need to use [ and ] instead. 28230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28231 if test "x$has_forbidden_chars" != x; then 28232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28234 fi 28235 28236 # Output is in $new_path 28237 28238 windows_path="$new_path" 28239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28240 unix_path=`$CYGPATH -u "$windows_path"` 28241 new_path="$unix_path" 28242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28244 new_path="$unix_path" 28245 fi 28246 28247 # remove trailing .exe if any 28248 new_path="${new_path/%.exe/}" 28249 28250 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28251 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28252 fi 28253 28254 else 28255 # We're on a unix platform. Hooray! :) 28256 # First separate the path from the arguments. This will split at the first 28257 # space. 28258 complete="$PROPER_COMPILER_CC" 28259 path="${complete%% *}" 28260 tmp="$complete EOL" 28261 arguments="${tmp#* }" 28262 28263 # Cannot rely on the command "which" here since it doesn't always work. 28264 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28265 if test -z "$is_absolute_path"; then 28266 # Path to executable is not absolute. Find it. 28267 IFS_save="$IFS" 28268 IFS=: 28269 for p in $PATH; do 28270 if test -f "$p/$path" && test -x "$p/$path"; then 28271 new_path="$p/$path" 28272 break 28273 fi 28274 done 28275 IFS="$IFS_save" 28276 else 28277 # This is an absolute path, we can use it without further modifications. 28278 new_path="$path" 28279 fi 28280 28281 if test "x$new_path" = x; then 28282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28283 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28284 has_space=`$ECHO "$complete" | $GREP " "` 28285 if test "x$has_space" != x; then 28286 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28287 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28288 fi 28289 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28290 fi 28291 fi 28292 28293 # Now join together the path and the arguments once again 28294 if test "x$arguments" != xEOL; then 28295 new_complete="$new_path ${arguments% *}" 28296 else 28297 new_complete="$new_path" 28298 fi 28299 28300 if test "x$complete" != "x$new_complete"; then 28301 PROPER_COMPILER_CC="$new_complete" 28302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28303 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28304 fi 28305 28306 PATH="$RETRY_COMPILER_SAVED_PATH" 28307 28308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28309 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28310 28311 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28312 # Follow a chain of symbolic links. Use readlink 28313 # where it exists, else fall back to horribly 28314 # complicated shell code. 28315 if test "x$READLINK_TESTED" != yes; then 28316 # On MacOSX there is a readlink tool with a different 28317 # purpose than the GNU readlink tool. Check the found readlink. 28318 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28319 if test "x$ISGNU" = x; then 28320 # A readlink that we do not know how to use. 28321 # Are there other non-GNU readlinks out there? 28322 READLINK_TESTED=yes 28323 READLINK= 28324 fi 28325 fi 28326 28327 if test "x$READLINK" != x; then 28328 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28329 else 28330 # Save the current directory for restoring afterwards 28331 STARTDIR=$PWD 28332 COUNTER=0 28333 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28334 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28335 cd $sym_link_dir 28336 # Use -P flag to resolve symlinks in directories. 28337 cd `$THEPWDCMD -P` 28338 sym_link_dir=`$THEPWDCMD -P` 28339 # Resolve file symlinks 28340 while test $COUNTER -lt 20; do 28341 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28342 if test "x$ISLINK" == x; then 28343 # This is not a symbolic link! We are done! 28344 break 28345 fi 28346 # Again resolve directory symlinks since the target of the just found 28347 # link could be in a different directory 28348 cd `$DIRNAME $ISLINK` 28349 sym_link_dir=`$THEPWDCMD -P` 28350 sym_link_file=`$BASENAME $ISLINK` 28351 let COUNTER=COUNTER+1 28352 done 28353 cd $STARTDIR 28354 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28355 fi 28356 fi 28357 28358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28359 $as_echo "$PROPER_COMPILER_CC" >&6; } 28360 CC="$PROPER_COMPILER_CC" 28361 else 28362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28363 $as_echo "no, keeping CC" >&6; } 28364 fi 28365 28366 28367 COMPILER=$CC 28368 COMPILER_NAME=$COMPILER_NAME 28369 28370 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28371 # cc -V output typically looks like 28372 # cc: Sun C 5.12 Linux_i386 2011/11/16 28373 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28374 # Check that this is likely to be the Solaris Studio cc. 28375 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28376 if test $? -ne 0; then 28377 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28378 { $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 28379 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28380 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28381 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28382 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28383 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28384 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28385 fi 28386 # Remove usage instructions (if present), and 28387 # collapse compiler output into a single line 28388 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28389 $SED -e 's/ *[Uu]sage:.*//'` 28390 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28391 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28392 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28393 # xlc -qversion output typically looks like 28394 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28395 # Version: 11.01.0000.0015 28396 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28397 # Check that this is likely to be the IBM XL C compiler. 28398 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28399 if test $? -ne 0; then 28400 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28401 { $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 28402 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28403 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28404 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28405 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28406 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28407 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28408 fi 28409 # Collapse compiler output into a single line 28410 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28411 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28412 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28413 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28414 # There is no specific version flag, but all output starts with a version string. 28415 # First line typically looks something like: 28416 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28417 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28418 # Check that this is likely to be Microsoft CL.EXE. 28419 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28420 if test $? -ne 0; then 28421 { $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 28422 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28423 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28424 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28425 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28426 fi 28427 # Collapse compiler output into a single line 28428 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28429 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28430 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28431 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28432 # gcc --version output typically looks like 28433 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28434 # Copyright (C) 2013 Free Software Foundation, Inc. 28435 # This is free software; see the source for copying conditions. There is NO 28436 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28437 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28438 # Check that this is likely to be GCC. 28439 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28440 if test $? -ne 0; then 28441 { $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 28442 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28443 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28444 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28445 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28446 fi 28447 # Remove Copyright and legalese from version string, and 28448 # collapse into a single line 28449 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28450 $SED -e 's/ *Copyright .*//'` 28451 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28452 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28453 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28454 # clang --version output typically looks like 28455 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28456 # clang version 3.3 (tags/RELEASE_33/final) 28457 # or 28458 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28459 # Target: x86_64-pc-linux-gnu 28460 # Thread model: posix 28461 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28462 # Check that this is likely to be clang 28463 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28464 if test $? -ne 0; then 28465 { $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 28466 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28467 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28468 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28469 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28470 fi 28471 # Collapse compiler output into a single line 28472 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28473 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28474 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28475 else 28476 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28477 fi 28478 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28479 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28480 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28481 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28482 28483 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28484 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28485 28486 28487 # Now that we have resolved CC ourself, let autoconf have its go at it 28488 ac_ext=c 28489 ac_cpp='$CPP $CPPFLAGS' 28490 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28491 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28492 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28493 if test -n "$ac_tool_prefix"; then 28494 for ac_prog in $CC 28495 do 28496 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28497 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28499 $as_echo_n "checking for $ac_word... " >&6; } 28500 if ${ac_cv_prog_CC+:} false; then : 28501 $as_echo_n "(cached) " >&6 28502 else 28503 if test -n "$CC"; then 28504 ac_cv_prog_CC="$CC" # Let the user override the test. 28505 else 28506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28507 for as_dir in $PATH 28508 do 28509 IFS=$as_save_IFS 28510 test -z "$as_dir" && as_dir=. 28511 for ac_exec_ext in '' $ac_executable_extensions; do 28512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28513 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28515 break 2 28516 fi 28517 done 28518 done 28519 IFS=$as_save_IFS 28520 28521 fi 28522 fi 28523 CC=$ac_cv_prog_CC 28524 if test -n "$CC"; then 28525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28526 $as_echo "$CC" >&6; } 28527 else 28528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28529 $as_echo "no" >&6; } 28530 fi 28531 28532 28533 test -n "$CC" && break 28534 done 28535 fi 28536 if test -z "$CC"; then 28537 ac_ct_CC=$CC 28538 for ac_prog in $CC 28539 do 28540 # Extract the first word of "$ac_prog", so it can be a program name with args. 28541 set dummy $ac_prog; ac_word=$2 28542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28543 $as_echo_n "checking for $ac_word... " >&6; } 28544 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28545 $as_echo_n "(cached) " >&6 28546 else 28547 if test -n "$ac_ct_CC"; then 28548 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28549 else 28550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28551 for as_dir in $PATH 28552 do 28553 IFS=$as_save_IFS 28554 test -z "$as_dir" && as_dir=. 28555 for ac_exec_ext in '' $ac_executable_extensions; do 28556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28557 ac_cv_prog_ac_ct_CC="$ac_prog" 28558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28559 break 2 28560 fi 28561 done 28562 done 28563 IFS=$as_save_IFS 28564 28565 fi 28566 fi 28567 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28568 if test -n "$ac_ct_CC"; then 28569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28570 $as_echo "$ac_ct_CC" >&6; } 28571 else 28572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28573 $as_echo "no" >&6; } 28574 fi 28575 28576 28577 test -n "$ac_ct_CC" && break 28578 done 28579 28580 if test "x$ac_ct_CC" = x; then 28581 CC="" 28582 else 28583 case $cross_compiling:$ac_tool_warned in 28584 yes:) 28585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28587 ac_tool_warned=yes ;; 28588 esac 28589 CC=$ac_ct_CC 28590 fi 28591 fi 28592 28593 28594 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28595 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28596 as_fn_error $? "no acceptable C compiler found in \$PATH 28597 See \`config.log' for more details" "$LINENO" 5; } 28598 28599 # Provide some information about the compiler. 28600 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28601 set X $ac_compile 28602 ac_compiler=$2 28603 for ac_option in --version -v -V -qversion; do 28604 { { ac_try="$ac_compiler $ac_option >&5" 28605 case "(($ac_try" in 28606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28607 *) ac_try_echo=$ac_try;; 28608 esac 28609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28610 $as_echo "$ac_try_echo"; } >&5 28611 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28612 ac_status=$? 28613 if test -s conftest.err; then 28614 sed '10a\ 28615 ... rest of stderr output deleted ... 28616 10q' conftest.err >conftest.er1 28617 cat conftest.er1 >&5 28618 fi 28619 rm -f conftest.er1 conftest.err 28620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28621 test $ac_status = 0; } 28622 done 28623 28624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28625 /* end confdefs.h. */ 28626 28627 int 28628 main () 28629 { 28630 28631 ; 28632 return 0; 28633 } 28634 _ACEOF 28635 ac_clean_files_save=$ac_clean_files 28636 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28637 # Try to create an executable without -o first, disregard a.out. 28638 # It will help us diagnose broken compilers, and finding out an intuition 28639 # of exeext. 28640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28641 $as_echo_n "checking whether the C compiler works... " >&6; } 28642 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28643 28644 # The possible output files: 28645 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28646 28647 ac_rmfiles= 28648 for ac_file in $ac_files 28649 do 28650 case $ac_file in 28651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28652 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28653 esac 28654 done 28655 rm -f $ac_rmfiles 28656 28657 if { { ac_try="$ac_link_default" 28658 case "(($ac_try" in 28659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28660 *) ac_try_echo=$ac_try;; 28661 esac 28662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28663 $as_echo "$ac_try_echo"; } >&5 28664 (eval "$ac_link_default") 2>&5 28665 ac_status=$? 28666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28667 test $ac_status = 0; }; then : 28668 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28669 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28670 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28671 # so that the user can short-circuit this test for compilers unknown to 28672 # Autoconf. 28673 for ac_file in $ac_files '' 28674 do 28675 test -f "$ac_file" || continue 28676 case $ac_file in 28677 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28678 ;; 28679 [ab].out ) 28680 # We found the default executable, but exeext='' is most 28681 # certainly right. 28682 break;; 28683 *.* ) 28684 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28685 then :; else 28686 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28687 fi 28688 # We set ac_cv_exeext here because the later test for it is not 28689 # safe: cross compilers may not add the suffix if given an `-o' 28690 # argument, so we may need to know it at that point already. 28691 # Even if this section looks crufty: it has the advantage of 28692 # actually working. 28693 break;; 28694 * ) 28695 break;; 28696 esac 28697 done 28698 test "$ac_cv_exeext" = no && ac_cv_exeext= 28699 28700 else 28701 ac_file='' 28702 fi 28703 if test -z "$ac_file"; then : 28704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28705 $as_echo "no" >&6; } 28706 $as_echo "$as_me: failed program was:" >&5 28707 sed 's/^/| /' conftest.$ac_ext >&5 28708 28709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28711 as_fn_error 77 "C compiler cannot create executables 28712 See \`config.log' for more details" "$LINENO" 5; } 28713 else 28714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28715 $as_echo "yes" >&6; } 28716 fi 28717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28718 $as_echo_n "checking for C compiler default output file name... " >&6; } 28719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28720 $as_echo "$ac_file" >&6; } 28721 ac_exeext=$ac_cv_exeext 28722 28723 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28724 ac_clean_files=$ac_clean_files_save 28725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28726 $as_echo_n "checking for suffix of executables... " >&6; } 28727 if { { ac_try="$ac_link" 28728 case "(($ac_try" in 28729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28730 *) ac_try_echo=$ac_try;; 28731 esac 28732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28733 $as_echo "$ac_try_echo"; } >&5 28734 (eval "$ac_link") 2>&5 28735 ac_status=$? 28736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28737 test $ac_status = 0; }; then : 28738 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28739 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28740 # work properly (i.e., refer to `conftest.exe'), while it won't with 28741 # `rm'. 28742 for ac_file in conftest.exe conftest conftest.*; do 28743 test -f "$ac_file" || continue 28744 case $ac_file in 28745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28746 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28747 break;; 28748 * ) break;; 28749 esac 28750 done 28751 else 28752 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28753 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28754 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28755 See \`config.log' for more details" "$LINENO" 5; } 28756 fi 28757 rm -f conftest conftest$ac_cv_exeext 28758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28759 $as_echo "$ac_cv_exeext" >&6; } 28760 28761 rm -f conftest.$ac_ext 28762 EXEEXT=$ac_cv_exeext 28763 ac_exeext=$EXEEXT 28764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28765 /* end confdefs.h. */ 28766 #include <stdio.h> 28767 int 28768 main () 28769 { 28770 FILE *f = fopen ("conftest.out", "w"); 28771 return ferror (f) || fclose (f) != 0; 28772 28773 ; 28774 return 0; 28775 } 28776 _ACEOF 28777 ac_clean_files="$ac_clean_files conftest.out" 28778 # Check that the compiler produces executables we can run. If not, either 28779 # the compiler is broken, or we cross compile. 28780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28781 $as_echo_n "checking whether we are cross compiling... " >&6; } 28782 if test "$cross_compiling" != yes; then 28783 { { ac_try="$ac_link" 28784 case "(($ac_try" in 28785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28786 *) ac_try_echo=$ac_try;; 28787 esac 28788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28789 $as_echo "$ac_try_echo"; } >&5 28790 (eval "$ac_link") 2>&5 28791 ac_status=$? 28792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28793 test $ac_status = 0; } 28794 if { ac_try='./conftest$ac_cv_exeext' 28795 { { case "(($ac_try" in 28796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28797 *) ac_try_echo=$ac_try;; 28798 esac 28799 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28800 $as_echo "$ac_try_echo"; } >&5 28801 (eval "$ac_try") 2>&5 28802 ac_status=$? 28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28804 test $ac_status = 0; }; }; then 28805 cross_compiling=no 28806 else 28807 if test "$cross_compiling" = maybe; then 28808 cross_compiling=yes 28809 else 28810 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28811 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28812 as_fn_error $? "cannot run C compiled programs. 28813 If you meant to cross compile, use \`--host'. 28814 See \`config.log' for more details" "$LINENO" 5; } 28815 fi 28816 fi 28817 fi 28818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28819 $as_echo "$cross_compiling" >&6; } 28820 28821 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28822 ac_clean_files=$ac_clean_files_save 28823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28824 $as_echo_n "checking for suffix of object files... " >&6; } 28825 if ${ac_cv_objext+:} false; then : 28826 $as_echo_n "(cached) " >&6 28827 else 28828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28829 /* end confdefs.h. */ 28830 28831 int 28832 main () 28833 { 28834 28835 ; 28836 return 0; 28837 } 28838 _ACEOF 28839 rm -f conftest.o conftest.obj 28840 if { { ac_try="$ac_compile" 28841 case "(($ac_try" in 28842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28843 *) ac_try_echo=$ac_try;; 28844 esac 28845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28846 $as_echo "$ac_try_echo"; } >&5 28847 (eval "$ac_compile") 2>&5 28848 ac_status=$? 28849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28850 test $ac_status = 0; }; then : 28851 for ac_file in conftest.o conftest.obj conftest.*; do 28852 test -f "$ac_file" || continue; 28853 case $ac_file in 28854 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28855 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28856 break;; 28857 esac 28858 done 28859 else 28860 $as_echo "$as_me: failed program was:" >&5 28861 sed 's/^/| /' conftest.$ac_ext >&5 28862 28863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28865 as_fn_error $? "cannot compute suffix of object files: cannot compile 28866 See \`config.log' for more details" "$LINENO" 5; } 28867 fi 28868 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28869 fi 28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28871 $as_echo "$ac_cv_objext" >&6; } 28872 OBJEXT=$ac_cv_objext 28873 ac_objext=$OBJEXT 28874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28875 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 28876 if ${ac_cv_c_compiler_gnu+:} false; then : 28877 $as_echo_n "(cached) " >&6 28878 else 28879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28880 /* end confdefs.h. */ 28881 28882 int 28883 main () 28884 { 28885 #ifndef __GNUC__ 28886 choke me 28887 #endif 28888 28889 ; 28890 return 0; 28891 } 28892 _ACEOF 28893 if ac_fn_c_try_compile "$LINENO"; then : 28894 ac_compiler_gnu=yes 28895 else 28896 ac_compiler_gnu=no 28897 fi 28898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28899 ac_cv_c_compiler_gnu=$ac_compiler_gnu 28900 28901 fi 28902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 28903 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 28904 if test $ac_compiler_gnu = yes; then 28905 GCC=yes 28906 else 28907 GCC= 28908 fi 28909 ac_test_CFLAGS=${CFLAGS+set} 28910 ac_save_CFLAGS=$CFLAGS 28911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 28912 $as_echo_n "checking whether $CC accepts -g... " >&6; } 28913 if ${ac_cv_prog_cc_g+:} false; then : 28914 $as_echo_n "(cached) " >&6 28915 else 28916 ac_save_c_werror_flag=$ac_c_werror_flag 28917 ac_c_werror_flag=yes 28918 ac_cv_prog_cc_g=no 28919 CFLAGS="-g" 28920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28921 /* end confdefs.h. */ 28922 28923 int 28924 main () 28925 { 28926 28927 ; 28928 return 0; 28929 } 28930 _ACEOF 28931 if ac_fn_c_try_compile "$LINENO"; then : 28932 ac_cv_prog_cc_g=yes 28933 else 28934 CFLAGS="" 28935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28936 /* end confdefs.h. */ 28937 28938 int 28939 main () 28940 { 28941 28942 ; 28943 return 0; 28944 } 28945 _ACEOF 28946 if ac_fn_c_try_compile "$LINENO"; then : 28947 28948 else 28949 ac_c_werror_flag=$ac_save_c_werror_flag 28950 CFLAGS="-g" 28951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28952 /* end confdefs.h. */ 28953 28954 int 28955 main () 28956 { 28957 28958 ; 28959 return 0; 28960 } 28961 _ACEOF 28962 if ac_fn_c_try_compile "$LINENO"; then : 28963 ac_cv_prog_cc_g=yes 28964 fi 28965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28966 fi 28967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28968 fi 28969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 28970 ac_c_werror_flag=$ac_save_c_werror_flag 28971 fi 28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 28973 $as_echo "$ac_cv_prog_cc_g" >&6; } 28974 if test "$ac_test_CFLAGS" = set; then 28975 CFLAGS=$ac_save_CFLAGS 28976 elif test $ac_cv_prog_cc_g = yes; then 28977 if test "$GCC" = yes; then 28978 CFLAGS="-g -O2" 28979 else 28980 CFLAGS="-g" 28981 fi 28982 else 28983 if test "$GCC" = yes; then 28984 CFLAGS="-O2" 28985 else 28986 CFLAGS= 28987 fi 28988 fi 28989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 28990 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 28991 if ${ac_cv_prog_cc_c89+:} false; then : 28992 $as_echo_n "(cached) " >&6 28993 else 28994 ac_cv_prog_cc_c89=no 28995 ac_save_CC=$CC 28996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28997 /* end confdefs.h. */ 28998 #include <stdarg.h> 28999 #include <stdio.h> 29000 struct stat; 29001 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29002 struct buf { int x; }; 29003 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29004 static char *e (p, i) 29005 char **p; 29006 int i; 29007 { 29008 return p[i]; 29009 } 29010 static char *f (char * (*g) (char **, int), char **p, ...) 29011 { 29012 char *s; 29013 va_list v; 29014 va_start (v,p); 29015 s = g (p, va_arg (v,int)); 29016 va_end (v); 29017 return s; 29018 } 29019 29020 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29021 function prototypes and stuff, but not '\xHH' hex character constants. 29022 These don't provoke an error unfortunately, instead are silently treated 29023 as 'x'. The following induces an error, until -std is added to get 29024 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29025 array size at least. It's necessary to write '\x00'==0 to get something 29026 that's true only with -std. */ 29027 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29028 29029 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29030 inside strings and character constants. */ 29031 #define FOO(x) 'x' 29032 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29033 29034 int test (int i, double x); 29035 struct s1 {int (*f) (int a);}; 29036 struct s2 {int (*f) (double a);}; 29037 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29038 int argc; 29039 char **argv; 29040 int 29041 main () 29042 { 29043 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29044 ; 29045 return 0; 29046 } 29047 _ACEOF 29048 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29049 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29050 do 29051 CC="$ac_save_CC $ac_arg" 29052 if ac_fn_c_try_compile "$LINENO"; then : 29053 ac_cv_prog_cc_c89=$ac_arg 29054 fi 29055 rm -f core conftest.err conftest.$ac_objext 29056 test "x$ac_cv_prog_cc_c89" != "xno" && break 29057 done 29058 rm -f conftest.$ac_ext 29059 CC=$ac_save_CC 29060 29061 fi 29062 # AC_CACHE_VAL 29063 case "x$ac_cv_prog_cc_c89" in 29064 x) 29065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29066 $as_echo "none needed" >&6; } ;; 29067 xno) 29068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29069 $as_echo "unsupported" >&6; } ;; 29070 *) 29071 CC="$CC $ac_cv_prog_cc_c89" 29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29073 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29074 esac 29075 if test "x$ac_cv_prog_cc_c89" != xno; then : 29076 29077 fi 29078 29079 ac_ext=cpp 29080 ac_cpp='$CXXCPP $CPPFLAGS' 29081 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29082 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29083 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29084 29085 29086 29087 COMPILER_NAME=C++ 29088 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29089 29090 if test "x$CXX" != x; then 29091 # User has supplied compiler name already, always let that override. 29092 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29093 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29094 if test "x`basename $CXX`" = "x$CXX"; then 29095 # A command without a complete path is provided, search $PATH. 29096 29097 for ac_prog in $CXX 29098 do 29099 # Extract the first word of "$ac_prog", so it can be a program name with args. 29100 set dummy $ac_prog; ac_word=$2 29101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29102 $as_echo_n "checking for $ac_word... " >&6; } 29103 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29104 $as_echo_n "(cached) " >&6 29105 else 29106 case $POTENTIAL_CXX in 29107 [\\/]* | ?:[\\/]*) 29108 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29109 ;; 29110 *) 29111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29112 for as_dir in $PATH 29113 do 29114 IFS=$as_save_IFS 29115 test -z "$as_dir" && as_dir=. 29116 for ac_exec_ext in '' $ac_executable_extensions; do 29117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29118 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29120 break 2 29121 fi 29122 done 29123 done 29124 IFS=$as_save_IFS 29125 29126 ;; 29127 esac 29128 fi 29129 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29130 if test -n "$POTENTIAL_CXX"; then 29131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29132 $as_echo "$POTENTIAL_CXX" >&6; } 29133 else 29134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29135 $as_echo "no" >&6; } 29136 fi 29137 29138 29139 test -n "$POTENTIAL_CXX" && break 29140 done 29141 29142 if test "x$POTENTIAL_CXX" != x; then 29143 CXX=$POTENTIAL_CXX 29144 else 29145 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29146 fi 29147 else 29148 # Otherwise it might already be a complete path 29149 if test ! -x "$CXX"; then 29150 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29151 fi 29152 fi 29153 else 29154 # No user supplied value. Locate compiler ourselves. 29155 29156 # If we are cross compiling, assume cross compilation tools follows the 29157 # cross compilation standard where they are prefixed with the autoconf 29158 # standard name for the target. For example the binary 29159 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29160 # If we are not cross compiling, then the default compiler name will be 29161 # used. 29162 29163 CXX= 29164 # If TOOLCHAIN_PATH is set, check for all compiler names in there first 29165 # before checking the rest of the PATH. 29166 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29167 # step, this should not be necessary. 29168 if test -n "$TOOLCHAIN_PATH"; then 29169 PATH_save="$PATH" 29170 PATH="$TOOLCHAIN_PATH" 29171 for ac_prog in $SEARCH_LIST 29172 do 29173 # Extract the first word of "$ac_prog", so it can be a program name with args. 29174 set dummy $ac_prog; ac_word=$2 29175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29176 $as_echo_n "checking for $ac_word... " >&6; } 29177 if ${ac_cv_path_TOOLCHAIN_PATH_CXX+:} false; then : 29178 $as_echo_n "(cached) " >&6 29179 else 29180 case $TOOLCHAIN_PATH_CXX in 29181 [\\/]* | ?:[\\/]*) 29182 ac_cv_path_TOOLCHAIN_PATH_CXX="$TOOLCHAIN_PATH_CXX" # Let the user override the test with a path. 29183 ;; 29184 *) 29185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29186 for as_dir in $PATH 29187 do 29188 IFS=$as_save_IFS 29189 test -z "$as_dir" && as_dir=. 29190 for ac_exec_ext in '' $ac_executable_extensions; do 29191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29192 ac_cv_path_TOOLCHAIN_PATH_CXX="$as_dir/$ac_word$ac_exec_ext" 29193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29194 break 2 29195 fi 29196 done 29197 done 29198 IFS=$as_save_IFS 29199 29200 ;; 29201 esac 29202 fi 29203 TOOLCHAIN_PATH_CXX=$ac_cv_path_TOOLCHAIN_PATH_CXX 29204 if test -n "$TOOLCHAIN_PATH_CXX"; then 29205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLCHAIN_PATH_CXX" >&5 29206 $as_echo "$TOOLCHAIN_PATH_CXX" >&6; } 29207 else 29208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29209 $as_echo "no" >&6; } 29210 fi 29211 29212 29213 test -n "$TOOLCHAIN_PATH_CXX" && break 29214 done 29215 29216 CXX=$TOOLCHAIN_PATH_CXX 29217 PATH="$PATH_save" 29218 fi 29219 29220 # AC_PATH_PROGS can't be run multiple times with the same variable, 29221 # so create a new name for this run. 29222 if test "x$CXX" = x; then 29223 for ac_prog in $SEARCH_LIST 29224 do 29225 # Extract the first word of "$ac_prog", so it can be a program name with args. 29226 set dummy $ac_prog; ac_word=$2 29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29228 $as_echo_n "checking for $ac_word... " >&6; } 29229 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29230 $as_echo_n "(cached) " >&6 29231 else 29232 case $POTENTIAL_CXX in 29233 [\\/]* | ?:[\\/]*) 29234 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29235 ;; 29236 *) 29237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29238 for as_dir in $PATH 29239 do 29240 IFS=$as_save_IFS 29241 test -z "$as_dir" && as_dir=. 29242 for ac_exec_ext in '' $ac_executable_extensions; do 29243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29244 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29246 break 2 29247 fi 29248 done 29249 done 29250 IFS=$as_save_IFS 29251 29252 ;; 29253 esac 29254 fi 29255 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29256 if test -n "$POTENTIAL_CXX"; then 29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29258 $as_echo "$POTENTIAL_CXX" >&6; } 29259 else 29260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29261 $as_echo "no" >&6; } 29262 fi 29263 29264 29265 test -n "$POTENTIAL_CXX" && break 29266 done 29267 29268 CXX=$POTENTIAL_CXX 29269 fi 29270 29271 if test "x$CXX" = x; then 29272 29273 # Print a helpful message on how to acquire the necessary build dependency. 29274 # devkit is the help tag: freetype, cups, pulse, alsa etc 29275 MISSING_DEPENDENCY=devkit 29276 29277 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29278 cygwin_help $MISSING_DEPENDENCY 29279 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29280 msys_help $MISSING_DEPENDENCY 29281 else 29282 PKGHANDLER_COMMAND= 29283 29284 case $PKGHANDLER in 29285 apt-get) 29286 apt_help $MISSING_DEPENDENCY ;; 29287 yum) 29288 yum_help $MISSING_DEPENDENCY ;; 29289 port) 29290 port_help $MISSING_DEPENDENCY ;; 29291 pkgutil) 29292 pkgutil_help $MISSING_DEPENDENCY ;; 29293 pkgadd) 29294 pkgadd_help $MISSING_DEPENDENCY ;; 29295 esac 29296 29297 if test "x$PKGHANDLER_COMMAND" != x; then 29298 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29299 fi 29300 fi 29301 29302 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29303 fi 29304 fi 29305 29306 # Now we have a compiler binary in CXX. Make sure it's okay. 29307 29308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29309 29310 # First separate the path from the arguments. This will split at the first 29311 # space. 29312 complete="$CXX" 29313 path="${complete%% *}" 29314 tmp="$complete EOL" 29315 arguments="${tmp#* }" 29316 29317 # Input might be given as Windows format, start by converting to 29318 # unix format. 29319 new_path=`$CYGPATH -u "$path"` 29320 29321 # Now try to locate executable using which 29322 new_path=`$WHICH "$new_path" 2> /dev/null` 29323 # bat and cmd files are not always considered executable in cygwin causing which 29324 # to not find them 29325 if test "x$new_path" = x \ 29326 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29327 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29328 new_path=`$CYGPATH -u "$path"` 29329 fi 29330 if test "x$new_path" = x; then 29331 # Oops. Which didn't find the executable. 29332 # The splitting of arguments from the executable at a space might have been incorrect, 29333 # since paths with space are more likely in Windows. Give it another try with the whole 29334 # argument. 29335 path="$complete" 29336 arguments="EOL" 29337 new_path=`$CYGPATH -u "$path"` 29338 new_path=`$WHICH "$new_path" 2> /dev/null` 29339 # bat and cmd files are not always considered executable in cygwin causing which 29340 # to not find them 29341 if test "x$new_path" = x \ 29342 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29343 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29344 new_path=`$CYGPATH -u "$path"` 29345 fi 29346 if test "x$new_path" = x; then 29347 # It's still not found. Now this is an unrecoverable error. 29348 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29349 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29350 has_space=`$ECHO "$complete" | $GREP " "` 29351 if test "x$has_space" != x; then 29352 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29353 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29354 fi 29355 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29356 fi 29357 fi 29358 29359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29362 # "foo.exe" is OK but "foo" is an error. 29363 # 29364 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29365 # It is also a way to make sure we got the proper file name for the real test later on. 29366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29367 if test "x$test_shortpath" = x; then 29368 # Short path failed, file does not exist as specified. 29369 # Try adding .exe or .cmd 29370 if test -f "${new_path}.exe"; then 29371 input_to_shortpath="${new_path}.exe" 29372 elif test -f "${new_path}.cmd"; then 29373 input_to_shortpath="${new_path}.cmd" 29374 else 29375 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29376 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29377 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29378 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29379 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29380 fi 29381 else 29382 input_to_shortpath="$new_path" 29383 fi 29384 29385 # Call helper function which possibly converts this using DOS-style short mode. 29386 # If so, the updated path is stored in $new_path. 29387 new_path="$input_to_shortpath" 29388 29389 input_path="$input_to_shortpath" 29390 # Check if we need to convert this using DOS-style short mode. If the path 29391 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29392 # take no chances and rewrite it. 29393 # Note: m4 eats our [], so we need to use [ and ] instead. 29394 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29395 if test "x$has_forbidden_chars" != x; then 29396 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29397 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29398 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29399 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29400 # Going to short mode and back again did indeed matter. Since short mode is 29401 # case insensitive, let's make it lowercase to improve readability. 29402 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29403 # Now convert it back to Unix-stile (cygpath) 29404 input_path=`$CYGPATH -u "$shortmode_path"` 29405 new_path="$input_path" 29406 fi 29407 fi 29408 29409 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29410 if test "x$test_cygdrive_prefix" = x; then 29411 # As a simple fix, exclude /usr/bin since it's not a real path. 29412 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29413 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29414 # a path prefixed by /cygdrive for fixpath to work. 29415 new_path="$CYGWIN_ROOT_PATH$input_path" 29416 fi 29417 fi 29418 29419 # remove trailing .exe if any 29420 new_path="${new_path/%.exe/}" 29421 29422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29423 29424 # First separate the path from the arguments. This will split at the first 29425 # space. 29426 complete="$CXX" 29427 path="${complete%% *}" 29428 tmp="$complete EOL" 29429 arguments="${tmp#* }" 29430 29431 # Input might be given as Windows format, start by converting to 29432 # unix format. 29433 new_path="$path" 29434 29435 windows_path="$new_path" 29436 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29437 unix_path=`$CYGPATH -u "$windows_path"` 29438 new_path="$unix_path" 29439 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29440 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29441 new_path="$unix_path" 29442 fi 29443 29444 29445 # Now try to locate executable using which 29446 new_path=`$WHICH "$new_path" 2> /dev/null` 29447 29448 if test "x$new_path" = x; then 29449 # Oops. Which didn't find the executable. 29450 # The splitting of arguments from the executable at a space might have been incorrect, 29451 # since paths with space are more likely in Windows. Give it another try with the whole 29452 # argument. 29453 path="$complete" 29454 arguments="EOL" 29455 new_path="$path" 29456 29457 windows_path="$new_path" 29458 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29459 unix_path=`$CYGPATH -u "$windows_path"` 29460 new_path="$unix_path" 29461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29462 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29463 new_path="$unix_path" 29464 fi 29465 29466 29467 new_path=`$WHICH "$new_path" 2> /dev/null` 29468 # bat and cmd files are not always considered executable in MSYS causing which 29469 # to not find them 29470 if test "x$new_path" = x \ 29471 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29472 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29473 new_path="$path" 29474 29475 windows_path="$new_path" 29476 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29477 unix_path=`$CYGPATH -u "$windows_path"` 29478 new_path="$unix_path" 29479 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29480 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29481 new_path="$unix_path" 29482 fi 29483 29484 fi 29485 29486 if test "x$new_path" = x; then 29487 # It's still not found. Now this is an unrecoverable error. 29488 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29489 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29490 has_space=`$ECHO "$complete" | $GREP " "` 29491 if test "x$has_space" != x; then 29492 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29493 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29494 fi 29495 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29496 fi 29497 fi 29498 29499 # Now new_path has a complete unix path to the binary 29500 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29501 # Keep paths in /bin as-is, but remove trailing .exe if any 29502 new_path="${new_path/%.exe/}" 29503 # Do not save /bin paths to all_fixpath_prefixes! 29504 else 29505 # Not in mixed or Windows style, start by that. 29506 new_path=`cmd //c echo $new_path` 29507 29508 input_path="$new_path" 29509 # Check if we need to convert this using DOS-style short mode. If the path 29510 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29511 # take no chances and rewrite it. 29512 # Note: m4 eats our [], so we need to use [ and ] instead. 29513 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29514 if test "x$has_forbidden_chars" != x; then 29515 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29516 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29517 fi 29518 29519 # Output is in $new_path 29520 29521 windows_path="$new_path" 29522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29523 unix_path=`$CYGPATH -u "$windows_path"` 29524 new_path="$unix_path" 29525 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29526 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29527 new_path="$unix_path" 29528 fi 29529 29530 # remove trailing .exe if any 29531 new_path="${new_path/%.exe/}" 29532 29533 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29534 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29535 fi 29536 29537 else 29538 # We're on a unix platform. Hooray! :) 29539 # First separate the path from the arguments. This will split at the first 29540 # space. 29541 complete="$CXX" 29542 path="${complete%% *}" 29543 tmp="$complete EOL" 29544 arguments="${tmp#* }" 29545 29546 # Cannot rely on the command "which" here since it doesn't always work. 29547 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29548 if test -z "$is_absolute_path"; then 29549 # Path to executable is not absolute. Find it. 29550 IFS_save="$IFS" 29551 IFS=: 29552 for p in $PATH; do 29553 if test -f "$p/$path" && test -x "$p/$path"; then 29554 new_path="$p/$path" 29555 break 29556 fi 29557 done 29558 IFS="$IFS_save" 29559 else 29560 # This is an absolute path, we can use it without further modifications. 29561 new_path="$path" 29562 fi 29563 29564 if test "x$new_path" = x; then 29565 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29566 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29567 has_space=`$ECHO "$complete" | $GREP " "` 29568 if test "x$has_space" != x; then 29569 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29570 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29571 fi 29572 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29573 fi 29574 fi 29575 29576 # Now join together the path and the arguments once again 29577 if test "x$arguments" != xEOL; then 29578 new_complete="$new_path ${arguments% *}" 29579 else 29580 new_complete="$new_path" 29581 fi 29582 29583 if test "x$complete" != "x$new_complete"; then 29584 CXX="$new_complete" 29585 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29586 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29587 fi 29588 29589 TEST_COMPILER="$CXX" 29590 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29591 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29592 if test "x$OPENJDK_BUILD_OS" != xaix; then 29593 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29595 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29596 29597 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29598 # Follow a chain of symbolic links. Use readlink 29599 # where it exists, else fall back to horribly 29600 # complicated shell code. 29601 if test "x$READLINK_TESTED" != yes; then 29602 # On MacOSX there is a readlink tool with a different 29603 # purpose than the GNU readlink tool. Check the found readlink. 29604 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29605 if test "x$ISGNU" = x; then 29606 # A readlink that we do not know how to use. 29607 # Are there other non-GNU readlinks out there? 29608 READLINK_TESTED=yes 29609 READLINK= 29610 fi 29611 fi 29612 29613 if test "x$READLINK" != x; then 29614 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29615 else 29616 # Save the current directory for restoring afterwards 29617 STARTDIR=$PWD 29618 COUNTER=0 29619 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29620 sym_link_file=`$BASENAME $TEST_COMPILER` 29621 cd $sym_link_dir 29622 # Use -P flag to resolve symlinks in directories. 29623 cd `$THEPWDCMD -P` 29624 sym_link_dir=`$THEPWDCMD -P` 29625 # Resolve file symlinks 29626 while test $COUNTER -lt 20; do 29627 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29628 if test "x$ISLINK" == x; then 29629 # This is not a symbolic link! We are done! 29630 break 29631 fi 29632 # Again resolve directory symlinks since the target of the just found 29633 # link could be in a different directory 29634 cd `$DIRNAME $ISLINK` 29635 sym_link_dir=`$THEPWDCMD -P` 29636 sym_link_file=`$BASENAME $ISLINK` 29637 let COUNTER=COUNTER+1 29638 done 29639 cd $STARTDIR 29640 TEST_COMPILER=$sym_link_dir/$sym_link_file 29641 fi 29642 fi 29643 29644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29645 $as_echo "$TEST_COMPILER" >&6; } 29646 fi 29647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29648 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29649 29650 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29651 if test "x$COMPILER_BASENAME" = "xccache"; then 29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29653 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29654 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29655 # We want to control ccache invocation ourselves, so ignore this cc and try 29656 # searching again. 29657 29658 # Remove the path to the fake ccache cc from the PATH 29659 RETRY_COMPILER_SAVED_PATH="$PATH" 29660 COMPILER_DIRNAME=`$DIRNAME $CXX` 29661 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29662 29663 # Try again looking for our compiler 29664 if test -n "$ac_tool_prefix"; then 29665 for ac_prog in $TOOLCHAIN_CXX_BINARY 29666 do 29667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29668 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29670 $as_echo_n "checking for $ac_word... " >&6; } 29671 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29672 $as_echo_n "(cached) " >&6 29673 else 29674 if test -n "$PROPER_COMPILER_CXX"; then 29675 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29676 else 29677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29678 for as_dir in $PATH 29679 do 29680 IFS=$as_save_IFS 29681 test -z "$as_dir" && as_dir=. 29682 for ac_exec_ext in '' $ac_executable_extensions; do 29683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29684 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29686 break 2 29687 fi 29688 done 29689 done 29690 IFS=$as_save_IFS 29691 29692 fi 29693 fi 29694 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29695 if test -n "$PROPER_COMPILER_CXX"; then 29696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29697 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29698 else 29699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29700 $as_echo "no" >&6; } 29701 fi 29702 29703 29704 test -n "$PROPER_COMPILER_CXX" && break 29705 done 29706 fi 29707 if test -z "$PROPER_COMPILER_CXX"; then 29708 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29709 for ac_prog in $TOOLCHAIN_CXX_BINARY 29710 do 29711 # Extract the first word of "$ac_prog", so it can be a program name with args. 29712 set dummy $ac_prog; ac_word=$2 29713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29714 $as_echo_n "checking for $ac_word... " >&6; } 29715 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29716 $as_echo_n "(cached) " >&6 29717 else 29718 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29719 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29720 else 29721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29722 for as_dir in $PATH 29723 do 29724 IFS=$as_save_IFS 29725 test -z "$as_dir" && as_dir=. 29726 for ac_exec_ext in '' $ac_executable_extensions; do 29727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29728 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29730 break 2 29731 fi 29732 done 29733 done 29734 IFS=$as_save_IFS 29735 29736 fi 29737 fi 29738 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29739 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29741 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29742 else 29743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29744 $as_echo "no" >&6; } 29745 fi 29746 29747 29748 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29749 done 29750 29751 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29752 PROPER_COMPILER_CXX="" 29753 else 29754 case $cross_compiling:$ac_tool_warned in 29755 yes:) 29756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29757 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29758 ac_tool_warned=yes ;; 29759 esac 29760 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29761 fi 29762 fi 29763 29764 29765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29766 29767 # First separate the path from the arguments. This will split at the first 29768 # space. 29769 complete="$PROPER_COMPILER_CXX" 29770 path="${complete%% *}" 29771 tmp="$complete EOL" 29772 arguments="${tmp#* }" 29773 29774 # Input might be given as Windows format, start by converting to 29775 # unix format. 29776 new_path=`$CYGPATH -u "$path"` 29777 29778 # Now try to locate executable using which 29779 new_path=`$WHICH "$new_path" 2> /dev/null` 29780 # bat and cmd files are not always considered executable in cygwin causing which 29781 # to not find them 29782 if test "x$new_path" = x \ 29783 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29784 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29785 new_path=`$CYGPATH -u "$path"` 29786 fi 29787 if test "x$new_path" = x; then 29788 # Oops. Which didn't find the executable. 29789 # The splitting of arguments from the executable at a space might have been incorrect, 29790 # since paths with space are more likely in Windows. Give it another try with the whole 29791 # argument. 29792 path="$complete" 29793 arguments="EOL" 29794 new_path=`$CYGPATH -u "$path"` 29795 new_path=`$WHICH "$new_path" 2> /dev/null` 29796 # bat and cmd files are not always considered executable in cygwin causing which 29797 # to not find them 29798 if test "x$new_path" = x \ 29799 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29800 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29801 new_path=`$CYGPATH -u "$path"` 29802 fi 29803 if test "x$new_path" = x; then 29804 # It's still not found. Now this is an unrecoverable error. 29805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29806 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29807 has_space=`$ECHO "$complete" | $GREP " "` 29808 if test "x$has_space" != x; then 29809 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29810 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29811 fi 29812 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29813 fi 29814 fi 29815 29816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29819 # "foo.exe" is OK but "foo" is an error. 29820 # 29821 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29822 # It is also a way to make sure we got the proper file name for the real test later on. 29823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29824 if test "x$test_shortpath" = x; then 29825 # Short path failed, file does not exist as specified. 29826 # Try adding .exe or .cmd 29827 if test -f "${new_path}.exe"; then 29828 input_to_shortpath="${new_path}.exe" 29829 elif test -f "${new_path}.cmd"; then 29830 input_to_shortpath="${new_path}.cmd" 29831 else 29832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29833 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29834 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29835 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29836 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29837 fi 29838 else 29839 input_to_shortpath="$new_path" 29840 fi 29841 29842 # Call helper function which possibly converts this using DOS-style short mode. 29843 # If so, the updated path is stored in $new_path. 29844 new_path="$input_to_shortpath" 29845 29846 input_path="$input_to_shortpath" 29847 # Check if we need to convert this using DOS-style short mode. If the path 29848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29849 # take no chances and rewrite it. 29850 # Note: m4 eats our [], so we need to use [ and ] instead. 29851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29852 if test "x$has_forbidden_chars" != x; then 29853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29857 # Going to short mode and back again did indeed matter. Since short mode is 29858 # case insensitive, let's make it lowercase to improve readability. 29859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29860 # Now convert it back to Unix-stile (cygpath) 29861 input_path=`$CYGPATH -u "$shortmode_path"` 29862 new_path="$input_path" 29863 fi 29864 fi 29865 29866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29867 if test "x$test_cygdrive_prefix" = x; then 29868 # As a simple fix, exclude /usr/bin since it's not a real path. 29869 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29871 # a path prefixed by /cygdrive for fixpath to work. 29872 new_path="$CYGWIN_ROOT_PATH$input_path" 29873 fi 29874 fi 29875 29876 # remove trailing .exe if any 29877 new_path="${new_path/%.exe/}" 29878 29879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29880 29881 # First separate the path from the arguments. This will split at the first 29882 # space. 29883 complete="$PROPER_COMPILER_CXX" 29884 path="${complete%% *}" 29885 tmp="$complete EOL" 29886 arguments="${tmp#* }" 29887 29888 # Input might be given as Windows format, start by converting to 29889 # unix format. 29890 new_path="$path" 29891 29892 windows_path="$new_path" 29893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29894 unix_path=`$CYGPATH -u "$windows_path"` 29895 new_path="$unix_path" 29896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29898 new_path="$unix_path" 29899 fi 29900 29901 29902 # Now try to locate executable using which 29903 new_path=`$WHICH "$new_path" 2> /dev/null` 29904 29905 if test "x$new_path" = x; then 29906 # Oops. Which didn't find the executable. 29907 # The splitting of arguments from the executable at a space might have been incorrect, 29908 # since paths with space are more likely in Windows. Give it another try with the whole 29909 # argument. 29910 path="$complete" 29911 arguments="EOL" 29912 new_path="$path" 29913 29914 windows_path="$new_path" 29915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29916 unix_path=`$CYGPATH -u "$windows_path"` 29917 new_path="$unix_path" 29918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29920 new_path="$unix_path" 29921 fi 29922 29923 29924 new_path=`$WHICH "$new_path" 2> /dev/null` 29925 # bat and cmd files are not always considered executable in MSYS causing which 29926 # to not find them 29927 if test "x$new_path" = x \ 29928 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29929 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29930 new_path="$path" 29931 29932 windows_path="$new_path" 29933 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29934 unix_path=`$CYGPATH -u "$windows_path"` 29935 new_path="$unix_path" 29936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29937 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29938 new_path="$unix_path" 29939 fi 29940 29941 fi 29942 29943 if test "x$new_path" = x; then 29944 # It's still not found. Now this is an unrecoverable error. 29945 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29946 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29947 has_space=`$ECHO "$complete" | $GREP " "` 29948 if test "x$has_space" != x; then 29949 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29950 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29951 fi 29952 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29953 fi 29954 fi 29955 29956 # Now new_path has a complete unix path to the binary 29957 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29958 # Keep paths in /bin as-is, but remove trailing .exe if any 29959 new_path="${new_path/%.exe/}" 29960 # Do not save /bin paths to all_fixpath_prefixes! 29961 else 29962 # Not in mixed or Windows style, start by that. 29963 new_path=`cmd //c echo $new_path` 29964 29965 input_path="$new_path" 29966 # Check if we need to convert this using DOS-style short mode. If the path 29967 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29968 # take no chances and rewrite it. 29969 # Note: m4 eats our [], so we need to use [ and ] instead. 29970 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29971 if test "x$has_forbidden_chars" != x; then 29972 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29973 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29974 fi 29975 29976 # Output is in $new_path 29977 29978 windows_path="$new_path" 29979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29980 unix_path=`$CYGPATH -u "$windows_path"` 29981 new_path="$unix_path" 29982 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29983 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29984 new_path="$unix_path" 29985 fi 29986 29987 # remove trailing .exe if any 29988 new_path="${new_path/%.exe/}" 29989 29990 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29991 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29992 fi 29993 29994 else 29995 # We're on a unix platform. Hooray! :) 29996 # First separate the path from the arguments. This will split at the first 29997 # space. 29998 complete="$PROPER_COMPILER_CXX" 29999 path="${complete%% *}" 30000 tmp="$complete EOL" 30001 arguments="${tmp#* }" 30002 30003 # Cannot rely on the command "which" here since it doesn't always work. 30004 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30005 if test -z "$is_absolute_path"; then 30006 # Path to executable is not absolute. Find it. 30007 IFS_save="$IFS" 30008 IFS=: 30009 for p in $PATH; do 30010 if test -f "$p/$path" && test -x "$p/$path"; then 30011 new_path="$p/$path" 30012 break 30013 fi 30014 done 30015 IFS="$IFS_save" 30016 else 30017 # This is an absolute path, we can use it without further modifications. 30018 new_path="$path" 30019 fi 30020 30021 if test "x$new_path" = x; then 30022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30023 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30024 has_space=`$ECHO "$complete" | $GREP " "` 30025 if test "x$has_space" != x; then 30026 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30027 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30028 fi 30029 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30030 fi 30031 fi 30032 30033 # Now join together the path and the arguments once again 30034 if test "x$arguments" != xEOL; then 30035 new_complete="$new_path ${arguments% *}" 30036 else 30037 new_complete="$new_path" 30038 fi 30039 30040 if test "x$complete" != "x$new_complete"; then 30041 PROPER_COMPILER_CXX="$new_complete" 30042 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30043 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30044 fi 30045 30046 PATH="$RETRY_COMPILER_SAVED_PATH" 30047 30048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30049 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30050 30051 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30052 # Follow a chain of symbolic links. Use readlink 30053 # where it exists, else fall back to horribly 30054 # complicated shell code. 30055 if test "x$READLINK_TESTED" != yes; then 30056 # On MacOSX there is a readlink tool with a different 30057 # purpose than the GNU readlink tool. Check the found readlink. 30058 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30059 if test "x$ISGNU" = x; then 30060 # A readlink that we do not know how to use. 30061 # Are there other non-GNU readlinks out there? 30062 READLINK_TESTED=yes 30063 READLINK= 30064 fi 30065 fi 30066 30067 if test "x$READLINK" != x; then 30068 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30069 else 30070 # Save the current directory for restoring afterwards 30071 STARTDIR=$PWD 30072 COUNTER=0 30073 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30074 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30075 cd $sym_link_dir 30076 # Use -P flag to resolve symlinks in directories. 30077 cd `$THEPWDCMD -P` 30078 sym_link_dir=`$THEPWDCMD -P` 30079 # Resolve file symlinks 30080 while test $COUNTER -lt 20; do 30081 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30082 if test "x$ISLINK" == x; then 30083 # This is not a symbolic link! We are done! 30084 break 30085 fi 30086 # Again resolve directory symlinks since the target of the just found 30087 # link could be in a different directory 30088 cd `$DIRNAME $ISLINK` 30089 sym_link_dir=`$THEPWDCMD -P` 30090 sym_link_file=`$BASENAME $ISLINK` 30091 let COUNTER=COUNTER+1 30092 done 30093 cd $STARTDIR 30094 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30095 fi 30096 fi 30097 30098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30099 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30100 CXX="$PROPER_COMPILER_CXX" 30101 else 30102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30103 $as_echo "no, keeping CXX" >&6; } 30104 fi 30105 30106 30107 COMPILER=$CXX 30108 COMPILER_NAME=$COMPILER_NAME 30109 30110 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30111 # cc -V output typically looks like 30112 # cc: Sun C 5.12 Linux_i386 2011/11/16 30113 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30114 # Check that this is likely to be the Solaris Studio cc. 30115 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30116 if test $? -ne 0; then 30117 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30118 { $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 30119 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30120 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30121 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30122 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30123 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30124 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30125 fi 30126 # Remove usage instructions (if present), and 30127 # collapse compiler output into a single line 30128 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30129 $SED -e 's/ *[Uu]sage:.*//'` 30130 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30131 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30132 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30133 # xlc -qversion output typically looks like 30134 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30135 # Version: 11.01.0000.0015 30136 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30137 # Check that this is likely to be the IBM XL C compiler. 30138 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30139 if test $? -ne 0; then 30140 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30141 { $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 30142 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30143 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30144 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30145 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30146 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30147 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30148 fi 30149 # Collapse compiler output into a single line 30150 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30151 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30152 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30153 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30154 # There is no specific version flag, but all output starts with a version string. 30155 # First line typically looks something like: 30156 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30157 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30158 # Check that this is likely to be Microsoft CL.EXE. 30159 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30160 if test $? -ne 0; then 30161 { $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 30162 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30163 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30164 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30165 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30166 fi 30167 # Collapse compiler output into a single line 30168 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30169 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30170 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30171 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30172 # gcc --version output typically looks like 30173 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30174 # Copyright (C) 2013 Free Software Foundation, Inc. 30175 # This is free software; see the source for copying conditions. There is NO 30176 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30177 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30178 # Check that this is likely to be GCC. 30179 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30180 if test $? -ne 0; then 30181 { $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 30182 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30183 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30184 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30185 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30186 fi 30187 # Remove Copyright and legalese from version string, and 30188 # collapse into a single line 30189 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30190 $SED -e 's/ *Copyright .*//'` 30191 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30192 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30193 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30194 # clang --version output typically looks like 30195 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30196 # clang version 3.3 (tags/RELEASE_33/final) 30197 # or 30198 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30199 # Target: x86_64-pc-linux-gnu 30200 # Thread model: posix 30201 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30202 # Check that this is likely to be clang 30203 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30204 if test $? -ne 0; then 30205 { $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 30206 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30207 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30208 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30209 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30210 fi 30211 # Collapse compiler output into a single line 30212 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30213 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30214 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30215 else 30216 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30217 fi 30218 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30219 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30220 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30221 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30222 30223 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30224 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30225 30226 30227 # Now that we have resolved CXX ourself, let autoconf have its go at it 30228 ac_ext=cpp 30229 ac_cpp='$CXXCPP $CPPFLAGS' 30230 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30231 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30232 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30233 if test -z "$CXX"; then 30234 if test -n "$CCC"; then 30235 CXX=$CCC 30236 else 30237 if test -n "$ac_tool_prefix"; then 30238 for ac_prog in $CXX 30239 do 30240 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30241 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30243 $as_echo_n "checking for $ac_word... " >&6; } 30244 if ${ac_cv_prog_CXX+:} false; then : 30245 $as_echo_n "(cached) " >&6 30246 else 30247 if test -n "$CXX"; then 30248 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30249 else 30250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30251 for as_dir in $PATH 30252 do 30253 IFS=$as_save_IFS 30254 test -z "$as_dir" && as_dir=. 30255 for ac_exec_ext in '' $ac_executable_extensions; do 30256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30257 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30259 break 2 30260 fi 30261 done 30262 done 30263 IFS=$as_save_IFS 30264 30265 fi 30266 fi 30267 CXX=$ac_cv_prog_CXX 30268 if test -n "$CXX"; then 30269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30270 $as_echo "$CXX" >&6; } 30271 else 30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30273 $as_echo "no" >&6; } 30274 fi 30275 30276 30277 test -n "$CXX" && break 30278 done 30279 fi 30280 if test -z "$CXX"; then 30281 ac_ct_CXX=$CXX 30282 for ac_prog in $CXX 30283 do 30284 # Extract the first word of "$ac_prog", so it can be a program name with args. 30285 set dummy $ac_prog; ac_word=$2 30286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30287 $as_echo_n "checking for $ac_word... " >&6; } 30288 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30289 $as_echo_n "(cached) " >&6 30290 else 30291 if test -n "$ac_ct_CXX"; then 30292 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30293 else 30294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30295 for as_dir in $PATH 30296 do 30297 IFS=$as_save_IFS 30298 test -z "$as_dir" && as_dir=. 30299 for ac_exec_ext in '' $ac_executable_extensions; do 30300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30301 ac_cv_prog_ac_ct_CXX="$ac_prog" 30302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30303 break 2 30304 fi 30305 done 30306 done 30307 IFS=$as_save_IFS 30308 30309 fi 30310 fi 30311 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30312 if test -n "$ac_ct_CXX"; then 30313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30314 $as_echo "$ac_ct_CXX" >&6; } 30315 else 30316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30317 $as_echo "no" >&6; } 30318 fi 30319 30320 30321 test -n "$ac_ct_CXX" && break 30322 done 30323 30324 if test "x$ac_ct_CXX" = x; then 30325 CXX="g++" 30326 else 30327 case $cross_compiling:$ac_tool_warned in 30328 yes:) 30329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30331 ac_tool_warned=yes ;; 30332 esac 30333 CXX=$ac_ct_CXX 30334 fi 30335 fi 30336 30337 fi 30338 fi 30339 # Provide some information about the compiler. 30340 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30341 set X $ac_compile 30342 ac_compiler=$2 30343 for ac_option in --version -v -V -qversion; do 30344 { { ac_try="$ac_compiler $ac_option >&5" 30345 case "(($ac_try" in 30346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30347 *) ac_try_echo=$ac_try;; 30348 esac 30349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30350 $as_echo "$ac_try_echo"; } >&5 30351 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30352 ac_status=$? 30353 if test -s conftest.err; then 30354 sed '10a\ 30355 ... rest of stderr output deleted ... 30356 10q' conftest.err >conftest.er1 30357 cat conftest.er1 >&5 30358 fi 30359 rm -f conftest.er1 conftest.err 30360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30361 test $ac_status = 0; } 30362 done 30363 30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30365 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30366 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30367 $as_echo_n "(cached) " >&6 30368 else 30369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30370 /* end confdefs.h. */ 30371 30372 int 30373 main () 30374 { 30375 #ifndef __GNUC__ 30376 choke me 30377 #endif 30378 30379 ; 30380 return 0; 30381 } 30382 _ACEOF 30383 if ac_fn_cxx_try_compile "$LINENO"; then : 30384 ac_compiler_gnu=yes 30385 else 30386 ac_compiler_gnu=no 30387 fi 30388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30389 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30390 30391 fi 30392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30393 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30394 if test $ac_compiler_gnu = yes; then 30395 GXX=yes 30396 else 30397 GXX= 30398 fi 30399 ac_test_CXXFLAGS=${CXXFLAGS+set} 30400 ac_save_CXXFLAGS=$CXXFLAGS 30401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30402 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30403 if ${ac_cv_prog_cxx_g+:} false; then : 30404 $as_echo_n "(cached) " >&6 30405 else 30406 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30407 ac_cxx_werror_flag=yes 30408 ac_cv_prog_cxx_g=no 30409 CXXFLAGS="-g" 30410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30411 /* end confdefs.h. */ 30412 30413 int 30414 main () 30415 { 30416 30417 ; 30418 return 0; 30419 } 30420 _ACEOF 30421 if ac_fn_cxx_try_compile "$LINENO"; then : 30422 ac_cv_prog_cxx_g=yes 30423 else 30424 CXXFLAGS="" 30425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30426 /* end confdefs.h. */ 30427 30428 int 30429 main () 30430 { 30431 30432 ; 30433 return 0; 30434 } 30435 _ACEOF 30436 if ac_fn_cxx_try_compile "$LINENO"; then : 30437 30438 else 30439 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30440 CXXFLAGS="-g" 30441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30442 /* end confdefs.h. */ 30443 30444 int 30445 main () 30446 { 30447 30448 ; 30449 return 0; 30450 } 30451 _ACEOF 30452 if ac_fn_cxx_try_compile "$LINENO"; then : 30453 ac_cv_prog_cxx_g=yes 30454 fi 30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30456 fi 30457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30458 fi 30459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30460 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30461 fi 30462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30463 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30464 if test "$ac_test_CXXFLAGS" = set; then 30465 CXXFLAGS=$ac_save_CXXFLAGS 30466 elif test $ac_cv_prog_cxx_g = yes; then 30467 if test "$GXX" = yes; then 30468 CXXFLAGS="-g -O2" 30469 else 30470 CXXFLAGS="-g" 30471 fi 30472 else 30473 if test "$GXX" = yes; then 30474 CXXFLAGS="-O2" 30475 else 30476 CXXFLAGS= 30477 fi 30478 fi 30479 ac_ext=cpp 30480 ac_cpp='$CXXCPP $CPPFLAGS' 30481 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30482 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30483 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30484 30485 30486 # 30487 # Setup the preprocessor (CPP and CXXCPP) 30488 # 30489 ac_ext=c 30490 ac_cpp='$CPP $CPPFLAGS' 30491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30493 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30495 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30496 # On Suns, sometimes $CPP names a directory. 30497 if test -n "$CPP" && test -d "$CPP"; then 30498 CPP= 30499 fi 30500 if test -z "$CPP"; then 30501 if ${ac_cv_prog_CPP+:} false; then : 30502 $as_echo_n "(cached) " >&6 30503 else 30504 # Double quotes because CPP needs to be expanded 30505 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30506 do 30507 ac_preproc_ok=false 30508 for ac_c_preproc_warn_flag in '' yes 30509 do 30510 # Use a header file that comes with gcc, so configuring glibc 30511 # with a fresh cross-compiler works. 30512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30513 # <limits.h> exists even on freestanding compilers. 30514 # On the NeXT, cc -E runs the code through the compiler's parser, 30515 # not just through cpp. "Syntax error" is here to catch this case. 30516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30517 /* end confdefs.h. */ 30518 #ifdef __STDC__ 30519 # include <limits.h> 30520 #else 30521 # include <assert.h> 30522 #endif 30523 Syntax error 30524 _ACEOF 30525 if ac_fn_c_try_cpp "$LINENO"; then : 30526 30527 else 30528 # Broken: fails on valid input. 30529 continue 30530 fi 30531 rm -f conftest.err conftest.i conftest.$ac_ext 30532 30533 # OK, works on sane cases. Now check whether nonexistent headers 30534 # can be detected and how. 30535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30536 /* end confdefs.h. */ 30537 #include <ac_nonexistent.h> 30538 _ACEOF 30539 if ac_fn_c_try_cpp "$LINENO"; then : 30540 # Broken: success on invalid input. 30541 continue 30542 else 30543 # Passes both tests. 30544 ac_preproc_ok=: 30545 break 30546 fi 30547 rm -f conftest.err conftest.i conftest.$ac_ext 30548 30549 done 30550 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30551 rm -f conftest.i conftest.err conftest.$ac_ext 30552 if $ac_preproc_ok; then : 30553 break 30554 fi 30555 30556 done 30557 ac_cv_prog_CPP=$CPP 30558 30559 fi 30560 CPP=$ac_cv_prog_CPP 30561 else 30562 ac_cv_prog_CPP=$CPP 30563 fi 30564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30565 $as_echo "$CPP" >&6; } 30566 ac_preproc_ok=false 30567 for ac_c_preproc_warn_flag in '' yes 30568 do 30569 # Use a header file that comes with gcc, so configuring glibc 30570 # with a fresh cross-compiler works. 30571 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30572 # <limits.h> exists even on freestanding compilers. 30573 # On the NeXT, cc -E runs the code through the compiler's parser, 30574 # not just through cpp. "Syntax error" is here to catch this case. 30575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30576 /* end confdefs.h. */ 30577 #ifdef __STDC__ 30578 # include <limits.h> 30579 #else 30580 # include <assert.h> 30581 #endif 30582 Syntax error 30583 _ACEOF 30584 if ac_fn_c_try_cpp "$LINENO"; then : 30585 30586 else 30587 # Broken: fails on valid input. 30588 continue 30589 fi 30590 rm -f conftest.err conftest.i conftest.$ac_ext 30591 30592 # OK, works on sane cases. Now check whether nonexistent headers 30593 # can be detected and how. 30594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30595 /* end confdefs.h. */ 30596 #include <ac_nonexistent.h> 30597 _ACEOF 30598 if ac_fn_c_try_cpp "$LINENO"; then : 30599 # Broken: success on invalid input. 30600 continue 30601 else 30602 # Passes both tests. 30603 ac_preproc_ok=: 30604 break 30605 fi 30606 rm -f conftest.err conftest.i conftest.$ac_ext 30607 30608 done 30609 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30610 rm -f conftest.i conftest.err conftest.$ac_ext 30611 if $ac_preproc_ok; then : 30612 30613 else 30614 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30615 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30616 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30617 See \`config.log' for more details" "$LINENO" 5; } 30618 fi 30619 30620 ac_ext=cpp 30621 ac_cpp='$CXXCPP $CPPFLAGS' 30622 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30623 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30624 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30625 30626 30627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30628 30629 # First separate the path from the arguments. This will split at the first 30630 # space. 30631 complete="$CPP" 30632 path="${complete%% *}" 30633 tmp="$complete EOL" 30634 arguments="${tmp#* }" 30635 30636 # Input might be given as Windows format, start by converting to 30637 # unix format. 30638 new_path=`$CYGPATH -u "$path"` 30639 30640 # Now try to locate executable using which 30641 new_path=`$WHICH "$new_path" 2> /dev/null` 30642 # bat and cmd files are not always considered executable in cygwin causing which 30643 # to not find them 30644 if test "x$new_path" = x \ 30645 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30646 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30647 new_path=`$CYGPATH -u "$path"` 30648 fi 30649 if test "x$new_path" = x; then 30650 # Oops. Which didn't find the executable. 30651 # The splitting of arguments from the executable at a space might have been incorrect, 30652 # since paths with space are more likely in Windows. Give it another try with the whole 30653 # argument. 30654 path="$complete" 30655 arguments="EOL" 30656 new_path=`$CYGPATH -u "$path"` 30657 new_path=`$WHICH "$new_path" 2> /dev/null` 30658 # bat and cmd files are not always considered executable in cygwin causing which 30659 # to not find them 30660 if test "x$new_path" = x \ 30661 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30662 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30663 new_path=`$CYGPATH -u "$path"` 30664 fi 30665 if test "x$new_path" = x; then 30666 # It's still not found. Now this is an unrecoverable error. 30667 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30668 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30669 has_space=`$ECHO "$complete" | $GREP " "` 30670 if test "x$has_space" != x; then 30671 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30672 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30673 fi 30674 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30675 fi 30676 fi 30677 30678 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30679 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30680 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30681 # "foo.exe" is OK but "foo" is an error. 30682 # 30683 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30684 # It is also a way to make sure we got the proper file name for the real test later on. 30685 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30686 if test "x$test_shortpath" = x; then 30687 # Short path failed, file does not exist as specified. 30688 # Try adding .exe or .cmd 30689 if test -f "${new_path}.exe"; then 30690 input_to_shortpath="${new_path}.exe" 30691 elif test -f "${new_path}.cmd"; then 30692 input_to_shortpath="${new_path}.cmd" 30693 else 30694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30695 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30696 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30697 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30698 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30699 fi 30700 else 30701 input_to_shortpath="$new_path" 30702 fi 30703 30704 # Call helper function which possibly converts this using DOS-style short mode. 30705 # If so, the updated path is stored in $new_path. 30706 new_path="$input_to_shortpath" 30707 30708 input_path="$input_to_shortpath" 30709 # Check if we need to convert this using DOS-style short mode. If the path 30710 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30711 # take no chances and rewrite it. 30712 # Note: m4 eats our [], so we need to use [ and ] instead. 30713 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30714 if test "x$has_forbidden_chars" != x; then 30715 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30716 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30717 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30718 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30719 # Going to short mode and back again did indeed matter. Since short mode is 30720 # case insensitive, let's make it lowercase to improve readability. 30721 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30722 # Now convert it back to Unix-stile (cygpath) 30723 input_path=`$CYGPATH -u "$shortmode_path"` 30724 new_path="$input_path" 30725 fi 30726 fi 30727 30728 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30729 if test "x$test_cygdrive_prefix" = x; then 30730 # As a simple fix, exclude /usr/bin since it's not a real path. 30731 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30732 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30733 # a path prefixed by /cygdrive for fixpath to work. 30734 new_path="$CYGWIN_ROOT_PATH$input_path" 30735 fi 30736 fi 30737 30738 # remove trailing .exe if any 30739 new_path="${new_path/%.exe/}" 30740 30741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30742 30743 # First separate the path from the arguments. This will split at the first 30744 # space. 30745 complete="$CPP" 30746 path="${complete%% *}" 30747 tmp="$complete EOL" 30748 arguments="${tmp#* }" 30749 30750 # Input might be given as Windows format, start by converting to 30751 # unix format. 30752 new_path="$path" 30753 30754 windows_path="$new_path" 30755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30756 unix_path=`$CYGPATH -u "$windows_path"` 30757 new_path="$unix_path" 30758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30760 new_path="$unix_path" 30761 fi 30762 30763 30764 # Now try to locate executable using which 30765 new_path=`$WHICH "$new_path" 2> /dev/null` 30766 30767 if test "x$new_path" = x; then 30768 # Oops. Which didn't find the executable. 30769 # The splitting of arguments from the executable at a space might have been incorrect, 30770 # since paths with space are more likely in Windows. Give it another try with the whole 30771 # argument. 30772 path="$complete" 30773 arguments="EOL" 30774 new_path="$path" 30775 30776 windows_path="$new_path" 30777 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30778 unix_path=`$CYGPATH -u "$windows_path"` 30779 new_path="$unix_path" 30780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30781 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30782 new_path="$unix_path" 30783 fi 30784 30785 30786 new_path=`$WHICH "$new_path" 2> /dev/null` 30787 # bat and cmd files are not always considered executable in MSYS causing which 30788 # to not find them 30789 if test "x$new_path" = x \ 30790 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30791 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30792 new_path="$path" 30793 30794 windows_path="$new_path" 30795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30796 unix_path=`$CYGPATH -u "$windows_path"` 30797 new_path="$unix_path" 30798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30800 new_path="$unix_path" 30801 fi 30802 30803 fi 30804 30805 if test "x$new_path" = x; then 30806 # It's still not found. Now this is an unrecoverable error. 30807 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30808 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30809 has_space=`$ECHO "$complete" | $GREP " "` 30810 if test "x$has_space" != x; then 30811 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30812 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30813 fi 30814 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30815 fi 30816 fi 30817 30818 # Now new_path has a complete unix path to the binary 30819 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30820 # Keep paths in /bin as-is, but remove trailing .exe if any 30821 new_path="${new_path/%.exe/}" 30822 # Do not save /bin paths to all_fixpath_prefixes! 30823 else 30824 # Not in mixed or Windows style, start by that. 30825 new_path=`cmd //c echo $new_path` 30826 30827 input_path="$new_path" 30828 # Check if we need to convert this using DOS-style short mode. If the path 30829 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30830 # take no chances and rewrite it. 30831 # Note: m4 eats our [], so we need to use [ and ] instead. 30832 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30833 if test "x$has_forbidden_chars" != x; then 30834 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30835 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30836 fi 30837 30838 # Output is in $new_path 30839 30840 windows_path="$new_path" 30841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30842 unix_path=`$CYGPATH -u "$windows_path"` 30843 new_path="$unix_path" 30844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30846 new_path="$unix_path" 30847 fi 30848 30849 # remove trailing .exe if any 30850 new_path="${new_path/%.exe/}" 30851 30852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30854 fi 30855 30856 else 30857 # We're on a unix platform. Hooray! :) 30858 # First separate the path from the arguments. This will split at the first 30859 # space. 30860 complete="$CPP" 30861 path="${complete%% *}" 30862 tmp="$complete EOL" 30863 arguments="${tmp#* }" 30864 30865 # Cannot rely on the command "which" here since it doesn't always work. 30866 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30867 if test -z "$is_absolute_path"; then 30868 # Path to executable is not absolute. Find it. 30869 IFS_save="$IFS" 30870 IFS=: 30871 for p in $PATH; do 30872 if test -f "$p/$path" && test -x "$p/$path"; then 30873 new_path="$p/$path" 30874 break 30875 fi 30876 done 30877 IFS="$IFS_save" 30878 else 30879 # This is an absolute path, we can use it without further modifications. 30880 new_path="$path" 30881 fi 30882 30883 if test "x$new_path" = x; then 30884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30885 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30886 has_space=`$ECHO "$complete" | $GREP " "` 30887 if test "x$has_space" != x; then 30888 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30889 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30890 fi 30891 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30892 fi 30893 fi 30894 30895 # Now join together the path and the arguments once again 30896 if test "x$arguments" != xEOL; then 30897 new_complete="$new_path ${arguments% *}" 30898 else 30899 new_complete="$new_path" 30900 fi 30901 30902 if test "x$complete" != "x$new_complete"; then 30903 CPP="$new_complete" 30904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30905 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30906 fi 30907 30908 ac_ext=cpp 30909 ac_cpp='$CXXCPP $CPPFLAGS' 30910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30914 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30915 if test -z "$CXXCPP"; then 30916 if ${ac_cv_prog_CXXCPP+:} false; then : 30917 $as_echo_n "(cached) " >&6 30918 else 30919 # Double quotes because CXXCPP needs to be expanded 30920 for CXXCPP in "$CXX -E" "/lib/cpp" 30921 do 30922 ac_preproc_ok=false 30923 for ac_cxx_preproc_warn_flag in '' yes 30924 do 30925 # Use a header file that comes with gcc, so configuring glibc 30926 # with a fresh cross-compiler works. 30927 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30928 # <limits.h> exists even on freestanding compilers. 30929 # On the NeXT, cc -E runs the code through the compiler's parser, 30930 # not just through cpp. "Syntax error" is here to catch this case. 30931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30932 /* end confdefs.h. */ 30933 #ifdef __STDC__ 30934 # include <limits.h> 30935 #else 30936 # include <assert.h> 30937 #endif 30938 Syntax error 30939 _ACEOF 30940 if ac_fn_cxx_try_cpp "$LINENO"; then : 30941 30942 else 30943 # Broken: fails on valid input. 30944 continue 30945 fi 30946 rm -f conftest.err conftest.i conftest.$ac_ext 30947 30948 # OK, works on sane cases. Now check whether nonexistent headers 30949 # can be detected and how. 30950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30951 /* end confdefs.h. */ 30952 #include <ac_nonexistent.h> 30953 _ACEOF 30954 if ac_fn_cxx_try_cpp "$LINENO"; then : 30955 # Broken: success on invalid input. 30956 continue 30957 else 30958 # Passes both tests. 30959 ac_preproc_ok=: 30960 break 30961 fi 30962 rm -f conftest.err conftest.i conftest.$ac_ext 30963 30964 done 30965 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30966 rm -f conftest.i conftest.err conftest.$ac_ext 30967 if $ac_preproc_ok; then : 30968 break 30969 fi 30970 30971 done 30972 ac_cv_prog_CXXCPP=$CXXCPP 30973 30974 fi 30975 CXXCPP=$ac_cv_prog_CXXCPP 30976 else 30977 ac_cv_prog_CXXCPP=$CXXCPP 30978 fi 30979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 30980 $as_echo "$CXXCPP" >&6; } 30981 ac_preproc_ok=false 30982 for ac_cxx_preproc_warn_flag in '' yes 30983 do 30984 # Use a header file that comes with gcc, so configuring glibc 30985 # with a fresh cross-compiler works. 30986 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30987 # <limits.h> exists even on freestanding compilers. 30988 # On the NeXT, cc -E runs the code through the compiler's parser, 30989 # not just through cpp. "Syntax error" is here to catch this case. 30990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30991 /* end confdefs.h. */ 30992 #ifdef __STDC__ 30993 # include <limits.h> 30994 #else 30995 # include <assert.h> 30996 #endif 30997 Syntax error 30998 _ACEOF 30999 if ac_fn_cxx_try_cpp "$LINENO"; then : 31000 31001 else 31002 # Broken: fails on valid input. 31003 continue 31004 fi 31005 rm -f conftest.err conftest.i conftest.$ac_ext 31006 31007 # OK, works on sane cases. Now check whether nonexistent headers 31008 # can be detected and how. 31009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31010 /* end confdefs.h. */ 31011 #include <ac_nonexistent.h> 31012 _ACEOF 31013 if ac_fn_cxx_try_cpp "$LINENO"; then : 31014 # Broken: success on invalid input. 31015 continue 31016 else 31017 # Passes both tests. 31018 ac_preproc_ok=: 31019 break 31020 fi 31021 rm -f conftest.err conftest.i conftest.$ac_ext 31022 31023 done 31024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31025 rm -f conftest.i conftest.err conftest.$ac_ext 31026 if $ac_preproc_ok; then : 31027 31028 else 31029 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31030 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31031 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31032 See \`config.log' for more details" "$LINENO" 5; } 31033 fi 31034 31035 ac_ext=cpp 31036 ac_cpp='$CXXCPP $CPPFLAGS' 31037 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31038 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31039 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31040 31041 31042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31043 31044 # First separate the path from the arguments. This will split at the first 31045 # space. 31046 complete="$CXXCPP" 31047 path="${complete%% *}" 31048 tmp="$complete EOL" 31049 arguments="${tmp#* }" 31050 31051 # Input might be given as Windows format, start by converting to 31052 # unix format. 31053 new_path=`$CYGPATH -u "$path"` 31054 31055 # Now try to locate executable using which 31056 new_path=`$WHICH "$new_path" 2> /dev/null` 31057 # bat and cmd files are not always considered executable in cygwin causing which 31058 # to not find them 31059 if test "x$new_path" = x \ 31060 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31061 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31062 new_path=`$CYGPATH -u "$path"` 31063 fi 31064 if test "x$new_path" = x; then 31065 # Oops. Which didn't find the executable. 31066 # The splitting of arguments from the executable at a space might have been incorrect, 31067 # since paths with space are more likely in Windows. Give it another try with the whole 31068 # argument. 31069 path="$complete" 31070 arguments="EOL" 31071 new_path=`$CYGPATH -u "$path"` 31072 new_path=`$WHICH "$new_path" 2> /dev/null` 31073 # bat and cmd files are not always considered executable in cygwin causing which 31074 # to not find them 31075 if test "x$new_path" = x \ 31076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31078 new_path=`$CYGPATH -u "$path"` 31079 fi 31080 if test "x$new_path" = x; then 31081 # It's still not found. Now this is an unrecoverable error. 31082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31083 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31084 has_space=`$ECHO "$complete" | $GREP " "` 31085 if test "x$has_space" != x; then 31086 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31088 fi 31089 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31090 fi 31091 fi 31092 31093 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31094 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31095 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31096 # "foo.exe" is OK but "foo" is an error. 31097 # 31098 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31099 # It is also a way to make sure we got the proper file name for the real test later on. 31100 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31101 if test "x$test_shortpath" = x; then 31102 # Short path failed, file does not exist as specified. 31103 # Try adding .exe or .cmd 31104 if test -f "${new_path}.exe"; then 31105 input_to_shortpath="${new_path}.exe" 31106 elif test -f "${new_path}.cmd"; then 31107 input_to_shortpath="${new_path}.cmd" 31108 else 31109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31110 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31111 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31112 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31113 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31114 fi 31115 else 31116 input_to_shortpath="$new_path" 31117 fi 31118 31119 # Call helper function which possibly converts this using DOS-style short mode. 31120 # If so, the updated path is stored in $new_path. 31121 new_path="$input_to_shortpath" 31122 31123 input_path="$input_to_shortpath" 31124 # Check if we need to convert this using DOS-style short mode. If the path 31125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31126 # take no chances and rewrite it. 31127 # Note: m4 eats our [], so we need to use [ and ] instead. 31128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31129 if test "x$has_forbidden_chars" != x; then 31130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31134 # Going to short mode and back again did indeed matter. Since short mode is 31135 # case insensitive, let's make it lowercase to improve readability. 31136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31137 # Now convert it back to Unix-stile (cygpath) 31138 input_path=`$CYGPATH -u "$shortmode_path"` 31139 new_path="$input_path" 31140 fi 31141 fi 31142 31143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31144 if test "x$test_cygdrive_prefix" = x; then 31145 # As a simple fix, exclude /usr/bin since it's not a real path. 31146 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31148 # a path prefixed by /cygdrive for fixpath to work. 31149 new_path="$CYGWIN_ROOT_PATH$input_path" 31150 fi 31151 fi 31152 31153 # remove trailing .exe if any 31154 new_path="${new_path/%.exe/}" 31155 31156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31157 31158 # First separate the path from the arguments. This will split at the first 31159 # space. 31160 complete="$CXXCPP" 31161 path="${complete%% *}" 31162 tmp="$complete EOL" 31163 arguments="${tmp#* }" 31164 31165 # Input might be given as Windows format, start by converting to 31166 # unix format. 31167 new_path="$path" 31168 31169 windows_path="$new_path" 31170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31171 unix_path=`$CYGPATH -u "$windows_path"` 31172 new_path="$unix_path" 31173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31175 new_path="$unix_path" 31176 fi 31177 31178 31179 # Now try to locate executable using which 31180 new_path=`$WHICH "$new_path" 2> /dev/null` 31181 31182 if test "x$new_path" = x; then 31183 # Oops. Which didn't find the executable. 31184 # The splitting of arguments from the executable at a space might have been incorrect, 31185 # since paths with space are more likely in Windows. Give it another try with the whole 31186 # argument. 31187 path="$complete" 31188 arguments="EOL" 31189 new_path="$path" 31190 31191 windows_path="$new_path" 31192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31193 unix_path=`$CYGPATH -u "$windows_path"` 31194 new_path="$unix_path" 31195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31197 new_path="$unix_path" 31198 fi 31199 31200 31201 new_path=`$WHICH "$new_path" 2> /dev/null` 31202 # bat and cmd files are not always considered executable in MSYS causing which 31203 # to not find them 31204 if test "x$new_path" = x \ 31205 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31206 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31207 new_path="$path" 31208 31209 windows_path="$new_path" 31210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31211 unix_path=`$CYGPATH -u "$windows_path"` 31212 new_path="$unix_path" 31213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31215 new_path="$unix_path" 31216 fi 31217 31218 fi 31219 31220 if test "x$new_path" = x; then 31221 # It's still not found. Now this is an unrecoverable error. 31222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31223 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31224 has_space=`$ECHO "$complete" | $GREP " "` 31225 if test "x$has_space" != x; then 31226 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31227 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31228 fi 31229 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31230 fi 31231 fi 31232 31233 # Now new_path has a complete unix path to the binary 31234 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31235 # Keep paths in /bin as-is, but remove trailing .exe if any 31236 new_path="${new_path/%.exe/}" 31237 # Do not save /bin paths to all_fixpath_prefixes! 31238 else 31239 # Not in mixed or Windows style, start by that. 31240 new_path=`cmd //c echo $new_path` 31241 31242 input_path="$new_path" 31243 # Check if we need to convert this using DOS-style short mode. If the path 31244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31245 # take no chances and rewrite it. 31246 # Note: m4 eats our [], so we need to use [ and ] instead. 31247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31248 if test "x$has_forbidden_chars" != x; then 31249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31251 fi 31252 31253 # Output is in $new_path 31254 31255 windows_path="$new_path" 31256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31257 unix_path=`$CYGPATH -u "$windows_path"` 31258 new_path="$unix_path" 31259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31261 new_path="$unix_path" 31262 fi 31263 31264 # remove trailing .exe if any 31265 new_path="${new_path/%.exe/}" 31266 31267 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31268 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31269 fi 31270 31271 else 31272 # We're on a unix platform. Hooray! :) 31273 # First separate the path from the arguments. This will split at the first 31274 # space. 31275 complete="$CXXCPP" 31276 path="${complete%% *}" 31277 tmp="$complete EOL" 31278 arguments="${tmp#* }" 31279 31280 # Cannot rely on the command "which" here since it doesn't always work. 31281 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31282 if test -z "$is_absolute_path"; then 31283 # Path to executable is not absolute. Find it. 31284 IFS_save="$IFS" 31285 IFS=: 31286 for p in $PATH; do 31287 if test -f "$p/$path" && test -x "$p/$path"; then 31288 new_path="$p/$path" 31289 break 31290 fi 31291 done 31292 IFS="$IFS_save" 31293 else 31294 # This is an absolute path, we can use it without further modifications. 31295 new_path="$path" 31296 fi 31297 31298 if test "x$new_path" = x; then 31299 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31300 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31301 has_space=`$ECHO "$complete" | $GREP " "` 31302 if test "x$has_space" != x; then 31303 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31304 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31305 fi 31306 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31307 fi 31308 fi 31309 31310 # Now join together the path and the arguments once again 31311 if test "x$arguments" != xEOL; then 31312 new_complete="$new_path ${arguments% *}" 31313 else 31314 new_complete="$new_path" 31315 fi 31316 31317 if test "x$complete" != "x$new_complete"; then 31318 CXXCPP="$new_complete" 31319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31320 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31321 fi 31322 31323 31324 # 31325 # Setup the linker (LD) 31326 # 31327 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31328 # In the Microsoft toolchain we have a separate LD command "link". 31329 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31330 # a cygwin program for something completely different. 31331 # Extract the first word of "link", so it can be a program name with args. 31332 set dummy link; ac_word=$2 31333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31334 $as_echo_n "checking for $ac_word... " >&6; } 31335 if ${ac_cv_prog_LD+:} false; then : 31336 $as_echo_n "(cached) " >&6 31337 else 31338 if test -n "$LD"; then 31339 ac_cv_prog_LD="$LD" # Let the user override the test. 31340 else 31341 ac_prog_rejected=no 31342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31343 for as_dir in $PATH 31344 do 31345 IFS=$as_save_IFS 31346 test -z "$as_dir" && as_dir=. 31347 for ac_exec_ext in '' $ac_executable_extensions; do 31348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31349 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31350 ac_prog_rejected=yes 31351 continue 31352 fi 31353 ac_cv_prog_LD="link" 31354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31355 break 2 31356 fi 31357 done 31358 done 31359 IFS=$as_save_IFS 31360 31361 if test $ac_prog_rejected = yes; then 31362 # We found a bogon in the path, so make sure we never use it. 31363 set dummy $ac_cv_prog_LD 31364 shift 31365 if test $# != 0; then 31366 # We chose a different compiler from the bogus one. 31367 # However, it has the same basename, so the bogon will be chosen 31368 # first if we set LD to just the basename; use the full file name. 31369 shift 31370 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31371 fi 31372 fi 31373 fi 31374 fi 31375 LD=$ac_cv_prog_LD 31376 if test -n "$LD"; then 31377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31378 $as_echo "$LD" >&6; } 31379 else 31380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31381 $as_echo "no" >&6; } 31382 fi 31383 31384 31385 31386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31387 31388 # First separate the path from the arguments. This will split at the first 31389 # space. 31390 complete="$LD" 31391 path="${complete%% *}" 31392 tmp="$complete EOL" 31393 arguments="${tmp#* }" 31394 31395 # Input might be given as Windows format, start by converting to 31396 # unix format. 31397 new_path=`$CYGPATH -u "$path"` 31398 31399 # Now try to locate executable using which 31400 new_path=`$WHICH "$new_path" 2> /dev/null` 31401 # bat and cmd files are not always considered executable in cygwin causing which 31402 # to not find them 31403 if test "x$new_path" = x \ 31404 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31405 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31406 new_path=`$CYGPATH -u "$path"` 31407 fi 31408 if test "x$new_path" = x; then 31409 # Oops. Which didn't find the executable. 31410 # The splitting of arguments from the executable at a space might have been incorrect, 31411 # since paths with space are more likely in Windows. Give it another try with the whole 31412 # argument. 31413 path="$complete" 31414 arguments="EOL" 31415 new_path=`$CYGPATH -u "$path"` 31416 new_path=`$WHICH "$new_path" 2> /dev/null` 31417 # bat and cmd files are not always considered executable in cygwin causing which 31418 # to not find them 31419 if test "x$new_path" = x \ 31420 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31421 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31422 new_path=`$CYGPATH -u "$path"` 31423 fi 31424 if test "x$new_path" = x; then 31425 # It's still not found. Now this is an unrecoverable error. 31426 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31427 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31428 has_space=`$ECHO "$complete" | $GREP " "` 31429 if test "x$has_space" != x; then 31430 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31431 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31432 fi 31433 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31434 fi 31435 fi 31436 31437 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31438 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31439 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31440 # "foo.exe" is OK but "foo" is an error. 31441 # 31442 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31443 # It is also a way to make sure we got the proper file name for the real test later on. 31444 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31445 if test "x$test_shortpath" = x; then 31446 # Short path failed, file does not exist as specified. 31447 # Try adding .exe or .cmd 31448 if test -f "${new_path}.exe"; then 31449 input_to_shortpath="${new_path}.exe" 31450 elif test -f "${new_path}.cmd"; then 31451 input_to_shortpath="${new_path}.cmd" 31452 else 31453 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31454 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31455 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31456 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31457 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31458 fi 31459 else 31460 input_to_shortpath="$new_path" 31461 fi 31462 31463 # Call helper function which possibly converts this using DOS-style short mode. 31464 # If so, the updated path is stored in $new_path. 31465 new_path="$input_to_shortpath" 31466 31467 input_path="$input_to_shortpath" 31468 # Check if we need to convert this using DOS-style short mode. If the path 31469 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31470 # take no chances and rewrite it. 31471 # Note: m4 eats our [], so we need to use [ and ] instead. 31472 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31473 if test "x$has_forbidden_chars" != x; then 31474 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31475 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31476 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31477 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31478 # Going to short mode and back again did indeed matter. Since short mode is 31479 # case insensitive, let's make it lowercase to improve readability. 31480 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31481 # Now convert it back to Unix-stile (cygpath) 31482 input_path=`$CYGPATH -u "$shortmode_path"` 31483 new_path="$input_path" 31484 fi 31485 fi 31486 31487 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31488 if test "x$test_cygdrive_prefix" = x; then 31489 # As a simple fix, exclude /usr/bin since it's not a real path. 31490 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31491 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31492 # a path prefixed by /cygdrive for fixpath to work. 31493 new_path="$CYGWIN_ROOT_PATH$input_path" 31494 fi 31495 fi 31496 31497 # remove trailing .exe if any 31498 new_path="${new_path/%.exe/}" 31499 31500 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31501 31502 # First separate the path from the arguments. This will split at the first 31503 # space. 31504 complete="$LD" 31505 path="${complete%% *}" 31506 tmp="$complete EOL" 31507 arguments="${tmp#* }" 31508 31509 # Input might be given as Windows format, start by converting to 31510 # unix format. 31511 new_path="$path" 31512 31513 windows_path="$new_path" 31514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31515 unix_path=`$CYGPATH -u "$windows_path"` 31516 new_path="$unix_path" 31517 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31518 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31519 new_path="$unix_path" 31520 fi 31521 31522 31523 # Now try to locate executable using which 31524 new_path=`$WHICH "$new_path" 2> /dev/null` 31525 31526 if test "x$new_path" = x; then 31527 # Oops. Which didn't find the executable. 31528 # The splitting of arguments from the executable at a space might have been incorrect, 31529 # since paths with space are more likely in Windows. Give it another try with the whole 31530 # argument. 31531 path="$complete" 31532 arguments="EOL" 31533 new_path="$path" 31534 31535 windows_path="$new_path" 31536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31537 unix_path=`$CYGPATH -u "$windows_path"` 31538 new_path="$unix_path" 31539 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31540 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31541 new_path="$unix_path" 31542 fi 31543 31544 31545 new_path=`$WHICH "$new_path" 2> /dev/null` 31546 # bat and cmd files are not always considered executable in MSYS causing which 31547 # to not find them 31548 if test "x$new_path" = x \ 31549 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31550 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31551 new_path="$path" 31552 31553 windows_path="$new_path" 31554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31555 unix_path=`$CYGPATH -u "$windows_path"` 31556 new_path="$unix_path" 31557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31559 new_path="$unix_path" 31560 fi 31561 31562 fi 31563 31564 if test "x$new_path" = x; then 31565 # It's still not found. Now this is an unrecoverable error. 31566 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31567 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31568 has_space=`$ECHO "$complete" | $GREP " "` 31569 if test "x$has_space" != x; then 31570 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31571 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31572 fi 31573 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31574 fi 31575 fi 31576 31577 # Now new_path has a complete unix path to the binary 31578 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31579 # Keep paths in /bin as-is, but remove trailing .exe if any 31580 new_path="${new_path/%.exe/}" 31581 # Do not save /bin paths to all_fixpath_prefixes! 31582 else 31583 # Not in mixed or Windows style, start by that. 31584 new_path=`cmd //c echo $new_path` 31585 31586 input_path="$new_path" 31587 # Check if we need to convert this using DOS-style short mode. If the path 31588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31589 # take no chances and rewrite it. 31590 # Note: m4 eats our [], so we need to use [ and ] instead. 31591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31592 if test "x$has_forbidden_chars" != x; then 31593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31594 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31595 fi 31596 31597 # Output is in $new_path 31598 31599 windows_path="$new_path" 31600 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31601 unix_path=`$CYGPATH -u "$windows_path"` 31602 new_path="$unix_path" 31603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31604 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31605 new_path="$unix_path" 31606 fi 31607 31608 # remove trailing .exe if any 31609 new_path="${new_path/%.exe/}" 31610 31611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31613 fi 31614 31615 else 31616 # We're on a unix platform. Hooray! :) 31617 # First separate the path from the arguments. This will split at the first 31618 # space. 31619 complete="$LD" 31620 path="${complete%% *}" 31621 tmp="$complete EOL" 31622 arguments="${tmp#* }" 31623 31624 # Cannot rely on the command "which" here since it doesn't always work. 31625 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31626 if test -z "$is_absolute_path"; then 31627 # Path to executable is not absolute. Find it. 31628 IFS_save="$IFS" 31629 IFS=: 31630 for p in $PATH; do 31631 if test -f "$p/$path" && test -x "$p/$path"; then 31632 new_path="$p/$path" 31633 break 31634 fi 31635 done 31636 IFS="$IFS_save" 31637 else 31638 # This is an absolute path, we can use it without further modifications. 31639 new_path="$path" 31640 fi 31641 31642 if test "x$new_path" = x; then 31643 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31644 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31645 has_space=`$ECHO "$complete" | $GREP " "` 31646 if test "x$has_space" != x; then 31647 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31648 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31649 fi 31650 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31651 fi 31652 fi 31653 31654 # Now join together the path and the arguments once again 31655 if test "x$arguments" != xEOL; then 31656 new_complete="$new_path ${arguments% *}" 31657 else 31658 new_complete="$new_path" 31659 fi 31660 31661 if test "x$complete" != "x$new_complete"; then 31662 LD="$new_complete" 31663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31664 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31665 fi 31666 31667 # Verify that we indeed succeeded with this trick. 31668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31669 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31670 "$LD" --version > /dev/null 31671 if test $? -eq 0 ; then 31672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31673 $as_echo "no" >&6; } 31674 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31675 else 31676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31677 $as_echo "yes" >&6; } 31678 fi 31679 LDCXX="$LD" 31680 else 31681 # All other toolchains use the compiler to link. 31682 LD="$CC" 31683 LDCXX="$CXX" 31684 fi 31685 31686 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31687 31688 31689 # 31690 # Setup the assembler (AS) 31691 # 31692 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31693 # FIXME: should this really be solaris, or solstudio? 31694 31695 31696 # Publish this variable in the help. 31697 31698 31699 if test "x$AS" = x; then 31700 # The variable is not set by user, try to locate tool using the code snippet 31701 for ac_prog in as 31702 do 31703 # Extract the first word of "$ac_prog", so it can be a program name with args. 31704 set dummy $ac_prog; ac_word=$2 31705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31706 $as_echo_n "checking for $ac_word... " >&6; } 31707 if ${ac_cv_path_AS+:} false; then : 31708 $as_echo_n "(cached) " >&6 31709 else 31710 case $AS in 31711 [\\/]* | ?:[\\/]*) 31712 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31713 ;; 31714 *) 31715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31716 for as_dir in $PATH 31717 do 31718 IFS=$as_save_IFS 31719 test -z "$as_dir" && as_dir=. 31720 for ac_exec_ext in '' $ac_executable_extensions; do 31721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31722 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31724 break 2 31725 fi 31726 done 31727 done 31728 IFS=$as_save_IFS 31729 31730 ;; 31731 esac 31732 fi 31733 AS=$ac_cv_path_AS 31734 if test -n "$AS"; then 31735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31736 $as_echo "$AS" >&6; } 31737 else 31738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31739 $as_echo "no" >&6; } 31740 fi 31741 31742 31743 test -n "$AS" && break 31744 done 31745 31746 else 31747 # The variable is set, but is it from the command line or the environment? 31748 31749 # Try to remove the string !AS! from our list. 31750 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31751 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31752 # If it failed, the variable was not from the command line. Ignore it, 31753 # but warn the user (except for BASH, which is always set by the calling BASH). 31754 if test "xAS" != xBASH; then 31755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31756 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31757 fi 31758 # Try to locate tool using the code snippet 31759 for ac_prog in as 31760 do 31761 # Extract the first word of "$ac_prog", so it can be a program name with args. 31762 set dummy $ac_prog; ac_word=$2 31763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31764 $as_echo_n "checking for $ac_word... " >&6; } 31765 if ${ac_cv_path_AS+:} false; then : 31766 $as_echo_n "(cached) " >&6 31767 else 31768 case $AS in 31769 [\\/]* | ?:[\\/]*) 31770 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31771 ;; 31772 *) 31773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31774 for as_dir in $PATH 31775 do 31776 IFS=$as_save_IFS 31777 test -z "$as_dir" && as_dir=. 31778 for ac_exec_ext in '' $ac_executable_extensions; do 31779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31780 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31782 break 2 31783 fi 31784 done 31785 done 31786 IFS=$as_save_IFS 31787 31788 ;; 31789 esac 31790 fi 31791 AS=$ac_cv_path_AS 31792 if test -n "$AS"; then 31793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31794 $as_echo "$AS" >&6; } 31795 else 31796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31797 $as_echo "no" >&6; } 31798 fi 31799 31800 31801 test -n "$AS" && break 31802 done 31803 31804 else 31805 # If it succeeded, then it was overridden by the user. We will use it 31806 # for the tool. 31807 31808 # First remove it from the list of overridden variables, so we can test 31809 # for unknown variables in the end. 31810 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31811 31812 # Check if the provided tool contains a complete path. 31813 tool_specified="$AS" 31814 tool_basename="${tool_specified##*/}" 31815 if test "x$tool_basename" = "x$tool_specified"; then 31816 # A command without a complete path is provided, search $PATH. 31817 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31818 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31819 # Extract the first word of "$tool_basename", so it can be a program name with args. 31820 set dummy $tool_basename; ac_word=$2 31821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31822 $as_echo_n "checking for $ac_word... " >&6; } 31823 if ${ac_cv_path_AS+:} false; then : 31824 $as_echo_n "(cached) " >&6 31825 else 31826 case $AS in 31827 [\\/]* | ?:[\\/]*) 31828 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31829 ;; 31830 *) 31831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31832 for as_dir in $PATH 31833 do 31834 IFS=$as_save_IFS 31835 test -z "$as_dir" && as_dir=. 31836 for ac_exec_ext in '' $ac_executable_extensions; do 31837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31838 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31840 break 2 31841 fi 31842 done 31843 done 31844 IFS=$as_save_IFS 31845 31846 ;; 31847 esac 31848 fi 31849 AS=$ac_cv_path_AS 31850 if test -n "$AS"; then 31851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31852 $as_echo "$AS" >&6; } 31853 else 31854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31855 $as_echo "no" >&6; } 31856 fi 31857 31858 31859 if test "x$AS" = x; then 31860 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31861 fi 31862 else 31863 # Otherwise we believe it is a complete path. Use it as it is. 31864 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31865 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31867 $as_echo_n "checking for AS... " >&6; } 31868 if test ! -x "$tool_specified"; then 31869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31870 $as_echo "not found" >&6; } 31871 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31872 fi 31873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31874 $as_echo "$tool_specified" >&6; } 31875 fi 31876 fi 31877 fi 31878 31879 31880 31881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31882 31883 # First separate the path from the arguments. This will split at the first 31884 # space. 31885 complete="$AS" 31886 path="${complete%% *}" 31887 tmp="$complete EOL" 31888 arguments="${tmp#* }" 31889 31890 # Input might be given as Windows format, start by converting to 31891 # unix format. 31892 new_path=`$CYGPATH -u "$path"` 31893 31894 # Now try to locate executable using which 31895 new_path=`$WHICH "$new_path" 2> /dev/null` 31896 # bat and cmd files are not always considered executable in cygwin causing which 31897 # to not find them 31898 if test "x$new_path" = x \ 31899 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31900 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31901 new_path=`$CYGPATH -u "$path"` 31902 fi 31903 if test "x$new_path" = x; then 31904 # Oops. Which didn't find the executable. 31905 # The splitting of arguments from the executable at a space might have been incorrect, 31906 # since paths with space are more likely in Windows. Give it another try with the whole 31907 # argument. 31908 path="$complete" 31909 arguments="EOL" 31910 new_path=`$CYGPATH -u "$path"` 31911 new_path=`$WHICH "$new_path" 2> /dev/null` 31912 # bat and cmd files are not always considered executable in cygwin causing which 31913 # to not find them 31914 if test "x$new_path" = x \ 31915 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31916 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31917 new_path=`$CYGPATH -u "$path"` 31918 fi 31919 if test "x$new_path" = x; then 31920 # It's still not found. Now this is an unrecoverable error. 31921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31922 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31923 has_space=`$ECHO "$complete" | $GREP " "` 31924 if test "x$has_space" != x; then 31925 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31926 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31927 fi 31928 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31929 fi 31930 fi 31931 31932 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31933 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31934 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31935 # "foo.exe" is OK but "foo" is an error. 31936 # 31937 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31938 # It is also a way to make sure we got the proper file name for the real test later on. 31939 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31940 if test "x$test_shortpath" = x; then 31941 # Short path failed, file does not exist as specified. 31942 # Try adding .exe or .cmd 31943 if test -f "${new_path}.exe"; then 31944 input_to_shortpath="${new_path}.exe" 31945 elif test -f "${new_path}.cmd"; then 31946 input_to_shortpath="${new_path}.cmd" 31947 else 31948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31949 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31950 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31951 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31952 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31953 fi 31954 else 31955 input_to_shortpath="$new_path" 31956 fi 31957 31958 # Call helper function which possibly converts this using DOS-style short mode. 31959 # If so, the updated path is stored in $new_path. 31960 new_path="$input_to_shortpath" 31961 31962 input_path="$input_to_shortpath" 31963 # Check if we need to convert this using DOS-style short mode. If the path 31964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31965 # take no chances and rewrite it. 31966 # Note: m4 eats our [], so we need to use [ and ] instead. 31967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31968 if test "x$has_forbidden_chars" != x; then 31969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31970 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31971 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31972 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31973 # Going to short mode and back again did indeed matter. Since short mode is 31974 # case insensitive, let's make it lowercase to improve readability. 31975 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31976 # Now convert it back to Unix-stile (cygpath) 31977 input_path=`$CYGPATH -u "$shortmode_path"` 31978 new_path="$input_path" 31979 fi 31980 fi 31981 31982 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31983 if test "x$test_cygdrive_prefix" = x; then 31984 # As a simple fix, exclude /usr/bin since it's not a real path. 31985 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31986 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31987 # a path prefixed by /cygdrive for fixpath to work. 31988 new_path="$CYGWIN_ROOT_PATH$input_path" 31989 fi 31990 fi 31991 31992 # remove trailing .exe if any 31993 new_path="${new_path/%.exe/}" 31994 31995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31996 31997 # First separate the path from the arguments. This will split at the first 31998 # space. 31999 complete="$AS" 32000 path="${complete%% *}" 32001 tmp="$complete EOL" 32002 arguments="${tmp#* }" 32003 32004 # Input might be given as Windows format, start by converting to 32005 # unix format. 32006 new_path="$path" 32007 32008 windows_path="$new_path" 32009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32010 unix_path=`$CYGPATH -u "$windows_path"` 32011 new_path="$unix_path" 32012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32014 new_path="$unix_path" 32015 fi 32016 32017 32018 # Now try to locate executable using which 32019 new_path=`$WHICH "$new_path" 2> /dev/null` 32020 32021 if test "x$new_path" = x; then 32022 # Oops. Which didn't find the executable. 32023 # The splitting of arguments from the executable at a space might have been incorrect, 32024 # since paths with space are more likely in Windows. Give it another try with the whole 32025 # argument. 32026 path="$complete" 32027 arguments="EOL" 32028 new_path="$path" 32029 32030 windows_path="$new_path" 32031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32032 unix_path=`$CYGPATH -u "$windows_path"` 32033 new_path="$unix_path" 32034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32035 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32036 new_path="$unix_path" 32037 fi 32038 32039 32040 new_path=`$WHICH "$new_path" 2> /dev/null` 32041 # bat and cmd files are not always considered executable in MSYS causing which 32042 # to not find them 32043 if test "x$new_path" = x \ 32044 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32045 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32046 new_path="$path" 32047 32048 windows_path="$new_path" 32049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32050 unix_path=`$CYGPATH -u "$windows_path"` 32051 new_path="$unix_path" 32052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32054 new_path="$unix_path" 32055 fi 32056 32057 fi 32058 32059 if test "x$new_path" = x; then 32060 # It's still not found. Now this is an unrecoverable error. 32061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32062 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32063 has_space=`$ECHO "$complete" | $GREP " "` 32064 if test "x$has_space" != x; then 32065 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32066 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32067 fi 32068 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32069 fi 32070 fi 32071 32072 # Now new_path has a complete unix path to the binary 32073 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32074 # Keep paths in /bin as-is, but remove trailing .exe if any 32075 new_path="${new_path/%.exe/}" 32076 # Do not save /bin paths to all_fixpath_prefixes! 32077 else 32078 # Not in mixed or Windows style, start by that. 32079 new_path=`cmd //c echo $new_path` 32080 32081 input_path="$new_path" 32082 # Check if we need to convert this using DOS-style short mode. If the path 32083 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32084 # take no chances and rewrite it. 32085 # Note: m4 eats our [], so we need to use [ and ] instead. 32086 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32087 if test "x$has_forbidden_chars" != x; then 32088 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32089 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32090 fi 32091 32092 # Output is in $new_path 32093 32094 windows_path="$new_path" 32095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32096 unix_path=`$CYGPATH -u "$windows_path"` 32097 new_path="$unix_path" 32098 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32099 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32100 new_path="$unix_path" 32101 fi 32102 32103 # remove trailing .exe if any 32104 new_path="${new_path/%.exe/}" 32105 32106 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32107 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32108 fi 32109 32110 else 32111 # We're on a unix platform. Hooray! :) 32112 # First separate the path from the arguments. This will split at the first 32113 # space. 32114 complete="$AS" 32115 path="${complete%% *}" 32116 tmp="$complete EOL" 32117 arguments="${tmp#* }" 32118 32119 # Cannot rely on the command "which" here since it doesn't always work. 32120 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32121 if test -z "$is_absolute_path"; then 32122 # Path to executable is not absolute. Find it. 32123 IFS_save="$IFS" 32124 IFS=: 32125 for p in $PATH; do 32126 if test -f "$p/$path" && test -x "$p/$path"; then 32127 new_path="$p/$path" 32128 break 32129 fi 32130 done 32131 IFS="$IFS_save" 32132 else 32133 # This is an absolute path, we can use it without further modifications. 32134 new_path="$path" 32135 fi 32136 32137 if test "x$new_path" = x; then 32138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32139 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32140 has_space=`$ECHO "$complete" | $GREP " "` 32141 if test "x$has_space" != x; then 32142 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32143 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32144 fi 32145 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32146 fi 32147 fi 32148 32149 # Now join together the path and the arguments once again 32150 if test "x$arguments" != xEOL; then 32151 new_complete="$new_path ${arguments% *}" 32152 else 32153 new_complete="$new_path" 32154 fi 32155 32156 if test "x$complete" != "x$new_complete"; then 32157 AS="$new_complete" 32158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32159 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32160 fi 32161 32162 else 32163 # FIXME: is this correct for microsoft? 32164 AS="$CC -c" 32165 fi 32166 32167 32168 # 32169 # Setup the archiver (AR) 32170 # 32171 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32172 # The corresponding ar tool is lib.exe (used to create static libraries) 32173 # Extract the first word of "lib", so it can be a program name with args. 32174 set dummy lib; ac_word=$2 32175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32176 $as_echo_n "checking for $ac_word... " >&6; } 32177 if ${ac_cv_prog_AR+:} false; then : 32178 $as_echo_n "(cached) " >&6 32179 else 32180 if test -n "$AR"; then 32181 ac_cv_prog_AR="$AR" # Let the user override the test. 32182 else 32183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32184 for as_dir in $PATH 32185 do 32186 IFS=$as_save_IFS 32187 test -z "$as_dir" && as_dir=. 32188 for ac_exec_ext in '' $ac_executable_extensions; do 32189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32190 ac_cv_prog_AR="lib" 32191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32192 break 2 32193 fi 32194 done 32195 done 32196 IFS=$as_save_IFS 32197 32198 fi 32199 fi 32200 AR=$ac_cv_prog_AR 32201 if test -n "$AR"; then 32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32203 $as_echo "$AR" >&6; } 32204 else 32205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32206 $as_echo "no" >&6; } 32207 fi 32208 32209 32210 else 32211 32212 32213 # Publish this variable in the help. 32214 32215 32216 if test "x$AR" = x; then 32217 # The variable is not set by user, try to locate tool using the code snippet 32218 if test -n "$ac_tool_prefix"; then 32219 for ac_prog in ar 32220 do 32221 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32224 $as_echo_n "checking for $ac_word... " >&6; } 32225 if ${ac_cv_prog_AR+:} false; then : 32226 $as_echo_n "(cached) " >&6 32227 else 32228 if test -n "$AR"; then 32229 ac_cv_prog_AR="$AR" # Let the user override the test. 32230 else 32231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32232 for as_dir in $PATH 32233 do 32234 IFS=$as_save_IFS 32235 test -z "$as_dir" && as_dir=. 32236 for ac_exec_ext in '' $ac_executable_extensions; do 32237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32238 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32240 break 2 32241 fi 32242 done 32243 done 32244 IFS=$as_save_IFS 32245 32246 fi 32247 fi 32248 AR=$ac_cv_prog_AR 32249 if test -n "$AR"; then 32250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32251 $as_echo "$AR" >&6; } 32252 else 32253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32254 $as_echo "no" >&6; } 32255 fi 32256 32257 32258 test -n "$AR" && break 32259 done 32260 fi 32261 if test -z "$AR"; then 32262 ac_ct_AR=$AR 32263 for ac_prog in ar 32264 do 32265 # Extract the first word of "$ac_prog", so it can be a program name with args. 32266 set dummy $ac_prog; ac_word=$2 32267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32268 $as_echo_n "checking for $ac_word... " >&6; } 32269 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32270 $as_echo_n "(cached) " >&6 32271 else 32272 if test -n "$ac_ct_AR"; then 32273 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32274 else 32275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32276 for as_dir in $PATH 32277 do 32278 IFS=$as_save_IFS 32279 test -z "$as_dir" && as_dir=. 32280 for ac_exec_ext in '' $ac_executable_extensions; do 32281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32282 ac_cv_prog_ac_ct_AR="$ac_prog" 32283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32284 break 2 32285 fi 32286 done 32287 done 32288 IFS=$as_save_IFS 32289 32290 fi 32291 fi 32292 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32293 if test -n "$ac_ct_AR"; then 32294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32295 $as_echo "$ac_ct_AR" >&6; } 32296 else 32297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32298 $as_echo "no" >&6; } 32299 fi 32300 32301 32302 test -n "$ac_ct_AR" && break 32303 done 32304 32305 if test "x$ac_ct_AR" = x; then 32306 AR="" 32307 else 32308 case $cross_compiling:$ac_tool_warned in 32309 yes:) 32310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32311 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32312 ac_tool_warned=yes ;; 32313 esac 32314 AR=$ac_ct_AR 32315 fi 32316 fi 32317 32318 else 32319 # The variable is set, but is it from the command line or the environment? 32320 32321 # Try to remove the string !AR! from our list. 32322 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32323 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32324 # If it failed, the variable was not from the command line. Ignore it, 32325 # but warn the user (except for BASH, which is always set by the calling BASH). 32326 if test "xAR" != xBASH; then 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32328 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32329 fi 32330 # Try to locate tool using the code snippet 32331 if test -n "$ac_tool_prefix"; then 32332 for ac_prog in ar 32333 do 32334 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32335 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32337 $as_echo_n "checking for $ac_word... " >&6; } 32338 if ${ac_cv_prog_AR+:} false; then : 32339 $as_echo_n "(cached) " >&6 32340 else 32341 if test -n "$AR"; then 32342 ac_cv_prog_AR="$AR" # Let the user override the test. 32343 else 32344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32345 for as_dir in $PATH 32346 do 32347 IFS=$as_save_IFS 32348 test -z "$as_dir" && as_dir=. 32349 for ac_exec_ext in '' $ac_executable_extensions; do 32350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32351 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32353 break 2 32354 fi 32355 done 32356 done 32357 IFS=$as_save_IFS 32358 32359 fi 32360 fi 32361 AR=$ac_cv_prog_AR 32362 if test -n "$AR"; then 32363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32364 $as_echo "$AR" >&6; } 32365 else 32366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32367 $as_echo "no" >&6; } 32368 fi 32369 32370 32371 test -n "$AR" && break 32372 done 32373 fi 32374 if test -z "$AR"; then 32375 ac_ct_AR=$AR 32376 for ac_prog in ar 32377 do 32378 # Extract the first word of "$ac_prog", so it can be a program name with args. 32379 set dummy $ac_prog; ac_word=$2 32380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32381 $as_echo_n "checking for $ac_word... " >&6; } 32382 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32383 $as_echo_n "(cached) " >&6 32384 else 32385 if test -n "$ac_ct_AR"; then 32386 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32387 else 32388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32389 for as_dir in $PATH 32390 do 32391 IFS=$as_save_IFS 32392 test -z "$as_dir" && as_dir=. 32393 for ac_exec_ext in '' $ac_executable_extensions; do 32394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32395 ac_cv_prog_ac_ct_AR="$ac_prog" 32396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32397 break 2 32398 fi 32399 done 32400 done 32401 IFS=$as_save_IFS 32402 32403 fi 32404 fi 32405 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32406 if test -n "$ac_ct_AR"; then 32407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32408 $as_echo "$ac_ct_AR" >&6; } 32409 else 32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32411 $as_echo "no" >&6; } 32412 fi 32413 32414 32415 test -n "$ac_ct_AR" && break 32416 done 32417 32418 if test "x$ac_ct_AR" = x; then 32419 AR="" 32420 else 32421 case $cross_compiling:$ac_tool_warned in 32422 yes:) 32423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32424 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32425 ac_tool_warned=yes ;; 32426 esac 32427 AR=$ac_ct_AR 32428 fi 32429 fi 32430 32431 else 32432 # If it succeeded, then it was overridden by the user. We will use it 32433 # for the tool. 32434 32435 # First remove it from the list of overridden variables, so we can test 32436 # for unknown variables in the end. 32437 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32438 32439 # Check if the provided tool contains a complete path. 32440 tool_specified="$AR" 32441 tool_basename="${tool_specified##*/}" 32442 if test "x$tool_basename" = "x$tool_specified"; then 32443 # A command without a complete path is provided, search $PATH. 32444 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32445 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32446 # Extract the first word of "$tool_basename", so it can be a program name with args. 32447 set dummy $tool_basename; ac_word=$2 32448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32449 $as_echo_n "checking for $ac_word... " >&6; } 32450 if ${ac_cv_path_AR+:} false; then : 32451 $as_echo_n "(cached) " >&6 32452 else 32453 case $AR in 32454 [\\/]* | ?:[\\/]*) 32455 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32456 ;; 32457 *) 32458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32459 for as_dir in $PATH 32460 do 32461 IFS=$as_save_IFS 32462 test -z "$as_dir" && as_dir=. 32463 for ac_exec_ext in '' $ac_executable_extensions; do 32464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32465 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32467 break 2 32468 fi 32469 done 32470 done 32471 IFS=$as_save_IFS 32472 32473 ;; 32474 esac 32475 fi 32476 AR=$ac_cv_path_AR 32477 if test -n "$AR"; then 32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32479 $as_echo "$AR" >&6; } 32480 else 32481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32482 $as_echo "no" >&6; } 32483 fi 32484 32485 32486 if test "x$AR" = x; then 32487 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32488 fi 32489 else 32490 # Otherwise we believe it is a complete path. Use it as it is. 32491 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32492 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32494 $as_echo_n "checking for AR... " >&6; } 32495 if test ! -x "$tool_specified"; then 32496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32497 $as_echo "not found" >&6; } 32498 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32499 fi 32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32501 $as_echo "$tool_specified" >&6; } 32502 fi 32503 fi 32504 fi 32505 32506 32507 fi 32508 32509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32510 32511 # First separate the path from the arguments. This will split at the first 32512 # space. 32513 complete="$AR" 32514 path="${complete%% *}" 32515 tmp="$complete EOL" 32516 arguments="${tmp#* }" 32517 32518 # Input might be given as Windows format, start by converting to 32519 # unix format. 32520 new_path=`$CYGPATH -u "$path"` 32521 32522 # Now try to locate executable using which 32523 new_path=`$WHICH "$new_path" 2> /dev/null` 32524 # bat and cmd files are not always considered executable in cygwin causing which 32525 # to not find them 32526 if test "x$new_path" = x \ 32527 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32528 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32529 new_path=`$CYGPATH -u "$path"` 32530 fi 32531 if test "x$new_path" = x; then 32532 # Oops. Which didn't find the executable. 32533 # The splitting of arguments from the executable at a space might have been incorrect, 32534 # since paths with space are more likely in Windows. Give it another try with the whole 32535 # argument. 32536 path="$complete" 32537 arguments="EOL" 32538 new_path=`$CYGPATH -u "$path"` 32539 new_path=`$WHICH "$new_path" 2> /dev/null` 32540 # bat and cmd files are not always considered executable in cygwin causing which 32541 # to not find them 32542 if test "x$new_path" = x \ 32543 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32544 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32545 new_path=`$CYGPATH -u "$path"` 32546 fi 32547 if test "x$new_path" = x; then 32548 # It's still not found. Now this is an unrecoverable error. 32549 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32550 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32551 has_space=`$ECHO "$complete" | $GREP " "` 32552 if test "x$has_space" != x; then 32553 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32554 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32555 fi 32556 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32557 fi 32558 fi 32559 32560 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32561 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32562 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32563 # "foo.exe" is OK but "foo" is an error. 32564 # 32565 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32566 # It is also a way to make sure we got the proper file name for the real test later on. 32567 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32568 if test "x$test_shortpath" = x; then 32569 # Short path failed, file does not exist as specified. 32570 # Try adding .exe or .cmd 32571 if test -f "${new_path}.exe"; then 32572 input_to_shortpath="${new_path}.exe" 32573 elif test -f "${new_path}.cmd"; then 32574 input_to_shortpath="${new_path}.cmd" 32575 else 32576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32577 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32578 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32579 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32580 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32581 fi 32582 else 32583 input_to_shortpath="$new_path" 32584 fi 32585 32586 # Call helper function which possibly converts this using DOS-style short mode. 32587 # If so, the updated path is stored in $new_path. 32588 new_path="$input_to_shortpath" 32589 32590 input_path="$input_to_shortpath" 32591 # Check if we need to convert this using DOS-style short mode. If the path 32592 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32593 # take no chances and rewrite it. 32594 # Note: m4 eats our [], so we need to use [ and ] instead. 32595 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32596 if test "x$has_forbidden_chars" != x; then 32597 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32598 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32599 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32600 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32601 # Going to short mode and back again did indeed matter. Since short mode is 32602 # case insensitive, let's make it lowercase to improve readability. 32603 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32604 # Now convert it back to Unix-stile (cygpath) 32605 input_path=`$CYGPATH -u "$shortmode_path"` 32606 new_path="$input_path" 32607 fi 32608 fi 32609 32610 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32611 if test "x$test_cygdrive_prefix" = x; then 32612 # As a simple fix, exclude /usr/bin since it's not a real path. 32613 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32614 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32615 # a path prefixed by /cygdrive for fixpath to work. 32616 new_path="$CYGWIN_ROOT_PATH$input_path" 32617 fi 32618 fi 32619 32620 # remove trailing .exe if any 32621 new_path="${new_path/%.exe/}" 32622 32623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32624 32625 # First separate the path from the arguments. This will split at the first 32626 # space. 32627 complete="$AR" 32628 path="${complete%% *}" 32629 tmp="$complete EOL" 32630 arguments="${tmp#* }" 32631 32632 # Input might be given as Windows format, start by converting to 32633 # unix format. 32634 new_path="$path" 32635 32636 windows_path="$new_path" 32637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32638 unix_path=`$CYGPATH -u "$windows_path"` 32639 new_path="$unix_path" 32640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32642 new_path="$unix_path" 32643 fi 32644 32645 32646 # Now try to locate executable using which 32647 new_path=`$WHICH "$new_path" 2> /dev/null` 32648 32649 if test "x$new_path" = x; then 32650 # Oops. Which didn't find the executable. 32651 # The splitting of arguments from the executable at a space might have been incorrect, 32652 # since paths with space are more likely in Windows. Give it another try with the whole 32653 # argument. 32654 path="$complete" 32655 arguments="EOL" 32656 new_path="$path" 32657 32658 windows_path="$new_path" 32659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32660 unix_path=`$CYGPATH -u "$windows_path"` 32661 new_path="$unix_path" 32662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32663 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32664 new_path="$unix_path" 32665 fi 32666 32667 32668 new_path=`$WHICH "$new_path" 2> /dev/null` 32669 # bat and cmd files are not always considered executable in MSYS causing which 32670 # to not find them 32671 if test "x$new_path" = x \ 32672 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32673 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32674 new_path="$path" 32675 32676 windows_path="$new_path" 32677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32678 unix_path=`$CYGPATH -u "$windows_path"` 32679 new_path="$unix_path" 32680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32682 new_path="$unix_path" 32683 fi 32684 32685 fi 32686 32687 if test "x$new_path" = x; then 32688 # It's still not found. Now this is an unrecoverable error. 32689 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32690 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32691 has_space=`$ECHO "$complete" | $GREP " "` 32692 if test "x$has_space" != x; then 32693 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32694 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32695 fi 32696 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32697 fi 32698 fi 32699 32700 # Now new_path has a complete unix path to the binary 32701 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32702 # Keep paths in /bin as-is, but remove trailing .exe if any 32703 new_path="${new_path/%.exe/}" 32704 # Do not save /bin paths to all_fixpath_prefixes! 32705 else 32706 # Not in mixed or Windows style, start by that. 32707 new_path=`cmd //c echo $new_path` 32708 32709 input_path="$new_path" 32710 # Check if we need to convert this using DOS-style short mode. If the path 32711 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32712 # take no chances and rewrite it. 32713 # Note: m4 eats our [], so we need to use [ and ] instead. 32714 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32715 if test "x$has_forbidden_chars" != x; then 32716 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32717 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32718 fi 32719 32720 # Output is in $new_path 32721 32722 windows_path="$new_path" 32723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32724 unix_path=`$CYGPATH -u "$windows_path"` 32725 new_path="$unix_path" 32726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32727 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32728 new_path="$unix_path" 32729 fi 32730 32731 # remove trailing .exe if any 32732 new_path="${new_path/%.exe/}" 32733 32734 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32735 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32736 fi 32737 32738 else 32739 # We're on a unix platform. Hooray! :) 32740 # First separate the path from the arguments. This will split at the first 32741 # space. 32742 complete="$AR" 32743 path="${complete%% *}" 32744 tmp="$complete EOL" 32745 arguments="${tmp#* }" 32746 32747 # Cannot rely on the command "which" here since it doesn't always work. 32748 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32749 if test -z "$is_absolute_path"; then 32750 # Path to executable is not absolute. Find it. 32751 IFS_save="$IFS" 32752 IFS=: 32753 for p in $PATH; do 32754 if test -f "$p/$path" && test -x "$p/$path"; then 32755 new_path="$p/$path" 32756 break 32757 fi 32758 done 32759 IFS="$IFS_save" 32760 else 32761 # This is an absolute path, we can use it without further modifications. 32762 new_path="$path" 32763 fi 32764 32765 if test "x$new_path" = x; then 32766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32767 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32768 has_space=`$ECHO "$complete" | $GREP " "` 32769 if test "x$has_space" != x; then 32770 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32771 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32772 fi 32773 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32774 fi 32775 fi 32776 32777 # Now join together the path and the arguments once again 32778 if test "x$arguments" != xEOL; then 32779 new_complete="$new_path ${arguments% *}" 32780 else 32781 new_complete="$new_path" 32782 fi 32783 32784 if test "x$complete" != "x$new_complete"; then 32785 AR="$new_complete" 32786 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32787 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32788 fi 32789 32790 32791 32792 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32793 ac_ext=m 32794 ac_cpp='$OBJCPP $CPPFLAGS' 32795 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32796 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32797 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32798 if test -n "$ac_tool_prefix"; then 32799 for ac_prog in gcc objcc objc cc CC 32800 do 32801 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32802 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32804 $as_echo_n "checking for $ac_word... " >&6; } 32805 if ${ac_cv_prog_OBJC+:} false; then : 32806 $as_echo_n "(cached) " >&6 32807 else 32808 if test -n "$OBJC"; then 32809 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32810 else 32811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32812 for as_dir in $PATH 32813 do 32814 IFS=$as_save_IFS 32815 test -z "$as_dir" && as_dir=. 32816 for ac_exec_ext in '' $ac_executable_extensions; do 32817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32818 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32820 break 2 32821 fi 32822 done 32823 done 32824 IFS=$as_save_IFS 32825 32826 fi 32827 fi 32828 OBJC=$ac_cv_prog_OBJC 32829 if test -n "$OBJC"; then 32830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32831 $as_echo "$OBJC" >&6; } 32832 else 32833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32834 $as_echo "no" >&6; } 32835 fi 32836 32837 32838 test -n "$OBJC" && break 32839 done 32840 fi 32841 if test -z "$OBJC"; then 32842 ac_ct_OBJC=$OBJC 32843 for ac_prog in gcc objcc objc cc CC 32844 do 32845 # Extract the first word of "$ac_prog", so it can be a program name with args. 32846 set dummy $ac_prog; ac_word=$2 32847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32848 $as_echo_n "checking for $ac_word... " >&6; } 32849 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32850 $as_echo_n "(cached) " >&6 32851 else 32852 if test -n "$ac_ct_OBJC"; then 32853 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32854 else 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_prog_ac_ct_OBJC="$ac_prog" 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 fi 32871 fi 32872 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32873 if test -n "$ac_ct_OBJC"; then 32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32875 $as_echo "$ac_ct_OBJC" >&6; } 32876 else 32877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32878 $as_echo "no" >&6; } 32879 fi 32880 32881 32882 test -n "$ac_ct_OBJC" && break 32883 done 32884 32885 if test "x$ac_ct_OBJC" = x; then 32886 OBJC="gcc" 32887 else 32888 case $cross_compiling:$ac_tool_warned in 32889 yes:) 32890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32891 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32892 ac_tool_warned=yes ;; 32893 esac 32894 OBJC=$ac_ct_OBJC 32895 fi 32896 fi 32897 32898 # Provide some information about the compiler. 32899 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32900 set X $ac_compile 32901 ac_compiler=$2 32902 for ac_option in --version -v -V -qversion; do 32903 { { ac_try="$ac_compiler $ac_option >&5" 32904 case "(($ac_try" in 32905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32906 *) ac_try_echo=$ac_try;; 32907 esac 32908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32909 $as_echo "$ac_try_echo"; } >&5 32910 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32911 ac_status=$? 32912 if test -s conftest.err; then 32913 sed '10a\ 32914 ... rest of stderr output deleted ... 32915 10q' conftest.err >conftest.er1 32916 cat conftest.er1 >&5 32917 fi 32918 rm -f conftest.er1 conftest.err 32919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32920 test $ac_status = 0; } 32921 done 32922 32923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32924 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32925 if ${ac_cv_objc_compiler_gnu+:} false; then : 32926 $as_echo_n "(cached) " >&6 32927 else 32928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32929 /* end confdefs.h. */ 32930 32931 int 32932 main () 32933 { 32934 #ifndef __GNUC__ 32935 choke me 32936 #endif 32937 32938 ; 32939 return 0; 32940 } 32941 _ACEOF 32942 if ac_fn_objc_try_compile "$LINENO"; then : 32943 ac_compiler_gnu=yes 32944 else 32945 ac_compiler_gnu=no 32946 fi 32947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32948 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32949 32950 fi 32951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32952 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32953 if test $ac_compiler_gnu = yes; then 32954 GOBJC=yes 32955 else 32956 GOBJC= 32957 fi 32958 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32959 ac_save_OBJCFLAGS=$OBJCFLAGS 32960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32961 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32962 if ${ac_cv_prog_objc_g+:} false; then : 32963 $as_echo_n "(cached) " >&6 32964 else 32965 ac_save_objc_werror_flag=$ac_objc_werror_flag 32966 ac_objc_werror_flag=yes 32967 ac_cv_prog_objc_g=no 32968 OBJCFLAGS="-g" 32969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32970 /* end confdefs.h. */ 32971 32972 int 32973 main () 32974 { 32975 32976 ; 32977 return 0; 32978 } 32979 _ACEOF 32980 if ac_fn_objc_try_compile "$LINENO"; then : 32981 ac_cv_prog_objc_g=yes 32982 else 32983 OBJCFLAGS="" 32984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32985 /* end confdefs.h. */ 32986 32987 int 32988 main () 32989 { 32990 32991 ; 32992 return 0; 32993 } 32994 _ACEOF 32995 if ac_fn_objc_try_compile "$LINENO"; then : 32996 32997 else 32998 ac_objc_werror_flag=$ac_save_objc_werror_flag 32999 OBJCFLAGS="-g" 33000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33001 /* end confdefs.h. */ 33002 33003 int 33004 main () 33005 { 33006 33007 ; 33008 return 0; 33009 } 33010 _ACEOF 33011 if ac_fn_objc_try_compile "$LINENO"; then : 33012 ac_cv_prog_objc_g=yes 33013 fi 33014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33015 fi 33016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33017 fi 33018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33019 ac_objc_werror_flag=$ac_save_objc_werror_flag 33020 fi 33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33022 $as_echo "$ac_cv_prog_objc_g" >&6; } 33023 if test "$ac_test_OBJCFLAGS" = set; then 33024 OBJCFLAGS=$ac_save_OBJCFLAGS 33025 elif test $ac_cv_prog_objc_g = yes; then 33026 if test "$GOBJC" = yes; then 33027 OBJCFLAGS="-g -O2" 33028 else 33029 OBJCFLAGS="-g" 33030 fi 33031 else 33032 if test "$GOBJC" = yes; then 33033 OBJCFLAGS="-O2" 33034 else 33035 OBJCFLAGS= 33036 fi 33037 fi 33038 ac_ext=cpp 33039 ac_cpp='$CXXCPP $CPPFLAGS' 33040 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33041 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33042 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33043 33044 33045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33046 33047 # First separate the path from the arguments. This will split at the first 33048 # space. 33049 complete="$OBJC" 33050 path="${complete%% *}" 33051 tmp="$complete EOL" 33052 arguments="${tmp#* }" 33053 33054 # Input might be given as Windows format, start by converting to 33055 # unix format. 33056 new_path=`$CYGPATH -u "$path"` 33057 33058 # Now try to locate executable using which 33059 new_path=`$WHICH "$new_path" 2> /dev/null` 33060 # bat and cmd files are not always considered executable in cygwin causing which 33061 # to not find them 33062 if test "x$new_path" = x \ 33063 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33064 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33065 new_path=`$CYGPATH -u "$path"` 33066 fi 33067 if test "x$new_path" = x; then 33068 # Oops. Which didn't find the executable. 33069 # The splitting of arguments from the executable at a space might have been incorrect, 33070 # since paths with space are more likely in Windows. Give it another try with the whole 33071 # argument. 33072 path="$complete" 33073 arguments="EOL" 33074 new_path=`$CYGPATH -u "$path"` 33075 new_path=`$WHICH "$new_path" 2> /dev/null` 33076 # bat and cmd files are not always considered executable in cygwin causing which 33077 # to not find them 33078 if test "x$new_path" = x \ 33079 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33080 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33081 new_path=`$CYGPATH -u "$path"` 33082 fi 33083 if test "x$new_path" = x; then 33084 # It's still not found. Now this is an unrecoverable error. 33085 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33086 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33087 has_space=`$ECHO "$complete" | $GREP " "` 33088 if test "x$has_space" != x; then 33089 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33090 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33091 fi 33092 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33093 fi 33094 fi 33095 33096 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33097 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33098 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33099 # "foo.exe" is OK but "foo" is an error. 33100 # 33101 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33102 # It is also a way to make sure we got the proper file name for the real test later on. 33103 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33104 if test "x$test_shortpath" = x; then 33105 # Short path failed, file does not exist as specified. 33106 # Try adding .exe or .cmd 33107 if test -f "${new_path}.exe"; then 33108 input_to_shortpath="${new_path}.exe" 33109 elif test -f "${new_path}.cmd"; then 33110 input_to_shortpath="${new_path}.cmd" 33111 else 33112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33113 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33114 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33115 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33116 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33117 fi 33118 else 33119 input_to_shortpath="$new_path" 33120 fi 33121 33122 # Call helper function which possibly converts this using DOS-style short mode. 33123 # If so, the updated path is stored in $new_path. 33124 new_path="$input_to_shortpath" 33125 33126 input_path="$input_to_shortpath" 33127 # Check if we need to convert this using DOS-style short mode. If the path 33128 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33129 # take no chances and rewrite it. 33130 # Note: m4 eats our [], so we need to use [ and ] instead. 33131 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33132 if test "x$has_forbidden_chars" != x; then 33133 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33134 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33135 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33136 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33137 # Going to short mode and back again did indeed matter. Since short mode is 33138 # case insensitive, let's make it lowercase to improve readability. 33139 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33140 # Now convert it back to Unix-stile (cygpath) 33141 input_path=`$CYGPATH -u "$shortmode_path"` 33142 new_path="$input_path" 33143 fi 33144 fi 33145 33146 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33147 if test "x$test_cygdrive_prefix" = x; then 33148 # As a simple fix, exclude /usr/bin since it's not a real path. 33149 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33150 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33151 # a path prefixed by /cygdrive for fixpath to work. 33152 new_path="$CYGWIN_ROOT_PATH$input_path" 33153 fi 33154 fi 33155 33156 # remove trailing .exe if any 33157 new_path="${new_path/%.exe/}" 33158 33159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33160 33161 # First separate the path from the arguments. This will split at the first 33162 # space. 33163 complete="$OBJC" 33164 path="${complete%% *}" 33165 tmp="$complete EOL" 33166 arguments="${tmp#* }" 33167 33168 # Input might be given as Windows format, start by converting to 33169 # unix format. 33170 new_path="$path" 33171 33172 windows_path="$new_path" 33173 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33174 unix_path=`$CYGPATH -u "$windows_path"` 33175 new_path="$unix_path" 33176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33177 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33178 new_path="$unix_path" 33179 fi 33180 33181 33182 # Now try to locate executable using which 33183 new_path=`$WHICH "$new_path" 2> /dev/null` 33184 33185 if test "x$new_path" = x; then 33186 # Oops. Which didn't find the executable. 33187 # The splitting of arguments from the executable at a space might have been incorrect, 33188 # since paths with space are more likely in Windows. Give it another try with the whole 33189 # argument. 33190 path="$complete" 33191 arguments="EOL" 33192 new_path="$path" 33193 33194 windows_path="$new_path" 33195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33196 unix_path=`$CYGPATH -u "$windows_path"` 33197 new_path="$unix_path" 33198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33199 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33200 new_path="$unix_path" 33201 fi 33202 33203 33204 new_path=`$WHICH "$new_path" 2> /dev/null` 33205 # bat and cmd files are not always considered executable in MSYS causing which 33206 # to not find them 33207 if test "x$new_path" = x \ 33208 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33209 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33210 new_path="$path" 33211 33212 windows_path="$new_path" 33213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33214 unix_path=`$CYGPATH -u "$windows_path"` 33215 new_path="$unix_path" 33216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33218 new_path="$unix_path" 33219 fi 33220 33221 fi 33222 33223 if test "x$new_path" = x; then 33224 # It's still not found. Now this is an unrecoverable error. 33225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33226 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33227 has_space=`$ECHO "$complete" | $GREP " "` 33228 if test "x$has_space" != x; then 33229 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33230 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33231 fi 33232 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33233 fi 33234 fi 33235 33236 # Now new_path has a complete unix path to the binary 33237 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33238 # Keep paths in /bin as-is, but remove trailing .exe if any 33239 new_path="${new_path/%.exe/}" 33240 # Do not save /bin paths to all_fixpath_prefixes! 33241 else 33242 # Not in mixed or Windows style, start by that. 33243 new_path=`cmd //c echo $new_path` 33244 33245 input_path="$new_path" 33246 # Check if we need to convert this using DOS-style short mode. If the path 33247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33248 # take no chances and rewrite it. 33249 # Note: m4 eats our [], so we need to use [ and ] instead. 33250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33251 if test "x$has_forbidden_chars" != x; then 33252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33253 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33254 fi 33255 33256 # Output is in $new_path 33257 33258 windows_path="$new_path" 33259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33260 unix_path=`$CYGPATH -u "$windows_path"` 33261 new_path="$unix_path" 33262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33264 new_path="$unix_path" 33265 fi 33266 33267 # remove trailing .exe if any 33268 new_path="${new_path/%.exe/}" 33269 33270 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33271 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33272 fi 33273 33274 else 33275 # We're on a unix platform. Hooray! :) 33276 # First separate the path from the arguments. This will split at the first 33277 # space. 33278 complete="$OBJC" 33279 path="${complete%% *}" 33280 tmp="$complete EOL" 33281 arguments="${tmp#* }" 33282 33283 # Cannot rely on the command "which" here since it doesn't always work. 33284 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33285 if test -z "$is_absolute_path"; then 33286 # Path to executable is not absolute. Find it. 33287 IFS_save="$IFS" 33288 IFS=: 33289 for p in $PATH; do 33290 if test -f "$p/$path" && test -x "$p/$path"; then 33291 new_path="$p/$path" 33292 break 33293 fi 33294 done 33295 IFS="$IFS_save" 33296 else 33297 # This is an absolute path, we can use it without further modifications. 33298 new_path="$path" 33299 fi 33300 33301 if test "x$new_path" = x; then 33302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33303 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33304 has_space=`$ECHO "$complete" | $GREP " "` 33305 if test "x$has_space" != x; then 33306 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33307 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33308 fi 33309 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33310 fi 33311 fi 33312 33313 # Now join together the path and the arguments once again 33314 if test "x$arguments" != xEOL; then 33315 new_complete="$new_path ${arguments% *}" 33316 else 33317 new_complete="$new_path" 33318 fi 33319 33320 if test "x$complete" != "x$new_complete"; then 33321 OBJC="$new_complete" 33322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33323 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33324 fi 33325 33326 33327 33328 # Publish this variable in the help. 33329 33330 33331 if test "x$LIPO" = x; then 33332 # The variable is not set by user, try to locate tool using the code snippet 33333 for ac_prog in lipo 33334 do 33335 # Extract the first word of "$ac_prog", so it can be a program name with args. 33336 set dummy $ac_prog; ac_word=$2 33337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33338 $as_echo_n "checking for $ac_word... " >&6; } 33339 if ${ac_cv_path_LIPO+:} false; then : 33340 $as_echo_n "(cached) " >&6 33341 else 33342 case $LIPO in 33343 [\\/]* | ?:[\\/]*) 33344 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33345 ;; 33346 *) 33347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33348 for as_dir in $PATH 33349 do 33350 IFS=$as_save_IFS 33351 test -z "$as_dir" && as_dir=. 33352 for ac_exec_ext in '' $ac_executable_extensions; do 33353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33354 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33356 break 2 33357 fi 33358 done 33359 done 33360 IFS=$as_save_IFS 33361 33362 ;; 33363 esac 33364 fi 33365 LIPO=$ac_cv_path_LIPO 33366 if test -n "$LIPO"; then 33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33368 $as_echo "$LIPO" >&6; } 33369 else 33370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33371 $as_echo "no" >&6; } 33372 fi 33373 33374 33375 test -n "$LIPO" && break 33376 done 33377 33378 else 33379 # The variable is set, but is it from the command line or the environment? 33380 33381 # Try to remove the string !LIPO! from our list. 33382 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33383 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33384 # If it failed, the variable was not from the command line. Ignore it, 33385 # but warn the user (except for BASH, which is always set by the calling BASH). 33386 if test "xLIPO" != xBASH; then 33387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33388 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33389 fi 33390 # Try to locate tool using the code snippet 33391 for ac_prog in lipo 33392 do 33393 # Extract the first word of "$ac_prog", so it can be a program name with args. 33394 set dummy $ac_prog; ac_word=$2 33395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33396 $as_echo_n "checking for $ac_word... " >&6; } 33397 if ${ac_cv_path_LIPO+:} false; then : 33398 $as_echo_n "(cached) " >&6 33399 else 33400 case $LIPO in 33401 [\\/]* | ?:[\\/]*) 33402 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33403 ;; 33404 *) 33405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33406 for as_dir in $PATH 33407 do 33408 IFS=$as_save_IFS 33409 test -z "$as_dir" && as_dir=. 33410 for ac_exec_ext in '' $ac_executable_extensions; do 33411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33412 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33414 break 2 33415 fi 33416 done 33417 done 33418 IFS=$as_save_IFS 33419 33420 ;; 33421 esac 33422 fi 33423 LIPO=$ac_cv_path_LIPO 33424 if test -n "$LIPO"; then 33425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33426 $as_echo "$LIPO" >&6; } 33427 else 33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33429 $as_echo "no" >&6; } 33430 fi 33431 33432 33433 test -n "$LIPO" && break 33434 done 33435 33436 else 33437 # If it succeeded, then it was overridden by the user. We will use it 33438 # for the tool. 33439 33440 # First remove it from the list of overridden variables, so we can test 33441 # for unknown variables in the end. 33442 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33443 33444 # Check if the provided tool contains a complete path. 33445 tool_specified="$LIPO" 33446 tool_basename="${tool_specified##*/}" 33447 if test "x$tool_basename" = "x$tool_specified"; then 33448 # A command without a complete path is provided, search $PATH. 33449 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33450 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33451 # Extract the first word of "$tool_basename", so it can be a program name with args. 33452 set dummy $tool_basename; ac_word=$2 33453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33454 $as_echo_n "checking for $ac_word... " >&6; } 33455 if ${ac_cv_path_LIPO+:} false; then : 33456 $as_echo_n "(cached) " >&6 33457 else 33458 case $LIPO in 33459 [\\/]* | ?:[\\/]*) 33460 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33461 ;; 33462 *) 33463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33464 for as_dir in $PATH 33465 do 33466 IFS=$as_save_IFS 33467 test -z "$as_dir" && as_dir=. 33468 for ac_exec_ext in '' $ac_executable_extensions; do 33469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33470 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33472 break 2 33473 fi 33474 done 33475 done 33476 IFS=$as_save_IFS 33477 33478 ;; 33479 esac 33480 fi 33481 LIPO=$ac_cv_path_LIPO 33482 if test -n "$LIPO"; then 33483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33484 $as_echo "$LIPO" >&6; } 33485 else 33486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33487 $as_echo "no" >&6; } 33488 fi 33489 33490 33491 if test "x$LIPO" = x; then 33492 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33493 fi 33494 else 33495 # Otherwise we believe it is a complete path. Use it as it is. 33496 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33497 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33499 $as_echo_n "checking for LIPO... " >&6; } 33500 if test ! -x "$tool_specified"; then 33501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33502 $as_echo "not found" >&6; } 33503 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33504 fi 33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33506 $as_echo "$tool_specified" >&6; } 33507 fi 33508 fi 33509 fi 33510 33511 33512 33513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33514 33515 # First separate the path from the arguments. This will split at the first 33516 # space. 33517 complete="$LIPO" 33518 path="${complete%% *}" 33519 tmp="$complete EOL" 33520 arguments="${tmp#* }" 33521 33522 # Input might be given as Windows format, start by converting to 33523 # unix format. 33524 new_path=`$CYGPATH -u "$path"` 33525 33526 # Now try to locate executable using which 33527 new_path=`$WHICH "$new_path" 2> /dev/null` 33528 # bat and cmd files are not always considered executable in cygwin causing which 33529 # to not find them 33530 if test "x$new_path" = x \ 33531 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33532 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33533 new_path=`$CYGPATH -u "$path"` 33534 fi 33535 if test "x$new_path" = x; then 33536 # Oops. Which didn't find the executable. 33537 # The splitting of arguments from the executable at a space might have been incorrect, 33538 # since paths with space are more likely in Windows. Give it another try with the whole 33539 # argument. 33540 path="$complete" 33541 arguments="EOL" 33542 new_path=`$CYGPATH -u "$path"` 33543 new_path=`$WHICH "$new_path" 2> /dev/null` 33544 # bat and cmd files are not always considered executable in cygwin causing which 33545 # to not find them 33546 if test "x$new_path" = x \ 33547 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33548 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33549 new_path=`$CYGPATH -u "$path"` 33550 fi 33551 if test "x$new_path" = x; then 33552 # It's still not found. Now this is an unrecoverable error. 33553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33554 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33555 has_space=`$ECHO "$complete" | $GREP " "` 33556 if test "x$has_space" != x; then 33557 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33558 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33559 fi 33560 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33561 fi 33562 fi 33563 33564 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33565 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33566 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33567 # "foo.exe" is OK but "foo" is an error. 33568 # 33569 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33570 # It is also a way to make sure we got the proper file name for the real test later on. 33571 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33572 if test "x$test_shortpath" = x; then 33573 # Short path failed, file does not exist as specified. 33574 # Try adding .exe or .cmd 33575 if test -f "${new_path}.exe"; then 33576 input_to_shortpath="${new_path}.exe" 33577 elif test -f "${new_path}.cmd"; then 33578 input_to_shortpath="${new_path}.cmd" 33579 else 33580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33581 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33582 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33583 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33584 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33585 fi 33586 else 33587 input_to_shortpath="$new_path" 33588 fi 33589 33590 # Call helper function which possibly converts this using DOS-style short mode. 33591 # If so, the updated path is stored in $new_path. 33592 new_path="$input_to_shortpath" 33593 33594 input_path="$input_to_shortpath" 33595 # Check if we need to convert this using DOS-style short mode. If the path 33596 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33597 # take no chances and rewrite it. 33598 # Note: m4 eats our [], so we need to use [ and ] instead. 33599 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33600 if test "x$has_forbidden_chars" != x; then 33601 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33602 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33603 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33604 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33605 # Going to short mode and back again did indeed matter. Since short mode is 33606 # case insensitive, let's make it lowercase to improve readability. 33607 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33608 # Now convert it back to Unix-stile (cygpath) 33609 input_path=`$CYGPATH -u "$shortmode_path"` 33610 new_path="$input_path" 33611 fi 33612 fi 33613 33614 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33615 if test "x$test_cygdrive_prefix" = x; then 33616 # As a simple fix, exclude /usr/bin since it's not a real path. 33617 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33618 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33619 # a path prefixed by /cygdrive for fixpath to work. 33620 new_path="$CYGWIN_ROOT_PATH$input_path" 33621 fi 33622 fi 33623 33624 # remove trailing .exe if any 33625 new_path="${new_path/%.exe/}" 33626 33627 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33628 33629 # First separate the path from the arguments. This will split at the first 33630 # space. 33631 complete="$LIPO" 33632 path="${complete%% *}" 33633 tmp="$complete EOL" 33634 arguments="${tmp#* }" 33635 33636 # Input might be given as Windows format, start by converting to 33637 # unix format. 33638 new_path="$path" 33639 33640 windows_path="$new_path" 33641 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33642 unix_path=`$CYGPATH -u "$windows_path"` 33643 new_path="$unix_path" 33644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33645 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33646 new_path="$unix_path" 33647 fi 33648 33649 33650 # Now try to locate executable using which 33651 new_path=`$WHICH "$new_path" 2> /dev/null` 33652 33653 if test "x$new_path" = x; then 33654 # Oops. Which didn't find the executable. 33655 # The splitting of arguments from the executable at a space might have been incorrect, 33656 # since paths with space are more likely in Windows. Give it another try with the whole 33657 # argument. 33658 path="$complete" 33659 arguments="EOL" 33660 new_path="$path" 33661 33662 windows_path="$new_path" 33663 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33664 unix_path=`$CYGPATH -u "$windows_path"` 33665 new_path="$unix_path" 33666 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33667 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33668 new_path="$unix_path" 33669 fi 33670 33671 33672 new_path=`$WHICH "$new_path" 2> /dev/null` 33673 # bat and cmd files are not always considered executable in MSYS causing which 33674 # to not find them 33675 if test "x$new_path" = x \ 33676 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33677 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33678 new_path="$path" 33679 33680 windows_path="$new_path" 33681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33682 unix_path=`$CYGPATH -u "$windows_path"` 33683 new_path="$unix_path" 33684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33686 new_path="$unix_path" 33687 fi 33688 33689 fi 33690 33691 if test "x$new_path" = x; then 33692 # It's still not found. Now this is an unrecoverable error. 33693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33694 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33695 has_space=`$ECHO "$complete" | $GREP " "` 33696 if test "x$has_space" != x; then 33697 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33698 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33699 fi 33700 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33701 fi 33702 fi 33703 33704 # Now new_path has a complete unix path to the binary 33705 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33706 # Keep paths in /bin as-is, but remove trailing .exe if any 33707 new_path="${new_path/%.exe/}" 33708 # Do not save /bin paths to all_fixpath_prefixes! 33709 else 33710 # Not in mixed or Windows style, start by that. 33711 new_path=`cmd //c echo $new_path` 33712 33713 input_path="$new_path" 33714 # Check if we need to convert this using DOS-style short mode. If the path 33715 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33716 # take no chances and rewrite it. 33717 # Note: m4 eats our [], so we need to use [ and ] instead. 33718 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33719 if test "x$has_forbidden_chars" != x; then 33720 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33721 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33722 fi 33723 33724 # Output is in $new_path 33725 33726 windows_path="$new_path" 33727 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33728 unix_path=`$CYGPATH -u "$windows_path"` 33729 new_path="$unix_path" 33730 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33731 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33732 new_path="$unix_path" 33733 fi 33734 33735 # remove trailing .exe if any 33736 new_path="${new_path/%.exe/}" 33737 33738 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33739 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33740 fi 33741 33742 else 33743 # We're on a unix platform. Hooray! :) 33744 # First separate the path from the arguments. This will split at the first 33745 # space. 33746 complete="$LIPO" 33747 path="${complete%% *}" 33748 tmp="$complete EOL" 33749 arguments="${tmp#* }" 33750 33751 # Cannot rely on the command "which" here since it doesn't always work. 33752 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33753 if test -z "$is_absolute_path"; then 33754 # Path to executable is not absolute. Find it. 33755 IFS_save="$IFS" 33756 IFS=: 33757 for p in $PATH; do 33758 if test -f "$p/$path" && test -x "$p/$path"; then 33759 new_path="$p/$path" 33760 break 33761 fi 33762 done 33763 IFS="$IFS_save" 33764 else 33765 # This is an absolute path, we can use it without further modifications. 33766 new_path="$path" 33767 fi 33768 33769 if test "x$new_path" = x; then 33770 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33771 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33772 has_space=`$ECHO "$complete" | $GREP " "` 33773 if test "x$has_space" != x; then 33774 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33775 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33776 fi 33777 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33778 fi 33779 fi 33780 33781 # Now join together the path and the arguments once again 33782 if test "x$arguments" != xEOL; then 33783 new_complete="$new_path ${arguments% *}" 33784 else 33785 new_complete="$new_path" 33786 fi 33787 33788 if test "x$complete" != "x$new_complete"; then 33789 LIPO="$new_complete" 33790 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33791 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33792 fi 33793 33794 else 33795 OBJC= 33796 fi 33797 33798 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33799 # Extract the first word of "mt", so it can be a program name with args. 33800 set dummy mt; ac_word=$2 33801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33802 $as_echo_n "checking for $ac_word... " >&6; } 33803 if ${ac_cv_prog_MT+:} false; then : 33804 $as_echo_n "(cached) " >&6 33805 else 33806 if test -n "$MT"; then 33807 ac_cv_prog_MT="$MT" # Let the user override the test. 33808 else 33809 ac_prog_rejected=no 33810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33811 for as_dir in $PATH 33812 do 33813 IFS=$as_save_IFS 33814 test -z "$as_dir" && as_dir=. 33815 for ac_exec_ext in '' $ac_executable_extensions; do 33816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33817 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33818 ac_prog_rejected=yes 33819 continue 33820 fi 33821 ac_cv_prog_MT="mt" 33822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33823 break 2 33824 fi 33825 done 33826 done 33827 IFS=$as_save_IFS 33828 33829 if test $ac_prog_rejected = yes; then 33830 # We found a bogon in the path, so make sure we never use it. 33831 set dummy $ac_cv_prog_MT 33832 shift 33833 if test $# != 0; then 33834 # We chose a different compiler from the bogus one. 33835 # However, it has the same basename, so the bogon will be chosen 33836 # first if we set MT to just the basename; use the full file name. 33837 shift 33838 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33839 fi 33840 fi 33841 fi 33842 fi 33843 MT=$ac_cv_prog_MT 33844 if test -n "$MT"; then 33845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33846 $as_echo "$MT" >&6; } 33847 else 33848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33849 $as_echo "no" >&6; } 33850 fi 33851 33852 33853 33854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33855 33856 # First separate the path from the arguments. This will split at the first 33857 # space. 33858 complete="$MT" 33859 path="${complete%% *}" 33860 tmp="$complete EOL" 33861 arguments="${tmp#* }" 33862 33863 # Input might be given as Windows format, start by converting to 33864 # unix format. 33865 new_path=`$CYGPATH -u "$path"` 33866 33867 # Now try to locate executable using which 33868 new_path=`$WHICH "$new_path" 2> /dev/null` 33869 # bat and cmd files are not always considered executable in cygwin causing which 33870 # to not find them 33871 if test "x$new_path" = x \ 33872 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33873 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33874 new_path=`$CYGPATH -u "$path"` 33875 fi 33876 if test "x$new_path" = x; then 33877 # Oops. Which didn't find the executable. 33878 # The splitting of arguments from the executable at a space might have been incorrect, 33879 # since paths with space are more likely in Windows. Give it another try with the whole 33880 # argument. 33881 path="$complete" 33882 arguments="EOL" 33883 new_path=`$CYGPATH -u "$path"` 33884 new_path=`$WHICH "$new_path" 2> /dev/null` 33885 # bat and cmd files are not always considered executable in cygwin causing which 33886 # to not find them 33887 if test "x$new_path" = x \ 33888 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33889 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33890 new_path=`$CYGPATH -u "$path"` 33891 fi 33892 if test "x$new_path" = x; then 33893 # It's still not found. Now this is an unrecoverable error. 33894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33895 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33896 has_space=`$ECHO "$complete" | $GREP " "` 33897 if test "x$has_space" != x; then 33898 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33899 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33900 fi 33901 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33902 fi 33903 fi 33904 33905 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33906 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33907 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33908 # "foo.exe" is OK but "foo" is an error. 33909 # 33910 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33911 # It is also a way to make sure we got the proper file name for the real test later on. 33912 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33913 if test "x$test_shortpath" = x; then 33914 # Short path failed, file does not exist as specified. 33915 # Try adding .exe or .cmd 33916 if test -f "${new_path}.exe"; then 33917 input_to_shortpath="${new_path}.exe" 33918 elif test -f "${new_path}.cmd"; then 33919 input_to_shortpath="${new_path}.cmd" 33920 else 33921 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33922 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33923 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33924 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33925 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33926 fi 33927 else 33928 input_to_shortpath="$new_path" 33929 fi 33930 33931 # Call helper function which possibly converts this using DOS-style short mode. 33932 # If so, the updated path is stored in $new_path. 33933 new_path="$input_to_shortpath" 33934 33935 input_path="$input_to_shortpath" 33936 # Check if we need to convert this using DOS-style short mode. If the path 33937 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33938 # take no chances and rewrite it. 33939 # Note: m4 eats our [], so we need to use [ and ] instead. 33940 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33941 if test "x$has_forbidden_chars" != x; then 33942 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33943 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33944 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33945 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33946 # Going to short mode and back again did indeed matter. Since short mode is 33947 # case insensitive, let's make it lowercase to improve readability. 33948 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33949 # Now convert it back to Unix-stile (cygpath) 33950 input_path=`$CYGPATH -u "$shortmode_path"` 33951 new_path="$input_path" 33952 fi 33953 fi 33954 33955 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33956 if test "x$test_cygdrive_prefix" = x; then 33957 # As a simple fix, exclude /usr/bin since it's not a real path. 33958 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33959 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33960 # a path prefixed by /cygdrive for fixpath to work. 33961 new_path="$CYGWIN_ROOT_PATH$input_path" 33962 fi 33963 fi 33964 33965 # remove trailing .exe if any 33966 new_path="${new_path/%.exe/}" 33967 33968 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33969 33970 # First separate the path from the arguments. This will split at the first 33971 # space. 33972 complete="$MT" 33973 path="${complete%% *}" 33974 tmp="$complete EOL" 33975 arguments="${tmp#* }" 33976 33977 # Input might be given as Windows format, start by converting to 33978 # unix format. 33979 new_path="$path" 33980 33981 windows_path="$new_path" 33982 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33983 unix_path=`$CYGPATH -u "$windows_path"` 33984 new_path="$unix_path" 33985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33986 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33987 new_path="$unix_path" 33988 fi 33989 33990 33991 # Now try to locate executable using which 33992 new_path=`$WHICH "$new_path" 2> /dev/null` 33993 33994 if test "x$new_path" = x; then 33995 # Oops. Which didn't find the executable. 33996 # The splitting of arguments from the executable at a space might have been incorrect, 33997 # since paths with space are more likely in Windows. Give it another try with the whole 33998 # argument. 33999 path="$complete" 34000 arguments="EOL" 34001 new_path="$path" 34002 34003 windows_path="$new_path" 34004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34005 unix_path=`$CYGPATH -u "$windows_path"` 34006 new_path="$unix_path" 34007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34009 new_path="$unix_path" 34010 fi 34011 34012 34013 new_path=`$WHICH "$new_path" 2> /dev/null` 34014 # bat and cmd files are not always considered executable in MSYS causing which 34015 # to not find them 34016 if test "x$new_path" = x \ 34017 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34018 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34019 new_path="$path" 34020 34021 windows_path="$new_path" 34022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34023 unix_path=`$CYGPATH -u "$windows_path"` 34024 new_path="$unix_path" 34025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34027 new_path="$unix_path" 34028 fi 34029 34030 fi 34031 34032 if test "x$new_path" = x; then 34033 # It's still not found. Now this is an unrecoverable error. 34034 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34035 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34036 has_space=`$ECHO "$complete" | $GREP " "` 34037 if test "x$has_space" != x; then 34038 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34039 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34040 fi 34041 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34042 fi 34043 fi 34044 34045 # Now new_path has a complete unix path to the binary 34046 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34047 # Keep paths in /bin as-is, but remove trailing .exe if any 34048 new_path="${new_path/%.exe/}" 34049 # Do not save /bin paths to all_fixpath_prefixes! 34050 else 34051 # Not in mixed or Windows style, start by that. 34052 new_path=`cmd //c echo $new_path` 34053 34054 input_path="$new_path" 34055 # Check if we need to convert this using DOS-style short mode. If the path 34056 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34057 # take no chances and rewrite it. 34058 # Note: m4 eats our [], so we need to use [ and ] instead. 34059 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34060 if test "x$has_forbidden_chars" != x; then 34061 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34062 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34063 fi 34064 34065 # Output is in $new_path 34066 34067 windows_path="$new_path" 34068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34069 unix_path=`$CYGPATH -u "$windows_path"` 34070 new_path="$unix_path" 34071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34073 new_path="$unix_path" 34074 fi 34075 34076 # remove trailing .exe if any 34077 new_path="${new_path/%.exe/}" 34078 34079 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34080 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34081 fi 34082 34083 else 34084 # We're on a unix platform. Hooray! :) 34085 # First separate the path from the arguments. This will split at the first 34086 # space. 34087 complete="$MT" 34088 path="${complete%% *}" 34089 tmp="$complete EOL" 34090 arguments="${tmp#* }" 34091 34092 # Cannot rely on the command "which" here since it doesn't always work. 34093 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34094 if test -z "$is_absolute_path"; then 34095 # Path to executable is not absolute. Find it. 34096 IFS_save="$IFS" 34097 IFS=: 34098 for p in $PATH; do 34099 if test -f "$p/$path" && test -x "$p/$path"; then 34100 new_path="$p/$path" 34101 break 34102 fi 34103 done 34104 IFS="$IFS_save" 34105 else 34106 # This is an absolute path, we can use it without further modifications. 34107 new_path="$path" 34108 fi 34109 34110 if test "x$new_path" = x; then 34111 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34112 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34113 has_space=`$ECHO "$complete" | $GREP " "` 34114 if test "x$has_space" != x; then 34115 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34116 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34117 fi 34118 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34119 fi 34120 fi 34121 34122 # Now join together the path and the arguments once again 34123 if test "x$arguments" != xEOL; then 34124 new_complete="$new_path ${arguments% *}" 34125 else 34126 new_complete="$new_path" 34127 fi 34128 34129 if test "x$complete" != "x$new_complete"; then 34130 MT="$new_complete" 34131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34132 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34133 fi 34134 34135 # Setup the resource compiler (RC) 34136 # Extract the first word of "rc", so it can be a program name with args. 34137 set dummy rc; ac_word=$2 34138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34139 $as_echo_n "checking for $ac_word... " >&6; } 34140 if ${ac_cv_prog_RC+:} false; then : 34141 $as_echo_n "(cached) " >&6 34142 else 34143 if test -n "$RC"; then 34144 ac_cv_prog_RC="$RC" # Let the user override the test. 34145 else 34146 ac_prog_rejected=no 34147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34148 for as_dir in $PATH 34149 do 34150 IFS=$as_save_IFS 34151 test -z "$as_dir" && as_dir=. 34152 for ac_exec_ext in '' $ac_executable_extensions; do 34153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34154 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34155 ac_prog_rejected=yes 34156 continue 34157 fi 34158 ac_cv_prog_RC="rc" 34159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34160 break 2 34161 fi 34162 done 34163 done 34164 IFS=$as_save_IFS 34165 34166 if test $ac_prog_rejected = yes; then 34167 # We found a bogon in the path, so make sure we never use it. 34168 set dummy $ac_cv_prog_RC 34169 shift 34170 if test $# != 0; then 34171 # We chose a different compiler from the bogus one. 34172 # However, it has the same basename, so the bogon will be chosen 34173 # first if we set RC to just the basename; use the full file name. 34174 shift 34175 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34176 fi 34177 fi 34178 fi 34179 fi 34180 RC=$ac_cv_prog_RC 34181 if test -n "$RC"; then 34182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34183 $as_echo "$RC" >&6; } 34184 else 34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34186 $as_echo "no" >&6; } 34187 fi 34188 34189 34190 34191 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34192 34193 # First separate the path from the arguments. This will split at the first 34194 # space. 34195 complete="$RC" 34196 path="${complete%% *}" 34197 tmp="$complete EOL" 34198 arguments="${tmp#* }" 34199 34200 # Input might be given as Windows format, start by converting to 34201 # unix format. 34202 new_path=`$CYGPATH -u "$path"` 34203 34204 # Now try to locate executable using which 34205 new_path=`$WHICH "$new_path" 2> /dev/null` 34206 # bat and cmd files are not always considered executable in cygwin causing which 34207 # to not find them 34208 if test "x$new_path" = x \ 34209 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34210 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34211 new_path=`$CYGPATH -u "$path"` 34212 fi 34213 if test "x$new_path" = x; then 34214 # Oops. Which didn't find the executable. 34215 # The splitting of arguments from the executable at a space might have been incorrect, 34216 # since paths with space are more likely in Windows. Give it another try with the whole 34217 # argument. 34218 path="$complete" 34219 arguments="EOL" 34220 new_path=`$CYGPATH -u "$path"` 34221 new_path=`$WHICH "$new_path" 2> /dev/null` 34222 # bat and cmd files are not always considered executable in cygwin causing which 34223 # to not find them 34224 if test "x$new_path" = x \ 34225 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34226 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34227 new_path=`$CYGPATH -u "$path"` 34228 fi 34229 if test "x$new_path" = x; then 34230 # It's still not found. Now this is an unrecoverable error. 34231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34232 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34233 has_space=`$ECHO "$complete" | $GREP " "` 34234 if test "x$has_space" != x; then 34235 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34236 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34237 fi 34238 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34239 fi 34240 fi 34241 34242 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34243 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34244 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34245 # "foo.exe" is OK but "foo" is an error. 34246 # 34247 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34248 # It is also a way to make sure we got the proper file name for the real test later on. 34249 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34250 if test "x$test_shortpath" = x; then 34251 # Short path failed, file does not exist as specified. 34252 # Try adding .exe or .cmd 34253 if test -f "${new_path}.exe"; then 34254 input_to_shortpath="${new_path}.exe" 34255 elif test -f "${new_path}.cmd"; then 34256 input_to_shortpath="${new_path}.cmd" 34257 else 34258 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34259 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34260 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34261 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34262 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34263 fi 34264 else 34265 input_to_shortpath="$new_path" 34266 fi 34267 34268 # Call helper function which possibly converts this using DOS-style short mode. 34269 # If so, the updated path is stored in $new_path. 34270 new_path="$input_to_shortpath" 34271 34272 input_path="$input_to_shortpath" 34273 # Check if we need to convert this using DOS-style short mode. If the path 34274 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34275 # take no chances and rewrite it. 34276 # Note: m4 eats our [], so we need to use [ and ] instead. 34277 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34278 if test "x$has_forbidden_chars" != x; then 34279 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34280 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34281 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34282 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34283 # Going to short mode and back again did indeed matter. Since short mode is 34284 # case insensitive, let's make it lowercase to improve readability. 34285 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34286 # Now convert it back to Unix-stile (cygpath) 34287 input_path=`$CYGPATH -u "$shortmode_path"` 34288 new_path="$input_path" 34289 fi 34290 fi 34291 34292 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34293 if test "x$test_cygdrive_prefix" = x; then 34294 # As a simple fix, exclude /usr/bin since it's not a real path. 34295 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34296 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34297 # a path prefixed by /cygdrive for fixpath to work. 34298 new_path="$CYGWIN_ROOT_PATH$input_path" 34299 fi 34300 fi 34301 34302 # remove trailing .exe if any 34303 new_path="${new_path/%.exe/}" 34304 34305 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34306 34307 # First separate the path from the arguments. This will split at the first 34308 # space. 34309 complete="$RC" 34310 path="${complete%% *}" 34311 tmp="$complete EOL" 34312 arguments="${tmp#* }" 34313 34314 # Input might be given as Windows format, start by converting to 34315 # unix format. 34316 new_path="$path" 34317 34318 windows_path="$new_path" 34319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34320 unix_path=`$CYGPATH -u "$windows_path"` 34321 new_path="$unix_path" 34322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34324 new_path="$unix_path" 34325 fi 34326 34327 34328 # Now try to locate executable using which 34329 new_path=`$WHICH "$new_path" 2> /dev/null` 34330 34331 if test "x$new_path" = x; then 34332 # Oops. Which didn't find the executable. 34333 # The splitting of arguments from the executable at a space might have been incorrect, 34334 # since paths with space are more likely in Windows. Give it another try with the whole 34335 # argument. 34336 path="$complete" 34337 arguments="EOL" 34338 new_path="$path" 34339 34340 windows_path="$new_path" 34341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34342 unix_path=`$CYGPATH -u "$windows_path"` 34343 new_path="$unix_path" 34344 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34345 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34346 new_path="$unix_path" 34347 fi 34348 34349 34350 new_path=`$WHICH "$new_path" 2> /dev/null` 34351 # bat and cmd files are not always considered executable in MSYS causing which 34352 # to not find them 34353 if test "x$new_path" = x \ 34354 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34355 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34356 new_path="$path" 34357 34358 windows_path="$new_path" 34359 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34360 unix_path=`$CYGPATH -u "$windows_path"` 34361 new_path="$unix_path" 34362 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34363 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34364 new_path="$unix_path" 34365 fi 34366 34367 fi 34368 34369 if test "x$new_path" = x; then 34370 # It's still not found. Now this is an unrecoverable error. 34371 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34372 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34373 has_space=`$ECHO "$complete" | $GREP " "` 34374 if test "x$has_space" != x; then 34375 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34376 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34377 fi 34378 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34379 fi 34380 fi 34381 34382 # Now new_path has a complete unix path to the binary 34383 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34384 # Keep paths in /bin as-is, but remove trailing .exe if any 34385 new_path="${new_path/%.exe/}" 34386 # Do not save /bin paths to all_fixpath_prefixes! 34387 else 34388 # Not in mixed or Windows style, start by that. 34389 new_path=`cmd //c echo $new_path` 34390 34391 input_path="$new_path" 34392 # Check if we need to convert this using DOS-style short mode. If the path 34393 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34394 # take no chances and rewrite it. 34395 # Note: m4 eats our [], so we need to use [ and ] instead. 34396 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34397 if test "x$has_forbidden_chars" != x; then 34398 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34399 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34400 fi 34401 34402 # Output is in $new_path 34403 34404 windows_path="$new_path" 34405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34406 unix_path=`$CYGPATH -u "$windows_path"` 34407 new_path="$unix_path" 34408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34410 new_path="$unix_path" 34411 fi 34412 34413 # remove trailing .exe if any 34414 new_path="${new_path/%.exe/}" 34415 34416 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34417 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34418 fi 34419 34420 else 34421 # We're on a unix platform. Hooray! :) 34422 # First separate the path from the arguments. This will split at the first 34423 # space. 34424 complete="$RC" 34425 path="${complete%% *}" 34426 tmp="$complete EOL" 34427 arguments="${tmp#* }" 34428 34429 # Cannot rely on the command "which" here since it doesn't always work. 34430 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34431 if test -z "$is_absolute_path"; then 34432 # Path to executable is not absolute. Find it. 34433 IFS_save="$IFS" 34434 IFS=: 34435 for p in $PATH; do 34436 if test -f "$p/$path" && test -x "$p/$path"; then 34437 new_path="$p/$path" 34438 break 34439 fi 34440 done 34441 IFS="$IFS_save" 34442 else 34443 # This is an absolute path, we can use it without further modifications. 34444 new_path="$path" 34445 fi 34446 34447 if test "x$new_path" = x; then 34448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34449 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34450 has_space=`$ECHO "$complete" | $GREP " "` 34451 if test "x$has_space" != x; then 34452 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34453 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34454 fi 34455 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34456 fi 34457 fi 34458 34459 # Now join together the path and the arguments once again 34460 if test "x$arguments" != xEOL; then 34461 new_complete="$new_path ${arguments% *}" 34462 else 34463 new_complete="$new_path" 34464 fi 34465 34466 if test "x$complete" != "x$new_complete"; then 34467 RC="$new_complete" 34468 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34469 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34470 fi 34471 34472 # Extract the first word of "dumpbin", so it can be a program name with args. 34473 set dummy dumpbin; ac_word=$2 34474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34475 $as_echo_n "checking for $ac_word... " >&6; } 34476 if ${ac_cv_prog_DUMPBIN+:} false; then : 34477 $as_echo_n "(cached) " >&6 34478 else 34479 if test -n "$DUMPBIN"; then 34480 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34481 else 34482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34483 for as_dir in $PATH 34484 do 34485 IFS=$as_save_IFS 34486 test -z "$as_dir" && as_dir=. 34487 for ac_exec_ext in '' $ac_executable_extensions; do 34488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34489 ac_cv_prog_DUMPBIN="dumpbin" 34490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34491 break 2 34492 fi 34493 done 34494 done 34495 IFS=$as_save_IFS 34496 34497 fi 34498 fi 34499 DUMPBIN=$ac_cv_prog_DUMPBIN 34500 if test -n "$DUMPBIN"; then 34501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34502 $as_echo "$DUMPBIN" >&6; } 34503 else 34504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34505 $as_echo "no" >&6; } 34506 fi 34507 34508 34509 34510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34511 34512 # First separate the path from the arguments. This will split at the first 34513 # space. 34514 complete="$DUMPBIN" 34515 path="${complete%% *}" 34516 tmp="$complete EOL" 34517 arguments="${tmp#* }" 34518 34519 # Input might be given as Windows format, start by converting to 34520 # unix format. 34521 new_path=`$CYGPATH -u "$path"` 34522 34523 # Now try to locate executable using which 34524 new_path=`$WHICH "$new_path" 2> /dev/null` 34525 # bat and cmd files are not always considered executable in cygwin causing which 34526 # to not find them 34527 if test "x$new_path" = x \ 34528 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34529 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34530 new_path=`$CYGPATH -u "$path"` 34531 fi 34532 if test "x$new_path" = x; then 34533 # Oops. Which didn't find the executable. 34534 # The splitting of arguments from the executable at a space might have been incorrect, 34535 # since paths with space are more likely in Windows. Give it another try with the whole 34536 # argument. 34537 path="$complete" 34538 arguments="EOL" 34539 new_path=`$CYGPATH -u "$path"` 34540 new_path=`$WHICH "$new_path" 2> /dev/null` 34541 # bat and cmd files are not always considered executable in cygwin causing which 34542 # to not find them 34543 if test "x$new_path" = x \ 34544 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34545 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34546 new_path=`$CYGPATH -u "$path"` 34547 fi 34548 if test "x$new_path" = x; then 34549 # It's still not found. Now this is an unrecoverable error. 34550 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34551 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34552 has_space=`$ECHO "$complete" | $GREP " "` 34553 if test "x$has_space" != x; then 34554 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34555 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34556 fi 34557 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34558 fi 34559 fi 34560 34561 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34562 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34563 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34564 # "foo.exe" is OK but "foo" is an error. 34565 # 34566 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34567 # It is also a way to make sure we got the proper file name for the real test later on. 34568 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34569 if test "x$test_shortpath" = x; then 34570 # Short path failed, file does not exist as specified. 34571 # Try adding .exe or .cmd 34572 if test -f "${new_path}.exe"; then 34573 input_to_shortpath="${new_path}.exe" 34574 elif test -f "${new_path}.cmd"; then 34575 input_to_shortpath="${new_path}.cmd" 34576 else 34577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34578 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34579 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34580 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34581 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34582 fi 34583 else 34584 input_to_shortpath="$new_path" 34585 fi 34586 34587 # Call helper function which possibly converts this using DOS-style short mode. 34588 # If so, the updated path is stored in $new_path. 34589 new_path="$input_to_shortpath" 34590 34591 input_path="$input_to_shortpath" 34592 # Check if we need to convert this using DOS-style short mode. If the path 34593 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34594 # take no chances and rewrite it. 34595 # Note: m4 eats our [], so we need to use [ and ] instead. 34596 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34597 if test "x$has_forbidden_chars" != x; then 34598 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34599 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34600 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34601 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34602 # Going to short mode and back again did indeed matter. Since short mode is 34603 # case insensitive, let's make it lowercase to improve readability. 34604 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34605 # Now convert it back to Unix-stile (cygpath) 34606 input_path=`$CYGPATH -u "$shortmode_path"` 34607 new_path="$input_path" 34608 fi 34609 fi 34610 34611 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34612 if test "x$test_cygdrive_prefix" = x; then 34613 # As a simple fix, exclude /usr/bin since it's not a real path. 34614 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34615 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34616 # a path prefixed by /cygdrive for fixpath to work. 34617 new_path="$CYGWIN_ROOT_PATH$input_path" 34618 fi 34619 fi 34620 34621 # remove trailing .exe if any 34622 new_path="${new_path/%.exe/}" 34623 34624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34625 34626 # First separate the path from the arguments. This will split at the first 34627 # space. 34628 complete="$DUMPBIN" 34629 path="${complete%% *}" 34630 tmp="$complete EOL" 34631 arguments="${tmp#* }" 34632 34633 # Input might be given as Windows format, start by converting to 34634 # unix format. 34635 new_path="$path" 34636 34637 windows_path="$new_path" 34638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34639 unix_path=`$CYGPATH -u "$windows_path"` 34640 new_path="$unix_path" 34641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34643 new_path="$unix_path" 34644 fi 34645 34646 34647 # Now try to locate executable using which 34648 new_path=`$WHICH "$new_path" 2> /dev/null` 34649 34650 if test "x$new_path" = x; then 34651 # Oops. Which didn't find the executable. 34652 # The splitting of arguments from the executable at a space might have been incorrect, 34653 # since paths with space are more likely in Windows. Give it another try with the whole 34654 # argument. 34655 path="$complete" 34656 arguments="EOL" 34657 new_path="$path" 34658 34659 windows_path="$new_path" 34660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34661 unix_path=`$CYGPATH -u "$windows_path"` 34662 new_path="$unix_path" 34663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34664 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34665 new_path="$unix_path" 34666 fi 34667 34668 34669 new_path=`$WHICH "$new_path" 2> /dev/null` 34670 # bat and cmd files are not always considered executable in MSYS causing which 34671 # to not find them 34672 if test "x$new_path" = x \ 34673 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34674 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34675 new_path="$path" 34676 34677 windows_path="$new_path" 34678 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34679 unix_path=`$CYGPATH -u "$windows_path"` 34680 new_path="$unix_path" 34681 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34682 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34683 new_path="$unix_path" 34684 fi 34685 34686 fi 34687 34688 if test "x$new_path" = x; then 34689 # It's still not found. Now this is an unrecoverable error. 34690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34691 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34692 has_space=`$ECHO "$complete" | $GREP " "` 34693 if test "x$has_space" != x; then 34694 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34695 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34696 fi 34697 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34698 fi 34699 fi 34700 34701 # Now new_path has a complete unix path to the binary 34702 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34703 # Keep paths in /bin as-is, but remove trailing .exe if any 34704 new_path="${new_path/%.exe/}" 34705 # Do not save /bin paths to all_fixpath_prefixes! 34706 else 34707 # Not in mixed or Windows style, start by that. 34708 new_path=`cmd //c echo $new_path` 34709 34710 input_path="$new_path" 34711 # Check if we need to convert this using DOS-style short mode. If the path 34712 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34713 # take no chances and rewrite it. 34714 # Note: m4 eats our [], so we need to use [ and ] instead. 34715 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34716 if test "x$has_forbidden_chars" != x; then 34717 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34718 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34719 fi 34720 34721 # Output is in $new_path 34722 34723 windows_path="$new_path" 34724 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34725 unix_path=`$CYGPATH -u "$windows_path"` 34726 new_path="$unix_path" 34727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34728 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34729 new_path="$unix_path" 34730 fi 34731 34732 # remove trailing .exe if any 34733 new_path="${new_path/%.exe/}" 34734 34735 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34736 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34737 fi 34738 34739 else 34740 # We're on a unix platform. Hooray! :) 34741 # First separate the path from the arguments. This will split at the first 34742 # space. 34743 complete="$DUMPBIN" 34744 path="${complete%% *}" 34745 tmp="$complete EOL" 34746 arguments="${tmp#* }" 34747 34748 # Cannot rely on the command "which" here since it doesn't always work. 34749 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34750 if test -z "$is_absolute_path"; then 34751 # Path to executable is not absolute. Find it. 34752 IFS_save="$IFS" 34753 IFS=: 34754 for p in $PATH; do 34755 if test -f "$p/$path" && test -x "$p/$path"; then 34756 new_path="$p/$path" 34757 break 34758 fi 34759 done 34760 IFS="$IFS_save" 34761 else 34762 # This is an absolute path, we can use it without further modifications. 34763 new_path="$path" 34764 fi 34765 34766 if test "x$new_path" = x; then 34767 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34768 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34769 has_space=`$ECHO "$complete" | $GREP " "` 34770 if test "x$has_space" != x; then 34771 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34772 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34773 fi 34774 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34775 fi 34776 fi 34777 34778 # Now join together the path and the arguments once again 34779 if test "x$arguments" != xEOL; then 34780 new_complete="$new_path ${arguments% *}" 34781 else 34782 new_complete="$new_path" 34783 fi 34784 34785 if test "x$complete" != "x$new_complete"; then 34786 DUMPBIN="$new_complete" 34787 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34788 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34789 fi 34790 34791 # We need to check for 'msbuild.exe' because at the place where we expect to 34792 # find 'msbuild.exe' there's also a directory called 'msbuild' and configure 34793 # won't find the 'msbuild.exe' executable in that case (and the 34794 # 'ac_executable_extensions' is unusable due to performance reasons). 34795 # Notice that we intentionally don't fix up the path to MSBUILD because we 34796 # will call it in a DOS shell during freetype detection on Windows (see 34797 # 'LIB_SETUP_FREETYPE' in "libraries.m4" 34798 # Extract the first word of "msbuild.exe", so it can be a program name with args. 34799 set dummy msbuild.exe; ac_word=$2 34800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34801 $as_echo_n "checking for $ac_word... " >&6; } 34802 if ${ac_cv_prog_MSBUILD+:} false; then : 34803 $as_echo_n "(cached) " >&6 34804 else 34805 if test -n "$MSBUILD"; then 34806 ac_cv_prog_MSBUILD="$MSBUILD" # Let the user override the test. 34807 else 34808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34809 for as_dir in $PATH 34810 do 34811 IFS=$as_save_IFS 34812 test -z "$as_dir" && as_dir=. 34813 for ac_exec_ext in '' $ac_executable_extensions; do 34814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34815 ac_cv_prog_MSBUILD="msbuild.exe" 34816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34817 break 2 34818 fi 34819 done 34820 done 34821 IFS=$as_save_IFS 34822 34823 fi 34824 fi 34825 MSBUILD=$ac_cv_prog_MSBUILD 34826 if test -n "$MSBUILD"; then 34827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSBUILD" >&5 34828 $as_echo "$MSBUILD" >&6; } 34829 else 34830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34831 $as_echo "no" >&6; } 34832 fi 34833 34834 34835 fi 34836 34837 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34838 34839 34840 # Publish this variable in the help. 34841 34842 34843 if test "x$STRIP" = x; then 34844 # The variable is not set by user, try to locate tool using the code snippet 34845 for ac_prog in strip 34846 do 34847 # Extract the first word of "$ac_prog", so it can be a program name with args. 34848 set dummy $ac_prog; ac_word=$2 34849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34850 $as_echo_n "checking for $ac_word... " >&6; } 34851 if ${ac_cv_path_STRIP+:} false; then : 34852 $as_echo_n "(cached) " >&6 34853 else 34854 case $STRIP in 34855 [\\/]* | ?:[\\/]*) 34856 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34857 ;; 34858 *) 34859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34860 for as_dir in $PATH 34861 do 34862 IFS=$as_save_IFS 34863 test -z "$as_dir" && as_dir=. 34864 for ac_exec_ext in '' $ac_executable_extensions; do 34865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34866 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34868 break 2 34869 fi 34870 done 34871 done 34872 IFS=$as_save_IFS 34873 34874 ;; 34875 esac 34876 fi 34877 STRIP=$ac_cv_path_STRIP 34878 if test -n "$STRIP"; then 34879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34880 $as_echo "$STRIP" >&6; } 34881 else 34882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34883 $as_echo "no" >&6; } 34884 fi 34885 34886 34887 test -n "$STRIP" && break 34888 done 34889 34890 else 34891 # The variable is set, but is it from the command line or the environment? 34892 34893 # Try to remove the string !STRIP! from our list. 34894 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34895 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34896 # If it failed, the variable was not from the command line. Ignore it, 34897 # but warn the user (except for BASH, which is always set by the calling BASH). 34898 if test "xSTRIP" != xBASH; then 34899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34900 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34901 fi 34902 # Try to locate tool using the code snippet 34903 for ac_prog in strip 34904 do 34905 # Extract the first word of "$ac_prog", so it can be a program name with args. 34906 set dummy $ac_prog; ac_word=$2 34907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34908 $as_echo_n "checking for $ac_word... " >&6; } 34909 if ${ac_cv_path_STRIP+:} false; then : 34910 $as_echo_n "(cached) " >&6 34911 else 34912 case $STRIP in 34913 [\\/]* | ?:[\\/]*) 34914 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34915 ;; 34916 *) 34917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34918 for as_dir in $PATH 34919 do 34920 IFS=$as_save_IFS 34921 test -z "$as_dir" && as_dir=. 34922 for ac_exec_ext in '' $ac_executable_extensions; do 34923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34924 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34926 break 2 34927 fi 34928 done 34929 done 34930 IFS=$as_save_IFS 34931 34932 ;; 34933 esac 34934 fi 34935 STRIP=$ac_cv_path_STRIP 34936 if test -n "$STRIP"; then 34937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34938 $as_echo "$STRIP" >&6; } 34939 else 34940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34941 $as_echo "no" >&6; } 34942 fi 34943 34944 34945 test -n "$STRIP" && break 34946 done 34947 34948 else 34949 # If it succeeded, then it was overridden by the user. We will use it 34950 # for the tool. 34951 34952 # First remove it from the list of overridden variables, so we can test 34953 # for unknown variables in the end. 34954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34955 34956 # Check if the provided tool contains a complete path. 34957 tool_specified="$STRIP" 34958 tool_basename="${tool_specified##*/}" 34959 if test "x$tool_basename" = "x$tool_specified"; then 34960 # A command without a complete path is provided, search $PATH. 34961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34962 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34963 # Extract the first word of "$tool_basename", so it can be a program name with args. 34964 set dummy $tool_basename; ac_word=$2 34965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34966 $as_echo_n "checking for $ac_word... " >&6; } 34967 if ${ac_cv_path_STRIP+:} false; then : 34968 $as_echo_n "(cached) " >&6 34969 else 34970 case $STRIP in 34971 [\\/]* | ?:[\\/]*) 34972 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34973 ;; 34974 *) 34975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34976 for as_dir in $PATH 34977 do 34978 IFS=$as_save_IFS 34979 test -z "$as_dir" && as_dir=. 34980 for ac_exec_ext in '' $ac_executable_extensions; do 34981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34982 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34984 break 2 34985 fi 34986 done 34987 done 34988 IFS=$as_save_IFS 34989 34990 ;; 34991 esac 34992 fi 34993 STRIP=$ac_cv_path_STRIP 34994 if test -n "$STRIP"; then 34995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34996 $as_echo "$STRIP" >&6; } 34997 else 34998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34999 $as_echo "no" >&6; } 35000 fi 35001 35002 35003 if test "x$STRIP" = x; then 35004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35005 fi 35006 else 35007 # Otherwise we believe it is a complete path. Use it as it is. 35008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35009 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35011 $as_echo_n "checking for STRIP... " >&6; } 35012 if test ! -x "$tool_specified"; then 35013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35014 $as_echo "not found" >&6; } 35015 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35016 fi 35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35018 $as_echo "$tool_specified" >&6; } 35019 fi 35020 fi 35021 fi 35022 35023 35024 35025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35026 35027 # First separate the path from the arguments. This will split at the first 35028 # space. 35029 complete="$STRIP" 35030 path="${complete%% *}" 35031 tmp="$complete EOL" 35032 arguments="${tmp#* }" 35033 35034 # Input might be given as Windows format, start by converting to 35035 # unix format. 35036 new_path=`$CYGPATH -u "$path"` 35037 35038 # Now try to locate executable using which 35039 new_path=`$WHICH "$new_path" 2> /dev/null` 35040 # bat and cmd files are not always considered executable in cygwin causing which 35041 # to not find them 35042 if test "x$new_path" = x \ 35043 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35044 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35045 new_path=`$CYGPATH -u "$path"` 35046 fi 35047 if test "x$new_path" = x; then 35048 # Oops. Which didn't find the executable. 35049 # The splitting of arguments from the executable at a space might have been incorrect, 35050 # since paths with space are more likely in Windows. Give it another try with the whole 35051 # argument. 35052 path="$complete" 35053 arguments="EOL" 35054 new_path=`$CYGPATH -u "$path"` 35055 new_path=`$WHICH "$new_path" 2> /dev/null` 35056 # bat and cmd files are not always considered executable in cygwin causing which 35057 # to not find them 35058 if test "x$new_path" = x \ 35059 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35060 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35061 new_path=`$CYGPATH -u "$path"` 35062 fi 35063 if test "x$new_path" = x; then 35064 # It's still not found. Now this is an unrecoverable error. 35065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35066 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35067 has_space=`$ECHO "$complete" | $GREP " "` 35068 if test "x$has_space" != x; then 35069 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35070 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35071 fi 35072 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35073 fi 35074 fi 35075 35076 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35077 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35078 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35079 # "foo.exe" is OK but "foo" is an error. 35080 # 35081 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35082 # It is also a way to make sure we got the proper file name for the real test later on. 35083 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35084 if test "x$test_shortpath" = x; then 35085 # Short path failed, file does not exist as specified. 35086 # Try adding .exe or .cmd 35087 if test -f "${new_path}.exe"; then 35088 input_to_shortpath="${new_path}.exe" 35089 elif test -f "${new_path}.cmd"; then 35090 input_to_shortpath="${new_path}.cmd" 35091 else 35092 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35093 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35094 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35095 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35096 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35097 fi 35098 else 35099 input_to_shortpath="$new_path" 35100 fi 35101 35102 # Call helper function which possibly converts this using DOS-style short mode. 35103 # If so, the updated path is stored in $new_path. 35104 new_path="$input_to_shortpath" 35105 35106 input_path="$input_to_shortpath" 35107 # Check if we need to convert this using DOS-style short mode. If the path 35108 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35109 # take no chances and rewrite it. 35110 # Note: m4 eats our [], so we need to use [ and ] instead. 35111 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35112 if test "x$has_forbidden_chars" != x; then 35113 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35114 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35115 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35116 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35117 # Going to short mode and back again did indeed matter. Since short mode is 35118 # case insensitive, let's make it lowercase to improve readability. 35119 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35120 # Now convert it back to Unix-stile (cygpath) 35121 input_path=`$CYGPATH -u "$shortmode_path"` 35122 new_path="$input_path" 35123 fi 35124 fi 35125 35126 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35127 if test "x$test_cygdrive_prefix" = x; then 35128 # As a simple fix, exclude /usr/bin since it's not a real path. 35129 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35130 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35131 # a path prefixed by /cygdrive for fixpath to work. 35132 new_path="$CYGWIN_ROOT_PATH$input_path" 35133 fi 35134 fi 35135 35136 # remove trailing .exe if any 35137 new_path="${new_path/%.exe/}" 35138 35139 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35140 35141 # First separate the path from the arguments. This will split at the first 35142 # space. 35143 complete="$STRIP" 35144 path="${complete%% *}" 35145 tmp="$complete EOL" 35146 arguments="${tmp#* }" 35147 35148 # Input might be given as Windows format, start by converting to 35149 # unix format. 35150 new_path="$path" 35151 35152 windows_path="$new_path" 35153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35154 unix_path=`$CYGPATH -u "$windows_path"` 35155 new_path="$unix_path" 35156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35157 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35158 new_path="$unix_path" 35159 fi 35160 35161 35162 # Now try to locate executable using which 35163 new_path=`$WHICH "$new_path" 2> /dev/null` 35164 35165 if test "x$new_path" = x; then 35166 # Oops. Which didn't find the executable. 35167 # The splitting of arguments from the executable at a space might have been incorrect, 35168 # since paths with space are more likely in Windows. Give it another try with the whole 35169 # argument. 35170 path="$complete" 35171 arguments="EOL" 35172 new_path="$path" 35173 35174 windows_path="$new_path" 35175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35176 unix_path=`$CYGPATH -u "$windows_path"` 35177 new_path="$unix_path" 35178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35180 new_path="$unix_path" 35181 fi 35182 35183 35184 new_path=`$WHICH "$new_path" 2> /dev/null` 35185 # bat and cmd files are not always considered executable in MSYS causing which 35186 # to not find them 35187 if test "x$new_path" = x \ 35188 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35189 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35190 new_path="$path" 35191 35192 windows_path="$new_path" 35193 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35194 unix_path=`$CYGPATH -u "$windows_path"` 35195 new_path="$unix_path" 35196 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35197 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35198 new_path="$unix_path" 35199 fi 35200 35201 fi 35202 35203 if test "x$new_path" = x; then 35204 # It's still not found. Now this is an unrecoverable error. 35205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35206 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35207 has_space=`$ECHO "$complete" | $GREP " "` 35208 if test "x$has_space" != x; then 35209 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35211 fi 35212 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35213 fi 35214 fi 35215 35216 # Now new_path has a complete unix path to the binary 35217 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35218 # Keep paths in /bin as-is, but remove trailing .exe if any 35219 new_path="${new_path/%.exe/}" 35220 # Do not save /bin paths to all_fixpath_prefixes! 35221 else 35222 # Not in mixed or Windows style, start by that. 35223 new_path=`cmd //c echo $new_path` 35224 35225 input_path="$new_path" 35226 # Check if we need to convert this using DOS-style short mode. If the path 35227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35228 # take no chances and rewrite it. 35229 # Note: m4 eats our [], so we need to use [ and ] instead. 35230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35231 if test "x$has_forbidden_chars" != x; then 35232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35234 fi 35235 35236 # Output is in $new_path 35237 35238 windows_path="$new_path" 35239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35240 unix_path=`$CYGPATH -u "$windows_path"` 35241 new_path="$unix_path" 35242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35244 new_path="$unix_path" 35245 fi 35246 35247 # remove trailing .exe if any 35248 new_path="${new_path/%.exe/}" 35249 35250 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35251 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35252 fi 35253 35254 else 35255 # We're on a unix platform. Hooray! :) 35256 # First separate the path from the arguments. This will split at the first 35257 # space. 35258 complete="$STRIP" 35259 path="${complete%% *}" 35260 tmp="$complete EOL" 35261 arguments="${tmp#* }" 35262 35263 # Cannot rely on the command "which" here since it doesn't always work. 35264 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35265 if test -z "$is_absolute_path"; then 35266 # Path to executable is not absolute. Find it. 35267 IFS_save="$IFS" 35268 IFS=: 35269 for p in $PATH; do 35270 if test -f "$p/$path" && test -x "$p/$path"; then 35271 new_path="$p/$path" 35272 break 35273 fi 35274 done 35275 IFS="$IFS_save" 35276 else 35277 # This is an absolute path, we can use it without further modifications. 35278 new_path="$path" 35279 fi 35280 35281 if test "x$new_path" = x; then 35282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35283 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35284 has_space=`$ECHO "$complete" | $GREP " "` 35285 if test "x$has_space" != x; then 35286 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35287 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35288 fi 35289 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35290 fi 35291 fi 35292 35293 # Now join together the path and the arguments once again 35294 if test "x$arguments" != xEOL; then 35295 new_complete="$new_path ${arguments% *}" 35296 else 35297 new_complete="$new_path" 35298 fi 35299 35300 if test "x$complete" != "x$new_complete"; then 35301 STRIP="$new_complete" 35302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35303 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35304 fi 35305 35306 35307 35308 # Publish this variable in the help. 35309 35310 35311 if test "x$NM" = x; then 35312 # The variable is not set by user, try to locate tool using the code snippet 35313 for ac_prog in nm 35314 do 35315 # Extract the first word of "$ac_prog", so it can be a program name with args. 35316 set dummy $ac_prog; ac_word=$2 35317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35318 $as_echo_n "checking for $ac_word... " >&6; } 35319 if ${ac_cv_path_NM+:} false; then : 35320 $as_echo_n "(cached) " >&6 35321 else 35322 case $NM in 35323 [\\/]* | ?:[\\/]*) 35324 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35325 ;; 35326 *) 35327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35328 for as_dir in $PATH 35329 do 35330 IFS=$as_save_IFS 35331 test -z "$as_dir" && as_dir=. 35332 for ac_exec_ext in '' $ac_executable_extensions; do 35333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35334 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35336 break 2 35337 fi 35338 done 35339 done 35340 IFS=$as_save_IFS 35341 35342 ;; 35343 esac 35344 fi 35345 NM=$ac_cv_path_NM 35346 if test -n "$NM"; then 35347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35348 $as_echo "$NM" >&6; } 35349 else 35350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35351 $as_echo "no" >&6; } 35352 fi 35353 35354 35355 test -n "$NM" && break 35356 done 35357 35358 else 35359 # The variable is set, but is it from the command line or the environment? 35360 35361 # Try to remove the string !NM! from our list. 35362 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35363 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35364 # If it failed, the variable was not from the command line. Ignore it, 35365 # but warn the user (except for BASH, which is always set by the calling BASH). 35366 if test "xNM" != xBASH; then 35367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35368 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35369 fi 35370 # Try to locate tool using the code snippet 35371 for ac_prog in nm 35372 do 35373 # Extract the first word of "$ac_prog", so it can be a program name with args. 35374 set dummy $ac_prog; ac_word=$2 35375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35376 $as_echo_n "checking for $ac_word... " >&6; } 35377 if ${ac_cv_path_NM+:} false; then : 35378 $as_echo_n "(cached) " >&6 35379 else 35380 case $NM in 35381 [\\/]* | ?:[\\/]*) 35382 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35383 ;; 35384 *) 35385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35386 for as_dir in $PATH 35387 do 35388 IFS=$as_save_IFS 35389 test -z "$as_dir" && as_dir=. 35390 for ac_exec_ext in '' $ac_executable_extensions; do 35391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35392 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35394 break 2 35395 fi 35396 done 35397 done 35398 IFS=$as_save_IFS 35399 35400 ;; 35401 esac 35402 fi 35403 NM=$ac_cv_path_NM 35404 if test -n "$NM"; then 35405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35406 $as_echo "$NM" >&6; } 35407 else 35408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35409 $as_echo "no" >&6; } 35410 fi 35411 35412 35413 test -n "$NM" && break 35414 done 35415 35416 else 35417 # If it succeeded, then it was overridden by the user. We will use it 35418 # for the tool. 35419 35420 # First remove it from the list of overridden variables, so we can test 35421 # for unknown variables in the end. 35422 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35423 35424 # Check if the provided tool contains a complete path. 35425 tool_specified="$NM" 35426 tool_basename="${tool_specified##*/}" 35427 if test "x$tool_basename" = "x$tool_specified"; then 35428 # A command without a complete path is provided, search $PATH. 35429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35430 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35431 # Extract the first word of "$tool_basename", so it can be a program name with args. 35432 set dummy $tool_basename; ac_word=$2 35433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35434 $as_echo_n "checking for $ac_word... " >&6; } 35435 if ${ac_cv_path_NM+:} false; then : 35436 $as_echo_n "(cached) " >&6 35437 else 35438 case $NM in 35439 [\\/]* | ?:[\\/]*) 35440 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35441 ;; 35442 *) 35443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35444 for as_dir in $PATH 35445 do 35446 IFS=$as_save_IFS 35447 test -z "$as_dir" && as_dir=. 35448 for ac_exec_ext in '' $ac_executable_extensions; do 35449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35450 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35452 break 2 35453 fi 35454 done 35455 done 35456 IFS=$as_save_IFS 35457 35458 ;; 35459 esac 35460 fi 35461 NM=$ac_cv_path_NM 35462 if test -n "$NM"; then 35463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35464 $as_echo "$NM" >&6; } 35465 else 35466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35467 $as_echo "no" >&6; } 35468 fi 35469 35470 35471 if test "x$NM" = x; then 35472 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35473 fi 35474 else 35475 # Otherwise we believe it is a complete path. Use it as it is. 35476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35477 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35479 $as_echo_n "checking for NM... " >&6; } 35480 if test ! -x "$tool_specified"; then 35481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35482 $as_echo "not found" >&6; } 35483 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35484 fi 35485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35486 $as_echo "$tool_specified" >&6; } 35487 fi 35488 fi 35489 fi 35490 35491 35492 35493 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35494 35495 # First separate the path from the arguments. This will split at the first 35496 # space. 35497 complete="$NM" 35498 path="${complete%% *}" 35499 tmp="$complete EOL" 35500 arguments="${tmp#* }" 35501 35502 # Input might be given as Windows format, start by converting to 35503 # unix format. 35504 new_path=`$CYGPATH -u "$path"` 35505 35506 # Now try to locate executable using which 35507 new_path=`$WHICH "$new_path" 2> /dev/null` 35508 # bat and cmd files are not always considered executable in cygwin causing which 35509 # to not find them 35510 if test "x$new_path" = x \ 35511 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35512 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35513 new_path=`$CYGPATH -u "$path"` 35514 fi 35515 if test "x$new_path" = x; then 35516 # Oops. Which didn't find the executable. 35517 # The splitting of arguments from the executable at a space might have been incorrect, 35518 # since paths with space are more likely in Windows. Give it another try with the whole 35519 # argument. 35520 path="$complete" 35521 arguments="EOL" 35522 new_path=`$CYGPATH -u "$path"` 35523 new_path=`$WHICH "$new_path" 2> /dev/null` 35524 # bat and cmd files are not always considered executable in cygwin causing which 35525 # to not find them 35526 if test "x$new_path" = x \ 35527 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35528 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35529 new_path=`$CYGPATH -u "$path"` 35530 fi 35531 if test "x$new_path" = x; then 35532 # It's still not found. Now this is an unrecoverable error. 35533 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35534 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35535 has_space=`$ECHO "$complete" | $GREP " "` 35536 if test "x$has_space" != x; then 35537 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35538 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35539 fi 35540 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35541 fi 35542 fi 35543 35544 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35545 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35546 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35547 # "foo.exe" is OK but "foo" is an error. 35548 # 35549 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35550 # It is also a way to make sure we got the proper file name for the real test later on. 35551 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35552 if test "x$test_shortpath" = x; then 35553 # Short path failed, file does not exist as specified. 35554 # Try adding .exe or .cmd 35555 if test -f "${new_path}.exe"; then 35556 input_to_shortpath="${new_path}.exe" 35557 elif test -f "${new_path}.cmd"; then 35558 input_to_shortpath="${new_path}.cmd" 35559 else 35560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35561 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35562 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35563 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35564 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35565 fi 35566 else 35567 input_to_shortpath="$new_path" 35568 fi 35569 35570 # Call helper function which possibly converts this using DOS-style short mode. 35571 # If so, the updated path is stored in $new_path. 35572 new_path="$input_to_shortpath" 35573 35574 input_path="$input_to_shortpath" 35575 # Check if we need to convert this using DOS-style short mode. If the path 35576 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35577 # take no chances and rewrite it. 35578 # Note: m4 eats our [], so we need to use [ and ] instead. 35579 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35580 if test "x$has_forbidden_chars" != x; then 35581 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35582 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35583 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35584 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35585 # Going to short mode and back again did indeed matter. Since short mode is 35586 # case insensitive, let's make it lowercase to improve readability. 35587 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35588 # Now convert it back to Unix-stile (cygpath) 35589 input_path=`$CYGPATH -u "$shortmode_path"` 35590 new_path="$input_path" 35591 fi 35592 fi 35593 35594 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35595 if test "x$test_cygdrive_prefix" = x; then 35596 # As a simple fix, exclude /usr/bin since it's not a real path. 35597 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35598 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35599 # a path prefixed by /cygdrive for fixpath to work. 35600 new_path="$CYGWIN_ROOT_PATH$input_path" 35601 fi 35602 fi 35603 35604 # remove trailing .exe if any 35605 new_path="${new_path/%.exe/}" 35606 35607 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35608 35609 # First separate the path from the arguments. This will split at the first 35610 # space. 35611 complete="$NM" 35612 path="${complete%% *}" 35613 tmp="$complete EOL" 35614 arguments="${tmp#* }" 35615 35616 # Input might be given as Windows format, start by converting to 35617 # unix format. 35618 new_path="$path" 35619 35620 windows_path="$new_path" 35621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35622 unix_path=`$CYGPATH -u "$windows_path"` 35623 new_path="$unix_path" 35624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35625 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35626 new_path="$unix_path" 35627 fi 35628 35629 35630 # Now try to locate executable using which 35631 new_path=`$WHICH "$new_path" 2> /dev/null` 35632 35633 if test "x$new_path" = x; then 35634 # Oops. Which didn't find the executable. 35635 # The splitting of arguments from the executable at a space might have been incorrect, 35636 # since paths with space are more likely in Windows. Give it another try with the whole 35637 # argument. 35638 path="$complete" 35639 arguments="EOL" 35640 new_path="$path" 35641 35642 windows_path="$new_path" 35643 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35644 unix_path=`$CYGPATH -u "$windows_path"` 35645 new_path="$unix_path" 35646 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35647 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35648 new_path="$unix_path" 35649 fi 35650 35651 35652 new_path=`$WHICH "$new_path" 2> /dev/null` 35653 # bat and cmd files are not always considered executable in MSYS causing which 35654 # to not find them 35655 if test "x$new_path" = x \ 35656 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35657 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35658 new_path="$path" 35659 35660 windows_path="$new_path" 35661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35662 unix_path=`$CYGPATH -u "$windows_path"` 35663 new_path="$unix_path" 35664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35666 new_path="$unix_path" 35667 fi 35668 35669 fi 35670 35671 if test "x$new_path" = x; then 35672 # It's still not found. Now this is an unrecoverable error. 35673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35674 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35675 has_space=`$ECHO "$complete" | $GREP " "` 35676 if test "x$has_space" != x; then 35677 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35678 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35679 fi 35680 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35681 fi 35682 fi 35683 35684 # Now new_path has a complete unix path to the binary 35685 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35686 # Keep paths in /bin as-is, but remove trailing .exe if any 35687 new_path="${new_path/%.exe/}" 35688 # Do not save /bin paths to all_fixpath_prefixes! 35689 else 35690 # Not in mixed or Windows style, start by that. 35691 new_path=`cmd //c echo $new_path` 35692 35693 input_path="$new_path" 35694 # Check if we need to convert this using DOS-style short mode. If the path 35695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35696 # take no chances and rewrite it. 35697 # Note: m4 eats our [], so we need to use [ and ] instead. 35698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35699 if test "x$has_forbidden_chars" != x; then 35700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35701 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35702 fi 35703 35704 # Output is in $new_path 35705 35706 windows_path="$new_path" 35707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35708 unix_path=`$CYGPATH -u "$windows_path"` 35709 new_path="$unix_path" 35710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35712 new_path="$unix_path" 35713 fi 35714 35715 # remove trailing .exe if any 35716 new_path="${new_path/%.exe/}" 35717 35718 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35719 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35720 fi 35721 35722 else 35723 # We're on a unix platform. Hooray! :) 35724 # First separate the path from the arguments. This will split at the first 35725 # space. 35726 complete="$NM" 35727 path="${complete%% *}" 35728 tmp="$complete EOL" 35729 arguments="${tmp#* }" 35730 35731 # Cannot rely on the command "which" here since it doesn't always work. 35732 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35733 if test -z "$is_absolute_path"; then 35734 # Path to executable is not absolute. Find it. 35735 IFS_save="$IFS" 35736 IFS=: 35737 for p in $PATH; do 35738 if test -f "$p/$path" && test -x "$p/$path"; then 35739 new_path="$p/$path" 35740 break 35741 fi 35742 done 35743 IFS="$IFS_save" 35744 else 35745 # This is an absolute path, we can use it without further modifications. 35746 new_path="$path" 35747 fi 35748 35749 if test "x$new_path" = x; then 35750 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35751 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35752 has_space=`$ECHO "$complete" | $GREP " "` 35753 if test "x$has_space" != x; then 35754 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35755 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35756 fi 35757 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35758 fi 35759 fi 35760 35761 # Now join together the path and the arguments once again 35762 if test "x$arguments" != xEOL; then 35763 new_complete="$new_path ${arguments% *}" 35764 else 35765 new_complete="$new_path" 35766 fi 35767 35768 if test "x$complete" != "x$new_complete"; then 35769 NM="$new_complete" 35770 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35771 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35772 fi 35773 35774 35775 35776 # Publish this variable in the help. 35777 35778 35779 if test "x$GNM" = x; then 35780 # The variable is not set by user, try to locate tool using the code snippet 35781 for ac_prog in gnm 35782 do 35783 # Extract the first word of "$ac_prog", so it can be a program name with args. 35784 set dummy $ac_prog; ac_word=$2 35785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35786 $as_echo_n "checking for $ac_word... " >&6; } 35787 if ${ac_cv_path_GNM+:} false; then : 35788 $as_echo_n "(cached) " >&6 35789 else 35790 case $GNM in 35791 [\\/]* | ?:[\\/]*) 35792 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35793 ;; 35794 *) 35795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35796 for as_dir in $PATH 35797 do 35798 IFS=$as_save_IFS 35799 test -z "$as_dir" && as_dir=. 35800 for ac_exec_ext in '' $ac_executable_extensions; do 35801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35802 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35804 break 2 35805 fi 35806 done 35807 done 35808 IFS=$as_save_IFS 35809 35810 ;; 35811 esac 35812 fi 35813 GNM=$ac_cv_path_GNM 35814 if test -n "$GNM"; then 35815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35816 $as_echo "$GNM" >&6; } 35817 else 35818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35819 $as_echo "no" >&6; } 35820 fi 35821 35822 35823 test -n "$GNM" && break 35824 done 35825 35826 else 35827 # The variable is set, but is it from the command line or the environment? 35828 35829 # Try to remove the string !GNM! from our list. 35830 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35831 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35832 # If it failed, the variable was not from the command line. Ignore it, 35833 # but warn the user (except for BASH, which is always set by the calling BASH). 35834 if test "xGNM" != xBASH; then 35835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35836 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35837 fi 35838 # Try to locate tool using the code snippet 35839 for ac_prog in gnm 35840 do 35841 # Extract the first word of "$ac_prog", so it can be a program name with args. 35842 set dummy $ac_prog; ac_word=$2 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35844 $as_echo_n "checking for $ac_word... " >&6; } 35845 if ${ac_cv_path_GNM+:} false; then : 35846 $as_echo_n "(cached) " >&6 35847 else 35848 case $GNM in 35849 [\\/]* | ?:[\\/]*) 35850 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35851 ;; 35852 *) 35853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35854 for as_dir in $PATH 35855 do 35856 IFS=$as_save_IFS 35857 test -z "$as_dir" && as_dir=. 35858 for ac_exec_ext in '' $ac_executable_extensions; do 35859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35860 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35862 break 2 35863 fi 35864 done 35865 done 35866 IFS=$as_save_IFS 35867 35868 ;; 35869 esac 35870 fi 35871 GNM=$ac_cv_path_GNM 35872 if test -n "$GNM"; then 35873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35874 $as_echo "$GNM" >&6; } 35875 else 35876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35877 $as_echo "no" >&6; } 35878 fi 35879 35880 35881 test -n "$GNM" && break 35882 done 35883 35884 else 35885 # If it succeeded, then it was overridden by the user. We will use it 35886 # for the tool. 35887 35888 # First remove it from the list of overridden variables, so we can test 35889 # for unknown variables in the end. 35890 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35891 35892 # Check if the provided tool contains a complete path. 35893 tool_specified="$GNM" 35894 tool_basename="${tool_specified##*/}" 35895 if test "x$tool_basename" = "x$tool_specified"; then 35896 # A command without a complete path is provided, search $PATH. 35897 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35898 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35899 # Extract the first word of "$tool_basename", so it can be a program name with args. 35900 set dummy $tool_basename; ac_word=$2 35901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35902 $as_echo_n "checking for $ac_word... " >&6; } 35903 if ${ac_cv_path_GNM+:} false; then : 35904 $as_echo_n "(cached) " >&6 35905 else 35906 case $GNM in 35907 [\\/]* | ?:[\\/]*) 35908 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35909 ;; 35910 *) 35911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35912 for as_dir in $PATH 35913 do 35914 IFS=$as_save_IFS 35915 test -z "$as_dir" && as_dir=. 35916 for ac_exec_ext in '' $ac_executable_extensions; do 35917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35918 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35920 break 2 35921 fi 35922 done 35923 done 35924 IFS=$as_save_IFS 35925 35926 ;; 35927 esac 35928 fi 35929 GNM=$ac_cv_path_GNM 35930 if test -n "$GNM"; then 35931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35932 $as_echo "$GNM" >&6; } 35933 else 35934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35935 $as_echo "no" >&6; } 35936 fi 35937 35938 35939 if test "x$GNM" = x; then 35940 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35941 fi 35942 else 35943 # Otherwise we believe it is a complete path. Use it as it is. 35944 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35945 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35947 $as_echo_n "checking for GNM... " >&6; } 35948 if test ! -x "$tool_specified"; then 35949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35950 $as_echo "not found" >&6; } 35951 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35952 fi 35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35954 $as_echo "$tool_specified" >&6; } 35955 fi 35956 fi 35957 fi 35958 35959 35960 35961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35962 35963 # First separate the path from the arguments. This will split at the first 35964 # space. 35965 complete="$GNM" 35966 path="${complete%% *}" 35967 tmp="$complete EOL" 35968 arguments="${tmp#* }" 35969 35970 # Input might be given as Windows format, start by converting to 35971 # unix format. 35972 new_path=`$CYGPATH -u "$path"` 35973 35974 # Now try to locate executable using which 35975 new_path=`$WHICH "$new_path" 2> /dev/null` 35976 # bat and cmd files are not always considered executable in cygwin causing which 35977 # to not find them 35978 if test "x$new_path" = x \ 35979 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35980 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35981 new_path=`$CYGPATH -u "$path"` 35982 fi 35983 if test "x$new_path" = x; then 35984 # Oops. Which didn't find the executable. 35985 # The splitting of arguments from the executable at a space might have been incorrect, 35986 # since paths with space are more likely in Windows. Give it another try with the whole 35987 # argument. 35988 path="$complete" 35989 arguments="EOL" 35990 new_path=`$CYGPATH -u "$path"` 35991 new_path=`$WHICH "$new_path" 2> /dev/null` 35992 # bat and cmd files are not always considered executable in cygwin causing which 35993 # to not find them 35994 if test "x$new_path" = x \ 35995 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35996 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35997 new_path=`$CYGPATH -u "$path"` 35998 fi 35999 if test "x$new_path" = x; then 36000 # It's still not found. Now this is an unrecoverable error. 36001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36002 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36003 has_space=`$ECHO "$complete" | $GREP " "` 36004 if test "x$has_space" != x; then 36005 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36006 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36007 fi 36008 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36009 fi 36010 fi 36011 36012 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36013 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36014 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36015 # "foo.exe" is OK but "foo" is an error. 36016 # 36017 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36018 # It is also a way to make sure we got the proper file name for the real test later on. 36019 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36020 if test "x$test_shortpath" = x; then 36021 # Short path failed, file does not exist as specified. 36022 # Try adding .exe or .cmd 36023 if test -f "${new_path}.exe"; then 36024 input_to_shortpath="${new_path}.exe" 36025 elif test -f "${new_path}.cmd"; then 36026 input_to_shortpath="${new_path}.cmd" 36027 else 36028 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 36029 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 36030 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36031 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36032 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36033 fi 36034 else 36035 input_to_shortpath="$new_path" 36036 fi 36037 36038 # Call helper function which possibly converts this using DOS-style short mode. 36039 # If so, the updated path is stored in $new_path. 36040 new_path="$input_to_shortpath" 36041 36042 input_path="$input_to_shortpath" 36043 # Check if we need to convert this using DOS-style short mode. If the path 36044 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36045 # take no chances and rewrite it. 36046 # Note: m4 eats our [], so we need to use [ and ] instead. 36047 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36048 if test "x$has_forbidden_chars" != x; then 36049 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36050 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36051 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36052 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36053 # Going to short mode and back again did indeed matter. Since short mode is 36054 # case insensitive, let's make it lowercase to improve readability. 36055 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36056 # Now convert it back to Unix-stile (cygpath) 36057 input_path=`$CYGPATH -u "$shortmode_path"` 36058 new_path="$input_path" 36059 fi 36060 fi 36061 36062 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36063 if test "x$test_cygdrive_prefix" = x; then 36064 # As a simple fix, exclude /usr/bin since it's not a real path. 36065 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36066 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36067 # a path prefixed by /cygdrive for fixpath to work. 36068 new_path="$CYGWIN_ROOT_PATH$input_path" 36069 fi 36070 fi 36071 36072 # remove trailing .exe if any 36073 new_path="${new_path/%.exe/}" 36074 36075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36076 36077 # First separate the path from the arguments. This will split at the first 36078 # space. 36079 complete="$GNM" 36080 path="${complete%% *}" 36081 tmp="$complete EOL" 36082 arguments="${tmp#* }" 36083 36084 # Input might be given as Windows format, start by converting to 36085 # unix format. 36086 new_path="$path" 36087 36088 windows_path="$new_path" 36089 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36090 unix_path=`$CYGPATH -u "$windows_path"` 36091 new_path="$unix_path" 36092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36093 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36094 new_path="$unix_path" 36095 fi 36096 36097 36098 # Now try to locate executable using which 36099 new_path=`$WHICH "$new_path" 2> /dev/null` 36100 36101 if test "x$new_path" = x; then 36102 # Oops. Which didn't find the executable. 36103 # The splitting of arguments from the executable at a space might have been incorrect, 36104 # since paths with space are more likely in Windows. Give it another try with the whole 36105 # argument. 36106 path="$complete" 36107 arguments="EOL" 36108 new_path="$path" 36109 36110 windows_path="$new_path" 36111 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36112 unix_path=`$CYGPATH -u "$windows_path"` 36113 new_path="$unix_path" 36114 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36115 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36116 new_path="$unix_path" 36117 fi 36118 36119 36120 new_path=`$WHICH "$new_path" 2> /dev/null` 36121 # bat and cmd files are not always considered executable in MSYS causing which 36122 # to not find them 36123 if test "x$new_path" = x \ 36124 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36125 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36126 new_path="$path" 36127 36128 windows_path="$new_path" 36129 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36130 unix_path=`$CYGPATH -u "$windows_path"` 36131 new_path="$unix_path" 36132 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36133 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36134 new_path="$unix_path" 36135 fi 36136 36137 fi 36138 36139 if test "x$new_path" = x; then 36140 # It's still not found. Now this is an unrecoverable error. 36141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36142 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36143 has_space=`$ECHO "$complete" | $GREP " "` 36144 if test "x$has_space" != x; then 36145 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36146 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36147 fi 36148 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36149 fi 36150 fi 36151 36152 # Now new_path has a complete unix path to the binary 36153 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36154 # Keep paths in /bin as-is, but remove trailing .exe if any 36155 new_path="${new_path/%.exe/}" 36156 # Do not save /bin paths to all_fixpath_prefixes! 36157 else 36158 # Not in mixed or Windows style, start by that. 36159 new_path=`cmd //c echo $new_path` 36160 36161 input_path="$new_path" 36162 # Check if we need to convert this using DOS-style short mode. If the path 36163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36164 # take no chances and rewrite it. 36165 # Note: m4 eats our [], so we need to use [ and ] instead. 36166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36167 if test "x$has_forbidden_chars" != x; then 36168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36170 fi 36171 36172 # Output is in $new_path 36173 36174 windows_path="$new_path" 36175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36176 unix_path=`$CYGPATH -u "$windows_path"` 36177 new_path="$unix_path" 36178 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36179 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36180 new_path="$unix_path" 36181 fi 36182 36183 # remove trailing .exe if any 36184 new_path="${new_path/%.exe/}" 36185 36186 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36187 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36188 fi 36189 36190 else 36191 # We're on a unix platform. Hooray! :) 36192 # First separate the path from the arguments. This will split at the first 36193 # space. 36194 complete="$GNM" 36195 path="${complete%% *}" 36196 tmp="$complete EOL" 36197 arguments="${tmp#* }" 36198 36199 # Cannot rely on the command "which" here since it doesn't always work. 36200 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36201 if test -z "$is_absolute_path"; then 36202 # Path to executable is not absolute. Find it. 36203 IFS_save="$IFS" 36204 IFS=: 36205 for p in $PATH; do 36206 if test -f "$p/$path" && test -x "$p/$path"; then 36207 new_path="$p/$path" 36208 break 36209 fi 36210 done 36211 IFS="$IFS_save" 36212 else 36213 # This is an absolute path, we can use it without further modifications. 36214 new_path="$path" 36215 fi 36216 36217 if test "x$new_path" = x; then 36218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36219 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36220 has_space=`$ECHO "$complete" | $GREP " "` 36221 if test "x$has_space" != x; then 36222 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36223 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36224 fi 36225 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36226 fi 36227 fi 36228 36229 # Now join together the path and the arguments once again 36230 if test "x$arguments" != xEOL; then 36231 new_complete="$new_path ${arguments% *}" 36232 else 36233 new_complete="$new_path" 36234 fi 36235 36236 if test "x$complete" != "x$new_complete"; then 36237 GNM="$new_complete" 36238 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36239 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36240 fi 36241 36242 36243 36244 36245 # Publish this variable in the help. 36246 36247 36248 if test "x$MCS" = x; then 36249 # The variable is not set by user, try to locate tool using the code snippet 36250 for ac_prog in mcs 36251 do 36252 # Extract the first word of "$ac_prog", so it can be a program name with args. 36253 set dummy $ac_prog; ac_word=$2 36254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36255 $as_echo_n "checking for $ac_word... " >&6; } 36256 if ${ac_cv_path_MCS+:} false; then : 36257 $as_echo_n "(cached) " >&6 36258 else 36259 case $MCS in 36260 [\\/]* | ?:[\\/]*) 36261 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36262 ;; 36263 *) 36264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36265 for as_dir in $PATH 36266 do 36267 IFS=$as_save_IFS 36268 test -z "$as_dir" && as_dir=. 36269 for ac_exec_ext in '' $ac_executable_extensions; do 36270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36271 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36273 break 2 36274 fi 36275 done 36276 done 36277 IFS=$as_save_IFS 36278 36279 ;; 36280 esac 36281 fi 36282 MCS=$ac_cv_path_MCS 36283 if test -n "$MCS"; then 36284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36285 $as_echo "$MCS" >&6; } 36286 else 36287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36288 $as_echo "no" >&6; } 36289 fi 36290 36291 36292 test -n "$MCS" && break 36293 done 36294 36295 else 36296 # The variable is set, but is it from the command line or the environment? 36297 36298 # Try to remove the string !MCS! from our list. 36299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36301 # If it failed, the variable was not from the command line. Ignore it, 36302 # but warn the user (except for BASH, which is always set by the calling BASH). 36303 if test "xMCS" != xBASH; then 36304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36305 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36306 fi 36307 # Try to locate tool using the code snippet 36308 for ac_prog in mcs 36309 do 36310 # Extract the first word of "$ac_prog", so it can be a program name with args. 36311 set dummy $ac_prog; ac_word=$2 36312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36313 $as_echo_n "checking for $ac_word... " >&6; } 36314 if ${ac_cv_path_MCS+:} false; then : 36315 $as_echo_n "(cached) " >&6 36316 else 36317 case $MCS in 36318 [\\/]* | ?:[\\/]*) 36319 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36320 ;; 36321 *) 36322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36323 for as_dir in $PATH 36324 do 36325 IFS=$as_save_IFS 36326 test -z "$as_dir" && as_dir=. 36327 for ac_exec_ext in '' $ac_executable_extensions; do 36328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36329 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36331 break 2 36332 fi 36333 done 36334 done 36335 IFS=$as_save_IFS 36336 36337 ;; 36338 esac 36339 fi 36340 MCS=$ac_cv_path_MCS 36341 if test -n "$MCS"; then 36342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36343 $as_echo "$MCS" >&6; } 36344 else 36345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36346 $as_echo "no" >&6; } 36347 fi 36348 36349 36350 test -n "$MCS" && break 36351 done 36352 36353 else 36354 # If it succeeded, then it was overridden by the user. We will use it 36355 # for the tool. 36356 36357 # First remove it from the list of overridden variables, so we can test 36358 # for unknown variables in the end. 36359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36360 36361 # Check if the provided tool contains a complete path. 36362 tool_specified="$MCS" 36363 tool_basename="${tool_specified##*/}" 36364 if test "x$tool_basename" = "x$tool_specified"; then 36365 # A command without a complete path is provided, search $PATH. 36366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36367 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36368 # Extract the first word of "$tool_basename", so it can be a program name with args. 36369 set dummy $tool_basename; ac_word=$2 36370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36371 $as_echo_n "checking for $ac_word... " >&6; } 36372 if ${ac_cv_path_MCS+:} false; then : 36373 $as_echo_n "(cached) " >&6 36374 else 36375 case $MCS in 36376 [\\/]* | ?:[\\/]*) 36377 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36378 ;; 36379 *) 36380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36381 for as_dir in $PATH 36382 do 36383 IFS=$as_save_IFS 36384 test -z "$as_dir" && as_dir=. 36385 for ac_exec_ext in '' $ac_executable_extensions; do 36386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36387 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36389 break 2 36390 fi 36391 done 36392 done 36393 IFS=$as_save_IFS 36394 36395 ;; 36396 esac 36397 fi 36398 MCS=$ac_cv_path_MCS 36399 if test -n "$MCS"; then 36400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36401 $as_echo "$MCS" >&6; } 36402 else 36403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36404 $as_echo "no" >&6; } 36405 fi 36406 36407 36408 if test "x$MCS" = x; then 36409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36410 fi 36411 else 36412 # Otherwise we believe it is a complete path. Use it as it is. 36413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36414 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36416 $as_echo_n "checking for MCS... " >&6; } 36417 if test ! -x "$tool_specified"; then 36418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36419 $as_echo "not found" >&6; } 36420 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36421 fi 36422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36423 $as_echo "$tool_specified" >&6; } 36424 fi 36425 fi 36426 fi 36427 36428 36429 36430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36431 36432 # First separate the path from the arguments. This will split at the first 36433 # space. 36434 complete="$MCS" 36435 path="${complete%% *}" 36436 tmp="$complete EOL" 36437 arguments="${tmp#* }" 36438 36439 # Input might be given as Windows format, start by converting to 36440 # unix format. 36441 new_path=`$CYGPATH -u "$path"` 36442 36443 # Now try to locate executable using which 36444 new_path=`$WHICH "$new_path" 2> /dev/null` 36445 # bat and cmd files are not always considered executable in cygwin causing which 36446 # to not find them 36447 if test "x$new_path" = x \ 36448 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36449 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36450 new_path=`$CYGPATH -u "$path"` 36451 fi 36452 if test "x$new_path" = x; then 36453 # Oops. Which didn't find the executable. 36454 # The splitting of arguments from the executable at a space might have been incorrect, 36455 # since paths with space are more likely in Windows. Give it another try with the whole 36456 # argument. 36457 path="$complete" 36458 arguments="EOL" 36459 new_path=`$CYGPATH -u "$path"` 36460 new_path=`$WHICH "$new_path" 2> /dev/null` 36461 # bat and cmd files are not always considered executable in cygwin causing which 36462 # to not find them 36463 if test "x$new_path" = x \ 36464 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36465 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36466 new_path=`$CYGPATH -u "$path"` 36467 fi 36468 if test "x$new_path" = x; then 36469 # It's still not found. Now this is an unrecoverable error. 36470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36471 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36472 has_space=`$ECHO "$complete" | $GREP " "` 36473 if test "x$has_space" != x; then 36474 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36475 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36476 fi 36477 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36478 fi 36479 fi 36480 36481 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36482 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36483 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36484 # "foo.exe" is OK but "foo" is an error. 36485 # 36486 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36487 # It is also a way to make sure we got the proper file name for the real test later on. 36488 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36489 if test "x$test_shortpath" = x; then 36490 # Short path failed, file does not exist as specified. 36491 # Try adding .exe or .cmd 36492 if test -f "${new_path}.exe"; then 36493 input_to_shortpath="${new_path}.exe" 36494 elif test -f "${new_path}.cmd"; then 36495 input_to_shortpath="${new_path}.cmd" 36496 else 36497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36498 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36499 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36500 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36501 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36502 fi 36503 else 36504 input_to_shortpath="$new_path" 36505 fi 36506 36507 # Call helper function which possibly converts this using DOS-style short mode. 36508 # If so, the updated path is stored in $new_path. 36509 new_path="$input_to_shortpath" 36510 36511 input_path="$input_to_shortpath" 36512 # Check if we need to convert this using DOS-style short mode. If the path 36513 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36514 # take no chances and rewrite it. 36515 # Note: m4 eats our [], so we need to use [ and ] instead. 36516 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36517 if test "x$has_forbidden_chars" != x; then 36518 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36519 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36520 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36521 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36522 # Going to short mode and back again did indeed matter. Since short mode is 36523 # case insensitive, let's make it lowercase to improve readability. 36524 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36525 # Now convert it back to Unix-stile (cygpath) 36526 input_path=`$CYGPATH -u "$shortmode_path"` 36527 new_path="$input_path" 36528 fi 36529 fi 36530 36531 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36532 if test "x$test_cygdrive_prefix" = x; then 36533 # As a simple fix, exclude /usr/bin since it's not a real path. 36534 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36535 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36536 # a path prefixed by /cygdrive for fixpath to work. 36537 new_path="$CYGWIN_ROOT_PATH$input_path" 36538 fi 36539 fi 36540 36541 # remove trailing .exe if any 36542 new_path="${new_path/%.exe/}" 36543 36544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36545 36546 # First separate the path from the arguments. This will split at the first 36547 # space. 36548 complete="$MCS" 36549 path="${complete%% *}" 36550 tmp="$complete EOL" 36551 arguments="${tmp#* }" 36552 36553 # Input might be given as Windows format, start by converting to 36554 # unix format. 36555 new_path="$path" 36556 36557 windows_path="$new_path" 36558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36559 unix_path=`$CYGPATH -u "$windows_path"` 36560 new_path="$unix_path" 36561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36563 new_path="$unix_path" 36564 fi 36565 36566 36567 # Now try to locate executable using which 36568 new_path=`$WHICH "$new_path" 2> /dev/null` 36569 36570 if test "x$new_path" = x; then 36571 # Oops. Which didn't find the executable. 36572 # The splitting of arguments from the executable at a space might have been incorrect, 36573 # since paths with space are more likely in Windows. Give it another try with the whole 36574 # argument. 36575 path="$complete" 36576 arguments="EOL" 36577 new_path="$path" 36578 36579 windows_path="$new_path" 36580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36581 unix_path=`$CYGPATH -u "$windows_path"` 36582 new_path="$unix_path" 36583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36585 new_path="$unix_path" 36586 fi 36587 36588 36589 new_path=`$WHICH "$new_path" 2> /dev/null` 36590 # bat and cmd files are not always considered executable in MSYS causing which 36591 # to not find them 36592 if test "x$new_path" = x \ 36593 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36594 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36595 new_path="$path" 36596 36597 windows_path="$new_path" 36598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36599 unix_path=`$CYGPATH -u "$windows_path"` 36600 new_path="$unix_path" 36601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36603 new_path="$unix_path" 36604 fi 36605 36606 fi 36607 36608 if test "x$new_path" = x; then 36609 # It's still not found. Now this is an unrecoverable error. 36610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36611 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36612 has_space=`$ECHO "$complete" | $GREP " "` 36613 if test "x$has_space" != x; then 36614 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36615 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36616 fi 36617 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36618 fi 36619 fi 36620 36621 # Now new_path has a complete unix path to the binary 36622 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36623 # Keep paths in /bin as-is, but remove trailing .exe if any 36624 new_path="${new_path/%.exe/}" 36625 # Do not save /bin paths to all_fixpath_prefixes! 36626 else 36627 # Not in mixed or Windows style, start by that. 36628 new_path=`cmd //c echo $new_path` 36629 36630 input_path="$new_path" 36631 # Check if we need to convert this using DOS-style short mode. If the path 36632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36633 # take no chances and rewrite it. 36634 # Note: m4 eats our [], so we need to use [ and ] instead. 36635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36636 if test "x$has_forbidden_chars" != x; then 36637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36638 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36639 fi 36640 36641 # Output is in $new_path 36642 36643 windows_path="$new_path" 36644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36645 unix_path=`$CYGPATH -u "$windows_path"` 36646 new_path="$unix_path" 36647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36649 new_path="$unix_path" 36650 fi 36651 36652 # remove trailing .exe if any 36653 new_path="${new_path/%.exe/}" 36654 36655 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36656 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36657 fi 36658 36659 else 36660 # We're on a unix platform. Hooray! :) 36661 # First separate the path from the arguments. This will split at the first 36662 # space. 36663 complete="$MCS" 36664 path="${complete%% *}" 36665 tmp="$complete EOL" 36666 arguments="${tmp#* }" 36667 36668 # Cannot rely on the command "which" here since it doesn't always work. 36669 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36670 if test -z "$is_absolute_path"; then 36671 # Path to executable is not absolute. Find it. 36672 IFS_save="$IFS" 36673 IFS=: 36674 for p in $PATH; do 36675 if test -f "$p/$path" && test -x "$p/$path"; then 36676 new_path="$p/$path" 36677 break 36678 fi 36679 done 36680 IFS="$IFS_save" 36681 else 36682 # This is an absolute path, we can use it without further modifications. 36683 new_path="$path" 36684 fi 36685 36686 if test "x$new_path" = x; then 36687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36688 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36689 has_space=`$ECHO "$complete" | $GREP " "` 36690 if test "x$has_space" != x; then 36691 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36692 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36693 fi 36694 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36695 fi 36696 fi 36697 36698 # Now join together the path and the arguments once again 36699 if test "x$arguments" != xEOL; then 36700 new_complete="$new_path ${arguments% *}" 36701 else 36702 new_complete="$new_path" 36703 fi 36704 36705 if test "x$complete" != "x$new_complete"; then 36706 MCS="$new_complete" 36707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36708 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36709 fi 36710 36711 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36712 # FIXME: we should unify this with the solaris case above. 36713 36714 36715 # Publish this variable in the help. 36716 36717 36718 if test "x$STRIP" = x; then 36719 # The variable is not set by user, try to locate tool using the code snippet 36720 if test -n "$ac_tool_prefix"; then 36721 for ac_prog in strip 36722 do 36723 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36724 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36726 $as_echo_n "checking for $ac_word... " >&6; } 36727 if ${ac_cv_prog_STRIP+:} false; then : 36728 $as_echo_n "(cached) " >&6 36729 else 36730 if test -n "$STRIP"; then 36731 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36732 else 36733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36734 for as_dir in $PATH 36735 do 36736 IFS=$as_save_IFS 36737 test -z "$as_dir" && as_dir=. 36738 for ac_exec_ext in '' $ac_executable_extensions; do 36739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36740 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36742 break 2 36743 fi 36744 done 36745 done 36746 IFS=$as_save_IFS 36747 36748 fi 36749 fi 36750 STRIP=$ac_cv_prog_STRIP 36751 if test -n "$STRIP"; then 36752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36753 $as_echo "$STRIP" >&6; } 36754 else 36755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36756 $as_echo "no" >&6; } 36757 fi 36758 36759 36760 test -n "$STRIP" && break 36761 done 36762 fi 36763 if test -z "$STRIP"; then 36764 ac_ct_STRIP=$STRIP 36765 for ac_prog in strip 36766 do 36767 # Extract the first word of "$ac_prog", so it can be a program name with args. 36768 set dummy $ac_prog; ac_word=$2 36769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36770 $as_echo_n "checking for $ac_word... " >&6; } 36771 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36772 $as_echo_n "(cached) " >&6 36773 else 36774 if test -n "$ac_ct_STRIP"; then 36775 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36776 else 36777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36778 for as_dir in $PATH 36779 do 36780 IFS=$as_save_IFS 36781 test -z "$as_dir" && as_dir=. 36782 for ac_exec_ext in '' $ac_executable_extensions; do 36783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36784 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36786 break 2 36787 fi 36788 done 36789 done 36790 IFS=$as_save_IFS 36791 36792 fi 36793 fi 36794 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36795 if test -n "$ac_ct_STRIP"; then 36796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36797 $as_echo "$ac_ct_STRIP" >&6; } 36798 else 36799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36800 $as_echo "no" >&6; } 36801 fi 36802 36803 36804 test -n "$ac_ct_STRIP" && break 36805 done 36806 36807 if test "x$ac_ct_STRIP" = x; then 36808 STRIP="" 36809 else 36810 case $cross_compiling:$ac_tool_warned in 36811 yes:) 36812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36813 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36814 ac_tool_warned=yes ;; 36815 esac 36816 STRIP=$ac_ct_STRIP 36817 fi 36818 fi 36819 36820 else 36821 # The variable is set, but is it from the command line or the environment? 36822 36823 # Try to remove the string !STRIP! from our list. 36824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36826 # If it failed, the variable was not from the command line. Ignore it, 36827 # but warn the user (except for BASH, which is always set by the calling BASH). 36828 if test "xSTRIP" != xBASH; then 36829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36830 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36831 fi 36832 # Try to locate tool using the code snippet 36833 if test -n "$ac_tool_prefix"; then 36834 for ac_prog in strip 36835 do 36836 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36837 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36839 $as_echo_n "checking for $ac_word... " >&6; } 36840 if ${ac_cv_prog_STRIP+:} false; then : 36841 $as_echo_n "(cached) " >&6 36842 else 36843 if test -n "$STRIP"; then 36844 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36845 else 36846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36847 for as_dir in $PATH 36848 do 36849 IFS=$as_save_IFS 36850 test -z "$as_dir" && as_dir=. 36851 for ac_exec_ext in '' $ac_executable_extensions; do 36852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36853 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36855 break 2 36856 fi 36857 done 36858 done 36859 IFS=$as_save_IFS 36860 36861 fi 36862 fi 36863 STRIP=$ac_cv_prog_STRIP 36864 if test -n "$STRIP"; then 36865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36866 $as_echo "$STRIP" >&6; } 36867 else 36868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36869 $as_echo "no" >&6; } 36870 fi 36871 36872 36873 test -n "$STRIP" && break 36874 done 36875 fi 36876 if test -z "$STRIP"; then 36877 ac_ct_STRIP=$STRIP 36878 for ac_prog in strip 36879 do 36880 # Extract the first word of "$ac_prog", so it can be a program name with args. 36881 set dummy $ac_prog; ac_word=$2 36882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36883 $as_echo_n "checking for $ac_word... " >&6; } 36884 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36885 $as_echo_n "(cached) " >&6 36886 else 36887 if test -n "$ac_ct_STRIP"; then 36888 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36889 else 36890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36891 for as_dir in $PATH 36892 do 36893 IFS=$as_save_IFS 36894 test -z "$as_dir" && as_dir=. 36895 for ac_exec_ext in '' $ac_executable_extensions; do 36896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36897 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36899 break 2 36900 fi 36901 done 36902 done 36903 IFS=$as_save_IFS 36904 36905 fi 36906 fi 36907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36908 if test -n "$ac_ct_STRIP"; then 36909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36910 $as_echo "$ac_ct_STRIP" >&6; } 36911 else 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36913 $as_echo "no" >&6; } 36914 fi 36915 36916 36917 test -n "$ac_ct_STRIP" && break 36918 done 36919 36920 if test "x$ac_ct_STRIP" = x; then 36921 STRIP="" 36922 else 36923 case $cross_compiling:$ac_tool_warned in 36924 yes:) 36925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36926 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36927 ac_tool_warned=yes ;; 36928 esac 36929 STRIP=$ac_ct_STRIP 36930 fi 36931 fi 36932 36933 else 36934 # If it succeeded, then it was overridden by the user. We will use it 36935 # for the tool. 36936 36937 # First remove it from the list of overridden variables, so we can test 36938 # for unknown variables in the end. 36939 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36940 36941 # Check if the provided tool contains a complete path. 36942 tool_specified="$STRIP" 36943 tool_basename="${tool_specified##*/}" 36944 if test "x$tool_basename" = "x$tool_specified"; then 36945 # A command without a complete path is provided, search $PATH. 36946 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36947 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36948 # Extract the first word of "$tool_basename", so it can be a program name with args. 36949 set dummy $tool_basename; ac_word=$2 36950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36951 $as_echo_n "checking for $ac_word... " >&6; } 36952 if ${ac_cv_path_STRIP+:} false; then : 36953 $as_echo_n "(cached) " >&6 36954 else 36955 case $STRIP in 36956 [\\/]* | ?:[\\/]*) 36957 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36958 ;; 36959 *) 36960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36961 for as_dir in $PATH 36962 do 36963 IFS=$as_save_IFS 36964 test -z "$as_dir" && as_dir=. 36965 for ac_exec_ext in '' $ac_executable_extensions; do 36966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36967 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36969 break 2 36970 fi 36971 done 36972 done 36973 IFS=$as_save_IFS 36974 36975 ;; 36976 esac 36977 fi 36978 STRIP=$ac_cv_path_STRIP 36979 if test -n "$STRIP"; then 36980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36981 $as_echo "$STRIP" >&6; } 36982 else 36983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36984 $as_echo "no" >&6; } 36985 fi 36986 36987 36988 if test "x$STRIP" = x; then 36989 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36990 fi 36991 else 36992 # Otherwise we believe it is a complete path. Use it as it is. 36993 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36994 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36996 $as_echo_n "checking for STRIP... " >&6; } 36997 if test ! -x "$tool_specified"; then 36998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36999 $as_echo "not found" >&6; } 37000 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37001 fi 37002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37003 $as_echo "$tool_specified" >&6; } 37004 fi 37005 fi 37006 fi 37007 37008 37009 37010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37011 37012 # First separate the path from the arguments. This will split at the first 37013 # space. 37014 complete="$STRIP" 37015 path="${complete%% *}" 37016 tmp="$complete EOL" 37017 arguments="${tmp#* }" 37018 37019 # Input might be given as Windows format, start by converting to 37020 # unix format. 37021 new_path=`$CYGPATH -u "$path"` 37022 37023 # Now try to locate executable using which 37024 new_path=`$WHICH "$new_path" 2> /dev/null` 37025 # bat and cmd files are not always considered executable in cygwin causing which 37026 # to not find them 37027 if test "x$new_path" = x \ 37028 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37029 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37030 new_path=`$CYGPATH -u "$path"` 37031 fi 37032 if test "x$new_path" = x; then 37033 # Oops. Which didn't find the executable. 37034 # The splitting of arguments from the executable at a space might have been incorrect, 37035 # since paths with space are more likely in Windows. Give it another try with the whole 37036 # argument. 37037 path="$complete" 37038 arguments="EOL" 37039 new_path=`$CYGPATH -u "$path"` 37040 new_path=`$WHICH "$new_path" 2> /dev/null` 37041 # bat and cmd files are not always considered executable in cygwin causing which 37042 # to not find them 37043 if test "x$new_path" = x \ 37044 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37045 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37046 new_path=`$CYGPATH -u "$path"` 37047 fi 37048 if test "x$new_path" = x; then 37049 # It's still not found. Now this is an unrecoverable error. 37050 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37051 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37052 has_space=`$ECHO "$complete" | $GREP " "` 37053 if test "x$has_space" != x; then 37054 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37055 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37056 fi 37057 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37058 fi 37059 fi 37060 37061 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37062 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37063 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37064 # "foo.exe" is OK but "foo" is an error. 37065 # 37066 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37067 # It is also a way to make sure we got the proper file name for the real test later on. 37068 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37069 if test "x$test_shortpath" = x; then 37070 # Short path failed, file does not exist as specified. 37071 # Try adding .exe or .cmd 37072 if test -f "${new_path}.exe"; then 37073 input_to_shortpath="${new_path}.exe" 37074 elif test -f "${new_path}.cmd"; then 37075 input_to_shortpath="${new_path}.cmd" 37076 else 37077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37078 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37079 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37080 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37081 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37082 fi 37083 else 37084 input_to_shortpath="$new_path" 37085 fi 37086 37087 # Call helper function which possibly converts this using DOS-style short mode. 37088 # If so, the updated path is stored in $new_path. 37089 new_path="$input_to_shortpath" 37090 37091 input_path="$input_to_shortpath" 37092 # Check if we need to convert this using DOS-style short mode. If the path 37093 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37094 # take no chances and rewrite it. 37095 # Note: m4 eats our [], so we need to use [ and ] instead. 37096 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37097 if test "x$has_forbidden_chars" != x; then 37098 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37099 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37100 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37101 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37102 # Going to short mode and back again did indeed matter. Since short mode is 37103 # case insensitive, let's make it lowercase to improve readability. 37104 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37105 # Now convert it back to Unix-stile (cygpath) 37106 input_path=`$CYGPATH -u "$shortmode_path"` 37107 new_path="$input_path" 37108 fi 37109 fi 37110 37111 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37112 if test "x$test_cygdrive_prefix" = x; then 37113 # As a simple fix, exclude /usr/bin since it's not a real path. 37114 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37115 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37116 # a path prefixed by /cygdrive for fixpath to work. 37117 new_path="$CYGWIN_ROOT_PATH$input_path" 37118 fi 37119 fi 37120 37121 # remove trailing .exe if any 37122 new_path="${new_path/%.exe/}" 37123 37124 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37125 37126 # First separate the path from the arguments. This will split at the first 37127 # space. 37128 complete="$STRIP" 37129 path="${complete%% *}" 37130 tmp="$complete EOL" 37131 arguments="${tmp#* }" 37132 37133 # Input might be given as Windows format, start by converting to 37134 # unix format. 37135 new_path="$path" 37136 37137 windows_path="$new_path" 37138 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37139 unix_path=`$CYGPATH -u "$windows_path"` 37140 new_path="$unix_path" 37141 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37142 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37143 new_path="$unix_path" 37144 fi 37145 37146 37147 # Now try to locate executable using which 37148 new_path=`$WHICH "$new_path" 2> /dev/null` 37149 37150 if test "x$new_path" = x; then 37151 # Oops. Which didn't find the executable. 37152 # The splitting of arguments from the executable at a space might have been incorrect, 37153 # since paths with space are more likely in Windows. Give it another try with the whole 37154 # argument. 37155 path="$complete" 37156 arguments="EOL" 37157 new_path="$path" 37158 37159 windows_path="$new_path" 37160 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37161 unix_path=`$CYGPATH -u "$windows_path"` 37162 new_path="$unix_path" 37163 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37164 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37165 new_path="$unix_path" 37166 fi 37167 37168 37169 new_path=`$WHICH "$new_path" 2> /dev/null` 37170 # bat and cmd files are not always considered executable in MSYS causing which 37171 # to not find them 37172 if test "x$new_path" = x \ 37173 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37174 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37175 new_path="$path" 37176 37177 windows_path="$new_path" 37178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37179 unix_path=`$CYGPATH -u "$windows_path"` 37180 new_path="$unix_path" 37181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37183 new_path="$unix_path" 37184 fi 37185 37186 fi 37187 37188 if test "x$new_path" = x; then 37189 # It's still not found. Now this is an unrecoverable error. 37190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37191 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37192 has_space=`$ECHO "$complete" | $GREP " "` 37193 if test "x$has_space" != x; then 37194 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37195 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37196 fi 37197 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37198 fi 37199 fi 37200 37201 # Now new_path has a complete unix path to the binary 37202 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37203 # Keep paths in /bin as-is, but remove trailing .exe if any 37204 new_path="${new_path/%.exe/}" 37205 # Do not save /bin paths to all_fixpath_prefixes! 37206 else 37207 # Not in mixed or Windows style, start by that. 37208 new_path=`cmd //c echo $new_path` 37209 37210 input_path="$new_path" 37211 # Check if we need to convert this using DOS-style short mode. If the path 37212 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37213 # take no chances and rewrite it. 37214 # Note: m4 eats our [], so we need to use [ and ] instead. 37215 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37216 if test "x$has_forbidden_chars" != x; then 37217 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37218 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37219 fi 37220 37221 # Output is in $new_path 37222 37223 windows_path="$new_path" 37224 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37225 unix_path=`$CYGPATH -u "$windows_path"` 37226 new_path="$unix_path" 37227 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37228 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37229 new_path="$unix_path" 37230 fi 37231 37232 # remove trailing .exe if any 37233 new_path="${new_path/%.exe/}" 37234 37235 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37236 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37237 fi 37238 37239 else 37240 # We're on a unix platform. Hooray! :) 37241 # First separate the path from the arguments. This will split at the first 37242 # space. 37243 complete="$STRIP" 37244 path="${complete%% *}" 37245 tmp="$complete EOL" 37246 arguments="${tmp#* }" 37247 37248 # Cannot rely on the command "which" here since it doesn't always work. 37249 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37250 if test -z "$is_absolute_path"; then 37251 # Path to executable is not absolute. Find it. 37252 IFS_save="$IFS" 37253 IFS=: 37254 for p in $PATH; do 37255 if test -f "$p/$path" && test -x "$p/$path"; then 37256 new_path="$p/$path" 37257 break 37258 fi 37259 done 37260 IFS="$IFS_save" 37261 else 37262 # This is an absolute path, we can use it without further modifications. 37263 new_path="$path" 37264 fi 37265 37266 if test "x$new_path" = x; then 37267 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37268 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37269 has_space=`$ECHO "$complete" | $GREP " "` 37270 if test "x$has_space" != x; then 37271 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37272 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37273 fi 37274 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37275 fi 37276 fi 37277 37278 # Now join together the path and the arguments once again 37279 if test "x$arguments" != xEOL; then 37280 new_complete="$new_path ${arguments% *}" 37281 else 37282 new_complete="$new_path" 37283 fi 37284 37285 if test "x$complete" != "x$new_complete"; then 37286 STRIP="$new_complete" 37287 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37288 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37289 fi 37290 37291 37292 37293 # Publish this variable in the help. 37294 37295 37296 if test "x$NM" = x; then 37297 # The variable is not set by user, try to locate tool using the code snippet 37298 if test -n "$ac_tool_prefix"; then 37299 for ac_prog in nm 37300 do 37301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37302 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37304 $as_echo_n "checking for $ac_word... " >&6; } 37305 if ${ac_cv_prog_NM+:} false; then : 37306 $as_echo_n "(cached) " >&6 37307 else 37308 if test -n "$NM"; then 37309 ac_cv_prog_NM="$NM" # Let the user override the test. 37310 else 37311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37312 for as_dir in $PATH 37313 do 37314 IFS=$as_save_IFS 37315 test -z "$as_dir" && as_dir=. 37316 for ac_exec_ext in '' $ac_executable_extensions; do 37317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37318 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37320 break 2 37321 fi 37322 done 37323 done 37324 IFS=$as_save_IFS 37325 37326 fi 37327 fi 37328 NM=$ac_cv_prog_NM 37329 if test -n "$NM"; then 37330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37331 $as_echo "$NM" >&6; } 37332 else 37333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37334 $as_echo "no" >&6; } 37335 fi 37336 37337 37338 test -n "$NM" && break 37339 done 37340 fi 37341 if test -z "$NM"; then 37342 ac_ct_NM=$NM 37343 for ac_prog in nm 37344 do 37345 # Extract the first word of "$ac_prog", so it can be a program name with args. 37346 set dummy $ac_prog; ac_word=$2 37347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37348 $as_echo_n "checking for $ac_word... " >&6; } 37349 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37350 $as_echo_n "(cached) " >&6 37351 else 37352 if test -n "$ac_ct_NM"; then 37353 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37354 else 37355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37356 for as_dir in $PATH 37357 do 37358 IFS=$as_save_IFS 37359 test -z "$as_dir" && as_dir=. 37360 for ac_exec_ext in '' $ac_executable_extensions; do 37361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37362 ac_cv_prog_ac_ct_NM="$ac_prog" 37363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37364 break 2 37365 fi 37366 done 37367 done 37368 IFS=$as_save_IFS 37369 37370 fi 37371 fi 37372 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37373 if test -n "$ac_ct_NM"; then 37374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37375 $as_echo "$ac_ct_NM" >&6; } 37376 else 37377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37378 $as_echo "no" >&6; } 37379 fi 37380 37381 37382 test -n "$ac_ct_NM" && break 37383 done 37384 37385 if test "x$ac_ct_NM" = x; then 37386 NM="" 37387 else 37388 case $cross_compiling:$ac_tool_warned in 37389 yes:) 37390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37391 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37392 ac_tool_warned=yes ;; 37393 esac 37394 NM=$ac_ct_NM 37395 fi 37396 fi 37397 37398 else 37399 # The variable is set, but is it from the command line or the environment? 37400 37401 # Try to remove the string !NM! from our list. 37402 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37403 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37404 # If it failed, the variable was not from the command line. Ignore it, 37405 # but warn the user (except for BASH, which is always set by the calling BASH). 37406 if test "xNM" != xBASH; then 37407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37408 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37409 fi 37410 # Try to locate tool using the code snippet 37411 if test -n "$ac_tool_prefix"; then 37412 for ac_prog in nm 37413 do 37414 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37415 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37417 $as_echo_n "checking for $ac_word... " >&6; } 37418 if ${ac_cv_prog_NM+:} false; then : 37419 $as_echo_n "(cached) " >&6 37420 else 37421 if test -n "$NM"; then 37422 ac_cv_prog_NM="$NM" # Let the user override the test. 37423 else 37424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37425 for as_dir in $PATH 37426 do 37427 IFS=$as_save_IFS 37428 test -z "$as_dir" && as_dir=. 37429 for ac_exec_ext in '' $ac_executable_extensions; do 37430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37431 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37433 break 2 37434 fi 37435 done 37436 done 37437 IFS=$as_save_IFS 37438 37439 fi 37440 fi 37441 NM=$ac_cv_prog_NM 37442 if test -n "$NM"; then 37443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37444 $as_echo "$NM" >&6; } 37445 else 37446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37447 $as_echo "no" >&6; } 37448 fi 37449 37450 37451 test -n "$NM" && break 37452 done 37453 fi 37454 if test -z "$NM"; then 37455 ac_ct_NM=$NM 37456 for ac_prog in nm 37457 do 37458 # Extract the first word of "$ac_prog", so it can be a program name with args. 37459 set dummy $ac_prog; ac_word=$2 37460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37461 $as_echo_n "checking for $ac_word... " >&6; } 37462 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37463 $as_echo_n "(cached) " >&6 37464 else 37465 if test -n "$ac_ct_NM"; then 37466 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37467 else 37468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37469 for as_dir in $PATH 37470 do 37471 IFS=$as_save_IFS 37472 test -z "$as_dir" && as_dir=. 37473 for ac_exec_ext in '' $ac_executable_extensions; do 37474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37475 ac_cv_prog_ac_ct_NM="$ac_prog" 37476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37477 break 2 37478 fi 37479 done 37480 done 37481 IFS=$as_save_IFS 37482 37483 fi 37484 fi 37485 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37486 if test -n "$ac_ct_NM"; then 37487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37488 $as_echo "$ac_ct_NM" >&6; } 37489 else 37490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37491 $as_echo "no" >&6; } 37492 fi 37493 37494 37495 test -n "$ac_ct_NM" && break 37496 done 37497 37498 if test "x$ac_ct_NM" = x; then 37499 NM="" 37500 else 37501 case $cross_compiling:$ac_tool_warned in 37502 yes:) 37503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37504 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37505 ac_tool_warned=yes ;; 37506 esac 37507 NM=$ac_ct_NM 37508 fi 37509 fi 37510 37511 else 37512 # If it succeeded, then it was overridden by the user. We will use it 37513 # for the tool. 37514 37515 # First remove it from the list of overridden variables, so we can test 37516 # for unknown variables in the end. 37517 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37518 37519 # Check if the provided tool contains a complete path. 37520 tool_specified="$NM" 37521 tool_basename="${tool_specified##*/}" 37522 if test "x$tool_basename" = "x$tool_specified"; then 37523 # A command without a complete path is provided, search $PATH. 37524 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37525 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37526 # Extract the first word of "$tool_basename", so it can be a program name with args. 37527 set dummy $tool_basename; ac_word=$2 37528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37529 $as_echo_n "checking for $ac_word... " >&6; } 37530 if ${ac_cv_path_NM+:} false; then : 37531 $as_echo_n "(cached) " >&6 37532 else 37533 case $NM in 37534 [\\/]* | ?:[\\/]*) 37535 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37536 ;; 37537 *) 37538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37539 for as_dir in $PATH 37540 do 37541 IFS=$as_save_IFS 37542 test -z "$as_dir" && as_dir=. 37543 for ac_exec_ext in '' $ac_executable_extensions; do 37544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37545 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37546 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37547 break 2 37548 fi 37549 done 37550 done 37551 IFS=$as_save_IFS 37552 37553 ;; 37554 esac 37555 fi 37556 NM=$ac_cv_path_NM 37557 if test -n "$NM"; then 37558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37559 $as_echo "$NM" >&6; } 37560 else 37561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37562 $as_echo "no" >&6; } 37563 fi 37564 37565 37566 if test "x$NM" = x; then 37567 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37568 fi 37569 else 37570 # Otherwise we believe it is a complete path. Use it as it is. 37571 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37572 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37574 $as_echo_n "checking for NM... " >&6; } 37575 if test ! -x "$tool_specified"; then 37576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37577 $as_echo "not found" >&6; } 37578 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37579 fi 37580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37581 $as_echo "$tool_specified" >&6; } 37582 fi 37583 fi 37584 fi 37585 37586 37587 37588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37589 37590 # First separate the path from the arguments. This will split at the first 37591 # space. 37592 complete="$NM" 37593 path="${complete%% *}" 37594 tmp="$complete EOL" 37595 arguments="${tmp#* }" 37596 37597 # Input might be given as Windows format, start by converting to 37598 # unix format. 37599 new_path=`$CYGPATH -u "$path"` 37600 37601 # Now try to locate executable using which 37602 new_path=`$WHICH "$new_path" 2> /dev/null` 37603 # bat and cmd files are not always considered executable in cygwin causing which 37604 # to not find them 37605 if test "x$new_path" = x \ 37606 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37607 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37608 new_path=`$CYGPATH -u "$path"` 37609 fi 37610 if test "x$new_path" = x; then 37611 # Oops. Which didn't find the executable. 37612 # The splitting of arguments from the executable at a space might have been incorrect, 37613 # since paths with space are more likely in Windows. Give it another try with the whole 37614 # argument. 37615 path="$complete" 37616 arguments="EOL" 37617 new_path=`$CYGPATH -u "$path"` 37618 new_path=`$WHICH "$new_path" 2> /dev/null` 37619 # bat and cmd files are not always considered executable in cygwin causing which 37620 # to not find them 37621 if test "x$new_path" = x \ 37622 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37623 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37624 new_path=`$CYGPATH -u "$path"` 37625 fi 37626 if test "x$new_path" = x; then 37627 # It's still not found. Now this is an unrecoverable error. 37628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37629 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37630 has_space=`$ECHO "$complete" | $GREP " "` 37631 if test "x$has_space" != x; then 37632 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37633 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37634 fi 37635 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37636 fi 37637 fi 37638 37639 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37640 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37641 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37642 # "foo.exe" is OK but "foo" is an error. 37643 # 37644 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37645 # It is also a way to make sure we got the proper file name for the real test later on. 37646 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37647 if test "x$test_shortpath" = x; then 37648 # Short path failed, file does not exist as specified. 37649 # Try adding .exe or .cmd 37650 if test -f "${new_path}.exe"; then 37651 input_to_shortpath="${new_path}.exe" 37652 elif test -f "${new_path}.cmd"; then 37653 input_to_shortpath="${new_path}.cmd" 37654 else 37655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37656 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37657 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37658 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37659 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37660 fi 37661 else 37662 input_to_shortpath="$new_path" 37663 fi 37664 37665 # Call helper function which possibly converts this using DOS-style short mode. 37666 # If so, the updated path is stored in $new_path. 37667 new_path="$input_to_shortpath" 37668 37669 input_path="$input_to_shortpath" 37670 # Check if we need to convert this using DOS-style short mode. If the path 37671 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37672 # take no chances and rewrite it. 37673 # Note: m4 eats our [], so we need to use [ and ] instead. 37674 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37675 if test "x$has_forbidden_chars" != x; then 37676 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37677 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37678 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37679 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37680 # Going to short mode and back again did indeed matter. Since short mode is 37681 # case insensitive, let's make it lowercase to improve readability. 37682 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37683 # Now convert it back to Unix-stile (cygpath) 37684 input_path=`$CYGPATH -u "$shortmode_path"` 37685 new_path="$input_path" 37686 fi 37687 fi 37688 37689 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37690 if test "x$test_cygdrive_prefix" = x; then 37691 # As a simple fix, exclude /usr/bin since it's not a real path. 37692 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37693 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37694 # a path prefixed by /cygdrive for fixpath to work. 37695 new_path="$CYGWIN_ROOT_PATH$input_path" 37696 fi 37697 fi 37698 37699 # remove trailing .exe if any 37700 new_path="${new_path/%.exe/}" 37701 37702 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37703 37704 # First separate the path from the arguments. This will split at the first 37705 # space. 37706 complete="$NM" 37707 path="${complete%% *}" 37708 tmp="$complete EOL" 37709 arguments="${tmp#* }" 37710 37711 # Input might be given as Windows format, start by converting to 37712 # unix format. 37713 new_path="$path" 37714 37715 windows_path="$new_path" 37716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37717 unix_path=`$CYGPATH -u "$windows_path"` 37718 new_path="$unix_path" 37719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37721 new_path="$unix_path" 37722 fi 37723 37724 37725 # Now try to locate executable using which 37726 new_path=`$WHICH "$new_path" 2> /dev/null` 37727 37728 if test "x$new_path" = x; then 37729 # Oops. Which didn't find the executable. 37730 # The splitting of arguments from the executable at a space might have been incorrect, 37731 # since paths with space are more likely in Windows. Give it another try with the whole 37732 # argument. 37733 path="$complete" 37734 arguments="EOL" 37735 new_path="$path" 37736 37737 windows_path="$new_path" 37738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37739 unix_path=`$CYGPATH -u "$windows_path"` 37740 new_path="$unix_path" 37741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37743 new_path="$unix_path" 37744 fi 37745 37746 37747 new_path=`$WHICH "$new_path" 2> /dev/null` 37748 # bat and cmd files are not always considered executable in MSYS causing which 37749 # to not find them 37750 if test "x$new_path" = x \ 37751 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37752 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37753 new_path="$path" 37754 37755 windows_path="$new_path" 37756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37757 unix_path=`$CYGPATH -u "$windows_path"` 37758 new_path="$unix_path" 37759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37760 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37761 new_path="$unix_path" 37762 fi 37763 37764 fi 37765 37766 if test "x$new_path" = x; then 37767 # It's still not found. Now this is an unrecoverable error. 37768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37769 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37770 has_space=`$ECHO "$complete" | $GREP " "` 37771 if test "x$has_space" != x; then 37772 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37773 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37774 fi 37775 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37776 fi 37777 fi 37778 37779 # Now new_path has a complete unix path to the binary 37780 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37781 # Keep paths in /bin as-is, but remove trailing .exe if any 37782 new_path="${new_path/%.exe/}" 37783 # Do not save /bin paths to all_fixpath_prefixes! 37784 else 37785 # Not in mixed or Windows style, start by that. 37786 new_path=`cmd //c echo $new_path` 37787 37788 input_path="$new_path" 37789 # Check if we need to convert this using DOS-style short mode. If the path 37790 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37791 # take no chances and rewrite it. 37792 # Note: m4 eats our [], so we need to use [ and ] instead. 37793 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37794 if test "x$has_forbidden_chars" != x; then 37795 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37796 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37797 fi 37798 37799 # Output is in $new_path 37800 37801 windows_path="$new_path" 37802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37803 unix_path=`$CYGPATH -u "$windows_path"` 37804 new_path="$unix_path" 37805 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37806 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37807 new_path="$unix_path" 37808 fi 37809 37810 # remove trailing .exe if any 37811 new_path="${new_path/%.exe/}" 37812 37813 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37814 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37815 fi 37816 37817 else 37818 # We're on a unix platform. Hooray! :) 37819 # First separate the path from the arguments. This will split at the first 37820 # space. 37821 complete="$NM" 37822 path="${complete%% *}" 37823 tmp="$complete EOL" 37824 arguments="${tmp#* }" 37825 37826 # Cannot rely on the command "which" here since it doesn't always work. 37827 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37828 if test -z "$is_absolute_path"; then 37829 # Path to executable is not absolute. Find it. 37830 IFS_save="$IFS" 37831 IFS=: 37832 for p in $PATH; do 37833 if test -f "$p/$path" && test -x "$p/$path"; then 37834 new_path="$p/$path" 37835 break 37836 fi 37837 done 37838 IFS="$IFS_save" 37839 else 37840 # This is an absolute path, we can use it without further modifications. 37841 new_path="$path" 37842 fi 37843 37844 if test "x$new_path" = x; then 37845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37846 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37847 has_space=`$ECHO "$complete" | $GREP " "` 37848 if test "x$has_space" != x; then 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37850 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37851 fi 37852 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37853 fi 37854 fi 37855 37856 # Now join together the path and the arguments once again 37857 if test "x$arguments" != xEOL; then 37858 new_complete="$new_path ${arguments% *}" 37859 else 37860 new_complete="$new_path" 37861 fi 37862 37863 if test "x$complete" != "x$new_complete"; then 37864 NM="$new_complete" 37865 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37866 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37867 fi 37868 37869 GNM="$NM" 37870 37871 fi 37872 37873 # objcopy is used for moving debug symbols to separate files when 37874 # full debug symbols are enabled. 37875 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37876 37877 37878 # Publish this variable in the help. 37879 37880 37881 if test "x$OBJCOPY" = x; then 37882 # The variable is not set by user, try to locate tool using the code snippet 37883 if test -n "$ac_tool_prefix"; then 37884 for ac_prog in gobjcopy objcopy 37885 do 37886 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37887 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37889 $as_echo_n "checking for $ac_word... " >&6; } 37890 if ${ac_cv_prog_OBJCOPY+:} false; then : 37891 $as_echo_n "(cached) " >&6 37892 else 37893 if test -n "$OBJCOPY"; then 37894 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37895 else 37896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37897 for as_dir in $PATH 37898 do 37899 IFS=$as_save_IFS 37900 test -z "$as_dir" && as_dir=. 37901 for ac_exec_ext in '' $ac_executable_extensions; do 37902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37903 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37905 break 2 37906 fi 37907 done 37908 done 37909 IFS=$as_save_IFS 37910 37911 fi 37912 fi 37913 OBJCOPY=$ac_cv_prog_OBJCOPY 37914 if test -n "$OBJCOPY"; then 37915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37916 $as_echo "$OBJCOPY" >&6; } 37917 else 37918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37919 $as_echo "no" >&6; } 37920 fi 37921 37922 37923 test -n "$OBJCOPY" && break 37924 done 37925 fi 37926 if test -z "$OBJCOPY"; then 37927 ac_ct_OBJCOPY=$OBJCOPY 37928 for ac_prog in gobjcopy objcopy 37929 do 37930 # Extract the first word of "$ac_prog", so it can be a program name with args. 37931 set dummy $ac_prog; ac_word=$2 37932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37933 $as_echo_n "checking for $ac_word... " >&6; } 37934 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37935 $as_echo_n "(cached) " >&6 37936 else 37937 if test -n "$ac_ct_OBJCOPY"; then 37938 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37939 else 37940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37941 for as_dir in $PATH 37942 do 37943 IFS=$as_save_IFS 37944 test -z "$as_dir" && as_dir=. 37945 for ac_exec_ext in '' $ac_executable_extensions; do 37946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37947 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37949 break 2 37950 fi 37951 done 37952 done 37953 IFS=$as_save_IFS 37954 37955 fi 37956 fi 37957 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37958 if test -n "$ac_ct_OBJCOPY"; then 37959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37960 $as_echo "$ac_ct_OBJCOPY" >&6; } 37961 else 37962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37963 $as_echo "no" >&6; } 37964 fi 37965 37966 37967 test -n "$ac_ct_OBJCOPY" && break 37968 done 37969 37970 if test "x$ac_ct_OBJCOPY" = x; then 37971 OBJCOPY="" 37972 else 37973 case $cross_compiling:$ac_tool_warned in 37974 yes:) 37975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37977 ac_tool_warned=yes ;; 37978 esac 37979 OBJCOPY=$ac_ct_OBJCOPY 37980 fi 37981 fi 37982 37983 else 37984 # The variable is set, but is it from the command line or the environment? 37985 37986 # Try to remove the string !OBJCOPY! from our list. 37987 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37988 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37989 # If it failed, the variable was not from the command line. Ignore it, 37990 # but warn the user (except for BASH, which is always set by the calling BASH). 37991 if test "xOBJCOPY" != xBASH; then 37992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37993 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37994 fi 37995 # Try to locate tool using the code snippet 37996 if test -n "$ac_tool_prefix"; then 37997 for ac_prog in gobjcopy objcopy 37998 do 37999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38002 $as_echo_n "checking for $ac_word... " >&6; } 38003 if ${ac_cv_prog_OBJCOPY+:} false; then : 38004 $as_echo_n "(cached) " >&6 38005 else 38006 if test -n "$OBJCOPY"; then 38007 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 38008 else 38009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38010 for as_dir in $PATH 38011 do 38012 IFS=$as_save_IFS 38013 test -z "$as_dir" && as_dir=. 38014 for ac_exec_ext in '' $ac_executable_extensions; do 38015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38016 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 38017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38018 break 2 38019 fi 38020 done 38021 done 38022 IFS=$as_save_IFS 38023 38024 fi 38025 fi 38026 OBJCOPY=$ac_cv_prog_OBJCOPY 38027 if test -n "$OBJCOPY"; then 38028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38029 $as_echo "$OBJCOPY" >&6; } 38030 else 38031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38032 $as_echo "no" >&6; } 38033 fi 38034 38035 38036 test -n "$OBJCOPY" && break 38037 done 38038 fi 38039 if test -z "$OBJCOPY"; then 38040 ac_ct_OBJCOPY=$OBJCOPY 38041 for ac_prog in gobjcopy objcopy 38042 do 38043 # Extract the first word of "$ac_prog", so it can be a program name with args. 38044 set dummy $ac_prog; ac_word=$2 38045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38046 $as_echo_n "checking for $ac_word... " >&6; } 38047 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 38048 $as_echo_n "(cached) " >&6 38049 else 38050 if test -n "$ac_ct_OBJCOPY"; then 38051 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 38052 else 38053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38054 for as_dir in $PATH 38055 do 38056 IFS=$as_save_IFS 38057 test -z "$as_dir" && as_dir=. 38058 for ac_exec_ext in '' $ac_executable_extensions; do 38059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38060 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 38061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38062 break 2 38063 fi 38064 done 38065 done 38066 IFS=$as_save_IFS 38067 38068 fi 38069 fi 38070 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 38071 if test -n "$ac_ct_OBJCOPY"; then 38072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 38073 $as_echo "$ac_ct_OBJCOPY" >&6; } 38074 else 38075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38076 $as_echo "no" >&6; } 38077 fi 38078 38079 38080 test -n "$ac_ct_OBJCOPY" && break 38081 done 38082 38083 if test "x$ac_ct_OBJCOPY" = x; then 38084 OBJCOPY="" 38085 else 38086 case $cross_compiling:$ac_tool_warned in 38087 yes:) 38088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38089 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38090 ac_tool_warned=yes ;; 38091 esac 38092 OBJCOPY=$ac_ct_OBJCOPY 38093 fi 38094 fi 38095 38096 else 38097 # If it succeeded, then it was overridden by the user. We will use it 38098 # for the tool. 38099 38100 # First remove it from the list of overridden variables, so we can test 38101 # for unknown variables in the end. 38102 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38103 38104 # Check if the provided tool contains a complete path. 38105 tool_specified="$OBJCOPY" 38106 tool_basename="${tool_specified##*/}" 38107 if test "x$tool_basename" = "x$tool_specified"; then 38108 # A command without a complete path is provided, search $PATH. 38109 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 38110 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 38111 # Extract the first word of "$tool_basename", so it can be a program name with args. 38112 set dummy $tool_basename; ac_word=$2 38113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38114 $as_echo_n "checking for $ac_word... " >&6; } 38115 if ${ac_cv_path_OBJCOPY+:} false; then : 38116 $as_echo_n "(cached) " >&6 38117 else 38118 case $OBJCOPY in 38119 [\\/]* | ?:[\\/]*) 38120 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 38121 ;; 38122 *) 38123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38124 for as_dir in $PATH 38125 do 38126 IFS=$as_save_IFS 38127 test -z "$as_dir" && as_dir=. 38128 for ac_exec_ext in '' $ac_executable_extensions; do 38129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38130 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 38131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38132 break 2 38133 fi 38134 done 38135 done 38136 IFS=$as_save_IFS 38137 38138 ;; 38139 esac 38140 fi 38141 OBJCOPY=$ac_cv_path_OBJCOPY 38142 if test -n "$OBJCOPY"; then 38143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 38144 $as_echo "$OBJCOPY" >&6; } 38145 else 38146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38147 $as_echo "no" >&6; } 38148 fi 38149 38150 38151 if test "x$OBJCOPY" = x; then 38152 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38153 fi 38154 else 38155 # Otherwise we believe it is a complete path. Use it as it is. 38156 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 38157 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 38158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 38159 $as_echo_n "checking for OBJCOPY... " >&6; } 38160 if test ! -x "$tool_specified"; then 38161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38162 $as_echo "not found" >&6; } 38163 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 38164 fi 38165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38166 $as_echo "$tool_specified" >&6; } 38167 fi 38168 fi 38169 fi 38170 38171 38172 # Only call fixup if objcopy was found. 38173 if test -n "$OBJCOPY"; then 38174 38175 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38176 38177 # First separate the path from the arguments. This will split at the first 38178 # space. 38179 complete="$OBJCOPY" 38180 path="${complete%% *}" 38181 tmp="$complete EOL" 38182 arguments="${tmp#* }" 38183 38184 # Input might be given as Windows format, start by converting to 38185 # unix format. 38186 new_path=`$CYGPATH -u "$path"` 38187 38188 # Now try to locate executable using which 38189 new_path=`$WHICH "$new_path" 2> /dev/null` 38190 # bat and cmd files are not always considered executable in cygwin causing which 38191 # to not find them 38192 if test "x$new_path" = x \ 38193 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38194 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38195 new_path=`$CYGPATH -u "$path"` 38196 fi 38197 if test "x$new_path" = x; then 38198 # Oops. Which didn't find the executable. 38199 # The splitting of arguments from the executable at a space might have been incorrect, 38200 # since paths with space are more likely in Windows. Give it another try with the whole 38201 # argument. 38202 path="$complete" 38203 arguments="EOL" 38204 new_path=`$CYGPATH -u "$path"` 38205 new_path=`$WHICH "$new_path" 2> /dev/null` 38206 # bat and cmd files are not always considered executable in cygwin causing which 38207 # to not find them 38208 if test "x$new_path" = x \ 38209 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38210 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38211 new_path=`$CYGPATH -u "$path"` 38212 fi 38213 if test "x$new_path" = x; then 38214 # It's still not found. Now this is an unrecoverable error. 38215 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38216 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38217 has_space=`$ECHO "$complete" | $GREP " "` 38218 if test "x$has_space" != x; then 38219 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38220 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38221 fi 38222 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38223 fi 38224 fi 38225 38226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38229 # "foo.exe" is OK but "foo" is an error. 38230 # 38231 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38232 # It is also a way to make sure we got the proper file name for the real test later on. 38233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38234 if test "x$test_shortpath" = x; then 38235 # Short path failed, file does not exist as specified. 38236 # Try adding .exe or .cmd 38237 if test -f "${new_path}.exe"; then 38238 input_to_shortpath="${new_path}.exe" 38239 elif test -f "${new_path}.cmd"; then 38240 input_to_shortpath="${new_path}.cmd" 38241 else 38242 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38243 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38244 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38245 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38246 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38247 fi 38248 else 38249 input_to_shortpath="$new_path" 38250 fi 38251 38252 # Call helper function which possibly converts this using DOS-style short mode. 38253 # If so, the updated path is stored in $new_path. 38254 new_path="$input_to_shortpath" 38255 38256 input_path="$input_to_shortpath" 38257 # Check if we need to convert this using DOS-style short mode. If the path 38258 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38259 # take no chances and rewrite it. 38260 # Note: m4 eats our [], so we need to use [ and ] instead. 38261 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38262 if test "x$has_forbidden_chars" != x; then 38263 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38264 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38265 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38266 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38267 # Going to short mode and back again did indeed matter. Since short mode is 38268 # case insensitive, let's make it lowercase to improve readability. 38269 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38270 # Now convert it back to Unix-stile (cygpath) 38271 input_path=`$CYGPATH -u "$shortmode_path"` 38272 new_path="$input_path" 38273 fi 38274 fi 38275 38276 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38277 if test "x$test_cygdrive_prefix" = x; then 38278 # As a simple fix, exclude /usr/bin since it's not a real path. 38279 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38280 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38281 # a path prefixed by /cygdrive for fixpath to work. 38282 new_path="$CYGWIN_ROOT_PATH$input_path" 38283 fi 38284 fi 38285 38286 # remove trailing .exe if any 38287 new_path="${new_path/%.exe/}" 38288 38289 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38290 38291 # First separate the path from the arguments. This will split at the first 38292 # space. 38293 complete="$OBJCOPY" 38294 path="${complete%% *}" 38295 tmp="$complete EOL" 38296 arguments="${tmp#* }" 38297 38298 # Input might be given as Windows format, start by converting to 38299 # unix format. 38300 new_path="$path" 38301 38302 windows_path="$new_path" 38303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38304 unix_path=`$CYGPATH -u "$windows_path"` 38305 new_path="$unix_path" 38306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38308 new_path="$unix_path" 38309 fi 38310 38311 38312 # Now try to locate executable using which 38313 new_path=`$WHICH "$new_path" 2> /dev/null` 38314 38315 if test "x$new_path" = x; then 38316 # Oops. Which didn't find the executable. 38317 # The splitting of arguments from the executable at a space might have been incorrect, 38318 # since paths with space are more likely in Windows. Give it another try with the whole 38319 # argument. 38320 path="$complete" 38321 arguments="EOL" 38322 new_path="$path" 38323 38324 windows_path="$new_path" 38325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38326 unix_path=`$CYGPATH -u "$windows_path"` 38327 new_path="$unix_path" 38328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38330 new_path="$unix_path" 38331 fi 38332 38333 38334 new_path=`$WHICH "$new_path" 2> /dev/null` 38335 # bat and cmd files are not always considered executable in MSYS causing which 38336 # to not find them 38337 if test "x$new_path" = x \ 38338 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38339 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38340 new_path="$path" 38341 38342 windows_path="$new_path" 38343 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38344 unix_path=`$CYGPATH -u "$windows_path"` 38345 new_path="$unix_path" 38346 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38347 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38348 new_path="$unix_path" 38349 fi 38350 38351 fi 38352 38353 if test "x$new_path" = x; then 38354 # It's still not found. Now this is an unrecoverable error. 38355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38356 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38357 has_space=`$ECHO "$complete" | $GREP " "` 38358 if test "x$has_space" != x; then 38359 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38360 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38361 fi 38362 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38363 fi 38364 fi 38365 38366 # Now new_path has a complete unix path to the binary 38367 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38368 # Keep paths in /bin as-is, but remove trailing .exe if any 38369 new_path="${new_path/%.exe/}" 38370 # Do not save /bin paths to all_fixpath_prefixes! 38371 else 38372 # Not in mixed or Windows style, start by that. 38373 new_path=`cmd //c echo $new_path` 38374 38375 input_path="$new_path" 38376 # Check if we need to convert this using DOS-style short mode. If the path 38377 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38378 # take no chances and rewrite it. 38379 # Note: m4 eats our [], so we need to use [ and ] instead. 38380 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38381 if test "x$has_forbidden_chars" != x; then 38382 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38383 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38384 fi 38385 38386 # Output is in $new_path 38387 38388 windows_path="$new_path" 38389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38390 unix_path=`$CYGPATH -u "$windows_path"` 38391 new_path="$unix_path" 38392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38394 new_path="$unix_path" 38395 fi 38396 38397 # remove trailing .exe if any 38398 new_path="${new_path/%.exe/}" 38399 38400 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38401 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38402 fi 38403 38404 else 38405 # We're on a unix platform. Hooray! :) 38406 # First separate the path from the arguments. This will split at the first 38407 # space. 38408 complete="$OBJCOPY" 38409 path="${complete%% *}" 38410 tmp="$complete EOL" 38411 arguments="${tmp#* }" 38412 38413 # Cannot rely on the command "which" here since it doesn't always work. 38414 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38415 if test -z "$is_absolute_path"; then 38416 # Path to executable is not absolute. Find it. 38417 IFS_save="$IFS" 38418 IFS=: 38419 for p in $PATH; do 38420 if test -f "$p/$path" && test -x "$p/$path"; then 38421 new_path="$p/$path" 38422 break 38423 fi 38424 done 38425 IFS="$IFS_save" 38426 else 38427 # This is an absolute path, we can use it without further modifications. 38428 new_path="$path" 38429 fi 38430 38431 if test "x$new_path" = x; then 38432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38433 $as_echo "$as_me: The path of OBJCOPY, 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}: This might be caused by spaces in the path, which is not allowed." >&5 38437 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38438 fi 38439 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38440 fi 38441 fi 38442 38443 # Now join together the path and the arguments once again 38444 if test "x$arguments" != xEOL; then 38445 new_complete="$new_path ${arguments% *}" 38446 else 38447 new_complete="$new_path" 38448 fi 38449 38450 if test "x$complete" != "x$new_complete"; then 38451 OBJCOPY="$new_complete" 38452 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38453 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38454 fi 38455 38456 fi 38457 fi 38458 38459 38460 38461 # Publish this variable in the help. 38462 38463 38464 if test "x$OBJDUMP" = x; then 38465 # The variable is not set by user, try to locate tool using the code snippet 38466 if test -n "$ac_tool_prefix"; then 38467 for ac_prog in gobjdump objdump 38468 do 38469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38472 $as_echo_n "checking for $ac_word... " >&6; } 38473 if ${ac_cv_prog_OBJDUMP+:} false; then : 38474 $as_echo_n "(cached) " >&6 38475 else 38476 if test -n "$OBJDUMP"; then 38477 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38478 else 38479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38480 for as_dir in $PATH 38481 do 38482 IFS=$as_save_IFS 38483 test -z "$as_dir" && as_dir=. 38484 for ac_exec_ext in '' $ac_executable_extensions; do 38485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38486 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38488 break 2 38489 fi 38490 done 38491 done 38492 IFS=$as_save_IFS 38493 38494 fi 38495 fi 38496 OBJDUMP=$ac_cv_prog_OBJDUMP 38497 if test -n "$OBJDUMP"; then 38498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38499 $as_echo "$OBJDUMP" >&6; } 38500 else 38501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38502 $as_echo "no" >&6; } 38503 fi 38504 38505 38506 test -n "$OBJDUMP" && break 38507 done 38508 fi 38509 if test -z "$OBJDUMP"; then 38510 ac_ct_OBJDUMP=$OBJDUMP 38511 for ac_prog in gobjdump objdump 38512 do 38513 # Extract the first word of "$ac_prog", so it can be a program name with args. 38514 set dummy $ac_prog; ac_word=$2 38515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38516 $as_echo_n "checking for $ac_word... " >&6; } 38517 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38518 $as_echo_n "(cached) " >&6 38519 else 38520 if test -n "$ac_ct_OBJDUMP"; then 38521 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38522 else 38523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38524 for as_dir in $PATH 38525 do 38526 IFS=$as_save_IFS 38527 test -z "$as_dir" && as_dir=. 38528 for ac_exec_ext in '' $ac_executable_extensions; do 38529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38530 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38532 break 2 38533 fi 38534 done 38535 done 38536 IFS=$as_save_IFS 38537 38538 fi 38539 fi 38540 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38541 if test -n "$ac_ct_OBJDUMP"; then 38542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38543 $as_echo "$ac_ct_OBJDUMP" >&6; } 38544 else 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38546 $as_echo "no" >&6; } 38547 fi 38548 38549 38550 test -n "$ac_ct_OBJDUMP" && break 38551 done 38552 38553 if test "x$ac_ct_OBJDUMP" = x; then 38554 OBJDUMP="" 38555 else 38556 case $cross_compiling:$ac_tool_warned in 38557 yes:) 38558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38560 ac_tool_warned=yes ;; 38561 esac 38562 OBJDUMP=$ac_ct_OBJDUMP 38563 fi 38564 fi 38565 38566 else 38567 # The variable is set, but is it from the command line or the environment? 38568 38569 # Try to remove the string !OBJDUMP! from our list. 38570 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38571 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38572 # If it failed, the variable was not from the command line. Ignore it, 38573 # but warn the user (except for BASH, which is always set by the calling BASH). 38574 if test "xOBJDUMP" != xBASH; then 38575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38576 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38577 fi 38578 # Try to locate tool using the code snippet 38579 if test -n "$ac_tool_prefix"; then 38580 for ac_prog in gobjdump objdump 38581 do 38582 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38583 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38585 $as_echo_n "checking for $ac_word... " >&6; } 38586 if ${ac_cv_prog_OBJDUMP+:} false; then : 38587 $as_echo_n "(cached) " >&6 38588 else 38589 if test -n "$OBJDUMP"; then 38590 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38591 else 38592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38593 for as_dir in $PATH 38594 do 38595 IFS=$as_save_IFS 38596 test -z "$as_dir" && as_dir=. 38597 for ac_exec_ext in '' $ac_executable_extensions; do 38598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38599 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38601 break 2 38602 fi 38603 done 38604 done 38605 IFS=$as_save_IFS 38606 38607 fi 38608 fi 38609 OBJDUMP=$ac_cv_prog_OBJDUMP 38610 if test -n "$OBJDUMP"; then 38611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38612 $as_echo "$OBJDUMP" >&6; } 38613 else 38614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38615 $as_echo "no" >&6; } 38616 fi 38617 38618 38619 test -n "$OBJDUMP" && break 38620 done 38621 fi 38622 if test -z "$OBJDUMP"; then 38623 ac_ct_OBJDUMP=$OBJDUMP 38624 for ac_prog in gobjdump objdump 38625 do 38626 # Extract the first word of "$ac_prog", so it can be a program name with args. 38627 set dummy $ac_prog; ac_word=$2 38628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38629 $as_echo_n "checking for $ac_word... " >&6; } 38630 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38631 $as_echo_n "(cached) " >&6 38632 else 38633 if test -n "$ac_ct_OBJDUMP"; then 38634 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38635 else 38636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38637 for as_dir in $PATH 38638 do 38639 IFS=$as_save_IFS 38640 test -z "$as_dir" && as_dir=. 38641 for ac_exec_ext in '' $ac_executable_extensions; do 38642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38643 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38645 break 2 38646 fi 38647 done 38648 done 38649 IFS=$as_save_IFS 38650 38651 fi 38652 fi 38653 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38654 if test -n "$ac_ct_OBJDUMP"; then 38655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38656 $as_echo "$ac_ct_OBJDUMP" >&6; } 38657 else 38658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38659 $as_echo "no" >&6; } 38660 fi 38661 38662 38663 test -n "$ac_ct_OBJDUMP" && break 38664 done 38665 38666 if test "x$ac_ct_OBJDUMP" = x; then 38667 OBJDUMP="" 38668 else 38669 case $cross_compiling:$ac_tool_warned in 38670 yes:) 38671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38673 ac_tool_warned=yes ;; 38674 esac 38675 OBJDUMP=$ac_ct_OBJDUMP 38676 fi 38677 fi 38678 38679 else 38680 # If it succeeded, then it was overridden by the user. We will use it 38681 # for the tool. 38682 38683 # First remove it from the list of overridden variables, so we can test 38684 # for unknown variables in the end. 38685 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38686 38687 # Check if the provided tool contains a complete path. 38688 tool_specified="$OBJDUMP" 38689 tool_basename="${tool_specified##*/}" 38690 if test "x$tool_basename" = "x$tool_specified"; then 38691 # A command without a complete path is provided, search $PATH. 38692 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38693 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38694 # Extract the first word of "$tool_basename", so it can be a program name with args. 38695 set dummy $tool_basename; ac_word=$2 38696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38697 $as_echo_n "checking for $ac_word... " >&6; } 38698 if ${ac_cv_path_OBJDUMP+:} false; then : 38699 $as_echo_n "(cached) " >&6 38700 else 38701 case $OBJDUMP in 38702 [\\/]* | ?:[\\/]*) 38703 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38704 ;; 38705 *) 38706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38707 for as_dir in $PATH 38708 do 38709 IFS=$as_save_IFS 38710 test -z "$as_dir" && as_dir=. 38711 for ac_exec_ext in '' $ac_executable_extensions; do 38712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38713 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38715 break 2 38716 fi 38717 done 38718 done 38719 IFS=$as_save_IFS 38720 38721 ;; 38722 esac 38723 fi 38724 OBJDUMP=$ac_cv_path_OBJDUMP 38725 if test -n "$OBJDUMP"; then 38726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38727 $as_echo "$OBJDUMP" >&6; } 38728 else 38729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38730 $as_echo "no" >&6; } 38731 fi 38732 38733 38734 if test "x$OBJDUMP" = x; then 38735 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38736 fi 38737 else 38738 # Otherwise we believe it is a complete path. Use it as it is. 38739 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38740 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38742 $as_echo_n "checking for OBJDUMP... " >&6; } 38743 if test ! -x "$tool_specified"; then 38744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38745 $as_echo "not found" >&6; } 38746 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38747 fi 38748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38749 $as_echo "$tool_specified" >&6; } 38750 fi 38751 fi 38752 fi 38753 38754 38755 if test "x$OBJDUMP" != x; then 38756 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38757 # bails if argument is missing. 38758 38759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38760 38761 # First separate the path from the arguments. This will split at the first 38762 # space. 38763 complete="$OBJDUMP" 38764 path="${complete%% *}" 38765 tmp="$complete EOL" 38766 arguments="${tmp#* }" 38767 38768 # Input might be given as Windows format, start by converting to 38769 # unix format. 38770 new_path=`$CYGPATH -u "$path"` 38771 38772 # Now try to locate executable using which 38773 new_path=`$WHICH "$new_path" 2> /dev/null` 38774 # bat and cmd files are not always considered executable in cygwin causing which 38775 # to not find them 38776 if test "x$new_path" = x \ 38777 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38778 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38779 new_path=`$CYGPATH -u "$path"` 38780 fi 38781 if test "x$new_path" = x; then 38782 # Oops. Which didn't find the executable. 38783 # The splitting of arguments from the executable at a space might have been incorrect, 38784 # since paths with space are more likely in Windows. Give it another try with the whole 38785 # argument. 38786 path="$complete" 38787 arguments="EOL" 38788 new_path=`$CYGPATH -u "$path"` 38789 new_path=`$WHICH "$new_path" 2> /dev/null` 38790 # bat and cmd files are not always considered executable in cygwin causing which 38791 # to not find them 38792 if test "x$new_path" = x \ 38793 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38794 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38795 new_path=`$CYGPATH -u "$path"` 38796 fi 38797 if test "x$new_path" = x; then 38798 # It's still not found. Now this is an unrecoverable error. 38799 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38800 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38801 has_space=`$ECHO "$complete" | $GREP " "` 38802 if test "x$has_space" != x; then 38803 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38804 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38805 fi 38806 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38807 fi 38808 fi 38809 38810 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38811 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38812 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38813 # "foo.exe" is OK but "foo" is an error. 38814 # 38815 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38816 # It is also a way to make sure we got the proper file name for the real test later on. 38817 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38818 if test "x$test_shortpath" = x; then 38819 # Short path failed, file does not exist as specified. 38820 # Try adding .exe or .cmd 38821 if test -f "${new_path}.exe"; then 38822 input_to_shortpath="${new_path}.exe" 38823 elif test -f "${new_path}.cmd"; then 38824 input_to_shortpath="${new_path}.cmd" 38825 else 38826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38827 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38828 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38829 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38830 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38831 fi 38832 else 38833 input_to_shortpath="$new_path" 38834 fi 38835 38836 # Call helper function which possibly converts this using DOS-style short mode. 38837 # If so, the updated path is stored in $new_path. 38838 new_path="$input_to_shortpath" 38839 38840 input_path="$input_to_shortpath" 38841 # Check if we need to convert this using DOS-style short mode. If the path 38842 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38843 # take no chances and rewrite it. 38844 # Note: m4 eats our [], so we need to use [ and ] instead. 38845 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38846 if test "x$has_forbidden_chars" != x; then 38847 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38848 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38849 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38850 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38851 # Going to short mode and back again did indeed matter. Since short mode is 38852 # case insensitive, let's make it lowercase to improve readability. 38853 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38854 # Now convert it back to Unix-stile (cygpath) 38855 input_path=`$CYGPATH -u "$shortmode_path"` 38856 new_path="$input_path" 38857 fi 38858 fi 38859 38860 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38861 if test "x$test_cygdrive_prefix" = x; then 38862 # As a simple fix, exclude /usr/bin since it's not a real path. 38863 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38864 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38865 # a path prefixed by /cygdrive for fixpath to work. 38866 new_path="$CYGWIN_ROOT_PATH$input_path" 38867 fi 38868 fi 38869 38870 # remove trailing .exe if any 38871 new_path="${new_path/%.exe/}" 38872 38873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38874 38875 # First separate the path from the arguments. This will split at the first 38876 # space. 38877 complete="$OBJDUMP" 38878 path="${complete%% *}" 38879 tmp="$complete EOL" 38880 arguments="${tmp#* }" 38881 38882 # Input might be given as Windows format, start by converting to 38883 # unix format. 38884 new_path="$path" 38885 38886 windows_path="$new_path" 38887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38888 unix_path=`$CYGPATH -u "$windows_path"` 38889 new_path="$unix_path" 38890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38892 new_path="$unix_path" 38893 fi 38894 38895 38896 # Now try to locate executable using which 38897 new_path=`$WHICH "$new_path" 2> /dev/null` 38898 38899 if test "x$new_path" = x; then 38900 # Oops. Which didn't find the executable. 38901 # The splitting of arguments from the executable at a space might have been incorrect, 38902 # since paths with space are more likely in Windows. Give it another try with the whole 38903 # argument. 38904 path="$complete" 38905 arguments="EOL" 38906 new_path="$path" 38907 38908 windows_path="$new_path" 38909 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38910 unix_path=`$CYGPATH -u "$windows_path"` 38911 new_path="$unix_path" 38912 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38913 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38914 new_path="$unix_path" 38915 fi 38916 38917 38918 new_path=`$WHICH "$new_path" 2> /dev/null` 38919 # bat and cmd files are not always considered executable in MSYS causing which 38920 # to not find them 38921 if test "x$new_path" = x \ 38922 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38923 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38924 new_path="$path" 38925 38926 windows_path="$new_path" 38927 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38928 unix_path=`$CYGPATH -u "$windows_path"` 38929 new_path="$unix_path" 38930 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38931 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38932 new_path="$unix_path" 38933 fi 38934 38935 fi 38936 38937 if test "x$new_path" = x; then 38938 # It's still not found. Now this is an unrecoverable error. 38939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38940 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38941 has_space=`$ECHO "$complete" | $GREP " "` 38942 if test "x$has_space" != x; then 38943 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38944 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38945 fi 38946 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38947 fi 38948 fi 38949 38950 # Now new_path has a complete unix path to the binary 38951 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38952 # Keep paths in /bin as-is, but remove trailing .exe if any 38953 new_path="${new_path/%.exe/}" 38954 # Do not save /bin paths to all_fixpath_prefixes! 38955 else 38956 # Not in mixed or Windows style, start by that. 38957 new_path=`cmd //c echo $new_path` 38958 38959 input_path="$new_path" 38960 # Check if we need to convert this using DOS-style short mode. If the path 38961 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38962 # take no chances and rewrite it. 38963 # Note: m4 eats our [], so we need to use [ and ] instead. 38964 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38965 if test "x$has_forbidden_chars" != x; then 38966 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38967 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38968 fi 38969 38970 # Output is in $new_path 38971 38972 windows_path="$new_path" 38973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38974 unix_path=`$CYGPATH -u "$windows_path"` 38975 new_path="$unix_path" 38976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38978 new_path="$unix_path" 38979 fi 38980 38981 # remove trailing .exe if any 38982 new_path="${new_path/%.exe/}" 38983 38984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38986 fi 38987 38988 else 38989 # We're on a unix platform. Hooray! :) 38990 # First separate the path from the arguments. This will split at the first 38991 # space. 38992 complete="$OBJDUMP" 38993 path="${complete%% *}" 38994 tmp="$complete EOL" 38995 arguments="${tmp#* }" 38996 38997 # Cannot rely on the command "which" here since it doesn't always work. 38998 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38999 if test -z "$is_absolute_path"; then 39000 # Path to executable is not absolute. Find it. 39001 IFS_save="$IFS" 39002 IFS=: 39003 for p in $PATH; do 39004 if test -f "$p/$path" && test -x "$p/$path"; then 39005 new_path="$p/$path" 39006 break 39007 fi 39008 done 39009 IFS="$IFS_save" 39010 else 39011 # This is an absolute path, we can use it without further modifications. 39012 new_path="$path" 39013 fi 39014 39015 if test "x$new_path" = x; then 39016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 39017 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 39018 has_space=`$ECHO "$complete" | $GREP " "` 39019 if test "x$has_space" != x; then 39020 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39021 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39022 fi 39023 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 39024 fi 39025 fi 39026 39027 # Now join together the path and the arguments once again 39028 if test "x$arguments" != xEOL; then 39029 new_complete="$new_path ${arguments% *}" 39030 else 39031 new_complete="$new_path" 39032 fi 39033 39034 if test "x$complete" != "x$new_complete"; then 39035 OBJDUMP="$new_complete" 39036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 39037 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 39038 fi 39039 39040 fi 39041 39042 39043 # Restore old path. 39044 PATH="$OLD_PATH" 39045 39046 # Restore the flags to the user specified values. 39047 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 39048 CFLAGS="$ORG_CFLAGS" 39049 CXXFLAGS="$ORG_CXXFLAGS" 39050 OBJCFLAGS="$ORG_OBJCFLAGS" 39051 39052 39053 # Finally do some processing after the detection phase 39054 39055 if test "x$COMPILE_TYPE" = "xcross"; then 39056 # Now we need to find a C/C++ compiler that can build executables for the 39057 # build platform. We can't use the AC_PROG_CC macro, since it can only be 39058 # used once. Also, we need to do this without adding a tools dir to the 39059 # path, otherwise we might pick up cross-compilers which don't use standard 39060 # naming. 39061 39062 # FIXME: we should list the discovered compilers as an exclude pattern! 39063 # If we do that, we can do this detection before POST_DETECTION, and still 39064 # find the build compilers in the tools dir, if needed. 39065 39066 39067 # Publish this variable in the help. 39068 39069 39070 if test "x$BUILD_CC" = x; then 39071 # The variable is not set by user, try to locate tool using the code snippet 39072 for ac_prog in cl cc gcc 39073 do 39074 # Extract the first word of "$ac_prog", so it can be a program name with args. 39075 set dummy $ac_prog; ac_word=$2 39076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39077 $as_echo_n "checking for $ac_word... " >&6; } 39078 if ${ac_cv_path_BUILD_CC+:} false; then : 39079 $as_echo_n "(cached) " >&6 39080 else 39081 case $BUILD_CC in 39082 [\\/]* | ?:[\\/]*) 39083 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39084 ;; 39085 *) 39086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39087 for as_dir in $PATH 39088 do 39089 IFS=$as_save_IFS 39090 test -z "$as_dir" && as_dir=. 39091 for ac_exec_ext in '' $ac_executable_extensions; do 39092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39093 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39095 break 2 39096 fi 39097 done 39098 done 39099 IFS=$as_save_IFS 39100 39101 ;; 39102 esac 39103 fi 39104 BUILD_CC=$ac_cv_path_BUILD_CC 39105 if test -n "$BUILD_CC"; then 39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39107 $as_echo "$BUILD_CC" >&6; } 39108 else 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39110 $as_echo "no" >&6; } 39111 fi 39112 39113 39114 test -n "$BUILD_CC" && break 39115 done 39116 39117 else 39118 # The variable is set, but is it from the command line or the environment? 39119 39120 # Try to remove the string !BUILD_CC! from our list. 39121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 39122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39123 # If it failed, the variable was not from the command line. Ignore it, 39124 # but warn the user (except for BASH, which is always set by the calling BASH). 39125 if test "xBUILD_CC" != xBASH; then 39126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 39127 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 39128 fi 39129 # Try to locate tool using the code snippet 39130 for ac_prog in cl cc gcc 39131 do 39132 # Extract the first word of "$ac_prog", so it can be a program name with args. 39133 set dummy $ac_prog; ac_word=$2 39134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39135 $as_echo_n "checking for $ac_word... " >&6; } 39136 if ${ac_cv_path_BUILD_CC+:} false; then : 39137 $as_echo_n "(cached) " >&6 39138 else 39139 case $BUILD_CC in 39140 [\\/]* | ?:[\\/]*) 39141 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39142 ;; 39143 *) 39144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39145 for as_dir in $PATH 39146 do 39147 IFS=$as_save_IFS 39148 test -z "$as_dir" && as_dir=. 39149 for ac_exec_ext in '' $ac_executable_extensions; do 39150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39151 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39153 break 2 39154 fi 39155 done 39156 done 39157 IFS=$as_save_IFS 39158 39159 ;; 39160 esac 39161 fi 39162 BUILD_CC=$ac_cv_path_BUILD_CC 39163 if test -n "$BUILD_CC"; then 39164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39165 $as_echo "$BUILD_CC" >&6; } 39166 else 39167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39168 $as_echo "no" >&6; } 39169 fi 39170 39171 39172 test -n "$BUILD_CC" && break 39173 done 39174 39175 else 39176 # If it succeeded, then it was overridden by the user. We will use it 39177 # for the tool. 39178 39179 # First remove it from the list of overridden variables, so we can test 39180 # for unknown variables in the end. 39181 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39182 39183 # Check if the provided tool contains a complete path. 39184 tool_specified="$BUILD_CC" 39185 tool_basename="${tool_specified##*/}" 39186 if test "x$tool_basename" = "x$tool_specified"; then 39187 # A command without a complete path is provided, search $PATH. 39188 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 39189 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 39190 # Extract the first word of "$tool_basename", so it can be a program name with args. 39191 set dummy $tool_basename; ac_word=$2 39192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39193 $as_echo_n "checking for $ac_word... " >&6; } 39194 if ${ac_cv_path_BUILD_CC+:} false; then : 39195 $as_echo_n "(cached) " >&6 39196 else 39197 case $BUILD_CC in 39198 [\\/]* | ?:[\\/]*) 39199 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 39200 ;; 39201 *) 39202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39203 for as_dir in $PATH 39204 do 39205 IFS=$as_save_IFS 39206 test -z "$as_dir" && as_dir=. 39207 for ac_exec_ext in '' $ac_executable_extensions; do 39208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39209 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 39210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39211 break 2 39212 fi 39213 done 39214 done 39215 IFS=$as_save_IFS 39216 39217 ;; 39218 esac 39219 fi 39220 BUILD_CC=$ac_cv_path_BUILD_CC 39221 if test -n "$BUILD_CC"; then 39222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 39223 $as_echo "$BUILD_CC" >&6; } 39224 else 39225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39226 $as_echo "no" >&6; } 39227 fi 39228 39229 39230 if test "x$BUILD_CC" = x; then 39231 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39232 fi 39233 else 39234 # Otherwise we believe it is a complete path. Use it as it is. 39235 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 39236 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 39237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 39238 $as_echo_n "checking for BUILD_CC... " >&6; } 39239 if test ! -x "$tool_specified"; then 39240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39241 $as_echo "not found" >&6; } 39242 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 39243 fi 39244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39245 $as_echo "$tool_specified" >&6; } 39246 fi 39247 fi 39248 fi 39249 39250 39251 39252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39253 39254 # First separate the path from the arguments. This will split at the first 39255 # space. 39256 complete="$BUILD_CC" 39257 path="${complete%% *}" 39258 tmp="$complete EOL" 39259 arguments="${tmp#* }" 39260 39261 # Input might be given as Windows format, start by converting to 39262 # unix format. 39263 new_path=`$CYGPATH -u "$path"` 39264 39265 # Now try to locate executable using which 39266 new_path=`$WHICH "$new_path" 2> /dev/null` 39267 # bat and cmd files are not always considered executable in cygwin causing which 39268 # to not find them 39269 if test "x$new_path" = x \ 39270 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39271 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39272 new_path=`$CYGPATH -u "$path"` 39273 fi 39274 if test "x$new_path" = x; then 39275 # Oops. Which didn't find the executable. 39276 # The splitting of arguments from the executable at a space might have been incorrect, 39277 # since paths with space are more likely in Windows. Give it another try with the whole 39278 # argument. 39279 path="$complete" 39280 arguments="EOL" 39281 new_path=`$CYGPATH -u "$path"` 39282 new_path=`$WHICH "$new_path" 2> /dev/null` 39283 # bat and cmd files are not always considered executable in cygwin causing which 39284 # to not find them 39285 if test "x$new_path" = x \ 39286 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39287 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39288 new_path=`$CYGPATH -u "$path"` 39289 fi 39290 if test "x$new_path" = x; then 39291 # It's still not found. Now this is an unrecoverable error. 39292 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39293 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39294 has_space=`$ECHO "$complete" | $GREP " "` 39295 if test "x$has_space" != x; then 39296 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39297 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39298 fi 39299 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39300 fi 39301 fi 39302 39303 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39304 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39305 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39306 # "foo.exe" is OK but "foo" is an error. 39307 # 39308 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39309 # It is also a way to make sure we got the proper file name for the real test later on. 39310 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39311 if test "x$test_shortpath" = x; then 39312 # Short path failed, file does not exist as specified. 39313 # Try adding .exe or .cmd 39314 if test -f "${new_path}.exe"; then 39315 input_to_shortpath="${new_path}.exe" 39316 elif test -f "${new_path}.cmd"; then 39317 input_to_shortpath="${new_path}.cmd" 39318 else 39319 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39320 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39321 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39322 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39323 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39324 fi 39325 else 39326 input_to_shortpath="$new_path" 39327 fi 39328 39329 # Call helper function which possibly converts this using DOS-style short mode. 39330 # If so, the updated path is stored in $new_path. 39331 new_path="$input_to_shortpath" 39332 39333 input_path="$input_to_shortpath" 39334 # Check if we need to convert this using DOS-style short mode. If the path 39335 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39336 # take no chances and rewrite it. 39337 # Note: m4 eats our [], so we need to use [ and ] instead. 39338 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39339 if test "x$has_forbidden_chars" != x; then 39340 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39341 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39342 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39343 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39344 # Going to short mode and back again did indeed matter. Since short mode is 39345 # case insensitive, let's make it lowercase to improve readability. 39346 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39347 # Now convert it back to Unix-stile (cygpath) 39348 input_path=`$CYGPATH -u "$shortmode_path"` 39349 new_path="$input_path" 39350 fi 39351 fi 39352 39353 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39354 if test "x$test_cygdrive_prefix" = x; then 39355 # As a simple fix, exclude /usr/bin since it's not a real path. 39356 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39357 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39358 # a path prefixed by /cygdrive for fixpath to work. 39359 new_path="$CYGWIN_ROOT_PATH$input_path" 39360 fi 39361 fi 39362 39363 # remove trailing .exe if any 39364 new_path="${new_path/%.exe/}" 39365 39366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39367 39368 # First separate the path from the arguments. This will split at the first 39369 # space. 39370 complete="$BUILD_CC" 39371 path="${complete%% *}" 39372 tmp="$complete EOL" 39373 arguments="${tmp#* }" 39374 39375 # Input might be given as Windows format, start by converting to 39376 # unix format. 39377 new_path="$path" 39378 39379 windows_path="$new_path" 39380 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39381 unix_path=`$CYGPATH -u "$windows_path"` 39382 new_path="$unix_path" 39383 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39384 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39385 new_path="$unix_path" 39386 fi 39387 39388 39389 # Now try to locate executable using which 39390 new_path=`$WHICH "$new_path" 2> /dev/null` 39391 39392 if test "x$new_path" = x; then 39393 # Oops. Which didn't find the executable. 39394 # The splitting of arguments from the executable at a space might have been incorrect, 39395 # since paths with space are more likely in Windows. Give it another try with the whole 39396 # argument. 39397 path="$complete" 39398 arguments="EOL" 39399 new_path="$path" 39400 39401 windows_path="$new_path" 39402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39403 unix_path=`$CYGPATH -u "$windows_path"` 39404 new_path="$unix_path" 39405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39407 new_path="$unix_path" 39408 fi 39409 39410 39411 new_path=`$WHICH "$new_path" 2> /dev/null` 39412 # bat and cmd files are not always considered executable in MSYS causing which 39413 # to not find them 39414 if test "x$new_path" = x \ 39415 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39416 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39417 new_path="$path" 39418 39419 windows_path="$new_path" 39420 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39421 unix_path=`$CYGPATH -u "$windows_path"` 39422 new_path="$unix_path" 39423 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39424 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39425 new_path="$unix_path" 39426 fi 39427 39428 fi 39429 39430 if test "x$new_path" = x; then 39431 # It's still not found. Now this is an unrecoverable error. 39432 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39433 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39434 has_space=`$ECHO "$complete" | $GREP " "` 39435 if test "x$has_space" != x; then 39436 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39437 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39438 fi 39439 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39440 fi 39441 fi 39442 39443 # Now new_path has a complete unix path to the binary 39444 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39445 # Keep paths in /bin as-is, but remove trailing .exe if any 39446 new_path="${new_path/%.exe/}" 39447 # Do not save /bin paths to all_fixpath_prefixes! 39448 else 39449 # Not in mixed or Windows style, start by that. 39450 new_path=`cmd //c echo $new_path` 39451 39452 input_path="$new_path" 39453 # Check if we need to convert this using DOS-style short mode. If the path 39454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39455 # take no chances and rewrite it. 39456 # Note: m4 eats our [], so we need to use [ and ] instead. 39457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39458 if test "x$has_forbidden_chars" != x; then 39459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39460 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39461 fi 39462 39463 # Output is in $new_path 39464 39465 windows_path="$new_path" 39466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39467 unix_path=`$CYGPATH -u "$windows_path"` 39468 new_path="$unix_path" 39469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39471 new_path="$unix_path" 39472 fi 39473 39474 # remove trailing .exe if any 39475 new_path="${new_path/%.exe/}" 39476 39477 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39478 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39479 fi 39480 39481 else 39482 # We're on a unix platform. Hooray! :) 39483 # First separate the path from the arguments. This will split at the first 39484 # space. 39485 complete="$BUILD_CC" 39486 path="${complete%% *}" 39487 tmp="$complete EOL" 39488 arguments="${tmp#* }" 39489 39490 # Cannot rely on the command "which" here since it doesn't always work. 39491 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39492 if test -z "$is_absolute_path"; then 39493 # Path to executable is not absolute. Find it. 39494 IFS_save="$IFS" 39495 IFS=: 39496 for p in $PATH; do 39497 if test -f "$p/$path" && test -x "$p/$path"; then 39498 new_path="$p/$path" 39499 break 39500 fi 39501 done 39502 IFS="$IFS_save" 39503 else 39504 # This is an absolute path, we can use it without further modifications. 39505 new_path="$path" 39506 fi 39507 39508 if test "x$new_path" = x; then 39509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39510 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39511 has_space=`$ECHO "$complete" | $GREP " "` 39512 if test "x$has_space" != x; then 39513 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39514 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39515 fi 39516 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39517 fi 39518 fi 39519 39520 # Now join together the path and the arguments once again 39521 if test "x$arguments" != xEOL; then 39522 new_complete="$new_path ${arguments% *}" 39523 else 39524 new_complete="$new_path" 39525 fi 39526 39527 if test "x$complete" != "x$new_complete"; then 39528 BUILD_CC="$new_complete" 39529 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39530 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39531 fi 39532 39533 39534 39535 # Publish this variable in the help. 39536 39537 39538 if test "x$BUILD_CXX" = x; then 39539 # The variable is not set by user, try to locate tool using the code snippet 39540 for ac_prog in cl CC g++ 39541 do 39542 # Extract the first word of "$ac_prog", so it can be a program name with args. 39543 set dummy $ac_prog; ac_word=$2 39544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39545 $as_echo_n "checking for $ac_word... " >&6; } 39546 if ${ac_cv_path_BUILD_CXX+:} false; then : 39547 $as_echo_n "(cached) " >&6 39548 else 39549 case $BUILD_CXX in 39550 [\\/]* | ?:[\\/]*) 39551 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39552 ;; 39553 *) 39554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39555 for as_dir in $PATH 39556 do 39557 IFS=$as_save_IFS 39558 test -z "$as_dir" && as_dir=. 39559 for ac_exec_ext in '' $ac_executable_extensions; do 39560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39561 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39563 break 2 39564 fi 39565 done 39566 done 39567 IFS=$as_save_IFS 39568 39569 ;; 39570 esac 39571 fi 39572 BUILD_CXX=$ac_cv_path_BUILD_CXX 39573 if test -n "$BUILD_CXX"; then 39574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39575 $as_echo "$BUILD_CXX" >&6; } 39576 else 39577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39578 $as_echo "no" >&6; } 39579 fi 39580 39581 39582 test -n "$BUILD_CXX" && break 39583 done 39584 39585 else 39586 # The variable is set, but is it from the command line or the environment? 39587 39588 # Try to remove the string !BUILD_CXX! from our list. 39589 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39590 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39591 # If it failed, the variable was not from the command line. Ignore it, 39592 # but warn the user (except for BASH, which is always set by the calling BASH). 39593 if test "xBUILD_CXX" != xBASH; then 39594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39595 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39596 fi 39597 # Try to locate tool using the code snippet 39598 for ac_prog in cl CC g++ 39599 do 39600 # Extract the first word of "$ac_prog", so it can be a program name with args. 39601 set dummy $ac_prog; ac_word=$2 39602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39603 $as_echo_n "checking for $ac_word... " >&6; } 39604 if ${ac_cv_path_BUILD_CXX+:} false; then : 39605 $as_echo_n "(cached) " >&6 39606 else 39607 case $BUILD_CXX in 39608 [\\/]* | ?:[\\/]*) 39609 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39610 ;; 39611 *) 39612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39613 for as_dir in $PATH 39614 do 39615 IFS=$as_save_IFS 39616 test -z "$as_dir" && as_dir=. 39617 for ac_exec_ext in '' $ac_executable_extensions; do 39618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39619 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39621 break 2 39622 fi 39623 done 39624 done 39625 IFS=$as_save_IFS 39626 39627 ;; 39628 esac 39629 fi 39630 BUILD_CXX=$ac_cv_path_BUILD_CXX 39631 if test -n "$BUILD_CXX"; then 39632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39633 $as_echo "$BUILD_CXX" >&6; } 39634 else 39635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39636 $as_echo "no" >&6; } 39637 fi 39638 39639 39640 test -n "$BUILD_CXX" && break 39641 done 39642 39643 else 39644 # If it succeeded, then it was overridden by the user. We will use it 39645 # for the tool. 39646 39647 # First remove it from the list of overridden variables, so we can test 39648 # for unknown variables in the end. 39649 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39650 39651 # Check if the provided tool contains a complete path. 39652 tool_specified="$BUILD_CXX" 39653 tool_basename="${tool_specified##*/}" 39654 if test "x$tool_basename" = "x$tool_specified"; then 39655 # A command without a complete path is provided, search $PATH. 39656 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39657 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39658 # Extract the first word of "$tool_basename", so it can be a program name with args. 39659 set dummy $tool_basename; ac_word=$2 39660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39661 $as_echo_n "checking for $ac_word... " >&6; } 39662 if ${ac_cv_path_BUILD_CXX+:} false; then : 39663 $as_echo_n "(cached) " >&6 39664 else 39665 case $BUILD_CXX in 39666 [\\/]* | ?:[\\/]*) 39667 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39668 ;; 39669 *) 39670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39671 for as_dir in $PATH 39672 do 39673 IFS=$as_save_IFS 39674 test -z "$as_dir" && as_dir=. 39675 for ac_exec_ext in '' $ac_executable_extensions; do 39676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39677 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39679 break 2 39680 fi 39681 done 39682 done 39683 IFS=$as_save_IFS 39684 39685 ;; 39686 esac 39687 fi 39688 BUILD_CXX=$ac_cv_path_BUILD_CXX 39689 if test -n "$BUILD_CXX"; then 39690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39691 $as_echo "$BUILD_CXX" >&6; } 39692 else 39693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39694 $as_echo "no" >&6; } 39695 fi 39696 39697 39698 if test "x$BUILD_CXX" = x; then 39699 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39700 fi 39701 else 39702 # Otherwise we believe it is a complete path. Use it as it is. 39703 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39704 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39706 $as_echo_n "checking for BUILD_CXX... " >&6; } 39707 if test ! -x "$tool_specified"; then 39708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39709 $as_echo "not found" >&6; } 39710 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39711 fi 39712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39713 $as_echo "$tool_specified" >&6; } 39714 fi 39715 fi 39716 fi 39717 39718 39719 39720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39721 39722 # First separate the path from the arguments. This will split at the first 39723 # space. 39724 complete="$BUILD_CXX" 39725 path="${complete%% *}" 39726 tmp="$complete EOL" 39727 arguments="${tmp#* }" 39728 39729 # Input might be given as Windows format, start by converting to 39730 # unix format. 39731 new_path=`$CYGPATH -u "$path"` 39732 39733 # Now try to locate executable using which 39734 new_path=`$WHICH "$new_path" 2> /dev/null` 39735 # bat and cmd files are not always considered executable in cygwin causing which 39736 # to not find them 39737 if test "x$new_path" = x \ 39738 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39739 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39740 new_path=`$CYGPATH -u "$path"` 39741 fi 39742 if test "x$new_path" = x; then 39743 # Oops. Which didn't find the executable. 39744 # The splitting of arguments from the executable at a space might have been incorrect, 39745 # since paths with space are more likely in Windows. Give it another try with the whole 39746 # argument. 39747 path="$complete" 39748 arguments="EOL" 39749 new_path=`$CYGPATH -u "$path"` 39750 new_path=`$WHICH "$new_path" 2> /dev/null` 39751 # bat and cmd files are not always considered executable in cygwin causing which 39752 # to not find them 39753 if test "x$new_path" = x \ 39754 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39755 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39756 new_path=`$CYGPATH -u "$path"` 39757 fi 39758 if test "x$new_path" = x; then 39759 # It's still not found. Now this is an unrecoverable error. 39760 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39761 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39762 has_space=`$ECHO "$complete" | $GREP " "` 39763 if test "x$has_space" != x; then 39764 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39765 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39766 fi 39767 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39768 fi 39769 fi 39770 39771 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39772 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39773 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39774 # "foo.exe" is OK but "foo" is an error. 39775 # 39776 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39777 # It is also a way to make sure we got the proper file name for the real test later on. 39778 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39779 if test "x$test_shortpath" = x; then 39780 # Short path failed, file does not exist as specified. 39781 # Try adding .exe or .cmd 39782 if test -f "${new_path}.exe"; then 39783 input_to_shortpath="${new_path}.exe" 39784 elif test -f "${new_path}.cmd"; then 39785 input_to_shortpath="${new_path}.cmd" 39786 else 39787 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39788 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39789 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39790 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39791 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39792 fi 39793 else 39794 input_to_shortpath="$new_path" 39795 fi 39796 39797 # Call helper function which possibly converts this using DOS-style short mode. 39798 # If so, the updated path is stored in $new_path. 39799 new_path="$input_to_shortpath" 39800 39801 input_path="$input_to_shortpath" 39802 # Check if we need to convert this using DOS-style short mode. If the path 39803 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39804 # take no chances and rewrite it. 39805 # Note: m4 eats our [], so we need to use [ and ] instead. 39806 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39807 if test "x$has_forbidden_chars" != x; then 39808 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39809 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39810 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39811 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39812 # Going to short mode and back again did indeed matter. Since short mode is 39813 # case insensitive, let's make it lowercase to improve readability. 39814 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39815 # Now convert it back to Unix-stile (cygpath) 39816 input_path=`$CYGPATH -u "$shortmode_path"` 39817 new_path="$input_path" 39818 fi 39819 fi 39820 39821 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39822 if test "x$test_cygdrive_prefix" = x; then 39823 # As a simple fix, exclude /usr/bin since it's not a real path. 39824 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39825 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39826 # a path prefixed by /cygdrive for fixpath to work. 39827 new_path="$CYGWIN_ROOT_PATH$input_path" 39828 fi 39829 fi 39830 39831 # remove trailing .exe if any 39832 new_path="${new_path/%.exe/}" 39833 39834 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39835 39836 # First separate the path from the arguments. This will split at the first 39837 # space. 39838 complete="$BUILD_CXX" 39839 path="${complete%% *}" 39840 tmp="$complete EOL" 39841 arguments="${tmp#* }" 39842 39843 # Input might be given as Windows format, start by converting to 39844 # unix format. 39845 new_path="$path" 39846 39847 windows_path="$new_path" 39848 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39849 unix_path=`$CYGPATH -u "$windows_path"` 39850 new_path="$unix_path" 39851 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39852 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39853 new_path="$unix_path" 39854 fi 39855 39856 39857 # Now try to locate executable using which 39858 new_path=`$WHICH "$new_path" 2> /dev/null` 39859 39860 if test "x$new_path" = x; then 39861 # Oops. Which didn't find the executable. 39862 # The splitting of arguments from the executable at a space might have been incorrect, 39863 # since paths with space are more likely in Windows. Give it another try with the whole 39864 # argument. 39865 path="$complete" 39866 arguments="EOL" 39867 new_path="$path" 39868 39869 windows_path="$new_path" 39870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39871 unix_path=`$CYGPATH -u "$windows_path"` 39872 new_path="$unix_path" 39873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39875 new_path="$unix_path" 39876 fi 39877 39878 39879 new_path=`$WHICH "$new_path" 2> /dev/null` 39880 # bat and cmd files are not always considered executable in MSYS causing which 39881 # to not find them 39882 if test "x$new_path" = x \ 39883 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39884 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39885 new_path="$path" 39886 39887 windows_path="$new_path" 39888 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39889 unix_path=`$CYGPATH -u "$windows_path"` 39890 new_path="$unix_path" 39891 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39892 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39893 new_path="$unix_path" 39894 fi 39895 39896 fi 39897 39898 if test "x$new_path" = x; then 39899 # It's still not found. Now this is an unrecoverable error. 39900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39901 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39902 has_space=`$ECHO "$complete" | $GREP " "` 39903 if test "x$has_space" != x; then 39904 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39905 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39906 fi 39907 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39908 fi 39909 fi 39910 39911 # Now new_path has a complete unix path to the binary 39912 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39913 # Keep paths in /bin as-is, but remove trailing .exe if any 39914 new_path="${new_path/%.exe/}" 39915 # Do not save /bin paths to all_fixpath_prefixes! 39916 else 39917 # Not in mixed or Windows style, start by that. 39918 new_path=`cmd //c echo $new_path` 39919 39920 input_path="$new_path" 39921 # Check if we need to convert this using DOS-style short mode. If the path 39922 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39923 # take no chances and rewrite it. 39924 # Note: m4 eats our [], so we need to use [ and ] instead. 39925 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39926 if test "x$has_forbidden_chars" != x; then 39927 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39928 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39929 fi 39930 39931 # Output is in $new_path 39932 39933 windows_path="$new_path" 39934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39935 unix_path=`$CYGPATH -u "$windows_path"` 39936 new_path="$unix_path" 39937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39939 new_path="$unix_path" 39940 fi 39941 39942 # remove trailing .exe if any 39943 new_path="${new_path/%.exe/}" 39944 39945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39947 fi 39948 39949 else 39950 # We're on a unix platform. Hooray! :) 39951 # First separate the path from the arguments. This will split at the first 39952 # space. 39953 complete="$BUILD_CXX" 39954 path="${complete%% *}" 39955 tmp="$complete EOL" 39956 arguments="${tmp#* }" 39957 39958 # Cannot rely on the command "which" here since it doesn't always work. 39959 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39960 if test -z "$is_absolute_path"; then 39961 # Path to executable is not absolute. Find it. 39962 IFS_save="$IFS" 39963 IFS=: 39964 for p in $PATH; do 39965 if test -f "$p/$path" && test -x "$p/$path"; then 39966 new_path="$p/$path" 39967 break 39968 fi 39969 done 39970 IFS="$IFS_save" 39971 else 39972 # This is an absolute path, we can use it without further modifications. 39973 new_path="$path" 39974 fi 39975 39976 if test "x$new_path" = x; then 39977 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39978 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39979 has_space=`$ECHO "$complete" | $GREP " "` 39980 if test "x$has_space" != x; then 39981 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39982 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39983 fi 39984 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39985 fi 39986 fi 39987 39988 # Now join together the path and the arguments once again 39989 if test "x$arguments" != xEOL; then 39990 new_complete="$new_path ${arguments% *}" 39991 else 39992 new_complete="$new_path" 39993 fi 39994 39995 if test "x$complete" != "x$new_complete"; then 39996 BUILD_CXX="$new_complete" 39997 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39998 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39999 fi 40000 40001 40002 40003 # Publish this variable in the help. 40004 40005 40006 if test "x$BUILD_LD" = x; then 40007 # The variable is not set by user, try to locate tool using the code snippet 40008 for ac_prog in ld 40009 do 40010 # Extract the first word of "$ac_prog", so it can be a program name with args. 40011 set dummy $ac_prog; ac_word=$2 40012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40013 $as_echo_n "checking for $ac_word... " >&6; } 40014 if ${ac_cv_path_BUILD_LD+:} false; then : 40015 $as_echo_n "(cached) " >&6 40016 else 40017 case $BUILD_LD in 40018 [\\/]* | ?:[\\/]*) 40019 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40020 ;; 40021 *) 40022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40023 for as_dir in $PATH 40024 do 40025 IFS=$as_save_IFS 40026 test -z "$as_dir" && as_dir=. 40027 for ac_exec_ext in '' $ac_executable_extensions; do 40028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40029 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40031 break 2 40032 fi 40033 done 40034 done 40035 IFS=$as_save_IFS 40036 40037 ;; 40038 esac 40039 fi 40040 BUILD_LD=$ac_cv_path_BUILD_LD 40041 if test -n "$BUILD_LD"; then 40042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40043 $as_echo "$BUILD_LD" >&6; } 40044 else 40045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40046 $as_echo "no" >&6; } 40047 fi 40048 40049 40050 test -n "$BUILD_LD" && break 40051 done 40052 40053 else 40054 # The variable is set, but is it from the command line or the environment? 40055 40056 # Try to remove the string !BUILD_LD! from our list. 40057 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 40058 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40059 # If it failed, the variable was not from the command line. Ignore it, 40060 # but warn the user (except for BASH, which is always set by the calling BASH). 40061 if test "xBUILD_LD" != xBASH; then 40062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 40063 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 40064 fi 40065 # Try to locate tool using the code snippet 40066 for ac_prog in ld 40067 do 40068 # Extract the first word of "$ac_prog", so it can be a program name with args. 40069 set dummy $ac_prog; ac_word=$2 40070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40071 $as_echo_n "checking for $ac_word... " >&6; } 40072 if ${ac_cv_path_BUILD_LD+:} false; then : 40073 $as_echo_n "(cached) " >&6 40074 else 40075 case $BUILD_LD in 40076 [\\/]* | ?:[\\/]*) 40077 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40078 ;; 40079 *) 40080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40081 for as_dir in $PATH 40082 do 40083 IFS=$as_save_IFS 40084 test -z "$as_dir" && as_dir=. 40085 for ac_exec_ext in '' $ac_executable_extensions; do 40086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40087 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40089 break 2 40090 fi 40091 done 40092 done 40093 IFS=$as_save_IFS 40094 40095 ;; 40096 esac 40097 fi 40098 BUILD_LD=$ac_cv_path_BUILD_LD 40099 if test -n "$BUILD_LD"; then 40100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40101 $as_echo "$BUILD_LD" >&6; } 40102 else 40103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40104 $as_echo "no" >&6; } 40105 fi 40106 40107 40108 test -n "$BUILD_LD" && break 40109 done 40110 40111 else 40112 # If it succeeded, then it was overridden by the user. We will use it 40113 # for the tool. 40114 40115 # First remove it from the list of overridden variables, so we can test 40116 # for unknown variables in the end. 40117 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40118 40119 # Check if the provided tool contains a complete path. 40120 tool_specified="$BUILD_LD" 40121 tool_basename="${tool_specified##*/}" 40122 if test "x$tool_basename" = "x$tool_specified"; then 40123 # A command without a complete path is provided, search $PATH. 40124 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 40125 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 40126 # Extract the first word of "$tool_basename", so it can be a program name with args. 40127 set dummy $tool_basename; ac_word=$2 40128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40129 $as_echo_n "checking for $ac_word... " >&6; } 40130 if ${ac_cv_path_BUILD_LD+:} false; then : 40131 $as_echo_n "(cached) " >&6 40132 else 40133 case $BUILD_LD in 40134 [\\/]* | ?:[\\/]*) 40135 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 40136 ;; 40137 *) 40138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40139 for as_dir in $PATH 40140 do 40141 IFS=$as_save_IFS 40142 test -z "$as_dir" && as_dir=. 40143 for ac_exec_ext in '' $ac_executable_extensions; do 40144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40145 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 40146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40147 break 2 40148 fi 40149 done 40150 done 40151 IFS=$as_save_IFS 40152 40153 ;; 40154 esac 40155 fi 40156 BUILD_LD=$ac_cv_path_BUILD_LD 40157 if test -n "$BUILD_LD"; then 40158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 40159 $as_echo "$BUILD_LD" >&6; } 40160 else 40161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40162 $as_echo "no" >&6; } 40163 fi 40164 40165 40166 if test "x$BUILD_LD" = x; then 40167 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40168 fi 40169 else 40170 # Otherwise we believe it is a complete path. Use it as it is. 40171 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 40172 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 40173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 40174 $as_echo_n "checking for BUILD_LD... " >&6; } 40175 if test ! -x "$tool_specified"; then 40176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40177 $as_echo "not found" >&6; } 40178 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 40179 fi 40180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40181 $as_echo "$tool_specified" >&6; } 40182 fi 40183 fi 40184 fi 40185 40186 40187 40188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40189 40190 # First separate the path from the arguments. This will split at the first 40191 # space. 40192 complete="$BUILD_LD" 40193 path="${complete%% *}" 40194 tmp="$complete EOL" 40195 arguments="${tmp#* }" 40196 40197 # Input might be given as Windows format, start by converting to 40198 # unix format. 40199 new_path=`$CYGPATH -u "$path"` 40200 40201 # Now try to locate executable using which 40202 new_path=`$WHICH "$new_path" 2> /dev/null` 40203 # bat and cmd files are not always considered executable in cygwin causing which 40204 # to not find them 40205 if test "x$new_path" = x \ 40206 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40207 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40208 new_path=`$CYGPATH -u "$path"` 40209 fi 40210 if test "x$new_path" = x; then 40211 # Oops. Which didn't find the executable. 40212 # The splitting of arguments from the executable at a space might have been incorrect, 40213 # since paths with space are more likely in Windows. Give it another try with the whole 40214 # argument. 40215 path="$complete" 40216 arguments="EOL" 40217 new_path=`$CYGPATH -u "$path"` 40218 new_path=`$WHICH "$new_path" 2> /dev/null` 40219 # bat and cmd files are not always considered executable in cygwin causing which 40220 # to not find them 40221 if test "x$new_path" = x \ 40222 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40223 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40224 new_path=`$CYGPATH -u "$path"` 40225 fi 40226 if test "x$new_path" = x; then 40227 # It's still not found. Now this is an unrecoverable error. 40228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40229 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40230 has_space=`$ECHO "$complete" | $GREP " "` 40231 if test "x$has_space" != x; then 40232 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40233 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40234 fi 40235 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40236 fi 40237 fi 40238 40239 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40240 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40241 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40242 # "foo.exe" is OK but "foo" is an error. 40243 # 40244 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40245 # It is also a way to make sure we got the proper file name for the real test later on. 40246 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40247 if test "x$test_shortpath" = x; then 40248 # Short path failed, file does not exist as specified. 40249 # Try adding .exe or .cmd 40250 if test -f "${new_path}.exe"; then 40251 input_to_shortpath="${new_path}.exe" 40252 elif test -f "${new_path}.cmd"; then 40253 input_to_shortpath="${new_path}.cmd" 40254 else 40255 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 40256 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 40257 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40258 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40259 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40260 fi 40261 else 40262 input_to_shortpath="$new_path" 40263 fi 40264 40265 # Call helper function which possibly converts this using DOS-style short mode. 40266 # If so, the updated path is stored in $new_path. 40267 new_path="$input_to_shortpath" 40268 40269 input_path="$input_to_shortpath" 40270 # Check if we need to convert this using DOS-style short mode. If the path 40271 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40272 # take no chances and rewrite it. 40273 # Note: m4 eats our [], so we need to use [ and ] instead. 40274 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40275 if test "x$has_forbidden_chars" != x; then 40276 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40277 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40278 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40279 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40280 # Going to short mode and back again did indeed matter. Since short mode is 40281 # case insensitive, let's make it lowercase to improve readability. 40282 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40283 # Now convert it back to Unix-stile (cygpath) 40284 input_path=`$CYGPATH -u "$shortmode_path"` 40285 new_path="$input_path" 40286 fi 40287 fi 40288 40289 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40290 if test "x$test_cygdrive_prefix" = x; then 40291 # As a simple fix, exclude /usr/bin since it's not a real path. 40292 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40293 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40294 # a path prefixed by /cygdrive for fixpath to work. 40295 new_path="$CYGWIN_ROOT_PATH$input_path" 40296 fi 40297 fi 40298 40299 # remove trailing .exe if any 40300 new_path="${new_path/%.exe/}" 40301 40302 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40303 40304 # First separate the path from the arguments. This will split at the first 40305 # space. 40306 complete="$BUILD_LD" 40307 path="${complete%% *}" 40308 tmp="$complete EOL" 40309 arguments="${tmp#* }" 40310 40311 # Input might be given as Windows format, start by converting to 40312 # unix format. 40313 new_path="$path" 40314 40315 windows_path="$new_path" 40316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40317 unix_path=`$CYGPATH -u "$windows_path"` 40318 new_path="$unix_path" 40319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40321 new_path="$unix_path" 40322 fi 40323 40324 40325 # Now try to locate executable using which 40326 new_path=`$WHICH "$new_path" 2> /dev/null` 40327 40328 if test "x$new_path" = x; then 40329 # Oops. Which didn't find the executable. 40330 # The splitting of arguments from the executable at a space might have been incorrect, 40331 # since paths with space are more likely in Windows. Give it another try with the whole 40332 # argument. 40333 path="$complete" 40334 arguments="EOL" 40335 new_path="$path" 40336 40337 windows_path="$new_path" 40338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40339 unix_path=`$CYGPATH -u "$windows_path"` 40340 new_path="$unix_path" 40341 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40342 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40343 new_path="$unix_path" 40344 fi 40345 40346 40347 new_path=`$WHICH "$new_path" 2> /dev/null` 40348 # bat and cmd files are not always considered executable in MSYS causing which 40349 # to not find them 40350 if test "x$new_path" = x \ 40351 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40352 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40353 new_path="$path" 40354 40355 windows_path="$new_path" 40356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40357 unix_path=`$CYGPATH -u "$windows_path"` 40358 new_path="$unix_path" 40359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40361 new_path="$unix_path" 40362 fi 40363 40364 fi 40365 40366 if test "x$new_path" = x; then 40367 # It's still not found. Now this is an unrecoverable error. 40368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40369 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40370 has_space=`$ECHO "$complete" | $GREP " "` 40371 if test "x$has_space" != x; then 40372 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40373 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40374 fi 40375 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40376 fi 40377 fi 40378 40379 # Now new_path has a complete unix path to the binary 40380 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40381 # Keep paths in /bin as-is, but remove trailing .exe if any 40382 new_path="${new_path/%.exe/}" 40383 # Do not save /bin paths to all_fixpath_prefixes! 40384 else 40385 # Not in mixed or Windows style, start by that. 40386 new_path=`cmd //c echo $new_path` 40387 40388 input_path="$new_path" 40389 # Check if we need to convert this using DOS-style short mode. If the path 40390 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40391 # take no chances and rewrite it. 40392 # Note: m4 eats our [], so we need to use [ and ] instead. 40393 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40394 if test "x$has_forbidden_chars" != x; then 40395 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40396 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40397 fi 40398 40399 # Output is in $new_path 40400 40401 windows_path="$new_path" 40402 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40403 unix_path=`$CYGPATH -u "$windows_path"` 40404 new_path="$unix_path" 40405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40406 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40407 new_path="$unix_path" 40408 fi 40409 40410 # remove trailing .exe if any 40411 new_path="${new_path/%.exe/}" 40412 40413 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40414 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40415 fi 40416 40417 else 40418 # We're on a unix platform. Hooray! :) 40419 # First separate the path from the arguments. This will split at the first 40420 # space. 40421 complete="$BUILD_LD" 40422 path="${complete%% *}" 40423 tmp="$complete EOL" 40424 arguments="${tmp#* }" 40425 40426 # Cannot rely on the command "which" here since it doesn't always work. 40427 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40428 if test -z "$is_absolute_path"; then 40429 # Path to executable is not absolute. Find it. 40430 IFS_save="$IFS" 40431 IFS=: 40432 for p in $PATH; do 40433 if test -f "$p/$path" && test -x "$p/$path"; then 40434 new_path="$p/$path" 40435 break 40436 fi 40437 done 40438 IFS="$IFS_save" 40439 else 40440 # This is an absolute path, we can use it without further modifications. 40441 new_path="$path" 40442 fi 40443 40444 if test "x$new_path" = x; then 40445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40446 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40447 has_space=`$ECHO "$complete" | $GREP " "` 40448 if test "x$has_space" != x; then 40449 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40450 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40451 fi 40452 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40453 fi 40454 fi 40455 40456 # Now join together the path and the arguments once again 40457 if test "x$arguments" != xEOL; then 40458 new_complete="$new_path ${arguments% *}" 40459 else 40460 new_complete="$new_path" 40461 fi 40462 40463 if test "x$complete" != "x$new_complete"; then 40464 BUILD_LD="$new_complete" 40465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40466 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40467 fi 40468 40469 else 40470 # If we are not cross compiling, use the normal target compilers for 40471 # building the build platform executables. 40472 BUILD_CC="$CC" 40473 BUILD_CXX="$CXX" 40474 BUILD_LD="$LD" 40475 fi 40476 40477 40478 40479 40480 40481 40482 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40483 # For hotspot, we need these in Windows mixed path, 40484 # so rewrite them all. Need added .exe suffix. 40485 HOTSPOT_CXX="$CXX.exe" 40486 HOTSPOT_LD="$LD.exe" 40487 HOTSPOT_MT="$MT.exe" 40488 HOTSPOT_RC="$RC.exe" 40489 40490 unix_path="$HOTSPOT_CXX" 40491 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40492 windows_path=`$CYGPATH -m "$unix_path"` 40493 HOTSPOT_CXX="$windows_path" 40494 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40495 windows_path=`cmd //c echo $unix_path` 40496 HOTSPOT_CXX="$windows_path" 40497 fi 40498 40499 40500 unix_path="$HOTSPOT_LD" 40501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40502 windows_path=`$CYGPATH -m "$unix_path"` 40503 HOTSPOT_LD="$windows_path" 40504 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40505 windows_path=`cmd //c echo $unix_path` 40506 HOTSPOT_LD="$windows_path" 40507 fi 40508 40509 40510 unix_path="$HOTSPOT_MT" 40511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40512 windows_path=`$CYGPATH -m "$unix_path"` 40513 HOTSPOT_MT="$windows_path" 40514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40515 windows_path=`cmd //c echo $unix_path` 40516 HOTSPOT_MT="$windows_path" 40517 fi 40518 40519 40520 unix_path="$HOTSPOT_RC" 40521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40522 windows_path=`$CYGPATH -m "$unix_path"` 40523 HOTSPOT_RC="$windows_path" 40524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40525 windows_path=`cmd //c echo $unix_path` 40526 HOTSPOT_RC="$windows_path" 40527 fi 40528 40529 40530 40531 else 40532 HOTSPOT_CXX="$CXX" 40533 HOTSPOT_LD="$LD" 40534 fi 40535 40536 40537 40538 if test "x$TOOLCHAIN_TYPE" = xclang; then 40539 USE_CLANG=true 40540 fi 40541 40542 40543 # LDEXE is the linker to use, when creating executables. Not really used. 40544 # FIXME: These should just be removed! 40545 LDEXE="$LD" 40546 LDEXECXX="$LDCXX" 40547 40548 40549 40550 40551 40552 40553 # The package path is used only on macosx? 40554 # FIXME: clean this up, and/or move it elsewhere. 40555 PACKAGE_PATH=/opt/local 40556 40557 40558 # Check for extra potential brokenness. 40559 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40560 # On Windows, double-check that we got the right compiler. 40561 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40562 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40563 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40564 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40565 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40566 fi 40567 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40568 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40569 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40570 fi 40571 fi 40572 fi 40573 40574 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40575 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40576 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40577 # This is later checked when setting flags. 40578 40579 # "-Og" suppported for GCC 4.8 and later 40580 CFLAG_OPTIMIZE_DEBUG_FLAG="-Og" 40581 40582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"" >&5 40583 $as_echo_n "checking if compiler supports \"$CFLAG_OPTIMIZE_DEBUG_FLAG\"... " >&6; } 40584 supports=yes 40585 40586 saved_cflags="$CFLAGS" 40587 CFLAGS="$CFLAGS $CFLAG_OPTIMIZE_DEBUG_FLAG" 40588 ac_ext=c 40589 ac_cpp='$CPP $CPPFLAGS' 40590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40592 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40593 40594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40595 /* end confdefs.h. */ 40596 int i; 40597 _ACEOF 40598 if ac_fn_c_try_compile "$LINENO"; then : 40599 40600 else 40601 supports=no 40602 fi 40603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40604 ac_ext=cpp 40605 ac_cpp='$CXXCPP $CPPFLAGS' 40606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40609 40610 CFLAGS="$saved_cflags" 40611 40612 saved_cxxflags="$CXXFLAGS" 40613 CXXFLAGS="$CXXFLAG $CFLAG_OPTIMIZE_DEBUG_FLAG" 40614 ac_ext=cpp 40615 ac_cpp='$CXXCPP $CPPFLAGS' 40616 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40617 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40618 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40619 40620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40621 /* end confdefs.h. */ 40622 int i; 40623 _ACEOF 40624 if ac_fn_cxx_try_compile "$LINENO"; then : 40625 40626 else 40627 supports=no 40628 fi 40629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40630 ac_ext=cpp 40631 ac_cpp='$CXXCPP $CPPFLAGS' 40632 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40633 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40634 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40635 40636 CXXFLAGS="$saved_cxxflags" 40637 40638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40639 $as_echo "$supports" >&6; } 40640 if test "x$supports" = "xyes" ; then 40641 HAS_CFLAG_OPTIMIZE_DEBUG=true 40642 else 40643 HAS_CFLAG_OPTIMIZE_DEBUG=false 40644 fi 40645 40646 40647 # "-z relro" supported in GNU binutils 2.17 and later 40648 LINKER_RELRO_FLAG="-Xlinker -z -Xlinker relro" 40649 40650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_RELRO_FLAG\"" >&5 40651 $as_echo_n "checking if linker supports \"$LINKER_RELRO_FLAG\"... " >&6; } 40652 supports=yes 40653 40654 saved_ldflags="$LDFLAGS" 40655 LDFLAGS="$LDFLAGS $LINKER_RELRO_FLAG" 40656 ac_ext=c 40657 ac_cpp='$CPP $CPPFLAGS' 40658 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40659 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40660 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40661 40662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40663 /* end confdefs.h. */ 40664 40665 int 40666 main () 40667 { 40668 40669 ; 40670 return 0; 40671 } 40672 _ACEOF 40673 if ac_fn_c_try_link "$LINENO"; then : 40674 40675 else 40676 supports=no 40677 fi 40678 rm -f core conftest.err conftest.$ac_objext \ 40679 conftest$ac_exeext conftest.$ac_ext 40680 ac_ext=cpp 40681 ac_cpp='$CXXCPP $CPPFLAGS' 40682 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40683 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40684 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40685 40686 LDFLAGS="$saved_ldflags" 40687 40688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40689 $as_echo "$supports" >&6; } 40690 if test "x$supports" = "xyes" ; then 40691 HAS_LINKER_RELRO=true 40692 else 40693 HAS_LINKER_RELRO=false 40694 fi 40695 40696 40697 # "-z now" supported in GNU binutils 2.11 and later 40698 LINKER_NOW_FLAG="-Xlinker -z -Xlinker now" 40699 40700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports \"$LINKER_NOW_FLAG\"" >&5 40701 $as_echo_n "checking if linker supports \"$LINKER_NOW_FLAG\"... " >&6; } 40702 supports=yes 40703 40704 saved_ldflags="$LDFLAGS" 40705 LDFLAGS="$LDFLAGS $LINKER_NOW_FLAG" 40706 ac_ext=c 40707 ac_cpp='$CPP $CPPFLAGS' 40708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40710 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40711 40712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40713 /* end confdefs.h. */ 40714 40715 int 40716 main () 40717 { 40718 40719 ; 40720 return 0; 40721 } 40722 _ACEOF 40723 if ac_fn_c_try_link "$LINENO"; then : 40724 40725 else 40726 supports=no 40727 fi 40728 rm -f core conftest.err conftest.$ac_objext \ 40729 conftest$ac_exeext conftest.$ac_ext 40730 ac_ext=cpp 40731 ac_cpp='$CXXCPP $CPPFLAGS' 40732 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40733 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40734 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40735 40736 LDFLAGS="$saved_ldflags" 40737 40738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40739 $as_echo "$supports" >&6; } 40740 if test "x$supports" = "xyes" ; then 40741 HAS_LINKER_NOW=true 40742 else 40743 HAS_LINKER_NOW=false 40744 fi 40745 40746 fi 40747 40748 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40749 # in executable.' 40750 USING_BROKEN_SUSE_LD=no 40751 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40753 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40754 $ECHO "SUNWprivate_1.1 { local: *; };" > version-script.map 40755 $ECHO "int main() { }" > main.c 40756 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40758 $as_echo "no" >&6; } 40759 USING_BROKEN_SUSE_LD=no 40760 else 40761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40762 $as_echo "yes" >&6; } 40763 USING_BROKEN_SUSE_LD=yes 40764 fi 40765 rm -rf version-script.map main.c a.out 40766 fi 40767 40768 40769 40770 # Setup the JTReg Regression Test Harness. 40771 40772 40773 # Check whether --with-jtreg was given. 40774 if test "${with_jtreg+set}" = set; then : 40775 withval=$with_jtreg; 40776 else 40777 with_jtreg=no 40778 fi 40779 40780 40781 if test "x$with_jtreg" = xno; then 40782 # jtreg disabled 40783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40784 $as_echo_n "checking for jtreg... " >&6; } 40785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40786 $as_echo "no" >&6; } 40787 else 40788 if test "x$with_jtreg" != xyes; then 40789 # with path specified. 40790 JT_HOME="$with_jtreg" 40791 fi 40792 40793 if test "x$JT_HOME" != x; then 40794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40795 $as_echo_n "checking for jtreg... " >&6; } 40796 40797 # use JT_HOME enviroment var. 40798 40799 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40800 40801 # Input might be given as Windows format, start by converting to 40802 # unix format. 40803 path="$JT_HOME" 40804 new_path=`$CYGPATH -u "$path"` 40805 40806 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40807 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40808 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40809 # "foo.exe" is OK but "foo" is an error. 40810 # 40811 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40812 # It is also a way to make sure we got the proper file name for the real test later on. 40813 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40814 if test "x$test_shortpath" = x; then 40815 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40816 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40817 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40818 fi 40819 40820 # Call helper function which possibly converts this using DOS-style short mode. 40821 # If so, the updated path is stored in $new_path. 40822 40823 input_path="$new_path" 40824 # Check if we need to convert this using DOS-style short mode. If the path 40825 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40826 # take no chances and rewrite it. 40827 # Note: m4 eats our [], so we need to use [ and ] instead. 40828 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40829 if test "x$has_forbidden_chars" != x; then 40830 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40831 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40832 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40833 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40834 # Going to short mode and back again did indeed matter. Since short mode is 40835 # case insensitive, let's make it lowercase to improve readability. 40836 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40837 # Now convert it back to Unix-stile (cygpath) 40838 input_path=`$CYGPATH -u "$shortmode_path"` 40839 new_path="$input_path" 40840 fi 40841 fi 40842 40843 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40844 if test "x$test_cygdrive_prefix" = x; then 40845 # As a simple fix, exclude /usr/bin since it's not a real path. 40846 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40847 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40848 # a path prefixed by /cygdrive for fixpath to work. 40849 new_path="$CYGWIN_ROOT_PATH$input_path" 40850 fi 40851 fi 40852 40853 40854 if test "x$path" != "x$new_path"; then 40855 JT_HOME="$new_path" 40856 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40857 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40858 fi 40859 40860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40861 40862 path="$JT_HOME" 40863 has_colon=`$ECHO $path | $GREP ^.:` 40864 new_path="$path" 40865 if test "x$has_colon" = x; then 40866 # Not in mixed or Windows style, start by that. 40867 new_path=`cmd //c echo $path` 40868 fi 40869 40870 40871 input_path="$new_path" 40872 # Check if we need to convert this using DOS-style short mode. If the path 40873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40874 # take no chances and rewrite it. 40875 # Note: m4 eats our [], so we need to use [ and ] instead. 40876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40877 if test "x$has_forbidden_chars" != x; then 40878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40879 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40880 fi 40881 40882 40883 windows_path="$new_path" 40884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40885 unix_path=`$CYGPATH -u "$windows_path"` 40886 new_path="$unix_path" 40887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40889 new_path="$unix_path" 40890 fi 40891 40892 if test "x$path" != "x$new_path"; then 40893 JT_HOME="$new_path" 40894 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40895 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40896 fi 40897 40898 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40899 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40900 40901 else 40902 # We're on a unix platform. Hooray! :) 40903 path="$JT_HOME" 40904 has_space=`$ECHO "$path" | $GREP " "` 40905 if test "x$has_space" != x; then 40906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40907 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40908 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40909 fi 40910 40911 # Use eval to expand a potential ~ 40912 eval path="$path" 40913 if test ! -f "$path" && test ! -d "$path"; then 40914 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40915 fi 40916 40917 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40918 fi 40919 40920 40921 # jtreg win32 script works for everybody 40922 JTREGEXE="$JT_HOME/win32/bin/jtreg" 40923 40924 if test ! -f "$JTREGEXE"; then 40925 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40926 fi 40927 40928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40929 $as_echo "$JTREGEXE" >&6; } 40930 else 40931 # try to find jtreg on path 40932 40933 40934 40935 # Publish this variable in the help. 40936 40937 40938 if test "x$JTREGEXE" = x; then 40939 # The variable is not set by user, try to locate tool using the code snippet 40940 for ac_prog in jtreg 40941 do 40942 # Extract the first word of "$ac_prog", so it can be a program name with args. 40943 set dummy $ac_prog; ac_word=$2 40944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40945 $as_echo_n "checking for $ac_word... " >&6; } 40946 if ${ac_cv_path_JTREGEXE+:} false; then : 40947 $as_echo_n "(cached) " >&6 40948 else 40949 case $JTREGEXE in 40950 [\\/]* | ?:[\\/]*) 40951 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40952 ;; 40953 *) 40954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40955 for as_dir in $PATH 40956 do 40957 IFS=$as_save_IFS 40958 test -z "$as_dir" && as_dir=. 40959 for ac_exec_ext in '' $ac_executable_extensions; do 40960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40961 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40963 break 2 40964 fi 40965 done 40966 done 40967 IFS=$as_save_IFS 40968 40969 ;; 40970 esac 40971 fi 40972 JTREGEXE=$ac_cv_path_JTREGEXE 40973 if test -n "$JTREGEXE"; then 40974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40975 $as_echo "$JTREGEXE" >&6; } 40976 else 40977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40978 $as_echo "no" >&6; } 40979 fi 40980 40981 40982 test -n "$JTREGEXE" && break 40983 done 40984 40985 else 40986 # The variable is set, but is it from the command line or the environment? 40987 40988 # Try to remove the string !JTREGEXE! from our list. 40989 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40990 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40991 # If it failed, the variable was not from the command line. Ignore it, 40992 # but warn the user (except for BASH, which is always set by the calling BASH). 40993 if test "xJTREGEXE" != xBASH; then 40994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40995 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40996 fi 40997 # Try to locate tool using the code snippet 40998 for ac_prog in jtreg 40999 do 41000 # Extract the first word of "$ac_prog", so it can be a program name with args. 41001 set dummy $ac_prog; ac_word=$2 41002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41003 $as_echo_n "checking for $ac_word... " >&6; } 41004 if ${ac_cv_path_JTREGEXE+:} false; then : 41005 $as_echo_n "(cached) " >&6 41006 else 41007 case $JTREGEXE in 41008 [\\/]* | ?:[\\/]*) 41009 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41010 ;; 41011 *) 41012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41013 for as_dir in $PATH 41014 do 41015 IFS=$as_save_IFS 41016 test -z "$as_dir" && as_dir=. 41017 for ac_exec_ext in '' $ac_executable_extensions; do 41018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41019 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41021 break 2 41022 fi 41023 done 41024 done 41025 IFS=$as_save_IFS 41026 41027 ;; 41028 esac 41029 fi 41030 JTREGEXE=$ac_cv_path_JTREGEXE 41031 if test -n "$JTREGEXE"; then 41032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41033 $as_echo "$JTREGEXE" >&6; } 41034 else 41035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41036 $as_echo "no" >&6; } 41037 fi 41038 41039 41040 test -n "$JTREGEXE" && break 41041 done 41042 41043 else 41044 # If it succeeded, then it was overridden by the user. We will use it 41045 # for the tool. 41046 41047 # First remove it from the list of overridden variables, so we can test 41048 # for unknown variables in the end. 41049 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 41050 41051 # Check if the provided tool contains a complete path. 41052 tool_specified="$JTREGEXE" 41053 tool_basename="${tool_specified##*/}" 41054 if test "x$tool_basename" = "x$tool_specified"; then 41055 # A command without a complete path is provided, search $PATH. 41056 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 41057 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 41058 # Extract the first word of "$tool_basename", so it can be a program name with args. 41059 set dummy $tool_basename; ac_word=$2 41060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 41061 $as_echo_n "checking for $ac_word... " >&6; } 41062 if ${ac_cv_path_JTREGEXE+:} false; then : 41063 $as_echo_n "(cached) " >&6 41064 else 41065 case $JTREGEXE in 41066 [\\/]* | ?:[\\/]*) 41067 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 41068 ;; 41069 *) 41070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 41071 for as_dir in $PATH 41072 do 41073 IFS=$as_save_IFS 41074 test -z "$as_dir" && as_dir=. 41075 for ac_exec_ext in '' $ac_executable_extensions; do 41076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 41077 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 41078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 41079 break 2 41080 fi 41081 done 41082 done 41083 IFS=$as_save_IFS 41084 41085 ;; 41086 esac 41087 fi 41088 JTREGEXE=$ac_cv_path_JTREGEXE 41089 if test -n "$JTREGEXE"; then 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 41091 $as_echo "$JTREGEXE" >&6; } 41092 else 41093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41094 $as_echo "no" >&6; } 41095 fi 41096 41097 41098 if test "x$JTREGEXE" = x; then 41099 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 41100 fi 41101 else 41102 # Otherwise we believe it is a complete path. Use it as it is. 41103 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 41104 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 41105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 41106 $as_echo_n "checking for JTREGEXE... " >&6; } 41107 if test ! -x "$tool_specified"; then 41108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 41109 $as_echo "not found" >&6; } 41110 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 41111 fi 41112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 41113 $as_echo "$tool_specified" >&6; } 41114 fi 41115 fi 41116 fi 41117 41118 41119 41120 if test "x$JTREGEXE" = x; then 41121 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 41122 fi 41123 41124 41125 JT_HOME="`$DIRNAME $JTREGEXE`" 41126 fi 41127 fi 41128 41129 41130 41131 41132 41133 41134 # Option used to tell the compiler whether to create 32- or 64-bit executables 41135 if test "x$TOOLCHAIN_TYPE" = xxlc; then 41136 COMPILER_TARGET_BITS_FLAG="-q" 41137 else 41138 COMPILER_TARGET_BITS_FLAG="-m" 41139 fi 41140 41141 41142 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 41143 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41144 ARFLAGS="-r" 41145 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41146 ARFLAGS="-X64" 41147 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 41148 # lib.exe is used as AR to create static libraries. 41149 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 41150 else 41151 ARFLAGS="" 41152 fi 41153 41154 41155 ## Setup strip. 41156 # FIXME: should this really be per platform, or should it be per toolchain type? 41157 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 41158 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 41159 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41160 STRIPFLAGS="-g" 41161 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 41162 STRIPFLAGS="-x" 41163 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41164 STRIPFLAGS="-S" 41165 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41166 STRIPFLAGS="-X32_64" 41167 fi 41168 41169 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41170 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 41171 fi 41172 41173 41174 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41175 # FIXME: break out into MCSFLAGS 41176 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41177 fi 41178 41179 41180 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41181 CC_OUT_OPTION=-Fo 41182 EXE_OUT_OPTION=-out: 41183 LD_OUT_OPTION=-out: 41184 AR_OUT_OPTION=-out: 41185 else 41186 # The option used to specify the target .o,.a or .so file. 41187 # When compiling, how to specify the to be created object file. 41188 CC_OUT_OPTION='-o$(SPACE)' 41189 # When linking, how to specify the to be created executable. 41190 EXE_OUT_OPTION='-o$(SPACE)' 41191 # When linking, how to specify the to be created dynamically linkable library. 41192 LD_OUT_OPTION='-o$(SPACE)' 41193 # When archiving, how to specify the to be create static archive for object files. 41194 AR_OUT_OPTION='rcs$(SPACE)' 41195 fi 41196 41197 41198 41199 41200 41201 # On Windows, we need to set RC flags. 41202 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41203 RC_FLAGS="-nologo -l0x409" 41204 if test "x$VARIANT" = xOPT; then 41205 RC_FLAGS="$RC_FLAGS -DNDEBUG" 41206 fi 41207 41208 # The version variables used to create RC_FLAGS may be overridden 41209 # in a custom configure script, or possibly the command line. 41210 # Let those variables be expanded at make time in spec.gmk. 41211 # The \$ are escaped to the shell, and the $(...) variables 41212 # are evaluated by make. 41213 RC_FLAGS="$RC_FLAGS \ 41214 -D\"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 41215 -D\"JDK_COMPANY=\$(COMPANY_NAME)\" \ 41216 -D\"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 41217 -D\"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 41218 -D\"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 41219 -D\"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 41220 -D\"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 41221 fi 41222 41223 41224 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41225 # silence copyright notice and other headers. 41226 COMMON_CCXXFLAGS="$COMMON_CCXXFLAGS -nologo" 41227 fi 41228 41229 if test "x$SYSROOT" != "x"; then 41230 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41231 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41232 # Solaris Studio does not have a concept of sysroot. Instead we must 41233 # make sure the default include and lib dirs are appended to each 41234 # compile and link command line. 41235 SYSROOT_CFLAGS="-I$SYSROOT/usr/include" 41236 SYSROOT_LDFLAGS="-L$SYSROOT/usr/lib$OPENJDK_TARGET_CPU_ISADIR \ 41237 -L$SYSROOT/lib$OPENJDK_TARGET_CPU_ISADIR \ 41238 -L$SYSROOT/usr/ccs/lib$OPENJDK_TARGET_CPU_ISADIR" 41239 fi 41240 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 41241 # Apple only wants -isysroot <path>, but we also need -iframework<path>/System/Library/Frameworks 41242 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\" -iframework\"$SYSROOT/System/Library/Frameworks\"" 41243 SYSROOT_LDFLAGS=$SYSROOT_CFLAGS 41244 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 41245 SYSROOT_CFLAGS="--sysroot=$SYSROOT" 41246 SYSROOT_LDFLAGS="--sysroot=$SYSROOT" 41247 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41248 SYSROOT_CFLAGS="-isysroot \"$SYSROOT\"" 41249 SYSROOT_LDFLAGS="-isysroot \"$SYSROOT\"" 41250 fi 41251 # Propagate the sysroot args to hotspot 41252 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $SYSROOT_CFLAGS" 41253 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $SYSROOT_CFLAGS" 41254 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $SYSROOT_LDFLAGS" 41255 fi 41256 41257 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 41258 # set this here so it doesn't have to be peppered throughout the forest 41259 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41260 SYSROOT_CFLAGS="$SYSROOT_CFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41261 SYSROOT_LDFLAGS="$SYSROOT_LDFLAGS -F\"$SYSROOT/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 41262 fi 41263 41264 41265 41266 41267 41268 # FIXME: Currently we must test this after toolchain but before flags. Fix! 41269 41270 # Now we can test some aspects on the target using configure macros. 41271 41272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 41273 $as_echo_n "checking for ANSI C header files... " >&6; } 41274 if ${ac_cv_header_stdc+:} false; then : 41275 $as_echo_n "(cached) " >&6 41276 else 41277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41278 /* end confdefs.h. */ 41279 #include <stdlib.h> 41280 #include <stdarg.h> 41281 #include <string.h> 41282 #include <float.h> 41283 41284 int 41285 main () 41286 { 41287 41288 ; 41289 return 0; 41290 } 41291 _ACEOF 41292 if ac_fn_cxx_try_compile "$LINENO"; then : 41293 ac_cv_header_stdc=yes 41294 else 41295 ac_cv_header_stdc=no 41296 fi 41297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41298 41299 if test $ac_cv_header_stdc = yes; then 41300 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 41301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41302 /* end confdefs.h. */ 41303 #include <string.h> 41304 41305 _ACEOF 41306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41307 $EGREP "memchr" >/dev/null 2>&1; then : 41308 41309 else 41310 ac_cv_header_stdc=no 41311 fi 41312 rm -f conftest* 41313 41314 fi 41315 41316 if test $ac_cv_header_stdc = yes; then 41317 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 41318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41319 /* end confdefs.h. */ 41320 #include <stdlib.h> 41321 41322 _ACEOF 41323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 41324 $EGREP "free" >/dev/null 2>&1; then : 41325 41326 else 41327 ac_cv_header_stdc=no 41328 fi 41329 rm -f conftest* 41330 41331 fi 41332 41333 if test $ac_cv_header_stdc = yes; then 41334 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41335 if test "$cross_compiling" = yes; then : 41336 : 41337 else 41338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41339 /* end confdefs.h. */ 41340 #include <ctype.h> 41341 #include <stdlib.h> 41342 #if ((' ' & 0x0FF) == 0x020) 41343 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41344 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41345 #else 41346 # define ISLOWER(c) \ 41347 (('a' <= (c) && (c) <= 'i') \ 41348 || ('j' <= (c) && (c) <= 'r') \ 41349 || ('s' <= (c) && (c) <= 'z')) 41350 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41351 #endif 41352 41353 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41354 int 41355 main () 41356 { 41357 int i; 41358 for (i = 0; i < 256; i++) 41359 if (XOR (islower (i), ISLOWER (i)) 41360 || toupper (i) != TOUPPER (i)) 41361 return 2; 41362 return 0; 41363 } 41364 _ACEOF 41365 if ac_fn_cxx_try_run "$LINENO"; then : 41366 41367 else 41368 ac_cv_header_stdc=no 41369 fi 41370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41371 conftest.$ac_objext conftest.beam conftest.$ac_ext 41372 fi 41373 41374 fi 41375 fi 41376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41377 $as_echo "$ac_cv_header_stdc" >&6; } 41378 if test $ac_cv_header_stdc = yes; then 41379 41380 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41381 41382 fi 41383 41384 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41385 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41386 inttypes.h stdint.h unistd.h 41387 do : 41388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41389 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41390 " 41391 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41392 cat >>confdefs.h <<_ACEOF 41393 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41394 _ACEOF 41395 41396 fi 41397 41398 done 41399 41400 41401 41402 ############################################################################### 41403 # 41404 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41405 # (The JVM can use 32 or 64 bit Java pointers but that decision 41406 # is made at runtime.) 41407 # 41408 41409 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41410 # Always specify -m flag on Solaris 41411 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41412 41413 # When we add flags to the "official" CFLAGS etc, we need to 41414 # keep track of these additions in ADDED_CFLAGS etc. These 41415 # will later be checked to make sure only controlled additions 41416 # have been made to CFLAGS etc. 41417 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41418 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41419 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41420 41421 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41422 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41423 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41424 41425 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41426 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41427 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41428 41429 elif test "x$COMPILE_TYPE" = xreduced; then 41430 if test "x$OPENJDK_TARGET_OS_TYPE" = xunix; then 41431 # Specify -m if running reduced on unix platforms 41432 41433 # When we add flags to the "official" CFLAGS etc, we need to 41434 # keep track of these additions in ADDED_CFLAGS etc. These 41435 # will later be checked to make sure only controlled additions 41436 # have been made to CFLAGS etc. 41437 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41438 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41439 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41440 41441 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41442 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41443 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41444 41445 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41446 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41447 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41448 41449 fi 41450 fi 41451 41452 # Make compilation sanity check 41453 for ac_header in stdio.h 41454 do : 41455 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41456 if test "x$ac_cv_header_stdio_h" = xyes; then : 41457 cat >>confdefs.h <<_ACEOF 41458 #define HAVE_STDIO_H 1 41459 _ACEOF 41460 41461 else 41462 41463 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41464 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41465 if test "x$COMPILE_TYPE" = xreduced; then 41466 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41467 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41468 elif test "x$COMPILE_TYPE" = xcross; then 41469 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41470 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41471 fi 41472 as_fn_error $? "Cannot continue." "$LINENO" 5 41473 41474 fi 41475 41476 done 41477 41478 41479 # The cast to long int works around a bug in the HP C Compiler 41480 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41481 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41482 # This bug is HP SR number 8606223364. 41483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41484 $as_echo_n "checking size of int *... " >&6; } 41485 if ${ac_cv_sizeof_int_p+:} false; then : 41486 $as_echo_n "(cached) " >&6 41487 else 41488 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41489 41490 else 41491 if test "$ac_cv_type_int_p" = yes; then 41492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41493 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41494 as_fn_error 77 "cannot compute sizeof (int *) 41495 See \`config.log' for more details" "$LINENO" 5; } 41496 else 41497 ac_cv_sizeof_int_p=0 41498 fi 41499 fi 41500 41501 fi 41502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41503 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41504 41505 41506 41507 cat >>confdefs.h <<_ACEOF 41508 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41509 _ACEOF 41510 41511 41512 41513 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41514 if test "x$ac_cv_sizeof_int_p" = x; then 41515 # The test failed, lets stick to the assumed value. 41516 { $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 41517 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41518 else 41519 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41520 41521 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41522 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41523 # Let's try to implicitely set the compilers target architecture and retry the test 41524 { $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 41525 $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;} 41526 { $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 41527 $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;} 41528 41529 # When we add flags to the "official" CFLAGS etc, we need to 41530 # keep track of these additions in ADDED_CFLAGS etc. These 41531 # will later be checked to make sure only controlled additions 41532 # have been made to CFLAGS etc. 41533 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41534 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41535 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41536 41537 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41538 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41539 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41540 41541 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41542 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41543 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41544 41545 41546 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41547 unset ac_cv_sizeof_int_p 41548 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41549 cat >>confdefs.h <<_ACEOF 41550 #undef SIZEOF_INT_P 41551 _ACEOF 41552 41553 # The cast to long int works around a bug in the HP C Compiler 41554 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41555 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41556 # This bug is HP SR number 8606223364. 41557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41558 $as_echo_n "checking size of int *... " >&6; } 41559 if ${ac_cv_sizeof_int_p+:} false; then : 41560 $as_echo_n "(cached) " >&6 41561 else 41562 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41563 41564 else 41565 if test "$ac_cv_type_int_p" = yes; then 41566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41568 as_fn_error 77 "cannot compute sizeof (int *) 41569 See \`config.log' for more details" "$LINENO" 5; } 41570 else 41571 ac_cv_sizeof_int_p=0 41572 fi 41573 fi 41574 41575 fi 41576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41577 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41578 41579 41580 41581 cat >>confdefs.h <<_ACEOF 41582 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41583 _ACEOF 41584 41585 41586 41587 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41588 41589 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41590 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 41591 fi 41592 fi 41593 fi 41594 41595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41596 $as_echo_n "checking for target address size... " >&6; } 41597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41598 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41599 41600 41601 ############################################################################### 41602 # 41603 # Is the target little of big endian? 41604 # 41605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41606 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41607 if ${ac_cv_c_bigendian+:} false; then : 41608 $as_echo_n "(cached) " >&6 41609 else 41610 ac_cv_c_bigendian=unknown 41611 # See if we're dealing with a universal compiler. 41612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41613 /* end confdefs.h. */ 41614 #ifndef __APPLE_CC__ 41615 not a universal capable compiler 41616 #endif 41617 typedef int dummy; 41618 41619 _ACEOF 41620 if ac_fn_cxx_try_compile "$LINENO"; then : 41621 41622 # Check for potential -arch flags. It is not universal unless 41623 # there are at least two -arch flags with different values. 41624 ac_arch= 41625 ac_prev= 41626 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41627 if test -n "$ac_prev"; then 41628 case $ac_word in 41629 i?86 | x86_64 | ppc | ppc64) 41630 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41631 ac_arch=$ac_word 41632 else 41633 ac_cv_c_bigendian=universal 41634 break 41635 fi 41636 ;; 41637 esac 41638 ac_prev= 41639 elif test "x$ac_word" = "x-arch"; then 41640 ac_prev=arch 41641 fi 41642 done 41643 fi 41644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41645 if test $ac_cv_c_bigendian = unknown; then 41646 # See if sys/param.h defines the BYTE_ORDER macro. 41647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41648 /* end confdefs.h. */ 41649 #include <sys/types.h> 41650 #include <sys/param.h> 41651 41652 int 41653 main () 41654 { 41655 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41656 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41657 && LITTLE_ENDIAN) 41658 bogus endian macros 41659 #endif 41660 41661 ; 41662 return 0; 41663 } 41664 _ACEOF 41665 if ac_fn_cxx_try_compile "$LINENO"; then : 41666 # It does; now see whether it defined to BIG_ENDIAN or not. 41667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41668 /* end confdefs.h. */ 41669 #include <sys/types.h> 41670 #include <sys/param.h> 41671 41672 int 41673 main () 41674 { 41675 #if BYTE_ORDER != BIG_ENDIAN 41676 not big endian 41677 #endif 41678 41679 ; 41680 return 0; 41681 } 41682 _ACEOF 41683 if ac_fn_cxx_try_compile "$LINENO"; then : 41684 ac_cv_c_bigendian=yes 41685 else 41686 ac_cv_c_bigendian=no 41687 fi 41688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41689 fi 41690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41691 fi 41692 if test $ac_cv_c_bigendian = unknown; then 41693 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41695 /* end confdefs.h. */ 41696 #include <limits.h> 41697 41698 int 41699 main () 41700 { 41701 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41702 bogus endian macros 41703 #endif 41704 41705 ; 41706 return 0; 41707 } 41708 _ACEOF 41709 if ac_fn_cxx_try_compile "$LINENO"; then : 41710 # It does; now see whether it defined to _BIG_ENDIAN or not. 41711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41712 /* end confdefs.h. */ 41713 #include <limits.h> 41714 41715 int 41716 main () 41717 { 41718 #ifndef _BIG_ENDIAN 41719 not big endian 41720 #endif 41721 41722 ; 41723 return 0; 41724 } 41725 _ACEOF 41726 if ac_fn_cxx_try_compile "$LINENO"; then : 41727 ac_cv_c_bigendian=yes 41728 else 41729 ac_cv_c_bigendian=no 41730 fi 41731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41732 fi 41733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41734 fi 41735 if test $ac_cv_c_bigendian = unknown; then 41736 # Compile a test program. 41737 if test "$cross_compiling" = yes; then : 41738 # Try to guess by grepping values from an object file. 41739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41740 /* end confdefs.h. */ 41741 short int ascii_mm[] = 41742 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41743 short int ascii_ii[] = 41744 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41745 int use_ascii (int i) { 41746 return ascii_mm[i] + ascii_ii[i]; 41747 } 41748 short int ebcdic_ii[] = 41749 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41750 short int ebcdic_mm[] = 41751 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41752 int use_ebcdic (int i) { 41753 return ebcdic_mm[i] + ebcdic_ii[i]; 41754 } 41755 extern int foo; 41756 41757 int 41758 main () 41759 { 41760 return use_ascii (foo) == use_ebcdic (foo); 41761 ; 41762 return 0; 41763 } 41764 _ACEOF 41765 if ac_fn_cxx_try_compile "$LINENO"; then : 41766 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41767 ac_cv_c_bigendian=yes 41768 fi 41769 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41770 if test "$ac_cv_c_bigendian" = unknown; then 41771 ac_cv_c_bigendian=no 41772 else 41773 # finding both strings is unlikely to happen, but who knows? 41774 ac_cv_c_bigendian=unknown 41775 fi 41776 fi 41777 fi 41778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41779 else 41780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41781 /* end confdefs.h. */ 41782 $ac_includes_default 41783 int 41784 main () 41785 { 41786 41787 /* Are we little or big endian? From Harbison&Steele. */ 41788 union 41789 { 41790 long int l; 41791 char c[sizeof (long int)]; 41792 } u; 41793 u.l = 1; 41794 return u.c[sizeof (long int) - 1] == 1; 41795 41796 ; 41797 return 0; 41798 } 41799 _ACEOF 41800 if ac_fn_cxx_try_run "$LINENO"; then : 41801 ac_cv_c_bigendian=no 41802 else 41803 ac_cv_c_bigendian=yes 41804 fi 41805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41806 conftest.$ac_objext conftest.beam conftest.$ac_ext 41807 fi 41808 41809 fi 41810 fi 41811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41812 $as_echo "$ac_cv_c_bigendian" >&6; } 41813 case $ac_cv_c_bigendian in #( 41814 yes) 41815 ENDIAN="big";; #( 41816 no) 41817 ENDIAN="little" ;; #( 41818 universal) 41819 ENDIAN="universal_endianness" 41820 ;; #( 41821 *) 41822 ENDIAN="unknown" ;; 41823 esac 41824 41825 41826 if test "x$ENDIAN" = xuniversal_endianness; then 41827 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41828 fi 41829 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41830 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 41831 fi 41832 41833 41834 # Configure flags for the tools 41835 41836 ############################################################################### 41837 # 41838 # How to compile shared libraries. 41839 # 41840 41841 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41842 PICFLAG="-fPIC" 41843 C_FLAG_REORDER='' 41844 CXX_FLAG_REORDER='' 41845 41846 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41847 # Linking is different on MacOSX 41848 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41849 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41850 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41851 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41852 SET_SHARED_LIBRARY_MAPFILE='' 41853 else 41854 # Default works for linux, might work on other platforms as well. 41855 SHARED_LIBRARY_FLAGS='-shared' 41856 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41857 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41858 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41859 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41860 fi 41861 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41862 PICFLAG='' 41863 C_FLAG_REORDER='' 41864 CXX_FLAG_REORDER='' 41865 41866 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41867 # Linking is different on MacOSX 41868 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41869 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41870 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41871 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41872 SET_SHARED_LIBRARY_MAPFILE='' 41873 else 41874 # Default works for linux, might work on other platforms as well. 41875 SHARED_LIBRARY_FLAGS='-shared' 41876 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41877 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41878 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41879 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41880 fi 41881 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41882 PICFLAG="-KPIC" 41883 C_FLAG_REORDER='-xF' 41884 CXX_FLAG_REORDER='-xF' 41885 SHARED_LIBRARY_FLAGS="-G" 41886 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41887 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41888 SET_SHARED_LIBRARY_NAME='' 41889 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41890 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41891 PICFLAG="-qpic=large" 41892 C_FLAG_REORDER='' 41893 CXX_FLAG_REORDER='' 41894 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41895 SET_EXECUTABLE_ORIGIN="" 41896 SET_SHARED_LIBRARY_ORIGIN='' 41897 SET_SHARED_LIBRARY_NAME='' 41898 SET_SHARED_LIBRARY_MAPFILE='' 41899 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41900 PICFLAG="" 41901 C_FLAG_REORDER='' 41902 CXX_FLAG_REORDER='' 41903 SHARED_LIBRARY_FLAGS="-LD" 41904 SET_EXECUTABLE_ORIGIN='' 41905 SET_SHARED_LIBRARY_ORIGIN='' 41906 SET_SHARED_LIBRARY_NAME='' 41907 SET_SHARED_LIBRARY_MAPFILE='' 41908 fi 41909 41910 41911 41912 41913 41914 41915 41916 41917 41918 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41919 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41920 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41921 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41922 fi 41923 # The (cross) compiler is now configured, we can now test capabilities 41924 # of the target platform. 41925 41926 41927 41928 ############################################################################### 41929 # 41930 # Setup the opt flags for different compilers 41931 # and different operating systems. 41932 # 41933 41934 # FIXME: this was indirectly the old default, but just inherited. 41935 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41936 # C_FLAG_DEPS="-MMD -MF" 41937 # fi 41938 41939 # Generate make dependency files 41940 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41941 C_FLAG_DEPS="-MMD -MF" 41942 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41943 C_FLAG_DEPS="-MMD -MF" 41944 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41945 C_FLAG_DEPS="-xMMD -xMF" 41946 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41947 C_FLAG_DEPS="-qmakedep=gcc -MF" 41948 fi 41949 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41950 41951 41952 41953 # Debug symbols 41954 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41955 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41956 # reduce from default "-g2" option to save space 41957 CFLAGS_DEBUG_SYMBOLS="-g1" 41958 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41959 else 41960 CFLAGS_DEBUG_SYMBOLS="-g" 41961 CXXFLAGS_DEBUG_SYMBOLS="-g" 41962 fi 41963 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41964 CFLAGS_DEBUG_SYMBOLS="-g" 41965 CXXFLAGS_DEBUG_SYMBOLS="-g" 41966 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41967 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41968 # FIXME: likely a bug, this disables debug symbols rather than enables them 41969 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41970 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41971 CFLAGS_DEBUG_SYMBOLS="-g" 41972 CXXFLAGS_DEBUG_SYMBOLS="-g" 41973 fi 41974 41975 41976 41977 # bounds, memory and behavior checking options 41978 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41979 case $DEBUG_LEVEL in 41980 release ) 41981 # no adjustment 41982 ;; 41983 fastdebug ) 41984 # no adjustment 41985 ;; 41986 slowdebug ) 41987 # Add runtime stack smashing and undefined behavior checks 41988 CFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 41989 CXXFLAGS_DEBUG_OPTIONS="-fstack-protector-all --param ssp-buffer-size=1" 41990 ;; 41991 esac 41992 fi 41993 41994 41995 41996 # Optimization levels 41997 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41998 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41999 42000 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 42001 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 42002 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 42003 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 42004 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 42005 C_O_FLAG_DEBUG="-xregs=no%frameptr" 42006 C_O_FLAG_NONE="-xregs=no%frameptr" 42007 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 42008 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 42009 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 42010 CXX_O_FLAG_DEBUG="-xregs=no%frameptr" 42011 CXX_O_FLAG_NONE="-xregs=no%frameptr" 42012 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42013 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 42014 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 42015 fi 42016 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42017 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 42018 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42019 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 42020 C_O_FLAG_DEBUG="" 42021 C_O_FLAG_NONE="" 42022 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 42023 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42024 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 42025 C_O_FLAG_DEBUG="" 42026 CXX_O_FLAG_NONE="" 42027 fi 42028 else 42029 # The remaining toolchains share opt flags between CC and CXX; 42030 # setup for C and duplicate afterwards. 42031 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42032 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42033 # On MacOSX we optimize for size, something 42034 # we should do for all platforms? 42035 C_O_FLAG_HIGHEST="-Os" 42036 C_O_FLAG_HI="-Os" 42037 C_O_FLAG_NORM="-Os" 42038 else 42039 C_O_FLAG_HIGHEST="-O3" 42040 C_O_FLAG_HI="-O3" 42041 C_O_FLAG_NORM="-O2" 42042 fi 42043 C_O_FLAG_DEBUG="-O0" 42044 C_O_FLAG_NONE="-O0" 42045 elif test "x$TOOLCHAIN_TYPE" = xclang; then 42046 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42047 # On MacOSX we optimize for size, something 42048 # we should do for all platforms? 42049 C_O_FLAG_HIGHEST="-Os" 42050 C_O_FLAG_HI="-Os" 42051 C_O_FLAG_NORM="-Os" 42052 else 42053 C_O_FLAG_HIGHEST="-O3" 42054 C_O_FLAG_HI="-O3" 42055 C_O_FLAG_NORM="-O2" 42056 fi 42057 C_O_FLAG_DEBUG="-O0" 42058 C_O_FLAG_NONE="-O0" 42059 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42060 C_O_FLAG_HIGHEST="-O3" 42061 C_O_FLAG_HI="-O3 -qstrict" 42062 C_O_FLAG_NORM="-O2" 42063 C_O_FLAG_DEBUG="-qnoopt" 42064 C_O_FLAG_NONE="-qnoop" 42065 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42066 C_O_FLAG_HIGHEST="-O2" 42067 C_O_FLAG_HI="-O1" 42068 C_O_FLAG_NORM="-O1" 42069 C_O_FLAG_DEBUG="-Od" 42070 C_O_FLAG_NONE="-Od" 42071 fi 42072 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 42073 CXX_O_FLAG_HI="$C_O_FLAG_HI" 42074 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 42075 CXX_O_FLAG_DEBUG="$C_O_FLAG_DEBUG" 42076 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 42077 fi 42078 42079 # Adjust optimization flags according to debug level. 42080 case $DEBUG_LEVEL in 42081 release ) 42082 # no adjustment 42083 ;; 42084 fastdebug ) 42085 # Not quite so much optimization 42086 C_O_FLAG_HI="$C_O_FLAG_NORM" 42087 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 42088 ;; 42089 slowdebug ) 42090 # Disable optimization 42091 C_O_FLAG_HIGHEST="$C_O_FLAG_DEBUG" 42092 C_O_FLAG_HI="$C_O_FLAG_DEBUG" 42093 C_O_FLAG_NORM="$C_O_FLAG_DEBUG" 42094 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_DEBUG" 42095 CXX_O_FLAG_HI="$CXX_O_FLAG_DEBUG" 42096 CXX_O_FLAG_NORM="$CXX_O_FLAG_DEBUG" 42097 ;; 42098 esac 42099 42100 42101 42102 42103 42104 42105 42106 42107 42108 42109 42110 42111 42112 # Special extras... 42113 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42114 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 42115 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42116 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 42117 fi 42118 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42119 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 42120 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42121 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 42122 fi 42123 42124 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 42125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 42126 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 42127 fi 42128 42129 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 42130 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 42131 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 42132 fi 42133 42134 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 42135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 42136 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 42137 fi 42138 42139 42140 # Check whether --with-extra-cflags was given. 42141 if test "${with_extra_cflags+set}" = set; then : 42142 withval=$with_extra_cflags; 42143 fi 42144 42145 42146 42147 # Check whether --with-extra-cxxflags was given. 42148 if test "${with_extra_cxxflags+set}" = set; then : 42149 withval=$with_extra_cxxflags; 42150 fi 42151 42152 42153 42154 # Check whether --with-extra-ldflags was given. 42155 if test "${with_extra_ldflags+set}" = set; then : 42156 withval=$with_extra_ldflags; 42157 fi 42158 42159 42160 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 42161 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 42162 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 42163 42164 # Hotspot needs these set in their legacy form 42165 LEGACY_EXTRA_CFLAGS="$LEGACY_EXTRA_CFLAGS $with_extra_cflags" 42166 LEGACY_EXTRA_CXXFLAGS="$LEGACY_EXTRA_CXXFLAGS $with_extra_cxxflags" 42167 LEGACY_EXTRA_LDFLAGS="$LEGACY_EXTRA_LDFLAGS $with_extra_ldflags" 42168 42169 42170 42171 42172 42173 ############################################################################### 42174 # 42175 # Now setup the CFLAGS and LDFLAGS for the JDK build. 42176 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 42177 # 42178 42179 # Setup compiler/platform specific flags into 42180 # CFLAGS_JDK - C Compiler flags 42181 # CXXFLAGS_JDK - C++ Compiler flags 42182 # COMMON_CCXXFLAGS_JDK - common to C and C++ 42183 if test "x$TOOLCHAIN_TYPE" = xgcc; then 42184 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 42185 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 42186 case $OPENJDK_TARGET_CPU_ARCH in 42187 arm ) 42188 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42189 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42190 ;; 42191 ppc ) 42192 # on ppc we don't prevent gcc to omit frame pointer but do prevent strict aliasing 42193 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42194 ;; 42195 * ) 42196 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -fno-omit-frame-pointer" 42197 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 42198 ;; 42199 esac 42200 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42201 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 42202 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 42203 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 42204 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 42205 fi 42206 42207 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 42208 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 42209 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 42210 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42211 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 42212 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42213 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS $COMMON_CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 42214 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 42215 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 42216 -DWIN32 -DIAL" 42217 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42218 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_AMD64_ -Damd64" 42219 else 42220 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_X86_ -Dx86" 42221 fi 42222 fi 42223 42224 ############################################################################### 42225 42226 # Adjust flags according to debug level. 42227 case $DEBUG_LEVEL in 42228 fastdebug | slowdebug ) 42229 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS $CFLAGS_DEBUG_OPTIONS" 42230 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS $CXXFLAGS_DEBUG_OPTIONS" 42231 JAVAC_FLAGS="$JAVAC_FLAGS -g" 42232 ;; 42233 release ) 42234 ;; 42235 * ) 42236 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42237 ;; 42238 esac 42239 42240 # Setup LP64 42241 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK $ADD_LP64" 42242 42243 # Set some common defines. These works for all compilers, but assume 42244 # -D is universally accepted. 42245 42246 # Setup endianness 42247 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 42248 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 42249 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 42250 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 42251 # Note: -Dmacro is the same as #define macro 1 42252 # -Dmacro= is the same as #define macro 42253 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42254 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 42255 else 42256 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 42257 fi 42258 else 42259 # Same goes for _BIG_ENDIAN. Do we really need to set *ENDIAN on Solaris if they 42260 # are defined in the system? 42261 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42262 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN=" 42263 else 42264 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_BIG_ENDIAN" 42265 fi 42266 fi 42267 42268 # Setup target OS define. Use OS target name but in upper case. 42269 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 42270 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 42271 42272 # Setup target CPU 42273 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42274 42275 # Setup debug/release defines 42276 if test "x$DEBUG_LEVEL" = xrelease; then 42277 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DNDEBUG" 42278 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42279 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DTRIMMED" 42280 fi 42281 else 42282 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DDEBUG" 42283 fi 42284 42285 # Setup release name 42286 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42287 42288 42289 # Set some additional per-OS defines. 42290 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42291 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42292 elif test "x$OPENJDK_TARGET_OS" = xaix; then 42293 # FIXME: PPC64 should not be here. 42294 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DPPC64" 42295 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 42296 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 42297 fi 42298 42299 # Additional macosx handling 42300 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42301 # Setting these parameters makes it an error to link to macosx APIs that are 42302 # newer than the given OS version and makes the linked binaries compatible 42303 # even if built on a newer version of the OS. 42304 # The expected format is X.Y.Z 42305 MACOSX_VERSION_MIN=10.7.0 42306 42307 42308 # The macro takes the version with no dots, ex: 1070 42309 # Let the flags variables get resolved in make for easier override on make 42310 # command line. 42311 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42312 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42313 fi 42314 42315 # Setup some hard coded includes 42316 COMMON_CCXXFLAGS_JDK="$COMMON_CCXXFLAGS_JDK \ 42317 -I${JDK_TOPDIR}/src/java.base/share/native/include \ 42318 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS/native/include \ 42319 -I${JDK_TOPDIR}/src/java.base/$OPENJDK_TARGET_OS_TYPE/native/include" 42320 42321 # The shared libraries are compiled using the picflag. 42322 CFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42323 CXXFLAGS_JDKLIB="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42324 42325 # Executable flags 42326 CFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CFLAGS_JDK" 42327 CXXFLAGS_JDKEXE="$COMMON_CCXXFLAGS_JDK $CXXFLAGS_JDK" 42328 42329 42330 42331 42332 42333 42334 # Setup LDFLAGS et al. 42335 # 42336 42337 # Now this is odd. The JDK native libraries have to link against libjvm.so 42338 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42339 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42340 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42341 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42342 # libraries will link to whatever is in memory. Yuck. 42343 # 42344 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42345 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42346 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42347 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 42348 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42349 fi 42350 # TODO: make -debug optional "--disable-full-debug-symbols" 42351 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42352 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 42353 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42354 # We have previously set HAS_GNU_HASH if this is the case 42355 if test -n "$HAS_GNU_HASH"; then 42356 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both" 42357 fi 42358 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42359 # And since we now know that the linker is gnu, then add -z defs, to forbid 42360 # undefined symbols in object files. 42361 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42362 case $DEBUG_LEVEL in 42363 release ) 42364 # tell linker to optimize libraries. 42365 # Should this be supplied to the OSS linker as well? 42366 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42367 ;; 42368 slowdebug ) 42369 if test "x$HAS_LINKER_NOW" = "xtrue"; then 42370 # do relocations at load 42371 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_NOW_FLAG" 42372 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_NOW_FLAG" 42373 fi 42374 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42375 # mark relocations read only 42376 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42377 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42378 fi 42379 ;; 42380 fastdebug ) 42381 if test "x$HAS_LINKER_RELRO" = "xtrue"; then 42382 # mark relocations read only 42383 LDFLAGS_JDK="$LDFLAGS_JDK $LINKER_RELRO_FLAG" 42384 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK $LINKER_RELRO_FLAG" 42385 fi 42386 ;; 42387 * ) 42388 as_fn_error $? "Unrecognized \$DEBUG_LEVEL: $DEBUG_LEVEL" "$LINENO" 5 42389 ;; 42390 esac 42391 fi 42392 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42393 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 42394 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 42395 fi 42396 42397 # Customize LDFLAGS for executables 42398 42399 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42400 42401 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42402 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42403 LDFLAGS_STACK_SIZE=1048576 42404 else 42405 LDFLAGS_STACK_SIZE=327680 42406 fi 42407 LDFLAGS_JDKEXE="${LDFLAGS_JDKEXE} /STACK:$LDFLAGS_STACK_SIZE" 42408 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 42409 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42410 fi 42411 42412 # Customize LDFLAGS for libs 42413 LDFLAGS_JDKLIB="${LDFLAGS_JDK}" 42414 42415 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 42416 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -dll -libpath:${OUTPUT_ROOT}/support/modules_libs/java.base" 42417 LDFLAGS_JDKLIB_SUFFIX="" 42418 else 42419 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} ${SHARED_LIBRARY_FLAGS} \ 42420 -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}" 42421 42422 # On some platforms (mac) the linker warns about non existing -L dirs. 42423 # Add server first if available. Linking aginst client does not always produce the same results. 42424 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42425 # Default to server for other variants. 42426 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42427 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42428 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42429 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/client" 42430 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42431 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42432 else 42433 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${OUTPUT_ROOT}/support/modules_libs/java.base${OPENJDK_TARGET_CPU_LIBDIR}/server" 42434 fi 42435 42436 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42437 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 42438 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42439 fi 42440 fi 42441 42442 42443 42444 42445 42446 42447 42448 42449 # Some Zero and Shark settings. 42450 # ZERO_ARCHFLAG tells the compiler which mode to build for 42451 case "${OPENJDK_TARGET_CPU}" in 42452 s390) 42453 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42454 ;; 42455 *) 42456 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42457 esac 42458 42459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42460 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42461 supports=yes 42462 42463 saved_cflags="$CFLAGS" 42464 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42465 ac_ext=c 42466 ac_cpp='$CPP $CPPFLAGS' 42467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42469 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42470 42471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42472 /* end confdefs.h. */ 42473 int i; 42474 _ACEOF 42475 if ac_fn_c_try_compile "$LINENO"; then : 42476 42477 else 42478 supports=no 42479 fi 42480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42481 ac_ext=cpp 42482 ac_cpp='$CXXCPP $CPPFLAGS' 42483 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42484 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42485 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42486 42487 CFLAGS="$saved_cflags" 42488 42489 saved_cxxflags="$CXXFLAGS" 42490 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42491 ac_ext=cpp 42492 ac_cpp='$CXXCPP $CPPFLAGS' 42493 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42494 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42495 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42496 42497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42498 /* end confdefs.h. */ 42499 int i; 42500 _ACEOF 42501 if ac_fn_cxx_try_compile "$LINENO"; then : 42502 42503 else 42504 supports=no 42505 fi 42506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42507 ac_ext=cpp 42508 ac_cpp='$CXXCPP $CPPFLAGS' 42509 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42510 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42511 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42512 42513 CXXFLAGS="$saved_cxxflags" 42514 42515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42516 $as_echo "$supports" >&6; } 42517 if test "x$supports" = "xyes" ; then 42518 : 42519 else 42520 ZERO_ARCHFLAG="" 42521 fi 42522 42523 42524 42525 # Check that the compiler supports -mX (or -qX on AIX) flags 42526 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42527 42528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42529 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42530 supports=yes 42531 42532 saved_cflags="$CFLAGS" 42533 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42534 ac_ext=c 42535 ac_cpp='$CPP $CPPFLAGS' 42536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42538 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42539 42540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42541 /* end confdefs.h. */ 42542 int i; 42543 _ACEOF 42544 if ac_fn_c_try_compile "$LINENO"; then : 42545 42546 else 42547 supports=no 42548 fi 42549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42550 ac_ext=cpp 42551 ac_cpp='$CXXCPP $CPPFLAGS' 42552 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42553 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42554 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42555 42556 CFLAGS="$saved_cflags" 42557 42558 saved_cxxflags="$CXXFLAGS" 42559 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42560 ac_ext=cpp 42561 ac_cpp='$CXXCPP $CPPFLAGS' 42562 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42563 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42564 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42565 42566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42567 /* end confdefs.h. */ 42568 int i; 42569 _ACEOF 42570 if ac_fn_cxx_try_compile "$LINENO"; then : 42571 42572 else 42573 supports=no 42574 fi 42575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42576 ac_ext=cpp 42577 ac_cpp='$CXXCPP $CPPFLAGS' 42578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42581 42582 CXXFLAGS="$saved_cxxflags" 42583 42584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42585 $as_echo "$supports" >&6; } 42586 if test "x$supports" = "xyes" ; then 42587 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42588 else 42589 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42590 fi 42591 42592 42593 42594 case "${TOOLCHAIN_TYPE}" in 42595 microsoft) 42596 CFLAGS_WARNINGS_ARE_ERRORS="-WX" 42597 ;; 42598 solstudio) 42599 CFLAGS_WARNINGS_ARE_ERRORS="-errtags -errwarn=%all" 42600 ;; 42601 gcc) 42602 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42603 ;; 42604 clang) 42605 CFLAGS_WARNINGS_ARE_ERRORS="-Werror" 42606 ;; 42607 esac 42608 42609 42610 42611 # Setup debug symbols (need objcopy from the toolchain for that) 42612 42613 # 42614 # ENABLE_DEBUG_SYMBOLS 42615 # This must be done after the toolchain is setup, since we're looking at objcopy. 42616 # 42617 # Check whether --enable-debug-symbols was given. 42618 if test "${enable_debug_symbols+set}" = set; then : 42619 enableval=$enable_debug_symbols; 42620 fi 42621 42622 42623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42624 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42625 42626 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42627 # explicit enabling of enable-debug-symbols and can't find objcopy 42628 # this is an error 42629 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42630 fi 42631 42632 if test "x$enable_debug_symbols" = "xyes"; then 42633 ENABLE_DEBUG_SYMBOLS=true 42634 elif test "x$enable_debug_symbols" = "xno"; then 42635 ENABLE_DEBUG_SYMBOLS=false 42636 else 42637 # Default is on if objcopy is found 42638 if test "x$OBJCOPY" != x; then 42639 ENABLE_DEBUG_SYMBOLS=true 42640 # MacOS X and Windows don't use objcopy but default is on for those OSes 42641 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42642 ENABLE_DEBUG_SYMBOLS=true 42643 else 42644 ENABLE_DEBUG_SYMBOLS=false 42645 fi 42646 fi 42647 42648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42649 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42650 42651 # 42652 # ZIP_DEBUGINFO_FILES 42653 # 42654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42655 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42656 # Check whether --enable-zip-debug-info was given. 42657 if test "${enable_zip_debug_info+set}" = set; then : 42658 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42659 else 42660 enable_zip_debug_info="yes" 42661 fi 42662 42663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42664 $as_echo "${enable_zip_debug_info}" >&6; } 42665 42666 if test "x${enable_zip_debug_info}" = "xno"; then 42667 ZIP_DEBUGINFO_FILES=false 42668 else 42669 ZIP_DEBUGINFO_FILES=true 42670 fi 42671 42672 42673 42674 42675 42676 ############################################################################### 42677 # 42678 # Check dependencies for external and internal libraries. 42679 # 42680 ############################################################################### 42681 42682 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42683 42684 # When using cygwin or msys, we need a wrapper binary that renames 42685 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42686 # @files and rewrites these too! This wrapper binary is 42687 # called fixpath. 42688 FIXPATH= 42689 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42691 $as_echo_n "checking if fixpath can be created... " >&6; } 42692 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42693 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42694 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42695 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42696 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42697 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42698 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42699 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42700 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42701 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42702 42703 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42704 # @ was chosen as separator to minimize risk of other tools messing around with it 42705 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42706 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42707 42708 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42709 fi 42710 rm -f $OUTPUT_ROOT/fixpath* 42711 cd $OUTPUT_ROOT 42712 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42713 cd $CURDIR 42714 42715 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42717 $as_echo "no" >&6; } 42718 cat $OUTPUT_ROOT/fixpath1.log 42719 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42720 fi 42721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42722 $as_echo "yes" >&6; } 42723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42724 $as_echo_n "checking if fixpath.exe works... " >&6; } 42725 cd $OUTPUT_ROOT 42726 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42727 cd $CURDIR 42728 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42730 $as_echo "no" >&6; } 42731 cat $OUTPUT_ROOT/fixpath2.log 42732 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42733 fi 42734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42735 $as_echo "yes" >&6; } 42736 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42737 fi 42738 42739 42740 42741 42742 42743 42744 ############################################################################### 42745 # 42746 # OS specific settings that we never will need to probe. 42747 # 42748 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42750 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42751 PULSE_NOT_NEEDED=yes 42752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42753 $as_echo "pulse" >&6; } 42754 fi 42755 42756 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42758 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42759 ALSA_NOT_NEEDED=yes 42760 PULSE_NOT_NEEDED=yes 42761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42762 $as_echo "alsa pulse" >&6; } 42763 fi 42764 42765 if test "x$OPENJDK_TARGET_OS" = xaix; then 42766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42767 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42768 ALSA_NOT_NEEDED=yes 42769 PULSE_NOT_NEEDED=yes 42770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42771 $as_echo "alsa pulse" >&6; } 42772 fi 42773 42774 42775 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42777 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42778 CUPS_NOT_NEEDED=yes 42779 ALSA_NOT_NEEDED=yes 42780 PULSE_NOT_NEEDED=yes 42781 X11_NOT_NEEDED=yes 42782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42783 $as_echo "alsa cups pulse x11" >&6; } 42784 fi 42785 42786 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42788 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42789 ALSA_NOT_NEEDED=yes 42790 PULSE_NOT_NEEDED=yes 42791 X11_NOT_NEEDED=yes 42792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42793 $as_echo "alsa pulse x11" >&6; } 42794 fi 42795 42796 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42798 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42799 ALSA_NOT_NEEDED=yes 42800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42801 $as_echo "alsa" >&6; } 42802 fi 42803 42804 if test "x$OPENJDK" = "xfalse"; then 42805 FREETYPE_NOT_NEEDED=yes 42806 fi 42807 42808 if test "x$SUPPORT_HEADFUL" = xno; then 42809 X11_NOT_NEEDED=yes 42810 fi 42811 42812 42813 42814 ############################################################################### 42815 # 42816 # Check for X Windows 42817 # 42818 42819 if test "x$X11_NOT_NEEDED" = xyes; then 42820 if test "x${with_x}" != x; then 42821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: X11 is not used, so --with-x is ignored" >&5 42822 $as_echo "$as_me: WARNING: X11 is not used, so --with-x is ignored" >&2;} 42823 fi 42824 X_CFLAGS= 42825 X_LIBS= 42826 else 42827 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42828 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42829 # --x-libraries for the sysroot, if that seems to be correct. 42830 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 42831 if test "x$SYSROOT" != "x"; then 42832 if test "x$x_includes" = xNONE; then 42833 if test -f "$SYSROOT/usr/X11R6/include/X11/Xlib.h"; then 42834 x_includes="$SYSROOT/usr/X11R6/include" 42835 elif test -f "$SYSROOT/usr/include/X11/Xlib.h"; then 42836 x_includes="$SYSROOT/usr/include" 42837 fi 42838 fi 42839 if test "x$x_libraries" = xNONE; then 42840 if test -f "$SYSROOT/usr/X11R6/lib/libX11.so"; then 42841 x_libraries="$SYSROOT/usr/X11R6/lib" 42842 elif test "$SYSROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42843 x_libraries="$SYSROOT/usr/lib64" 42844 elif test -f "$SYSROOT/usr/lib/libX11.so"; then 42845 x_libraries="$SYSROOT/usr/lib" 42846 fi 42847 fi 42848 fi 42849 fi 42850 42851 # Now let autoconf do it's magic 42852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42853 $as_echo_n "checking for X... " >&6; } 42854 42855 42856 # Check whether --with-x was given. 42857 if test "${with_x+set}" = set; then : 42858 withval=$with_x; 42859 fi 42860 42861 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42862 if test "x$with_x" = xno; then 42863 # The user explicitly disabled X. 42864 have_x=disabled 42865 else 42866 case $x_includes,$x_libraries in #( 42867 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42868 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42869 $as_echo_n "(cached) " >&6 42870 else 42871 # One or both of the vars are not set, and there is no cached value. 42872 ac_x_includes=no ac_x_libraries=no 42873 rm -f -r conftest.dir 42874 if mkdir conftest.dir; then 42875 cd conftest.dir 42876 cat >Imakefile <<'_ACEOF' 42877 incroot: 42878 @echo incroot='${INCROOT}' 42879 usrlibdir: 42880 @echo usrlibdir='${USRLIBDIR}' 42881 libdir: 42882 @echo libdir='${LIBDIR}' 42883 _ACEOF 42884 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42885 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42886 for ac_var in incroot usrlibdir libdir; do 42887 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42888 done 42889 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42890 for ac_extension in a so sl dylib la dll; do 42891 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42892 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42893 ac_im_usrlibdir=$ac_im_libdir; break 42894 fi 42895 done 42896 # Screen out bogus values from the imake configuration. They are 42897 # bogus both because they are the default anyway, and because 42898 # using them would break gcc on systems where it needs fixed includes. 42899 case $ac_im_incroot in 42900 /usr/include) ac_x_includes= ;; 42901 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42902 esac 42903 case $ac_im_usrlibdir in 42904 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42905 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42906 esac 42907 fi 42908 cd .. 42909 rm -f -r conftest.dir 42910 fi 42911 42912 # Standard set of common directories for X headers. 42913 # Check X11 before X11Rn because it is often a symlink to the current release. 42914 ac_x_header_dirs=' 42915 /usr/X11/include 42916 /usr/X11R7/include 42917 /usr/X11R6/include 42918 /usr/X11R5/include 42919 /usr/X11R4/include 42920 42921 /usr/include/X11 42922 /usr/include/X11R7 42923 /usr/include/X11R6 42924 /usr/include/X11R5 42925 /usr/include/X11R4 42926 42927 /usr/local/X11/include 42928 /usr/local/X11R7/include 42929 /usr/local/X11R6/include 42930 /usr/local/X11R5/include 42931 /usr/local/X11R4/include 42932 42933 /usr/local/include/X11 42934 /usr/local/include/X11R7 42935 /usr/local/include/X11R6 42936 /usr/local/include/X11R5 42937 /usr/local/include/X11R4 42938 42939 /usr/X386/include 42940 /usr/x386/include 42941 /usr/XFree86/include/X11 42942 42943 /usr/include 42944 /usr/local/include 42945 /usr/unsupported/include 42946 /usr/athena/include 42947 /usr/local/x11r5/include 42948 /usr/lpp/Xamples/include 42949 42950 /usr/openwin/include 42951 /usr/openwin/share/include' 42952 42953 if test "$ac_x_includes" = no; then 42954 # Guess where to find include files, by looking for Xlib.h. 42955 # First, try using that file with no special directory specified. 42956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42957 /* end confdefs.h. */ 42958 #include <X11/Xlib.h> 42959 _ACEOF 42960 if ac_fn_cxx_try_cpp "$LINENO"; then : 42961 # We can compile using X headers with no special include directory. 42962 ac_x_includes= 42963 else 42964 for ac_dir in $ac_x_header_dirs; do 42965 if test -r "$ac_dir/X11/Xlib.h"; then 42966 ac_x_includes=$ac_dir 42967 break 42968 fi 42969 done 42970 fi 42971 rm -f conftest.err conftest.i conftest.$ac_ext 42972 fi # $ac_x_includes = no 42973 42974 if test "$ac_x_libraries" = no; then 42975 # Check for the libraries. 42976 # See if we find them without any special options. 42977 # Don't add to $LIBS permanently. 42978 ac_save_LIBS=$LIBS 42979 LIBS="-lX11 $LIBS" 42980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42981 /* end confdefs.h. */ 42982 #include <X11/Xlib.h> 42983 int 42984 main () 42985 { 42986 XrmInitialize () 42987 ; 42988 return 0; 42989 } 42990 _ACEOF 42991 if ac_fn_cxx_try_link "$LINENO"; then : 42992 LIBS=$ac_save_LIBS 42993 # We can link X programs with no special library path. 42994 ac_x_libraries= 42995 else 42996 LIBS=$ac_save_LIBS 42997 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42998 do 42999 # Don't even attempt the hair of trying to link an X program! 43000 for ac_extension in a so sl dylib la dll; do 43001 if test -r "$ac_dir/libX11.$ac_extension"; then 43002 ac_x_libraries=$ac_dir 43003 break 2 43004 fi 43005 done 43006 done 43007 fi 43008 rm -f core conftest.err conftest.$ac_objext \ 43009 conftest$ac_exeext conftest.$ac_ext 43010 fi # $ac_x_libraries = no 43011 43012 case $ac_x_includes,$ac_x_libraries in #( 43013 no,* | *,no | *\'*) 43014 # Didn't find X, or a directory has "'" in its name. 43015 ac_cv_have_x="have_x=no";; #( 43016 *) 43017 # Record where we found X for the cache. 43018 ac_cv_have_x="have_x=yes\ 43019 ac_x_includes='$ac_x_includes'\ 43020 ac_x_libraries='$ac_x_libraries'" 43021 esac 43022 fi 43023 ;; #( 43024 *) have_x=yes;; 43025 esac 43026 eval "$ac_cv_have_x" 43027 fi # $with_x != no 43028 43029 if test "$have_x" != yes; then 43030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 43031 $as_echo "$have_x" >&6; } 43032 no_x=yes 43033 else 43034 # If each of the values was on the command line, it overrides each guess. 43035 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 43036 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 43037 # Update the cache value to reflect the command line values. 43038 ac_cv_have_x="have_x=yes\ 43039 ac_x_includes='$x_includes'\ 43040 ac_x_libraries='$x_libraries'" 43041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 43042 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 43043 fi 43044 43045 if test "$no_x" = yes; then 43046 # Not all programs may use this symbol, but it does not hurt to define it. 43047 43048 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 43049 43050 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 43051 else 43052 if test -n "$x_includes"; then 43053 X_CFLAGS="$X_CFLAGS -I$x_includes" 43054 fi 43055 43056 # It would also be nice to do this for all -L options, not just this one. 43057 if test -n "$x_libraries"; then 43058 X_LIBS="$X_LIBS -L$x_libraries" 43059 # For Solaris; some versions of Sun CC require a space after -R and 43060 # others require no space. Words are not sufficient . . . . 43061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 43062 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 43063 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 43064 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 43065 ac_cxx_werror_flag=yes 43066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43067 /* end confdefs.h. */ 43068 43069 int 43070 main () 43071 { 43072 43073 ; 43074 return 0; 43075 } 43076 _ACEOF 43077 if ac_fn_cxx_try_link "$LINENO"; then : 43078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43079 $as_echo "no" >&6; } 43080 X_LIBS="$X_LIBS -R$x_libraries" 43081 else 43082 LIBS="$ac_xsave_LIBS -R $x_libraries" 43083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43084 /* end confdefs.h. */ 43085 43086 int 43087 main () 43088 { 43089 43090 ; 43091 return 0; 43092 } 43093 _ACEOF 43094 if ac_fn_cxx_try_link "$LINENO"; then : 43095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43096 $as_echo "yes" >&6; } 43097 X_LIBS="$X_LIBS -R $x_libraries" 43098 else 43099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 43100 $as_echo "neither works" >&6; } 43101 fi 43102 rm -f core conftest.err conftest.$ac_objext \ 43103 conftest$ac_exeext conftest.$ac_ext 43104 fi 43105 rm -f core conftest.err conftest.$ac_objext \ 43106 conftest$ac_exeext conftest.$ac_ext 43107 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 43108 LIBS=$ac_xsave_LIBS 43109 fi 43110 43111 # Check for system-dependent libraries X programs must link with. 43112 # Do this before checking for the system-independent R6 libraries 43113 # (-lICE), since we may need -lsocket or whatever for X linking. 43114 43115 if test "$ISC" = yes; then 43116 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 43117 else 43118 # Martyn Johnson says this is needed for Ultrix, if the X 43119 # libraries were built with DECnet support. And Karl Berry says 43120 # the Alpha needs dnet_stub (dnet does not exist). 43121 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 43122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43123 /* end confdefs.h. */ 43124 43125 /* Override any GCC internal prototype to avoid an error. 43126 Use char because int might match the return type of a GCC 43127 builtin and then its argument prototype would still apply. */ 43128 #ifdef __cplusplus 43129 extern "C" 43130 #endif 43131 char XOpenDisplay (); 43132 int 43133 main () 43134 { 43135 return XOpenDisplay (); 43136 ; 43137 return 0; 43138 } 43139 _ACEOF 43140 if ac_fn_cxx_try_link "$LINENO"; then : 43141 43142 else 43143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 43144 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 43145 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 43146 $as_echo_n "(cached) " >&6 43147 else 43148 ac_check_lib_save_LIBS=$LIBS 43149 LIBS="-ldnet $LIBS" 43150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43151 /* end confdefs.h. */ 43152 43153 /* Override any GCC internal prototype to avoid an error. 43154 Use char because int might match the return type of a GCC 43155 builtin and then its argument prototype would still apply. */ 43156 #ifdef __cplusplus 43157 extern "C" 43158 #endif 43159 char dnet_ntoa (); 43160 int 43161 main () 43162 { 43163 return dnet_ntoa (); 43164 ; 43165 return 0; 43166 } 43167 _ACEOF 43168 if ac_fn_cxx_try_link "$LINENO"; then : 43169 ac_cv_lib_dnet_dnet_ntoa=yes 43170 else 43171 ac_cv_lib_dnet_dnet_ntoa=no 43172 fi 43173 rm -f core conftest.err conftest.$ac_objext \ 43174 conftest$ac_exeext conftest.$ac_ext 43175 LIBS=$ac_check_lib_save_LIBS 43176 fi 43177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 43178 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 43179 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 43180 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 43181 fi 43182 43183 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 43184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 43185 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 43186 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 43187 $as_echo_n "(cached) " >&6 43188 else 43189 ac_check_lib_save_LIBS=$LIBS 43190 LIBS="-ldnet_stub $LIBS" 43191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43192 /* end confdefs.h. */ 43193 43194 /* Override any GCC internal prototype to avoid an error. 43195 Use char because int might match the return type of a GCC 43196 builtin and then its argument prototype would still apply. */ 43197 #ifdef __cplusplus 43198 extern "C" 43199 #endif 43200 char dnet_ntoa (); 43201 int 43202 main () 43203 { 43204 return dnet_ntoa (); 43205 ; 43206 return 0; 43207 } 43208 _ACEOF 43209 if ac_fn_cxx_try_link "$LINENO"; then : 43210 ac_cv_lib_dnet_stub_dnet_ntoa=yes 43211 else 43212 ac_cv_lib_dnet_stub_dnet_ntoa=no 43213 fi 43214 rm -f core conftest.err conftest.$ac_objext \ 43215 conftest$ac_exeext conftest.$ac_ext 43216 LIBS=$ac_check_lib_save_LIBS 43217 fi 43218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 43219 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 43220 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 43221 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 43222 fi 43223 43224 fi 43225 fi 43226 rm -f core conftest.err conftest.$ac_objext \ 43227 conftest$ac_exeext conftest.$ac_ext 43228 LIBS="$ac_xsave_LIBS" 43229 43230 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 43231 # to get the SysV transport functions. 43232 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 43233 # needs -lnsl. 43234 # The nsl library prevents programs from opening the X display 43235 # on Irix 5.2, according to T.E. Dickey. 43236 # The functions gethostbyname, getservbyname, and inet_addr are 43237 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 43238 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 43239 if test "x$ac_cv_func_gethostbyname" = xyes; then : 43240 43241 fi 43242 43243 if test $ac_cv_func_gethostbyname = no; then 43244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 43245 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 43246 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 43247 $as_echo_n "(cached) " >&6 43248 else 43249 ac_check_lib_save_LIBS=$LIBS 43250 LIBS="-lnsl $LIBS" 43251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43252 /* end confdefs.h. */ 43253 43254 /* Override any GCC internal prototype to avoid an error. 43255 Use char because int might match the return type of a GCC 43256 builtin and then its argument prototype would still apply. */ 43257 #ifdef __cplusplus 43258 extern "C" 43259 #endif 43260 char gethostbyname (); 43261 int 43262 main () 43263 { 43264 return gethostbyname (); 43265 ; 43266 return 0; 43267 } 43268 _ACEOF 43269 if ac_fn_cxx_try_link "$LINENO"; then : 43270 ac_cv_lib_nsl_gethostbyname=yes 43271 else 43272 ac_cv_lib_nsl_gethostbyname=no 43273 fi 43274 rm -f core conftest.err conftest.$ac_objext \ 43275 conftest$ac_exeext conftest.$ac_ext 43276 LIBS=$ac_check_lib_save_LIBS 43277 fi 43278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 43279 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 43280 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 43281 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 43282 fi 43283 43284 if test $ac_cv_lib_nsl_gethostbyname = no; then 43285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 43286 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 43287 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 43288 $as_echo_n "(cached) " >&6 43289 else 43290 ac_check_lib_save_LIBS=$LIBS 43291 LIBS="-lbsd $LIBS" 43292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43293 /* end confdefs.h. */ 43294 43295 /* Override any GCC internal prototype to avoid an error. 43296 Use char because int might match the return type of a GCC 43297 builtin and then its argument prototype would still apply. */ 43298 #ifdef __cplusplus 43299 extern "C" 43300 #endif 43301 char gethostbyname (); 43302 int 43303 main () 43304 { 43305 return gethostbyname (); 43306 ; 43307 return 0; 43308 } 43309 _ACEOF 43310 if ac_fn_cxx_try_link "$LINENO"; then : 43311 ac_cv_lib_bsd_gethostbyname=yes 43312 else 43313 ac_cv_lib_bsd_gethostbyname=no 43314 fi 43315 rm -f core conftest.err conftest.$ac_objext \ 43316 conftest$ac_exeext conftest.$ac_ext 43317 LIBS=$ac_check_lib_save_LIBS 43318 fi 43319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43320 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43321 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43322 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43323 fi 43324 43325 fi 43326 fi 43327 43328 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43329 # socket/setsockopt and other routines are undefined under SCO ODT 43330 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43331 # on later versions), says Simon Leinen: it contains gethostby* 43332 # variants that don't use the name server (or something). -lsocket 43333 # must be given before -lnsl if both are needed. We assume that 43334 # if connect needs -lnsl, so does gethostbyname. 43335 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43336 if test "x$ac_cv_func_connect" = xyes; then : 43337 43338 fi 43339 43340 if test $ac_cv_func_connect = no; then 43341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43342 $as_echo_n "checking for connect in -lsocket... " >&6; } 43343 if ${ac_cv_lib_socket_connect+:} false; then : 43344 $as_echo_n "(cached) " >&6 43345 else 43346 ac_check_lib_save_LIBS=$LIBS 43347 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43349 /* end confdefs.h. */ 43350 43351 /* Override any GCC internal prototype to avoid an error. 43352 Use char because int might match the return type of a GCC 43353 builtin and then its argument prototype would still apply. */ 43354 #ifdef __cplusplus 43355 extern "C" 43356 #endif 43357 char connect (); 43358 int 43359 main () 43360 { 43361 return connect (); 43362 ; 43363 return 0; 43364 } 43365 _ACEOF 43366 if ac_fn_cxx_try_link "$LINENO"; then : 43367 ac_cv_lib_socket_connect=yes 43368 else 43369 ac_cv_lib_socket_connect=no 43370 fi 43371 rm -f core conftest.err conftest.$ac_objext \ 43372 conftest$ac_exeext conftest.$ac_ext 43373 LIBS=$ac_check_lib_save_LIBS 43374 fi 43375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43376 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43377 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43378 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43379 fi 43380 43381 fi 43382 43383 # Guillermo Gomez says -lposix is necessary on A/UX. 43384 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43385 if test "x$ac_cv_func_remove" = xyes; then : 43386 43387 fi 43388 43389 if test $ac_cv_func_remove = no; then 43390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43391 $as_echo_n "checking for remove in -lposix... " >&6; } 43392 if ${ac_cv_lib_posix_remove+:} false; then : 43393 $as_echo_n "(cached) " >&6 43394 else 43395 ac_check_lib_save_LIBS=$LIBS 43396 LIBS="-lposix $LIBS" 43397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43398 /* end confdefs.h. */ 43399 43400 /* Override any GCC internal prototype to avoid an error. 43401 Use char because int might match the return type of a GCC 43402 builtin and then its argument prototype would still apply. */ 43403 #ifdef __cplusplus 43404 extern "C" 43405 #endif 43406 char remove (); 43407 int 43408 main () 43409 { 43410 return remove (); 43411 ; 43412 return 0; 43413 } 43414 _ACEOF 43415 if ac_fn_cxx_try_link "$LINENO"; then : 43416 ac_cv_lib_posix_remove=yes 43417 else 43418 ac_cv_lib_posix_remove=no 43419 fi 43420 rm -f core conftest.err conftest.$ac_objext \ 43421 conftest$ac_exeext conftest.$ac_ext 43422 LIBS=$ac_check_lib_save_LIBS 43423 fi 43424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43425 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43426 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43427 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43428 fi 43429 43430 fi 43431 43432 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43433 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43434 if test "x$ac_cv_func_shmat" = xyes; then : 43435 43436 fi 43437 43438 if test $ac_cv_func_shmat = no; then 43439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43440 $as_echo_n "checking for shmat in -lipc... " >&6; } 43441 if ${ac_cv_lib_ipc_shmat+:} false; then : 43442 $as_echo_n "(cached) " >&6 43443 else 43444 ac_check_lib_save_LIBS=$LIBS 43445 LIBS="-lipc $LIBS" 43446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43447 /* end confdefs.h. */ 43448 43449 /* Override any GCC internal prototype to avoid an error. 43450 Use char because int might match the return type of a GCC 43451 builtin and then its argument prototype would still apply. */ 43452 #ifdef __cplusplus 43453 extern "C" 43454 #endif 43455 char shmat (); 43456 int 43457 main () 43458 { 43459 return shmat (); 43460 ; 43461 return 0; 43462 } 43463 _ACEOF 43464 if ac_fn_cxx_try_link "$LINENO"; then : 43465 ac_cv_lib_ipc_shmat=yes 43466 else 43467 ac_cv_lib_ipc_shmat=no 43468 fi 43469 rm -f core conftest.err conftest.$ac_objext \ 43470 conftest$ac_exeext conftest.$ac_ext 43471 LIBS=$ac_check_lib_save_LIBS 43472 fi 43473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43474 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43475 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43476 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43477 fi 43478 43479 fi 43480 fi 43481 43482 # Check for libraries that X11R6 Xt/Xaw programs need. 43483 ac_save_LDFLAGS=$LDFLAGS 43484 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43485 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43486 # check for ICE first), but we must link in the order -lSM -lICE or 43487 # we get undefined symbols. So assume we have SM if we have ICE. 43488 # These have to be linked with before -lX11, unlike the other 43489 # libraries we check for below, so use a different variable. 43490 # John Interrante, Karl Berry 43491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43492 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43493 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43494 $as_echo_n "(cached) " >&6 43495 else 43496 ac_check_lib_save_LIBS=$LIBS 43497 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43499 /* end confdefs.h. */ 43500 43501 /* Override any GCC internal prototype to avoid an error. 43502 Use char because int might match the return type of a GCC 43503 builtin and then its argument prototype would still apply. */ 43504 #ifdef __cplusplus 43505 extern "C" 43506 #endif 43507 char IceConnectionNumber (); 43508 int 43509 main () 43510 { 43511 return IceConnectionNumber (); 43512 ; 43513 return 0; 43514 } 43515 _ACEOF 43516 if ac_fn_cxx_try_link "$LINENO"; then : 43517 ac_cv_lib_ICE_IceConnectionNumber=yes 43518 else 43519 ac_cv_lib_ICE_IceConnectionNumber=no 43520 fi 43521 rm -f core conftest.err conftest.$ac_objext \ 43522 conftest$ac_exeext conftest.$ac_ext 43523 LIBS=$ac_check_lib_save_LIBS 43524 fi 43525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43526 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43527 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43528 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43529 fi 43530 43531 LDFLAGS=$ac_save_LDFLAGS 43532 43533 fi 43534 43535 43536 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43537 # this doesn't make sense so we remove it. 43538 if test "x$COMPILE_TYPE" = xcross; then 43539 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43540 fi 43541 43542 if test "x$no_x" = xyes; then 43543 43544 # Print a helpful message on how to acquire the necessary build dependency. 43545 # x11 is the help tag: freetype, cups, pulse, alsa etc 43546 MISSING_DEPENDENCY=x11 43547 43548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43549 cygwin_help $MISSING_DEPENDENCY 43550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43551 msys_help $MISSING_DEPENDENCY 43552 else 43553 PKGHANDLER_COMMAND= 43554 43555 case $PKGHANDLER in 43556 apt-get) 43557 apt_help $MISSING_DEPENDENCY ;; 43558 yum) 43559 yum_help $MISSING_DEPENDENCY ;; 43560 port) 43561 port_help $MISSING_DEPENDENCY ;; 43562 pkgutil) 43563 pkgutil_help $MISSING_DEPENDENCY ;; 43564 pkgadd) 43565 pkgadd_help $MISSING_DEPENDENCY ;; 43566 esac 43567 43568 if test "x$PKGHANDLER_COMMAND" != x; then 43569 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43570 fi 43571 fi 43572 43573 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43574 fi 43575 43576 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43577 OPENWIN_HOME="/usr/openwin" 43578 X_CFLAGS="-I$SYSROOT$OPENWIN_HOME/include -I$SYSROOT$OPENWIN_HOME/include/X11/extensions" 43579 X_LIBS="-L$SYSROOT$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43580 -L$SYSROOT$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR \ 43581 -R$OPENWIN_HOME/sfw/lib$OPENJDK_TARGET_CPU_ISADIR \ 43582 -R$OPENWIN_HOME/lib$OPENJDK_TARGET_CPU_ISADIR" 43583 fi 43584 43585 ac_ext=c 43586 ac_cpp='$CPP $CPPFLAGS' 43587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43589 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43590 43591 OLD_CFLAGS="$CFLAGS" 43592 CFLAGS="$CFLAGS $SYSROOT_CFLAGS $X_CFLAGS" 43593 43594 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43595 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43596 do : 43597 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43598 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43599 # include <X11/Xlib.h> 43600 # include <X11/Xutil.h> 43601 43602 43603 " 43604 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43605 cat >>confdefs.h <<_ACEOF 43606 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43607 _ACEOF 43608 X11_HEADERS_OK=yes 43609 else 43610 X11_HEADERS_OK=no; break 43611 fi 43612 43613 done 43614 43615 43616 if test "x$X11_HEADERS_OK" = xno; then 43617 43618 # Print a helpful message on how to acquire the necessary build dependency. 43619 # x11 is the help tag: freetype, cups, pulse, alsa etc 43620 MISSING_DEPENDENCY=x11 43621 43622 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43623 cygwin_help $MISSING_DEPENDENCY 43624 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43625 msys_help $MISSING_DEPENDENCY 43626 else 43627 PKGHANDLER_COMMAND= 43628 43629 case $PKGHANDLER in 43630 apt-get) 43631 apt_help $MISSING_DEPENDENCY ;; 43632 yum) 43633 yum_help $MISSING_DEPENDENCY ;; 43634 port) 43635 port_help $MISSING_DEPENDENCY ;; 43636 pkgutil) 43637 pkgutil_help $MISSING_DEPENDENCY ;; 43638 pkgadd) 43639 pkgadd_help $MISSING_DEPENDENCY ;; 43640 esac 43641 43642 if test "x$PKGHANDLER_COMMAND" != x; then 43643 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43644 fi 43645 fi 43646 43647 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43648 fi 43649 43650 # If XLinearGradient isn't available in Xrender.h, signal that it needs to be 43651 # defined in libawt_xawt. 43652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XlinearGradient is defined in Xrender.h" >&5 43653 $as_echo_n "checking if XlinearGradient is defined in Xrender.h... " >&6; } 43654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43655 /* end confdefs.h. */ 43656 #include <X11/extensions/Xrender.h> 43657 int 43658 main () 43659 { 43660 XLinearGradient x; 43661 ; 43662 return 0; 43663 } 43664 _ACEOF 43665 if ac_fn_c_try_compile "$LINENO"; then : 43666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43667 $as_echo "yes" >&6; } 43668 else 43669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43670 $as_echo "no" >&6; } 43671 X_CFLAGS="$X_CFLAGS -DSOLARIS10_NO_XRENDER_STRUCTS" 43672 fi 43673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 43674 43675 CFLAGS="$OLD_CFLAGS" 43676 ac_ext=cpp 43677 ac_cpp='$CXXCPP $CPPFLAGS' 43678 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43679 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43680 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43681 43682 fi # X11_NOT_NEEDED 43683 43684 43685 43686 43687 43688 43689 ############################################################################### 43690 # 43691 # The common unix printing system cups is used to print from java. 43692 # 43693 43694 # Check whether --with-cups was given. 43695 if test "${with_cups+set}" = set; then : 43696 withval=$with_cups; 43697 fi 43698 43699 43700 # Check whether --with-cups-include was given. 43701 if test "${with_cups_include+set}" = set; then : 43702 withval=$with_cups_include; 43703 fi 43704 43705 43706 if test "x$CUPS_NOT_NEEDED" = xyes; then 43707 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43709 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43710 fi 43711 CUPS_CFLAGS= 43712 else 43713 CUPS_FOUND=no 43714 43715 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43716 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43717 fi 43718 43719 if test "x${with_cups}" != x; then 43720 CUPS_CFLAGS="-I${with_cups}/include" 43721 CUPS_FOUND=yes 43722 fi 43723 if test "x${with_cups_include}" != x; then 43724 CUPS_CFLAGS="-I${with_cups_include}" 43725 CUPS_FOUND=yes 43726 fi 43727 if test "x$CUPS_FOUND" = xno; then 43728 43729 43730 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43731 # Source the builddeps file again, to make sure it uses the latest variables! 43732 . $builddepsfile 43733 # Look for a target and build machine specific resource! 43734 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43735 if test "x$resource" = x; then 43736 # Ok, lets instead look for a target specific resource 43737 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43738 fi 43739 if test "x$resource" = x; then 43740 # Ok, lets instead look for a build specific resource 43741 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43742 fi 43743 if test "x$resource" = x; then 43744 # Ok, lets instead look for a generic resource 43745 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43746 resource=${builddep_cups} 43747 fi 43748 if test "x$resource" != x; then 43749 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43750 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43751 # If the resource in the builddeps.conf file is an existing directory, 43752 # for example /java/linux/cups 43753 if test -d ${resource}; then 43754 depdir=${resource} 43755 else 43756 43757 # cups is for example mymodule 43758 # $resource is for example libs/general/libmymod_1_2_3.zip 43759 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43760 # $with_builddeps_dir is for example /localhome/builddeps 43761 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43762 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43763 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43764 filename=`basename $resource` 43765 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43766 filebase=${filename%%.*} 43767 extension=${filename#*.} 43768 installdir=$with_builddeps_dir/$filebase 43769 if test ! -f $installdir/$filename.unpacked; then 43770 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43771 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43772 if test ! -d $installdir; then 43773 mkdir -p $installdir 43774 fi 43775 if test ! -d $installdir; then 43776 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43777 fi 43778 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43779 touch $tmpfile 43780 if test ! -f $tmpfile; then 43781 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43782 fi 43783 43784 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43785 # $tmpfile is the local file name for the downloaded file. 43786 VALID_TOOL=no 43787 if test "x$BDEPS_FTP" = xwget; then 43788 VALID_TOOL=yes 43789 wget -O $tmpfile $with_builddeps_server/$resource 43790 fi 43791 if test "x$BDEPS_FTP" = xlftp; then 43792 VALID_TOOL=yes 43793 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43794 fi 43795 if test "x$BDEPS_FTP" = xftp; then 43796 VALID_TOOL=yes 43797 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43798 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43799 FTPUSERPWD=${FTPSERVER%%@*} 43800 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43801 FTPUSER=${userpwd%%:*} 43802 FTPPWD=${userpwd#*@} 43803 FTPSERVER=${FTPSERVER#*@} 43804 else 43805 FTPUSER=ftp 43806 FTPPWD=ftp 43807 fi 43808 # the "pass" command does not work on some 43809 # ftp clients (read ftp.exe) but if it works, 43810 # passive mode is better! 43811 ( \ 43812 echo "user $FTPUSER $FTPPWD" ; \ 43813 echo "pass" ; \ 43814 echo "bin" ; \ 43815 echo "get $FTPPATH $tmpfile" ; \ 43816 ) | ftp -in $FTPSERVER 43817 fi 43818 if test "x$VALID_TOOL" != xyes; then 43819 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43820 fi 43821 43822 mv $tmpfile $installdir/$filename 43823 if test ! -s $installdir/$filename; then 43824 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43825 fi 43826 case "$extension" in 43827 zip) echo "Unzipping $installdir/$filename..." 43828 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43829 ;; 43830 tar.gz) echo "Untaring $installdir/$filename..." 43831 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43832 ;; 43833 tgz) echo "Untaring $installdir/$filename..." 43834 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43835 ;; 43836 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43837 ;; 43838 esac 43839 fi 43840 if test -f $installdir/$filename.unpacked; then 43841 depdir=$installdir 43842 fi 43843 43844 fi 43845 # Source the builddeps file again, because in the previous command, the depdir 43846 # was updated to point at the current build dependency install directory. 43847 . $builddepsfile 43848 # Now extract variables from the builddeps.conf files. 43849 theroot=${builddep_cups_ROOT} 43850 thecflags=${builddep_cups_CFLAGS} 43851 thelibs=${builddep_cups_LIBS} 43852 if test "x$depdir" = x; then 43853 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43854 fi 43855 CUPS=$depdir 43856 if test "x$theroot" != x; then 43857 CUPS="$theroot" 43858 fi 43859 if test "x$thecflags" != x; then 43860 CUPS_CFLAGS="$thecflags" 43861 fi 43862 if test "x$thelibs" != x; then 43863 CUPS_LIBS="$thelibs" 43864 fi 43865 CUPS_FOUND=yes 43866 43867 fi 43868 43869 fi 43870 43871 fi 43872 if test "x$CUPS_FOUND" = xno; then 43873 # Are the cups headers installed in the default /usr/include location? 43874 for ac_header in cups/cups.h cups/ppd.h 43875 do : 43876 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43877 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43878 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43879 cat >>confdefs.h <<_ACEOF 43880 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43881 _ACEOF 43882 43883 CUPS_FOUND=yes 43884 CUPS_CFLAGS= 43885 DEFAULT_CUPS=yes 43886 43887 43888 fi 43889 43890 done 43891 43892 fi 43893 if test "x$CUPS_FOUND" = xno; then 43894 # Getting nervous now? Lets poke around for standard Solaris third-party 43895 # package installation locations. 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43897 $as_echo_n "checking for cups headers... " >&6; } 43898 if test -s $SYSROOT/opt/sfw/cups/include/cups/cups.h; then 43899 # An SFW package seems to be installed! 43900 CUPS_FOUND=yes 43901 CUPS_CFLAGS="-I$SYSROOT/opt/sfw/cups/include" 43902 elif test -s $SYSROOT/opt/csw/include/cups/cups.h; then 43903 # A CSW package seems to be installed! 43904 CUPS_FOUND=yes 43905 CUPS_CFLAGS="-I$SYSROOT/opt/csw/include" 43906 fi 43907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43908 $as_echo "$CUPS_FOUND" >&6; } 43909 fi 43910 if test "x$CUPS_FOUND" = xno; then 43911 43912 # Print a helpful message on how to acquire the necessary build dependency. 43913 # cups is the help tag: freetype, cups, pulse, alsa etc 43914 MISSING_DEPENDENCY=cups 43915 43916 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43917 cygwin_help $MISSING_DEPENDENCY 43918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43919 msys_help $MISSING_DEPENDENCY 43920 else 43921 PKGHANDLER_COMMAND= 43922 43923 case $PKGHANDLER in 43924 apt-get) 43925 apt_help $MISSING_DEPENDENCY ;; 43926 yum) 43927 yum_help $MISSING_DEPENDENCY ;; 43928 port) 43929 port_help $MISSING_DEPENDENCY ;; 43930 pkgutil) 43931 pkgutil_help $MISSING_DEPENDENCY ;; 43932 pkgadd) 43933 pkgadd_help $MISSING_DEPENDENCY ;; 43934 esac 43935 43936 if test "x$PKGHANDLER_COMMAND" != x; then 43937 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43938 fi 43939 fi 43940 43941 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43942 fi 43943 fi 43944 43945 43946 43947 43948 43949 43950 ############################################################################### 43951 # 43952 # The ubiquitous freetype library is used to render fonts. 43953 # 43954 43955 # Check whether --with-freetype was given. 43956 if test "${with_freetype+set}" = set; then : 43957 withval=$with_freetype; 43958 fi 43959 43960 43961 # Check whether --with-freetype-include was given. 43962 if test "${with_freetype_include+set}" = set; then : 43963 withval=$with_freetype_include; 43964 fi 43965 43966 43967 # Check whether --with-freetype-lib was given. 43968 if test "${with_freetype_lib+set}" = set; then : 43969 withval=$with_freetype_lib; 43970 fi 43971 43972 43973 # Check whether --with-freetype-src was given. 43974 if test "${with_freetype_src+set}" = set; then : 43975 withval=$with_freetype_src; 43976 fi 43977 43978 # Check whether --enable-freetype-bundling was given. 43979 if test "${enable_freetype_bundling+set}" = set; then : 43980 enableval=$enable_freetype_bundling; 43981 fi 43982 43983 43984 # Need to specify explicitly since it needs to be overridden on some versions of macosx 43985 FREETYPE_BASE_NAME=freetype 43986 FREETYPE_CFLAGS= 43987 FREETYPE_LIBS= 43988 FREETYPE_BUNDLE_LIB_PATH= 43989 43990 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43991 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 43992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43993 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43994 fi 43995 if test "x$enable_freetype_bundling" != x; then 43996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43997 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43998 fi 43999 else 44000 # freetype is needed to build; go get it! 44001 44002 BUNDLE_FREETYPE="$enable_freetype_bundling" 44003 44004 if test "x$with_freetype_src" != x; then 44005 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44006 # Try to build freetype if --with-freetype-src was given on Windows 44007 44008 FREETYPE_SRC_PATH="$with_freetype_src" 44009 BUILD_FREETYPE=yes 44010 44011 # Check if the freetype sources are acessible.. 44012 if ! test -d $FREETYPE_SRC_PATH; then 44013 { $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 44014 $as_echo "$as_me: WARNING: --with-freetype-src specified, but can't find path \"$FREETYPE_SRC_PATH\" - ignoring --with-freetype-src" >&2;} 44015 BUILD_FREETYPE=no 44016 fi 44017 # ..and contain a vc2010 project file 44018 vcxproj_path="$FREETYPE_SRC_PATH/builds/windows/vc2010/freetype.vcxproj" 44019 if test "x$BUILD_FREETYPE" = xyes && ! test -s $vcxproj_path; then 44020 { $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 44021 $as_echo "$as_me: WARNING: Can't find project file $vcxproj_path (you may try a newer freetype version) - ignoring --with-freetype-src" >&2;} 44022 BUILD_FREETYPE=no 44023 fi 44024 # Now check if configure found a version of 'msbuild.exe' 44025 if test "x$BUILD_FREETYPE" = xyes && test "x$MSBUILD" == x ; then 44026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&5 44027 $as_echo "$as_me: WARNING: Can not find an msbuild.exe executable (you may try to install .NET 4.0) - ignoring --with-freetype-src" >&2;} 44028 BUILD_FREETYPE=no 44029 fi 44030 44031 # Ready to go.. 44032 if test "x$BUILD_FREETYPE" = xyes; then 44033 44034 # msbuild requires trailing slashes for output directories 44035 freetype_lib_path="$FREETYPE_SRC_PATH/lib$OPENJDK_TARGET_CPU_BITS/" 44036 freetype_lib_path_unix="$freetype_lib_path" 44037 freetype_obj_path="$FREETYPE_SRC_PATH/obj$OPENJDK_TARGET_CPU_BITS/" 44038 44039 unix_path="$vcxproj_path" 44040 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44041 windows_path=`$CYGPATH -m "$unix_path"` 44042 vcxproj_path="$windows_path" 44043 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44044 windows_path=`cmd //c echo $unix_path` 44045 vcxproj_path="$windows_path" 44046 fi 44047 44048 44049 unix_path="$freetype_lib_path" 44050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44051 windows_path=`$CYGPATH -m "$unix_path"` 44052 freetype_lib_path="$windows_path" 44053 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44054 windows_path=`cmd //c echo $unix_path` 44055 freetype_lib_path="$windows_path" 44056 fi 44057 44058 44059 unix_path="$freetype_obj_path" 44060 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44061 windows_path=`$CYGPATH -m "$unix_path"` 44062 freetype_obj_path="$windows_path" 44063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44064 windows_path=`cmd //c echo $unix_path` 44065 freetype_obj_path="$windows_path" 44066 fi 44067 44068 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44069 freetype_platform=x64 44070 else 44071 freetype_platform=win32 44072 fi 44073 44074 # The original freetype project file is for VS 2010 (i.e. 'v100'), 44075 # so we have to adapt the toolset if building with any other toolsed (i.e. SDK). 44076 # Currently 'PLATFORM_TOOLSET' is set in 'TOOLCHAIN_CHECK_POSSIBLE_VISUAL_STUDIO_ROOT'/ 44077 # 'TOOLCHAIN_CHECK_POSSIBLE_WIN_SDK_ROOT' in toolchain_windows.m4 44078 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&5 44079 $as_echo "$as_me: Trying to compile freetype sources with PlatformToolset=$PLATFORM_TOOLSET to $freetype_lib_path_unix ..." >&6;} 44080 44081 # First we try to build the freetype.dll 44082 $ECHO -e "@echo off\n"\ 44083 "$MSBUILD $vcxproj_path "\ 44084 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44085 "/p:Configuration=\"Release Multithreaded\" "\ 44086 "/p:Platform=$freetype_platform "\ 44087 "/p:ConfigurationType=DynamicLibrary "\ 44088 "/p:TargetName=freetype "\ 44089 "/p:OutDir=\"$freetype_lib_path\" "\ 44090 "/p:IntDir=\"$freetype_obj_path\" > freetype.log" > freetype.bat 44091 cmd /c freetype.bat 44092 44093 if test -s "$freetype_lib_path_unix/freetype.dll"; then 44094 # If that succeeds we also build freetype.lib 44095 $ECHO -e "@echo off\n"\ 44096 "$MSBUILD $vcxproj_path "\ 44097 "/p:PlatformToolset=$PLATFORM_TOOLSET "\ 44098 "/p:Configuration=\"Release Multithreaded\" "\ 44099 "/p:Platform=$freetype_platform "\ 44100 "/p:ConfigurationType=StaticLibrary "\ 44101 "/p:TargetName=freetype "\ 44102 "/p:OutDir=\"$freetype_lib_path\" "\ 44103 "/p:IntDir=\"$freetype_obj_path\" >> freetype.log" > freetype.bat 44104 cmd /c freetype.bat 44105 44106 if test -s "$freetype_lib_path_unix/freetype.lib"; then 44107 # Once we build both, lib and dll, set freetype lib and include path appropriately 44108 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_SRC_PATH/include" 44109 POTENTIAL_FREETYPE_LIB_PATH="$freetype_lib_path_unix" 44110 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling freetype sources succeeded! (see freetype.log for build results)" >&5 44111 $as_echo "$as_me: Compiling freetype sources succeeded! (see freetype.log for build results)" >&6;} 44112 else 44113 BUILD_FREETYPE=no 44114 fi 44115 else 44116 BUILD_FREETYPE=no 44117 fi 44118 fi 44119 44120 if test "x$BUILD_FREETYPE" = xyes; then 44121 # Okay, we built it. Check that it works. 44122 44123 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44124 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44125 METHOD="--with-freetype-src" 44126 44127 # Let's start with an optimistic view of the world :-) 44128 FOUND_FREETYPE=yes 44129 44130 # First look for the canonical freetype main include file ft2build.h. 44131 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44132 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44133 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44134 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44135 # Fail. 44136 FOUND_FREETYPE=no 44137 fi 44138 fi 44139 44140 if test "x$FOUND_FREETYPE" = xyes; then 44141 # Include file found, let's continue the sanity check. 44142 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44143 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44144 44145 # Reset to default value 44146 FREETYPE_BASE_NAME=freetype 44147 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44148 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44149 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44150 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44151 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44152 # for the .6 version explicitly. 44153 FREETYPE_BASE_NAME=freetype.6 44154 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44155 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44156 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44157 else 44158 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44159 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44160 FOUND_FREETYPE=no 44161 fi 44162 else 44163 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44164 # On Windows, we will need both .lib and .dll file. 44165 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44166 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44167 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44168 FOUND_FREETYPE=no 44169 fi 44170 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44171 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44172 # Found lib in isa dir, use that instead. 44173 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44174 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44175 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44176 fi 44177 fi 44178 fi 44179 44180 if test "x$FOUND_FREETYPE" = xyes; then 44181 44182 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44183 44184 # Input might be given as Windows format, start by converting to 44185 # unix format. 44186 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44187 new_path=`$CYGPATH -u "$path"` 44188 44189 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44190 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44191 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44192 # "foo.exe" is OK but "foo" is an error. 44193 # 44194 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44195 # It is also a way to make sure we got the proper file name for the real test later on. 44196 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44197 if test "x$test_shortpath" = x; then 44198 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44199 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44200 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44201 fi 44202 44203 # Call helper function which possibly converts this using DOS-style short mode. 44204 # If so, the updated path is stored in $new_path. 44205 44206 input_path="$new_path" 44207 # Check if we need to convert this using DOS-style short mode. If the path 44208 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44209 # take no chances and rewrite it. 44210 # Note: m4 eats our [], so we need to use [ and ] instead. 44211 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44212 if test "x$has_forbidden_chars" != x; then 44213 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44214 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44215 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44216 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44217 # Going to short mode and back again did indeed matter. Since short mode is 44218 # case insensitive, let's make it lowercase to improve readability. 44219 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44220 # Now convert it back to Unix-stile (cygpath) 44221 input_path=`$CYGPATH -u "$shortmode_path"` 44222 new_path="$input_path" 44223 fi 44224 fi 44225 44226 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44227 if test "x$test_cygdrive_prefix" = x; then 44228 # As a simple fix, exclude /usr/bin since it's not a real path. 44229 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44230 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44231 # a path prefixed by /cygdrive for fixpath to work. 44232 new_path="$CYGWIN_ROOT_PATH$input_path" 44233 fi 44234 fi 44235 44236 44237 if test "x$path" != "x$new_path"; then 44238 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44240 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44241 fi 44242 44243 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44244 44245 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44246 has_colon=`$ECHO $path | $GREP ^.:` 44247 new_path="$path" 44248 if test "x$has_colon" = x; then 44249 # Not in mixed or Windows style, start by that. 44250 new_path=`cmd //c echo $path` 44251 fi 44252 44253 44254 input_path="$new_path" 44255 # Check if we need to convert this using DOS-style short mode. If the path 44256 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44257 # take no chances and rewrite it. 44258 # Note: m4 eats our [], so we need to use [ and ] instead. 44259 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44260 if test "x$has_forbidden_chars" != x; then 44261 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44262 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44263 fi 44264 44265 44266 windows_path="$new_path" 44267 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44268 unix_path=`$CYGPATH -u "$windows_path"` 44269 new_path="$unix_path" 44270 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44271 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44272 new_path="$unix_path" 44273 fi 44274 44275 if test "x$path" != "x$new_path"; then 44276 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44277 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44278 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44279 fi 44280 44281 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44282 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44283 44284 else 44285 # We're on a unix platform. Hooray! :) 44286 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44287 has_space=`$ECHO "$path" | $GREP " "` 44288 if test "x$has_space" != x; then 44289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44290 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44291 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44292 fi 44293 44294 # Use eval to expand a potential ~ 44295 eval path="$path" 44296 if test ! -f "$path" && test ! -d "$path"; then 44297 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44298 fi 44299 44300 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44301 fi 44302 44303 44304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44305 44306 # Input might be given as Windows format, start by converting to 44307 # unix format. 44308 path="$POTENTIAL_FREETYPE_LIB_PATH" 44309 new_path=`$CYGPATH -u "$path"` 44310 44311 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44312 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44313 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44314 # "foo.exe" is OK but "foo" is an error. 44315 # 44316 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44317 # It is also a way to make sure we got the proper file name for the real test later on. 44318 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44319 if test "x$test_shortpath" = x; then 44320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44321 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44322 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44323 fi 44324 44325 # Call helper function which possibly converts this using DOS-style short mode. 44326 # If so, the updated path is stored in $new_path. 44327 44328 input_path="$new_path" 44329 # Check if we need to convert this using DOS-style short mode. If the path 44330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44331 # take no chances and rewrite it. 44332 # Note: m4 eats our [], so we need to use [ and ] instead. 44333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44334 if test "x$has_forbidden_chars" != x; then 44335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44336 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44337 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44338 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44339 # Going to short mode and back again did indeed matter. Since short mode is 44340 # case insensitive, let's make it lowercase to improve readability. 44341 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44342 # Now convert it back to Unix-stile (cygpath) 44343 input_path=`$CYGPATH -u "$shortmode_path"` 44344 new_path="$input_path" 44345 fi 44346 fi 44347 44348 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44349 if test "x$test_cygdrive_prefix" = x; then 44350 # As a simple fix, exclude /usr/bin since it's not a real path. 44351 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44352 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44353 # a path prefixed by /cygdrive for fixpath to work. 44354 new_path="$CYGWIN_ROOT_PATH$input_path" 44355 fi 44356 fi 44357 44358 44359 if test "x$path" != "x$new_path"; then 44360 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44361 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44362 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44363 fi 44364 44365 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44366 44367 path="$POTENTIAL_FREETYPE_LIB_PATH" 44368 has_colon=`$ECHO $path | $GREP ^.:` 44369 new_path="$path" 44370 if test "x$has_colon" = x; then 44371 # Not in mixed or Windows style, start by that. 44372 new_path=`cmd //c echo $path` 44373 fi 44374 44375 44376 input_path="$new_path" 44377 # Check if we need to convert this using DOS-style short mode. If the path 44378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44379 # take no chances and rewrite it. 44380 # Note: m4 eats our [], so we need to use [ and ] instead. 44381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44382 if test "x$has_forbidden_chars" != x; then 44383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44384 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44385 fi 44386 44387 44388 windows_path="$new_path" 44389 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44390 unix_path=`$CYGPATH -u "$windows_path"` 44391 new_path="$unix_path" 44392 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44393 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44394 new_path="$unix_path" 44395 fi 44396 44397 if test "x$path" != "x$new_path"; then 44398 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44400 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44401 fi 44402 44403 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44404 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44405 44406 else 44407 # We're on a unix platform. Hooray! :) 44408 path="$POTENTIAL_FREETYPE_LIB_PATH" 44409 has_space=`$ECHO "$path" | $GREP " "` 44410 if test "x$has_space" != x; then 44411 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44412 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44413 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44414 fi 44415 44416 # Use eval to expand a potential ~ 44417 eval path="$path" 44418 if test ! -f "$path" && test ! -d "$path"; then 44419 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44420 fi 44421 44422 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44423 fi 44424 44425 44426 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44428 $as_echo_n "checking for freetype includes... " >&6; } 44429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44430 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44431 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44433 $as_echo_n "checking for freetype libraries... " >&6; } 44434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44435 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44436 fi 44437 44438 if test "x$FOUND_FREETYPE" != xyes; then 44439 as_fn_error $? "Can not use the built freetype at location given by --with-freetype-src" "$LINENO" 5 44440 fi 44441 else 44442 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&5 44443 $as_echo "$as_me: User specified --with-freetype-src but building freetype failed. (see freetype.log for build results)" >&6;} 44444 as_fn_error $? "Consider building freetype manually and using --with-freetype instead." "$LINENO" 5 44445 fi 44446 else 44447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&5 44448 $as_echo "$as_me: WARNING: --with-freetype-src is currently only supported on Windows - ignoring" >&2;} 44449 fi 44450 fi 44451 44452 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 44453 # User has specified settings 44454 44455 if test "x$BUNDLE_FREETYPE" = x; then 44456 # If not specified, default is to bundle freetype 44457 BUNDLE_FREETYPE=yes 44458 fi 44459 44460 if test "x$with_freetype" != x; then 44461 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 44462 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 44463 fi 44464 44465 # Allow --with-freetype-lib and --with-freetype-include to override 44466 if test "x$with_freetype_include" != x; then 44467 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 44468 fi 44469 if test "x$with_freetype_lib" != x; then 44470 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 44471 fi 44472 44473 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 44474 # Okay, we got it. Check that it works. 44475 44476 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44477 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44478 METHOD="--with-freetype" 44479 44480 # Let's start with an optimistic view of the world :-) 44481 FOUND_FREETYPE=yes 44482 44483 # First look for the canonical freetype main include file ft2build.h. 44484 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44485 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 44486 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 44487 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44488 # Fail. 44489 FOUND_FREETYPE=no 44490 fi 44491 fi 44492 44493 if test "x$FOUND_FREETYPE" = xyes; then 44494 # Include file found, let's continue the sanity check. 44495 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44496 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44497 44498 # Reset to default value 44499 FREETYPE_BASE_NAME=freetype 44500 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44501 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44502 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 44503 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 44504 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 44505 # for the .6 version explicitly. 44506 FREETYPE_BASE_NAME=freetype.6 44507 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 44508 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 44509 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 44510 else 44511 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44512 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44513 FOUND_FREETYPE=no 44514 fi 44515 else 44516 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44517 # On Windows, we will need both .lib and .dll file. 44518 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 44519 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 44520 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 44521 FOUND_FREETYPE=no 44522 fi 44523 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 44524 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 44525 # Found lib in isa dir, use that instead. 44526 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 44527 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 44528 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 44529 fi 44530 fi 44531 fi 44532 44533 if test "x$FOUND_FREETYPE" = xyes; then 44534 44535 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44536 44537 # Input might be given as Windows format, start by converting to 44538 # unix format. 44539 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44540 new_path=`$CYGPATH -u "$path"` 44541 44542 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44543 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44544 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44545 # "foo.exe" is OK but "foo" is an error. 44546 # 44547 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44548 # It is also a way to make sure we got the proper file name for the real test later on. 44549 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44550 if test "x$test_shortpath" = x; then 44551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44552 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44553 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44554 fi 44555 44556 # Call helper function which possibly converts this using DOS-style short mode. 44557 # If so, the updated path is stored in $new_path. 44558 44559 input_path="$new_path" 44560 # Check if we need to convert this using DOS-style short mode. If the path 44561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44562 # take no chances and rewrite it. 44563 # Note: m4 eats our [], so we need to use [ and ] instead. 44564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44565 if test "x$has_forbidden_chars" != x; then 44566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44570 # Going to short mode and back again did indeed matter. Since short mode is 44571 # case insensitive, let's make it lowercase to improve readability. 44572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44573 # Now convert it back to Unix-stile (cygpath) 44574 input_path=`$CYGPATH -u "$shortmode_path"` 44575 new_path="$input_path" 44576 fi 44577 fi 44578 44579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44580 if test "x$test_cygdrive_prefix" = x; then 44581 # As a simple fix, exclude /usr/bin since it's not a real path. 44582 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44584 # a path prefixed by /cygdrive for fixpath to work. 44585 new_path="$CYGWIN_ROOT_PATH$input_path" 44586 fi 44587 fi 44588 44589 44590 if test "x$path" != "x$new_path"; then 44591 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44592 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44593 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44594 fi 44595 44596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44597 44598 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44599 has_colon=`$ECHO $path | $GREP ^.:` 44600 new_path="$path" 44601 if test "x$has_colon" = x; then 44602 # Not in mixed or Windows style, start by that. 44603 new_path=`cmd //c echo $path` 44604 fi 44605 44606 44607 input_path="$new_path" 44608 # Check if we need to convert this using DOS-style short mode. If the path 44609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44610 # take no chances and rewrite it. 44611 # Note: m4 eats our [], so we need to use [ and ] instead. 44612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44613 if test "x$has_forbidden_chars" != x; then 44614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44615 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44616 fi 44617 44618 44619 windows_path="$new_path" 44620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44621 unix_path=`$CYGPATH -u "$windows_path"` 44622 new_path="$unix_path" 44623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44625 new_path="$unix_path" 44626 fi 44627 44628 if test "x$path" != "x$new_path"; then 44629 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44630 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44631 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44632 fi 44633 44634 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44635 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44636 44637 else 44638 # We're on a unix platform. Hooray! :) 44639 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44640 has_space=`$ECHO "$path" | $GREP " "` 44641 if test "x$has_space" != x; then 44642 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44643 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44644 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44645 fi 44646 44647 # Use eval to expand a potential ~ 44648 eval path="$path" 44649 if test ! -f "$path" && test ! -d "$path"; then 44650 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44651 fi 44652 44653 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44654 fi 44655 44656 44657 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44658 44659 # Input might be given as Windows format, start by converting to 44660 # unix format. 44661 path="$POTENTIAL_FREETYPE_LIB_PATH" 44662 new_path=`$CYGPATH -u "$path"` 44663 44664 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44665 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44666 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44667 # "foo.exe" is OK but "foo" is an error. 44668 # 44669 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44670 # It is also a way to make sure we got the proper file name for the real test later on. 44671 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44672 if test "x$test_shortpath" = x; then 44673 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44674 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44675 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44676 fi 44677 44678 # Call helper function which possibly converts this using DOS-style short mode. 44679 # If so, the updated path is stored in $new_path. 44680 44681 input_path="$new_path" 44682 # Check if we need to convert this using DOS-style short mode. If the path 44683 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44684 # take no chances and rewrite it. 44685 # Note: m4 eats our [], so we need to use [ and ] instead. 44686 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44687 if test "x$has_forbidden_chars" != x; then 44688 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44689 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44690 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44691 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44692 # Going to short mode and back again did indeed matter. Since short mode is 44693 # case insensitive, let's make it lowercase to improve readability. 44694 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44695 # Now convert it back to Unix-stile (cygpath) 44696 input_path=`$CYGPATH -u "$shortmode_path"` 44697 new_path="$input_path" 44698 fi 44699 fi 44700 44701 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44702 if test "x$test_cygdrive_prefix" = x; then 44703 # As a simple fix, exclude /usr/bin since it's not a real path. 44704 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44705 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44706 # a path prefixed by /cygdrive for fixpath to work. 44707 new_path="$CYGWIN_ROOT_PATH$input_path" 44708 fi 44709 fi 44710 44711 44712 if test "x$path" != "x$new_path"; then 44713 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44714 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44715 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44716 fi 44717 44718 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44719 44720 path="$POTENTIAL_FREETYPE_LIB_PATH" 44721 has_colon=`$ECHO $path | $GREP ^.:` 44722 new_path="$path" 44723 if test "x$has_colon" = x; then 44724 # Not in mixed or Windows style, start by that. 44725 new_path=`cmd //c echo $path` 44726 fi 44727 44728 44729 input_path="$new_path" 44730 # Check if we need to convert this using DOS-style short mode. If the path 44731 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44732 # take no chances and rewrite it. 44733 # Note: m4 eats our [], so we need to use [ and ] instead. 44734 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44735 if test "x$has_forbidden_chars" != x; then 44736 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44737 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44738 fi 44739 44740 44741 windows_path="$new_path" 44742 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44743 unix_path=`$CYGPATH -u "$windows_path"` 44744 new_path="$unix_path" 44745 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44746 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44747 new_path="$unix_path" 44748 fi 44749 44750 if test "x$path" != "x$new_path"; then 44751 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44752 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44753 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44754 fi 44755 44756 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44757 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44758 44759 else 44760 # We're on a unix platform. Hooray! :) 44761 path="$POTENTIAL_FREETYPE_LIB_PATH" 44762 has_space=`$ECHO "$path" | $GREP " "` 44763 if test "x$has_space" != x; then 44764 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44765 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44766 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44767 fi 44768 44769 # Use eval to expand a potential ~ 44770 eval path="$path" 44771 if test ! -f "$path" && test ! -d "$path"; then 44772 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44773 fi 44774 44775 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44776 fi 44777 44778 44779 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44781 $as_echo_n "checking for freetype includes... " >&6; } 44782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44783 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44784 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44786 $as_echo_n "checking for freetype libraries... " >&6; } 44787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44788 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44789 fi 44790 44791 if test "x$FOUND_FREETYPE" != xyes; then 44792 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 44793 fi 44794 else 44795 # User specified only one of lib or include. This is an error. 44796 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 44797 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 44798 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 44799 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44800 else 44801 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 44802 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 44803 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44804 fi 44805 fi 44806 else 44807 # User did not specify settings, but we need freetype. Try to locate it. 44808 44809 if test "x$BUNDLE_FREETYPE" = x; then 44810 # If not specified, default is to bundle freetype only on windows 44811 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44812 BUNDLE_FREETYPE=yes 44813 else 44814 BUNDLE_FREETYPE=no 44815 fi 44816 fi 44817 44818 if test "x$FOUND_FREETYPE" != xyes; then 44819 # Check builddeps 44820 44821 44822 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44823 # Source the builddeps file again, to make sure it uses the latest variables! 44824 . $builddepsfile 44825 # Look for a target and build machine specific resource! 44826 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44827 if test "x$resource" = x; then 44828 # Ok, lets instead look for a target specific resource 44829 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 44830 fi 44831 if test "x$resource" = x; then 44832 # Ok, lets instead look for a build specific resource 44833 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 44834 fi 44835 if test "x$resource" = x; then 44836 # Ok, lets instead look for a generic resource 44837 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 44838 resource=${builddep_freetype2} 44839 fi 44840 if test "x$resource" != x; then 44841 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 44842 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 44843 # If the resource in the builddeps.conf file is an existing directory, 44844 # for example /java/linux/cups 44845 if test -d ${resource}; then 44846 depdir=${resource} 44847 else 44848 44849 # freetype2 is for example mymodule 44850 # $resource is for example libs/general/libmymod_1_2_3.zip 44851 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44852 # $with_builddeps_dir is for example /localhome/builddeps 44853 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44854 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44855 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44856 filename=`basename $resource` 44857 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44858 filebase=${filename%%.*} 44859 extension=${filename#*.} 44860 installdir=$with_builddeps_dir/$filebase 44861 if test ! -f $installdir/$filename.unpacked; then 44862 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 44863 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44864 if test ! -d $installdir; then 44865 mkdir -p $installdir 44866 fi 44867 if test ! -d $installdir; then 44868 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44869 fi 44870 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 44871 touch $tmpfile 44872 if test ! -f $tmpfile; then 44873 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44874 fi 44875 44876 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44877 # $tmpfile is the local file name for the downloaded file. 44878 VALID_TOOL=no 44879 if test "x$BDEPS_FTP" = xwget; then 44880 VALID_TOOL=yes 44881 wget -O $tmpfile $with_builddeps_server/$resource 44882 fi 44883 if test "x$BDEPS_FTP" = xlftp; then 44884 VALID_TOOL=yes 44885 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44886 fi 44887 if test "x$BDEPS_FTP" = xftp; then 44888 VALID_TOOL=yes 44889 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44890 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44891 FTPUSERPWD=${FTPSERVER%%@*} 44892 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44893 FTPUSER=${userpwd%%:*} 44894 FTPPWD=${userpwd#*@} 44895 FTPSERVER=${FTPSERVER#*@} 44896 else 44897 FTPUSER=ftp 44898 FTPPWD=ftp 44899 fi 44900 # the "pass" command does not work on some 44901 # ftp clients (read ftp.exe) but if it works, 44902 # passive mode is better! 44903 ( \ 44904 echo "user $FTPUSER $FTPPWD" ; \ 44905 echo "pass" ; \ 44906 echo "bin" ; \ 44907 echo "get $FTPPATH $tmpfile" ; \ 44908 ) | ftp -in $FTPSERVER 44909 fi 44910 if test "x$VALID_TOOL" != xyes; then 44911 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44912 fi 44913 44914 mv $tmpfile $installdir/$filename 44915 if test ! -s $installdir/$filename; then 44916 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44917 fi 44918 case "$extension" in 44919 zip) echo "Unzipping $installdir/$filename..." 44920 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44921 ;; 44922 tar.gz) echo "Untaring $installdir/$filename..." 44923 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44924 ;; 44925 tgz) echo "Untaring $installdir/$filename..." 44926 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44927 ;; 44928 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44929 ;; 44930 esac 44931 fi 44932 if test -f $installdir/$filename.unpacked; then 44933 depdir=$installdir 44934 fi 44935 44936 fi 44937 # Source the builddeps file again, because in the previous command, the depdir 44938 # was updated to point at the current build dependency install directory. 44939 . $builddepsfile 44940 # Now extract variables from the builddeps.conf files. 44941 theroot=${builddep_freetype2_ROOT} 44942 thecflags=${builddep_freetype2_CFLAGS} 44943 thelibs=${builddep_freetype2_LIBS} 44944 if test "x$depdir" = x; then 44945 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 44946 fi 44947 FREETYPE=$depdir 44948 if test "x$theroot" != x; then 44949 FREETYPE="$theroot" 44950 fi 44951 if test "x$thecflags" != x; then 44952 FREETYPE_CFLAGS="$thecflags" 44953 fi 44954 if test "x$thelibs" != x; then 44955 FREETYPE_LIBS="$thelibs" 44956 fi 44957 FOUND_FREETYPE=yes 44958 else FOUND_FREETYPE=no 44959 44960 fi 44961 else FOUND_FREETYPE=no 44962 44963 fi 44964 44965 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44966 if test "x$FOUND_FREETYPE" = xyes; then 44967 if test "x$BUNDLE_FREETYPE" = xyes; then 44968 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 44969 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 44970 FOUND_FREETYPE=no 44971 else 44972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44973 $as_echo_n "checking for freetype... " >&6; } 44974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 44975 $as_echo "yes (using builddeps)" >&6; } 44976 fi 44977 fi 44978 fi 44979 44980 # If we have a sysroot, assume that's where we are supposed to look and skip pkg-config. 44981 if test "x$SYSROOT" = x; then 44982 if test "x$FOUND_FREETYPE" != xyes; then 44983 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 44984 if test "x$PKG_CONFIG" != x; then 44985 44986 pkg_failed=no 44987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 44988 $as_echo_n "checking for FREETYPE... " >&6; } 44989 44990 if test -n "$FREETYPE_CFLAGS"; then 44991 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 44992 elif test -n "$PKG_CONFIG"; then 44993 if test -n "$PKG_CONFIG" && \ 44994 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44995 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44996 ac_status=$? 44997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44998 test $ac_status = 0; }; then 44999 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 45000 else 45001 pkg_failed=yes 45002 fi 45003 else 45004 pkg_failed=untried 45005 fi 45006 if test -n "$FREETYPE_LIBS"; then 45007 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 45008 elif test -n "$PKG_CONFIG"; then 45009 if test -n "$PKG_CONFIG" && \ 45010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 45011 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 45012 ac_status=$? 45013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45014 test $ac_status = 0; }; then 45015 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 45016 else 45017 pkg_failed=yes 45018 fi 45019 else 45020 pkg_failed=untried 45021 fi 45022 45023 45024 45025 if test $pkg_failed = yes; then 45026 45027 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45028 _pkg_short_errors_supported=yes 45029 else 45030 _pkg_short_errors_supported=no 45031 fi 45032 if test $_pkg_short_errors_supported = yes; then 45033 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 45034 else 45035 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 45036 fi 45037 # Put the nasty error message in config.log where it belongs 45038 echo "$FREETYPE_PKG_ERRORS" >&5 45039 45040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45041 $as_echo "no" >&6; } 45042 FOUND_FREETYPE=no 45043 elif test $pkg_failed = untried; then 45044 FOUND_FREETYPE=no 45045 else 45046 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 45047 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 45048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45049 $as_echo "yes" >&6; } 45050 FOUND_FREETYPE=yes 45051 fi 45052 if test "x$FOUND_FREETYPE" = xyes; then 45053 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 45054 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 45055 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 45056 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 45057 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 45058 fi 45059 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 45060 if test "x$BUNDLE_FREETYPE" = xyes; then 45061 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 45062 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 45063 FOUND_FREETYPE=no 45064 else 45065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 45066 $as_echo_n "checking for freetype... " >&6; } 45067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 45068 $as_echo "yes (using pkg-config)" >&6; } 45069 fi 45070 fi 45071 fi 45072 fi 45073 fi 45074 45075 if test "x$FOUND_FREETYPE" != xyes; then 45076 # Check in well-known locations 45077 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45078 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 45079 45080 windows_path="$FREETYPE_BASE_DIR" 45081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45082 unix_path=`$CYGPATH -u "$windows_path"` 45083 FREETYPE_BASE_DIR="$unix_path" 45084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45086 FREETYPE_BASE_DIR="$unix_path" 45087 fi 45088 45089 45090 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45091 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45092 METHOD="well-known location" 45093 45094 # Let's start with an optimistic view of the world :-) 45095 FOUND_FREETYPE=yes 45096 45097 # First look for the canonical freetype main include file ft2build.h. 45098 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45099 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45100 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45101 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45102 # Fail. 45103 FOUND_FREETYPE=no 45104 fi 45105 fi 45106 45107 if test "x$FOUND_FREETYPE" = xyes; then 45108 # Include file found, let's continue the sanity check. 45109 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45110 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45111 45112 # Reset to default value 45113 FREETYPE_BASE_NAME=freetype 45114 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45115 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45116 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45117 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45118 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45119 # for the .6 version explicitly. 45120 FREETYPE_BASE_NAME=freetype.6 45121 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45122 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45123 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45124 else 45125 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45126 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45127 FOUND_FREETYPE=no 45128 fi 45129 else 45130 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45131 # On Windows, we will need both .lib and .dll file. 45132 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45133 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45134 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45135 FOUND_FREETYPE=no 45136 fi 45137 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45138 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45139 # Found lib in isa dir, use that instead. 45140 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45142 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45143 fi 45144 fi 45145 fi 45146 45147 if test "x$FOUND_FREETYPE" = xyes; then 45148 45149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45150 45151 # Input might be given as Windows format, start by converting to 45152 # unix format. 45153 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45154 new_path=`$CYGPATH -u "$path"` 45155 45156 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45157 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45158 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45159 # "foo.exe" is OK but "foo" is an error. 45160 # 45161 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45162 # It is also a way to make sure we got the proper file name for the real test later on. 45163 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45164 if test "x$test_shortpath" = x; then 45165 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45166 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45167 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45168 fi 45169 45170 # Call helper function which possibly converts this using DOS-style short mode. 45171 # If so, the updated path is stored in $new_path. 45172 45173 input_path="$new_path" 45174 # Check if we need to convert this using DOS-style short mode. If the path 45175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45176 # take no chances and rewrite it. 45177 # Note: m4 eats our [], so we need to use [ and ] instead. 45178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45179 if test "x$has_forbidden_chars" != x; then 45180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45181 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45182 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45183 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45184 # Going to short mode and back again did indeed matter. Since short mode is 45185 # case insensitive, let's make it lowercase to improve readability. 45186 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45187 # Now convert it back to Unix-stile (cygpath) 45188 input_path=`$CYGPATH -u "$shortmode_path"` 45189 new_path="$input_path" 45190 fi 45191 fi 45192 45193 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45194 if test "x$test_cygdrive_prefix" = x; then 45195 # As a simple fix, exclude /usr/bin since it's not a real path. 45196 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45197 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45198 # a path prefixed by /cygdrive for fixpath to work. 45199 new_path="$CYGWIN_ROOT_PATH$input_path" 45200 fi 45201 fi 45202 45203 45204 if test "x$path" != "x$new_path"; then 45205 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45207 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45208 fi 45209 45210 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45211 45212 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45213 has_colon=`$ECHO $path | $GREP ^.:` 45214 new_path="$path" 45215 if test "x$has_colon" = x; then 45216 # Not in mixed or Windows style, start by that. 45217 new_path=`cmd //c echo $path` 45218 fi 45219 45220 45221 input_path="$new_path" 45222 # Check if we need to convert this using DOS-style short mode. If the path 45223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45224 # take no chances and rewrite it. 45225 # Note: m4 eats our [], so we need to use [ and ] instead. 45226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45227 if test "x$has_forbidden_chars" != x; then 45228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45230 fi 45231 45232 45233 windows_path="$new_path" 45234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45235 unix_path=`$CYGPATH -u "$windows_path"` 45236 new_path="$unix_path" 45237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45239 new_path="$unix_path" 45240 fi 45241 45242 if test "x$path" != "x$new_path"; then 45243 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45244 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45245 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45246 fi 45247 45248 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45249 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45250 45251 else 45252 # We're on a unix platform. Hooray! :) 45253 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45254 has_space=`$ECHO "$path" | $GREP " "` 45255 if test "x$has_space" != x; then 45256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45257 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45258 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45259 fi 45260 45261 # Use eval to expand a potential ~ 45262 eval path="$path" 45263 if test ! -f "$path" && test ! -d "$path"; then 45264 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45265 fi 45266 45267 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45268 fi 45269 45270 45271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45272 45273 # Input might be given as Windows format, start by converting to 45274 # unix format. 45275 path="$POTENTIAL_FREETYPE_LIB_PATH" 45276 new_path=`$CYGPATH -u "$path"` 45277 45278 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45279 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45280 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45281 # "foo.exe" is OK but "foo" is an error. 45282 # 45283 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45284 # It is also a way to make sure we got the proper file name for the real test later on. 45285 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45286 if test "x$test_shortpath" = x; then 45287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45288 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45289 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45290 fi 45291 45292 # Call helper function which possibly converts this using DOS-style short mode. 45293 # If so, the updated path is stored in $new_path. 45294 45295 input_path="$new_path" 45296 # Check if we need to convert this using DOS-style short mode. If the path 45297 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45298 # take no chances and rewrite it. 45299 # Note: m4 eats our [], so we need to use [ and ] instead. 45300 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45301 if test "x$has_forbidden_chars" != x; then 45302 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45303 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45304 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45305 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45306 # Going to short mode and back again did indeed matter. Since short mode is 45307 # case insensitive, let's make it lowercase to improve readability. 45308 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45309 # Now convert it back to Unix-stile (cygpath) 45310 input_path=`$CYGPATH -u "$shortmode_path"` 45311 new_path="$input_path" 45312 fi 45313 fi 45314 45315 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45316 if test "x$test_cygdrive_prefix" = x; then 45317 # As a simple fix, exclude /usr/bin since it's not a real path. 45318 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45319 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45320 # a path prefixed by /cygdrive for fixpath to work. 45321 new_path="$CYGWIN_ROOT_PATH$input_path" 45322 fi 45323 fi 45324 45325 45326 if test "x$path" != "x$new_path"; then 45327 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45329 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45330 fi 45331 45332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45333 45334 path="$POTENTIAL_FREETYPE_LIB_PATH" 45335 has_colon=`$ECHO $path | $GREP ^.:` 45336 new_path="$path" 45337 if test "x$has_colon" = x; then 45338 # Not in mixed or Windows style, start by that. 45339 new_path=`cmd //c echo $path` 45340 fi 45341 45342 45343 input_path="$new_path" 45344 # Check if we need to convert this using DOS-style short mode. If the path 45345 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45346 # take no chances and rewrite it. 45347 # Note: m4 eats our [], so we need to use [ and ] instead. 45348 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45349 if test "x$has_forbidden_chars" != x; then 45350 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45351 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45352 fi 45353 45354 45355 windows_path="$new_path" 45356 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45357 unix_path=`$CYGPATH -u "$windows_path"` 45358 new_path="$unix_path" 45359 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45360 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45361 new_path="$unix_path" 45362 fi 45363 45364 if test "x$path" != "x$new_path"; then 45365 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45367 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45368 fi 45369 45370 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45371 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45372 45373 else 45374 # We're on a unix platform. Hooray! :) 45375 path="$POTENTIAL_FREETYPE_LIB_PATH" 45376 has_space=`$ECHO "$path" | $GREP " "` 45377 if test "x$has_space" != x; then 45378 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45379 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45380 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45381 fi 45382 45383 # Use eval to expand a potential ~ 45384 eval path="$path" 45385 if test ! -f "$path" && test ! -d "$path"; then 45386 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45387 fi 45388 45389 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45390 fi 45391 45392 45393 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45395 $as_echo_n "checking for freetype includes... " >&6; } 45396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45397 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45398 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45400 $as_echo_n "checking for freetype libraries... " >&6; } 45401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45402 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45403 fi 45404 45405 if test "x$FOUND_FREETYPE" != xyes; then 45406 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 45407 45408 windows_path="$FREETYPE_BASE_DIR" 45409 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45410 unix_path=`$CYGPATH -u "$windows_path"` 45411 FREETYPE_BASE_DIR="$unix_path" 45412 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45413 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45414 FREETYPE_BASE_DIR="$unix_path" 45415 fi 45416 45417 45418 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45419 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45420 METHOD="well-known location" 45421 45422 # Let's start with an optimistic view of the world :-) 45423 FOUND_FREETYPE=yes 45424 45425 # First look for the canonical freetype main include file ft2build.h. 45426 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45427 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45428 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45429 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45430 # Fail. 45431 FOUND_FREETYPE=no 45432 fi 45433 fi 45434 45435 if test "x$FOUND_FREETYPE" = xyes; then 45436 # Include file found, let's continue the sanity check. 45437 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45438 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45439 45440 # Reset to default value 45441 FREETYPE_BASE_NAME=freetype 45442 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45443 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45444 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45445 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45446 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45447 # for the .6 version explicitly. 45448 FREETYPE_BASE_NAME=freetype.6 45449 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45450 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45451 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45452 else 45453 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45454 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45455 FOUND_FREETYPE=no 45456 fi 45457 else 45458 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45459 # On Windows, we will need both .lib and .dll file. 45460 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45461 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45462 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45463 FOUND_FREETYPE=no 45464 fi 45465 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45466 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45467 # Found lib in isa dir, use that instead. 45468 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45470 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45471 fi 45472 fi 45473 fi 45474 45475 if test "x$FOUND_FREETYPE" = xyes; then 45476 45477 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45478 45479 # Input might be given as Windows format, start by converting to 45480 # unix format. 45481 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45482 new_path=`$CYGPATH -u "$path"` 45483 45484 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45485 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45486 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45487 # "foo.exe" is OK but "foo" is an error. 45488 # 45489 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45490 # It is also a way to make sure we got the proper file name for the real test later on. 45491 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45492 if test "x$test_shortpath" = x; then 45493 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45494 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45495 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45496 fi 45497 45498 # Call helper function which possibly converts this using DOS-style short mode. 45499 # If so, the updated path is stored in $new_path. 45500 45501 input_path="$new_path" 45502 # Check if we need to convert this using DOS-style short mode. If the path 45503 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45504 # take no chances and rewrite it. 45505 # Note: m4 eats our [], so we need to use [ and ] instead. 45506 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45507 if test "x$has_forbidden_chars" != x; then 45508 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45509 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45510 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45511 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45512 # Going to short mode and back again did indeed matter. Since short mode is 45513 # case insensitive, let's make it lowercase to improve readability. 45514 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45515 # Now convert it back to Unix-stile (cygpath) 45516 input_path=`$CYGPATH -u "$shortmode_path"` 45517 new_path="$input_path" 45518 fi 45519 fi 45520 45521 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45522 if test "x$test_cygdrive_prefix" = x; then 45523 # As a simple fix, exclude /usr/bin since it's not a real path. 45524 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45525 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45526 # a path prefixed by /cygdrive for fixpath to work. 45527 new_path="$CYGWIN_ROOT_PATH$input_path" 45528 fi 45529 fi 45530 45531 45532 if test "x$path" != "x$new_path"; then 45533 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45534 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45535 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45536 fi 45537 45538 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45539 45540 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45541 has_colon=`$ECHO $path | $GREP ^.:` 45542 new_path="$path" 45543 if test "x$has_colon" = x; then 45544 # Not in mixed or Windows style, start by that. 45545 new_path=`cmd //c echo $path` 45546 fi 45547 45548 45549 input_path="$new_path" 45550 # Check if we need to convert this using DOS-style short mode. If the path 45551 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45552 # take no chances and rewrite it. 45553 # Note: m4 eats our [], so we need to use [ and ] instead. 45554 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45555 if test "x$has_forbidden_chars" != x; then 45556 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45557 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45558 fi 45559 45560 45561 windows_path="$new_path" 45562 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45563 unix_path=`$CYGPATH -u "$windows_path"` 45564 new_path="$unix_path" 45565 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45566 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45567 new_path="$unix_path" 45568 fi 45569 45570 if test "x$path" != "x$new_path"; then 45571 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45572 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45573 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45574 fi 45575 45576 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45577 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45578 45579 else 45580 # We're on a unix platform. Hooray! :) 45581 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45582 has_space=`$ECHO "$path" | $GREP " "` 45583 if test "x$has_space" != x; then 45584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45585 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45586 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45587 fi 45588 45589 # Use eval to expand a potential ~ 45590 eval path="$path" 45591 if test ! -f "$path" && test ! -d "$path"; then 45592 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45593 fi 45594 45595 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45596 fi 45597 45598 45599 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45600 45601 # Input might be given as Windows format, start by converting to 45602 # unix format. 45603 path="$POTENTIAL_FREETYPE_LIB_PATH" 45604 new_path=`$CYGPATH -u "$path"` 45605 45606 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45607 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45608 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45609 # "foo.exe" is OK but "foo" is an error. 45610 # 45611 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45612 # It is also a way to make sure we got the proper file name for the real test later on. 45613 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45614 if test "x$test_shortpath" = x; then 45615 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45616 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45617 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45618 fi 45619 45620 # Call helper function which possibly converts this using DOS-style short mode. 45621 # If so, the updated path is stored in $new_path. 45622 45623 input_path="$new_path" 45624 # Check if we need to convert this using DOS-style short mode. If the path 45625 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45626 # take no chances and rewrite it. 45627 # Note: m4 eats our [], so we need to use [ and ] instead. 45628 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45629 if test "x$has_forbidden_chars" != x; then 45630 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45631 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45632 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45633 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45634 # Going to short mode and back again did indeed matter. Since short mode is 45635 # case insensitive, let's make it lowercase to improve readability. 45636 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45637 # Now convert it back to Unix-stile (cygpath) 45638 input_path=`$CYGPATH -u "$shortmode_path"` 45639 new_path="$input_path" 45640 fi 45641 fi 45642 45643 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45644 if test "x$test_cygdrive_prefix" = x; then 45645 # As a simple fix, exclude /usr/bin since it's not a real path. 45646 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45647 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45648 # a path prefixed by /cygdrive for fixpath to work. 45649 new_path="$CYGWIN_ROOT_PATH$input_path" 45650 fi 45651 fi 45652 45653 45654 if test "x$path" != "x$new_path"; then 45655 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45656 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45657 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45658 fi 45659 45660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45661 45662 path="$POTENTIAL_FREETYPE_LIB_PATH" 45663 has_colon=`$ECHO $path | $GREP ^.:` 45664 new_path="$path" 45665 if test "x$has_colon" = x; then 45666 # Not in mixed or Windows style, start by that. 45667 new_path=`cmd //c echo $path` 45668 fi 45669 45670 45671 input_path="$new_path" 45672 # Check if we need to convert this using DOS-style short mode. If the path 45673 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45674 # take no chances and rewrite it. 45675 # Note: m4 eats our [], so we need to use [ and ] instead. 45676 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45677 if test "x$has_forbidden_chars" != x; then 45678 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45679 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45680 fi 45681 45682 45683 windows_path="$new_path" 45684 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45685 unix_path=`$CYGPATH -u "$windows_path"` 45686 new_path="$unix_path" 45687 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45688 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45689 new_path="$unix_path" 45690 fi 45691 45692 if test "x$path" != "x$new_path"; then 45693 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45694 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45695 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45696 fi 45697 45698 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45699 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45700 45701 else 45702 # We're on a unix platform. Hooray! :) 45703 path="$POTENTIAL_FREETYPE_LIB_PATH" 45704 has_space=`$ECHO "$path" | $GREP " "` 45705 if test "x$has_space" != x; then 45706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45707 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45708 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45709 fi 45710 45711 # Use eval to expand a potential ~ 45712 eval path="$path" 45713 if test ! -f "$path" && test ! -d "$path"; then 45714 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45715 fi 45716 45717 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45718 fi 45719 45720 45721 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45723 $as_echo_n "checking for freetype includes... " >&6; } 45724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45725 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45726 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45728 $as_echo_n "checking for freetype libraries... " >&6; } 45729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45730 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45731 fi 45732 45733 fi 45734 else 45735 FREETYPE_BASE_DIR="$SYSROOT/usr" 45736 45737 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45738 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45739 METHOD="well-known location" 45740 45741 # Let's start with an optimistic view of the world :-) 45742 FOUND_FREETYPE=yes 45743 45744 # First look for the canonical freetype main include file ft2build.h. 45745 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45746 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 45747 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 45748 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45749 # Fail. 45750 FOUND_FREETYPE=no 45751 fi 45752 fi 45753 45754 if test "x$FOUND_FREETYPE" = xyes; then 45755 # Include file found, let's continue the sanity check. 45756 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45757 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45758 45759 # Reset to default value 45760 FREETYPE_BASE_NAME=freetype 45761 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45762 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45763 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 45764 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 45765 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 45766 # for the .6 version explicitly. 45767 FREETYPE_BASE_NAME=freetype.6 45768 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 45769 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 45770 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 45771 else 45772 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45773 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45774 FOUND_FREETYPE=no 45775 fi 45776 else 45777 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45778 # On Windows, we will need both .lib and .dll file. 45779 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 45780 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 45781 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 45782 FOUND_FREETYPE=no 45783 fi 45784 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 45785 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 45786 # Found lib in isa dir, use that instead. 45787 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 45788 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 45789 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 45790 fi 45791 fi 45792 fi 45793 45794 if test "x$FOUND_FREETYPE" = xyes; then 45795 45796 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45797 45798 # Input might be given as Windows format, start by converting to 45799 # unix format. 45800 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45801 new_path=`$CYGPATH -u "$path"` 45802 45803 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45804 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45805 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45806 # "foo.exe" is OK but "foo" is an error. 45807 # 45808 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45809 # It is also a way to make sure we got the proper file name for the real test later on. 45810 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45811 if test "x$test_shortpath" = x; then 45812 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45813 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45814 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45815 fi 45816 45817 # Call helper function which possibly converts this using DOS-style short mode. 45818 # If so, the updated path is stored in $new_path. 45819 45820 input_path="$new_path" 45821 # Check if we need to convert this using DOS-style short mode. If the path 45822 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45823 # take no chances and rewrite it. 45824 # Note: m4 eats our [], so we need to use [ and ] instead. 45825 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45826 if test "x$has_forbidden_chars" != x; then 45827 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45828 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45829 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45830 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45831 # Going to short mode and back again did indeed matter. Since short mode is 45832 # case insensitive, let's make it lowercase to improve readability. 45833 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45834 # Now convert it back to Unix-stile (cygpath) 45835 input_path=`$CYGPATH -u "$shortmode_path"` 45836 new_path="$input_path" 45837 fi 45838 fi 45839 45840 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45841 if test "x$test_cygdrive_prefix" = x; then 45842 # As a simple fix, exclude /usr/bin since it's not a real path. 45843 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45844 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45845 # a path prefixed by /cygdrive for fixpath to work. 45846 new_path="$CYGWIN_ROOT_PATH$input_path" 45847 fi 45848 fi 45849 45850 45851 if test "x$path" != "x$new_path"; then 45852 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45853 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45854 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45855 fi 45856 45857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45858 45859 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45860 has_colon=`$ECHO $path | $GREP ^.:` 45861 new_path="$path" 45862 if test "x$has_colon" = x; then 45863 # Not in mixed or Windows style, start by that. 45864 new_path=`cmd //c echo $path` 45865 fi 45866 45867 45868 input_path="$new_path" 45869 # Check if we need to convert this using DOS-style short mode. If the path 45870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45871 # take no chances and rewrite it. 45872 # Note: m4 eats our [], so we need to use [ and ] instead. 45873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45874 if test "x$has_forbidden_chars" != x; then 45875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45876 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45877 fi 45878 45879 45880 windows_path="$new_path" 45881 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45882 unix_path=`$CYGPATH -u "$windows_path"` 45883 new_path="$unix_path" 45884 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45885 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45886 new_path="$unix_path" 45887 fi 45888 45889 if test "x$path" != "x$new_path"; then 45890 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45891 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45892 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45893 fi 45894 45895 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45896 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45897 45898 else 45899 # We're on a unix platform. Hooray! :) 45900 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45901 has_space=`$ECHO "$path" | $GREP " "` 45902 if test "x$has_space" != x; then 45903 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45904 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45905 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45906 fi 45907 45908 # Use eval to expand a potential ~ 45909 eval path="$path" 45910 if test ! -f "$path" && test ! -d "$path"; then 45911 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45912 fi 45913 45914 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45915 fi 45916 45917 45918 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45919 45920 # Input might be given as Windows format, start by converting to 45921 # unix format. 45922 path="$POTENTIAL_FREETYPE_LIB_PATH" 45923 new_path=`$CYGPATH -u "$path"` 45924 45925 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45926 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45927 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45928 # "foo.exe" is OK but "foo" is an error. 45929 # 45930 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45931 # It is also a way to make sure we got the proper file name for the real test later on. 45932 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45933 if test "x$test_shortpath" = x; then 45934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45935 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45936 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45937 fi 45938 45939 # Call helper function which possibly converts this using DOS-style short mode. 45940 # If so, the updated path is stored in $new_path. 45941 45942 input_path="$new_path" 45943 # Check if we need to convert this using DOS-style short mode. If the path 45944 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45945 # take no chances and rewrite it. 45946 # Note: m4 eats our [], so we need to use [ and ] instead. 45947 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45948 if test "x$has_forbidden_chars" != x; then 45949 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45950 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45951 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45952 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45953 # Going to short mode and back again did indeed matter. Since short mode is 45954 # case insensitive, let's make it lowercase to improve readability. 45955 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45956 # Now convert it back to Unix-stile (cygpath) 45957 input_path=`$CYGPATH -u "$shortmode_path"` 45958 new_path="$input_path" 45959 fi 45960 fi 45961 45962 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45963 if test "x$test_cygdrive_prefix" = x; then 45964 # As a simple fix, exclude /usr/bin since it's not a real path. 45965 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45966 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45967 # a path prefixed by /cygdrive for fixpath to work. 45968 new_path="$CYGWIN_ROOT_PATH$input_path" 45969 fi 45970 fi 45971 45972 45973 if test "x$path" != "x$new_path"; then 45974 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45975 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45976 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45977 fi 45978 45979 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45980 45981 path="$POTENTIAL_FREETYPE_LIB_PATH" 45982 has_colon=`$ECHO $path | $GREP ^.:` 45983 new_path="$path" 45984 if test "x$has_colon" = x; then 45985 # Not in mixed or Windows style, start by that. 45986 new_path=`cmd //c echo $path` 45987 fi 45988 45989 45990 input_path="$new_path" 45991 # Check if we need to convert this using DOS-style short mode. If the path 45992 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45993 # take no chances and rewrite it. 45994 # Note: m4 eats our [], so we need to use [ and ] instead. 45995 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45996 if test "x$has_forbidden_chars" != x; then 45997 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45998 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45999 fi 46000 46001 46002 windows_path="$new_path" 46003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46004 unix_path=`$CYGPATH -u "$windows_path"` 46005 new_path="$unix_path" 46006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46008 new_path="$unix_path" 46009 fi 46010 46011 if test "x$path" != "x$new_path"; then 46012 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46013 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46014 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46015 fi 46016 46017 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46018 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46019 46020 else 46021 # We're on a unix platform. Hooray! :) 46022 path="$POTENTIAL_FREETYPE_LIB_PATH" 46023 has_space=`$ECHO "$path" | $GREP " "` 46024 if test "x$has_space" != x; then 46025 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46026 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46027 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46028 fi 46029 46030 # Use eval to expand a potential ~ 46031 eval path="$path" 46032 if test ! -f "$path" && test ! -d "$path"; then 46033 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46034 fi 46035 46036 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46037 fi 46038 46039 46040 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46042 $as_echo_n "checking for freetype includes... " >&6; } 46043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46044 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46045 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46047 $as_echo_n "checking for freetype libraries... " >&6; } 46048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46049 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46050 fi 46051 46052 46053 if test "x$FOUND_FREETYPE" != xyes; then 46054 FREETYPE_BASE_DIR="$SYSROOT/usr/X11" 46055 46056 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46057 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46058 METHOD="well-known location" 46059 46060 # Let's start with an optimistic view of the world :-) 46061 FOUND_FREETYPE=yes 46062 46063 # First look for the canonical freetype main include file ft2build.h. 46064 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46065 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46066 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46067 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46068 # Fail. 46069 FOUND_FREETYPE=no 46070 fi 46071 fi 46072 46073 if test "x$FOUND_FREETYPE" = xyes; then 46074 # Include file found, let's continue the sanity check. 46075 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46076 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46077 46078 # Reset to default value 46079 FREETYPE_BASE_NAME=freetype 46080 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46081 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46082 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46083 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46084 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46085 # for the .6 version explicitly. 46086 FREETYPE_BASE_NAME=freetype.6 46087 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46088 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46089 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46090 else 46091 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46092 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46093 FOUND_FREETYPE=no 46094 fi 46095 else 46096 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46097 # On Windows, we will need both .lib and .dll file. 46098 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46099 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46100 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46101 FOUND_FREETYPE=no 46102 fi 46103 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46104 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46105 # Found lib in isa dir, use that instead. 46106 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46107 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46108 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46109 fi 46110 fi 46111 fi 46112 46113 if test "x$FOUND_FREETYPE" = xyes; then 46114 46115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46116 46117 # Input might be given as Windows format, start by converting to 46118 # unix format. 46119 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46120 new_path=`$CYGPATH -u "$path"` 46121 46122 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46123 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46124 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46125 # "foo.exe" is OK but "foo" is an error. 46126 # 46127 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46128 # It is also a way to make sure we got the proper file name for the real test later on. 46129 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46130 if test "x$test_shortpath" = x; then 46131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46132 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46133 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46134 fi 46135 46136 # Call helper function which possibly converts this using DOS-style short mode. 46137 # If so, the updated path is stored in $new_path. 46138 46139 input_path="$new_path" 46140 # Check if we need to convert this using DOS-style short mode. If the path 46141 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46142 # take no chances and rewrite it. 46143 # Note: m4 eats our [], so we need to use [ and ] instead. 46144 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46145 if test "x$has_forbidden_chars" != x; then 46146 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46147 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46148 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46149 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46150 # Going to short mode and back again did indeed matter. Since short mode is 46151 # case insensitive, let's make it lowercase to improve readability. 46152 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46153 # Now convert it back to Unix-stile (cygpath) 46154 input_path=`$CYGPATH -u "$shortmode_path"` 46155 new_path="$input_path" 46156 fi 46157 fi 46158 46159 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46160 if test "x$test_cygdrive_prefix" = x; then 46161 # As a simple fix, exclude /usr/bin since it's not a real path. 46162 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46163 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46164 # a path prefixed by /cygdrive for fixpath to work. 46165 new_path="$CYGWIN_ROOT_PATH$input_path" 46166 fi 46167 fi 46168 46169 46170 if test "x$path" != "x$new_path"; then 46171 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46172 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46173 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46174 fi 46175 46176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46177 46178 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46179 has_colon=`$ECHO $path | $GREP ^.:` 46180 new_path="$path" 46181 if test "x$has_colon" = x; then 46182 # Not in mixed or Windows style, start by that. 46183 new_path=`cmd //c echo $path` 46184 fi 46185 46186 46187 input_path="$new_path" 46188 # Check if we need to convert this using DOS-style short mode. If the path 46189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46190 # take no chances and rewrite it. 46191 # Note: m4 eats our [], so we need to use [ and ] instead. 46192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46193 if test "x$has_forbidden_chars" != x; then 46194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46195 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46196 fi 46197 46198 46199 windows_path="$new_path" 46200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46201 unix_path=`$CYGPATH -u "$windows_path"` 46202 new_path="$unix_path" 46203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46205 new_path="$unix_path" 46206 fi 46207 46208 if test "x$path" != "x$new_path"; then 46209 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46211 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46212 fi 46213 46214 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46215 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46216 46217 else 46218 # We're on a unix platform. Hooray! :) 46219 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46220 has_space=`$ECHO "$path" | $GREP " "` 46221 if test "x$has_space" != x; then 46222 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46223 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46224 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46225 fi 46226 46227 # Use eval to expand a potential ~ 46228 eval path="$path" 46229 if test ! -f "$path" && test ! -d "$path"; then 46230 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46231 fi 46232 46233 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46234 fi 46235 46236 46237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46238 46239 # Input might be given as Windows format, start by converting to 46240 # unix format. 46241 path="$POTENTIAL_FREETYPE_LIB_PATH" 46242 new_path=`$CYGPATH -u "$path"` 46243 46244 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46245 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46246 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46247 # "foo.exe" is OK but "foo" is an error. 46248 # 46249 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46250 # It is also a way to make sure we got the proper file name for the real test later on. 46251 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46252 if test "x$test_shortpath" = x; then 46253 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46254 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46255 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46256 fi 46257 46258 # Call helper function which possibly converts this using DOS-style short mode. 46259 # If so, the updated path is stored in $new_path. 46260 46261 input_path="$new_path" 46262 # Check if we need to convert this using DOS-style short mode. If the path 46263 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46264 # take no chances and rewrite it. 46265 # Note: m4 eats our [], so we need to use [ and ] instead. 46266 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46267 if test "x$has_forbidden_chars" != x; then 46268 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46269 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46270 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46271 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46272 # Going to short mode and back again did indeed matter. Since short mode is 46273 # case insensitive, let's make it lowercase to improve readability. 46274 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46275 # Now convert it back to Unix-stile (cygpath) 46276 input_path=`$CYGPATH -u "$shortmode_path"` 46277 new_path="$input_path" 46278 fi 46279 fi 46280 46281 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46282 if test "x$test_cygdrive_prefix" = x; then 46283 # As a simple fix, exclude /usr/bin since it's not a real path. 46284 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46285 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46286 # a path prefixed by /cygdrive for fixpath to work. 46287 new_path="$CYGWIN_ROOT_PATH$input_path" 46288 fi 46289 fi 46290 46291 46292 if test "x$path" != "x$new_path"; then 46293 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46294 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46295 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46296 fi 46297 46298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46299 46300 path="$POTENTIAL_FREETYPE_LIB_PATH" 46301 has_colon=`$ECHO $path | $GREP ^.:` 46302 new_path="$path" 46303 if test "x$has_colon" = x; then 46304 # Not in mixed or Windows style, start by that. 46305 new_path=`cmd //c echo $path` 46306 fi 46307 46308 46309 input_path="$new_path" 46310 # Check if we need to convert this using DOS-style short mode. If the path 46311 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46312 # take no chances and rewrite it. 46313 # Note: m4 eats our [], so we need to use [ and ] instead. 46314 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46315 if test "x$has_forbidden_chars" != x; then 46316 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46317 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46318 fi 46319 46320 46321 windows_path="$new_path" 46322 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46323 unix_path=`$CYGPATH -u "$windows_path"` 46324 new_path="$unix_path" 46325 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46326 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46327 new_path="$unix_path" 46328 fi 46329 46330 if test "x$path" != "x$new_path"; then 46331 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46332 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46333 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46334 fi 46335 46336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46338 46339 else 46340 # We're on a unix platform. Hooray! :) 46341 path="$POTENTIAL_FREETYPE_LIB_PATH" 46342 has_space=`$ECHO "$path" | $GREP " "` 46343 if test "x$has_space" != x; then 46344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46345 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46346 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46347 fi 46348 46349 # Use eval to expand a potential ~ 46350 eval path="$path" 46351 if test ! -f "$path" && test ! -d "$path"; then 46352 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46353 fi 46354 46355 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46356 fi 46357 46358 46359 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46361 $as_echo_n "checking for freetype includes... " >&6; } 46362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46363 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46364 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46366 $as_echo_n "checking for freetype libraries... " >&6; } 46367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46368 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46369 fi 46370 46371 fi 46372 46373 if test "x$FOUND_FREETYPE" != xyes; then 46374 FREETYPE_BASE_DIR="$SYSROOT/usr/sfw" 46375 46376 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46377 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 46378 METHOD="well-known location" 46379 46380 # Let's start with an optimistic view of the world :-) 46381 FOUND_FREETYPE=yes 46382 46383 # First look for the canonical freetype main include file ft2build.h. 46384 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46385 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46386 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46387 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46388 # Fail. 46389 FOUND_FREETYPE=no 46390 fi 46391 fi 46392 46393 if test "x$FOUND_FREETYPE" = xyes; then 46394 # Include file found, let's continue the sanity check. 46395 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46396 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46397 46398 # Reset to default value 46399 FREETYPE_BASE_NAME=freetype 46400 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46401 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46402 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46403 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46404 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46405 # for the .6 version explicitly. 46406 FREETYPE_BASE_NAME=freetype.6 46407 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46408 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46409 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46410 else 46411 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46412 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46413 FOUND_FREETYPE=no 46414 fi 46415 else 46416 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46417 # On Windows, we will need both .lib and .dll file. 46418 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46419 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46420 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46421 FOUND_FREETYPE=no 46422 fi 46423 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46424 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46425 # Found lib in isa dir, use that instead. 46426 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46427 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46428 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46429 fi 46430 fi 46431 fi 46432 46433 if test "x$FOUND_FREETYPE" = xyes; then 46434 46435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46436 46437 # Input might be given as Windows format, start by converting to 46438 # unix format. 46439 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46440 new_path=`$CYGPATH -u "$path"` 46441 46442 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46443 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46444 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46445 # "foo.exe" is OK but "foo" is an error. 46446 # 46447 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46448 # It is also a way to make sure we got the proper file name for the real test later on. 46449 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46450 if test "x$test_shortpath" = x; then 46451 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46452 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46453 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46454 fi 46455 46456 # Call helper function which possibly converts this using DOS-style short mode. 46457 # If so, the updated path is stored in $new_path. 46458 46459 input_path="$new_path" 46460 # Check if we need to convert this using DOS-style short mode. If the path 46461 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46462 # take no chances and rewrite it. 46463 # Note: m4 eats our [], so we need to use [ and ] instead. 46464 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46465 if test "x$has_forbidden_chars" != x; then 46466 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46467 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46468 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46469 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46470 # Going to short mode and back again did indeed matter. Since short mode is 46471 # case insensitive, let's make it lowercase to improve readability. 46472 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46473 # Now convert it back to Unix-stile (cygpath) 46474 input_path=`$CYGPATH -u "$shortmode_path"` 46475 new_path="$input_path" 46476 fi 46477 fi 46478 46479 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46480 if test "x$test_cygdrive_prefix" = x; then 46481 # As a simple fix, exclude /usr/bin since it's not a real path. 46482 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46483 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46484 # a path prefixed by /cygdrive for fixpath to work. 46485 new_path="$CYGWIN_ROOT_PATH$input_path" 46486 fi 46487 fi 46488 46489 46490 if test "x$path" != "x$new_path"; then 46491 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46492 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46493 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46494 fi 46495 46496 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46497 46498 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46499 has_colon=`$ECHO $path | $GREP ^.:` 46500 new_path="$path" 46501 if test "x$has_colon" = x; then 46502 # Not in mixed or Windows style, start by that. 46503 new_path=`cmd //c echo $path` 46504 fi 46505 46506 46507 input_path="$new_path" 46508 # Check if we need to convert this using DOS-style short mode. If the path 46509 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46510 # take no chances and rewrite it. 46511 # Note: m4 eats our [], so we need to use [ and ] instead. 46512 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46513 if test "x$has_forbidden_chars" != x; then 46514 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46515 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46516 fi 46517 46518 46519 windows_path="$new_path" 46520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46521 unix_path=`$CYGPATH -u "$windows_path"` 46522 new_path="$unix_path" 46523 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46524 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46525 new_path="$unix_path" 46526 fi 46527 46528 if test "x$path" != "x$new_path"; then 46529 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46530 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46531 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46532 fi 46533 46534 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46535 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46536 46537 else 46538 # We're on a unix platform. Hooray! :) 46539 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46540 has_space=`$ECHO "$path" | $GREP " "` 46541 if test "x$has_space" != x; then 46542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46543 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46544 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46545 fi 46546 46547 # Use eval to expand a potential ~ 46548 eval path="$path" 46549 if test ! -f "$path" && test ! -d "$path"; then 46550 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46551 fi 46552 46553 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46554 fi 46555 46556 46557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46558 46559 # Input might be given as Windows format, start by converting to 46560 # unix format. 46561 path="$POTENTIAL_FREETYPE_LIB_PATH" 46562 new_path=`$CYGPATH -u "$path"` 46563 46564 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46565 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46566 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46567 # "foo.exe" is OK but "foo" is an error. 46568 # 46569 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46570 # It is also a way to make sure we got the proper file name for the real test later on. 46571 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46572 if test "x$test_shortpath" = x; then 46573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46574 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46575 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46576 fi 46577 46578 # Call helper function which possibly converts this using DOS-style short mode. 46579 # If so, the updated path is stored in $new_path. 46580 46581 input_path="$new_path" 46582 # Check if we need to convert this using DOS-style short mode. If the path 46583 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46584 # take no chances and rewrite it. 46585 # Note: m4 eats our [], so we need to use [ and ] instead. 46586 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46587 if test "x$has_forbidden_chars" != x; then 46588 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46589 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46590 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46591 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46592 # Going to short mode and back again did indeed matter. Since short mode is 46593 # case insensitive, let's make it lowercase to improve readability. 46594 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46595 # Now convert it back to Unix-stile (cygpath) 46596 input_path=`$CYGPATH -u "$shortmode_path"` 46597 new_path="$input_path" 46598 fi 46599 fi 46600 46601 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46602 if test "x$test_cygdrive_prefix" = x; then 46603 # As a simple fix, exclude /usr/bin since it's not a real path. 46604 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46605 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46606 # a path prefixed by /cygdrive for fixpath to work. 46607 new_path="$CYGWIN_ROOT_PATH$input_path" 46608 fi 46609 fi 46610 46611 46612 if test "x$path" != "x$new_path"; then 46613 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46614 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46615 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46616 fi 46617 46618 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46619 46620 path="$POTENTIAL_FREETYPE_LIB_PATH" 46621 has_colon=`$ECHO $path | $GREP ^.:` 46622 new_path="$path" 46623 if test "x$has_colon" = x; then 46624 # Not in mixed or Windows style, start by that. 46625 new_path=`cmd //c echo $path` 46626 fi 46627 46628 46629 input_path="$new_path" 46630 # Check if we need to convert this using DOS-style short mode. If the path 46631 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46632 # take no chances and rewrite it. 46633 # Note: m4 eats our [], so we need to use [ and ] instead. 46634 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46635 if test "x$has_forbidden_chars" != x; then 46636 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46637 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46638 fi 46639 46640 46641 windows_path="$new_path" 46642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46643 unix_path=`$CYGPATH -u "$windows_path"` 46644 new_path="$unix_path" 46645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46647 new_path="$unix_path" 46648 fi 46649 46650 if test "x$path" != "x$new_path"; then 46651 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46653 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46654 fi 46655 46656 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46657 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46658 46659 else 46660 # We're on a unix platform. Hooray! :) 46661 path="$POTENTIAL_FREETYPE_LIB_PATH" 46662 has_space=`$ECHO "$path" | $GREP " "` 46663 if test "x$has_space" != x; then 46664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46665 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46666 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46667 fi 46668 46669 # Use eval to expand a potential ~ 46670 eval path="$path" 46671 if test ! -f "$path" && test ! -d "$path"; then 46672 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46673 fi 46674 46675 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46676 fi 46677 46678 46679 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46681 $as_echo_n "checking for freetype includes... " >&6; } 46682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46683 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46684 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46686 $as_echo_n "checking for freetype libraries... " >&6; } 46687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46688 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46689 fi 46690 46691 fi 46692 46693 if test "x$FOUND_FREETYPE" != xyes; then 46694 FREETYPE_BASE_DIR="$SYSROOT/usr" 46695 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46696 46697 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46698 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 46699 METHOD="well-known location" 46700 46701 # Let's start with an optimistic view of the world :-) 46702 FOUND_FREETYPE=yes 46703 46704 # First look for the canonical freetype main include file ft2build.h. 46705 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46706 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 46707 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 46708 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46709 # Fail. 46710 FOUND_FREETYPE=no 46711 fi 46712 fi 46713 46714 if test "x$FOUND_FREETYPE" = xyes; then 46715 # Include file found, let's continue the sanity check. 46716 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46717 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46718 46719 # Reset to default value 46720 FREETYPE_BASE_NAME=freetype 46721 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46722 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46723 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 46724 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 46725 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 46726 # for the .6 version explicitly. 46727 FREETYPE_BASE_NAME=freetype.6 46728 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 46729 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 46730 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 46731 else 46732 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46733 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46734 FOUND_FREETYPE=no 46735 fi 46736 else 46737 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46738 # On Windows, we will need both .lib and .dll file. 46739 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 46740 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 46741 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 46742 FOUND_FREETYPE=no 46743 fi 46744 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 46745 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 46746 # Found lib in isa dir, use that instead. 46747 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 46748 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 46749 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 46750 fi 46751 fi 46752 fi 46753 46754 if test "x$FOUND_FREETYPE" = xyes; then 46755 46756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46757 46758 # Input might be given as Windows format, start by converting to 46759 # unix format. 46760 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46761 new_path=`$CYGPATH -u "$path"` 46762 46763 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46764 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46765 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46766 # "foo.exe" is OK but "foo" is an error. 46767 # 46768 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46769 # It is also a way to make sure we got the proper file name for the real test later on. 46770 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46771 if test "x$test_shortpath" = x; then 46772 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46773 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46774 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46775 fi 46776 46777 # Call helper function which possibly converts this using DOS-style short mode. 46778 # If so, the updated path is stored in $new_path. 46779 46780 input_path="$new_path" 46781 # Check if we need to convert this using DOS-style short mode. If the path 46782 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46783 # take no chances and rewrite it. 46784 # Note: m4 eats our [], so we need to use [ and ] instead. 46785 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46786 if test "x$has_forbidden_chars" != x; then 46787 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46788 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46789 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46790 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46791 # Going to short mode and back again did indeed matter. Since short mode is 46792 # case insensitive, let's make it lowercase to improve readability. 46793 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46794 # Now convert it back to Unix-stile (cygpath) 46795 input_path=`$CYGPATH -u "$shortmode_path"` 46796 new_path="$input_path" 46797 fi 46798 fi 46799 46800 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46801 if test "x$test_cygdrive_prefix" = x; then 46802 # As a simple fix, exclude /usr/bin since it's not a real path. 46803 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46804 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46805 # a path prefixed by /cygdrive for fixpath to work. 46806 new_path="$CYGWIN_ROOT_PATH$input_path" 46807 fi 46808 fi 46809 46810 46811 if test "x$path" != "x$new_path"; then 46812 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46813 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46814 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46815 fi 46816 46817 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46818 46819 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46820 has_colon=`$ECHO $path | $GREP ^.:` 46821 new_path="$path" 46822 if test "x$has_colon" = x; then 46823 # Not in mixed or Windows style, start by that. 46824 new_path=`cmd //c echo $path` 46825 fi 46826 46827 46828 input_path="$new_path" 46829 # Check if we need to convert this using DOS-style short mode. If the path 46830 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46831 # take no chances and rewrite it. 46832 # Note: m4 eats our [], so we need to use [ and ] instead. 46833 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46834 if test "x$has_forbidden_chars" != x; then 46835 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46836 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46837 fi 46838 46839 46840 windows_path="$new_path" 46841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46842 unix_path=`$CYGPATH -u "$windows_path"` 46843 new_path="$unix_path" 46844 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46845 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46846 new_path="$unix_path" 46847 fi 46848 46849 if test "x$path" != "x$new_path"; then 46850 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46851 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46852 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46853 fi 46854 46855 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46856 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46857 46858 else 46859 # We're on a unix platform. Hooray! :) 46860 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46861 has_space=`$ECHO "$path" | $GREP " "` 46862 if test "x$has_space" != x; then 46863 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46864 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46865 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46866 fi 46867 46868 # Use eval to expand a potential ~ 46869 eval path="$path" 46870 if test ! -f "$path" && test ! -d "$path"; then 46871 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46872 fi 46873 46874 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46875 fi 46876 46877 46878 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46879 46880 # Input might be given as Windows format, start by converting to 46881 # unix format. 46882 path="$POTENTIAL_FREETYPE_LIB_PATH" 46883 new_path=`$CYGPATH -u "$path"` 46884 46885 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46886 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46887 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46888 # "foo.exe" is OK but "foo" is an error. 46889 # 46890 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46891 # It is also a way to make sure we got the proper file name for the real test later on. 46892 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46893 if test "x$test_shortpath" = x; then 46894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46895 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46896 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46897 fi 46898 46899 # Call helper function which possibly converts this using DOS-style short mode. 46900 # If so, the updated path is stored in $new_path. 46901 46902 input_path="$new_path" 46903 # Check if we need to convert this using DOS-style short mode. If the path 46904 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46905 # take no chances and rewrite it. 46906 # Note: m4 eats our [], so we need to use [ and ] instead. 46907 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46908 if test "x$has_forbidden_chars" != x; then 46909 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46910 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46911 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46912 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46913 # Going to short mode and back again did indeed matter. Since short mode is 46914 # case insensitive, let's make it lowercase to improve readability. 46915 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46916 # Now convert it back to Unix-stile (cygpath) 46917 input_path=`$CYGPATH -u "$shortmode_path"` 46918 new_path="$input_path" 46919 fi 46920 fi 46921 46922 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46923 if test "x$test_cygdrive_prefix" = x; then 46924 # As a simple fix, exclude /usr/bin since it's not a real path. 46925 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46926 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46927 # a path prefixed by /cygdrive for fixpath to work. 46928 new_path="$CYGWIN_ROOT_PATH$input_path" 46929 fi 46930 fi 46931 46932 46933 if test "x$path" != "x$new_path"; then 46934 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46935 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46936 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46937 fi 46938 46939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46940 46941 path="$POTENTIAL_FREETYPE_LIB_PATH" 46942 has_colon=`$ECHO $path | $GREP ^.:` 46943 new_path="$path" 46944 if test "x$has_colon" = x; then 46945 # Not in mixed or Windows style, start by that. 46946 new_path=`cmd //c echo $path` 46947 fi 46948 46949 46950 input_path="$new_path" 46951 # Check if we need to convert this using DOS-style short mode. If the path 46952 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46953 # take no chances and rewrite it. 46954 # Note: m4 eats our [], so we need to use [ and ] instead. 46955 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46956 if test "x$has_forbidden_chars" != x; then 46957 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46958 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46959 fi 46960 46961 46962 windows_path="$new_path" 46963 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46964 unix_path=`$CYGPATH -u "$windows_path"` 46965 new_path="$unix_path" 46966 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46967 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46968 new_path="$unix_path" 46969 fi 46970 46971 if test "x$path" != "x$new_path"; then 46972 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46973 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46974 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46975 fi 46976 46977 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46978 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46979 46980 else 46981 # We're on a unix platform. Hooray! :) 46982 path="$POTENTIAL_FREETYPE_LIB_PATH" 46983 has_space=`$ECHO "$path" | $GREP " "` 46984 if test "x$has_space" != x; then 46985 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46986 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46987 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46988 fi 46989 46990 # Use eval to expand a potential ~ 46991 eval path="$path" 46992 if test ! -f "$path" && test ! -d "$path"; then 46993 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46994 fi 46995 46996 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46997 fi 46998 46999 47000 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47002 $as_echo_n "checking for freetype includes... " >&6; } 47003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47004 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47005 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47007 $as_echo_n "checking for freetype libraries... " >&6; } 47008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47009 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47010 fi 47011 47012 else 47013 47014 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47015 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 47016 METHOD="well-known location" 47017 47018 # Let's start with an optimistic view of the world :-) 47019 FOUND_FREETYPE=yes 47020 47021 # First look for the canonical freetype main include file ft2build.h. 47022 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47023 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47024 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47025 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47026 # Fail. 47027 FOUND_FREETYPE=no 47028 fi 47029 fi 47030 47031 if test "x$FOUND_FREETYPE" = xyes; then 47032 # Include file found, let's continue the sanity check. 47033 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47034 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47035 47036 # Reset to default value 47037 FREETYPE_BASE_NAME=freetype 47038 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47039 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47040 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47041 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47042 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47043 # for the .6 version explicitly. 47044 FREETYPE_BASE_NAME=freetype.6 47045 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47046 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47047 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47048 else 47049 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47050 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47051 FOUND_FREETYPE=no 47052 fi 47053 else 47054 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47055 # On Windows, we will need both .lib and .dll file. 47056 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47057 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47058 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47059 FOUND_FREETYPE=no 47060 fi 47061 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47062 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47063 # Found lib in isa dir, use that instead. 47064 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47065 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47066 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47067 fi 47068 fi 47069 fi 47070 47071 if test "x$FOUND_FREETYPE" = xyes; then 47072 47073 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47074 47075 # Input might be given as Windows format, start by converting to 47076 # unix format. 47077 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47078 new_path=`$CYGPATH -u "$path"` 47079 47080 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47081 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47082 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47083 # "foo.exe" is OK but "foo" is an error. 47084 # 47085 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47086 # It is also a way to make sure we got the proper file name for the real test later on. 47087 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47088 if test "x$test_shortpath" = x; then 47089 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47090 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47091 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47092 fi 47093 47094 # Call helper function which possibly converts this using DOS-style short mode. 47095 # If so, the updated path is stored in $new_path. 47096 47097 input_path="$new_path" 47098 # Check if we need to convert this using DOS-style short mode. If the path 47099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47100 # take no chances and rewrite it. 47101 # Note: m4 eats our [], so we need to use [ and ] instead. 47102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47103 if test "x$has_forbidden_chars" != x; then 47104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47105 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47106 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47107 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47108 # Going to short mode and back again did indeed matter. Since short mode is 47109 # case insensitive, let's make it lowercase to improve readability. 47110 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47111 # Now convert it back to Unix-stile (cygpath) 47112 input_path=`$CYGPATH -u "$shortmode_path"` 47113 new_path="$input_path" 47114 fi 47115 fi 47116 47117 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47118 if test "x$test_cygdrive_prefix" = x; then 47119 # As a simple fix, exclude /usr/bin since it's not a real path. 47120 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47121 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47122 # a path prefixed by /cygdrive for fixpath to work. 47123 new_path="$CYGWIN_ROOT_PATH$input_path" 47124 fi 47125 fi 47126 47127 47128 if test "x$path" != "x$new_path"; then 47129 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47130 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47131 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47132 fi 47133 47134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47135 47136 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47137 has_colon=`$ECHO $path | $GREP ^.:` 47138 new_path="$path" 47139 if test "x$has_colon" = x; then 47140 # Not in mixed or Windows style, start by that. 47141 new_path=`cmd //c echo $path` 47142 fi 47143 47144 47145 input_path="$new_path" 47146 # Check if we need to convert this using DOS-style short mode. If the path 47147 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47148 # take no chances and rewrite it. 47149 # Note: m4 eats our [], so we need to use [ and ] instead. 47150 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47151 if test "x$has_forbidden_chars" != x; then 47152 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47153 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47154 fi 47155 47156 47157 windows_path="$new_path" 47158 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47159 unix_path=`$CYGPATH -u "$windows_path"` 47160 new_path="$unix_path" 47161 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47162 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47163 new_path="$unix_path" 47164 fi 47165 47166 if test "x$path" != "x$new_path"; then 47167 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47168 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47169 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47170 fi 47171 47172 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47173 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47174 47175 else 47176 # We're on a unix platform. Hooray! :) 47177 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47178 has_space=`$ECHO "$path" | $GREP " "` 47179 if test "x$has_space" != x; then 47180 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47181 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47182 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47183 fi 47184 47185 # Use eval to expand a potential ~ 47186 eval path="$path" 47187 if test ! -f "$path" && test ! -d "$path"; then 47188 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47189 fi 47190 47191 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47192 fi 47193 47194 47195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47196 47197 # Input might be given as Windows format, start by converting to 47198 # unix format. 47199 path="$POTENTIAL_FREETYPE_LIB_PATH" 47200 new_path=`$CYGPATH -u "$path"` 47201 47202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47205 # "foo.exe" is OK but "foo" is an error. 47206 # 47207 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47208 # It is also a way to make sure we got the proper file name for the real test later on. 47209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47210 if test "x$test_shortpath" = x; then 47211 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47212 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47213 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47214 fi 47215 47216 # Call helper function which possibly converts this using DOS-style short mode. 47217 # If so, the updated path is stored in $new_path. 47218 47219 input_path="$new_path" 47220 # Check if we need to convert this using DOS-style short mode. If the path 47221 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47222 # take no chances and rewrite it. 47223 # Note: m4 eats our [], so we need to use [ and ] instead. 47224 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47225 if test "x$has_forbidden_chars" != x; then 47226 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47227 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47228 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47229 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47230 # Going to short mode and back again did indeed matter. Since short mode is 47231 # case insensitive, let's make it lowercase to improve readability. 47232 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47233 # Now convert it back to Unix-stile (cygpath) 47234 input_path=`$CYGPATH -u "$shortmode_path"` 47235 new_path="$input_path" 47236 fi 47237 fi 47238 47239 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47240 if test "x$test_cygdrive_prefix" = x; then 47241 # As a simple fix, exclude /usr/bin since it's not a real path. 47242 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47243 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47244 # a path prefixed by /cygdrive for fixpath to work. 47245 new_path="$CYGWIN_ROOT_PATH$input_path" 47246 fi 47247 fi 47248 47249 47250 if test "x$path" != "x$new_path"; then 47251 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47253 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47254 fi 47255 47256 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47257 47258 path="$POTENTIAL_FREETYPE_LIB_PATH" 47259 has_colon=`$ECHO $path | $GREP ^.:` 47260 new_path="$path" 47261 if test "x$has_colon" = x; then 47262 # Not in mixed or Windows style, start by that. 47263 new_path=`cmd //c echo $path` 47264 fi 47265 47266 47267 input_path="$new_path" 47268 # Check if we need to convert this using DOS-style short mode. If the path 47269 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47270 # take no chances and rewrite it. 47271 # Note: m4 eats our [], so we need to use [ and ] instead. 47272 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47273 if test "x$has_forbidden_chars" != x; then 47274 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47275 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47276 fi 47277 47278 47279 windows_path="$new_path" 47280 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47281 unix_path=`$CYGPATH -u "$windows_path"` 47282 new_path="$unix_path" 47283 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47284 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47285 new_path="$unix_path" 47286 fi 47287 47288 if test "x$path" != "x$new_path"; then 47289 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47291 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47292 fi 47293 47294 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47295 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47296 47297 else 47298 # We're on a unix platform. Hooray! :) 47299 path="$POTENTIAL_FREETYPE_LIB_PATH" 47300 has_space=`$ECHO "$path" | $GREP " "` 47301 if test "x$has_space" != x; then 47302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47303 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47304 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47305 fi 47306 47307 # Use eval to expand a potential ~ 47308 eval path="$path" 47309 if test ! -f "$path" && test ! -d "$path"; then 47310 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47311 fi 47312 47313 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47314 fi 47315 47316 47317 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47319 $as_echo_n "checking for freetype includes... " >&6; } 47320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47321 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47322 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47324 $as_echo_n "checking for freetype libraries... " >&6; } 47325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47326 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47327 fi 47328 47329 if test "x$FOUND_FREETYPE" != xyes; then 47330 47331 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 47332 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 47333 METHOD="well-known location" 47334 47335 # Let's start with an optimistic view of the world :-) 47336 FOUND_FREETYPE=yes 47337 47338 # First look for the canonical freetype main include file ft2build.h. 47339 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47340 # Oh no! Let's try in the freetype2 directory. This is needed at least at Mac OS X Yosemite. 47341 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH/freetype2" 47342 if ! test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 47343 # Fail. 47344 FOUND_FREETYPE=no 47345 fi 47346 fi 47347 47348 if test "x$FOUND_FREETYPE" = xyes; then 47349 # Include file found, let's continue the sanity check. 47350 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 47351 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 47352 47353 # Reset to default value 47354 FREETYPE_BASE_NAME=freetype 47355 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47356 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 47357 if test "x$OPENJDK_TARGET_OS" = xmacosx \ 47358 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/${LIBRARY_PREFIX}freetype.6${SHARED_LIBRARY_SUFFIX}"; then 47359 # On Mac OS X Yosemite, the symlink from libfreetype.dylib to libfreetype.6.dylib disappeared. Check 47360 # for the .6 version explicitly. 47361 FREETYPE_BASE_NAME=freetype.6 47362 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}${FREETYPE_BASE_NAME}${SHARED_LIBRARY_SUFFIX}" 47363 { $as_echo "$as_me:${as_lineno-$LINENO}: Compensating for missing symlink by using version 6 explicitly" >&5 47364 $as_echo "$as_me: Compensating for missing symlink by using version 6 explicitly" >&6;} 47365 else 47366 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 47367 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 47368 FOUND_FREETYPE=no 47369 fi 47370 else 47371 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47372 # On Windows, we will need both .lib and .dll file. 47373 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib"; then 47374 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&5 47375 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/${FREETYPE_BASE_NAME}.lib. Ignoring location." >&6;} 47376 FOUND_FREETYPE=no 47377 fi 47378 elif test "x$OPENJDK_TARGET_OS" = xsolaris \ 47379 && test -s "$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR/$FREETYPE_LIB_NAME"; then 47380 # Found lib in isa dir, use that instead. 47381 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH$OPENJDK_TARGET_CPU_ISADIR" 47382 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&5 47383 $as_echo "$as_me: Rewriting to use $POTENTIAL_FREETYPE_LIB_PATH instead" >&6;} 47384 fi 47385 fi 47386 fi 47387 47388 if test "x$FOUND_FREETYPE" = xyes; then 47389 47390 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47391 47392 # Input might be given as Windows format, start by converting to 47393 # unix format. 47394 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47395 new_path=`$CYGPATH -u "$path"` 47396 47397 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47398 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47399 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47400 # "foo.exe" is OK but "foo" is an error. 47401 # 47402 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47403 # It is also a way to make sure we got the proper file name for the real test later on. 47404 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47405 if test "x$test_shortpath" = x; then 47406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47407 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47408 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 47409 fi 47410 47411 # Call helper function which possibly converts this using DOS-style short mode. 47412 # If so, the updated path is stored in $new_path. 47413 47414 input_path="$new_path" 47415 # Check if we need to convert this using DOS-style short mode. If the path 47416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47417 # take no chances and rewrite it. 47418 # Note: m4 eats our [], so we need to use [ and ] instead. 47419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47420 if test "x$has_forbidden_chars" != x; then 47421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47422 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47423 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47424 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47425 # Going to short mode and back again did indeed matter. Since short mode is 47426 # case insensitive, let's make it lowercase to improve readability. 47427 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47428 # Now convert it back to Unix-stile (cygpath) 47429 input_path=`$CYGPATH -u "$shortmode_path"` 47430 new_path="$input_path" 47431 fi 47432 fi 47433 47434 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47435 if test "x$test_cygdrive_prefix" = x; then 47436 # As a simple fix, exclude /usr/bin since it's not a real path. 47437 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47438 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47439 # a path prefixed by /cygdrive for fixpath to work. 47440 new_path="$CYGWIN_ROOT_PATH$input_path" 47441 fi 47442 fi 47443 47444 47445 if test "x$path" != "x$new_path"; then 47446 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47448 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47449 fi 47450 47451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47452 47453 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47454 has_colon=`$ECHO $path | $GREP ^.:` 47455 new_path="$path" 47456 if test "x$has_colon" = x; then 47457 # Not in mixed or Windows style, start by that. 47458 new_path=`cmd //c echo $path` 47459 fi 47460 47461 47462 input_path="$new_path" 47463 # Check if we need to convert this using DOS-style short mode. If the path 47464 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47465 # take no chances and rewrite it. 47466 # Note: m4 eats our [], so we need to use [ and ] instead. 47467 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47468 if test "x$has_forbidden_chars" != x; then 47469 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47470 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47471 fi 47472 47473 47474 windows_path="$new_path" 47475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47476 unix_path=`$CYGPATH -u "$windows_path"` 47477 new_path="$unix_path" 47478 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47479 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47480 new_path="$unix_path" 47481 fi 47482 47483 if test "x$path" != "x$new_path"; then 47484 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 47485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47486 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47487 fi 47488 47489 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47490 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47491 47492 else 47493 # We're on a unix platform. Hooray! :) 47494 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47495 has_space=`$ECHO "$path" | $GREP " "` 47496 if test "x$has_space" != x; then 47497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47498 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47499 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47500 fi 47501 47502 # Use eval to expand a potential ~ 47503 eval path="$path" 47504 if test ! -f "$path" && test ! -d "$path"; then 47505 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47506 fi 47507 47508 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47509 fi 47510 47511 47512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47513 47514 # Input might be given as Windows format, start by converting to 47515 # unix format. 47516 path="$POTENTIAL_FREETYPE_LIB_PATH" 47517 new_path=`$CYGPATH -u "$path"` 47518 47519 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47520 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47521 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47522 # "foo.exe" is OK but "foo" is an error. 47523 # 47524 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47525 # It is also a way to make sure we got the proper file name for the real test later on. 47526 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47527 if test "x$test_shortpath" = x; then 47528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47529 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47530 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 47531 fi 47532 47533 # Call helper function which possibly converts this using DOS-style short mode. 47534 # If so, the updated path is stored in $new_path. 47535 47536 input_path="$new_path" 47537 # Check if we need to convert this using DOS-style short mode. If the path 47538 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47539 # take no chances and rewrite it. 47540 # Note: m4 eats our [], so we need to use [ and ] instead. 47541 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47542 if test "x$has_forbidden_chars" != x; then 47543 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47544 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47545 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47546 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47547 # Going to short mode and back again did indeed matter. Since short mode is 47548 # case insensitive, let's make it lowercase to improve readability. 47549 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47550 # Now convert it back to Unix-stile (cygpath) 47551 input_path=`$CYGPATH -u "$shortmode_path"` 47552 new_path="$input_path" 47553 fi 47554 fi 47555 47556 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47557 if test "x$test_cygdrive_prefix" = x; then 47558 # As a simple fix, exclude /usr/bin since it's not a real path. 47559 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47560 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47561 # a path prefixed by /cygdrive for fixpath to work. 47562 new_path="$CYGWIN_ROOT_PATH$input_path" 47563 fi 47564 fi 47565 47566 47567 if test "x$path" != "x$new_path"; then 47568 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47569 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47570 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47571 fi 47572 47573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47574 47575 path="$POTENTIAL_FREETYPE_LIB_PATH" 47576 has_colon=`$ECHO $path | $GREP ^.:` 47577 new_path="$path" 47578 if test "x$has_colon" = x; then 47579 # Not in mixed or Windows style, start by that. 47580 new_path=`cmd //c echo $path` 47581 fi 47582 47583 47584 input_path="$new_path" 47585 # Check if we need to convert this using DOS-style short mode. If the path 47586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47587 # take no chances and rewrite it. 47588 # Note: m4 eats our [], so we need to use [ and ] instead. 47589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47590 if test "x$has_forbidden_chars" != x; then 47591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47592 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47593 fi 47594 47595 47596 windows_path="$new_path" 47597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47598 unix_path=`$CYGPATH -u "$windows_path"` 47599 new_path="$unix_path" 47600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47602 new_path="$unix_path" 47603 fi 47604 47605 if test "x$path" != "x$new_path"; then 47606 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 47607 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 47608 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47609 fi 47610 47611 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47612 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47613 47614 else 47615 # We're on a unix platform. Hooray! :) 47616 path="$POTENTIAL_FREETYPE_LIB_PATH" 47617 has_space=`$ECHO "$path" | $GREP " "` 47618 if test "x$has_space" != x; then 47619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47620 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47621 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47622 fi 47623 47624 # Use eval to expand a potential ~ 47625 eval path="$path" 47626 if test ! -f "$path" && test ! -d "$path"; then 47627 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47628 fi 47629 47630 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47631 fi 47632 47633 47634 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 47635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 47636 $as_echo_n "checking for freetype includes... " >&6; } 47637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 47638 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 47639 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 47640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 47641 $as_echo_n "checking for freetype libraries... " >&6; } 47642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 47643 $as_echo "$FREETYPE_LIB_PATH" >&6; } 47644 fi 47645 47646 fi 47647 fi 47648 fi 47649 fi 47650 fi # end check in well-known locations 47651 47652 if test "x$FOUND_FREETYPE" != xyes; then 47653 47654 # Print a helpful message on how to acquire the necessary build dependency. 47655 # freetype is the help tag: freetype, cups, pulse, alsa etc 47656 MISSING_DEPENDENCY=freetype 47657 47658 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47659 cygwin_help $MISSING_DEPENDENCY 47660 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47661 msys_help $MISSING_DEPENDENCY 47662 else 47663 PKGHANDLER_COMMAND= 47664 47665 case $PKGHANDLER in 47666 apt-get) 47667 apt_help $MISSING_DEPENDENCY ;; 47668 yum) 47669 yum_help $MISSING_DEPENDENCY ;; 47670 port) 47671 port_help $MISSING_DEPENDENCY ;; 47672 pkgutil) 47673 pkgutil_help $MISSING_DEPENDENCY ;; 47674 pkgadd) 47675 pkgadd_help $MISSING_DEPENDENCY ;; 47676 esac 47677 47678 if test "x$PKGHANDLER_COMMAND" != x; then 47679 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47680 fi 47681 fi 47682 47683 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 47684 fi 47685 fi # end user specified settings 47686 47687 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 47688 if test "x$FREETYPE_CFLAGS" = x; then 47689 47690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47691 47692 # Input might be given as Windows format, start by converting to 47693 # unix format. 47694 path="$FREETYPE_INCLUDE_PATH" 47695 new_path=`$CYGPATH -u "$path"` 47696 47697 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47698 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47699 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47700 # "foo.exe" is OK but "foo" is an error. 47701 # 47702 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47703 # It is also a way to make sure we got the proper file name for the real test later on. 47704 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47705 if test "x$test_shortpath" = x; then 47706 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47707 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47708 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 47709 fi 47710 47711 # Call helper function which possibly converts this using DOS-style short mode. 47712 # If so, the updated path is stored in $new_path. 47713 47714 input_path="$new_path" 47715 # Check if we need to convert this using DOS-style short mode. If the path 47716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47717 # take no chances and rewrite it. 47718 # Note: m4 eats our [], so we need to use [ and ] instead. 47719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47720 if test "x$has_forbidden_chars" != x; then 47721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47722 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47723 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47724 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47725 # Going to short mode and back again did indeed matter. Since short mode is 47726 # case insensitive, let's make it lowercase to improve readability. 47727 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47728 # Now convert it back to Unix-stile (cygpath) 47729 input_path=`$CYGPATH -u "$shortmode_path"` 47730 new_path="$input_path" 47731 fi 47732 fi 47733 47734 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47735 if test "x$test_cygdrive_prefix" = x; then 47736 # As a simple fix, exclude /usr/bin since it's not a real path. 47737 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47738 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47739 # a path prefixed by /cygdrive for fixpath to work. 47740 new_path="$CYGWIN_ROOT_PATH$input_path" 47741 fi 47742 fi 47743 47744 47745 if test "x$path" != "x$new_path"; then 47746 FREETYPE_INCLUDE_PATH="$new_path" 47747 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47748 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47749 fi 47750 47751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47752 47753 path="$FREETYPE_INCLUDE_PATH" 47754 has_colon=`$ECHO $path | $GREP ^.:` 47755 new_path="$path" 47756 if test "x$has_colon" = x; then 47757 # Not in mixed or Windows style, start by that. 47758 new_path=`cmd //c echo $path` 47759 fi 47760 47761 47762 input_path="$new_path" 47763 # Check if we need to convert this using DOS-style short mode. If the path 47764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47765 # take no chances and rewrite it. 47766 # Note: m4 eats our [], so we need to use [ and ] instead. 47767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47768 if test "x$has_forbidden_chars" != x; then 47769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47770 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47771 fi 47772 47773 47774 windows_path="$new_path" 47775 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47776 unix_path=`$CYGPATH -u "$windows_path"` 47777 new_path="$unix_path" 47778 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47779 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47780 new_path="$unix_path" 47781 fi 47782 47783 if test "x$path" != "x$new_path"; then 47784 FREETYPE_INCLUDE_PATH="$new_path" 47785 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 47786 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 47787 fi 47788 47789 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47790 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47791 47792 else 47793 # We're on a unix platform. Hooray! :) 47794 path="$FREETYPE_INCLUDE_PATH" 47795 has_space=`$ECHO "$path" | $GREP " "` 47796 if test "x$has_space" != x; then 47797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 47798 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 47799 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47800 fi 47801 47802 # Use eval to expand a potential ~ 47803 eval path="$path" 47804 if test ! -f "$path" && test ! -d "$path"; then 47805 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47806 fi 47807 47808 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 47809 fi 47810 47811 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 47812 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 47813 else 47814 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 47815 fi 47816 fi 47817 47818 if test "x$FREETYPE_LIBS" = x; then 47819 47820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47821 47822 # Input might be given as Windows format, start by converting to 47823 # unix format. 47824 path="$FREETYPE_LIB_PATH" 47825 new_path=`$CYGPATH -u "$path"` 47826 47827 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 47828 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 47829 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 47830 # "foo.exe" is OK but "foo" is an error. 47831 # 47832 # This test is therefore slightly more accurate than "test -f" to check for file precense. 47833 # It is also a way to make sure we got the proper file name for the real test later on. 47834 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 47835 if test "x$test_shortpath" = x; then 47836 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47837 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47838 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 47839 fi 47840 47841 # Call helper function which possibly converts this using DOS-style short mode. 47842 # If so, the updated path is stored in $new_path. 47843 47844 input_path="$new_path" 47845 # Check if we need to convert this using DOS-style short mode. If the path 47846 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47847 # take no chances and rewrite it. 47848 # Note: m4 eats our [], so we need to use [ and ] instead. 47849 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 47850 if test "x$has_forbidden_chars" != x; then 47851 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47852 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 47853 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 47854 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 47855 # Going to short mode and back again did indeed matter. Since short mode is 47856 # case insensitive, let's make it lowercase to improve readability. 47857 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47858 # Now convert it back to Unix-stile (cygpath) 47859 input_path=`$CYGPATH -u "$shortmode_path"` 47860 new_path="$input_path" 47861 fi 47862 fi 47863 47864 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 47865 if test "x$test_cygdrive_prefix" = x; then 47866 # As a simple fix, exclude /usr/bin since it's not a real path. 47867 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 47868 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 47869 # a path prefixed by /cygdrive for fixpath to work. 47870 new_path="$CYGWIN_ROOT_PATH$input_path" 47871 fi 47872 fi 47873 47874 47875 if test "x$path" != "x$new_path"; then 47876 FREETYPE_LIB_PATH="$new_path" 47877 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47878 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47879 fi 47880 47881 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47882 47883 path="$FREETYPE_LIB_PATH" 47884 has_colon=`$ECHO $path | $GREP ^.:` 47885 new_path="$path" 47886 if test "x$has_colon" = x; then 47887 # Not in mixed or Windows style, start by that. 47888 new_path=`cmd //c echo $path` 47889 fi 47890 47891 47892 input_path="$new_path" 47893 # Check if we need to convert this using DOS-style short mode. If the path 47894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 47895 # take no chances and rewrite it. 47896 # Note: m4 eats our [], so we need to use [ and ] instead. 47897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 47898 if test "x$has_forbidden_chars" != x; then 47899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 47900 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 47901 fi 47902 47903 47904 windows_path="$new_path" 47905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47906 unix_path=`$CYGPATH -u "$windows_path"` 47907 new_path="$unix_path" 47908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47909 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47910 new_path="$unix_path" 47911 fi 47912 47913 if test "x$path" != "x$new_path"; then 47914 FREETYPE_LIB_PATH="$new_path" 47915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 47916 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 47917 fi 47918 47919 # Save the first 10 bytes of this path to the storage, so fixpath can work. 47920 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 47921 47922 else 47923 # We're on a unix platform. Hooray! :) 47924 path="$FREETYPE_LIB_PATH" 47925 has_space=`$ECHO "$path" | $GREP " "` 47926 if test "x$has_space" != x; then 47927 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 47928 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 47929 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 47930 fi 47931 47932 # Use eval to expand a potential ~ 47933 eval path="$path" 47934 if test ! -f "$path" && test ! -d "$path"; then 47935 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 47936 fi 47937 47938 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 47939 fi 47940 47941 if test "x$OPENJDK_TARGET_OS" = xwindows; then 47942 FREETYPE_LIBS="$FREETYPE_LIB_PATH/$FREETYPE_BASE_NAME.lib" 47943 else 47944 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -l$FREETYPE_BASE_NAME" 47945 fi 47946 fi 47947 47948 # Try to compile it 47949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 47950 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 47951 ac_ext=cpp 47952 ac_cpp='$CXXCPP $CPPFLAGS' 47953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47956 47957 PREV_CXXCFLAGS="$CXXFLAGS" 47958 PREV_LIBS="$LIBS" 47959 PREV_CXX="$CXX" 47960 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 47961 LIBS="$LIBS $FREETYPE_LIBS" 47962 CXX="$FIXPATH $CXX" 47963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47964 /* end confdefs.h. */ 47965 47966 #include<ft2build.h> 47967 #include FT_FREETYPE_H 47968 int main () { 47969 FT_Init_FreeType(NULL); 47970 return 0; 47971 } 47972 47973 _ACEOF 47974 if ac_fn_cxx_try_link "$LINENO"; then : 47975 47976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47977 $as_echo "yes" >&6; } 47978 47979 else 47980 47981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47982 $as_echo "no" >&6; } 47983 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 47984 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 47985 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 47986 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 47987 47988 47989 # Print a helpful message on how to acquire the necessary build dependency. 47990 # freetype is the help tag: freetype, cups, pulse, alsa etc 47991 MISSING_DEPENDENCY=freetype 47992 47993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47994 cygwin_help $MISSING_DEPENDENCY 47995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47996 msys_help $MISSING_DEPENDENCY 47997 else 47998 PKGHANDLER_COMMAND= 47999 48000 case $PKGHANDLER in 48001 apt-get) 48002 apt_help $MISSING_DEPENDENCY ;; 48003 yum) 48004 yum_help $MISSING_DEPENDENCY ;; 48005 port) 48006 port_help $MISSING_DEPENDENCY ;; 48007 pkgutil) 48008 pkgutil_help $MISSING_DEPENDENCY ;; 48009 pkgadd) 48010 pkgadd_help $MISSING_DEPENDENCY ;; 48011 esac 48012 48013 if test "x$PKGHANDLER_COMMAND" != x; then 48014 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48015 fi 48016 fi 48017 48018 48019 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 48020 48021 48022 fi 48023 rm -f core conftest.err conftest.$ac_objext \ 48024 conftest$ac_exeext conftest.$ac_ext 48025 CXXCFLAGS="$PREV_CXXFLAGS" 48026 LIBS="$PREV_LIBS" 48027 CXX="$PREV_CXX" 48028 ac_ext=cpp 48029 ac_cpp='$CXXCPP $CPPFLAGS' 48030 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 48031 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 48032 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 48033 48034 48035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 48036 $as_echo_n "checking if we should bundle freetype... " >&6; } 48037 if test "x$BUNDLE_FREETYPE" = xyes; then 48038 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 48039 fi 48040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 48041 $as_echo "$BUNDLE_FREETYPE" >&6; } 48042 48043 fi # end freetype needed 48044 48045 48046 48047 48048 48049 48050 48051 ############################################################################### 48052 # 48053 # Check for alsa headers and libraries. Used on Linux/GNU systems. 48054 # 48055 48056 # Check whether --with-alsa was given. 48057 if test "${with_alsa+set}" = set; then : 48058 withval=$with_alsa; 48059 fi 48060 48061 48062 # Check whether --with-alsa-include was given. 48063 if test "${with_alsa_include+set}" = set; then : 48064 withval=$with_alsa_include; 48065 fi 48066 48067 48068 # Check whether --with-alsa-lib was given. 48069 if test "${with_alsa_lib+set}" = set; then : 48070 withval=$with_alsa_lib; 48071 fi 48072 48073 48074 if test "x$ALSA_NOT_NEEDED" = xyes; then 48075 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 48076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 48077 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 48078 fi 48079 ALSA_CFLAGS= 48080 ALSA_LIBS= 48081 else 48082 ALSA_FOUND=no 48083 48084 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 48085 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 48086 fi 48087 48088 if test "x${with_alsa}" != x; then 48089 ALSA_LIBS="-L${with_alsa}/lib -lasound" 48090 ALSA_CFLAGS="-I${with_alsa}/include" 48091 ALSA_FOUND=yes 48092 fi 48093 if test "x${with_alsa_include}" != x; then 48094 ALSA_CFLAGS="-I${with_alsa_include}" 48095 ALSA_FOUND=yes 48096 fi 48097 if test "x${with_alsa_lib}" != x; then 48098 ALSA_LIBS="-L${with_alsa_lib} -lasound" 48099 ALSA_FOUND=yes 48100 fi 48101 if test "x$ALSA_FOUND" = xno; then 48102 48103 48104 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 48105 # Source the builddeps file again, to make sure it uses the latest variables! 48106 . $builddepsfile 48107 # Look for a target and build machine specific resource! 48108 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 48109 if test "x$resource" = x; then 48110 # Ok, lets instead look for a target specific resource 48111 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 48112 fi 48113 if test "x$resource" = x; then 48114 # Ok, lets instead look for a build specific resource 48115 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 48116 fi 48117 if test "x$resource" = x; then 48118 # Ok, lets instead look for a generic resource 48119 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 48120 resource=${builddep_alsa} 48121 fi 48122 if test "x$resource" != x; then 48123 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 48124 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 48125 # If the resource in the builddeps.conf file is an existing directory, 48126 # for example /java/linux/cups 48127 if test -d ${resource}; then 48128 depdir=${resource} 48129 else 48130 48131 # alsa is for example mymodule 48132 # $resource is for example libs/general/libmymod_1_2_3.zip 48133 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 48134 # $with_builddeps_dir is for example /localhome/builddeps 48135 # depdir is the name of the variable into which we store the depdir, eg MYMOD 48136 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 48137 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 48138 filename=`basename $resource` 48139 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 48140 filebase=${filename%%.*} 48141 extension=${filename#*.} 48142 installdir=$with_builddeps_dir/$filebase 48143 if test ! -f $installdir/$filename.unpacked; then 48144 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 48145 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 48146 if test ! -d $installdir; then 48147 mkdir -p $installdir 48148 fi 48149 if test ! -d $installdir; then 48150 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 48151 fi 48152 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 48153 touch $tmpfile 48154 if test ! -f $tmpfile; then 48155 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 48156 fi 48157 48158 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 48159 # $tmpfile is the local file name for the downloaded file. 48160 VALID_TOOL=no 48161 if test "x$BDEPS_FTP" = xwget; then 48162 VALID_TOOL=yes 48163 wget -O $tmpfile $with_builddeps_server/$resource 48164 fi 48165 if test "x$BDEPS_FTP" = xlftp; then 48166 VALID_TOOL=yes 48167 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 48168 fi 48169 if test "x$BDEPS_FTP" = xftp; then 48170 VALID_TOOL=yes 48171 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 48172 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 48173 FTPUSERPWD=${FTPSERVER%%@*} 48174 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 48175 FTPUSER=${userpwd%%:*} 48176 FTPPWD=${userpwd#*@} 48177 FTPSERVER=${FTPSERVER#*@} 48178 else 48179 FTPUSER=ftp 48180 FTPPWD=ftp 48181 fi 48182 # the "pass" command does not work on some 48183 # ftp clients (read ftp.exe) but if it works, 48184 # passive mode is better! 48185 ( \ 48186 echo "user $FTPUSER $FTPPWD" ; \ 48187 echo "pass" ; \ 48188 echo "bin" ; \ 48189 echo "get $FTPPATH $tmpfile" ; \ 48190 ) | ftp -in $FTPSERVER 48191 fi 48192 if test "x$VALID_TOOL" != xyes; then 48193 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 48194 fi 48195 48196 mv $tmpfile $installdir/$filename 48197 if test ! -s $installdir/$filename; then 48198 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 48199 fi 48200 case "$extension" in 48201 zip) echo "Unzipping $installdir/$filename..." 48202 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 48203 ;; 48204 tar.gz) echo "Untaring $installdir/$filename..." 48205 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48206 ;; 48207 tgz) echo "Untaring $installdir/$filename..." 48208 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 48209 ;; 48210 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 48211 ;; 48212 esac 48213 fi 48214 if test -f $installdir/$filename.unpacked; then 48215 depdir=$installdir 48216 fi 48217 48218 fi 48219 # Source the builddeps file again, because in the previous command, the depdir 48220 # was updated to point at the current build dependency install directory. 48221 . $builddepsfile 48222 # Now extract variables from the builddeps.conf files. 48223 theroot=${builddep_alsa_ROOT} 48224 thecflags=${builddep_alsa_CFLAGS} 48225 thelibs=${builddep_alsa_LIBS} 48226 if test "x$depdir" = x; then 48227 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 48228 fi 48229 ALSA=$depdir 48230 if test "x$theroot" != x; then 48231 ALSA="$theroot" 48232 fi 48233 if test "x$thecflags" != x; then 48234 ALSA_CFLAGS="$thecflags" 48235 fi 48236 if test "x$thelibs" != x; then 48237 ALSA_LIBS="$thelibs" 48238 fi 48239 ALSA_FOUND=yes 48240 else ALSA_FOUND=no 48241 48242 fi 48243 else ALSA_FOUND=no 48244 48245 fi 48246 48247 fi 48248 # Do not try pkg-config if we have a sysroot set. 48249 if test "x$SYSROOT" = x; then 48250 if test "x$ALSA_FOUND" = xno; then 48251 48252 pkg_failed=no 48253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 48254 $as_echo_n "checking for ALSA... " >&6; } 48255 48256 if test -n "$ALSA_CFLAGS"; then 48257 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 48258 elif test -n "$PKG_CONFIG"; then 48259 if test -n "$PKG_CONFIG" && \ 48260 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48261 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48262 ac_status=$? 48263 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48264 test $ac_status = 0; }; then 48265 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 48266 else 48267 pkg_failed=yes 48268 fi 48269 else 48270 pkg_failed=untried 48271 fi 48272 if test -n "$ALSA_LIBS"; then 48273 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 48274 elif test -n "$PKG_CONFIG"; then 48275 if test -n "$PKG_CONFIG" && \ 48276 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 48277 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 48278 ac_status=$? 48279 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48280 test $ac_status = 0; }; then 48281 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 48282 else 48283 pkg_failed=yes 48284 fi 48285 else 48286 pkg_failed=untried 48287 fi 48288 48289 48290 48291 if test $pkg_failed = yes; then 48292 48293 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48294 _pkg_short_errors_supported=yes 48295 else 48296 _pkg_short_errors_supported=no 48297 fi 48298 if test $_pkg_short_errors_supported = yes; then 48299 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 48300 else 48301 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 48302 fi 48303 # Put the nasty error message in config.log where it belongs 48304 echo "$ALSA_PKG_ERRORS" >&5 48305 48306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48307 $as_echo "no" >&6; } 48308 ALSA_FOUND=no 48309 elif test $pkg_failed = untried; then 48310 ALSA_FOUND=no 48311 else 48312 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 48313 ALSA_LIBS=$pkg_cv_ALSA_LIBS 48314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48315 $as_echo "yes" >&6; } 48316 ALSA_FOUND=yes 48317 fi 48318 fi 48319 fi 48320 if test "x$ALSA_FOUND" = xno; then 48321 for ac_header in alsa/asoundlib.h 48322 do : 48323 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 48324 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 48325 cat >>confdefs.h <<_ACEOF 48326 #define HAVE_ALSA_ASOUNDLIB_H 1 48327 _ACEOF 48328 48329 ALSA_FOUND=yes 48330 ALSA_CFLAGS=-Iignoreme 48331 ALSA_LIBS=-lasound 48332 DEFAULT_ALSA=yes 48333 48334 else 48335 ALSA_FOUND=no 48336 fi 48337 48338 done 48339 48340 fi 48341 if test "x$ALSA_FOUND" = xno; then 48342 48343 # Print a helpful message on how to acquire the necessary build dependency. 48344 # alsa is the help tag: freetype, cups, pulse, alsa etc 48345 MISSING_DEPENDENCY=alsa 48346 48347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48348 cygwin_help $MISSING_DEPENDENCY 48349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48350 msys_help $MISSING_DEPENDENCY 48351 else 48352 PKGHANDLER_COMMAND= 48353 48354 case $PKGHANDLER in 48355 apt-get) 48356 apt_help $MISSING_DEPENDENCY ;; 48357 yum) 48358 yum_help $MISSING_DEPENDENCY ;; 48359 port) 48360 port_help $MISSING_DEPENDENCY ;; 48361 pkgutil) 48362 pkgutil_help $MISSING_DEPENDENCY ;; 48363 pkgadd) 48364 pkgadd_help $MISSING_DEPENDENCY ;; 48365 esac 48366 48367 if test "x$PKGHANDLER_COMMAND" != x; then 48368 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 48369 fi 48370 fi 48371 48372 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 48373 fi 48374 fi 48375 48376 48377 48378 48379 48380 48381 ############################################################################### 48382 # 48383 # Check for the jpeg library 48384 # 48385 48386 48387 # Check whether --with-libjpeg was given. 48388 if test "${with_libjpeg+set}" = set; then : 48389 withval=$with_libjpeg; 48390 fi 48391 48392 48393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libjpeg to use" >&5 48394 $as_echo_n "checking for which libjpeg to use... " >&6; } 48395 48396 # default is bundled 48397 DEFAULT_LIBJPEG=bundled 48398 48399 # 48400 # if user didn't specify, use DEFAULT_LIBJPEG 48401 # 48402 if test "x${with_libjpeg}" = "x"; then 48403 with_libjpeg=${DEFAULT_LIBJPEG} 48404 fi 48405 48406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_libjpeg}" >&5 48407 $as_echo "${with_libjpeg}" >&6; } 48408 48409 if test "x${with_libjpeg}" = "xbundled"; then 48410 USE_EXTERNAL_LIBJPEG=false 48411 elif test "x${with_libjpeg}" = "xsystem"; then 48412 ac_fn_cxx_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default" 48413 if test "x$ac_cv_header_jpeglib_h" = xyes; then : 48414 48415 else 48416 as_fn_error $? "--with-libjpeg=system specified, but jpeglib.h not found!" "$LINENO" 5 48417 fi 48418 48419 48420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateDecompress in -ljpeg" >&5 48421 $as_echo_n "checking for jpeg_CreateDecompress in -ljpeg... " >&6; } 48422 if ${ac_cv_lib_jpeg_jpeg_CreateDecompress+:} false; then : 48423 $as_echo_n "(cached) " >&6 48424 else 48425 ac_check_lib_save_LIBS=$LIBS 48426 LIBS="-ljpeg $LIBS" 48427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48428 /* end confdefs.h. */ 48429 48430 /* Override any GCC internal prototype to avoid an error. 48431 Use char because int might match the return type of a GCC 48432 builtin and then its argument prototype would still apply. */ 48433 #ifdef __cplusplus 48434 extern "C" 48435 #endif 48436 char jpeg_CreateDecompress (); 48437 int 48438 main () 48439 { 48440 return jpeg_CreateDecompress (); 48441 ; 48442 return 0; 48443 } 48444 _ACEOF 48445 if ac_fn_cxx_try_link "$LINENO"; then : 48446 ac_cv_lib_jpeg_jpeg_CreateDecompress=yes 48447 else 48448 ac_cv_lib_jpeg_jpeg_CreateDecompress=no 48449 fi 48450 rm -f core conftest.err conftest.$ac_objext \ 48451 conftest$ac_exeext conftest.$ac_ext 48452 LIBS=$ac_check_lib_save_LIBS 48453 fi 48454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_CreateDecompress" >&5 48455 $as_echo "$ac_cv_lib_jpeg_jpeg_CreateDecompress" >&6; } 48456 if test "x$ac_cv_lib_jpeg_jpeg_CreateDecompress" = xyes; then : 48457 cat >>confdefs.h <<_ACEOF 48458 #define HAVE_LIBJPEG 1 48459 _ACEOF 48460 48461 LIBS="-ljpeg $LIBS" 48462 48463 else 48464 as_fn_error $? "--with-libjpeg=system specified, but no libjpeg found" "$LINENO" 5 48465 fi 48466 48467 48468 USE_EXTERNAL_LIBJPEG=true 48469 else 48470 as_fn_error $? "Invalid use of --with-libjpeg: ${with_libjpeg}, use 'system' or 'bundled'" "$LINENO" 5 48471 fi 48472 48473 48474 48475 ############################################################################### 48476 # 48477 # Check for the gif library 48478 # 48479 48480 48481 # Check whether --with-giflib was given. 48482 if test "${with_giflib+set}" = set; then : 48483 withval=$with_giflib; 48484 fi 48485 48486 48487 48488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 48489 $as_echo_n "checking for which giflib to use... " >&6; } 48490 48491 # default is bundled 48492 DEFAULT_GIFLIB=bundled 48493 48494 # 48495 # if user didn't specify, use DEFAULT_GIFLIB 48496 # 48497 if test "x${with_giflib}" = "x"; then 48498 with_giflib=${DEFAULT_GIFLIB} 48499 fi 48500 48501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 48502 $as_echo "${with_giflib}" >&6; } 48503 48504 if test "x${with_giflib}" = "xbundled"; then 48505 USE_EXTERNAL_LIBGIF=false 48506 elif test "x${with_giflib}" = "xsystem"; then 48507 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 48508 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 48509 48510 else 48511 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 48512 fi 48513 48514 48515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 48516 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 48517 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 48518 $as_echo_n "(cached) " >&6 48519 else 48520 ac_check_lib_save_LIBS=$LIBS 48521 LIBS="-lgif $LIBS" 48522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48523 /* end confdefs.h. */ 48524 48525 /* Override any GCC internal prototype to avoid an error. 48526 Use char because int might match the return type of a GCC 48527 builtin and then its argument prototype would still apply. */ 48528 #ifdef __cplusplus 48529 extern "C" 48530 #endif 48531 char DGifGetCode (); 48532 int 48533 main () 48534 { 48535 return DGifGetCode (); 48536 ; 48537 return 0; 48538 } 48539 _ACEOF 48540 if ac_fn_cxx_try_link "$LINENO"; then : 48541 ac_cv_lib_gif_DGifGetCode=yes 48542 else 48543 ac_cv_lib_gif_DGifGetCode=no 48544 fi 48545 rm -f core conftest.err conftest.$ac_objext \ 48546 conftest$ac_exeext conftest.$ac_ext 48547 LIBS=$ac_check_lib_save_LIBS 48548 fi 48549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 48550 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 48551 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 48552 cat >>confdefs.h <<_ACEOF 48553 #define HAVE_LIBGIF 1 48554 _ACEOF 48555 48556 LIBS="-lgif $LIBS" 48557 48558 else 48559 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 48560 fi 48561 48562 48563 USE_EXTERNAL_LIBGIF=true 48564 else 48565 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 48566 fi 48567 48568 48569 ############################################################################### 48570 # 48571 # Check for the lcms2 library 48572 # 48573 48574 48575 # Check whether --with-lcms was given. 48576 if test "${with_lcms+set}" = set; then : 48577 withval=$with_lcms; 48578 fi 48579 48580 48581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 48582 $as_echo_n "checking for which lcms to use... " >&6; } 48583 48584 DEFAULT_LCMS=bundled 48585 48586 # 48587 # If user didn't specify, use DEFAULT_LCMS 48588 # 48589 if test "x${with_lcms}" = "x"; then 48590 with_lcms=${DEFAULT_LCMS} 48591 fi 48592 48593 if test "x${with_lcms}" = "xbundled"; then 48594 USE_EXTERNAL_LCMS=false 48595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48596 $as_echo "bundled" >&6; } 48597 elif test "x${with_lcms}" = "xsystem"; then 48598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48599 $as_echo "system" >&6; } 48600 48601 pkg_failed=no 48602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 48603 $as_echo_n "checking for LCMS... " >&6; } 48604 48605 if test -n "$LCMS_CFLAGS"; then 48606 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 48607 elif test -n "$PKG_CONFIG"; then 48608 if test -n "$PKG_CONFIG" && \ 48609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48610 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48611 ac_status=$? 48612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48613 test $ac_status = 0; }; then 48614 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 48615 else 48616 pkg_failed=yes 48617 fi 48618 else 48619 pkg_failed=untried 48620 fi 48621 if test -n "$LCMS_LIBS"; then 48622 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 48623 elif test -n "$PKG_CONFIG"; then 48624 if test -n "$PKG_CONFIG" && \ 48625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 48626 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 48627 ac_status=$? 48628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48629 test $ac_status = 0; }; then 48630 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 48631 else 48632 pkg_failed=yes 48633 fi 48634 else 48635 pkg_failed=untried 48636 fi 48637 48638 48639 48640 if test $pkg_failed = yes; then 48641 48642 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48643 _pkg_short_errors_supported=yes 48644 else 48645 _pkg_short_errors_supported=no 48646 fi 48647 if test $_pkg_short_errors_supported = yes; then 48648 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 48649 else 48650 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 48651 fi 48652 # Put the nasty error message in config.log where it belongs 48653 echo "$LCMS_PKG_ERRORS" >&5 48654 48655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48656 $as_echo "no" >&6; } 48657 LCMS_FOUND=no 48658 elif test $pkg_failed = untried; then 48659 LCMS_FOUND=no 48660 else 48661 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 48662 LCMS_LIBS=$pkg_cv_LCMS_LIBS 48663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48664 $as_echo "yes" >&6; } 48665 LCMS_FOUND=yes 48666 fi 48667 if test "x${LCMS_FOUND}" = "xyes"; then 48668 USE_EXTERNAL_LCMS=true 48669 else 48670 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 48671 fi 48672 else 48673 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 48674 fi 48675 48676 48677 48678 ############################################################################### 48679 # 48680 # Check for the png library 48681 # 48682 48683 48684 # Check whether --with-libpng was given. 48685 if test "${with_libpng+set}" = set; then : 48686 withval=$with_libpng; 48687 fi 48688 48689 48690 48691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 48692 $as_echo_n "checking for which libpng to use... " >&6; } 48693 48694 # default is bundled 48695 DEFAULT_LIBPNG=bundled 48696 48697 # 48698 # if user didn't specify, use DEFAULT_LIBPNG 48699 # 48700 if test "x${with_libpng}" = "x"; then 48701 with_libpng=${DEFAULT_LIBPNG} 48702 fi 48703 48704 if test "x${with_libpng}" = "xbundled"; then 48705 USE_EXTERNAL_LIBPNG=false 48706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48707 $as_echo "bundled" >&6; } 48708 elif test "x${with_libpng}" = "xsystem"; then 48709 48710 pkg_failed=no 48711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 48712 $as_echo_n "checking for PNG... " >&6; } 48713 48714 if test -n "$PNG_CFLAGS"; then 48715 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 48716 elif test -n "$PKG_CONFIG"; then 48717 if test -n "$PKG_CONFIG" && \ 48718 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48719 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48720 ac_status=$? 48721 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48722 test $ac_status = 0; }; then 48723 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 48724 else 48725 pkg_failed=yes 48726 fi 48727 else 48728 pkg_failed=untried 48729 fi 48730 if test -n "$PNG_LIBS"; then 48731 pkg_cv_PNG_LIBS="$PNG_LIBS" 48732 elif test -n "$PKG_CONFIG"; then 48733 if test -n "$PKG_CONFIG" && \ 48734 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 48735 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 48736 ac_status=$? 48737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 48738 test $ac_status = 0; }; then 48739 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 48740 else 48741 pkg_failed=yes 48742 fi 48743 else 48744 pkg_failed=untried 48745 fi 48746 48747 48748 48749 if test $pkg_failed = yes; then 48750 48751 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 48752 _pkg_short_errors_supported=yes 48753 else 48754 _pkg_short_errors_supported=no 48755 fi 48756 if test $_pkg_short_errors_supported = yes; then 48757 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 48758 else 48759 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 48760 fi 48761 # Put the nasty error message in config.log where it belongs 48762 echo "$PNG_PKG_ERRORS" >&5 48763 48764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48765 $as_echo "no" >&6; } 48766 LIBPNG_FOUND=no 48767 elif test $pkg_failed = untried; then 48768 LIBPNG_FOUND=no 48769 else 48770 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 48771 PNG_LIBS=$pkg_cv_PNG_LIBS 48772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48773 $as_echo "yes" >&6; } 48774 LIBPNG_FOUND=yes 48775 fi 48776 if test "x${LIBPNG_FOUND}" = "xyes"; then 48777 USE_EXTERNAL_LIBPNG=true 48778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48779 $as_echo "system" >&6; } 48780 else 48781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48782 $as_echo "system not found" >&6; } 48783 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 48784 fi 48785 else 48786 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 48787 fi 48788 48789 48790 ############################################################################### 48791 # 48792 # Check for the zlib library 48793 # 48794 48795 48796 # Check whether --with-zlib was given. 48797 if test "${with_zlib+set}" = set; then : 48798 withval=$with_zlib; 48799 fi 48800 48801 48802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 48803 $as_echo_n "checking for compress in -lz... " >&6; } 48804 if ${ac_cv_lib_z_compress+:} false; then : 48805 $as_echo_n "(cached) " >&6 48806 else 48807 ac_check_lib_save_LIBS=$LIBS 48808 LIBS="-lz $LIBS" 48809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48810 /* end confdefs.h. */ 48811 48812 /* Override any GCC internal prototype to avoid an error. 48813 Use char because int might match the return type of a GCC 48814 builtin and then its argument prototype would still apply. */ 48815 #ifdef __cplusplus 48816 extern "C" 48817 #endif 48818 char compress (); 48819 int 48820 main () 48821 { 48822 return compress (); 48823 ; 48824 return 0; 48825 } 48826 _ACEOF 48827 if ac_fn_cxx_try_link "$LINENO"; then : 48828 ac_cv_lib_z_compress=yes 48829 else 48830 ac_cv_lib_z_compress=no 48831 fi 48832 rm -f core conftest.err conftest.$ac_objext \ 48833 conftest$ac_exeext conftest.$ac_ext 48834 LIBS=$ac_check_lib_save_LIBS 48835 fi 48836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 48837 $as_echo "$ac_cv_lib_z_compress" >&6; } 48838 if test "x$ac_cv_lib_z_compress" = xyes; then : 48839 ZLIB_FOUND=yes 48840 else 48841 ZLIB_FOUND=no 48842 fi 48843 48844 48845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 48846 $as_echo_n "checking for which zlib to use... " >&6; } 48847 48848 DEFAULT_ZLIB=bundled 48849 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 48850 # 48851 # On macosx default is system...on others default is 48852 # 48853 DEFAULT_ZLIB=system 48854 fi 48855 48856 if test "x${ZLIB_FOUND}" != "xyes"; then 48857 # 48858 # If we don't find any system...set default to bundled 48859 # 48860 DEFAULT_ZLIB=bundled 48861 fi 48862 48863 # 48864 # If user didn't specify, use DEFAULT_ZLIB 48865 # 48866 if test "x${with_zlib}" = "x"; then 48867 with_zlib=${DEFAULT_ZLIB} 48868 fi 48869 48870 if test "x${with_zlib}" = "xbundled"; then 48871 USE_EXTERNAL_LIBZ=false 48872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 48873 $as_echo "bundled" >&6; } 48874 elif test "x${with_zlib}" = "xsystem"; then 48875 if test "x${ZLIB_FOUND}" = "xyes"; then 48876 USE_EXTERNAL_LIBZ=true 48877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 48878 $as_echo "system" >&6; } 48879 else 48880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 48881 $as_echo "system not found" >&6; } 48882 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 48883 fi 48884 else 48885 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 48886 fi 48887 48888 48889 48890 ############################################################################### 48891 LIBZIP_CAN_USE_MMAP=true 48892 48893 48894 48895 ############################################################################### 48896 # 48897 # Check if altzone exists in time.h 48898 # 48899 48900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48901 /* end confdefs.h. */ 48902 #include <time.h> 48903 int 48904 main () 48905 { 48906 return (int)altzone; 48907 ; 48908 return 0; 48909 } 48910 _ACEOF 48911 if ac_fn_cxx_try_link "$LINENO"; then : 48912 has_altzone=yes 48913 else 48914 has_altzone=no 48915 fi 48916 rm -f core conftest.err conftest.$ac_objext \ 48917 conftest$ac_exeext conftest.$ac_ext 48918 if test "x$has_altzone" = xyes; then 48919 48920 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 48921 48922 fi 48923 48924 ############################################################################### 48925 # 48926 # Check the maths library 48927 # 48928 48929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 48930 $as_echo_n "checking for cos in -lm... " >&6; } 48931 if ${ac_cv_lib_m_cos+:} false; then : 48932 $as_echo_n "(cached) " >&6 48933 else 48934 ac_check_lib_save_LIBS=$LIBS 48935 LIBS="-lm $LIBS" 48936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48937 /* end confdefs.h. */ 48938 48939 /* Override any GCC internal prototype to avoid an error. 48940 Use char because int might match the return type of a GCC 48941 builtin and then its argument prototype would still apply. */ 48942 #ifdef __cplusplus 48943 extern "C" 48944 #endif 48945 char cos (); 48946 int 48947 main () 48948 { 48949 return cos (); 48950 ; 48951 return 0; 48952 } 48953 _ACEOF 48954 if ac_fn_cxx_try_link "$LINENO"; then : 48955 ac_cv_lib_m_cos=yes 48956 else 48957 ac_cv_lib_m_cos=no 48958 fi 48959 rm -f core conftest.err conftest.$ac_objext \ 48960 conftest$ac_exeext conftest.$ac_ext 48961 LIBS=$ac_check_lib_save_LIBS 48962 fi 48963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 48964 $as_echo "$ac_cv_lib_m_cos" >&6; } 48965 if test "x$ac_cv_lib_m_cos" = xyes; then : 48966 cat >>confdefs.h <<_ACEOF 48967 #define HAVE_LIBM 1 48968 _ACEOF 48969 48970 LIBS="-lm $LIBS" 48971 48972 else 48973 48974 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 48975 $as_echo "$as_me: Maths library was not found" >&6;} 48976 48977 48978 fi 48979 48980 48981 48982 ############################################################################### 48983 # 48984 # Check for libdl.so 48985 48986 save_LIBS="$LIBS" 48987 LIBS="" 48988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 48989 $as_echo_n "checking for dlopen in -ldl... " >&6; } 48990 if ${ac_cv_lib_dl_dlopen+:} false; then : 48991 $as_echo_n "(cached) " >&6 48992 else 48993 ac_check_lib_save_LIBS=$LIBS 48994 LIBS="-ldl $LIBS" 48995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48996 /* end confdefs.h. */ 48997 48998 /* Override any GCC internal prototype to avoid an error. 48999 Use char because int might match the return type of a GCC 49000 builtin and then its argument prototype would still apply. */ 49001 #ifdef __cplusplus 49002 extern "C" 49003 #endif 49004 char dlopen (); 49005 int 49006 main () 49007 { 49008 return dlopen (); 49009 ; 49010 return 0; 49011 } 49012 _ACEOF 49013 if ac_fn_cxx_try_link "$LINENO"; then : 49014 ac_cv_lib_dl_dlopen=yes 49015 else 49016 ac_cv_lib_dl_dlopen=no 49017 fi 49018 rm -f core conftest.err conftest.$ac_objext \ 49019 conftest$ac_exeext conftest.$ac_ext 49020 LIBS=$ac_check_lib_save_LIBS 49021 fi 49022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 49023 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 49024 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 49025 cat >>confdefs.h <<_ACEOF 49026 #define HAVE_LIBDL 1 49027 _ACEOF 49028 49029 LIBS="-ldl $LIBS" 49030 49031 fi 49032 49033 LIBDL="$LIBS" 49034 49035 LIBS="$save_LIBS" 49036 49037 49038 ############################################################################### 49039 # 49040 # statically link libstdc++ before C++ ABI is stablized on Linux unless 49041 # dynamic build is configured on command line. 49042 # 49043 49044 # Check whether --with-stdc++lib was given. 49045 if test "${with_stdc__lib+set}" = set; then : 49046 withval=$with_stdc__lib; 49047 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 49048 && test "x$with_stdc__lib" != xdefault; then 49049 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 49050 fi 49051 49052 else 49053 with_stdc__lib=default 49054 49055 fi 49056 49057 49058 if test "x$OPENJDK_TARGET_OS" = xlinux; then 49059 # Test if -lstdc++ works. 49060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 49061 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 49062 ac_ext=cpp 49063 ac_cpp='$CXXCPP $CPPFLAGS' 49064 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49065 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49066 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49067 49068 OLD_CXXFLAGS="$CXXFLAGS" 49069 CXXFLAGS="$CXXFLAGS -lstdc++" 49070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49071 /* end confdefs.h. */ 49072 49073 int 49074 main () 49075 { 49076 return 0; 49077 ; 49078 return 0; 49079 } 49080 _ACEOF 49081 if ac_fn_cxx_try_link "$LINENO"; then : 49082 has_dynamic_libstdcxx=yes 49083 else 49084 has_dynamic_libstdcxx=no 49085 fi 49086 rm -f core conftest.err conftest.$ac_objext \ 49087 conftest$ac_exeext conftest.$ac_ext 49088 CXXFLAGS="$OLD_CXXFLAGS" 49089 ac_ext=cpp 49090 ac_cpp='$CXXCPP $CPPFLAGS' 49091 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49092 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49093 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49094 49095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 49096 $as_echo "$has_dynamic_libstdcxx" >&6; } 49097 49098 # Test if stdc++ can be linked statically. 49099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 49100 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 49101 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 49102 ac_ext=cpp 49103 ac_cpp='$CXXCPP $CPPFLAGS' 49104 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49105 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49106 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49107 49108 OLD_LIBS="$LIBS" 49109 OLD_CXX="$CXX" 49110 LIBS="$STATIC_STDCXX_FLAGS" 49111 CXX="$CC" 49112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 49113 /* end confdefs.h. */ 49114 49115 int 49116 main () 49117 { 49118 return 0; 49119 ; 49120 return 0; 49121 } 49122 _ACEOF 49123 if ac_fn_cxx_try_link "$LINENO"; then : 49124 has_static_libstdcxx=yes 49125 else 49126 has_static_libstdcxx=no 49127 fi 49128 rm -f core conftest.err conftest.$ac_objext \ 49129 conftest$ac_exeext conftest.$ac_ext 49130 LIBS="$OLD_LIBS" 49131 CXX="$OLD_CXX" 49132 ac_ext=cpp 49133 ac_cpp='$CXXCPP $CPPFLAGS' 49134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 49135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 49136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 49137 49138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 49139 $as_echo "$has_static_libstdcxx" >&6; } 49140 49141 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 49142 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 49143 fi 49144 49145 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 49146 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 49147 fi 49148 49149 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 49150 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 49151 fi 49152 49153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 49154 $as_echo_n "checking how to link with libstdc++... " >&6; } 49155 # If dynamic was requested, it's available since it would fail above otherwise. 49156 # If dynamic wasn't requested, go with static unless it isn't available. 49157 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49158 LIBCXX="$LIBCXX -lstdc++" 49159 LDCXX="$CXX" 49160 STATIC_CXX_SETTING="STATIC_CXX=false" 49161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 49162 $as_echo "dynamic" >&6; } 49163 else 49164 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 49165 LDCXX="$CC" 49166 STATIC_CXX_SETTING="STATIC_CXX=true" 49167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 49168 $as_echo "static" >&6; } 49169 fi 49170 fi 49171 49172 49173 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49174 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 49175 49176 pkg_failed=no 49177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 49178 $as_echo_n "checking for LIBFFI... " >&6; } 49179 49180 if test -n "$LIBFFI_CFLAGS"; then 49181 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 49182 elif test -n "$PKG_CONFIG"; then 49183 if test -n "$PKG_CONFIG" && \ 49184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49185 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49186 ac_status=$? 49187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49188 test $ac_status = 0; }; then 49189 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 49190 else 49191 pkg_failed=yes 49192 fi 49193 else 49194 pkg_failed=untried 49195 fi 49196 if test -n "$LIBFFI_LIBS"; then 49197 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 49198 elif test -n "$PKG_CONFIG"; then 49199 if test -n "$PKG_CONFIG" && \ 49200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 49201 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 49202 ac_status=$? 49203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 49204 test $ac_status = 0; }; then 49205 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 49206 else 49207 pkg_failed=yes 49208 fi 49209 else 49210 pkg_failed=untried 49211 fi 49212 49213 49214 49215 if test $pkg_failed = yes; then 49216 49217 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 49218 _pkg_short_errors_supported=yes 49219 else 49220 _pkg_short_errors_supported=no 49221 fi 49222 if test $_pkg_short_errors_supported = yes; then 49223 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 49224 else 49225 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 49226 fi 49227 # Put the nasty error message in config.log where it belongs 49228 echo "$LIBFFI_PKG_ERRORS" >&5 49229 49230 as_fn_error $? "Package requirements (libffi) were not met: 49231 49232 $LIBFFI_PKG_ERRORS 49233 49234 Consider adjusting the PKG_CONFIG_PATH environment variable if you 49235 installed software in a non-standard prefix. 49236 49237 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49238 and LIBFFI_LIBS to avoid the need to call pkg-config. 49239 See the pkg-config man page for more details. 49240 " "$LINENO" 5 49241 elif test $pkg_failed = untried; then 49242 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 49243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 49244 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 49245 is in your PATH or set the PKG_CONFIG environment variable to the full 49246 path to pkg-config. 49247 49248 Alternatively, you may set the environment variables LIBFFI_CFLAGS 49249 and LIBFFI_LIBS to avoid the need to call pkg-config. 49250 See the pkg-config man page for more details. 49251 49252 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 49253 See \`config.log' for more details" "$LINENO" 5; } 49254 else 49255 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 49256 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 49257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49258 $as_echo "yes" >&6; } 49259 : 49260 fi 49261 49262 fi 49263 49264 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 49265 # Extract the first word of "llvm-config", so it can be a program name with args. 49266 set dummy llvm-config; ac_word=$2 49267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 49268 $as_echo_n "checking for $ac_word... " >&6; } 49269 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 49270 $as_echo_n "(cached) " >&6 49271 else 49272 if test -n "$LLVM_CONFIG"; then 49273 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 49274 else 49275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49276 for as_dir in $PATH 49277 do 49278 IFS=$as_save_IFS 49279 test -z "$as_dir" && as_dir=. 49280 for ac_exec_ext in '' $ac_executable_extensions; do 49281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 49282 ac_cv_prog_LLVM_CONFIG="llvm-config" 49283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 49284 break 2 49285 fi 49286 done 49287 done 49288 IFS=$as_save_IFS 49289 49290 fi 49291 fi 49292 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 49293 if test -n "$LLVM_CONFIG"; then 49294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 49295 $as_echo "$LLVM_CONFIG" >&6; } 49296 else 49297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49298 $as_echo "no" >&6; } 49299 fi 49300 49301 49302 49303 if test "x$LLVM_CONFIG" != xllvm-config; then 49304 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 49305 fi 49306 49307 llvm_components="jit mcjit engine nativecodegen native" 49308 unset LLVM_CFLAGS 49309 for flag in $("$LLVM_CONFIG" --cxxflags); do 49310 if echo "${flag}" | grep -q '^-[ID]'; then 49311 if test "${flag}" != "-D_DEBUG" ; then 49312 if test "${LLVM_CFLAGS}" != "" ; then 49313 LLVM_CFLAGS="${LLVM_CFLAGS} " 49314 fi 49315 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 49316 fi 49317 fi 49318 done 49319 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\(^[0-9]\)*.\([0-9]*\).*/\1\2/; s/svn.*//') 49320 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 49321 49322 unset LLVM_LDFLAGS 49323 for flag in $("${LLVM_CONFIG}" --ldflags); do 49324 if echo "${flag}" | grep -q '^-L'; then 49325 if test "${LLVM_LDFLAGS}" != ""; then 49326 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 49327 fi 49328 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 49329 fi 49330 done 49331 49332 unset LLVM_LIBS 49333 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 49334 if echo "${flag}" | grep -q '^-l'; then 49335 if test "${LLVM_LIBS}" != ""; then 49336 LLVM_LIBS="${LLVM_LIBS} " 49337 fi 49338 LLVM_LIBS="${LLVM_LIBS}${flag}" 49339 fi 49340 done 49341 49342 49343 49344 49345 fi 49346 49347 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 49348 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 49349 LIBCXX="${SYSROOT}/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 49350 fi 49351 49352 # TODO better (platform agnostic) test 49353 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 49354 LIBCXX="-lstdc++" 49355 fi 49356 49357 49358 49359 49360 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49361 49362 49363 # Check whether --with-msvcr-dll was given. 49364 if test "${with_msvcr_dll+set}" = set; then : 49365 withval=$with_msvcr_dll; 49366 fi 49367 49368 49369 if test "x$with_msvcr_dll" != x; then 49370 # If given explicitely by user, do not probe. If not present, fail directly. 49371 49372 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 49373 METHOD="--with-msvcr-dll" 49374 if test -e "$POSSIBLE_MSVCR_DLL"; then 49375 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49376 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49377 49378 # Need to check if the found msvcr is correct architecture 49379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49380 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49381 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49382 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49383 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49384 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49385 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49386 CORRECT_MSVCR_ARCH="PE32 executable" 49387 else 49388 CORRECT_MSVCR_ARCH="PE32+ executable" 49389 fi 49390 else 49391 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49392 CORRECT_MSVCR_ARCH=386 49393 else 49394 CORRECT_MSVCR_ARCH=x86-64 49395 fi 49396 fi 49397 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49399 $as_echo "ok" >&6; } 49400 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49402 $as_echo_n "checking for msvcr100.dll... " >&6; } 49403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49404 $as_echo "$MSVCR_DLL" >&6; } 49405 else 49406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49407 $as_echo "incorrect, ignoring" >&6; } 49408 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49409 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49410 fi 49411 fi 49412 49413 if test "x$MSVCR_DLL" = x; then 49414 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 49415 fi 49416 fi 49417 49418 if test "x$MSVCR_DLL" = x; then 49419 # Probe: Using well-known location from Visual Studio 10.0 49420 if test "x$VCINSTALLDIR" != x; then 49421 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 49422 49423 windows_path="$CYGWIN_VC_INSTALL_DIR" 49424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49425 unix_path=`$CYGPATH -u "$windows_path"` 49426 CYGWIN_VC_INSTALL_DIR="$unix_path" 49427 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49428 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49429 CYGWIN_VC_INSTALL_DIR="$unix_path" 49430 fi 49431 49432 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49433 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 49434 else 49435 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 49436 fi 49437 49438 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49439 METHOD="well-known location in VCINSTALLDIR" 49440 if test -e "$POSSIBLE_MSVCR_DLL"; then 49441 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49442 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49443 49444 # Need to check if the found msvcr is correct architecture 49445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49446 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49447 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49448 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49449 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49450 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49451 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49452 CORRECT_MSVCR_ARCH="PE32 executable" 49453 else 49454 CORRECT_MSVCR_ARCH="PE32+ executable" 49455 fi 49456 else 49457 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49458 CORRECT_MSVCR_ARCH=386 49459 else 49460 CORRECT_MSVCR_ARCH=x86-64 49461 fi 49462 fi 49463 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49465 $as_echo "ok" >&6; } 49466 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49468 $as_echo_n "checking for msvcr100.dll... " >&6; } 49469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49470 $as_echo "$MSVCR_DLL" >&6; } 49471 else 49472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49473 $as_echo "incorrect, ignoring" >&6; } 49474 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49475 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49476 fi 49477 fi 49478 49479 fi 49480 fi 49481 49482 if test "x$MSVCR_DLL" = x; then 49483 # Probe: Check in the Boot JDK directory. 49484 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 49485 49486 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49487 METHOD="well-known location in Boot JDK" 49488 if test -e "$POSSIBLE_MSVCR_DLL"; then 49489 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49490 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49491 49492 # Need to check if the found msvcr is correct architecture 49493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49494 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49495 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49496 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49497 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49498 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49499 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49500 CORRECT_MSVCR_ARCH="PE32 executable" 49501 else 49502 CORRECT_MSVCR_ARCH="PE32+ executable" 49503 fi 49504 else 49505 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49506 CORRECT_MSVCR_ARCH=386 49507 else 49508 CORRECT_MSVCR_ARCH=x86-64 49509 fi 49510 fi 49511 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49513 $as_echo "ok" >&6; } 49514 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49516 $as_echo_n "checking for msvcr100.dll... " >&6; } 49517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49518 $as_echo "$MSVCR_DLL" >&6; } 49519 else 49520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49521 $as_echo "incorrect, ignoring" >&6; } 49522 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49523 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49524 fi 49525 fi 49526 49527 fi 49528 49529 if test "x$MSVCR_DLL" = x; then 49530 # Probe: Look in the Windows system32 directory 49531 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 49532 49533 windows_path="$CYGWIN_SYSTEMROOT" 49534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49535 unix_path=`$CYGPATH -u "$windows_path"` 49536 CYGWIN_SYSTEMROOT="$unix_path" 49537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49539 CYGWIN_SYSTEMROOT="$unix_path" 49540 fi 49541 49542 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 49543 49544 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49545 METHOD="well-known location in SYSTEMROOT" 49546 if test -e "$POSSIBLE_MSVCR_DLL"; then 49547 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49548 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49549 49550 # Need to check if the found msvcr is correct architecture 49551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49552 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49553 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49555 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49556 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49557 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49558 CORRECT_MSVCR_ARCH="PE32 executable" 49559 else 49560 CORRECT_MSVCR_ARCH="PE32+ executable" 49561 fi 49562 else 49563 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49564 CORRECT_MSVCR_ARCH=386 49565 else 49566 CORRECT_MSVCR_ARCH=x86-64 49567 fi 49568 fi 49569 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49571 $as_echo "ok" >&6; } 49572 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49574 $as_echo_n "checking for msvcr100.dll... " >&6; } 49575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49576 $as_echo "$MSVCR_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 msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49581 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49582 fi 49583 fi 49584 49585 fi 49586 49587 if test "x$MSVCR_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_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 49603 else 49604 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 49605 fi 49606 49607 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49608 METHOD="search of VS100COMNTOOLS" 49609 if test -e "$POSSIBLE_MSVCR_DLL"; then 49610 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49611 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49612 49613 # Need to check if the found msvcr is correct architecture 49614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49615 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49616 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49618 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49619 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49620 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49621 CORRECT_MSVCR_ARCH="PE32 executable" 49622 else 49623 CORRECT_MSVCR_ARCH="PE32+ executable" 49624 fi 49625 else 49626 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49627 CORRECT_MSVCR_ARCH=386 49628 else 49629 CORRECT_MSVCR_ARCH=x86-64 49630 fi 49631 fi 49632 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49634 $as_echo "ok" >&6; } 49635 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49637 $as_echo_n "checking for msvcr100.dll... " >&6; } 49638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49639 $as_echo "$MSVCR_DLL" >&6; } 49640 else 49641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49642 $as_echo "incorrect, ignoring" >&6; } 49643 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49644 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49645 fi 49646 fi 49647 49648 fi 49649 fi 49650 49651 if test "x$MSVCR_DLL" = x; then 49652 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 49653 # (This was the original behaviour; kept since it might turn up something) 49654 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 49655 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 49656 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 49657 else 49658 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 49659 if test "x$POSSIBLE_MSVCR_DLL" = x; then 49660 # We're grasping at straws now... 49661 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 49662 fi 49663 fi 49664 49665 49666 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49667 METHOD="search of VCINSTALLDIR" 49668 if test -e "$POSSIBLE_MSVCR_DLL"; then 49669 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 49670 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 49671 49672 # Need to check if the found msvcr is correct architecture 49673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 49674 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 49675 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 49676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49677 # The MSYS 'file' command returns "PE32 executable for MS Windows (DLL) (GUI) Intel 80386 32-bit" 49678 # on x32 and "PE32+ executable for MS Windows (DLL) (GUI) Mono/.Net assembly" on x64 systems. 49679 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49680 CORRECT_MSVCR_ARCH="PE32 executable" 49681 else 49682 CORRECT_MSVCR_ARCH="PE32+ executable" 49683 fi 49684 else 49685 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 49686 CORRECT_MSVCR_ARCH=386 49687 else 49688 CORRECT_MSVCR_ARCH=x86-64 49689 fi 49690 fi 49691 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP "$CORRECT_MSVCR_ARCH" 2>&1 > /dev/null; then 49692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 49693 $as_echo "ok" >&6; } 49694 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 49695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49696 $as_echo_n "checking for msvcr100.dll... " >&6; } 49697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 49698 $as_echo "$MSVCR_DLL" >&6; } 49699 else 49700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 49701 $as_echo "incorrect, ignoring" >&6; } 49702 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 49703 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 49704 fi 49705 fi 49706 49707 fi 49708 fi 49709 49710 if test "x$MSVCR_DLL" = x; then 49711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 49712 $as_echo_n "checking for msvcr100.dll... " >&6; } 49713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49714 $as_echo "no" >&6; } 49715 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 49716 fi 49717 49718 49719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49720 49721 # Input might be given as Windows format, start by converting to 49722 # unix format. 49723 path="$MSVCR_DLL" 49724 new_path=`$CYGPATH -u "$path"` 49725 49726 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 49727 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 49728 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 49729 # "foo.exe" is OK but "foo" is an error. 49730 # 49731 # This test is therefore slightly more accurate than "test -f" to check for file precense. 49732 # It is also a way to make sure we got the proper file name for the real test later on. 49733 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 49734 if test "x$test_shortpath" = x; then 49735 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 49736 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 49737 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 49738 fi 49739 49740 # Call helper function which possibly converts this using DOS-style short mode. 49741 # If so, the updated path is stored in $new_path. 49742 49743 input_path="$new_path" 49744 # Check if we need to convert this using DOS-style short mode. If the path 49745 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49746 # take no chances and rewrite it. 49747 # Note: m4 eats our [], so we need to use [ and ] instead. 49748 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 49749 if test "x$has_forbidden_chars" != x; then 49750 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49751 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 49752 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 49753 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 49754 # Going to short mode and back again did indeed matter. Since short mode is 49755 # case insensitive, let's make it lowercase to improve readability. 49756 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49757 # Now convert it back to Unix-stile (cygpath) 49758 input_path=`$CYGPATH -u "$shortmode_path"` 49759 new_path="$input_path" 49760 fi 49761 fi 49762 49763 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 49764 if test "x$test_cygdrive_prefix" = x; then 49765 # As a simple fix, exclude /usr/bin since it's not a real path. 49766 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 49767 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 49768 # a path prefixed by /cygdrive for fixpath to work. 49769 new_path="$CYGWIN_ROOT_PATH$input_path" 49770 fi 49771 fi 49772 49773 49774 if test "x$path" != "x$new_path"; then 49775 MSVCR_DLL="$new_path" 49776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 49777 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 49778 fi 49779 49780 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49781 49782 path="$MSVCR_DLL" 49783 has_colon=`$ECHO $path | $GREP ^.:` 49784 new_path="$path" 49785 if test "x$has_colon" = x; then 49786 # Not in mixed or Windows style, start by that. 49787 new_path=`cmd //c echo $path` 49788 fi 49789 49790 49791 input_path="$new_path" 49792 # Check if we need to convert this using DOS-style short mode. If the path 49793 # contains just simple characters, use it. Otherwise (spaces, weird characters), 49794 # take no chances and rewrite it. 49795 # Note: m4 eats our [], so we need to use [ and ] instead. 49796 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 49797 if test "x$has_forbidden_chars" != x; then 49798 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 49799 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 49800 fi 49801 49802 49803 windows_path="$new_path" 49804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 49805 unix_path=`$CYGPATH -u "$windows_path"` 49806 new_path="$unix_path" 49807 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 49808 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 49809 new_path="$unix_path" 49810 fi 49811 49812 if test "x$path" != "x$new_path"; then 49813 MSVCR_DLL="$new_path" 49814 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 49815 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 49816 fi 49817 49818 # Save the first 10 bytes of this path to the storage, so fixpath can work. 49819 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 49820 49821 else 49822 # We're on a unix platform. Hooray! :) 49823 path="$MSVCR_DLL" 49824 has_space=`$ECHO "$path" | $GREP " "` 49825 if test "x$has_space" != x; then 49826 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 49827 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 49828 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 49829 fi 49830 49831 # Use eval to expand a potential ~ 49832 eval path="$path" 49833 if test ! -f "$path" && test ! -d "$path"; then 49834 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 49835 fi 49836 49837 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 49838 fi 49839 49840 49841 49842 49843 # Check whether --with-dxsdk was given. 49844 if test "${with_dxsdk+set}" = set; then : 49845 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 49846 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 49847 fi 49848 49849 49850 49851 49852 # Check whether --with-dxsdk-lib was given. 49853 if test "${with_dxsdk_lib+set}" = set; then : 49854 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 49855 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 49856 fi 49857 49858 49859 49860 49861 # Check whether --with-dxsdk-include was given. 49862 if test "${with_dxsdk_include+set}" = set; then : 49863 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 49864 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 49865 fi 49866 49867 49868 fi 49869 49870 49871 49872 ############################################################################### 49873 # 49874 # We need to do some final tweaking, when everything else is done. 49875 # 49876 ############################################################################### 49877 49878 49879 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 49880 49881 49882 # The name of the Service Agent jar. 49883 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 49884 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 49885 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 49886 fi 49887 49888 49889 49890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 49891 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 49892 49893 if test -d "${SRC_ROOT}/jdk/src/jdk.crypto.ec/share/native/libsunec/impl"; then 49894 ENABLE_INTREE_EC=yes 49895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 49896 $as_echo "yes" >&6; } 49897 else 49898 ENABLE_INTREE_EC=no 49899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 49900 $as_echo "no" >&6; } 49901 fi 49902 49903 49904 49905 49906 ############################################################################### 49907 # 49908 # Configure parts of the build that only affect the build performance, 49909 # not the result. 49910 # 49911 ############################################################################### 49912 49913 49914 # How many cores do we have on this build system? 49915 49916 # Check whether --with-num-cores was given. 49917 if test "${with_num_cores+set}" = set; then : 49918 withval=$with_num_cores; 49919 fi 49920 49921 if test "x$with_num_cores" = x; then 49922 # The number of cores were not specified, try to probe them. 49923 49924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 49925 $as_echo_n "checking for number of cores... " >&6; } 49926 NUM_CORES=1 49927 FOUND_CORES=no 49928 49929 if test -f /proc/cpuinfo; then 49930 # Looks like a Linux (or cygwin) system 49931 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 49932 FOUND_CORES=yes 49933 elif test -x /usr/sbin/psrinfo; then 49934 # Looks like a Solaris system 49935 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 49936 FOUND_CORES=yes 49937 elif test -x /usr/sbin/system_profiler; then 49938 # Looks like a MacOSX system 49939 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 49940 FOUND_CORES=yes 49941 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 49942 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 49943 FOUND_CORES=yes 49944 elif test -n "$NUMBER_OF_PROCESSORS"; then 49945 # On windows, look in the env 49946 NUM_CORES=$NUMBER_OF_PROCESSORS 49947 FOUND_CORES=yes 49948 fi 49949 49950 if test "x$FOUND_CORES" = xyes; then 49951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 49952 $as_echo "$NUM_CORES" >&6; } 49953 else 49954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 49955 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 49956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 49957 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 49958 fi 49959 49960 else 49961 NUM_CORES=$with_num_cores 49962 fi 49963 49964 49965 49966 # How much memory do we have on this build system? 49967 49968 # Check whether --with-memory-size was given. 49969 if test "${with_memory_size+set}" = set; then : 49970 withval=$with_memory_size; 49971 fi 49972 49973 if test "x$with_memory_size" = x; then 49974 # The memory size was not specified, try to probe it. 49975 49976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 49977 $as_echo_n "checking for memory size... " >&6; } 49978 # Default to 1024 MB 49979 MEMORY_SIZE=1024 49980 FOUND_MEM=no 49981 49982 if test -f /proc/meminfo; then 49983 # Looks like a Linux (or cygwin) system 49984 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 49985 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 49986 FOUND_MEM=yes 49987 elif test -x /usr/sbin/prtconf; then 49988 # Looks like a Solaris or AIX system 49989 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 49990 FOUND_MEM=yes 49991 elif test -x /usr/sbin/system_profiler; then 49992 # Looks like a MacOSX system 49993 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 49994 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 49995 FOUND_MEM=yes 49996 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 49997 # Windows, but without cygwin 49998 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 49999 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 50000 FOUND_MEM=yes 50001 fi 50002 50003 if test "x$FOUND_MEM" = xyes; then 50004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 50005 $as_echo "$MEMORY_SIZE MB" >&6; } 50006 else 50007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to $MEMORY_SIZE MB" >&5 50008 $as_echo "could not detect memory size, defaulting to $MEMORY_SIZE MB" >&6; } 50009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 50010 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 50011 fi 50012 50013 else 50014 MEMORY_SIZE=$with_memory_size 50015 fi 50016 50017 50018 50019 # Provide a decent default number of parallel jobs for make depending on 50020 # number of cores, amount of memory and machine architecture. 50021 50022 # Check whether --with-jobs was given. 50023 if test "${with_jobs+set}" = set; then : 50024 withval=$with_jobs; 50025 fi 50026 50027 if test "x$with_jobs" = x; then 50028 # Number of jobs was not specified, calculate. 50029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 50030 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 50031 # Approximate memory in GB. 50032 memory_gb=`expr $MEMORY_SIZE / 1024` 50033 # Pick the lowest of memory in gb and number of cores. 50034 if test "$memory_gb" -lt "$NUM_CORES"; then 50035 JOBS="$memory_gb" 50036 else 50037 JOBS="$NUM_CORES" 50038 # On bigger machines, leave some room for other processes to run 50039 if test "$JOBS" -gt "4"; then 50040 JOBS=`expr $JOBS '*' 90 / 100` 50041 fi 50042 fi 50043 # Cap number of jobs to 16 50044 if test "$JOBS" -gt "16"; then 50045 JOBS=16 50046 fi 50047 if test "$JOBS" -eq "0"; then 50048 JOBS=1 50049 fi 50050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 50051 $as_echo "$JOBS" >&6; } 50052 else 50053 JOBS=$with_jobs 50054 fi 50055 50056 50057 50058 # Setup arguments for the boot jdk (after cores and memory have been setup) 50059 50060 ############################################################################## 50061 # 50062 # Specify jvm options for anything that is run with the Boot JDK. 50063 # Not all JVM:s accept the same arguments on the command line. 50064 # 50065 50066 # Check whether --with-boot-jdk-jvmargs was given. 50067 if test "${with_boot_jdk_jvmargs+set}" = set; then : 50068 withval=$with_boot_jdk_jvmargs; 50069 fi 50070 50071 50072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 50073 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 50074 50075 # Disable special log output when a debug build is used as Boot JDK... 50076 50077 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 50078 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 50079 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 50080 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50081 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50082 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50083 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 50084 JVM_ARG_OK=true 50085 else 50086 $ECHO "Arg failed:" >&5 50087 $ECHO "$OUTPUT" >&5 50088 JVM_ARG_OK=false 50089 fi 50090 50091 50092 # Apply user provided options. 50093 50094 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 50095 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 50096 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 50097 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50098 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50099 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50100 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 50101 JVM_ARG_OK=true 50102 else 50103 $ECHO "Arg failed:" >&5 50104 $ECHO "$OUTPUT" >&5 50105 JVM_ARG_OK=false 50106 fi 50107 50108 50109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 50110 $as_echo "$boot_jdk_jvmargs" >&6; } 50111 50112 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 50113 JAVA_FLAGS=$boot_jdk_jvmargs 50114 50115 50116 50117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 50118 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 50119 50120 # Starting amount of heap memory. 50121 50122 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 50123 $ECHO "Command: $JAVA -Xms64M -version" >&5 50124 OUTPUT=`$JAVA -Xms64M -version 2>&1` 50125 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50126 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50127 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50128 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 50129 JVM_ARG_OK=true 50130 else 50131 $ECHO "Arg failed:" >&5 50132 $ECHO "$OUTPUT" >&5 50133 JVM_ARG_OK=false 50134 fi 50135 50136 50137 # Maximum amount of heap memory. 50138 # Maximum stack size. 50139 JVM_MAX_HEAP=`expr $MEMORY_SIZE / 2` 50140 if test "x$BUILD_NUM_BITS" = x32; then 50141 if test "$JVM_MAX_HEAP" -gt "1100"; then 50142 JVM_MAX_HEAP=1100 50143 elif test "$JVM_MAX_HEAP" -lt "512"; then 50144 JVM_MAX_HEAP=512 50145 fi 50146 STACK_SIZE=768 50147 else 50148 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 50149 # pointers are used. Apparently, we need to increase the heap and stack 50150 # space for the jvm. More specifically, when running javac to build huge 50151 # jdk batch 50152 if test "$JVM_MAX_HEAP" -gt "1600"; then 50153 JVM_MAX_HEAP=1600 50154 elif test "$JVM_MAX_HEAP" -lt "512"; then 50155 JVM_MAX_HEAP=512 50156 fi 50157 STACK_SIZE=1536 50158 fi 50159 50160 $ECHO "Check if jvm arg is ok: -Xmx${JVM_MAX_HEAP}M" >&5 50161 $ECHO "Command: $JAVA -Xmx${JVM_MAX_HEAP}M -version" >&5 50162 OUTPUT=`$JAVA -Xmx${JVM_MAX_HEAP}M -version 2>&1` 50163 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50164 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50165 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50166 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx${JVM_MAX_HEAP}M" 50167 JVM_ARG_OK=true 50168 else 50169 $ECHO "Arg failed:" >&5 50170 $ECHO "$OUTPUT" >&5 50171 JVM_ARG_OK=false 50172 fi 50173 50174 50175 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 50176 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 50177 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 50178 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50179 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50180 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50181 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 50182 JVM_ARG_OK=true 50183 else 50184 $ECHO "Arg failed:" >&5 50185 $ECHO "$OUTPUT" >&5 50186 JVM_ARG_OK=false 50187 fi 50188 50189 50190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 50191 $as_echo "$boot_jdk_jvmargs_big" >&6; } 50192 50193 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 50194 50195 50196 50197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 50198 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 50199 50200 # Use serial gc for small short lived tools if possible 50201 50202 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 50203 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 50204 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 50205 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50206 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50207 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50208 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 50209 JVM_ARG_OK=true 50210 else 50211 $ECHO "Arg failed:" >&5 50212 $ECHO "$OUTPUT" >&5 50213 JVM_ARG_OK=false 50214 fi 50215 50216 50217 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 50218 $ECHO "Command: $JAVA -Xms32M -version" >&5 50219 OUTPUT=`$JAVA -Xms32M -version 2>&1` 50220 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50221 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50222 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50223 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 50224 JVM_ARG_OK=true 50225 else 50226 $ECHO "Arg failed:" >&5 50227 $ECHO "$OUTPUT" >&5 50228 JVM_ARG_OK=false 50229 fi 50230 50231 50232 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 50233 $ECHO "Command: $JAVA -Xmx512M -version" >&5 50234 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 50235 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50236 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50237 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50238 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 50239 JVM_ARG_OK=true 50240 else 50241 $ECHO "Arg failed:" >&5 50242 $ECHO "$OUTPUT" >&5 50243 JVM_ARG_OK=false 50244 fi 50245 50246 50247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 50248 $as_echo "$boot_jdk_jvmargs_small" >&6; } 50249 50250 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 50251 50252 50253 JAVA_TOOL_FLAGS_SMALL="" 50254 for f in $JAVA_FLAGS_SMALL; do 50255 JAVA_TOOL_FLAGS_SMALL="$JAVA_TOOL_FLAGS_SMALL -J$f" 50256 done 50257 50258 50259 50260 # Setup smart javac (after cores and memory have been setup) 50261 50262 50263 # Check whether --with-sjavac-server-java was given. 50264 if test "${with_sjavac_server_java+set}" = set; then : 50265 withval=$with_sjavac_server_java; 50266 fi 50267 50268 50269 if test "x$with_sjavac_server_java" != x; then 50270 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 50271 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 50272 if test "x$FOUND_VERSION" = x; then 50273 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 50274 fi 50275 else 50276 SJAVAC_SERVER_JAVA="$JAVA" 50277 fi 50278 50279 50280 if test "$MEMORY_SIZE" -gt "3000"; then 50281 50282 $ECHO "Check if jvm arg is ok: -d64" >&5 50283 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 50284 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 50285 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50286 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50287 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50288 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -d64" 50289 JVM_ARG_OK=true 50290 else 50291 $ECHO "Arg failed:" >&5 50292 $ECHO "$OUTPUT" >&5 50293 JVM_ARG_OK=false 50294 fi 50295 50296 if test "$JVM_ARG_OK" = true; then 50297 JVM_64BIT=true 50298 JVM_ARG_OK=false 50299 fi 50300 fi 50301 50302 MX_VALUE=`expr $MEMORY_SIZE / 2` 50303 if test "$JVM_64BIT" = true; then 50304 # Set ms lower than mx since more than one instance of the server might 50305 # get launched at the same time before they figure out which instance won. 50306 MS_VALUE=512 50307 if test "$MX_VALUE" -gt "2048"; then 50308 MX_VALUE=2048 50309 fi 50310 else 50311 MS_VALUE=256 50312 if test "$MX_VALUE" -gt "1500"; then 50313 MX_VALUE=1500 50314 fi 50315 fi 50316 if test "$MX_VALUE" -lt "512"; then 50317 MX_VALUE=512 50318 fi 50319 50320 $ECHO "Check if jvm arg is ok: -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" >&5 50321 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version" >&5 50322 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms${MS_VALUE}M -Xmx${MX_VALUE}M -version 2>&1` 50323 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 50324 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 50325 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 50326 SJAVAC_SERVER_JAVA_FLAGS="$SJAVAC_SERVER_JAVA_FLAGS -Xms${MS_VALUE}M -Xmx${MX_VALUE}M" 50327 JVM_ARG_OK=true 50328 else 50329 $ECHO "Arg failed:" >&5 50330 $ECHO "$OUTPUT" >&5 50331 JVM_ARG_OK=false 50332 fi 50333 50334 50335 50336 # Check whether --enable-sjavac was given. 50337 if test "${enable_sjavac+set}" = set; then : 50338 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 50339 else 50340 ENABLE_SJAVAC='no' 50341 fi 50342 50343 if test "x$JVM_ARG_OK" = "xfalse"; then 50344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&5 50345 $as_echo "$as_me: WARNING: Could not set -Xms${MS_VALUE}M -Xmx${MX_VALUE}M, disabling sjavac" >&2;} 50346 ENABLE_SJAVAC=no; 50347 fi 50348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 50349 $as_echo_n "checking whether to use sjavac... " >&6; } 50350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 50351 $as_echo "$ENABLE_SJAVAC" >&6; } 50352 50353 50354 if test "x$ENABLE_SJAVAC" = xyes; then 50355 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 50356 else 50357 SJAVAC_SERVER_DIR= 50358 fi 50359 50360 50361 50362 # Can the C/C++ compiler use precompiled headers? 50363 50364 50365 ############################################################################### 50366 # 50367 # Can the C/C++ compiler use precompiled headers? 50368 # 50369 # Check whether --enable-precompiled-headers was given. 50370 if test "${enable_precompiled_headers+set}" = set; then : 50371 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 50372 else 50373 ENABLE_PRECOMPH=yes 50374 fi 50375 50376 50377 USE_PRECOMPILED_HEADER=1 50378 if test "x$ENABLE_PRECOMPH" = xno; then 50379 USE_PRECOMPILED_HEADER=0 50380 fi 50381 50382 if test "x$ENABLE_PRECOMPH" = xyes; then 50383 # Check that the compiler actually supports precomp headers. 50384 if test "x$TOOLCHAIN_TYPE" = xgcc; then 50385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 50386 $as_echo_n "checking that precompiled headers work... " >&6; } 50387 echo "int alfa();" > conftest.h 50388 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 50389 if test ! -f conftest.hpp.gch; then 50390 USE_PRECOMPILED_HEADER=0 50391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50392 $as_echo "no" >&6; } 50393 else 50394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50395 $as_echo "yes" >&6; } 50396 fi 50397 rm -f conftest.h conftest.hpp.gch 50398 fi 50399 fi 50400 50401 50402 50403 50404 # Setup use of ccache, if available 50405 50406 # Check whether --enable-ccache was given. 50407 if test "${enable_ccache+set}" = set; then : 50408 enableval=$enable_ccache; 50409 fi 50410 50411 50412 CCACHE= 50413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 50414 $as_echo_n "checking is ccache enabled... " >&6; } 50415 ENABLE_CCACHE=$enable_ccache 50416 if test "x$enable_ccache" = xyes; then 50417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50418 $as_echo "yes" >&6; } 50419 OLD_PATH="$PATH" 50420 if test "x$TOOLCHAIN_PATH" != x; then 50421 PATH=$TOOLCHAIN_PATH:$PATH 50422 fi 50423 50424 50425 50426 # Publish this variable in the help. 50427 50428 50429 if test "x$CCACHE" = x; then 50430 # The variable is not set by user, try to locate tool using the code snippet 50431 for ac_prog in ccache 50432 do 50433 # Extract the first word of "$ac_prog", so it can be a program name with args. 50434 set dummy $ac_prog; ac_word=$2 50435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50436 $as_echo_n "checking for $ac_word... " >&6; } 50437 if ${ac_cv_path_CCACHE+:} false; then : 50438 $as_echo_n "(cached) " >&6 50439 else 50440 case $CCACHE in 50441 [\\/]* | ?:[\\/]*) 50442 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50443 ;; 50444 *) 50445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50446 for as_dir in $PATH 50447 do 50448 IFS=$as_save_IFS 50449 test -z "$as_dir" && as_dir=. 50450 for ac_exec_ext in '' $ac_executable_extensions; do 50451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50452 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50454 break 2 50455 fi 50456 done 50457 done 50458 IFS=$as_save_IFS 50459 50460 ;; 50461 esac 50462 fi 50463 CCACHE=$ac_cv_path_CCACHE 50464 if test -n "$CCACHE"; then 50465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50466 $as_echo "$CCACHE" >&6; } 50467 else 50468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50469 $as_echo "no" >&6; } 50470 fi 50471 50472 50473 test -n "$CCACHE" && break 50474 done 50475 50476 else 50477 # The variable is set, but is it from the command line or the environment? 50478 50479 # Try to remove the string !CCACHE! from our list. 50480 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 50481 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 50482 # If it failed, the variable was not from the command line. Ignore it, 50483 # but warn the user (except for BASH, which is always set by the calling BASH). 50484 if test "xCCACHE" != xBASH; then 50485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 50486 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 50487 fi 50488 # Try to locate tool using the code snippet 50489 for ac_prog in ccache 50490 do 50491 # Extract the first word of "$ac_prog", so it can be a program name with args. 50492 set dummy $ac_prog; ac_word=$2 50493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50494 $as_echo_n "checking for $ac_word... " >&6; } 50495 if ${ac_cv_path_CCACHE+:} false; then : 50496 $as_echo_n "(cached) " >&6 50497 else 50498 case $CCACHE in 50499 [\\/]* | ?:[\\/]*) 50500 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50501 ;; 50502 *) 50503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50504 for as_dir in $PATH 50505 do 50506 IFS=$as_save_IFS 50507 test -z "$as_dir" && as_dir=. 50508 for ac_exec_ext in '' $ac_executable_extensions; do 50509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50510 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50512 break 2 50513 fi 50514 done 50515 done 50516 IFS=$as_save_IFS 50517 50518 ;; 50519 esac 50520 fi 50521 CCACHE=$ac_cv_path_CCACHE 50522 if test -n "$CCACHE"; then 50523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50524 $as_echo "$CCACHE" >&6; } 50525 else 50526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50527 $as_echo "no" >&6; } 50528 fi 50529 50530 50531 test -n "$CCACHE" && break 50532 done 50533 50534 else 50535 # If it succeeded, then it was overridden by the user. We will use it 50536 # for the tool. 50537 50538 # First remove it from the list of overridden variables, so we can test 50539 # for unknown variables in the end. 50540 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 50541 50542 # Check if the provided tool contains a complete path. 50543 tool_specified="$CCACHE" 50544 tool_basename="${tool_specified##*/}" 50545 if test "x$tool_basename" = "x$tool_specified"; then 50546 # A command without a complete path is provided, search $PATH. 50547 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 50548 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 50549 # Extract the first word of "$tool_basename", so it can be a program name with args. 50550 set dummy $tool_basename; ac_word=$2 50551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 50552 $as_echo_n "checking for $ac_word... " >&6; } 50553 if ${ac_cv_path_CCACHE+:} false; then : 50554 $as_echo_n "(cached) " >&6 50555 else 50556 case $CCACHE in 50557 [\\/]* | ?:[\\/]*) 50558 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 50559 ;; 50560 *) 50561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 50562 for as_dir in $PATH 50563 do 50564 IFS=$as_save_IFS 50565 test -z "$as_dir" && as_dir=. 50566 for ac_exec_ext in '' $ac_executable_extensions; do 50567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 50568 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 50569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 50570 break 2 50571 fi 50572 done 50573 done 50574 IFS=$as_save_IFS 50575 50576 ;; 50577 esac 50578 fi 50579 CCACHE=$ac_cv_path_CCACHE 50580 if test -n "$CCACHE"; then 50581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 50582 $as_echo "$CCACHE" >&6; } 50583 else 50584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50585 $as_echo "no" >&6; } 50586 fi 50587 50588 50589 if test "x$CCACHE" = x; then 50590 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 50591 fi 50592 else 50593 # Otherwise we believe it is a complete path. Use it as it is. 50594 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 50595 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 50596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 50597 $as_echo_n "checking for CCACHE... " >&6; } 50598 if test ! -x "$tool_specified"; then 50599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 50600 $as_echo "not found" >&6; } 50601 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 50602 fi 50603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 50604 $as_echo "$tool_specified" >&6; } 50605 fi 50606 fi 50607 fi 50608 50609 50610 50611 if test "x$CCACHE" = x; then 50612 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 50613 fi 50614 50615 50616 CCACHE_STATUS="enabled" 50617 PATH="$OLD_PATH" 50618 elif test "x$enable_ccache" = xno; then 50619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 50620 $as_echo "no, explicitly disabled" >&6; } 50621 elif test "x$enable_ccache" = x; then 50622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 50623 $as_echo "no" >&6; } 50624 else 50625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 50626 $as_echo "unknown" >&6; } 50627 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 50628 fi 50629 50630 50631 50632 # Check whether --with-ccache-dir was given. 50633 if test "${with_ccache_dir+set}" = set; then : 50634 withval=$with_ccache_dir; 50635 fi 50636 50637 50638 if test "x$with_ccache_dir" != x; then 50639 # When using a non home ccache directory, assume the use is to share ccache files 50640 # with other users. Thus change the umask. 50641 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 50642 if test "x$CCACHE" = x; then 50643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 50644 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 50645 fi 50646 fi 50647 50648 if test "x$CCACHE" != x; then 50649 50650 if test "x$CCACHE" != x; then 50651 # Only use ccache if it is 3.1.4 or later, which supports 50652 # precompiled headers. 50653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 50654 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 50655 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 50656 if test "x$HAS_GOOD_CCACHE" = x; then 50657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 50658 $as_echo "no, disabling ccache" >&6; } 50659 CCACHE= 50660 CCACHE_STATUS="disabled" 50661 else 50662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50663 $as_echo "yes" >&6; } 50664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 50665 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 50666 PUSHED_FLAGS="$CXXFLAGS" 50667 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 50668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 50669 /* end confdefs.h. */ 50670 50671 int 50672 main () 50673 { 50674 50675 ; 50676 return 0; 50677 } 50678 _ACEOF 50679 if ac_fn_cxx_try_compile "$LINENO"; then : 50680 CC_KNOWS_CCACHE_TRICK=yes 50681 else 50682 CC_KNOWS_CCACHE_TRICK=no 50683 fi 50684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 50685 CXXFLAGS="$PUSHED_FLAGS" 50686 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 50687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 50688 $as_echo "yes" >&6; } 50689 else 50690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 50691 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 50692 CCACHE= 50693 CCACHE_STATUS="disabled" 50694 fi 50695 fi 50696 fi 50697 50698 if test "x$CCACHE" != x; then 50699 CCACHE_SLOPPINESS=time_macros 50700 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 50701 CCACHE_FLAGS=-fpch-preprocess 50702 50703 if test "x$SET_CCACHE_DIR" != x; then 50704 mkdir -p $CCACHE_DIR > /dev/null 2>&1 50705 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 50706 fi 50707 fi 50708 50709 fi 50710 50711 50712 ############################################################################### 50713 # 50714 # And now the finish... 50715 # 50716 ############################################################################### 50717 50718 # Check for some common pitfalls 50719 50720 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 50721 file_to_test="$SRC_ROOT/LICENSE" 50722 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 50723 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 50724 fi 50725 fi 50726 50727 50728 # Did user specify any unknown variables? 50729 50730 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 50731 # Replace the separating ! with spaces before presenting for end user. 50732 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 50733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 50734 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 50735 fi 50736 50737 50738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 50739 $as_echo_n "checking if build directory is on local disk... " >&6; } 50740 50741 # df -l lists only local disks; if the given directory is not found then 50742 # a non-zero exit code is given 50743 if test "x$DF" = x; then 50744 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 50745 # msys does not have df; use Windows "net use" instead. 50746 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 50747 if test "x$IS_NETWORK_DISK" = x; then 50748 OUTPUT_DIR_IS_LOCAL="yes" 50749 else 50750 OUTPUT_DIR_IS_LOCAL="no" 50751 fi 50752 else 50753 # No df here, say it's local 50754 OUTPUT_DIR_IS_LOCAL="yes" 50755 fi 50756 else 50757 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 50758 OUTPUT_DIR_IS_LOCAL="yes" 50759 else 50760 OUTPUT_DIR_IS_LOCAL="no" 50761 fi 50762 fi 50763 50764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 50765 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 50766 50767 50768 50769 # Check if the user has any old-style ALT_ variables set. 50770 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 50771 50772 # Before generating output files, test if they exist. If they do, this is a reconfigure. 50773 # Since we can't properly handle the dependencies for this, warn the user about the situation 50774 if test -e $OUTPUT_ROOT/spec.gmk; then 50775 IS_RECONFIGURE=yes 50776 else 50777 IS_RECONFIGURE=no 50778 fi 50779 50780 50781 # At the end, call the custom hook. (Dummy macro if no custom sources available) 50782 50783 50784 # We're messing a bit with internal autoconf variables to put the config.status 50785 # in the output directory instead of the current directory. 50786 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 50787 50788 # Create the actual output files. Now the main work of configure is done. 50789 cat >confcache <<\_ACEOF 50790 # This file is a shell script that caches the results of configure 50791 # tests run on this system so they can be shared between configure 50792 # scripts and configure runs, see configure's option --config-cache. 50793 # It is not useful on other systems. If it contains results you don't 50794 # want to keep, you may remove or edit it. 50795 # 50796 # config.status only pays attention to the cache file if you give it 50797 # the --recheck option to rerun configure. 50798 # 50799 # `ac_cv_env_foo' variables (set or unset) will be overridden when 50800 # loading this file, other *unset* `ac_cv_foo' will be assigned the 50801 # following values. 50802 50803 _ACEOF 50804 50805 # The following way of writing the cache mishandles newlines in values, 50806 # but we know of no workaround that is simple, portable, and efficient. 50807 # So, we kill variables containing newlines. 50808 # Ultrix sh set writes to stderr and can't be redirected directly, 50809 # and sets the high bit in the cache file unless we assign to the vars. 50810 ( 50811 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 50812 eval ac_val=\$$ac_var 50813 case $ac_val in #( 50814 *${as_nl}*) 50815 case $ac_var in #( 50816 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 50817 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 50818 esac 50819 case $ac_var in #( 50820 _ | IFS | as_nl) ;; #( 50821 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 50822 *) { eval $ac_var=; unset $ac_var;} ;; 50823 esac ;; 50824 esac 50825 done 50826 50827 (set) 2>&1 | 50828 case $as_nl`(ac_space=' '; set) 2>&1` in #( 50829 *${as_nl}ac_space=\ *) 50830 # `set' does not quote correctly, so add quotes: double-quote 50831 # substitution turns \\\\ into \\, and sed turns \\ into \. 50832 sed -n \ 50833 "s/'/'\\\\''/g; 50834 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 50835 ;; #( 50836 *) 50837 # `set' quotes correctly as required by POSIX, so do not add quotes. 50838 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 50839 ;; 50840 esac | 50841 sort 50842 ) | 50843 sed ' 50844 /^ac_cv_env_/b end 50845 t clear 50846 :clear 50847 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 50848 t end 50849 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 50850 :end' >>confcache 50851 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 50852 if test -w "$cache_file"; then 50853 if test "x$cache_file" != "x/dev/null"; then 50854 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 50855 $as_echo "$as_me: updating cache $cache_file" >&6;} 50856 if test ! -f "$cache_file" || test -h "$cache_file"; then 50857 cat confcache >"$cache_file" 50858 else 50859 case $cache_file in #( 50860 */* | ?:*) 50861 mv -f confcache "$cache_file"$$ && 50862 mv -f "$cache_file"$$ "$cache_file" ;; #( 50863 *) 50864 mv -f confcache "$cache_file" ;; 50865 esac 50866 fi 50867 fi 50868 else 50869 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 50870 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 50871 fi 50872 fi 50873 rm -f confcache 50874 50875 test "x$prefix" = xNONE && prefix=$ac_default_prefix 50876 # Let make expand exec_prefix. 50877 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 50878 50879 # Transform confdefs.h into DEFS. 50880 # Protect against shell expansion while executing Makefile rules. 50881 # Protect against Makefile macro expansion. 50882 # 50883 # If the first sed substitution is executed (which looks for macros that 50884 # take arguments), then branch to the quote section. Otherwise, 50885 # look for a macro that doesn't take arguments. 50886 ac_script=' 50887 :mline 50888 /\\$/{ 50889 N 50890 s,\\\n,, 50891 b mline 50892 } 50893 t clear 50894 :clear 50895 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g 50896 t quote 50897 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g 50898 t quote 50899 b any 50900 :quote 50901 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g 50902 s/\[/\\&/g 50903 s/\]/\\&/g 50904 s/\$/$$/g 50905 H 50906 :any 50907 ${ 50908 g 50909 s/^\n// 50910 s/\n/ /g 50911 p 50912 } 50913 ' 50914 DEFS=`sed -n "$ac_script" confdefs.h` 50915 50916 50917 ac_libobjs= 50918 ac_ltlibobjs= 50919 U= 50920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 50921 # 1. Remove the extension, and $U if already installed. 50922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 50923 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 50924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 50925 # will be set to the directory where LIBOBJS objects are built. 50926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 50927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 50928 done 50929 LIBOBJS=$ac_libobjs 50930 50931 LTLIBOBJS=$ac_ltlibobjs 50932 50933 50934 50935 : "${CONFIG_STATUS=./config.status}" 50936 ac_write_fail=0 50937 ac_clean_files_save=$ac_clean_files 50938 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 50939 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 50940 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 50941 as_write_fail=0 50942 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 50943 #! $SHELL 50944 # Generated by $as_me. 50945 # Run this file to recreate the current configuration. 50946 # Compiler output produced by configure, useful for debugging 50947 # configure, is in config.log if it exists. 50948 50949 debug=false 50950 ac_cs_recheck=false 50951 ac_cs_silent=false 50952 50953 SHELL=\${CONFIG_SHELL-$SHELL} 50954 export SHELL 50955 _ASEOF 50956 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 50957 ## -------------------- ## 50958 ## M4sh Initialization. ## 50959 ## -------------------- ## 50960 50961 # Be more Bourne compatible 50962 DUALCASE=1; export DUALCASE # for MKS sh 50963 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 50964 emulate sh 50965 NULLCMD=: 50966 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 50967 # is contrary to our usage. Disable this feature. 50968 alias -g '${1+"$@"}'='"$@"' 50969 setopt NO_GLOB_SUBST 50970 else 50971 case `(set -o) 2>/dev/null` in #( 50972 *posix*) : 50973 set -o posix ;; #( 50974 *) : 50975 ;; 50976 esac 50977 fi 50978 50979 50980 as_nl=' 50981 ' 50982 export as_nl 50983 # Printing a long string crashes Solaris 7 /usr/bin/printf. 50984 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 50985 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 50986 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 50987 # Prefer a ksh shell builtin over an external printf program on Solaris, 50988 # but without wasting forks for bash or zsh. 50989 if test -z "$BASH_VERSION$ZSH_VERSION" \ 50990 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 50991 as_echo='print -r --' 50992 as_echo_n='print -rn --' 50993 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50994 as_echo='printf %s\n' 50995 as_echo_n='printf %s' 50996 else 50997 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 50998 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 50999 as_echo_n='/usr/ucb/echo -n' 51000 else 51001 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 51002 as_echo_n_body='eval 51003 arg=$1; 51004 case $arg in #( 51005 *"$as_nl"*) 51006 expr "X$arg" : "X\\(.*\\)$as_nl"; 51007 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 51008 esac; 51009 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 51010 ' 51011 export as_echo_n_body 51012 as_echo_n='sh -c $as_echo_n_body as_echo' 51013 fi 51014 export as_echo_body 51015 as_echo='sh -c $as_echo_body as_echo' 51016 fi 51017 51018 # The user is always right. 51019 if test "${PATH_SEPARATOR+set}" != set; then 51020 PATH_SEPARATOR=: 51021 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 51022 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 51023 PATH_SEPARATOR=';' 51024 } 51025 fi 51026 51027 51028 # IFS 51029 # We need space, tab and new line, in precisely that order. Quoting is 51030 # there to prevent editors from complaining about space-tab. 51031 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 51032 # splitting by setting IFS to empty value.) 51033 IFS=" "" $as_nl" 51034 51035 # Find who we are. Look in the path if we contain no directory separator. 51036 as_myself= 51037 case $0 in #(( 51038 *[\\/]* ) as_myself=$0 ;; 51039 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 51040 for as_dir in $PATH 51041 do 51042 IFS=$as_save_IFS 51043 test -z "$as_dir" && as_dir=. 51044 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 51045 done 51046 IFS=$as_save_IFS 51047 51048 ;; 51049 esac 51050 # We did not find ourselves, most probably we were run as `sh COMMAND' 51051 # in which case we are not to be found in the path. 51052 if test "x$as_myself" = x; then 51053 as_myself=$0 51054 fi 51055 if test ! -f "$as_myself"; then 51056 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 51057 exit 1 51058 fi 51059 51060 # Unset variables that we do not need and which cause bugs (e.g. in 51061 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 51062 # suppresses any "Segmentation fault" message there. '((' could 51063 # trigger a bug in pdksh 5.2.14. 51064 for as_var in BASH_ENV ENV MAIL MAILPATH 51065 do eval test x\${$as_var+set} = xset \ 51066 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 51067 done 51068 PS1='$ ' 51069 PS2='> ' 51070 PS4='+ ' 51071 51072 # NLS nuisances. 51073 LC_ALL=C 51074 export LC_ALL 51075 LANGUAGE=C 51076 export LANGUAGE 51077 51078 # CDPATH. 51079 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 51080 51081 51082 # as_fn_error STATUS ERROR [LINENO LOG_FD] 51083 # ---------------------------------------- 51084 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 51085 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 51086 # script with STATUS, using 1 if that was 0. 51087 as_fn_error () 51088 { 51089 as_status=$1; test $as_status -eq 0 && as_status=1 51090 if test "$4"; then 51091 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 51092 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 51093 fi 51094 $as_echo "$as_me: error: $2" >&2 51095 as_fn_exit $as_status 51096 } # as_fn_error 51097 51098 51099 # as_fn_set_status STATUS 51100 # ----------------------- 51101 # Set $? to STATUS, without forking. 51102 as_fn_set_status () 51103 { 51104 return $1 51105 } # as_fn_set_status 51106 51107 # as_fn_exit STATUS 51108 # ----------------- 51109 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 51110 as_fn_exit () 51111 { 51112 set +e 51113 as_fn_set_status $1 51114 exit $1 51115 } # as_fn_exit 51116 51117 # as_fn_unset VAR 51118 # --------------- 51119 # Portably unset VAR. 51120 as_fn_unset () 51121 { 51122 { eval $1=; unset $1;} 51123 } 51124 as_unset=as_fn_unset 51125 # as_fn_append VAR VALUE 51126 # ---------------------- 51127 # Append the text in VALUE to the end of the definition contained in VAR. Take 51128 # advantage of any shell optimizations that allow amortized linear growth over 51129 # repeated appends, instead of the typical quadratic growth present in naive 51130 # implementations. 51131 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 51132 eval 'as_fn_append () 51133 { 51134 eval $1+=\$2 51135 }' 51136 else 51137 as_fn_append () 51138 { 51139 eval $1=\$$1\$2 51140 } 51141 fi # as_fn_append 51142 51143 # as_fn_arith ARG... 51144 # ------------------ 51145 # Perform arithmetic evaluation on the ARGs, and store the result in the 51146 # global $as_val. Take advantage of shells that can avoid forks. The arguments 51147 # must be portable across $(()) and expr. 51148 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 51149 eval 'as_fn_arith () 51150 { 51151 as_val=$(( $* )) 51152 }' 51153 else 51154 as_fn_arith () 51155 { 51156 as_val=`expr "$@" || test $? -eq 1` 51157 } 51158 fi # as_fn_arith 51159 51160 51161 if expr a : '\(a\)' >/dev/null 2>&1 && 51162 test "X`expr 00001 : '.*\(...\)'`" = X001; then 51163 as_expr=expr 51164 else 51165 as_expr=false 51166 fi 51167 51168 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 51169 as_basename=basename 51170 else 51171 as_basename=false 51172 fi 51173 51174 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 51175 as_dirname=dirname 51176 else 51177 as_dirname=false 51178 fi 51179 51180 as_me=`$as_basename -- "$0" || 51181 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 51182 X"$0" : 'X\(//\)$' \| \ 51183 X"$0" : 'X\(/\)' \| . 2>/dev/null || 51184 $as_echo X/"$0" | 51185 sed '/^.*\/\([^/][^/]*\)\/*$/{ 51186 s//\1/ 51187 q 51188 } 51189 /^X\/\(\/\/\)$/{ 51190 s//\1/ 51191 q 51192 } 51193 /^X\/\(\/\).*/{ 51194 s//\1/ 51195 q 51196 } 51197 s/.*/./; q'` 51198 51199 # Avoid depending upon Character Ranges. 51200 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 51201 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 51202 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 51203 as_cr_digits='0123456789' 51204 as_cr_alnum=$as_cr_Letters$as_cr_digits 51205 51206 ECHO_C= ECHO_N= ECHO_T= 51207 case `echo -n x` in #((((( 51208 -n*) 51209 case `echo 'xy\c'` in 51210 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 51211 xy) ECHO_C='\c';; 51212 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 51213 ECHO_T=' ';; 51214 esac;; 51215 *) 51216 ECHO_N='-n';; 51217 esac 51218 51219 rm -f conf$$ conf$$.exe conf$$.file 51220 if test -d conf$$.dir; then 51221 rm -f conf$$.dir/conf$$.file 51222 else 51223 rm -f conf$$.dir 51224 mkdir conf$$.dir 2>/dev/null 51225 fi 51226 if (echo >conf$$.file) 2>/dev/null; then 51227 if ln -s conf$$.file conf$$ 2>/dev/null; then 51228 as_ln_s='ln -s' 51229 # ... but there are two gotchas: 51230 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 51231 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 51232 # In both cases, we have to default to `cp -pR'. 51233 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 51234 as_ln_s='cp -pR' 51235 elif ln conf$$.file conf$$ 2>/dev/null; then 51236 as_ln_s=ln 51237 else 51238 as_ln_s='cp -pR' 51239 fi 51240 else 51241 as_ln_s='cp -pR' 51242 fi 51243 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 51244 rmdir conf$$.dir 2>/dev/null 51245 51246 51247 # as_fn_mkdir_p 51248 # ------------- 51249 # Create "$as_dir" as a directory, including parents if necessary. 51250 as_fn_mkdir_p () 51251 { 51252 51253 case $as_dir in #( 51254 -*) as_dir=./$as_dir;; 51255 esac 51256 test -d "$as_dir" || eval $as_mkdir_p || { 51257 as_dirs= 51258 while :; do 51259 case $as_dir in #( 51260 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 51261 *) as_qdir=$as_dir;; 51262 esac 51263 as_dirs="'$as_qdir' $as_dirs" 51264 as_dir=`$as_dirname -- "$as_dir" || 51265 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51266 X"$as_dir" : 'X\(//\)[^/]' \| \ 51267 X"$as_dir" : 'X\(//\)$' \| \ 51268 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 51269 $as_echo X"$as_dir" | 51270 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51271 s//\1/ 51272 q 51273 } 51274 /^X\(\/\/\)[^/].*/{ 51275 s//\1/ 51276 q 51277 } 51278 /^X\(\/\/\)$/{ 51279 s//\1/ 51280 q 51281 } 51282 /^X\(\/\).*/{ 51283 s//\1/ 51284 q 51285 } 51286 s/.*/./; q'` 51287 test -d "$as_dir" && break 51288 done 51289 test -z "$as_dirs" || eval "mkdir $as_dirs" 51290 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 51291 51292 51293 } # as_fn_mkdir_p 51294 if mkdir -p . 2>/dev/null; then 51295 as_mkdir_p='mkdir -p "$as_dir"' 51296 else 51297 test -d ./-p && rmdir ./-p 51298 as_mkdir_p=false 51299 fi 51300 51301 51302 # as_fn_executable_p FILE 51303 # ----------------------- 51304 # Test if FILE is an executable regular file. 51305 as_fn_executable_p () 51306 { 51307 test -f "$1" && test -x "$1" 51308 } # as_fn_executable_p 51309 as_test_x='test -x' 51310 as_executable_p=as_fn_executable_p 51311 51312 # Sed expression to map a string onto a valid CPP name. 51313 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 51314 51315 # Sed expression to map a string onto a valid variable name. 51316 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 51317 51318 51319 exec 6>&1 51320 ## ----------------------------------- ## 51321 ## Main body of $CONFIG_STATUS script. ## 51322 ## ----------------------------------- ## 51323 _ASEOF 51324 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 51325 51326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51327 # Save the log message, to keep $0 and so on meaningful, and to 51328 # report actual input values of CONFIG_FILES etc. instead of their 51329 # values after options handling. 51330 ac_log=" 51331 This file was extended by OpenJDK $as_me jdk9, which was 51332 generated by GNU Autoconf 2.69. Invocation command line was 51333 51334 CONFIG_FILES = $CONFIG_FILES 51335 CONFIG_HEADERS = $CONFIG_HEADERS 51336 CONFIG_LINKS = $CONFIG_LINKS 51337 CONFIG_COMMANDS = $CONFIG_COMMANDS 51338 $ $0 $@ 51339 51340 on `(hostname || uname -n) 2>/dev/null | sed 1q` 51341 " 51342 51343 _ACEOF 51344 51345 case $ac_config_files in *" 51346 "*) set x $ac_config_files; shift; ac_config_files=$*;; 51347 esac 51348 51349 51350 51351 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51352 # Files that config.status was made for. 51353 config_files="$ac_config_files" 51354 51355 _ACEOF 51356 51357 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51358 ac_cs_usage="\ 51359 \`$as_me' instantiates files and other configuration actions 51360 from templates according to the current configuration. Unless the files 51361 and actions are specified as TAGs, all are instantiated by default. 51362 51363 Usage: $0 [OPTION]... [TAG]... 51364 51365 -h, --help print this help, then exit 51366 -V, --version print version number and configuration settings, then exit 51367 --config print configuration, then exit 51368 -q, --quiet, --silent 51369 do not print progress messages 51370 -d, --debug don't remove temporary files 51371 --recheck update $as_me by reconfiguring in the same conditions 51372 --file=FILE[:TEMPLATE] 51373 instantiate the configuration file FILE 51374 51375 Configuration files: 51376 $config_files 51377 51378 Report bugs to <build-dev@openjdk.java.net>. 51379 OpenJDK home page: <http://openjdk.java.net>." 51380 51381 _ACEOF 51382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51383 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 51384 ac_cs_version="\\ 51385 OpenJDK config.status jdk9 51386 configured by $0, generated by GNU Autoconf 2.69, 51387 with options \\"\$ac_cs_config\\" 51388 51389 Copyright (C) 2012 Free Software Foundation, Inc. 51390 This config.status script is free software; the Free Software Foundation 51391 gives unlimited permission to copy, distribute and modify it." 51392 51393 ac_pwd='$ac_pwd' 51394 srcdir='$srcdir' 51395 AWK='$AWK' 51396 test -n "\$AWK" || AWK=awk 51397 _ACEOF 51398 51399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51400 # The default lists apply if the user does not specify any file. 51401 ac_need_defaults=: 51402 while test $# != 0 51403 do 51404 case $1 in 51405 --*=?*) 51406 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51407 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 51408 ac_shift=: 51409 ;; 51410 --*=) 51411 ac_option=`expr "X$1" : 'X\([^=]*\)='` 51412 ac_optarg= 51413 ac_shift=: 51414 ;; 51415 *) 51416 ac_option=$1 51417 ac_optarg=$2 51418 ac_shift=shift 51419 ;; 51420 esac 51421 51422 case $ac_option in 51423 # Handling of the options. 51424 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 51425 ac_cs_recheck=: ;; 51426 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 51427 $as_echo "$ac_cs_version"; exit ;; 51428 --config | --confi | --conf | --con | --co | --c ) 51429 $as_echo "$ac_cs_config"; exit ;; 51430 --debug | --debu | --deb | --de | --d | -d ) 51431 debug=: ;; 51432 --file | --fil | --fi | --f ) 51433 $ac_shift 51434 case $ac_optarg in 51435 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 51436 '') as_fn_error $? "missing file argument" ;; 51437 esac 51438 as_fn_append CONFIG_FILES " '$ac_optarg'" 51439 ac_need_defaults=false;; 51440 --he | --h | --help | --hel | -h ) 51441 $as_echo "$ac_cs_usage"; exit ;; 51442 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 51443 | -silent | --silent | --silen | --sile | --sil | --si | --s) 51444 ac_cs_silent=: ;; 51445 51446 # This is an error. 51447 -*) as_fn_error $? "unrecognized option: \`$1' 51448 Try \`$0 --help' for more information." ;; 51449 51450 *) as_fn_append ac_config_targets " $1" 51451 ac_need_defaults=false ;; 51452 51453 esac 51454 shift 51455 done 51456 51457 ac_configure_extra_args= 51458 51459 if $ac_cs_silent; then 51460 exec 6>/dev/null 51461 ac_configure_extra_args="$ac_configure_extra_args --silent" 51462 fi 51463 51464 _ACEOF 51465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51466 if \$ac_cs_recheck; then 51467 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 51468 shift 51469 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 51470 CONFIG_SHELL='$SHELL' 51471 export CONFIG_SHELL 51472 exec "\$@" 51473 fi 51474 51475 _ACEOF 51476 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51477 exec 5>>config.log 51478 { 51479 echo 51480 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 51481 ## Running $as_me. ## 51482 _ASBOX 51483 $as_echo "$ac_log" 51484 } >&5 51485 51486 _ACEOF 51487 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51488 _ACEOF 51489 51490 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51491 51492 # Handling of arguments. 51493 for ac_config_target in $ac_config_targets 51494 do 51495 case $ac_config_target in 51496 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 51497 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 51498 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 51499 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 51500 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 51501 51502 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 51503 esac 51504 done 51505 51506 51507 # If the user did not use the arguments to specify the items to instantiate, 51508 # then the envvar interface is used. Set only those that are not. 51509 # We use the long form for the default assignment because of an extremely 51510 # bizarre bug on SunOS 4.1.3. 51511 if $ac_need_defaults; then 51512 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 51513 fi 51514 51515 # Have a temporary directory for convenience. Make it in the build tree 51516 # simply because there is no reason against having it here, and in addition, 51517 # creating and moving files from /tmp can sometimes cause problems. 51518 # Hook for its removal unless debugging. 51519 # Note that there is a small window in which the directory will not be cleaned: 51520 # after its creation but before its name has been assigned to `$tmp'. 51521 $debug || 51522 { 51523 tmp= ac_tmp= 51524 trap 'exit_status=$? 51525 : "${ac_tmp:=$tmp}" 51526 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 51527 ' 0 51528 trap 'as_fn_exit 1' 1 2 13 15 51529 } 51530 # Create a (secure) tmp directory for tmp files. 51531 51532 { 51533 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 51534 test -d "$tmp" 51535 } || 51536 { 51537 tmp=./conf$$-$RANDOM 51538 (umask 077 && mkdir "$tmp") 51539 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 51540 ac_tmp=$tmp 51541 51542 # Set up the scripts for CONFIG_FILES section. 51543 # No need to generate them if there are no CONFIG_FILES. 51544 # This happens for instance with `./config.status config.h'. 51545 if test -n "$CONFIG_FILES"; then 51546 51547 51548 ac_cr=`echo X | tr X '\015'` 51549 # On cygwin, bash can eat \r inside `` if the user requested igncr. 51550 # But we know of no other shell where ac_cr would be empty at this 51551 # point, so we can use a bashism as a fallback. 51552 if test "x$ac_cr" = x; then 51553 eval ac_cr=\$\'\\r\' 51554 fi 51555 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 51556 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 51557 ac_cs_awk_cr='\\r' 51558 else 51559 ac_cs_awk_cr=$ac_cr 51560 fi 51561 51562 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 51563 _ACEOF 51564 51565 51566 { 51567 echo "cat >conf$$subs.awk <<_ACEOF" && 51568 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 51569 echo "_ACEOF" 51570 } >conf$$subs.sh || 51571 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51572 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 51573 ac_delim='%!_!# ' 51574 for ac_last_try in false false false false false :; do 51575 . ./conf$$subs.sh || 51576 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51577 51578 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 51579 if test $ac_delim_n = $ac_delim_num; then 51580 break 51581 elif $ac_last_try; then 51582 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 51583 else 51584 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 51585 fi 51586 done 51587 rm -f conf$$subs.sh 51588 51589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51590 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 51591 _ACEOF 51592 sed -n ' 51593 h 51594 s/^/S["/; s/!.*/"]=/ 51595 p 51596 g 51597 s/^[^!]*!// 51598 :repl 51599 t repl 51600 s/'"$ac_delim"'$// 51601 t delim 51602 :nl 51603 h 51604 s/\(.\{148\}\)..*/\1/ 51605 t more1 51606 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 51607 p 51608 n 51609 b repl 51610 :more1 51611 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51612 p 51613 g 51614 s/.\{148\}// 51615 t nl 51616 :delim 51617 h 51618 s/\(.\{148\}\)..*/\1/ 51619 t more2 51620 s/["\\]/\\&/g; s/^/"/; s/$/"/ 51621 p 51622 b 51623 :more2 51624 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 51625 p 51626 g 51627 s/.\{148\}// 51628 t delim 51629 ' <conf$$subs.awk | sed ' 51630 /^[^""]/{ 51631 N 51632 s/\n// 51633 } 51634 ' >>$CONFIG_STATUS || ac_write_fail=1 51635 rm -f conf$$subs.awk 51636 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51637 _ACAWK 51638 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 51639 for (key in S) S_is_set[key] = 1 51640 FS = "" 51641 51642 } 51643 { 51644 line = $ 0 51645 nfields = split(line, field, "@") 51646 substed = 0 51647 len = length(field[1]) 51648 for (i = 2; i < nfields; i++) { 51649 key = field[i] 51650 keylen = length(key) 51651 if (S_is_set[key]) { 51652 value = S[key] 51653 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 51654 len += length(value) + length(field[++i]) 51655 substed = 1 51656 } else 51657 len += 1 + keylen 51658 } 51659 51660 print line 51661 } 51662 51663 _ACAWK 51664 _ACEOF 51665 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51666 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 51667 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 51668 else 51669 cat 51670 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 51671 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 51672 _ACEOF 51673 51674 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 51675 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 51676 # trailing colons and then remove the whole line if VPATH becomes empty 51677 # (actually we leave an empty line to preserve line numbers). 51678 if test "x$srcdir" = x.; then 51679 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 51680 h 51681 s/// 51682 s/^/:/ 51683 s/[ ]*$/:/ 51684 s/:\$(srcdir):/:/g 51685 s/:\${srcdir}:/:/g 51686 s/:@srcdir@:/:/g 51687 s/^:*// 51688 s/:*$// 51689 x 51690 s/\(=[ ]*\).*/\1/ 51691 G 51692 s/\n// 51693 s/^[^=]*=[ ]*$// 51694 }' 51695 fi 51696 51697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51698 fi # test -n "$CONFIG_FILES" 51699 51700 51701 eval set X " :F $CONFIG_FILES " 51702 shift 51703 for ac_tag 51704 do 51705 case $ac_tag in 51706 :[FHLC]) ac_mode=$ac_tag; continue;; 51707 esac 51708 case $ac_mode$ac_tag in 51709 :[FHL]*:*);; 51710 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 51711 :[FH]-) ac_tag=-:-;; 51712 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 51713 esac 51714 ac_save_IFS=$IFS 51715 IFS=: 51716 set x $ac_tag 51717 IFS=$ac_save_IFS 51718 shift 51719 ac_file=$1 51720 shift 51721 51722 case $ac_mode in 51723 :L) ac_source=$1;; 51724 :[FH]) 51725 ac_file_inputs= 51726 for ac_f 51727 do 51728 case $ac_f in 51729 -) ac_f="$ac_tmp/stdin";; 51730 *) # Look for the file first in the build tree, then in the source tree 51731 # (if the path is not absolute). The absolute path cannot be DOS-style, 51732 # because $ac_f cannot contain `:'. 51733 test -f "$ac_f" || 51734 case $ac_f in 51735 [\\/$]*) false;; 51736 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 51737 esac || 51738 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 51739 esac 51740 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 51741 as_fn_append ac_file_inputs " '$ac_f'" 51742 done 51743 51744 # Let's still pretend it is `configure' which instantiates (i.e., don't 51745 # use $as_me), people would be surprised to read: 51746 # /* config.h. Generated by config.status. */ 51747 configure_input='Generated from '` 51748 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 51749 `' by configure.' 51750 if test x"$ac_file" != x-; then 51751 configure_input="$ac_file. $configure_input" 51752 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 51753 $as_echo "$as_me: creating $ac_file" >&6;} 51754 fi 51755 # Neutralize special characters interpreted by sed in replacement strings. 51756 case $configure_input in #( 51757 *\&* | *\|* | *\\* ) 51758 ac_sed_conf_input=`$as_echo "$configure_input" | 51759 sed 's/[\\\\&|]/\\\\&/g'`;; #( 51760 *) ac_sed_conf_input=$configure_input;; 51761 esac 51762 51763 case $ac_tag in 51764 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 51765 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 51766 esac 51767 ;; 51768 esac 51769 51770 ac_dir=`$as_dirname -- "$ac_file" || 51771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 51772 X"$ac_file" : 'X\(//\)[^/]' \| \ 51773 X"$ac_file" : 'X\(//\)$' \| \ 51774 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 51775 $as_echo X"$ac_file" | 51776 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 51777 s//\1/ 51778 q 51779 } 51780 /^X\(\/\/\)[^/].*/{ 51781 s//\1/ 51782 q 51783 } 51784 /^X\(\/\/\)$/{ 51785 s//\1/ 51786 q 51787 } 51788 /^X\(\/\).*/{ 51789 s//\1/ 51790 q 51791 } 51792 s/.*/./; q'` 51793 as_dir="$ac_dir"; as_fn_mkdir_p 51794 ac_builddir=. 51795 51796 case "$ac_dir" in 51797 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 51798 *) 51799 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 51800 # A ".." for each directory in $ac_dir_suffix. 51801 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 51802 case $ac_top_builddir_sub in 51803 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 51804 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 51805 esac ;; 51806 esac 51807 ac_abs_top_builddir=$ac_pwd 51808 ac_abs_builddir=$ac_pwd$ac_dir_suffix 51809 # for backward compatibility: 51810 ac_top_builddir=$ac_top_build_prefix 51811 51812 case $srcdir in 51813 .) # We are building in place. 51814 ac_srcdir=. 51815 ac_top_srcdir=$ac_top_builddir_sub 51816 ac_abs_top_srcdir=$ac_pwd ;; 51817 [\\/]* | ?:[\\/]* ) # Absolute name. 51818 ac_srcdir=$srcdir$ac_dir_suffix; 51819 ac_top_srcdir=$srcdir 51820 ac_abs_top_srcdir=$srcdir ;; 51821 *) # Relative name. 51822 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 51823 ac_top_srcdir=$ac_top_build_prefix$srcdir 51824 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 51825 esac 51826 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 51827 51828 51829 case $ac_mode in 51830 :F) 51831 # 51832 # CONFIG_FILE 51833 # 51834 51835 _ACEOF 51836 51837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51838 # If the template does not know about datarootdir, expand it. 51839 # FIXME: This hack should be removed a few years after 2.60. 51840 ac_datarootdir_hack=; ac_datarootdir_seen= 51841 ac_sed_dataroot=' 51842 /datarootdir/ { 51843 p 51844 q 51845 } 51846 /@datadir@/p 51847 /@docdir@/p 51848 /@infodir@/p 51849 /@localedir@/p 51850 /@mandir@/p' 51851 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 51852 *datarootdir*) ac_datarootdir_seen=yes;; 51853 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 51854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 51855 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 51856 _ACEOF 51857 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51858 ac_datarootdir_hack=' 51859 s&@datadir@&$datadir&g 51860 s&@docdir@&$docdir&g 51861 s&@infodir@&$infodir&g 51862 s&@localedir@&$localedir&g 51863 s&@mandir@&$mandir&g 51864 s&\\\${datarootdir}&$datarootdir&g' ;; 51865 esac 51866 _ACEOF 51867 51868 # Neutralize VPATH when `$srcdir' = `.'. 51869 # Shell code in configure.ac might set extrasub. 51870 # FIXME: do we really want to maintain this feature? 51871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 51872 ac_sed_extra="$ac_vpsub 51873 $extrasub 51874 _ACEOF 51875 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 51876 :t 51877 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 51878 s|@configure_input@|$ac_sed_conf_input|;t t 51879 s&@top_builddir@&$ac_top_builddir_sub&;t t 51880 s&@top_build_prefix@&$ac_top_build_prefix&;t t 51881 s&@srcdir@&$ac_srcdir&;t t 51882 s&@abs_srcdir@&$ac_abs_srcdir&;t t 51883 s&@top_srcdir@&$ac_top_srcdir&;t t 51884 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 51885 s&@builddir@&$ac_builddir&;t t 51886 s&@abs_builddir@&$ac_abs_builddir&;t t 51887 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 51888 $ac_datarootdir_hack 51889 " 51890 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 51891 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51892 51893 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 51894 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 51895 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 51896 "$ac_tmp/out"`; test -z "$ac_out"; } && 51897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 51898 which seems to be undefined. Please make sure it is defined" >&5 51899 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 51900 which seems to be undefined. Please make sure it is defined" >&2;} 51901 51902 rm -f "$ac_tmp/stdin" 51903 case $ac_file in 51904 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 51905 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 51906 esac \ 51907 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 51908 ;; 51909 51910 51911 51912 esac 51913 51914 done # for ac_tag 51915 51916 51917 as_fn_exit 0 51918 _ACEOF 51919 ac_clean_files=$ac_clean_files_save 51920 51921 test $ac_write_fail = 0 || 51922 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 51923 51924 51925 # configure is writing to config.log, and then calls config.status. 51926 # config.status does its own redirection, appending to config.log. 51927 # Unfortunately, on DOS this fails, as config.log is still kept open 51928 # by configure, so config.status won't be able to write to it; its 51929 # output is simply discarded. So we exec the FD to /dev/null, 51930 # effectively closing config.log, so it can be properly (re)opened and 51931 # appended to by config.status. When coming back to configure, we 51932 # need to make the FD available again. 51933 if test "$no_create" != yes; then 51934 ac_cs_success=: 51935 ac_config_status_args= 51936 test "$silent" = yes && 51937 ac_config_status_args="$ac_config_status_args --quiet" 51938 exec 5>/dev/null 51939 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 51940 exec 5>>config.log 51941 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 51942 # would make configure fail if this is the last instruction. 51943 $ac_cs_success || as_fn_exit 1 51944 fi 51945 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 51946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 51947 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 51948 fi 51949 51950 51951 # Try to move the config.log file to the output directory. 51952 if test -e ./config.log; then 51953 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 51954 fi 51955 51956 # Make the compare script executable 51957 $CHMOD +x $OUTPUT_ROOT/compare.sh 51958 51959 # Finally output some useful information to the user 51960 51961 # Finally output some useful information to the user 51962 51963 printf "\n" 51964 printf "====================================================\n" 51965 if test "x$no_create" != "xyes"; then 51966 if test "x$IS_RECONFIGURE" != "xyes"; then 51967 printf "A new configuration has been successfully created in\n%s\n" "$OUTPUT_ROOT" 51968 else 51969 printf "The existing configuration has been successfully updated in\n%s\n" "$OUTPUT_ROOT" 51970 fi 51971 else 51972 if test "x$IS_RECONFIGURE" != "xyes"; then 51973 printf "A configuration has been successfully checked but not created\n" 51974 else 51975 printf "The existing configuration has been successfully checked in\n%s\n" "$OUTPUT_ROOT" 51976 fi 51977 fi 51978 if test "x$CONFIGURE_COMMAND_LINE" != x; then 51979 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 51980 else 51981 printf "using default settings.\n" 51982 fi 51983 51984 printf "\n" 51985 printf "Configuration summary:\n" 51986 printf "* Debug level: $DEBUG_LEVEL\n" 51987 printf "* HS debug level: $HOTSPOT_DEBUG_LEVEL\n" 51988 printf "* JDK variant: $JDK_VARIANT\n" 51989 printf "* JVM variants: $with_jvm_variants\n" 51990 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 51991 51992 printf "\n" 51993 printf "Tools summary:\n" 51994 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 51995 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 51996 fi 51997 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 51998 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 51999 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 52000 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 52001 52002 printf "\n" 52003 printf "Build performance summary:\n" 52004 printf "* Cores to use: $JOBS\n" 52005 printf "* Memory limit: $MEMORY_SIZE MB\n" 52006 if test "x$CCACHE_STATUS" != "x"; then 52007 printf "* ccache status: $CCACHE_STATUS\n" 52008 fi 52009 printf "\n" 52010 52011 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 52012 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 52013 printf "will result in longer build times.\n" 52014 printf "\n" 52015 fi 52016 52017 if test "x$FOUND_ALT_VARIABLES" != "x"; then 52018 printf "WARNING: You have old-style ALT_ environment variables set.\n" 52019 printf "These are not respected, and will be ignored. It is recommended\n" 52020 printf "that you clean your environment. The following variables are set:\n" 52021 printf "$FOUND_ALT_VARIABLES\n" 52022 printf "\n" 52023 fi 52024 52025 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 52026 printf "WARNING: Your build output directory is not on a local disk.\n" 52027 printf "This will severely degrade build performance!\n" 52028 printf "It is recommended that you create an output directory on a local disk,\n" 52029 printf "and run the configure script again from that directory.\n" 52030 printf "\n" 52031 fi 52032 52033 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 52034 printf "WARNING: The result of this configuration has overridden an older\n" 52035 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 52036 printf "proper build. Failure to do so might result in strange build problems.\n" 52037 printf "\n" 52038 fi 52039 52040 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 52041 printf "WARNING: The result of this configuration was not saved.\n" 52042 printf "You should run without '--no-create | -n' to create the configuration.\n" 52043 printf "\n" 52044 fi 52045 52046 52047 52048 if test -e "$OUTPUT_ROOT/config.log"; then 52049 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" > /dev/null 2>&1 52050 if test $? -eq 0; then 52051 printf "The following warnings were produced. Repeated here for convenience:\n" 52052 # We must quote sed expression (using []) to stop m4 from eating the []. 52053 $GREP '^configure:.*: WARNING:' "$OUTPUT_ROOT/config.log" | $SED -e 's/^configure:[0-9]*: //' 52054 printf "\n" 52055 fi 52056 fi 52057 52058