1 #! /bin/sh 2 # Guess values for system-dependent variables and create Makefiles. 3 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8. 4 # 5 # Report bugs to <build-dev@openjdk.java.net>. 6 # 7 # 8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9 # 10 # 11 # This configure script is free software; the Free Software Foundation 12 # gives unlimited permission to copy, distribute and modify it. 13 ## -------------------- ## 14 ## M4sh Initialization. ## 15 ## -------------------- ## 16 17 # Be more Bourne compatible 18 DUALCASE=1; export DUALCASE # for MKS sh 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26 else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32 esac 33 fi 34 35 36 as_nl=' 37 ' 38 export as_nl 39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43 # Prefer a ksh shell builtin over an external printf program on Solaris, 44 # but without wasting forks for bash or zsh. 45 if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52 else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72 fi 73 74 # The user is always right. 75 if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81 fi 82 83 84 # IFS 85 # We need space, tab and new line, in precisely that order. Quoting is 86 # there to prevent editors from complaining about space-tab. 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 88 # splitting by setting IFS to empty value.) 89 IFS=" "" $as_nl" 90 91 # Find who we are. Look in the path if we contain no directory separator. 92 as_myself= 93 case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96 for as_dir in $PATH 97 do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102 IFS=$as_save_IFS 103 104 ;; 105 esac 106 # We did not find ourselves, most probably we were run as `sh COMMAND' 107 # in which case we are not to be found in the path. 108 if test "x$as_myself" = x; then 109 as_myself=$0 110 fi 111 if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114 fi 115 116 # Unset variables that we do not need and which cause bugs (e.g. in 117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118 # suppresses any "Segmentation fault" message there. '((' could 119 # trigger a bug in pdksh 5.2.14. 120 for as_var in BASH_ENV ENV MAIL MAILPATH 121 do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123 done 124 PS1='$ ' 125 PS2='> ' 126 PS4='+ ' 127 128 # NLS nuisances. 129 LC_ALL=C 130 export LC_ALL 131 LANGUAGE=C 132 export LANGUAGE 133 134 # CDPATH. 135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137 # Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142 # neutralization value for shells without unset; and this also 143 # works around shells that cannot unset nonexistent variables. 144 # Preserve -v and -x to the replacement shell. 145 BASH_ENV=/dev/null 146 ENV=/dev/null 147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148 case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153 esac 154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155 # Admittedly, this is quite paranoid, since all the known shells bail 156 # out after a failed `exec'. 157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158 as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162 if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170 else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176 esac 177 fi 178 " 179 as_required="as_fn_return () { (exit \$1); } 180 as_fn_success () { as_fn_return 0; } 181 as_fn_failure () { as_fn_return 1; } 182 as_fn_ret_success () { return 0; } 183 as_fn_ret_failure () { return 1; } 184 185 exitcode=0 186 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192 else 193 exitcode=1; echo positional parameters were not saved. 194 fi 195 test x\$exitcode = x0 || exit 1 196 test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 test \$(( 1 + 1 )) = 2 || exit 1" 202 if (eval "$as_required") 2>/dev/null; then : 203 as_have_required=yes 204 else 205 as_have_required=no 206 fi 207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 208 209 else 210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 211 as_found=false 212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 213 do 214 IFS=$as_save_IFS 215 test -z "$as_dir" && as_dir=. 216 as_found=: 217 case $as_dir in #( 218 /*) 219 for as_base in sh bash ksh sh5; do 220 # Try only shells that exist, to save several forks. 221 as_shell=$as_dir/$as_base 222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 224 CONFIG_SHELL=$as_shell as_have_required=yes 225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 226 break 2 227 fi 228 fi 229 done;; 230 esac 231 as_found=false 232 done 233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 235 CONFIG_SHELL=$SHELL as_have_required=yes 236 fi; } 237 IFS=$as_save_IFS 238 239 240 if test "x$CONFIG_SHELL" != x; then : 241 export CONFIG_SHELL 242 # We cannot yet assume a decent shell, so we have to provide a 243 # neutralization value for shells without unset; and this also 244 # works around shells that cannot unset nonexistent variables. 245 # Preserve -v and -x to the replacement shell. 246 BASH_ENV=/dev/null 247 ENV=/dev/null 248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 249 case $- in # (((( 250 *v*x* | *x*v* ) as_opts=-vx ;; 251 *v* ) as_opts=-v ;; 252 *x* ) as_opts=-x ;; 253 * ) as_opts= ;; 254 esac 255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 256 # Admittedly, this is quite paranoid, since all the known shells bail 257 # out after a failed `exec'. 258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 259 exit 255 260 fi 261 262 if test x$as_have_required = xno; then : 263 $as_echo "$0: This script requires a shell more modern than all" 264 $as_echo "$0: the shells that I found on your system." 265 if test x${ZSH_VERSION+set} = xset ; then 266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 267 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 268 else 269 $as_echo "$0: Please tell bug-autoconf@gnu.org and 270 $0: build-dev@openjdk.java.net about your system, including 271 $0: any error possibly output before this message. Then 272 $0: install a modern shell, or manually run the script 273 $0: under such a shell if you do have one." 274 fi 275 exit 1 276 fi 277 fi 278 fi 279 SHELL=${CONFIG_SHELL-/bin/sh} 280 export SHELL 281 # Unset more variables known to interfere with behavior of common tools. 282 CLICOLOR_FORCE= GREP_OPTIONS= 283 unset CLICOLOR_FORCE GREP_OPTIONS 284 285 ## --------------------- ## 286 ## M4sh Shell Functions. ## 287 ## --------------------- ## 288 # as_fn_unset VAR 289 # --------------- 290 # Portably unset VAR. 291 as_fn_unset () 292 { 293 { eval $1=; unset $1;} 294 } 295 as_unset=as_fn_unset 296 297 # as_fn_set_status STATUS 298 # ----------------------- 299 # Set $? to STATUS, without forking. 300 as_fn_set_status () 301 { 302 return $1 303 } # as_fn_set_status 304 305 # as_fn_exit STATUS 306 # ----------------- 307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 308 as_fn_exit () 309 { 310 set +e 311 as_fn_set_status $1 312 exit $1 313 } # as_fn_exit 314 315 # as_fn_mkdir_p 316 # ------------- 317 # Create "$as_dir" as a directory, including parents if necessary. 318 as_fn_mkdir_p () 319 { 320 321 case $as_dir in #( 322 -*) as_dir=./$as_dir;; 323 esac 324 test -d "$as_dir" || eval $as_mkdir_p || { 325 as_dirs= 326 while :; do 327 case $as_dir in #( 328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 329 *) as_qdir=$as_dir;; 330 esac 331 as_dirs="'$as_qdir' $as_dirs" 332 as_dir=`$as_dirname -- "$as_dir" || 333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 334 X"$as_dir" : 'X\(//\)[^/]' \| \ 335 X"$as_dir" : 'X\(//\)$' \| \ 336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 337 $as_echo X"$as_dir" | 338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 339 s//\1/ 340 q 341 } 342 /^X\(\/\/\)[^/].*/{ 343 s//\1/ 344 q 345 } 346 /^X\(\/\/\)$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\).*/{ 351 s//\1/ 352 q 353 } 354 s/.*/./; q'` 355 test -d "$as_dir" && break 356 done 357 test -z "$as_dirs" || eval "mkdir $as_dirs" 358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 359 360 361 } # as_fn_mkdir_p 362 363 # as_fn_executable_p FILE 364 # ----------------------- 365 # Test if FILE is an executable regular file. 366 as_fn_executable_p () 367 { 368 test -f "$1" && test -x "$1" 369 } # as_fn_executable_p 370 # as_fn_append VAR VALUE 371 # ---------------------- 372 # Append the text in VALUE to the end of the definition contained in VAR. Take 373 # advantage of any shell optimizations that allow amortized linear growth over 374 # repeated appends, instead of the typical quadratic growth present in naive 375 # implementations. 376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 377 eval 'as_fn_append () 378 { 379 eval $1+=\$2 380 }' 381 else 382 as_fn_append () 383 { 384 eval $1=\$$1\$2 385 } 386 fi # as_fn_append 387 388 # as_fn_arith ARG... 389 # ------------------ 390 # Perform arithmetic evaluation on the ARGs, and store the result in the 391 # global $as_val. Take advantage of shells that can avoid forks. The arguments 392 # must be portable across $(()) and expr. 393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 394 eval 'as_fn_arith () 395 { 396 as_val=$(( $* )) 397 }' 398 else 399 as_fn_arith () 400 { 401 as_val=`expr "$@" || test $? -eq 1` 402 } 403 fi # as_fn_arith 404 405 406 # as_fn_error STATUS ERROR [LINENO LOG_FD] 407 # ---------------------------------------- 408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 410 # script with STATUS, using 1 if that was 0. 411 as_fn_error () 412 { 413 as_status=$1; test $as_status -eq 0 && as_status=1 414 if test "$4"; then 415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 417 fi 418 $as_echo "$as_me: error: $2" >&2 419 as_fn_exit $as_status 420 } # as_fn_error 421 422 if expr a : '\(a\)' >/dev/null 2>&1 && 423 test "X`expr 00001 : '.*\(...\)'`" = X001; then 424 as_expr=expr 425 else 426 as_expr=false 427 fi 428 429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 430 as_basename=basename 431 else 432 as_basename=false 433 fi 434 435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 436 as_dirname=dirname 437 else 438 as_dirname=false 439 fi 440 441 as_me=`$as_basename -- "$0" || 442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 443 X"$0" : 'X\(//\)$' \| \ 444 X"$0" : 'X\(/\)' \| . 2>/dev/null || 445 $as_echo X/"$0" | 446 sed '/^.*\/\([^/][^/]*\)\/*$/{ 447 s//\1/ 448 q 449 } 450 /^X\/\(\/\/\)$/{ 451 s//\1/ 452 q 453 } 454 /^X\/\(\/\).*/{ 455 s//\1/ 456 q 457 } 458 s/.*/./; q'` 459 460 # Avoid depending upon Character Ranges. 461 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 464 as_cr_digits='0123456789' 465 as_cr_alnum=$as_cr_Letters$as_cr_digits 466 467 468 as_lineno_1=$LINENO as_lineno_1a=$LINENO 469 as_lineno_2=$LINENO as_lineno_2a=$LINENO 470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 473 sed -n ' 474 p 475 /[$]LINENO/= 476 ' <$as_myself | 477 sed ' 478 s/[$]LINENO.*/&-/ 479 t lineno 480 b 481 :lineno 482 N 483 :loop 484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 485 t loop 486 s/-\n.*// 487 ' >$as_me.lineno && 488 chmod +x "$as_me.lineno" || 489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 490 491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 492 # already done that, so ensure we don't try to do so again and fall 493 # in an infinite loop. This has already happened in practice. 494 _as_can_reexec=no; export _as_can_reexec 495 # Don't try to exec as it changes $[0], causing all sort of problems 496 # (the dirname of $[0] is not the place where we might find the 497 # original and so on. Autoconf is especially sensitive to this). 498 . "./$as_me.lineno" 499 # Exit status is that of the last command. 500 exit 501 } 502 503 ECHO_C= ECHO_N= ECHO_T= 504 case `echo -n x` in #((((( 505 -n*) 506 case `echo 'xy\c'` in 507 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 508 xy) ECHO_C='\c';; 509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 510 ECHO_T=' ';; 511 esac;; 512 *) 513 ECHO_N='-n';; 514 esac 515 516 rm -f conf$$ conf$$.exe conf$$.file 517 if test -d conf$$.dir; then 518 rm -f conf$$.dir/conf$$.file 519 else 520 rm -f conf$$.dir 521 mkdir conf$$.dir 2>/dev/null 522 fi 523 if (echo >conf$$.file) 2>/dev/null; then 524 if ln -s conf$$.file conf$$ 2>/dev/null; then 525 as_ln_s='ln -s' 526 # ... but there are two gotchas: 527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 529 # In both cases, we have to default to `cp -pR'. 530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 531 as_ln_s='cp -pR' 532 elif ln conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s=ln 534 else 535 as_ln_s='cp -pR' 536 fi 537 else 538 as_ln_s='cp -pR' 539 fi 540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 541 rmdir conf$$.dir 2>/dev/null 542 543 if mkdir -p . 2>/dev/null; then 544 as_mkdir_p='mkdir -p "$as_dir"' 545 else 546 test -d ./-p && rmdir ./-p 547 as_mkdir_p=false 548 fi 549 550 as_test_x='test -x' 551 as_executable_p=as_fn_executable_p 552 553 # Sed expression to map a string onto a valid CPP name. 554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 555 556 # Sed expression to map a string onto a valid variable name. 557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 558 559 560 test -n "$DJDIR" || exec 7<&0 </dev/null 561 exec 6>&1 562 563 # Name of the host. 564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 565 # so uname gets run too. 566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 567 568 # 569 # Initializations. 570 # 571 ac_default_prefix=/usr/local 572 ac_clean_files= 573 ac_config_libobj_dir=. 574 LIBOBJS= 575 cross_compiling=no 576 subdirs= 577 MFLAGS= 578 MAKEFLAGS= 579 580 # Identity of this package. 581 PACKAGE_NAME='OpenJDK' 582 PACKAGE_TARNAME='openjdk' 583 PACKAGE_VERSION='jdk8' 584 PACKAGE_STRING='OpenJDK jdk8' 585 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 586 PACKAGE_URL='http://openjdk.java.net' 587 588 # Factoring default headers for most tests. 589 ac_includes_default="\ 590 #include <stdio.h> 591 #ifdef HAVE_SYS_TYPES_H 592 # include <sys/types.h> 593 #endif 594 #ifdef HAVE_SYS_STAT_H 595 # include <sys/stat.h> 596 #endif 597 #ifdef STDC_HEADERS 598 # include <stdlib.h> 599 # include <stddef.h> 600 #else 601 # ifdef HAVE_STDLIB_H 602 # include <stdlib.h> 603 # endif 604 #endif 605 #ifdef HAVE_STRING_H 606 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 607 # include <memory.h> 608 # endif 609 # include <string.h> 610 #endif 611 #ifdef HAVE_STRINGS_H 612 # include <strings.h> 613 #endif 614 #ifdef HAVE_INTTYPES_H 615 # include <inttypes.h> 616 #endif 617 #ifdef HAVE_STDINT_H 618 # include <stdint.h> 619 #endif 620 #ifdef HAVE_UNISTD_H 621 # include <unistd.h> 622 #endif" 623 624 ac_subst_vars='LTLIBOBJS 625 LIBOBJS 626 CCACHE 627 USE_PRECOMPILED_HEADER 628 SJAVAC_SERVER_DIR 629 ENABLE_SJAVAC 630 SJAVAC_SERVER_JAVA 631 JOBS 632 MEMORY_SIZE 633 NUM_CORES 634 ENABLE_INTREE_EC 635 SALIB_NAME 636 HOTSPOT_MAKE_ARGS 637 LIBCXX 638 LLVM_LIBS 639 LLVM_LDFLAGS 640 LLVM_CFLAGS 641 LLVM_CONFIG 642 LIBFFI_LIBS 643 LIBFFI_CFLAGS 644 STATIC_CXX_SETTING 645 LIBDL 646 LIBM 647 LIBZIP_CAN_USE_MMAP 648 USE_EXTERNAL_LIBZ 649 USE_EXTERNAL_LIBPNG 650 PNG_LIBS 651 PNG_CFLAGS 652 USE_EXTERNAL_LIBGIF 653 USE_EXTERNAL_LIBJPEG 654 ALSA_LIBS 655 ALSA_CFLAGS 656 FREETYPE_BUNDLE_LIB_PATH 657 FREETYPE_LIBS 658 FREETYPE_CFLAGS 659 CUPS_CFLAGS 660 OPENWIN_HOME 661 X_EXTRA_LIBS 662 X_LIBS 663 X_PRE_LIBS 664 X_CFLAGS 665 XMKMF 666 FIXPATH 667 CXXFLAGS_DEBUG_SYMBOLS 668 CFLAGS_DEBUG_SYMBOLS 669 ZIP_DEBUGINFO_FILES 670 ENABLE_DEBUG_SYMBOLS 671 USING_BROKEN_SUSE_LD 672 COMPILER_SUPPORTS_TARGET_BITS_FLAG 673 ZERO_ARCHFLAG 674 LDFLAGS_CXX_JDK 675 LDFLAGS_JDKEXE_SUFFIX 676 LDFLAGS_JDKLIB_SUFFIX 677 LDFLAGS_JDKEXE 678 LDFLAGS_JDKLIB 679 CXXFLAGS_JDKEXE 680 CXXFLAGS_JDKLIB 681 CFLAGS_JDKEXE 682 CFLAGS_JDKLIB 683 MACOSX_VERSION_MIN 684 PACKAGE_PATH 685 LEGACY_EXTRA_LDFLAGS 686 LEGACY_EXTRA_CXXFLAGS 687 LEGACY_EXTRA_CFLAGS 688 CXX_FLAG_DEPS 689 C_FLAG_DEPS 690 CXX_O_FLAG_NONE 691 CXX_O_FLAG_NORM 692 CXX_O_FLAG_HI 693 CXX_O_FLAG_HIGHEST 694 C_O_FLAG_NONE 695 C_O_FLAG_NORM 696 C_O_FLAG_HI 697 C_O_FLAG_HIGHEST 698 POST_MCS_CMD 699 POST_STRIP_CMD 700 SET_EXECUTABLE_ORIGIN 701 SET_SHARED_LIBRARY_ORIGIN 702 CXX_FLAG_REORDER 703 C_FLAG_REORDER 704 SET_SHARED_LIBRARY_MAPFILE 705 SET_SHARED_LIBRARY_NAME 706 SHARED_LIBRARY_FLAGS 707 EXE_SUFFIX 708 STATIC_LIBRARY_SUFFIX 709 SHARED_LIBRARY_SUFFIX 710 LIBRARY_PREFIX 711 STATIC_LIBRARY 712 SHARED_LIBRARY 713 OBJ_SUFFIX 714 COMPILER_NAME 715 JT_HOME 716 JTREGEXE 717 LIPO 718 ac_ct_OBJDUMP 719 OBJDUMP 720 ac_ct_OBJCOPY 721 OBJCOPY 722 ac_ct_STRIP 723 ac_ct_NM 724 MCS 725 STRIP 726 GNM 727 NM 728 AS 729 CXXCPP 730 CPP 731 COMPILER_TYPE 732 RC_FLAGS 733 DUMPBIN 734 WINAR 735 HOTSPOT_RC 736 HOTSPOT_MT 737 RC 738 MT 739 WINLD 740 HOTSPOT_LD 741 HOTSPOT_CXX 742 ARFLAGS 743 ac_ct_AR 744 AR 745 LDEXECXX 746 LDCXX 747 LDEXE 748 LD 749 ac_ct_OBJC 750 OBJCFLAGS 751 OBJC 752 ac_ct_CXX 753 CXXFLAGS 754 CXX 755 ac_ct_PROPER_COMPILER_CXX 756 PROPER_COMPILER_CXX 757 TOOLS_DIR_CXX 758 POTENTIAL_CXX 759 COMPILER_TARGET_BITS_FLAG 760 OBJEXT 761 EXEEXT 762 ac_ct_CC 763 CPPFLAGS 764 LDFLAGS 765 CFLAGS 766 CC 767 ac_ct_PROPER_COMPILER_CC 768 PROPER_COMPILER_CC 769 TOOLS_DIR_CC 770 POTENTIAL_CC 771 BUILD_LD 772 BUILD_CXX 773 BUILD_CC 774 MSVCR_DLL 775 VS_PATH 776 VS_LIB 777 VS_INCLUDE 778 CYGWIN_LINK 779 AR_OUT_OPTION 780 LD_OUT_OPTION 781 EXE_OUT_OPTION 782 CC_OUT_OPTION 783 BUILD_HOTSPOT 784 HOTSPOT_DIST 785 BUILD_OUTPUT 786 OVERRIDE_SRC_ROOT 787 ADD_SRC_ROOT 788 JDK_TOPDIR 789 NASHORN_TOPDIR 790 HOTSPOT_TOPDIR 791 JAXWS_TOPDIR 792 JAXP_TOPDIR 793 CORBA_TOPDIR 794 LANGTOOLS_TOPDIR 795 BOOT_JDK_JVMARGS 796 JAVAC_FLAGS 797 BOOT_JDK_SOURCETARGET 798 JARSIGNER 799 NATIVE2ASCII 800 JAR 801 JAVAH 802 JAVAC 803 JAVA 804 BOOT_JDK 805 BOOT_TOOLSJAR 806 BOOT_RTJAR 807 JAVA_CHECK 808 JAVAC_CHECK 809 COOKED_BUILD_NUMBER 810 JDK_VERSION 811 COPYRIGHT_YEAR 812 MACOSX_BUNDLE_ID_BASE 813 MACOSX_BUNDLE_NAME_BASE 814 COMPANY_NAME 815 JDK_RC_PLATFORM_NAME 816 PRODUCT_SUFFIX 817 PRODUCT_NAME 818 LAUNCHER_NAME 819 MILESTONE 820 JDK_BUILD_NUMBER 821 JDK_UPDATE_VERSION 822 JDK_MICRO_VERSION 823 JDK_MINOR_VERSION 824 JDK_MAJOR_VERSION 825 USER_RELEASE_SUFFIX 826 COMPRESS_JARS 827 RMICONNECTOR_IIOP 828 UNLIMITED_CRYPTO 829 CACERTS_FILE 830 TEST_IN_BUILD 831 BUILD_HEADLESS 832 SUPPORT_HEADFUL 833 SUPPORT_HEADLESS 834 BDEPS_FTP 835 BDEPS_UNZIP 836 OS_VERSION_MICRO 837 OS_VERSION_MINOR 838 OS_VERSION_MAJOR 839 PKG_CONFIG 840 CODESIGN 841 XATTR 842 DSYMUTIL 843 IS_GNU_TIME 844 TIME 845 STAT 846 HG 847 READELF 848 OTOOL 849 LDD 850 ZIP 851 UNZIP 852 FIND_DELETE 853 MAKE 854 CHECK_TOOLSDIR_MAKE 855 CHECK_TOOLSDIR_GMAKE 856 CHECK_MAKE 857 CHECK_GMAKE 858 PKGHANDLER 859 OUTPUT_ROOT 860 CONF_NAME 861 SPEC 862 BUILD_VARIANT_RELEASE 863 DEBUG_CLASSFILES 864 FASTDEBUG 865 VARIANT 866 DEBUG_LEVEL 867 MACOSX_UNIVERSAL 868 INCLUDE_SA 869 JVM_VARIANT_CORE 870 JVM_VARIANT_ZEROSHARK 871 JVM_VARIANT_ZERO 872 JVM_VARIANT_KERNEL 873 JVM_VARIANT_MINIMAL1 874 JVM_VARIANT_CLIENT 875 JVM_VARIANT_SERVER 876 JVM_VARIANTS 877 JVM_INTERPRETER 878 JDK_VARIANT 879 SET_OPENJDK 880 BUILD_LOG_WRAPPER 881 BUILD_LOG_PREVIOUS 882 BUILD_LOG 883 SYS_ROOT 884 PATH_SEP 885 SRC_ROOT 886 ZERO_ARCHDEF 887 DEFINE_CROSS_COMPILE_ARCH 888 LP64 889 OPENJDK_TARGET_OS_EXPORT_DIR 890 OPENJDK_TARGET_OS_API_DIR 891 OPENJDK_TARGET_CPU_JLI_CFLAGS 892 OPENJDK_TARGET_CPU_OSARCH 893 OPENJDK_TARGET_CPU_ISADIR 894 OPENJDK_TARGET_CPU_LIBDIR 895 OPENJDK_TARGET_CPU_LEGACY_LIB 896 OPENJDK_TARGET_CPU_LEGACY 897 REQUIRED_OS_VERSION 898 REQUIRED_OS_NAME 899 COMPILE_TYPE 900 OPENJDK_TARGET_CPU_ENDIAN 901 OPENJDK_TARGET_CPU_BITS 902 OPENJDK_TARGET_CPU_ARCH 903 OPENJDK_TARGET_CPU 904 OPENJDK_TARGET_OS_API 905 OPENJDK_TARGET_OS 906 OPENJDK_BUILD_CPU_ENDIAN 907 OPENJDK_BUILD_CPU_BITS 908 OPENJDK_BUILD_CPU_ARCH 909 OPENJDK_BUILD_CPU 910 OPENJDK_BUILD_OS_API 911 OPENJDK_BUILD_OS 912 OPENJDK_BUILD_AUTOCONF_NAME 913 OPENJDK_TARGET_AUTOCONF_NAME 914 target_os 915 target_vendor 916 target_cpu 917 target 918 host_os 919 host_vendor 920 host_cpu 921 host 922 build_os 923 build_vendor 924 build_cpu 925 build 926 SETFILE 927 DF 928 READLINK 929 CYGPATH 930 SED 931 FGREP 932 EGREP 933 GREP 934 AWK 935 XARGS 936 WHICH 937 WC 938 UNIQ 939 UNAME 940 TR 941 TOUCH 942 TEE 943 TAR 944 TAIL 945 SORT 946 SH 947 RM 948 PRINTF 949 NAWK 950 MV 951 MKTEMP 952 MKDIR 953 LS 954 LN 955 HEAD 956 FIND 957 FILE 958 EXPR 959 ECHO 960 DIRNAME 961 DIFF 962 DATE 963 CUT 964 CPIO 965 CP 966 COMM 967 CMP 968 CHMOD 969 CAT 970 BASH 971 BASENAME 972 DATE_WHEN_CONFIGURED 973 CONFIGURE_COMMAND_LINE 974 CUSTOM_MAKE_DIR 975 target_alias 976 host_alias 977 build_alias 978 LIBS 979 ECHO_T 980 ECHO_N 981 ECHO_C 982 DEFS 983 mandir 984 localedir 985 libdir 986 psdir 987 pdfdir 988 dvidir 989 htmldir 990 infodir 991 docdir 992 oldincludedir 993 includedir 994 localstatedir 995 sharedstatedir 996 sysconfdir 997 datadir 998 datarootdir 999 libexecdir 1000 sbindir 1001 bindir 1002 program_transform_name 1003 prefix 1004 exec_prefix 1005 PACKAGE_URL 1006 PACKAGE_BUGREPORT 1007 PACKAGE_STRING 1008 PACKAGE_VERSION 1009 PACKAGE_TARNAME 1010 PACKAGE_NAME 1011 PATH_SEPARATOR 1012 SHELL' 1013 ac_subst_files='' 1014 ac_user_opts=' 1015 enable_option_checking 1016 with_custom_make_dir 1017 with_target_bits 1018 with_sys_root 1019 with_tools_dir 1020 with_devkit 1021 enable_openjdk_only 1022 with_jdk_variant 1023 with_jvm_interpreter 1024 with_jvm_variants 1025 enable_debug 1026 with_debug_level 1027 with_conf_name 1028 with_builddeps_conf 1029 with_builddeps_server 1030 with_builddeps_dir 1031 with_builddeps_group 1032 enable_headful 1033 enable_hotspot_test_in_build 1034 with_cacerts_file 1035 enable_unlimited_crypto 1036 enable_rmiconnector_iiop 1037 with_milestone 1038 with_update_version 1039 with_user_release_suffix 1040 with_build_number 1041 with_boot_jdk 1042 with_boot_jdk_jvmargs 1043 with_add_source_root 1044 with_override_source_root 1045 with_adds_and_overrides 1046 with_override_langtools 1047 with_override_corba 1048 with_override_jaxp 1049 with_override_jaxws 1050 with_override_hotspot 1051 with_override_nashorn 1052 with_override_jdk 1053 with_import_hotspot 1054 with_msvcr_dll 1055 with_dxsdk 1056 with_dxsdk_lib 1057 with_dxsdk_include 1058 with_jtreg 1059 with_extra_cflags 1060 with_extra_cxxflags 1061 with_extra_ldflags 1062 enable_debug_symbols 1063 enable_zip_debug_info 1064 enable_macosx_runtime_support 1065 with_x 1066 with_cups 1067 with_cups_include 1068 with_freetype 1069 with_freetype_include 1070 with_freetype_lib 1071 enable_freetype_bundling 1072 with_alsa 1073 with_alsa_include 1074 with_alsa_lib 1075 with_giflib 1076 with_libpng 1077 with_zlib 1078 with_stdc__lib 1079 with_num_cores 1080 with_memory_size 1081 with_jobs 1082 with_sjavac_server_java 1083 enable_sjavac 1084 enable_precompiled_headers 1085 enable_ccache 1086 with_ccache_dir 1087 ' 1088 ac_precious_vars='build_alias 1089 host_alias 1090 target_alias 1091 BASENAME 1092 BASH 1093 CAT 1094 CHMOD 1095 CMP 1096 COMM 1097 CP 1098 CPIO 1099 CUT 1100 DATE 1101 DIFF 1102 DIRNAME 1103 ECHO 1104 EXPR 1105 FILE 1106 FIND 1107 HEAD 1108 LN 1109 LS 1110 MKDIR 1111 MKTEMP 1112 MV 1113 NAWK 1114 PRINTF 1115 RM 1116 SH 1117 SORT 1118 TAIL 1119 TAR 1120 TEE 1121 TOUCH 1122 TR 1123 UNAME 1124 UNIQ 1125 WC 1126 WHICH 1127 XARGS 1128 AWK 1129 GREP 1130 EGREP 1131 FGREP 1132 SED 1133 CYGPATH 1134 READLINK 1135 DF 1136 SETFILE 1137 UNZIP 1138 ZIP 1139 LDD 1140 OTOOL 1141 READELF 1142 HG 1143 STAT 1144 TIME 1145 DSYMUTIL 1146 XATTR 1147 CODESIGN 1148 PKG_CONFIG 1149 JAVA 1150 JAVAC 1151 JAVAH 1152 JAR 1153 NATIVE2ASCII 1154 JARSIGNER 1155 BUILD_CC 1156 BUILD_CXX 1157 BUILD_LD 1158 CC 1159 CFLAGS 1160 LDFLAGS 1161 LIBS 1162 CPPFLAGS 1163 CXX 1164 CXXFLAGS 1165 CCC 1166 OBJC 1167 OBJCFLAGS 1168 AR 1169 CPP 1170 CXXCPP 1171 AS 1172 NM 1173 GNM 1174 STRIP 1175 MCS 1176 OBJCOPY 1177 OBJDUMP 1178 LIPO 1179 JTREGEXE 1180 XMKMF 1181 FREETYPE_CFLAGS 1182 FREETYPE_LIBS 1183 ALSA_CFLAGS 1184 ALSA_LIBS 1185 PNG_CFLAGS 1186 PNG_LIBS 1187 LIBFFI_CFLAGS 1188 LIBFFI_LIBS 1189 CCACHE' 1190 1191 1192 # Initialize some variables set by options. 1193 ac_init_help= 1194 ac_init_version=false 1195 ac_unrecognized_opts= 1196 ac_unrecognized_sep= 1197 # The variables have the same names as the options, with 1198 # dashes changed to underlines. 1199 cache_file=/dev/null 1200 exec_prefix=NONE 1201 no_create= 1202 no_recursion= 1203 prefix=NONE 1204 program_prefix=NONE 1205 program_suffix=NONE 1206 program_transform_name=s,x,x, 1207 silent= 1208 site= 1209 srcdir= 1210 verbose= 1211 x_includes=NONE 1212 x_libraries=NONE 1213 1214 # Installation directory options. 1215 # These are left unexpanded so users can "make install exec_prefix=/foo" 1216 # and all the variables that are supposed to be based on exec_prefix 1217 # by default will actually change. 1218 # Use braces instead of parens because sh, perl, etc. also accept them. 1219 # (The list follows the same order as the GNU Coding Standards.) 1220 bindir='${exec_prefix}/bin' 1221 sbindir='${exec_prefix}/sbin' 1222 libexecdir='${exec_prefix}/libexec' 1223 datarootdir='${prefix}/share' 1224 datadir='${datarootdir}' 1225 sysconfdir='${prefix}/etc' 1226 sharedstatedir='${prefix}/com' 1227 localstatedir='${prefix}/var' 1228 includedir='${prefix}/include' 1229 oldincludedir='/usr/include' 1230 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1231 infodir='${datarootdir}/info' 1232 htmldir='${docdir}' 1233 dvidir='${docdir}' 1234 pdfdir='${docdir}' 1235 psdir='${docdir}' 1236 libdir='${exec_prefix}/lib' 1237 localedir='${datarootdir}/locale' 1238 mandir='${datarootdir}/man' 1239 1240 ac_prev= 1241 ac_dashdash= 1242 for ac_option 1243 do 1244 # If the previous option needs an argument, assign it. 1245 if test -n "$ac_prev"; then 1246 eval $ac_prev=\$ac_option 1247 ac_prev= 1248 continue 1249 fi 1250 1251 case $ac_option in 1252 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1253 *=) ac_optarg= ;; 1254 *) ac_optarg=yes ;; 1255 esac 1256 1257 # Accept the important Cygnus configure options, so we can diagnose typos. 1258 1259 case $ac_dashdash$ac_option in 1260 --) 1261 ac_dashdash=yes ;; 1262 1263 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1264 ac_prev=bindir ;; 1265 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1266 bindir=$ac_optarg ;; 1267 1268 -build | --build | --buil | --bui | --bu) 1269 ac_prev=build_alias ;; 1270 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1271 build_alias=$ac_optarg ;; 1272 1273 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1274 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1275 ac_prev=cache_file ;; 1276 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1277 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1278 cache_file=$ac_optarg ;; 1279 1280 --config-cache | -C) 1281 cache_file=config.cache ;; 1282 1283 -datadir | --datadir | --datadi | --datad) 1284 ac_prev=datadir ;; 1285 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1286 datadir=$ac_optarg ;; 1287 1288 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1289 | --dataroo | --dataro | --datar) 1290 ac_prev=datarootdir ;; 1291 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1292 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1293 datarootdir=$ac_optarg ;; 1294 1295 -disable-* | --disable-*) 1296 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1297 # Reject names that are not valid shell variable names. 1298 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1299 as_fn_error $? "invalid feature name: $ac_useropt" 1300 ac_useropt_orig=$ac_useropt 1301 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1302 case $ac_user_opts in 1303 *" 1304 "enable_$ac_useropt" 1305 "*) ;; 1306 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1307 ac_unrecognized_sep=', ';; 1308 esac 1309 eval enable_$ac_useropt=no ;; 1310 1311 -docdir | --docdir | --docdi | --doc | --do) 1312 ac_prev=docdir ;; 1313 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1314 docdir=$ac_optarg ;; 1315 1316 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1317 ac_prev=dvidir ;; 1318 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1319 dvidir=$ac_optarg ;; 1320 1321 -enable-* | --enable-*) 1322 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1323 # Reject names that are not valid shell variable names. 1324 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1325 as_fn_error $? "invalid feature name: $ac_useropt" 1326 ac_useropt_orig=$ac_useropt 1327 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1328 case $ac_user_opts in 1329 *" 1330 "enable_$ac_useropt" 1331 "*) ;; 1332 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1333 ac_unrecognized_sep=', ';; 1334 esac 1335 eval enable_$ac_useropt=\$ac_optarg ;; 1336 1337 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1338 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1339 | --exec | --exe | --ex) 1340 ac_prev=exec_prefix ;; 1341 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1342 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1343 | --exec=* | --exe=* | --ex=*) 1344 exec_prefix=$ac_optarg ;; 1345 1346 -gas | --gas | --ga | --g) 1347 # Obsolete; use --with-gas. 1348 with_gas=yes ;; 1349 1350 -help | --help | --hel | --he | -h) 1351 ac_init_help=long ;; 1352 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1353 ac_init_help=recursive ;; 1354 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1355 ac_init_help=short ;; 1356 1357 -host | --host | --hos | --ho) 1358 ac_prev=host_alias ;; 1359 -host=* | --host=* | --hos=* | --ho=*) 1360 host_alias=$ac_optarg ;; 1361 1362 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1363 ac_prev=htmldir ;; 1364 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1365 | --ht=*) 1366 htmldir=$ac_optarg ;; 1367 1368 -includedir | --includedir | --includedi | --included | --include \ 1369 | --includ | --inclu | --incl | --inc) 1370 ac_prev=includedir ;; 1371 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1372 | --includ=* | --inclu=* | --incl=* | --inc=*) 1373 includedir=$ac_optarg ;; 1374 1375 -infodir | --infodir | --infodi | --infod | --info | --inf) 1376 ac_prev=infodir ;; 1377 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1378 infodir=$ac_optarg ;; 1379 1380 -libdir | --libdir | --libdi | --libd) 1381 ac_prev=libdir ;; 1382 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1383 libdir=$ac_optarg ;; 1384 1385 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1386 | --libexe | --libex | --libe) 1387 ac_prev=libexecdir ;; 1388 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1389 | --libexe=* | --libex=* | --libe=*) 1390 libexecdir=$ac_optarg ;; 1391 1392 -localedir | --localedir | --localedi | --localed | --locale) 1393 ac_prev=localedir ;; 1394 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1395 localedir=$ac_optarg ;; 1396 1397 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1398 | --localstate | --localstat | --localsta | --localst | --locals) 1399 ac_prev=localstatedir ;; 1400 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1401 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1402 localstatedir=$ac_optarg ;; 1403 1404 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1405 ac_prev=mandir ;; 1406 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1407 mandir=$ac_optarg ;; 1408 1409 -nfp | --nfp | --nf) 1410 # Obsolete; use --without-fp. 1411 with_fp=no ;; 1412 1413 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1414 | --no-cr | --no-c | -n) 1415 no_create=yes ;; 1416 1417 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1418 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1419 no_recursion=yes ;; 1420 1421 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1422 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1423 | --oldin | --oldi | --old | --ol | --o) 1424 ac_prev=oldincludedir ;; 1425 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1426 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1427 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1428 oldincludedir=$ac_optarg ;; 1429 1430 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1431 ac_prev=prefix ;; 1432 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1433 prefix=$ac_optarg ;; 1434 1435 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1436 | --program-pre | --program-pr | --program-p) 1437 ac_prev=program_prefix ;; 1438 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1439 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1440 program_prefix=$ac_optarg ;; 1441 1442 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1443 | --program-suf | --program-su | --program-s) 1444 ac_prev=program_suffix ;; 1445 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1446 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1447 program_suffix=$ac_optarg ;; 1448 1449 -program-transform-name | --program-transform-name \ 1450 | --program-transform-nam | --program-transform-na \ 1451 | --program-transform-n | --program-transform- \ 1452 | --program-transform | --program-transfor \ 1453 | --program-transfo | --program-transf \ 1454 | --program-trans | --program-tran \ 1455 | --progr-tra | --program-tr | --program-t) 1456 ac_prev=program_transform_name ;; 1457 -program-transform-name=* | --program-transform-name=* \ 1458 | --program-transform-nam=* | --program-transform-na=* \ 1459 | --program-transform-n=* | --program-transform-=* \ 1460 | --program-transform=* | --program-transfor=* \ 1461 | --program-transfo=* | --program-transf=* \ 1462 | --program-trans=* | --program-tran=* \ 1463 | --progr-tra=* | --program-tr=* | --program-t=*) 1464 program_transform_name=$ac_optarg ;; 1465 1466 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1467 ac_prev=pdfdir ;; 1468 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1469 pdfdir=$ac_optarg ;; 1470 1471 -psdir | --psdir | --psdi | --psd | --ps) 1472 ac_prev=psdir ;; 1473 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1474 psdir=$ac_optarg ;; 1475 1476 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1477 | -silent | --silent | --silen | --sile | --sil) 1478 silent=yes ;; 1479 1480 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1481 ac_prev=sbindir ;; 1482 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1483 | --sbi=* | --sb=*) 1484 sbindir=$ac_optarg ;; 1485 1486 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1487 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1488 | --sharedst | --shareds | --shared | --share | --shar \ 1489 | --sha | --sh) 1490 ac_prev=sharedstatedir ;; 1491 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1492 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1493 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1494 | --sha=* | --sh=*) 1495 sharedstatedir=$ac_optarg ;; 1496 1497 -site | --site | --sit) 1498 ac_prev=site ;; 1499 -site=* | --site=* | --sit=*) 1500 site=$ac_optarg ;; 1501 1502 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1503 ac_prev=srcdir ;; 1504 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1505 srcdir=$ac_optarg ;; 1506 1507 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1508 | --syscon | --sysco | --sysc | --sys | --sy) 1509 ac_prev=sysconfdir ;; 1510 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1511 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1512 sysconfdir=$ac_optarg ;; 1513 1514 -target | --target | --targe | --targ | --tar | --ta | --t) 1515 ac_prev=target_alias ;; 1516 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1517 target_alias=$ac_optarg ;; 1518 1519 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1520 verbose=yes ;; 1521 1522 -version | --version | --versio | --versi | --vers | -V) 1523 ac_init_version=: ;; 1524 1525 -with-* | --with-*) 1526 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1527 # Reject names that are not valid shell variable names. 1528 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1529 as_fn_error $? "invalid package name: $ac_useropt" 1530 ac_useropt_orig=$ac_useropt 1531 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1532 case $ac_user_opts in 1533 *" 1534 "with_$ac_useropt" 1535 "*) ;; 1536 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1537 ac_unrecognized_sep=', ';; 1538 esac 1539 eval with_$ac_useropt=\$ac_optarg ;; 1540 1541 -without-* | --without-*) 1542 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1543 # Reject names that are not valid shell variable names. 1544 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1545 as_fn_error $? "invalid package name: $ac_useropt" 1546 ac_useropt_orig=$ac_useropt 1547 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1548 case $ac_user_opts in 1549 *" 1550 "with_$ac_useropt" 1551 "*) ;; 1552 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1553 ac_unrecognized_sep=', ';; 1554 esac 1555 eval with_$ac_useropt=no ;; 1556 1557 --x) 1558 # Obsolete; use --with-x. 1559 with_x=yes ;; 1560 1561 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1562 | --x-incl | --x-inc | --x-in | --x-i) 1563 ac_prev=x_includes ;; 1564 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1565 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1566 x_includes=$ac_optarg ;; 1567 1568 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1569 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1570 ac_prev=x_libraries ;; 1571 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1572 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1573 x_libraries=$ac_optarg ;; 1574 1575 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1576 Try \`$0 --help' for more information" 1577 ;; 1578 1579 *=*) 1580 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1581 # Reject names that are not valid shell variable names. 1582 case $ac_envvar in #( 1583 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1584 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1585 esac 1586 eval $ac_envvar=\$ac_optarg 1587 export $ac_envvar ;; 1588 1589 *) 1590 # FIXME: should be removed in autoconf 3.0. 1591 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1592 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1593 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1594 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1595 ;; 1596 1597 esac 1598 done 1599 1600 if test -n "$ac_prev"; then 1601 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1602 as_fn_error $? "missing argument to $ac_option" 1603 fi 1604 1605 if test -n "$ac_unrecognized_opts"; then 1606 case $enable_option_checking in 1607 no) ;; 1608 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1609 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1610 esac 1611 fi 1612 1613 # Check all directory arguments for consistency. 1614 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1615 datadir sysconfdir sharedstatedir localstatedir includedir \ 1616 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1617 libdir localedir mandir 1618 do 1619 eval ac_val=\$$ac_var 1620 # Remove trailing slashes. 1621 case $ac_val in 1622 */ ) 1623 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1624 eval $ac_var=\$ac_val;; 1625 esac 1626 # Be sure to have absolute directory names. 1627 case $ac_val in 1628 [\\/$]* | ?:[\\/]* ) continue;; 1629 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1630 esac 1631 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1632 done 1633 1634 # There might be people who depend on the old broken behavior: `$host' 1635 # used to hold the argument of --host etc. 1636 # FIXME: To remove some day. 1637 build=$build_alias 1638 host=$host_alias 1639 target=$target_alias 1640 1641 # FIXME: To remove some day. 1642 if test "x$host_alias" != x; then 1643 if test "x$build_alias" = x; then 1644 cross_compiling=maybe 1645 elif test "x$build_alias" != "x$host_alias"; then 1646 cross_compiling=yes 1647 fi 1648 fi 1649 1650 ac_tool_prefix= 1651 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1652 1653 test "$silent" = yes && exec 6>/dev/null 1654 1655 1656 ac_pwd=`pwd` && test -n "$ac_pwd" && 1657 ac_ls_di=`ls -di .` && 1658 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1659 as_fn_error $? "working directory cannot be determined" 1660 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1661 as_fn_error $? "pwd does not report name of working directory" 1662 1663 1664 # Find the source files, if location was not specified. 1665 if test -z "$srcdir"; then 1666 ac_srcdir_defaulted=yes 1667 # Try the directory containing this script, then the parent directory. 1668 ac_confdir=`$as_dirname -- "$as_myself" || 1669 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1670 X"$as_myself" : 'X\(//\)[^/]' \| \ 1671 X"$as_myself" : 'X\(//\)$' \| \ 1672 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1673 $as_echo X"$as_myself" | 1674 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1675 s//\1/ 1676 q 1677 } 1678 /^X\(\/\/\)[^/].*/{ 1679 s//\1/ 1680 q 1681 } 1682 /^X\(\/\/\)$/{ 1683 s//\1/ 1684 q 1685 } 1686 /^X\(\/\).*/{ 1687 s//\1/ 1688 q 1689 } 1690 s/.*/./; q'` 1691 srcdir=$ac_confdir 1692 if test ! -r "$srcdir/$ac_unique_file"; then 1693 srcdir=.. 1694 fi 1695 else 1696 ac_srcdir_defaulted=no 1697 fi 1698 if test ! -r "$srcdir/$ac_unique_file"; then 1699 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1700 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1701 fi 1702 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1703 ac_abs_confdir=`( 1704 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1705 pwd)` 1706 # When building in place, set srcdir=. 1707 if test "$ac_abs_confdir" = "$ac_pwd"; then 1708 srcdir=. 1709 fi 1710 # Remove unnecessary trailing slashes from srcdir. 1711 # Double slashes in file names in object file debugging info 1712 # mess up M-x gdb in Emacs. 1713 case $srcdir in 1714 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1715 esac 1716 for ac_var in $ac_precious_vars; do 1717 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1718 eval ac_env_${ac_var}_value=\$${ac_var} 1719 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1720 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1721 done 1722 1723 # 1724 # Report the --help message. 1725 # 1726 if test "$ac_init_help" = "long"; then 1727 # Omit some internal or obsolete options to make the list less imposing. 1728 # This message is too long to be a string in the A/UX 3.1 sh. 1729 cat <<_ACEOF 1730 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1731 1732 Usage: $0 [OPTION]... [VAR=VALUE]... 1733 1734 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1735 VAR=VALUE. See below for descriptions of some of the useful variables. 1736 1737 Defaults for the options are specified in brackets. 1738 1739 Configuration: 1740 -h, --help display this help and exit 1741 --help=short display options specific to this package 1742 --help=recursive display the short help of all the included packages 1743 -V, --version display version information and exit 1744 -q, --quiet, --silent do not print \`checking ...' messages 1745 --cache-file=FILE cache test results in FILE [disabled] 1746 -C, --config-cache alias for \`--cache-file=config.cache' 1747 -n, --no-create do not create output files 1748 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1749 1750 Installation directories: 1751 --prefix=PREFIX install architecture-independent files in PREFIX 1752 [$ac_default_prefix] 1753 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1754 [PREFIX] 1755 1756 By default, \`make install' will install all the files in 1757 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1758 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1759 for instance \`--prefix=\$HOME'. 1760 1761 For better control, use the options below. 1762 1763 Fine tuning of the installation directories: 1764 --bindir=DIR user executables [EPREFIX/bin] 1765 --sbindir=DIR system admin executables [EPREFIX/sbin] 1766 --libexecdir=DIR program executables [EPREFIX/libexec] 1767 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1768 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1769 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1770 --libdir=DIR object code libraries [EPREFIX/lib] 1771 --includedir=DIR C header files [PREFIX/include] 1772 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1773 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1774 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1775 --infodir=DIR info documentation [DATAROOTDIR/info] 1776 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1777 --mandir=DIR man documentation [DATAROOTDIR/man] 1778 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1779 --htmldir=DIR html documentation [DOCDIR] 1780 --dvidir=DIR dvi documentation [DOCDIR] 1781 --pdfdir=DIR pdf documentation [DOCDIR] 1782 --psdir=DIR ps documentation [DOCDIR] 1783 _ACEOF 1784 1785 cat <<\_ACEOF 1786 1787 X features: 1788 --x-includes=DIR X include files are in DIR 1789 --x-libraries=DIR X library files are in DIR 1790 1791 System types: 1792 --build=BUILD configure for building on BUILD [guessed] 1793 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1794 --target=TARGET configure for building compilers for TARGET [HOST] 1795 _ACEOF 1796 fi 1797 1798 if test -n "$ac_init_help"; then 1799 case $ac_init_help in 1800 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1801 esac 1802 cat <<\_ACEOF 1803 1804 Optional Features: 1805 --disable-option-checking ignore unrecognized --enable/--with options 1806 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1807 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1808 --enable-openjdk-only suppress building custom source even if present 1809 [disabled] 1810 --enable-debug set the debug level to fastdebug (shorthand for 1811 --with-debug-level=fastdebug) [disabled] 1812 --disable-headful disable building headful support (graphical UI 1813 support) [enabled] 1814 --enable-hotspot-test-in-build 1815 run the Queens test after Hotspot build [disabled] 1816 --enable-unlimited-crypto 1817 Enable unlimited crypto policy [disabled] 1818 --enable-rmiconnector-iiop 1819 enable the JMX RMIConnector iiop transport 1820 [disabled] 1821 --disable-debug-symbols disable generation of debug symbols [enabled] 1822 --disable-zip-debug-info 1823 disable zipping of debug-info files [enabled] 1824 --enable-macosx-runtime-support 1825 Deprecated. Option is kept for backwards 1826 compatibility and is ignored 1827 --disable-freetype-bundling 1828 disable bundling of the freetype library with the 1829 build result [enabled on Windows or when using 1830 --with-freetype, disabled otherwise] 1831 --enable-sjavac use sjavac to do fast incremental compiles 1832 [disabled] 1833 --disable-precompiled-headers 1834 disable using precompiled headers when compiling C++ 1835 [enabled] 1836 --enable-ccache enable using ccache to speed up recompilations 1837 [disabled] 1838 1839 Optional Packages: 1840 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1841 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1842 --with-custom-make-dir use this directory for custom build/make files 1843 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1844 support it), e.g. --with-target-bits=32 [guessed] 1845 --with-sys-root pass this sys-root to the compilers and tools (for 1846 cross-compiling) 1847 --with-tools-dir search this directory for compilers and tools (for 1848 cross-compiling) 1849 --with-devkit use this directory as base for tools-dir and 1850 sys-root (for cross-compiling) 1851 --with-jdk-variant JDK variant to build (normal) [normal] 1852 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1853 --with-jvm-variants JVM variants (separated by commas) to build (server, 1854 client, minimal1, kernel, zero, zeroshark, core) 1855 [server] 1856 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1857 [release] 1858 --with-conf-name use this as the name of the configuration [generated 1859 from important configuration options] 1860 --with-builddeps-conf use this configuration file for the builddeps 1861 --with-builddeps-server download and use build dependencies from this server 1862 url 1863 --with-builddeps-dir store downloaded build dependencies here 1864 [/localhome/builddeps] 1865 --with-builddeps-group chgrp the downloaded build dependencies to this 1866 group 1867 --with-cacerts-file specify alternative cacerts file 1868 --with-milestone Set milestone value for build [internal] 1869 --with-update-version Set update version value for build [b00] 1870 --with-user-release-suffix 1871 Add a custom string to the version string if build 1872 number isn't set.[username_builddateb00] 1873 --with-build-number Set build number value for build [b00] 1874 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1875 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1876 invocations of the Boot JDK, overriding the default 1877 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1878 -enableassertions" 1879 --with-add-source-root for each and every source directory, look in this 1880 additional source root for the same directory; if it 1881 exists and have files in it, include it in the build 1882 --with-override-source-root 1883 for each and every source directory, look in this 1884 override source root for the same directory; if it 1885 exists, use that directory instead and ignore the 1886 directory in the original source root 1887 --with-adds-and-overrides 1888 use the subdirs 'adds' and 'overrides' in the 1889 specified directory as add-source-root and 1890 override-source-root 1891 --with-override-langtools 1892 use this langtools dir for the build 1893 --with-override-corba use this corba dir for the build 1894 --with-override-jaxp use this jaxp dir for the build 1895 --with-override-jaxws use this jaxws dir for the build 1896 --with-override-hotspot use this hotspot dir for the build 1897 --with-override-nashorn use this nashorn dir for the build 1898 --with-override-jdk use this jdk dir for the build 1899 --with-import-hotspot import hotspot binaries from this jdk image or 1900 hotspot build dist dir instead of building from 1901 source 1902 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1903 only) [probed] 1904 --with-dxsdk Deprecated. Option is kept for backwards 1905 compatibility and is ignored 1906 --with-dxsdk-lib Deprecated. Option is kept for backwards 1907 compatibility and is ignored 1908 --with-dxsdk-include Deprecated. Option is kept for backwards 1909 compatibility and is ignored 1910 --with-jtreg Regression Test Harness [probed] 1911 --with-extra-cflags extra flags to be used when compiling jdk c-files 1912 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1913 --with-extra-ldflags extra flags to be used when linking jdk 1914 --with-x use the X Window System 1915 --with-cups specify prefix directory for the cups package 1916 (expecting the headers under PATH/include) 1917 --with-cups-include specify directory for the cups include files 1918 --with-freetype specify prefix directory for the freetype package 1919 (expecting the libraries under PATH/lib and the 1920 headers under PATH/include) 1921 --with-freetype-include specify directory for the freetype include files 1922 --with-freetype-lib specify directory for the freetype library 1923 --with-alsa specify prefix directory for the alsa package 1924 (expecting the libraries under PATH/lib and the 1925 headers under PATH/include) 1926 --with-alsa-include specify directory for the alsa include files 1927 --with-alsa-lib specify directory for the alsa library 1928 --with-giflib use giflib from build system or OpenJDK source 1929 (system, bundled) [bundled] 1930 --with-libpng use libpng from build system or OpenJDK source 1931 (system, bundled) [bundled] 1932 --with-zlib use zlib from build system or OpenJDK source 1933 (system, bundled) [bundled] 1934 --with-stdc++lib=<static>,<dynamic>,<default> 1935 force linking of the C++ runtime on Linux to either 1936 static or dynamic, default is static with dynamic as 1937 fallback 1938 --with-num-cores number of cores in the build system, e.g. 1939 --with-num-cores=8 [probed] 1940 --with-memory-size memory (in MB) available in the build system, e.g. 1941 --with-memory-size=1024 [probed] 1942 --with-jobs number of parallel jobs to let make run [calculated 1943 based on cores and memory] 1944 --with-sjavac-server-java 1945 use this java binary for running the sjavac 1946 background server [Boot JDK java] 1947 --with-ccache-dir where to store ccache files [~/.ccache] 1948 1949 Some influential environment variables: 1950 BASENAME Override default value for BASENAME 1951 BASH Override default value for BASH 1952 CAT Override default value for CAT 1953 CHMOD Override default value for CHMOD 1954 CMP Override default value for CMP 1955 COMM Override default value for COMM 1956 CP Override default value for CP 1957 CPIO Override default value for CPIO 1958 CUT Override default value for CUT 1959 DATE Override default value for DATE 1960 DIFF Override default value for DIFF 1961 DIRNAME Override default value for DIRNAME 1962 ECHO Override default value for ECHO 1963 EXPR Override default value for EXPR 1964 FILE Override default value for FILE 1965 FIND Override default value for FIND 1966 HEAD Override default value for HEAD 1967 LN Override default value for LN 1968 LS Override default value for LS 1969 MKDIR Override default value for MKDIR 1970 MKTEMP Override default value for MKTEMP 1971 MV Override default value for MV 1972 NAWK Override default value for NAWK 1973 PRINTF Override default value for PRINTF 1974 RM Override default value for RM 1975 SH Override default value for SH 1976 SORT Override default value for SORT 1977 TAIL Override default value for TAIL 1978 TAR Override default value for TAR 1979 TEE Override default value for TEE 1980 TOUCH Override default value for TOUCH 1981 TR Override default value for TR 1982 UNAME Override default value for UNAME 1983 UNIQ Override default value for UNIQ 1984 WC Override default value for WC 1985 WHICH Override default value for WHICH 1986 XARGS Override default value for XARGS 1987 AWK Override default value for AWK 1988 GREP Override default value for GREP 1989 EGREP Override default value for EGREP 1990 FGREP Override default value for FGREP 1991 SED Override default value for SED 1992 CYGPATH Override default value for CYGPATH 1993 READLINK Override default value for READLINK 1994 DF Override default value for DF 1995 SETFILE Override default value for SETFILE 1996 UNZIP Override default value for UNZIP 1997 ZIP Override default value for ZIP 1998 LDD Override default value for LDD 1999 OTOOL Override default value for OTOOL 2000 READELF Override default value for READELF 2001 HG Override default value for HG 2002 STAT Override default value for STAT 2003 TIME Override default value for TIME 2004 DSYMUTIL Override default value for DSYMUTIL 2005 XATTR Override default value for XATTR 2006 CODESIGN Override default value for CODESIGN 2007 PKG_CONFIG path to pkg-config utility 2008 JAVA Override default value for JAVA 2009 JAVAC Override default value for JAVAC 2010 JAVAH Override default value for JAVAH 2011 JAR Override default value for JAR 2012 NATIVE2ASCII 2013 Override default value for NATIVE2ASCII 2014 JARSIGNER Override default value for JARSIGNER 2015 BUILD_CC Override default value for BUILD_CC 2016 BUILD_CXX Override default value for BUILD_CXX 2017 BUILD_LD Override default value for BUILD_LD 2018 CC C compiler command 2019 CFLAGS C compiler flags 2020 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2021 nonstandard directory <lib dir> 2022 LIBS libraries to pass to the linker, e.g. -l<library> 2023 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2024 you have headers in a nonstandard directory <include dir> 2025 CXX C++ compiler command 2026 CXXFLAGS C++ compiler flags 2027 OBJC Objective C compiler command 2028 OBJCFLAGS Objective C compiler flags 2029 AR Override default value for AR 2030 CPP C preprocessor 2031 CXXCPP C++ preprocessor 2032 AS Override default value for AS 2033 NM Override default value for NM 2034 GNM Override default value for GNM 2035 STRIP Override default value for STRIP 2036 MCS Override default value for MCS 2037 OBJCOPY Override default value for OBJCOPY 2038 OBJDUMP Override default value for OBJDUMP 2039 LIPO Override default value for LIPO 2040 JTREGEXE Override default value for JTREGEXE 2041 XMKMF Path to xmkmf, Makefile generator for X Window System 2042 FREETYPE_CFLAGS 2043 C compiler flags for FREETYPE, overriding pkg-config 2044 FREETYPE_LIBS 2045 linker flags for FREETYPE, overriding pkg-config 2046 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2047 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2048 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2049 PNG_LIBS linker flags for PNG, overriding pkg-config 2050 LIBFFI_CFLAGS 2051 C compiler flags for LIBFFI, overriding pkg-config 2052 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2053 CCACHE Override default value for CCACHE 2054 2055 Use these variables to override the choices made by `configure' or to help 2056 it to find libraries and programs with nonstandard names/locations. 2057 2058 Report bugs to <build-dev@openjdk.java.net>. 2059 OpenJDK home page: <http://openjdk.java.net>. 2060 _ACEOF 2061 ac_status=$? 2062 fi 2063 2064 if test "$ac_init_help" = "recursive"; then 2065 # If there are subdirs, report their specific --help. 2066 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2067 test -d "$ac_dir" || 2068 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2069 continue 2070 ac_builddir=. 2071 2072 case "$ac_dir" in 2073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2074 *) 2075 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2076 # A ".." for each directory in $ac_dir_suffix. 2077 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2078 case $ac_top_builddir_sub in 2079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2081 esac ;; 2082 esac 2083 ac_abs_top_builddir=$ac_pwd 2084 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2085 # for backward compatibility: 2086 ac_top_builddir=$ac_top_build_prefix 2087 2088 case $srcdir in 2089 .) # We are building in place. 2090 ac_srcdir=. 2091 ac_top_srcdir=$ac_top_builddir_sub 2092 ac_abs_top_srcdir=$ac_pwd ;; 2093 [\\/]* | ?:[\\/]* ) # Absolute name. 2094 ac_srcdir=$srcdir$ac_dir_suffix; 2095 ac_top_srcdir=$srcdir 2096 ac_abs_top_srcdir=$srcdir ;; 2097 *) # Relative name. 2098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2099 ac_top_srcdir=$ac_top_build_prefix$srcdir 2100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2101 esac 2102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2103 2104 cd "$ac_dir" || { ac_status=$?; continue; } 2105 # Check for guested configure. 2106 if test -f "$ac_srcdir/configure.gnu"; then 2107 echo && 2108 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2109 elif test -f "$ac_srcdir/configure"; then 2110 echo && 2111 $SHELL "$ac_srcdir/configure" --help=recursive 2112 else 2113 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2114 fi || ac_status=$? 2115 cd "$ac_pwd" || { ac_status=$?; break; } 2116 done 2117 fi 2118 2119 test -n "$ac_init_help" && exit $ac_status 2120 if $ac_init_version; then 2121 cat <<\_ACEOF 2122 OpenJDK configure jdk8 2123 generated by GNU Autoconf 2.69 2124 2125 Copyright (C) 2012 Free Software Foundation, Inc. 2126 This configure script is free software; the Free Software Foundation 2127 gives unlimited permission to copy, distribute and modify it. 2128 _ACEOF 2129 exit 2130 fi 2131 2132 ## ------------------------ ## 2133 ## Autoconf initialization. ## 2134 ## ------------------------ ## 2135 2136 # ac_fn_c_try_compile LINENO 2137 # -------------------------- 2138 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2139 ac_fn_c_try_compile () 2140 { 2141 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2142 rm -f conftest.$ac_objext 2143 if { { ac_try="$ac_compile" 2144 case "(($ac_try" in 2145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2146 *) ac_try_echo=$ac_try;; 2147 esac 2148 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2149 $as_echo "$ac_try_echo"; } >&5 2150 (eval "$ac_compile") 2>conftest.err 2151 ac_status=$? 2152 if test -s conftest.err; then 2153 grep -v '^ *+' conftest.err >conftest.er1 2154 cat conftest.er1 >&5 2155 mv -f conftest.er1 conftest.err 2156 fi 2157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2158 test $ac_status = 0; } && { 2159 test -z "$ac_c_werror_flag" || 2160 test ! -s conftest.err 2161 } && test -s conftest.$ac_objext; then : 2162 ac_retval=0 2163 else 2164 $as_echo "$as_me: failed program was:" >&5 2165 sed 's/^/| /' conftest.$ac_ext >&5 2166 2167 ac_retval=1 2168 fi 2169 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2170 as_fn_set_status $ac_retval 2171 2172 } # ac_fn_c_try_compile 2173 2174 # ac_fn_cxx_try_compile LINENO 2175 # ---------------------------- 2176 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2177 ac_fn_cxx_try_compile () 2178 { 2179 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2180 rm -f conftest.$ac_objext 2181 if { { ac_try="$ac_compile" 2182 case "(($ac_try" in 2183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2184 *) ac_try_echo=$ac_try;; 2185 esac 2186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2187 $as_echo "$ac_try_echo"; } >&5 2188 (eval "$ac_compile") 2>conftest.err 2189 ac_status=$? 2190 if test -s conftest.err; then 2191 grep -v '^ *+' conftest.err >conftest.er1 2192 cat conftest.er1 >&5 2193 mv -f conftest.er1 conftest.err 2194 fi 2195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2196 test $ac_status = 0; } && { 2197 test -z "$ac_cxx_werror_flag" || 2198 test ! -s conftest.err 2199 } && test -s conftest.$ac_objext; then : 2200 ac_retval=0 2201 else 2202 $as_echo "$as_me: failed program was:" >&5 2203 sed 's/^/| /' conftest.$ac_ext >&5 2204 2205 ac_retval=1 2206 fi 2207 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2208 as_fn_set_status $ac_retval 2209 2210 } # ac_fn_cxx_try_compile 2211 2212 # ac_fn_objc_try_compile LINENO 2213 # ----------------------------- 2214 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2215 ac_fn_objc_try_compile () 2216 { 2217 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2218 rm -f conftest.$ac_objext 2219 if { { ac_try="$ac_compile" 2220 case "(($ac_try" in 2221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2222 *) ac_try_echo=$ac_try;; 2223 esac 2224 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2225 $as_echo "$ac_try_echo"; } >&5 2226 (eval "$ac_compile") 2>conftest.err 2227 ac_status=$? 2228 if test -s conftest.err; then 2229 grep -v '^ *+' conftest.err >conftest.er1 2230 cat conftest.er1 >&5 2231 mv -f conftest.er1 conftest.err 2232 fi 2233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2234 test $ac_status = 0; } && { 2235 test -z "$ac_objc_werror_flag" || 2236 test ! -s conftest.err 2237 } && test -s conftest.$ac_objext; then : 2238 ac_retval=0 2239 else 2240 $as_echo "$as_me: failed program was:" >&5 2241 sed 's/^/| /' conftest.$ac_ext >&5 2242 2243 ac_retval=1 2244 fi 2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2246 as_fn_set_status $ac_retval 2247 2248 } # ac_fn_objc_try_compile 2249 2250 # ac_fn_c_try_cpp LINENO 2251 # ---------------------- 2252 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2253 ac_fn_c_try_cpp () 2254 { 2255 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2256 if { { ac_try="$ac_cpp conftest.$ac_ext" 2257 case "(($ac_try" in 2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2259 *) ac_try_echo=$ac_try;; 2260 esac 2261 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2262 $as_echo "$ac_try_echo"; } >&5 2263 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2264 ac_status=$? 2265 if test -s conftest.err; then 2266 grep -v '^ *+' conftest.err >conftest.er1 2267 cat conftest.er1 >&5 2268 mv -f conftest.er1 conftest.err 2269 fi 2270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2271 test $ac_status = 0; } > conftest.i && { 2272 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2273 test ! -s conftest.err 2274 }; then : 2275 ac_retval=0 2276 else 2277 $as_echo "$as_me: failed program was:" >&5 2278 sed 's/^/| /' conftest.$ac_ext >&5 2279 2280 ac_retval=1 2281 fi 2282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2283 as_fn_set_status $ac_retval 2284 2285 } # ac_fn_c_try_cpp 2286 2287 # ac_fn_cxx_try_cpp LINENO 2288 # ------------------------ 2289 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2290 ac_fn_cxx_try_cpp () 2291 { 2292 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2293 if { { ac_try="$ac_cpp conftest.$ac_ext" 2294 case "(($ac_try" in 2295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2296 *) ac_try_echo=$ac_try;; 2297 esac 2298 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2299 $as_echo "$ac_try_echo"; } >&5 2300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2301 ac_status=$? 2302 if test -s conftest.err; then 2303 grep -v '^ *+' conftest.err >conftest.er1 2304 cat conftest.er1 >&5 2305 mv -f conftest.er1 conftest.err 2306 fi 2307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2308 test $ac_status = 0; } > conftest.i && { 2309 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2310 test ! -s conftest.err 2311 }; then : 2312 ac_retval=0 2313 else 2314 $as_echo "$as_me: failed program was:" >&5 2315 sed 's/^/| /' conftest.$ac_ext >&5 2316 2317 ac_retval=1 2318 fi 2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2320 as_fn_set_status $ac_retval 2321 2322 } # ac_fn_cxx_try_cpp 2323 2324 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2325 # --------------------------------------------------------- 2326 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2327 # the include files in INCLUDES and setting the cache variable VAR 2328 # accordingly. 2329 ac_fn_cxx_check_header_mongrel () 2330 { 2331 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2332 if eval \${$3+:} false; then : 2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2334 $as_echo_n "checking for $2... " >&6; } 2335 if eval \${$3+:} false; then : 2336 $as_echo_n "(cached) " >&6 2337 fi 2338 eval ac_res=\$$3 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2340 $as_echo "$ac_res" >&6; } 2341 else 2342 # Is the header compilable? 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2344 $as_echo_n "checking $2 usability... " >&6; } 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346 /* end confdefs.h. */ 2347 $4 2348 #include <$2> 2349 _ACEOF 2350 if ac_fn_cxx_try_compile "$LINENO"; then : 2351 ac_header_compiler=yes 2352 else 2353 ac_header_compiler=no 2354 fi 2355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2357 $as_echo "$ac_header_compiler" >&6; } 2358 2359 # Is the header present? 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2361 $as_echo_n "checking $2 presence... " >&6; } 2362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2363 /* end confdefs.h. */ 2364 #include <$2> 2365 _ACEOF 2366 if ac_fn_cxx_try_cpp "$LINENO"; then : 2367 ac_header_preproc=yes 2368 else 2369 ac_header_preproc=no 2370 fi 2371 rm -f conftest.err conftest.i conftest.$ac_ext 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2373 $as_echo "$ac_header_preproc" >&6; } 2374 2375 # So? What about this header? 2376 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2377 yes:no: ) 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2379 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2381 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2382 ;; 2383 no:yes:* ) 2384 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2385 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2387 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2389 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2391 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2393 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2394 ( $as_echo "## ----------------------------------------- ## 2395 ## Report this to build-dev@openjdk.java.net ## 2396 ## ----------------------------------------- ##" 2397 ) | sed "s/^/$as_me: WARNING: /" >&2 2398 ;; 2399 esac 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2401 $as_echo_n "checking for $2... " >&6; } 2402 if eval \${$3+:} false; then : 2403 $as_echo_n "(cached) " >&6 2404 else 2405 eval "$3=\$ac_header_compiler" 2406 fi 2407 eval ac_res=\$$3 2408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2409 $as_echo "$ac_res" >&6; } 2410 fi 2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2412 2413 } # ac_fn_cxx_check_header_mongrel 2414 2415 # ac_fn_cxx_try_run LINENO 2416 # ------------------------ 2417 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2418 # that executables *can* be run. 2419 ac_fn_cxx_try_run () 2420 { 2421 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2422 if { { ac_try="$ac_link" 2423 case "(($ac_try" in 2424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2425 *) ac_try_echo=$ac_try;; 2426 esac 2427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2428 $as_echo "$ac_try_echo"; } >&5 2429 (eval "$ac_link") 2>&5 2430 ac_status=$? 2431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2432 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2433 { { case "(($ac_try" in 2434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2435 *) ac_try_echo=$ac_try;; 2436 esac 2437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2438 $as_echo "$ac_try_echo"; } >&5 2439 (eval "$ac_try") 2>&5 2440 ac_status=$? 2441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2442 test $ac_status = 0; }; }; then : 2443 ac_retval=0 2444 else 2445 $as_echo "$as_me: program exited with status $ac_status" >&5 2446 $as_echo "$as_me: failed program was:" >&5 2447 sed 's/^/| /' conftest.$ac_ext >&5 2448 2449 ac_retval=$ac_status 2450 fi 2451 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2453 as_fn_set_status $ac_retval 2454 2455 } # ac_fn_cxx_try_run 2456 2457 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2458 # --------------------------------------------------------- 2459 # Tests whether HEADER exists and can be compiled using the include files in 2460 # INCLUDES, setting the cache variable VAR accordingly. 2461 ac_fn_cxx_check_header_compile () 2462 { 2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2465 $as_echo_n "checking for $2... " >&6; } 2466 if eval \${$3+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468 else 2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2470 /* end confdefs.h. */ 2471 $4 2472 #include <$2> 2473 _ACEOF 2474 if ac_fn_cxx_try_compile "$LINENO"; then : 2475 eval "$3=yes" 2476 else 2477 eval "$3=no" 2478 fi 2479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2480 fi 2481 eval ac_res=\$$3 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2483 $as_echo "$ac_res" >&6; } 2484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2485 2486 } # ac_fn_cxx_check_header_compile 2487 2488 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2489 # ---------------------------------------------- 2490 # Tries to find the compile-time value of EXPR in a program that includes 2491 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2492 # computed 2493 ac_fn_cxx_compute_int () 2494 { 2495 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2496 if test "$cross_compiling" = yes; then 2497 # Depending upon the size, compute the lo and hi bounds. 2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2499 /* end confdefs.h. */ 2500 $4 2501 int 2502 main () 2503 { 2504 static int test_array [1 - 2 * !(($2) >= 0)]; 2505 test_array [0] = 0; 2506 return test_array [0]; 2507 2508 ; 2509 return 0; 2510 } 2511 _ACEOF 2512 if ac_fn_cxx_try_compile "$LINENO"; then : 2513 ac_lo=0 ac_mid=0 2514 while :; do 2515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2516 /* end confdefs.h. */ 2517 $4 2518 int 2519 main () 2520 { 2521 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2522 test_array [0] = 0; 2523 return test_array [0]; 2524 2525 ; 2526 return 0; 2527 } 2528 _ACEOF 2529 if ac_fn_cxx_try_compile "$LINENO"; then : 2530 ac_hi=$ac_mid; break 2531 else 2532 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2533 if test $ac_lo -le $ac_mid; then 2534 ac_lo= ac_hi= 2535 break 2536 fi 2537 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2538 fi 2539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2540 done 2541 else 2542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2543 /* end confdefs.h. */ 2544 $4 2545 int 2546 main () 2547 { 2548 static int test_array [1 - 2 * !(($2) < 0)]; 2549 test_array [0] = 0; 2550 return test_array [0]; 2551 2552 ; 2553 return 0; 2554 } 2555 _ACEOF 2556 if ac_fn_cxx_try_compile "$LINENO"; then : 2557 ac_hi=-1 ac_mid=-1 2558 while :; do 2559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2560 /* end confdefs.h. */ 2561 $4 2562 int 2563 main () 2564 { 2565 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2566 test_array [0] = 0; 2567 return test_array [0]; 2568 2569 ; 2570 return 0; 2571 } 2572 _ACEOF 2573 if ac_fn_cxx_try_compile "$LINENO"; then : 2574 ac_lo=$ac_mid; break 2575 else 2576 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2577 if test $ac_mid -le $ac_hi; then 2578 ac_lo= ac_hi= 2579 break 2580 fi 2581 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2582 fi 2583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2584 done 2585 else 2586 ac_lo= ac_hi= 2587 fi 2588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2589 fi 2590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2591 # Binary search between lo and hi bounds. 2592 while test "x$ac_lo" != "x$ac_hi"; do 2593 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2595 /* end confdefs.h. */ 2596 $4 2597 int 2598 main () 2599 { 2600 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2601 test_array [0] = 0; 2602 return test_array [0]; 2603 2604 ; 2605 return 0; 2606 } 2607 _ACEOF 2608 if ac_fn_cxx_try_compile "$LINENO"; then : 2609 ac_hi=$ac_mid 2610 else 2611 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2612 fi 2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2614 done 2615 case $ac_lo in #(( 2616 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2617 '') ac_retval=1 ;; 2618 esac 2619 else 2620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2621 /* end confdefs.h. */ 2622 $4 2623 static long int longval () { return $2; } 2624 static unsigned long int ulongval () { return $2; } 2625 #include <stdio.h> 2626 #include <stdlib.h> 2627 int 2628 main () 2629 { 2630 2631 FILE *f = fopen ("conftest.val", "w"); 2632 if (! f) 2633 return 1; 2634 if (($2) < 0) 2635 { 2636 long int i = longval (); 2637 if (i != ($2)) 2638 return 1; 2639 fprintf (f, "%ld", i); 2640 } 2641 else 2642 { 2643 unsigned long int i = ulongval (); 2644 if (i != ($2)) 2645 return 1; 2646 fprintf (f, "%lu", i); 2647 } 2648 /* Do not output a trailing newline, as this causes \r\n confusion 2649 on some platforms. */ 2650 return ferror (f) || fclose (f) != 0; 2651 2652 ; 2653 return 0; 2654 } 2655 _ACEOF 2656 if ac_fn_cxx_try_run "$LINENO"; then : 2657 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2658 else 2659 ac_retval=1 2660 fi 2661 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2662 conftest.$ac_objext conftest.beam conftest.$ac_ext 2663 rm -f conftest.val 2664 2665 fi 2666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2667 as_fn_set_status $ac_retval 2668 2669 } # ac_fn_cxx_compute_int 2670 2671 # ac_fn_cxx_try_link LINENO 2672 # ------------------------- 2673 # Try to link conftest.$ac_ext, and return whether this succeeded. 2674 ac_fn_cxx_try_link () 2675 { 2676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2677 rm -f conftest.$ac_objext conftest$ac_exeext 2678 if { { ac_try="$ac_link" 2679 case "(($ac_try" in 2680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2681 *) ac_try_echo=$ac_try;; 2682 esac 2683 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2684 $as_echo "$ac_try_echo"; } >&5 2685 (eval "$ac_link") 2>conftest.err 2686 ac_status=$? 2687 if test -s conftest.err; then 2688 grep -v '^ *+' conftest.err >conftest.er1 2689 cat conftest.er1 >&5 2690 mv -f conftest.er1 conftest.err 2691 fi 2692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2693 test $ac_status = 0; } && { 2694 test -z "$ac_cxx_werror_flag" || 2695 test ! -s conftest.err 2696 } && test -s conftest$ac_exeext && { 2697 test "$cross_compiling" = yes || 2698 test -x conftest$ac_exeext 2699 }; then : 2700 ac_retval=0 2701 else 2702 $as_echo "$as_me: failed program was:" >&5 2703 sed 's/^/| /' conftest.$ac_ext >&5 2704 2705 ac_retval=1 2706 fi 2707 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2708 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2709 # interfere with the next link command; also delete a directory that is 2710 # left behind by Apple's compiler. We do this before executing the actions. 2711 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2712 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2713 as_fn_set_status $ac_retval 2714 2715 } # ac_fn_cxx_try_link 2716 2717 # ac_fn_cxx_check_func LINENO FUNC VAR 2718 # ------------------------------------ 2719 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2720 ac_fn_cxx_check_func () 2721 { 2722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2724 $as_echo_n "checking for $2... " >&6; } 2725 if eval \${$3+:} false; then : 2726 $as_echo_n "(cached) " >&6 2727 else 2728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2729 /* end confdefs.h. */ 2730 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2731 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2732 #define $2 innocuous_$2 2733 2734 /* System header to define __stub macros and hopefully few prototypes, 2735 which can conflict with char $2 (); below. 2736 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2737 <limits.h> exists even on freestanding compilers. */ 2738 2739 #ifdef __STDC__ 2740 # include <limits.h> 2741 #else 2742 # include <assert.h> 2743 #endif 2744 2745 #undef $2 2746 2747 /* Override any GCC internal prototype to avoid an error. 2748 Use char because int might match the return type of a GCC 2749 builtin and then its argument prototype would still apply. */ 2750 #ifdef __cplusplus 2751 extern "C" 2752 #endif 2753 char $2 (); 2754 /* The GNU C library defines this for functions which it implements 2755 to always fail with ENOSYS. Some functions are actually named 2756 something starting with __ and the normal name is an alias. */ 2757 #if defined __stub_$2 || defined __stub___$2 2758 choke me 2759 #endif 2760 2761 int 2762 main () 2763 { 2764 return $2 (); 2765 ; 2766 return 0; 2767 } 2768 _ACEOF 2769 if ac_fn_cxx_try_link "$LINENO"; then : 2770 eval "$3=yes" 2771 else 2772 eval "$3=no" 2773 fi 2774 rm -f core conftest.err conftest.$ac_objext \ 2775 conftest$ac_exeext conftest.$ac_ext 2776 fi 2777 eval ac_res=\$$3 2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2779 $as_echo "$ac_res" >&6; } 2780 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2781 2782 } # ac_fn_cxx_check_func 2783 2784 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2785 # ------------------------------------------------------- 2786 # Tests whether HEADER exists and can be compiled using the include files in 2787 # INCLUDES, setting the cache variable VAR accordingly. 2788 ac_fn_c_check_header_compile () 2789 { 2790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2792 $as_echo_n "checking for $2... " >&6; } 2793 if eval \${$3+:} false; then : 2794 $as_echo_n "(cached) " >&6 2795 else 2796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2797 /* end confdefs.h. */ 2798 $4 2799 #include <$2> 2800 _ACEOF 2801 if ac_fn_c_try_compile "$LINENO"; then : 2802 eval "$3=yes" 2803 else 2804 eval "$3=no" 2805 fi 2806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2807 fi 2808 eval ac_res=\$$3 2809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2810 $as_echo "$ac_res" >&6; } 2811 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2812 2813 } # ac_fn_c_check_header_compile 2814 cat >config.log <<_ACEOF 2815 This file contains any messages produced by compilers while 2816 running configure, to aid debugging if configure makes a mistake. 2817 2818 It was created by OpenJDK $as_me jdk8, which was 2819 generated by GNU Autoconf 2.69. Invocation command line was 2820 2821 $ $0 $@ 2822 2823 _ACEOF 2824 exec 5>>config.log 2825 { 2826 cat <<_ASUNAME 2827 ## --------- ## 2828 ## Platform. ## 2829 ## --------- ## 2830 2831 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2832 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2833 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2834 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2835 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2836 2837 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2838 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2839 2840 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2841 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2842 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2843 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2844 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2845 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2846 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2847 2848 _ASUNAME 2849 2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2851 for as_dir in $PATH 2852 do 2853 IFS=$as_save_IFS 2854 test -z "$as_dir" && as_dir=. 2855 $as_echo "PATH: $as_dir" 2856 done 2857 IFS=$as_save_IFS 2858 2859 } >&5 2860 2861 cat >&5 <<_ACEOF 2862 2863 2864 ## ----------- ## 2865 ## Core tests. ## 2866 ## ----------- ## 2867 2868 _ACEOF 2869 2870 2871 # Keep a trace of the command line. 2872 # Strip out --no-create and --no-recursion so they do not pile up. 2873 # Strip out --silent because we don't want to record it for future runs. 2874 # Also quote any args containing shell meta-characters. 2875 # Make two passes to allow for proper duplicate-argument suppression. 2876 ac_configure_args= 2877 ac_configure_args0= 2878 ac_configure_args1= 2879 ac_must_keep_next=false 2880 for ac_pass in 1 2 2881 do 2882 for ac_arg 2883 do 2884 case $ac_arg in 2885 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2886 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2887 | -silent | --silent | --silen | --sile | --sil) 2888 continue ;; 2889 *\'*) 2890 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2891 esac 2892 case $ac_pass in 2893 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2894 2) 2895 as_fn_append ac_configure_args1 " '$ac_arg'" 2896 if test $ac_must_keep_next = true; then 2897 ac_must_keep_next=false # Got value, back to normal. 2898 else 2899 case $ac_arg in 2900 *=* | --config-cache | -C | -disable-* | --disable-* \ 2901 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2902 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2903 | -with-* | --with-* | -without-* | --without-* | --x) 2904 case "$ac_configure_args0 " in 2905 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2906 esac 2907 ;; 2908 -* ) ac_must_keep_next=true ;; 2909 esac 2910 fi 2911 as_fn_append ac_configure_args " '$ac_arg'" 2912 ;; 2913 esac 2914 done 2915 done 2916 { ac_configure_args0=; unset ac_configure_args0;} 2917 { ac_configure_args1=; unset ac_configure_args1;} 2918 2919 # When interrupted or exit'd, cleanup temporary files, and complete 2920 # config.log. We remove comments because anyway the quotes in there 2921 # would cause problems or look ugly. 2922 # WARNING: Use '\'' to represent an apostrophe within the trap. 2923 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2924 trap 'exit_status=$? 2925 # Save into config.log some information that might help in debugging. 2926 { 2927 echo 2928 2929 $as_echo "## ---------------- ## 2930 ## Cache variables. ## 2931 ## ---------------- ##" 2932 echo 2933 # The following way of writing the cache mishandles newlines in values, 2934 ( 2935 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2936 eval ac_val=\$$ac_var 2937 case $ac_val in #( 2938 *${as_nl}*) 2939 case $ac_var in #( 2940 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2941 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2942 esac 2943 case $ac_var in #( 2944 _ | IFS | as_nl) ;; #( 2945 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2946 *) { eval $ac_var=; unset $ac_var;} ;; 2947 esac ;; 2948 esac 2949 done 2950 (set) 2>&1 | 2951 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2952 *${as_nl}ac_space=\ *) 2953 sed -n \ 2954 "s/'\''/'\''\\\\'\'''\''/g; 2955 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2956 ;; #( 2957 *) 2958 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2959 ;; 2960 esac | 2961 sort 2962 ) 2963 echo 2964 2965 $as_echo "## ----------------- ## 2966 ## Output variables. ## 2967 ## ----------------- ##" 2968 echo 2969 for ac_var in $ac_subst_vars 2970 do 2971 eval ac_val=\$$ac_var 2972 case $ac_val in 2973 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2974 esac 2975 $as_echo "$ac_var='\''$ac_val'\''" 2976 done | sort 2977 echo 2978 2979 if test -n "$ac_subst_files"; then 2980 $as_echo "## ------------------- ## 2981 ## File substitutions. ## 2982 ## ------------------- ##" 2983 echo 2984 for ac_var in $ac_subst_files 2985 do 2986 eval ac_val=\$$ac_var 2987 case $ac_val in 2988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2989 esac 2990 $as_echo "$ac_var='\''$ac_val'\''" 2991 done | sort 2992 echo 2993 fi 2994 2995 if test -s confdefs.h; then 2996 $as_echo "## ----------- ## 2997 ## confdefs.h. ## 2998 ## ----------- ##" 2999 echo 3000 cat confdefs.h 3001 echo 3002 fi 3003 test "$ac_signal" != 0 && 3004 $as_echo "$as_me: caught signal $ac_signal" 3005 $as_echo "$as_me: exit $exit_status" 3006 } >&5 3007 rm -f core *.core core.conftest.* && 3008 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3009 exit $exit_status 3010 ' 0 3011 for ac_signal in 1 2 13 15; do 3012 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3013 done 3014 ac_signal=0 3015 3016 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3017 rm -f -r conftest* confdefs.h 3018 3019 $as_echo "/* confdefs.h */" > confdefs.h 3020 3021 # Predefined preprocessor variables. 3022 3023 cat >>confdefs.h <<_ACEOF 3024 #define PACKAGE_NAME "$PACKAGE_NAME" 3025 _ACEOF 3026 3027 cat >>confdefs.h <<_ACEOF 3028 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3029 _ACEOF 3030 3031 cat >>confdefs.h <<_ACEOF 3032 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3033 _ACEOF 3034 3035 cat >>confdefs.h <<_ACEOF 3036 #define PACKAGE_STRING "$PACKAGE_STRING" 3037 _ACEOF 3038 3039 cat >>confdefs.h <<_ACEOF 3040 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3041 _ACEOF 3042 3043 cat >>confdefs.h <<_ACEOF 3044 #define PACKAGE_URL "$PACKAGE_URL" 3045 _ACEOF 3046 3047 3048 # Let the site file select an alternate cache file if it wants to. 3049 # Prefer an explicitly selected file to automatically selected ones. 3050 ac_site_file1=NONE 3051 ac_site_file2=NONE 3052 if test -n "$CONFIG_SITE"; then 3053 # We do not want a PATH search for config.site. 3054 case $CONFIG_SITE in #(( 3055 -*) ac_site_file1=./$CONFIG_SITE;; 3056 */*) ac_site_file1=$CONFIG_SITE;; 3057 *) ac_site_file1=./$CONFIG_SITE;; 3058 esac 3059 elif test "x$prefix" != xNONE; then 3060 ac_site_file1=$prefix/share/config.site 3061 ac_site_file2=$prefix/etc/config.site 3062 else 3063 ac_site_file1=$ac_default_prefix/share/config.site 3064 ac_site_file2=$ac_default_prefix/etc/config.site 3065 fi 3066 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3067 do 3068 test "x$ac_site_file" = xNONE && continue 3069 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3071 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3072 sed 's/^/| /' "$ac_site_file" >&5 3073 . "$ac_site_file" \ 3074 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3076 as_fn_error $? "failed to load site script $ac_site_file 3077 See \`config.log' for more details" "$LINENO" 5; } 3078 fi 3079 done 3080 3081 if test -r "$cache_file"; then 3082 # Some versions of bash will fail to source /dev/null (special files 3083 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3084 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3085 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3086 $as_echo "$as_me: loading cache $cache_file" >&6;} 3087 case $cache_file in 3088 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3089 *) . "./$cache_file";; 3090 esac 3091 fi 3092 else 3093 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3094 $as_echo "$as_me: creating cache $cache_file" >&6;} 3095 >$cache_file 3096 fi 3097 3098 # Check that the precious variables saved in the cache have kept the same 3099 # value. 3100 ac_cache_corrupted=false 3101 for ac_var in $ac_precious_vars; do 3102 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3103 eval ac_new_set=\$ac_env_${ac_var}_set 3104 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3105 eval ac_new_val=\$ac_env_${ac_var}_value 3106 case $ac_old_set,$ac_new_set in 3107 set,) 3108 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3109 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3110 ac_cache_corrupted=: ;; 3111 ,set) 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3113 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3114 ac_cache_corrupted=: ;; 3115 ,);; 3116 *) 3117 if test "x$ac_old_val" != "x$ac_new_val"; then 3118 # differences in whitespace do not lead to failure. 3119 ac_old_val_w=`echo x $ac_old_val` 3120 ac_new_val_w=`echo x $ac_new_val` 3121 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3123 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3124 ac_cache_corrupted=: 3125 else 3126 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3127 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3128 eval $ac_var=\$ac_old_val 3129 fi 3130 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3131 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3132 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3133 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3134 fi;; 3135 esac 3136 # Pass precious variables to config.status. 3137 if test "$ac_new_set" = set; then 3138 case $ac_new_val in 3139 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3140 *) ac_arg=$ac_var=$ac_new_val ;; 3141 esac 3142 case " $ac_configure_args " in 3143 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3144 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3145 esac 3146 fi 3147 done 3148 if $ac_cache_corrupted; then 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3150 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3152 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3153 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3154 fi 3155 ## -------------------- ## 3156 ## Main body of script. ## 3157 ## -------------------- ## 3158 3159 ac_ext=c 3160 ac_cpp='$CPP $CPPFLAGS' 3161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3163 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3164 3165 3166 3167 ac_aux_dir= 3168 for ac_dir in build-aux "$srcdir"/build-aux; do 3169 if test -f "$ac_dir/install-sh"; then 3170 ac_aux_dir=$ac_dir 3171 ac_install_sh="$ac_aux_dir/install-sh -c" 3172 break 3173 elif test -f "$ac_dir/install.sh"; then 3174 ac_aux_dir=$ac_dir 3175 ac_install_sh="$ac_aux_dir/install.sh -c" 3176 break 3177 elif test -f "$ac_dir/shtool"; then 3178 ac_aux_dir=$ac_dir 3179 ac_install_sh="$ac_aux_dir/shtool install -c" 3180 break 3181 fi 3182 done 3183 if test -z "$ac_aux_dir"; then 3184 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 3185 fi 3186 3187 # These three variables are undocumented and unsupported, 3188 # and are intended to be withdrawn in a future Autoconf release. 3189 # They can cause serious problems if a builder's source tree is in a directory 3190 # whose full name contains unusual characters. 3191 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3192 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3193 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3194 3195 3196 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3197 3198 # 3199 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3200 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3201 # 3202 # This code is free software; you can redistribute it and/or modify it 3203 # under the terms of the GNU General Public License version 2 only, as 3204 # published by the Free Software Foundation. Oracle designates this 3205 # particular file as subject to the "Classpath" exception as provided 3206 # by Oracle in the LICENSE file that accompanied this code. 3207 # 3208 # This code is distributed in the hope that it will be useful, but WITHOUT 3209 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3210 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3211 # version 2 for more details (a copy is included in the LICENSE file that 3212 # accompanied this code). 3213 # 3214 # You should have received a copy of the GNU General Public License version 3215 # 2 along with this work; if not, write to the Free Software Foundation, 3216 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3217 # 3218 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3219 # or visit www.oracle.com if you need additional information or have any 3220 # questions. 3221 # 3222 3223 # 3224 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3225 # 3226 # This program is free software; you can redistribute it and/or modify 3227 # it under the terms of the GNU General Public License as published by 3228 # the Free Software Foundation; either version 2 of the License, or 3229 # (at your option) any later version. 3230 # 3231 # This program is distributed in the hope that it will be useful, but 3232 # WITHOUT ANY WARRANTY; without even the implied warranty of 3233 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3234 # General Public License for more details. 3235 # 3236 # You should have received a copy of the GNU General Public License 3237 # along with this program; if not, write to the Free Software 3238 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3239 # 3240 # As a special exception to the GNU General Public License, if you 3241 # distribute this file as part of a program that contains a 3242 # configuration script generated by Autoconf, you may include it under 3243 # the same distribution terms that you use for the rest of that program. 3244 3245 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3246 # ---------------------------------- 3247 # PKG_PROG_PKG_CONFIG 3248 3249 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3250 # 3251 # Check to see whether a particular set of modules exists. Similar 3252 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3253 # 3254 # 3255 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3256 # this or PKG_CHECK_MODULES is called, or make sure to call 3257 # PKG_CHECK_EXISTS manually 3258 # -------------------------------------------------------------- 3259 3260 3261 3262 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3263 # --------------------------------------------- 3264 # _PKG_CONFIG 3265 3266 # _PKG_SHORT_ERRORS_SUPPORTED 3267 # ----------------------------- 3268 # _PKG_SHORT_ERRORS_SUPPORTED 3269 3270 3271 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3272 # [ACTION-IF-NOT-FOUND]) 3273 # 3274 # 3275 # Note that if there is a possibility the first call to 3276 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3277 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3278 # 3279 # 3280 # -------------------------------------------------------------- 3281 # PKG_CHECK_MODULES 3282 3283 3284 # Include these first... 3285 # 3286 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 3287 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3288 # 3289 # This code is free software; you can redistribute it and/or modify it 3290 # under the terms of the GNU General Public License version 2 only, as 3291 # published by the Free Software Foundation. Oracle designates this 3292 # particular file as subject to the "Classpath" exception as provided 3293 # by Oracle in the LICENSE file that accompanied this code. 3294 # 3295 # This code is distributed in the hope that it will be useful, but WITHOUT 3296 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3297 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3298 # version 2 for more details (a copy is included in the LICENSE file that 3299 # accompanied this code). 3300 # 3301 # You should have received a copy of the GNU General Public License version 3302 # 2 along with this work; if not, write to the Free Software Foundation, 3303 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3304 # 3305 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3306 # or visit www.oracle.com if you need additional information or have any 3307 # questions. 3308 # 3309 3310 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3311 # If so, then append $1 to $2 \ 3312 # Also set JVM_ARG_OK to true/false depending on outcome. 3313 3314 3315 # Appends a string to a path variable, only adding the : when needed. 3316 3317 3318 # This will make sure the given variable points to a full and proper 3319 # path. This means: 3320 # 1) There will be no spaces in the path. On posix platforms, 3321 # spaces in the path will result in an error. On Windows, 3322 # the path will be rewritten using short-style to be space-free. 3323 # 2) The path will be absolute, and it will be in unix-style (on 3324 # cygwin). 3325 # $1: The name of the variable to fix 3326 3327 3328 # This will make sure the given variable points to a executable 3329 # with a full and proper path. This means: 3330 # 1) There will be no spaces in the path. On posix platforms, 3331 # spaces in the path will result in an error. On Windows, 3332 # the path will be rewritten using short-style to be space-free. 3333 # 2) The path will be absolute, and it will be in unix-style (on 3334 # cygwin). 3335 # Any arguments given to the executable is preserved. 3336 # If the input variable does not have a directory specification, then 3337 # it need to be in the PATH. 3338 # $1: The name of the variable to fix 3339 3340 3341 3342 3343 # Register a --with argument but mark it as deprecated 3344 # $1: The name of the with argument to deprecate, not including --with- 3345 3346 3347 # Register a --enable argument but mark it as deprecated 3348 # $1: The name of the with argument to deprecate, not including --enable- 3349 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3350 3351 3352 3353 3354 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3355 # $1: variable to check 3356 3357 3358 # Check that there are no unprocessed overridden variables left. 3359 # If so, they are an incorrect argument and we will exit with an error. 3360 3361 3362 # Setup a tool for the given variable. If correctly specified by the user, 3363 # use that value, otherwise search for the tool using the supplied code snippet. 3364 # $1: variable to set 3365 # $2: code snippet to call to look for the tool 3366 3367 3368 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3369 # $1: variable to set 3370 # $2: executable name (or list of names) to look for 3371 3372 3373 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3374 # $1: variable to set 3375 # $2: executable name (or list of names) to look for 3376 3377 3378 # Like BASIC_PATH_PROGS but fails if no tool was found. 3379 # $1: variable to set 3380 # $2: executable name (or list of names) to look for 3381 3382 3383 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3384 # $1: variable to set 3385 # $2: autoconf macro to call to look for the special tool 3386 3387 3388 # Setup the most fundamental tools that relies on not much else to set up, 3389 # but is used by much of the early bootstrap code. 3390 3391 3392 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3393 3394 3395 3396 3397 3398 3399 3400 #%%% Simple tools %%% 3401 3402 # Check if we have found a usable version of make 3403 # $1: the path to a potential make binary (or empty) 3404 # $2: the description on how we found this 3405 3406 3407 # Goes looking for a usable version of GNU make. 3408 3409 3410 3411 3412 3413 3414 # Check if build directory is on local disk. If not possible to determine, 3415 # we prefer to claim it's local. 3416 # Argument 1: directory to test 3417 # Argument 2: what to do if it is on local disk 3418 # Argument 3: what to do otherwise (remote disk or failure) 3419 3420 3421 # Check that source files have basic read permissions set. This might 3422 # not be the case in cygwin in certain conditions. 3423 3424 3425 3426 3427 # 3428 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3429 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3430 # 3431 # This code is free software; you can redistribute it and/or modify it 3432 # under the terms of the GNU General Public License version 2 only, as 3433 # published by the Free Software Foundation. Oracle designates this 3434 # particular file as subject to the "Classpath" exception as provided 3435 # by Oracle in the LICENSE file that accompanied this code. 3436 # 3437 # This code is distributed in the hope that it will be useful, but WITHOUT 3438 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3439 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3440 # version 2 for more details (a copy is included in the LICENSE file that 3441 # accompanied this code). 3442 # 3443 # You should have received a copy of the GNU General Public License version 3444 # 2 along with this work; if not, write to the Free Software Foundation, 3445 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3446 # 3447 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3448 # or visit www.oracle.com if you need additional information or have any 3449 # questions. 3450 # 3451 3452 3453 3454 3455 3456 # Helper function which possibly converts a path using DOS-style short mode. 3457 # If so, the updated path is stored in $new_path. 3458 # $1: The path to check 3459 3460 3461 # Helper function which possibly converts a path using DOS-style short mode. 3462 # If so, the updated path is stored in $new_path. 3463 # $1: The path to check 3464 3465 3466 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3467 # and could probably be heavily simplified. However, all changes in this 3468 # area tend to need lot of testing in different scenarios, and in lack of 3469 # proper unit testing, cleaning this up has not been deemed worth the effort 3470 # at the moment. 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3481 3482 3483 3484 3485 # 3486 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3487 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3488 # 3489 # This code is free software; you can redistribute it and/or modify it 3490 # under the terms of the GNU General Public License version 2 only, as 3491 # published by the Free Software Foundation. Oracle designates this 3492 # particular file as subject to the "Classpath" exception as provided 3493 # by Oracle in the LICENSE file that accompanied this code. 3494 # 3495 # This code is distributed in the hope that it will be useful, but WITHOUT 3496 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3497 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3498 # version 2 for more details (a copy is included in the LICENSE file that 3499 # accompanied this code). 3500 # 3501 # You should have received a copy of the GNU General Public License version 3502 # 2 along with this work; if not, write to the Free Software Foundation, 3503 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3504 # 3505 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3506 # or visit www.oracle.com if you need additional information or have any 3507 # questions. 3508 # 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 # ... then the rest 3521 # 3522 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3523 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3524 # 3525 # This code is free software; you can redistribute it and/or modify it 3526 # under the terms of the GNU General Public License version 2 only, as 3527 # published by the Free Software Foundation. Oracle designates this 3528 # particular file as subject to the "Classpath" exception as provided 3529 # by Oracle in the LICENSE file that accompanied this code. 3530 # 3531 # This code is distributed in the hope that it will be useful, but WITHOUT 3532 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3533 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3534 # version 2 for more details (a copy is included in the LICENSE file that 3535 # accompanied this code). 3536 # 3537 # You should have received a copy of the GNU General Public License version 3538 # 2 along with this work; if not, write to the Free Software Foundation, 3539 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3540 # 3541 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3542 # or visit www.oracle.com if you need additional information or have any 3543 # questions. 3544 # 3545 3546 ######################################################################## 3547 # This file handles detection of the Boot JDK. The Boot JDK detection 3548 # process has been developed as a response to solve a complex real-world 3549 # problem. Initially, it was simple, but it has grown as platform after 3550 # platform, idiosyncracy after idiosyncracy has been supported. 3551 # 3552 # The basic idea is this: 3553 # 1) You need an acceptable *) JDK to use as a Boot JDK 3554 # 2) There are several ways to locate a JDK, that are mostly platform 3555 # dependent **) 3556 # 3) You can have multiple JDKs installed 3557 # 4) If possible, configure should try to dig out an acceptable JDK 3558 # automatically, without having to resort to command-line options 3559 # 3560 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3561 # javac) and not a JRE, etc. 3562 # 3563 # **) On Windows we typically use a well-known path. 3564 # On MacOSX we typically use the tool java_home. 3565 # On Linux we typically find javac in the $PATH, and then follow a 3566 # chain of symlinks that often ends up in a real JDK. 3567 # 3568 # This leads to the code where we check in different ways to locate a 3569 # JDK, and if one is found, check if it is acceptable. If not, we print 3570 # our reasons for rejecting it (useful when debugging non-working 3571 # configure situations) and continue checking the next one. 3572 ######################################################################## 3573 3574 # Execute the check given as argument, and verify the result 3575 # If the Boot JDK was previously found, do nothing 3576 # $1 A command line (typically autoconf macro) to execute 3577 3578 3579 # Test: Is bootjdk explicitely set by command line arguments? 3580 3581 3582 # Test: Is bootjdk available from builddeps? 3583 3584 3585 # Test: Is $JAVA_HOME set? 3586 3587 3588 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3589 3590 3591 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3592 # $1: Argument to the java_home binary (optional) 3593 3594 3595 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3596 3597 3598 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3599 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3600 # $1 = Path to directory containing jdk installations. 3601 # $2 = String to append to the found JDK directory to get the proper JDK home 3602 3603 3604 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3605 # environmental variable as base for where to look. 3606 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3607 3608 3609 # Test: Is there a JDK installed in default, well-known locations? 3610 3611 3612 # Check that a command-line tool in the Boot JDK is correct 3613 # $1 = name of variable to assign 3614 # $2 = name of binary 3615 3616 3617 ############################################################################### 3618 # 3619 # We need a Boot JDK to bootstrap the build. 3620 # 3621 3622 3623 3624 3625 3626 # 3627 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3628 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3629 # 3630 # This code is free software; you can redistribute it and/or modify it 3631 # under the terms of the GNU General Public License version 2 only, as 3632 # published by the Free Software Foundation. Oracle designates this 3633 # particular file as subject to the "Classpath" exception as provided 3634 # by Oracle in the LICENSE file that accompanied this code. 3635 # 3636 # This code is distributed in the hope that it will be useful, but WITHOUT 3637 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3638 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3639 # version 2 for more details (a copy is included in the LICENSE file that 3640 # accompanied this code). 3641 # 3642 # You should have received a copy of the GNU General Public License version 3643 # 2 along with this work; if not, write to the Free Software Foundation, 3644 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3645 # 3646 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3647 # or visit www.oracle.com if you need additional information or have any 3648 # questions. 3649 # 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 # 3671 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3672 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3673 # 3674 # This code is free software; you can redistribute it and/or modify it 3675 # under the terms of the GNU General Public License version 2 only, as 3676 # published by the Free Software Foundation. Oracle designates this 3677 # particular file as subject to the "Classpath" exception as provided 3678 # by Oracle in the LICENSE file that accompanied this code. 3679 # 3680 # This code is distributed in the hope that it will be useful, but WITHOUT 3681 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3682 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3683 # version 2 for more details (a copy is included in the LICENSE file that 3684 # accompanied this code). 3685 # 3686 # You should have received a copy of the GNU General Public License version 3687 # 2 along with this work; if not, write to the Free Software Foundation, 3688 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3689 # 3690 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3691 # or visit www.oracle.com if you need additional information or have any 3692 # questions. 3693 # 3694 3695 3696 3697 3698 3699 cygwin_help() { 3700 case $1 in 3701 unzip) 3702 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3703 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3704 ;; 3705 zip) 3706 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3707 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3708 ;; 3709 make) 3710 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3711 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3712 ;; 3713 freetype) 3714 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3715 HELP_MSG="To install freetype, run: 3716 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3717 chmod +x /tmp/freetype-setup.exe 3718 /tmp/freetype-setup.exe 3719 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3720 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3721 else 3722 HELP_MSG="You need to build a 64-bit version of freetype. 3723 This is not readily available. 3724 You can find source code and build instructions on 3725 http://www.freetype.org/ 3726 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3727 fi 3728 ;; 3729 esac 3730 } 3731 3732 msys_help() { 3733 PKGHANDLER_COMMAND="" 3734 } 3735 3736 apt_help() { 3737 case $1 in 3738 devkit) 3739 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3740 openjdk) 3741 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3742 alsa) 3743 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3744 cups) 3745 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3746 freetype) 3747 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3748 pulse) 3749 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3750 x11) 3751 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3752 ccache) 3753 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3754 esac 3755 } 3756 3757 yum_help() { 3758 case $1 in 3759 devkit) 3760 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3761 openjdk) 3762 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3763 alsa) 3764 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3765 cups) 3766 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3767 freetype) 3768 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3769 pulse) 3770 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3771 x11) 3772 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3773 ccache) 3774 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3775 esac 3776 } 3777 3778 port_help() { 3779 PKGHANDLER_COMMAND="" 3780 } 3781 3782 pkgutil_help() { 3783 PKGHANDLER_COMMAND="" 3784 } 3785 3786 pkgadd_help() { 3787 PKGHANDLER_COMMAND="" 3788 } 3789 3790 3791 3792 # 3793 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved. 3794 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3795 # 3796 # This code is free software; you can redistribute it and/or modify it 3797 # under the terms of the GNU General Public License version 2 only, as 3798 # published by the Free Software Foundation. Oracle designates this 3799 # particular file as subject to the "Classpath" exception as provided 3800 # by Oracle in the LICENSE file that accompanied this code. 3801 # 3802 # This code is distributed in the hope that it will be useful, but WITHOUT 3803 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3804 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3805 # version 2 for more details (a copy is included in the LICENSE file that 3806 # accompanied this code). 3807 # 3808 # You should have received a copy of the GNU General Public License version 3809 # 2 along with this work; if not, write to the Free Software Foundation, 3810 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3811 # 3812 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3813 # or visit www.oracle.com if you need additional information or have any 3814 # questions. 3815 # 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 ############################################################################### 3827 # 3828 # Should we build only OpenJDK even if closed sources are present? 3829 # 3830 3831 3832 3833 3834 ############################################################################### 3835 # 3836 # Setup version numbers 3837 # 3838 3839 3840 3841 3842 3843 3844 # Support for customization of the build process. Some build files 3845 # will include counterparts from this location, if they exist. This allows 3846 # for a degree of customization of the build targets and the rules/recipes 3847 # to create them 3848 3849 # Check whether --with-custom-make-dir was given. 3850 if test "${with_custom_make_dir+set}" = set; then : 3851 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3852 fi 3853 3854 3855 3856 # 3857 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3858 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3859 # 3860 # This code is free software; you can redistribute it and/or modify it 3861 # under the terms of the GNU General Public License version 2 only, as 3862 # published by the Free Software Foundation. Oracle designates this 3863 # particular file as subject to the "Classpath" exception as provided 3864 # by Oracle in the LICENSE file that accompanied this code. 3865 # 3866 # This code is distributed in the hope that it will be useful, but WITHOUT 3867 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3868 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3869 # version 2 for more details (a copy is included in the LICENSE file that 3870 # accompanied this code). 3871 # 3872 # You should have received a copy of the GNU General Public License version 3873 # 2 along with this work; if not, write to the Free Software Foundation, 3874 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3875 # 3876 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3877 # or visit www.oracle.com if you need additional information or have any 3878 # questions. 3879 # 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 # 3898 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3899 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3900 # 3901 # This code is free software; you can redistribute it and/or modify it 3902 # under the terms of the GNU General Public License version 2 only, as 3903 # published by the Free Software Foundation. Oracle designates this 3904 # particular file as subject to the "Classpath" exception as provided 3905 # by Oracle in the LICENSE file that accompanied this code. 3906 # 3907 # This code is distributed in the hope that it will be useful, but WITHOUT 3908 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3909 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3910 # version 2 for more details (a copy is included in the LICENSE file that 3911 # accompanied this code). 3912 # 3913 # You should have received a copy of the GNU General Public License version 3914 # 2 along with this work; if not, write to the Free Software Foundation, 3915 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3916 # 3917 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3918 # or visit www.oracle.com if you need additional information or have any 3919 # questions. 3920 # 3921 3922 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3923 # Converts autoconf style CPU name to OpenJDK style, into 3924 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 3925 3926 3927 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3928 # Converts autoconf style OS name to OpenJDK style, into 3929 # VAR_OS and VAR_OS_API. 3930 3931 3932 # Expects $host_os $host_cpu $build_os and $build_cpu 3933 # and $with_target_bits to have been setup! 3934 # 3935 # Translate the standard triplet(quadruplet) definition 3936 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 3937 # OPENJDK_BUILD_OS, etc. 3938 3939 3940 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 3941 # accordingly. Must be done after setting up build and target system, but before 3942 # doing anything else with these values. 3943 3944 3945 # Setup the legacy variables, for controlling the old makefiles. 3946 # 3947 3948 3949 3950 3951 #%%% Build and target systems %%% 3952 3953 3954 3955 3956 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 3957 # Add -mX to various FLAGS variables. 3958 3959 3960 3961 3962 3963 3964 # 3965 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3966 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3967 # 3968 # This code is free software; you can redistribute it and/or modify it 3969 # under the terms of the GNU General Public License version 2 only, as 3970 # published by the Free Software Foundation. Oracle designates this 3971 # particular file as subject to the "Classpath" exception as provided 3972 # by Oracle in the LICENSE file that accompanied this code. 3973 # 3974 # This code is distributed in the hope that it will be useful, but WITHOUT 3975 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3976 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3977 # version 2 for more details (a copy is included in the LICENSE file that 3978 # accompanied this code). 3979 # 3980 # You should have received a copy of the GNU General Public License version 3981 # 2 along with this work; if not, write to the Free Software Foundation, 3982 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3983 # 3984 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3985 # or visit www.oracle.com if you need additional information or have any 3986 # questions. 3987 # 3988 3989 3990 3991 3992 3993 3994 3995 3996 # 3997 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3998 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3999 # 4000 # This code is free software; you can redistribute it and/or modify it 4001 # under the terms of the GNU General Public License version 2 only, as 4002 # published by the Free Software Foundation. Oracle designates this 4003 # particular file as subject to the "Classpath" exception as provided 4004 # by Oracle in the LICENSE file that accompanied this code. 4005 # 4006 # This code is distributed in the hope that it will be useful, but WITHOUT 4007 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4008 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4009 # version 2 for more details (a copy is included in the LICENSE file that 4010 # accompanied this code). 4011 # 4012 # You should have received a copy of the GNU General Public License version 4013 # 2 along with this work; if not, write to the Free Software Foundation, 4014 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4015 # 4016 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4017 # or visit www.oracle.com if you need additional information or have any 4018 # questions. 4019 # 4020 4021 # $1 = compiler to test (CC or CXX) 4022 # $2 = human readable name of compiler (C or C++) 4023 4024 4025 4026 4027 4028 # $1 = compiler to test (CC or CXX) 4029 # $2 = human readable name of compiler (C or C++) 4030 # $3 = list of compiler names to search for 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 # TOOLCHAIN_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 4045 # [RUN-IF-FALSE]) 4046 # ------------------------------------------------------------ 4047 # Check that the c and c++ compilers support an argument 4048 4049 4050 4051 4052 # Setup the JTREG paths 4053 4054 4055 # 4056 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4057 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4058 # 4059 # This code is free software; you can redistribute it and/or modify it 4060 # under the terms of the GNU General Public License version 2 only, as 4061 # published by the Free Software Foundation. Oracle designates this 4062 # particular file as subject to the "Classpath" exception as provided 4063 # by Oracle in the LICENSE file that accompanied this code. 4064 # 4065 # This code is distributed in the hope that it will be useful, but WITHOUT 4066 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4067 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4068 # version 2 for more details (a copy is included in the LICENSE file that 4069 # accompanied this code). 4070 # 4071 # You should have received a copy of the GNU General Public License version 4072 # 2 along with this work; if not, write to the Free Software Foundation, 4073 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4074 # 4075 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4076 # or visit www.oracle.com if you need additional information or have any 4077 # questions. 4078 # 4079 4080 4081 4082 4083 4084 4085 4086 # Check if the VS env variables were setup prior to running configure. 4087 # If not, then find vcvarsall.bat and run it automatically, and integrate 4088 # the set env variables into the spec file. 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 # This line needs to be here, verbatim, after all includes and the dummy hook 4100 # definitions. It is replaced with custom functionality when building 4101 # custom sources. 4102 #CUSTOM_AUTOCONF_INCLUDE 4103 4104 # Do not change or remove the following line, it is needed for consistency checks: 4105 DATE_WHEN_GENERATED=1392907541 4106 4107 ############################################################################### 4108 # 4109 # Initialization / Boot-strapping 4110 # 4111 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4112 # thus it jumps back and forth, each time gaining something needed later on. 4113 # 4114 ############################################################################### 4115 4116 # Basic initialization that must happen first of all 4117 4118 # Save the original command line. This is passed to us by the wrapper configure script. 4119 4120 DATE_WHEN_CONFIGURED=`LANG=C date` 4121 4122 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4123 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4125 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4126 4127 4128 # Start with tools that do not need have cross compilation support 4129 # and can be expected to be found in the default PATH. These tools are 4130 # used by configure. Nor are these tools expected to be found in the 4131 # devkit from the builddeps server either, since they are 4132 # needed to download the devkit. 4133 4134 # First are all the simple required tools. 4135 4136 4137 4138 # Publish this variable in the help. 4139 4140 4141 if test "x$BASENAME" = x; then 4142 # The variable is not set by user, try to locate tool using the code snippet 4143 for ac_prog in basename 4144 do 4145 # Extract the first word of "$ac_prog", so it can be a program name with args. 4146 set dummy $ac_prog; ac_word=$2 4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4148 $as_echo_n "checking for $ac_word... " >&6; } 4149 if ${ac_cv_path_BASENAME+:} false; then : 4150 $as_echo_n "(cached) " >&6 4151 else 4152 case $BASENAME in 4153 [\\/]* | ?:[\\/]*) 4154 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4155 ;; 4156 *) 4157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4158 for as_dir in $PATH 4159 do 4160 IFS=$as_save_IFS 4161 test -z "$as_dir" && as_dir=. 4162 for ac_exec_ext in '' $ac_executable_extensions; do 4163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4164 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4166 break 2 4167 fi 4168 done 4169 done 4170 IFS=$as_save_IFS 4171 4172 ;; 4173 esac 4174 fi 4175 BASENAME=$ac_cv_path_BASENAME 4176 if test -n "$BASENAME"; then 4177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4178 $as_echo "$BASENAME" >&6; } 4179 else 4180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4181 $as_echo "no" >&6; } 4182 fi 4183 4184 4185 test -n "$BASENAME" && break 4186 done 4187 4188 else 4189 # The variable is set, but is it from the command line or the environment? 4190 4191 # Try to remove the string !BASENAME! from our list. 4192 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4193 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4194 # If it failed, the variable was not from the command line. Ignore it, 4195 # but warn the user (except for BASH, which is always set by the calling BASH). 4196 if test "xBASENAME" != xBASH; then 4197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4198 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4199 fi 4200 # Try to locate tool using the code snippet 4201 for ac_prog in basename 4202 do 4203 # Extract the first word of "$ac_prog", so it can be a program name with args. 4204 set dummy $ac_prog; ac_word=$2 4205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4206 $as_echo_n "checking for $ac_word... " >&6; } 4207 if ${ac_cv_path_BASENAME+:} false; then : 4208 $as_echo_n "(cached) " >&6 4209 else 4210 case $BASENAME in 4211 [\\/]* | ?:[\\/]*) 4212 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4213 ;; 4214 *) 4215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4216 for as_dir in $PATH 4217 do 4218 IFS=$as_save_IFS 4219 test -z "$as_dir" && as_dir=. 4220 for ac_exec_ext in '' $ac_executable_extensions; do 4221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4222 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4224 break 2 4225 fi 4226 done 4227 done 4228 IFS=$as_save_IFS 4229 4230 ;; 4231 esac 4232 fi 4233 BASENAME=$ac_cv_path_BASENAME 4234 if test -n "$BASENAME"; then 4235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4236 $as_echo "$BASENAME" >&6; } 4237 else 4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4239 $as_echo "no" >&6; } 4240 fi 4241 4242 4243 test -n "$BASENAME" && break 4244 done 4245 4246 else 4247 # If it succeeded, then it was overridden by the user. We will use it 4248 # for the tool. 4249 4250 # First remove it from the list of overridden variables, so we can test 4251 # for unknown variables in the end. 4252 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4253 4254 # Check if the provided tool contains a complete path. 4255 tool_specified="$BASENAME" 4256 tool_basename="${tool_specified##*/}" 4257 if test "x$tool_basename" = "x$tool_specified"; then 4258 # A command without a complete path is provided, search $PATH. 4259 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4260 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4261 # Extract the first word of "$tool_basename", so it can be a program name with args. 4262 set dummy $tool_basename; ac_word=$2 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4264 $as_echo_n "checking for $ac_word... " >&6; } 4265 if ${ac_cv_path_BASENAME+:} false; then : 4266 $as_echo_n "(cached) " >&6 4267 else 4268 case $BASENAME in 4269 [\\/]* | ?:[\\/]*) 4270 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4271 ;; 4272 *) 4273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4274 for as_dir in $PATH 4275 do 4276 IFS=$as_save_IFS 4277 test -z "$as_dir" && as_dir=. 4278 for ac_exec_ext in '' $ac_executable_extensions; do 4279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4280 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4281 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4282 break 2 4283 fi 4284 done 4285 done 4286 IFS=$as_save_IFS 4287 4288 ;; 4289 esac 4290 fi 4291 BASENAME=$ac_cv_path_BASENAME 4292 if test -n "$BASENAME"; then 4293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4294 $as_echo "$BASENAME" >&6; } 4295 else 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4297 $as_echo "no" >&6; } 4298 fi 4299 4300 4301 if test "x$BASENAME" = x; then 4302 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4303 fi 4304 else 4305 # Otherwise we believe it is a complete path. Use it as it is. 4306 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4307 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4309 $as_echo_n "checking for BASENAME... " >&6; } 4310 if test ! -x "$tool_specified"; then 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4312 $as_echo "not found" >&6; } 4313 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4314 fi 4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4316 $as_echo "$tool_specified" >&6; } 4317 fi 4318 fi 4319 fi 4320 4321 4322 4323 if test "x$BASENAME" = x; then 4324 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4325 fi 4326 4327 4328 4329 4330 4331 # Publish this variable in the help. 4332 4333 4334 if test "x$BASH" = x; then 4335 # The variable is not set by user, try to locate tool using the code snippet 4336 for ac_prog in bash 4337 do 4338 # Extract the first word of "$ac_prog", so it can be a program name with args. 4339 set dummy $ac_prog; ac_word=$2 4340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4341 $as_echo_n "checking for $ac_word... " >&6; } 4342 if ${ac_cv_path_BASH+:} false; then : 4343 $as_echo_n "(cached) " >&6 4344 else 4345 case $BASH in 4346 [\\/]* | ?:[\\/]*) 4347 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4348 ;; 4349 *) 4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4351 for as_dir in $PATH 4352 do 4353 IFS=$as_save_IFS 4354 test -z "$as_dir" && as_dir=. 4355 for ac_exec_ext in '' $ac_executable_extensions; do 4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4357 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4359 break 2 4360 fi 4361 done 4362 done 4363 IFS=$as_save_IFS 4364 4365 ;; 4366 esac 4367 fi 4368 BASH=$ac_cv_path_BASH 4369 if test -n "$BASH"; then 4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4371 $as_echo "$BASH" >&6; } 4372 else 4373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4374 $as_echo "no" >&6; } 4375 fi 4376 4377 4378 test -n "$BASH" && break 4379 done 4380 4381 else 4382 # The variable is set, but is it from the command line or the environment? 4383 4384 # Try to remove the string !BASH! from our list. 4385 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4386 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4387 # If it failed, the variable was not from the command line. Ignore it, 4388 # but warn the user (except for BASH, which is always set by the calling BASH). 4389 if test "xBASH" != xBASH; then 4390 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4391 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4392 fi 4393 # Try to locate tool using the code snippet 4394 for ac_prog in bash 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_BASH+:} false; then : 4401 $as_echo_n "(cached) " >&6 4402 else 4403 case $BASH in 4404 [\\/]* | ?:[\\/]*) 4405 ac_cv_path_BASH="$BASH" # 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_BASH="$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 BASH=$ac_cv_path_BASH 4427 if test -n "$BASH"; then 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4429 $as_echo "$BASH" >&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 "$BASH" && break 4437 done 4438 4439 else 4440 # If it succeeded, then it was overridden by the user. We will use it 4441 # for the tool. 4442 4443 # First remove it from the list of overridden variables, so we can test 4444 # for unknown variables in the end. 4445 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4446 4447 # Check if the provided tool contains a complete path. 4448 tool_specified="$BASH" 4449 tool_basename="${tool_specified##*/}" 4450 if test "x$tool_basename" = "x$tool_specified"; then 4451 # A command without a complete path is provided, search $PATH. 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4453 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4454 # Extract the first word of "$tool_basename", so it can be a program name with args. 4455 set dummy $tool_basename; 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_BASH+:} false; then : 4459 $as_echo_n "(cached) " >&6 4460 else 4461 case $BASH in 4462 [\\/]* | ?:[\\/]*) 4463 ac_cv_path_BASH="$BASH" # 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_BASH="$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 BASH=$ac_cv_path_BASH 4485 if test -n "$BASH"; then 4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4487 $as_echo "$BASH" >&6; } 4488 else 4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4490 $as_echo "no" >&6; } 4491 fi 4492 4493 4494 if test "x$BASH" = x; then 4495 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4496 fi 4497 else 4498 # Otherwise we believe it is a complete path. Use it as it is. 4499 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4500 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4502 $as_echo_n "checking for BASH... " >&6; } 4503 if test ! -x "$tool_specified"; then 4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4505 $as_echo "not found" >&6; } 4506 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4507 fi 4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4509 $as_echo "$tool_specified" >&6; } 4510 fi 4511 fi 4512 fi 4513 4514 4515 4516 if test "x$BASH" = x; then 4517 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4518 fi 4519 4520 4521 4522 4523 4524 # Publish this variable in the help. 4525 4526 4527 if test "x$CAT" = x; then 4528 # The variable is not set by user, try to locate tool using the code snippet 4529 for ac_prog in cat 4530 do 4531 # Extract the first word of "$ac_prog", so it can be a program name with args. 4532 set dummy $ac_prog; ac_word=$2 4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4534 $as_echo_n "checking for $ac_word... " >&6; } 4535 if ${ac_cv_path_CAT+:} false; then : 4536 $as_echo_n "(cached) " >&6 4537 else 4538 case $CAT in 4539 [\\/]* | ?:[\\/]*) 4540 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4541 ;; 4542 *) 4543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4544 for as_dir in $PATH 4545 do 4546 IFS=$as_save_IFS 4547 test -z "$as_dir" && as_dir=. 4548 for ac_exec_ext in '' $ac_executable_extensions; do 4549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4550 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4552 break 2 4553 fi 4554 done 4555 done 4556 IFS=$as_save_IFS 4557 4558 ;; 4559 esac 4560 fi 4561 CAT=$ac_cv_path_CAT 4562 if test -n "$CAT"; then 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4564 $as_echo "$CAT" >&6; } 4565 else 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4567 $as_echo "no" >&6; } 4568 fi 4569 4570 4571 test -n "$CAT" && break 4572 done 4573 4574 else 4575 # The variable is set, but is it from the command line or the environment? 4576 4577 # Try to remove the string !CAT! from our list. 4578 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4579 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4580 # If it failed, the variable was not from the command line. Ignore it, 4581 # but warn the user (except for BASH, which is always set by the calling BASH). 4582 if test "xCAT" != xBASH; then 4583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4584 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4585 fi 4586 # Try to locate tool using the code snippet 4587 for ac_prog in cat 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_CAT+:} false; then : 4594 $as_echo_n "(cached) " >&6 4595 else 4596 case $CAT in 4597 [\\/]* | ?:[\\/]*) 4598 ac_cv_path_CAT="$CAT" # 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_CAT="$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 CAT=$ac_cv_path_CAT 4620 if test -n "$CAT"; then 4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4622 $as_echo "$CAT" >&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 "$CAT" && break 4630 done 4631 4632 else 4633 # If it succeeded, then it was overridden by the user. We will use it 4634 # for the tool. 4635 4636 # First remove it from the list of overridden variables, so we can test 4637 # for unknown variables in the end. 4638 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4639 4640 # Check if the provided tool contains a complete path. 4641 tool_specified="$CAT" 4642 tool_basename="${tool_specified##*/}" 4643 if test "x$tool_basename" = "x$tool_specified"; then 4644 # A command without a complete path is provided, search $PATH. 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4646 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4647 # Extract the first word of "$tool_basename", so it can be a program name with args. 4648 set dummy $tool_basename; 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_CAT+:} false; then : 4652 $as_echo_n "(cached) " >&6 4653 else 4654 case $CAT in 4655 [\\/]* | ?:[\\/]*) 4656 ac_cv_path_CAT="$CAT" # 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_CAT="$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 CAT=$ac_cv_path_CAT 4678 if test -n "$CAT"; then 4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4680 $as_echo "$CAT" >&6; } 4681 else 4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4683 $as_echo "no" >&6; } 4684 fi 4685 4686 4687 if test "x$CAT" = x; then 4688 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4689 fi 4690 else 4691 # Otherwise we believe it is a complete path. Use it as it is. 4692 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4693 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4695 $as_echo_n "checking for CAT... " >&6; } 4696 if test ! -x "$tool_specified"; then 4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4698 $as_echo "not found" >&6; } 4699 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4700 fi 4701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4702 $as_echo "$tool_specified" >&6; } 4703 fi 4704 fi 4705 fi 4706 4707 4708 4709 if test "x$CAT" = x; then 4710 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4711 fi 4712 4713 4714 4715 4716 4717 # Publish this variable in the help. 4718 4719 4720 if test "x$CHMOD" = x; then 4721 # The variable is not set by user, try to locate tool using the code snippet 4722 for ac_prog in chmod 4723 do 4724 # Extract the first word of "$ac_prog", so it can be a program name with args. 4725 set dummy $ac_prog; ac_word=$2 4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4727 $as_echo_n "checking for $ac_word... " >&6; } 4728 if ${ac_cv_path_CHMOD+:} false; then : 4729 $as_echo_n "(cached) " >&6 4730 else 4731 case $CHMOD in 4732 [\\/]* | ?:[\\/]*) 4733 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4734 ;; 4735 *) 4736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4737 for as_dir in $PATH 4738 do 4739 IFS=$as_save_IFS 4740 test -z "$as_dir" && as_dir=. 4741 for ac_exec_ext in '' $ac_executable_extensions; do 4742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4743 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4745 break 2 4746 fi 4747 done 4748 done 4749 IFS=$as_save_IFS 4750 4751 ;; 4752 esac 4753 fi 4754 CHMOD=$ac_cv_path_CHMOD 4755 if test -n "$CHMOD"; then 4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4757 $as_echo "$CHMOD" >&6; } 4758 else 4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4760 $as_echo "no" >&6; } 4761 fi 4762 4763 4764 test -n "$CHMOD" && break 4765 done 4766 4767 else 4768 # The variable is set, but is it from the command line or the environment? 4769 4770 # Try to remove the string !CHMOD! from our list. 4771 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4772 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4773 # If it failed, the variable was not from the command line. Ignore it, 4774 # but warn the user (except for BASH, which is always set by the calling BASH). 4775 if test "xCHMOD" != xBASH; then 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4777 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4778 fi 4779 # Try to locate tool using the code snippet 4780 for ac_prog in chmod 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_CHMOD+:} false; then : 4787 $as_echo_n "(cached) " >&6 4788 else 4789 case $CHMOD in 4790 [\\/]* | ?:[\\/]*) 4791 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$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 CHMOD=$ac_cv_path_CHMOD 4813 if test -n "$CHMOD"; then 4814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4815 $as_echo "$CHMOD" >&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 "$CHMOD" && break 4823 done 4824 4825 else 4826 # If it succeeded, then it was overridden by the user. We will use it 4827 # for the tool. 4828 4829 # First remove it from the list of overridden variables, so we can test 4830 # for unknown variables in the end. 4831 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4832 4833 # Check if the provided tool contains a complete path. 4834 tool_specified="$CHMOD" 4835 tool_basename="${tool_specified##*/}" 4836 if test "x$tool_basename" = "x$tool_specified"; then 4837 # A command without a complete path is provided, search $PATH. 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4839 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4840 # Extract the first word of "$tool_basename", so it can be a program name with args. 4841 set dummy $tool_basename; 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_CHMOD+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846 else 4847 case $CHMOD in 4848 [\\/]* | ?:[\\/]*) 4849 ac_cv_path_CHMOD="$CHMOD" # 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_CHMOD="$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 CHMOD=$ac_cv_path_CHMOD 4871 if test -n "$CHMOD"; then 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4873 $as_echo "$CHMOD" >&6; } 4874 else 4875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4876 $as_echo "no" >&6; } 4877 fi 4878 4879 4880 if test "x$CHMOD" = x; then 4881 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4882 fi 4883 else 4884 # Otherwise we believe it is a complete path. Use it as it is. 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 4886 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 4888 $as_echo_n "checking for CHMOD... " >&6; } 4889 if test ! -x "$tool_specified"; then 4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4891 $as_echo "not found" >&6; } 4892 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 4893 fi 4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4895 $as_echo "$tool_specified" >&6; } 4896 fi 4897 fi 4898 fi 4899 4900 4901 4902 if test "x$CHMOD" = x; then 4903 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 4904 fi 4905 4906 4907 4908 4909 4910 # Publish this variable in the help. 4911 4912 4913 if test "x$CMP" = x; then 4914 # The variable is not set by user, try to locate tool using the code snippet 4915 for ac_prog in cmp 4916 do 4917 # Extract the first word of "$ac_prog", so it can be a program name with args. 4918 set dummy $ac_prog; ac_word=$2 4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4920 $as_echo_n "checking for $ac_word... " >&6; } 4921 if ${ac_cv_path_CMP+:} false; then : 4922 $as_echo_n "(cached) " >&6 4923 else 4924 case $CMP in 4925 [\\/]* | ?:[\\/]*) 4926 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 4927 ;; 4928 *) 4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4930 for as_dir in $PATH 4931 do 4932 IFS=$as_save_IFS 4933 test -z "$as_dir" && as_dir=. 4934 for ac_exec_ext in '' $ac_executable_extensions; do 4935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4936 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 4937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4938 break 2 4939 fi 4940 done 4941 done 4942 IFS=$as_save_IFS 4943 4944 ;; 4945 esac 4946 fi 4947 CMP=$ac_cv_path_CMP 4948 if test -n "$CMP"; then 4949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 4950 $as_echo "$CMP" >&6; } 4951 else 4952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4953 $as_echo "no" >&6; } 4954 fi 4955 4956 4957 test -n "$CMP" && break 4958 done 4959 4960 else 4961 # The variable is set, but is it from the command line or the environment? 4962 4963 # Try to remove the string !CMP! from our list. 4964 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 4965 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4966 # If it failed, the variable was not from the command line. Ignore it, 4967 # but warn the user (except for BASH, which is always set by the calling BASH). 4968 if test "xCMP" != xBASH; then 4969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 4970 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 4971 fi 4972 # Try to locate tool using the code snippet 4973 for ac_prog in cmp 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_CMP+:} false; then : 4980 $as_echo_n "(cached) " >&6 4981 else 4982 case $CMP in 4983 [\\/]* | ?:[\\/]*) 4984 ac_cv_path_CMP="$CMP" # 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_CMP="$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 CMP=$ac_cv_path_CMP 5006 if test -n "$CMP"; then 5007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5008 $as_echo "$CMP" >&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 "$CMP" && break 5016 done 5017 5018 else 5019 # If it succeeded, then it was overridden by the user. We will use it 5020 # for the tool. 5021 5022 # First remove it from the list of overridden variables, so we can test 5023 # for unknown variables in the end. 5024 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5025 5026 # Check if the provided tool contains a complete path. 5027 tool_specified="$CMP" 5028 tool_basename="${tool_specified##*/}" 5029 if test "x$tool_basename" = "x$tool_specified"; then 5030 # A command without a complete path is provided, search $PATH. 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5032 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5033 # Extract the first word of "$tool_basename", so it can be a program name with args. 5034 set dummy $tool_basename; 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_CMP+:} false; then : 5038 $as_echo_n "(cached) " >&6 5039 else 5040 case $CMP in 5041 [\\/]* | ?:[\\/]*) 5042 ac_cv_path_CMP="$CMP" # 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_CMP="$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 CMP=$ac_cv_path_CMP 5064 if test -n "$CMP"; then 5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5066 $as_echo "$CMP" >&6; } 5067 else 5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5069 $as_echo "no" >&6; } 5070 fi 5071 5072 5073 if test "x$CMP" = x; then 5074 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5075 fi 5076 else 5077 # Otherwise we believe it is a complete path. Use it as it is. 5078 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5079 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5081 $as_echo_n "checking for CMP... " >&6; } 5082 if test ! -x "$tool_specified"; then 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5084 $as_echo "not found" >&6; } 5085 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5086 fi 5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5088 $as_echo "$tool_specified" >&6; } 5089 fi 5090 fi 5091 fi 5092 5093 5094 5095 if test "x$CMP" = x; then 5096 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5097 fi 5098 5099 5100 5101 5102 5103 # Publish this variable in the help. 5104 5105 5106 if test "x$COMM" = x; then 5107 # The variable is not set by user, try to locate tool using the code snippet 5108 for ac_prog in comm 5109 do 5110 # Extract the first word of "$ac_prog", so it can be a program name with args. 5111 set dummy $ac_prog; ac_word=$2 5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5113 $as_echo_n "checking for $ac_word... " >&6; } 5114 if ${ac_cv_path_COMM+:} false; then : 5115 $as_echo_n "(cached) " >&6 5116 else 5117 case $COMM in 5118 [\\/]* | ?:[\\/]*) 5119 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5120 ;; 5121 *) 5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5123 for as_dir in $PATH 5124 do 5125 IFS=$as_save_IFS 5126 test -z "$as_dir" && as_dir=. 5127 for ac_exec_ext in '' $ac_executable_extensions; do 5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5129 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5131 break 2 5132 fi 5133 done 5134 done 5135 IFS=$as_save_IFS 5136 5137 ;; 5138 esac 5139 fi 5140 COMM=$ac_cv_path_COMM 5141 if test -n "$COMM"; then 5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5143 $as_echo "$COMM" >&6; } 5144 else 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5146 $as_echo "no" >&6; } 5147 fi 5148 5149 5150 test -n "$COMM" && break 5151 done 5152 5153 else 5154 # The variable is set, but is it from the command line or the environment? 5155 5156 # Try to remove the string !COMM! from our list. 5157 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5158 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5159 # If it failed, the variable was not from the command line. Ignore it, 5160 # but warn the user (except for BASH, which is always set by the calling BASH). 5161 if test "xCOMM" != xBASH; then 5162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5163 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5164 fi 5165 # Try to locate tool using the code snippet 5166 for ac_prog in comm 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_COMM+:} false; then : 5173 $as_echo_n "(cached) " >&6 5174 else 5175 case $COMM in 5176 [\\/]* | ?:[\\/]*) 5177 ac_cv_path_COMM="$COMM" # 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_COMM="$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 COMM=$ac_cv_path_COMM 5199 if test -n "$COMM"; then 5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5201 $as_echo "$COMM" >&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 "$COMM" && break 5209 done 5210 5211 else 5212 # If it succeeded, then it was overridden by the user. We will use it 5213 # for the tool. 5214 5215 # First remove it from the list of overridden variables, so we can test 5216 # for unknown variables in the end. 5217 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5218 5219 # Check if the provided tool contains a complete path. 5220 tool_specified="$COMM" 5221 tool_basename="${tool_specified##*/}" 5222 if test "x$tool_basename" = "x$tool_specified"; then 5223 # A command without a complete path is provided, search $PATH. 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5225 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5226 # Extract the first word of "$tool_basename", so it can be a program name with args. 5227 set dummy $tool_basename; 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_COMM+:} false; then : 5231 $as_echo_n "(cached) " >&6 5232 else 5233 case $COMM in 5234 [\\/]* | ?:[\\/]*) 5235 ac_cv_path_COMM="$COMM" # 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_COMM="$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 COMM=$ac_cv_path_COMM 5257 if test -n "$COMM"; then 5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5259 $as_echo "$COMM" >&6; } 5260 else 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5262 $as_echo "no" >&6; } 5263 fi 5264 5265 5266 if test "x$COMM" = x; then 5267 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5268 fi 5269 else 5270 # Otherwise we believe it is a complete path. Use it as it is. 5271 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5272 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5274 $as_echo_n "checking for COMM... " >&6; } 5275 if test ! -x "$tool_specified"; then 5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5277 $as_echo "not found" >&6; } 5278 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5279 fi 5280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5281 $as_echo "$tool_specified" >&6; } 5282 fi 5283 fi 5284 fi 5285 5286 5287 5288 if test "x$COMM" = x; then 5289 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5290 fi 5291 5292 5293 5294 5295 5296 # Publish this variable in the help. 5297 5298 5299 if test "x$CP" = x; then 5300 # The variable is not set by user, try to locate tool using the code snippet 5301 for ac_prog in cp 5302 do 5303 # Extract the first word of "$ac_prog", so it can be a program name with args. 5304 set dummy $ac_prog; ac_word=$2 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5306 $as_echo_n "checking for $ac_word... " >&6; } 5307 if ${ac_cv_path_CP+:} false; then : 5308 $as_echo_n "(cached) " >&6 5309 else 5310 case $CP in 5311 [\\/]* | ?:[\\/]*) 5312 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5313 ;; 5314 *) 5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5316 for as_dir in $PATH 5317 do 5318 IFS=$as_save_IFS 5319 test -z "$as_dir" && as_dir=. 5320 for ac_exec_ext in '' $ac_executable_extensions; do 5321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5322 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5324 break 2 5325 fi 5326 done 5327 done 5328 IFS=$as_save_IFS 5329 5330 ;; 5331 esac 5332 fi 5333 CP=$ac_cv_path_CP 5334 if test -n "$CP"; then 5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5336 $as_echo "$CP" >&6; } 5337 else 5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5339 $as_echo "no" >&6; } 5340 fi 5341 5342 5343 test -n "$CP" && break 5344 done 5345 5346 else 5347 # The variable is set, but is it from the command line or the environment? 5348 5349 # Try to remove the string !CP! from our list. 5350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5352 # If it failed, the variable was not from the command line. Ignore it, 5353 # but warn the user (except for BASH, which is always set by the calling BASH). 5354 if test "xCP" != xBASH; then 5355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5356 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5357 fi 5358 # Try to locate tool using the code snippet 5359 for ac_prog in cp 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_CP+:} false; then : 5366 $as_echo_n "(cached) " >&6 5367 else 5368 case $CP in 5369 [\\/]* | ?:[\\/]*) 5370 ac_cv_path_CP="$CP" # 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_CP="$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 CP=$ac_cv_path_CP 5392 if test -n "$CP"; then 5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5394 $as_echo "$CP" >&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 "$CP" && break 5402 done 5403 5404 else 5405 # If it succeeded, then it was overridden by the user. We will use it 5406 # for the tool. 5407 5408 # First remove it from the list of overridden variables, so we can test 5409 # for unknown variables in the end. 5410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5411 5412 # Check if the provided tool contains a complete path. 5413 tool_specified="$CP" 5414 tool_basename="${tool_specified##*/}" 5415 if test "x$tool_basename" = "x$tool_specified"; then 5416 # A command without a complete path is provided, search $PATH. 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5418 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5419 # Extract the first word of "$tool_basename", so it can be a program name with args. 5420 set dummy $tool_basename; 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_CP+:} false; then : 5424 $as_echo_n "(cached) " >&6 5425 else 5426 case $CP in 5427 [\\/]* | ?:[\\/]*) 5428 ac_cv_path_CP="$CP" # 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_CP="$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 CP=$ac_cv_path_CP 5450 if test -n "$CP"; then 5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5452 $as_echo "$CP" >&6; } 5453 else 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5455 $as_echo "no" >&6; } 5456 fi 5457 5458 5459 if test "x$CP" = x; then 5460 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5461 fi 5462 else 5463 # Otherwise we believe it is a complete path. Use it as it is. 5464 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5465 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5467 $as_echo_n "checking for CP... " >&6; } 5468 if test ! -x "$tool_specified"; then 5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5470 $as_echo "not found" >&6; } 5471 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5472 fi 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5474 $as_echo "$tool_specified" >&6; } 5475 fi 5476 fi 5477 fi 5478 5479 5480 5481 if test "x$CP" = x; then 5482 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5483 fi 5484 5485 5486 5487 5488 5489 # Publish this variable in the help. 5490 5491 5492 if test "x$CPIO" = x; then 5493 # The variable is not set by user, try to locate tool using the code snippet 5494 for ac_prog in cpio 5495 do 5496 # Extract the first word of "$ac_prog", so it can be a program name with args. 5497 set dummy $ac_prog; ac_word=$2 5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499 $as_echo_n "checking for $ac_word... " >&6; } 5500 if ${ac_cv_path_CPIO+:} false; then : 5501 $as_echo_n "(cached) " >&6 5502 else 5503 case $CPIO in 5504 [\\/]* | ?:[\\/]*) 5505 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5506 ;; 5507 *) 5508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5509 for as_dir in $PATH 5510 do 5511 IFS=$as_save_IFS 5512 test -z "$as_dir" && as_dir=. 5513 for ac_exec_ext in '' $ac_executable_extensions; do 5514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5515 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 break 2 5518 fi 5519 done 5520 done 5521 IFS=$as_save_IFS 5522 5523 ;; 5524 esac 5525 fi 5526 CPIO=$ac_cv_path_CPIO 5527 if test -n "$CPIO"; then 5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5529 $as_echo "$CPIO" >&6; } 5530 else 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5532 $as_echo "no" >&6; } 5533 fi 5534 5535 5536 test -n "$CPIO" && break 5537 done 5538 5539 else 5540 # The variable is set, but is it from the command line or the environment? 5541 5542 # Try to remove the string !CPIO! from our list. 5543 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5544 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5545 # If it failed, the variable was not from the command line. Ignore it, 5546 # but warn the user (except for BASH, which is always set by the calling BASH). 5547 if test "xCPIO" != xBASH; then 5548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5549 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5550 fi 5551 # Try to locate tool using the code snippet 5552 for ac_prog in cpio 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_CPIO+:} false; then : 5559 $as_echo_n "(cached) " >&6 5560 else 5561 case $CPIO in 5562 [\\/]* | ?:[\\/]*) 5563 ac_cv_path_CPIO="$CPIO" # 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_CPIO="$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 CPIO=$ac_cv_path_CPIO 5585 if test -n "$CPIO"; then 5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5587 $as_echo "$CPIO" >&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 "$CPIO" && break 5595 done 5596 5597 else 5598 # If it succeeded, then it was overridden by the user. We will use it 5599 # for the tool. 5600 5601 # First remove it from the list of overridden variables, so we can test 5602 # for unknown variables in the end. 5603 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5604 5605 # Check if the provided tool contains a complete path. 5606 tool_specified="$CPIO" 5607 tool_basename="${tool_specified##*/}" 5608 if test "x$tool_basename" = "x$tool_specified"; then 5609 # A command without a complete path is provided, search $PATH. 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5611 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5612 # Extract the first word of "$tool_basename", so it can be a program name with args. 5613 set dummy $tool_basename; 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_CPIO+:} false; then : 5617 $as_echo_n "(cached) " >&6 5618 else 5619 case $CPIO in 5620 [\\/]* | ?:[\\/]*) 5621 ac_cv_path_CPIO="$CPIO" # 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_CPIO="$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 CPIO=$ac_cv_path_CPIO 5643 if test -n "$CPIO"; then 5644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5645 $as_echo "$CPIO" >&6; } 5646 else 5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5648 $as_echo "no" >&6; } 5649 fi 5650 5651 5652 if test "x$CPIO" = x; then 5653 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5654 fi 5655 else 5656 # Otherwise we believe it is a complete path. Use it as it is. 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5658 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5660 $as_echo_n "checking for CPIO... " >&6; } 5661 if test ! -x "$tool_specified"; then 5662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5663 $as_echo "not found" >&6; } 5664 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5665 fi 5666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5667 $as_echo "$tool_specified" >&6; } 5668 fi 5669 fi 5670 fi 5671 5672 5673 5674 if test "x$CPIO" = x; then 5675 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5676 fi 5677 5678 5679 5680 5681 5682 # Publish this variable in the help. 5683 5684 5685 if test "x$CUT" = x; then 5686 # The variable is not set by user, try to locate tool using the code snippet 5687 for ac_prog in cut 5688 do 5689 # Extract the first word of "$ac_prog", so it can be a program name with args. 5690 set dummy $ac_prog; ac_word=$2 5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5692 $as_echo_n "checking for $ac_word... " >&6; } 5693 if ${ac_cv_path_CUT+:} false; then : 5694 $as_echo_n "(cached) " >&6 5695 else 5696 case $CUT in 5697 [\\/]* | ?:[\\/]*) 5698 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5699 ;; 5700 *) 5701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5702 for as_dir in $PATH 5703 do 5704 IFS=$as_save_IFS 5705 test -z "$as_dir" && as_dir=. 5706 for ac_exec_ext in '' $ac_executable_extensions; do 5707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5708 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5710 break 2 5711 fi 5712 done 5713 done 5714 IFS=$as_save_IFS 5715 5716 ;; 5717 esac 5718 fi 5719 CUT=$ac_cv_path_CUT 5720 if test -n "$CUT"; then 5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5722 $as_echo "$CUT" >&6; } 5723 else 5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5725 $as_echo "no" >&6; } 5726 fi 5727 5728 5729 test -n "$CUT" && break 5730 done 5731 5732 else 5733 # The variable is set, but is it from the command line or the environment? 5734 5735 # Try to remove the string !CUT! from our list. 5736 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5737 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5738 # If it failed, the variable was not from the command line. Ignore it, 5739 # but warn the user (except for BASH, which is always set by the calling BASH). 5740 if test "xCUT" != xBASH; then 5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5742 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5743 fi 5744 # 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 # If it succeeded, then it was overridden by the user. We will use it 5792 # for the tool. 5793 5794 # First remove it from the list of overridden variables, so we can test 5795 # for unknown variables in the end. 5796 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5797 5798 # Check if the provided tool contains a complete path. 5799 tool_specified="$CUT" 5800 tool_basename="${tool_specified##*/}" 5801 if test "x$tool_basename" = "x$tool_specified"; then 5802 # A command without a complete path is provided, search $PATH. 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5804 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5805 # Extract the first word of "$tool_basename", so it can be a program name with args. 5806 set dummy $tool_basename; 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 if test "x$CUT" = x; then 5846 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5847 fi 5848 else 5849 # Otherwise we believe it is a complete path. Use it as it is. 5850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5851 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5853 $as_echo_n "checking for CUT... " >&6; } 5854 if test ! -x "$tool_specified"; then 5855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5856 $as_echo "not found" >&6; } 5857 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5858 fi 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5860 $as_echo "$tool_specified" >&6; } 5861 fi 5862 fi 5863 fi 5864 5865 5866 5867 if test "x$CUT" = x; then 5868 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 5869 fi 5870 5871 5872 5873 5874 5875 # Publish this variable in the help. 5876 5877 5878 if test "x$DATE" = x; then 5879 # The variable is not set by user, try to locate tool using the code snippet 5880 for ac_prog in date 5881 do 5882 # Extract the first word of "$ac_prog", so it can be a program name with args. 5883 set dummy $ac_prog; ac_word=$2 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5885 $as_echo_n "checking for $ac_word... " >&6; } 5886 if ${ac_cv_path_DATE+:} false; then : 5887 $as_echo_n "(cached) " >&6 5888 else 5889 case $DATE in 5890 [\\/]* | ?:[\\/]*) 5891 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 5892 ;; 5893 *) 5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5895 for as_dir in $PATH 5896 do 5897 IFS=$as_save_IFS 5898 test -z "$as_dir" && as_dir=. 5899 for ac_exec_ext in '' $ac_executable_extensions; do 5900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5901 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 5902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5903 break 2 5904 fi 5905 done 5906 done 5907 IFS=$as_save_IFS 5908 5909 ;; 5910 esac 5911 fi 5912 DATE=$ac_cv_path_DATE 5913 if test -n "$DATE"; then 5914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 5915 $as_echo "$DATE" >&6; } 5916 else 5917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5918 $as_echo "no" >&6; } 5919 fi 5920 5921 5922 test -n "$DATE" && break 5923 done 5924 5925 else 5926 # The variable is set, but is it from the command line or the environment? 5927 5928 # Try to remove the string !DATE! from our list. 5929 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 5930 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5931 # If it failed, the variable was not from the command line. Ignore it, 5932 # but warn the user (except for BASH, which is always set by the calling BASH). 5933 if test "xDATE" != xBASH; then 5934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 5935 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 5936 fi 5937 # 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 # If it succeeded, then it was overridden by the user. We will use it 5985 # for the tool. 5986 5987 # First remove it from the list of overridden variables, so we can test 5988 # for unknown variables in the end. 5989 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5990 5991 # Check if the provided tool contains a complete path. 5992 tool_specified="$DATE" 5993 tool_basename="${tool_specified##*/}" 5994 if test "x$tool_basename" = "x$tool_specified"; then 5995 # A command without a complete path is provided, search $PATH. 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 5997 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 5998 # Extract the first word of "$tool_basename", so it can be a program name with args. 5999 set dummy $tool_basename; 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 if test "x$DATE" = x; then 6039 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6040 fi 6041 else 6042 # Otherwise we believe it is a complete path. Use it as it is. 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6044 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6046 $as_echo_n "checking for DATE... " >&6; } 6047 if test ! -x "$tool_specified"; then 6048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6049 $as_echo "not found" >&6; } 6050 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6051 fi 6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6053 $as_echo "$tool_specified" >&6; } 6054 fi 6055 fi 6056 fi 6057 6058 6059 6060 if test "x$DATE" = x; then 6061 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6062 fi 6063 6064 6065 6066 6067 6068 # Publish this variable in the help. 6069 6070 6071 if test "x$DIFF" = x; then 6072 # The variable is not set by user, try to locate tool using the code snippet 6073 for ac_prog in gdiff diff 6074 do 6075 # Extract the first word of "$ac_prog", so it can be a program name with args. 6076 set dummy $ac_prog; ac_word=$2 6077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6078 $as_echo_n "checking for $ac_word... " >&6; } 6079 if ${ac_cv_path_DIFF+:} false; then : 6080 $as_echo_n "(cached) " >&6 6081 else 6082 case $DIFF in 6083 [\\/]* | ?:[\\/]*) 6084 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6085 ;; 6086 *) 6087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6088 for as_dir in $PATH 6089 do 6090 IFS=$as_save_IFS 6091 test -z "$as_dir" && as_dir=. 6092 for ac_exec_ext in '' $ac_executable_extensions; do 6093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6094 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6096 break 2 6097 fi 6098 done 6099 done 6100 IFS=$as_save_IFS 6101 6102 ;; 6103 esac 6104 fi 6105 DIFF=$ac_cv_path_DIFF 6106 if test -n "$DIFF"; then 6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6108 $as_echo "$DIFF" >&6; } 6109 else 6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6111 $as_echo "no" >&6; } 6112 fi 6113 6114 6115 test -n "$DIFF" && break 6116 done 6117 6118 else 6119 # The variable is set, but is it from the command line or the environment? 6120 6121 # Try to remove the string !DIFF! from our list. 6122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6124 # If it failed, the variable was not from the command line. Ignore it, 6125 # but warn the user (except for BASH, which is always set by the calling BASH). 6126 if test "xDIFF" != xBASH; then 6127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6128 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6129 fi 6130 # 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 # If it succeeded, then it was overridden by the user. We will use it 6178 # for the tool. 6179 6180 # First remove it from the list of overridden variables, so we can test 6181 # for unknown variables in the end. 6182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6183 6184 # Check if the provided tool contains a complete path. 6185 tool_specified="$DIFF" 6186 tool_basename="${tool_specified##*/}" 6187 if test "x$tool_basename" = "x$tool_specified"; then 6188 # A command without a complete path is provided, search $PATH. 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6190 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6191 # Extract the first word of "$tool_basename", so it can be a program name with args. 6192 set dummy $tool_basename; 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 if test "x$DIFF" = x; then 6232 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6233 fi 6234 else 6235 # Otherwise we believe it is a complete path. Use it as it is. 6236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6237 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6239 $as_echo_n "checking for DIFF... " >&6; } 6240 if test ! -x "$tool_specified"; then 6241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6242 $as_echo "not found" >&6; } 6243 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6244 fi 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6246 $as_echo "$tool_specified" >&6; } 6247 fi 6248 fi 6249 fi 6250 6251 6252 6253 if test "x$DIFF" = x; then 6254 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6255 fi 6256 6257 6258 6259 6260 6261 # Publish this variable in the help. 6262 6263 6264 if test "x$DIRNAME" = x; then 6265 # The variable is not set by user, try to locate tool using the code snippet 6266 for ac_prog in dirname 6267 do 6268 # Extract the first word of "$ac_prog", so it can be a program name with args. 6269 set dummy $ac_prog; ac_word=$2 6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6271 $as_echo_n "checking for $ac_word... " >&6; } 6272 if ${ac_cv_path_DIRNAME+:} false; then : 6273 $as_echo_n "(cached) " >&6 6274 else 6275 case $DIRNAME in 6276 [\\/]* | ?:[\\/]*) 6277 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6278 ;; 6279 *) 6280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6281 for as_dir in $PATH 6282 do 6283 IFS=$as_save_IFS 6284 test -z "$as_dir" && as_dir=. 6285 for ac_exec_ext in '' $ac_executable_extensions; do 6286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6287 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6289 break 2 6290 fi 6291 done 6292 done 6293 IFS=$as_save_IFS 6294 6295 ;; 6296 esac 6297 fi 6298 DIRNAME=$ac_cv_path_DIRNAME 6299 if test -n "$DIRNAME"; then 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6301 $as_echo "$DIRNAME" >&6; } 6302 else 6303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6304 $as_echo "no" >&6; } 6305 fi 6306 6307 6308 test -n "$DIRNAME" && break 6309 done 6310 6311 else 6312 # The variable is set, but is it from the command line or the environment? 6313 6314 # Try to remove the string !DIRNAME! from our list. 6315 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6316 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6317 # If it failed, the variable was not from the command line. Ignore it, 6318 # but warn the user (except for BASH, which is always set by the calling BASH). 6319 if test "xDIRNAME" != xBASH; then 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6321 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6322 fi 6323 # 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 # If it succeeded, then it was overridden by the user. We will use it 6371 # for the tool. 6372 6373 # First remove it from the list of overridden variables, so we can test 6374 # for unknown variables in the end. 6375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6376 6377 # Check if the provided tool contains a complete path. 6378 tool_specified="$DIRNAME" 6379 tool_basename="${tool_specified##*/}" 6380 if test "x$tool_basename" = "x$tool_specified"; then 6381 # A command without a complete path is provided, search $PATH. 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6383 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6384 # Extract the first word of "$tool_basename", so it can be a program name with args. 6385 set dummy $tool_basename; 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 if test "x$DIRNAME" = x; then 6425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6426 fi 6427 else 6428 # Otherwise we believe it is a complete path. Use it as it is. 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6430 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6432 $as_echo_n "checking for DIRNAME... " >&6; } 6433 if test ! -x "$tool_specified"; then 6434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6435 $as_echo "not found" >&6; } 6436 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6437 fi 6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6439 $as_echo "$tool_specified" >&6; } 6440 fi 6441 fi 6442 fi 6443 6444 6445 6446 if test "x$DIRNAME" = x; then 6447 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6448 fi 6449 6450 6451 6452 6453 6454 # Publish this variable in the help. 6455 6456 6457 if test "x$ECHO" = x; then 6458 # The variable is not set by user, try to locate tool using the code snippet 6459 for ac_prog in echo 6460 do 6461 # Extract the first word of "$ac_prog", so it can be a program name with args. 6462 set dummy $ac_prog; ac_word=$2 6463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6464 $as_echo_n "checking for $ac_word... " >&6; } 6465 if ${ac_cv_path_ECHO+:} false; then : 6466 $as_echo_n "(cached) " >&6 6467 else 6468 case $ECHO in 6469 [\\/]* | ?:[\\/]*) 6470 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6471 ;; 6472 *) 6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6474 for as_dir in $PATH 6475 do 6476 IFS=$as_save_IFS 6477 test -z "$as_dir" && as_dir=. 6478 for ac_exec_ext in '' $ac_executable_extensions; do 6479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6480 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6482 break 2 6483 fi 6484 done 6485 done 6486 IFS=$as_save_IFS 6487 6488 ;; 6489 esac 6490 fi 6491 ECHO=$ac_cv_path_ECHO 6492 if test -n "$ECHO"; then 6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6494 $as_echo "$ECHO" >&6; } 6495 else 6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6497 $as_echo "no" >&6; } 6498 fi 6499 6500 6501 test -n "$ECHO" && break 6502 done 6503 6504 else 6505 # The variable is set, but is it from the command line or the environment? 6506 6507 # Try to remove the string !ECHO! from our list. 6508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6510 # If it failed, the variable was not from the command line. Ignore it, 6511 # but warn the user (except for BASH, which is always set by the calling BASH). 6512 if test "xECHO" != xBASH; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6514 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6515 fi 6516 # 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 # If it succeeded, then it was overridden by the user. We will use it 6564 # for the tool. 6565 6566 # First remove it from the list of overridden variables, so we can test 6567 # for unknown variables in the end. 6568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6569 6570 # Check if the provided tool contains a complete path. 6571 tool_specified="$ECHO" 6572 tool_basename="${tool_specified##*/}" 6573 if test "x$tool_basename" = "x$tool_specified"; then 6574 # A command without a complete path is provided, search $PATH. 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6576 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6577 # Extract the first word of "$tool_basename", so it can be a program name with args. 6578 set dummy $tool_basename; 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 if test "x$ECHO" = x; then 6618 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6619 fi 6620 else 6621 # Otherwise we believe it is a complete path. Use it as it is. 6622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6623 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6625 $as_echo_n "checking for ECHO... " >&6; } 6626 if test ! -x "$tool_specified"; then 6627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6628 $as_echo "not found" >&6; } 6629 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6630 fi 6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6632 $as_echo "$tool_specified" >&6; } 6633 fi 6634 fi 6635 fi 6636 6637 6638 6639 if test "x$ECHO" = x; then 6640 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6641 fi 6642 6643 6644 6645 6646 6647 # Publish this variable in the help. 6648 6649 6650 if test "x$EXPR" = x; then 6651 # The variable is not set by user, try to locate tool using the code snippet 6652 for ac_prog in expr 6653 do 6654 # Extract the first word of "$ac_prog", so it can be a program name with args. 6655 set dummy $ac_prog; ac_word=$2 6656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6657 $as_echo_n "checking for $ac_word... " >&6; } 6658 if ${ac_cv_path_EXPR+:} false; then : 6659 $as_echo_n "(cached) " >&6 6660 else 6661 case $EXPR in 6662 [\\/]* | ?:[\\/]*) 6663 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6664 ;; 6665 *) 6666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6667 for as_dir in $PATH 6668 do 6669 IFS=$as_save_IFS 6670 test -z "$as_dir" && as_dir=. 6671 for ac_exec_ext in '' $ac_executable_extensions; do 6672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6673 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6675 break 2 6676 fi 6677 done 6678 done 6679 IFS=$as_save_IFS 6680 6681 ;; 6682 esac 6683 fi 6684 EXPR=$ac_cv_path_EXPR 6685 if test -n "$EXPR"; then 6686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6687 $as_echo "$EXPR" >&6; } 6688 else 6689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6690 $as_echo "no" >&6; } 6691 fi 6692 6693 6694 test -n "$EXPR" && break 6695 done 6696 6697 else 6698 # The variable is set, but is it from the command line or the environment? 6699 6700 # Try to remove the string !EXPR! from our list. 6701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6703 # If it failed, the variable was not from the command line. Ignore it, 6704 # but warn the user (except for BASH, which is always set by the calling BASH). 6705 if test "xEXPR" != xBASH; then 6706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6707 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6708 fi 6709 # 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 # If it succeeded, then it was overridden by the user. We will use it 6757 # for the tool. 6758 6759 # First remove it from the list of overridden variables, so we can test 6760 # for unknown variables in the end. 6761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6762 6763 # Check if the provided tool contains a complete path. 6764 tool_specified="$EXPR" 6765 tool_basename="${tool_specified##*/}" 6766 if test "x$tool_basename" = "x$tool_specified"; then 6767 # A command without a complete path is provided, search $PATH. 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6769 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6770 # Extract the first word of "$tool_basename", so it can be a program name with args. 6771 set dummy $tool_basename; 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 if test "x$EXPR" = x; then 6811 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6812 fi 6813 else 6814 # Otherwise we believe it is a complete path. Use it as it is. 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6816 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6818 $as_echo_n "checking for EXPR... " >&6; } 6819 if test ! -x "$tool_specified"; then 6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6821 $as_echo "not found" >&6; } 6822 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6823 fi 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6825 $as_echo "$tool_specified" >&6; } 6826 fi 6827 fi 6828 fi 6829 6830 6831 6832 if test "x$EXPR" = x; then 6833 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6834 fi 6835 6836 6837 6838 6839 6840 # Publish this variable in the help. 6841 6842 6843 if test "x$FILE" = x; then 6844 # The variable is not set by user, try to locate tool using the code snippet 6845 for ac_prog in file 6846 do 6847 # Extract the first word of "$ac_prog", so it can be a program name with args. 6848 set dummy $ac_prog; ac_word=$2 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6850 $as_echo_n "checking for $ac_word... " >&6; } 6851 if ${ac_cv_path_FILE+:} false; then : 6852 $as_echo_n "(cached) " >&6 6853 else 6854 case $FILE in 6855 [\\/]* | ?:[\\/]*) 6856 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6857 ;; 6858 *) 6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6860 for as_dir in $PATH 6861 do 6862 IFS=$as_save_IFS 6863 test -z "$as_dir" && as_dir=. 6864 for ac_exec_ext in '' $ac_executable_extensions; do 6865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6866 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 6867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6868 break 2 6869 fi 6870 done 6871 done 6872 IFS=$as_save_IFS 6873 6874 ;; 6875 esac 6876 fi 6877 FILE=$ac_cv_path_FILE 6878 if test -n "$FILE"; then 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 6880 $as_echo "$FILE" >&6; } 6881 else 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6883 $as_echo "no" >&6; } 6884 fi 6885 6886 6887 test -n "$FILE" && break 6888 done 6889 6890 else 6891 # The variable is set, but is it from the command line or the environment? 6892 6893 # Try to remove the string !FILE! from our list. 6894 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 6895 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6896 # If it failed, the variable was not from the command line. Ignore it, 6897 # but warn the user (except for BASH, which is always set by the calling BASH). 6898 if test "xFILE" != xBASH; then 6899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 6900 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 6901 fi 6902 # 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 # If it succeeded, then it was overridden by the user. We will use it 6950 # for the tool. 6951 6952 # First remove it from the list of overridden variables, so we can test 6953 # for unknown variables in the end. 6954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6955 6956 # Check if the provided tool contains a complete path. 6957 tool_specified="$FILE" 6958 tool_basename="${tool_specified##*/}" 6959 if test "x$tool_basename" = "x$tool_specified"; then 6960 # A command without a complete path is provided, search $PATH. 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 6962 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 6963 # Extract the first word of "$tool_basename", so it can be a program name with args. 6964 set dummy $tool_basename; 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 if test "x$FILE" = x; then 7004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7005 fi 7006 else 7007 # Otherwise we believe it is a complete path. Use it as it is. 7008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7009 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7011 $as_echo_n "checking for FILE... " >&6; } 7012 if test ! -x "$tool_specified"; then 7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7014 $as_echo "not found" >&6; } 7015 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7016 fi 7017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7018 $as_echo "$tool_specified" >&6; } 7019 fi 7020 fi 7021 fi 7022 7023 7024 7025 if test "x$FILE" = x; then 7026 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7027 fi 7028 7029 7030 7031 7032 7033 # Publish this variable in the help. 7034 7035 7036 if test "x$FIND" = x; then 7037 # The variable is not set by user, try to locate tool using the code snippet 7038 for ac_prog in find 7039 do 7040 # Extract the first word of "$ac_prog", so it can be a program name with args. 7041 set dummy $ac_prog; ac_word=$2 7042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7043 $as_echo_n "checking for $ac_word... " >&6; } 7044 if ${ac_cv_path_FIND+:} false; then : 7045 $as_echo_n "(cached) " >&6 7046 else 7047 case $FIND in 7048 [\\/]* | ?:[\\/]*) 7049 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7050 ;; 7051 *) 7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7053 for as_dir in $PATH 7054 do 7055 IFS=$as_save_IFS 7056 test -z "$as_dir" && as_dir=. 7057 for ac_exec_ext in '' $ac_executable_extensions; do 7058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7059 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7061 break 2 7062 fi 7063 done 7064 done 7065 IFS=$as_save_IFS 7066 7067 ;; 7068 esac 7069 fi 7070 FIND=$ac_cv_path_FIND 7071 if test -n "$FIND"; then 7072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7073 $as_echo "$FIND" >&6; } 7074 else 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7076 $as_echo "no" >&6; } 7077 fi 7078 7079 7080 test -n "$FIND" && break 7081 done 7082 7083 else 7084 # The variable is set, but is it from the command line or the environment? 7085 7086 # Try to remove the string !FIND! from our list. 7087 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7088 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7089 # If it failed, the variable was not from the command line. Ignore it, 7090 # but warn the user (except for BASH, which is always set by the calling BASH). 7091 if test "xFIND" != xBASH; then 7092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7093 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7094 fi 7095 # 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 # If it succeeded, then it was overridden by the user. We will use it 7143 # for the tool. 7144 7145 # First remove it from the list of overridden variables, so we can test 7146 # for unknown variables in the end. 7147 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7148 7149 # Check if the provided tool contains a complete path. 7150 tool_specified="$FIND" 7151 tool_basename="${tool_specified##*/}" 7152 if test "x$tool_basename" = "x$tool_specified"; then 7153 # A command without a complete path is provided, search $PATH. 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7155 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7156 # Extract the first word of "$tool_basename", so it can be a program name with args. 7157 set dummy $tool_basename; 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 if test "x$FIND" = x; then 7197 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7198 fi 7199 else 7200 # Otherwise we believe it is a complete path. Use it as it is. 7201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7202 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7204 $as_echo_n "checking for FIND... " >&6; } 7205 if test ! -x "$tool_specified"; then 7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7207 $as_echo "not found" >&6; } 7208 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7209 fi 7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7211 $as_echo "$tool_specified" >&6; } 7212 fi 7213 fi 7214 fi 7215 7216 7217 7218 if test "x$FIND" = x; then 7219 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7220 fi 7221 7222 7223 7224 7225 7226 # Publish this variable in the help. 7227 7228 7229 if test "x$HEAD" = x; then 7230 # The variable is not set by user, try to locate tool using the code snippet 7231 for ac_prog in head 7232 do 7233 # Extract the first word of "$ac_prog", so it can be a program name with args. 7234 set dummy $ac_prog; ac_word=$2 7235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7236 $as_echo_n "checking for $ac_word... " >&6; } 7237 if ${ac_cv_path_HEAD+:} false; then : 7238 $as_echo_n "(cached) " >&6 7239 else 7240 case $HEAD in 7241 [\\/]* | ?:[\\/]*) 7242 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7243 ;; 7244 *) 7245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7246 for as_dir in $PATH 7247 do 7248 IFS=$as_save_IFS 7249 test -z "$as_dir" && as_dir=. 7250 for ac_exec_ext in '' $ac_executable_extensions; do 7251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7252 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7254 break 2 7255 fi 7256 done 7257 done 7258 IFS=$as_save_IFS 7259 7260 ;; 7261 esac 7262 fi 7263 HEAD=$ac_cv_path_HEAD 7264 if test -n "$HEAD"; then 7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7266 $as_echo "$HEAD" >&6; } 7267 else 7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7269 $as_echo "no" >&6; } 7270 fi 7271 7272 7273 test -n "$HEAD" && break 7274 done 7275 7276 else 7277 # The variable is set, but is it from the command line or the environment? 7278 7279 # Try to remove the string !HEAD! from our list. 7280 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7281 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7282 # If it failed, the variable was not from the command line. Ignore it, 7283 # but warn the user (except for BASH, which is always set by the calling BASH). 7284 if test "xHEAD" != xBASH; then 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7286 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7287 fi 7288 # 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 # If it succeeded, then it was overridden by the user. We will use it 7336 # for the tool. 7337 7338 # First remove it from the list of overridden variables, so we can test 7339 # for unknown variables in the end. 7340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7341 7342 # Check if the provided tool contains a complete path. 7343 tool_specified="$HEAD" 7344 tool_basename="${tool_specified##*/}" 7345 if test "x$tool_basename" = "x$tool_specified"; then 7346 # A command without a complete path is provided, search $PATH. 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7348 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7349 # Extract the first word of "$tool_basename", so it can be a program name with args. 7350 set dummy $tool_basename; 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 if test "x$HEAD" = x; then 7390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7391 fi 7392 else 7393 # Otherwise we believe it is a complete path. Use it as it is. 7394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7395 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7397 $as_echo_n "checking for HEAD... " >&6; } 7398 if test ! -x "$tool_specified"; then 7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7400 $as_echo "not found" >&6; } 7401 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7402 fi 7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7404 $as_echo "$tool_specified" >&6; } 7405 fi 7406 fi 7407 fi 7408 7409 7410 7411 if test "x$HEAD" = x; then 7412 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7413 fi 7414 7415 7416 7417 7418 7419 # Publish this variable in the help. 7420 7421 7422 if test "x$LN" = x; then 7423 # The variable is not set by user, try to locate tool using the code snippet 7424 for ac_prog in ln 7425 do 7426 # Extract the first word of "$ac_prog", so it can be a program name with args. 7427 set dummy $ac_prog; ac_word=$2 7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7429 $as_echo_n "checking for $ac_word... " >&6; } 7430 if ${ac_cv_path_LN+:} false; then : 7431 $as_echo_n "(cached) " >&6 7432 else 7433 case $LN in 7434 [\\/]* | ?:[\\/]*) 7435 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7436 ;; 7437 *) 7438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7439 for as_dir in $PATH 7440 do 7441 IFS=$as_save_IFS 7442 test -z "$as_dir" && as_dir=. 7443 for ac_exec_ext in '' $ac_executable_extensions; do 7444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7445 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7447 break 2 7448 fi 7449 done 7450 done 7451 IFS=$as_save_IFS 7452 7453 ;; 7454 esac 7455 fi 7456 LN=$ac_cv_path_LN 7457 if test -n "$LN"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7459 $as_echo "$LN" >&6; } 7460 else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462 $as_echo "no" >&6; } 7463 fi 7464 7465 7466 test -n "$LN" && break 7467 done 7468 7469 else 7470 # The variable is set, but is it from the command line or the environment? 7471 7472 # Try to remove the string !LN! from our list. 7473 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7474 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7475 # If it failed, the variable was not from the command line. Ignore it, 7476 # but warn the user (except for BASH, which is always set by the calling BASH). 7477 if test "xLN" != xBASH; then 7478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7479 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7480 fi 7481 # 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 # If it succeeded, then it was overridden by the user. We will use it 7529 # for the tool. 7530 7531 # First remove it from the list of overridden variables, so we can test 7532 # for unknown variables in the end. 7533 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7534 7535 # Check if the provided tool contains a complete path. 7536 tool_specified="$LN" 7537 tool_basename="${tool_specified##*/}" 7538 if test "x$tool_basename" = "x$tool_specified"; then 7539 # A command without a complete path is provided, search $PATH. 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7541 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7542 # Extract the first word of "$tool_basename", so it can be a program name with args. 7543 set dummy $tool_basename; 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 if test "x$LN" = x; then 7583 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7584 fi 7585 else 7586 # Otherwise we believe it is a complete path. Use it as it is. 7587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7588 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7590 $as_echo_n "checking for LN... " >&6; } 7591 if test ! -x "$tool_specified"; then 7592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7593 $as_echo "not found" >&6; } 7594 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7595 fi 7596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7597 $as_echo "$tool_specified" >&6; } 7598 fi 7599 fi 7600 fi 7601 7602 7603 7604 if test "x$LN" = x; then 7605 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7606 fi 7607 7608 7609 7610 7611 7612 # Publish this variable in the help. 7613 7614 7615 if test "x$LS" = x; then 7616 # The variable is not set by user, try to locate tool using the code snippet 7617 for ac_prog in ls 7618 do 7619 # Extract the first word of "$ac_prog", so it can be a program name with args. 7620 set dummy $ac_prog; ac_word=$2 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7622 $as_echo_n "checking for $ac_word... " >&6; } 7623 if ${ac_cv_path_LS+:} false; then : 7624 $as_echo_n "(cached) " >&6 7625 else 7626 case $LS in 7627 [\\/]* | ?:[\\/]*) 7628 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7629 ;; 7630 *) 7631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7632 for as_dir in $PATH 7633 do 7634 IFS=$as_save_IFS 7635 test -z "$as_dir" && as_dir=. 7636 for ac_exec_ext in '' $ac_executable_extensions; do 7637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7638 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7640 break 2 7641 fi 7642 done 7643 done 7644 IFS=$as_save_IFS 7645 7646 ;; 7647 esac 7648 fi 7649 LS=$ac_cv_path_LS 7650 if test -n "$LS"; then 7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7652 $as_echo "$LS" >&6; } 7653 else 7654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7655 $as_echo "no" >&6; } 7656 fi 7657 7658 7659 test -n "$LS" && break 7660 done 7661 7662 else 7663 # The variable is set, but is it from the command line or the environment? 7664 7665 # Try to remove the string !LS! from our list. 7666 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7667 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7668 # If it failed, the variable was not from the command line. Ignore it, 7669 # but warn the user (except for BASH, which is always set by the calling BASH). 7670 if test "xLS" != xBASH; then 7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7672 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7673 fi 7674 # 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 # If it succeeded, then it was overridden by the user. We will use it 7722 # for the tool. 7723 7724 # First remove it from the list of overridden variables, so we can test 7725 # for unknown variables in the end. 7726 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7727 7728 # Check if the provided tool contains a complete path. 7729 tool_specified="$LS" 7730 tool_basename="${tool_specified##*/}" 7731 if test "x$tool_basename" = "x$tool_specified"; then 7732 # A command without a complete path is provided, search $PATH. 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7734 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7735 # Extract the first word of "$tool_basename", so it can be a program name with args. 7736 set dummy $tool_basename; 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 if test "x$LS" = x; then 7776 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7777 fi 7778 else 7779 # Otherwise we believe it is a complete path. Use it as it is. 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7781 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7783 $as_echo_n "checking for LS... " >&6; } 7784 if test ! -x "$tool_specified"; then 7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7786 $as_echo "not found" >&6; } 7787 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7788 fi 7789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7790 $as_echo "$tool_specified" >&6; } 7791 fi 7792 fi 7793 fi 7794 7795 7796 7797 if test "x$LS" = x; then 7798 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7799 fi 7800 7801 7802 7803 7804 7805 # Publish this variable in the help. 7806 7807 7808 if test "x$MKDIR" = x; then 7809 # The variable is not set by user, try to locate tool using the code snippet 7810 for ac_prog in mkdir 7811 do 7812 # Extract the first word of "$ac_prog", so it can be a program name with args. 7813 set dummy $ac_prog; ac_word=$2 7814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7815 $as_echo_n "checking for $ac_word... " >&6; } 7816 if ${ac_cv_path_MKDIR+:} false; then : 7817 $as_echo_n "(cached) " >&6 7818 else 7819 case $MKDIR in 7820 [\\/]* | ?:[\\/]*) 7821 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7822 ;; 7823 *) 7824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7825 for as_dir in $PATH 7826 do 7827 IFS=$as_save_IFS 7828 test -z "$as_dir" && as_dir=. 7829 for ac_exec_ext in '' $ac_executable_extensions; do 7830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7831 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7833 break 2 7834 fi 7835 done 7836 done 7837 IFS=$as_save_IFS 7838 7839 ;; 7840 esac 7841 fi 7842 MKDIR=$ac_cv_path_MKDIR 7843 if test -n "$MKDIR"; then 7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7845 $as_echo "$MKDIR" >&6; } 7846 else 7847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7848 $as_echo "no" >&6; } 7849 fi 7850 7851 7852 test -n "$MKDIR" && break 7853 done 7854 7855 else 7856 # The variable is set, but is it from the command line or the environment? 7857 7858 # Try to remove the string !MKDIR! from our list. 7859 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 7860 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7861 # If it failed, the variable was not from the command line. Ignore it, 7862 # but warn the user (except for BASH, which is always set by the calling BASH). 7863 if test "xMKDIR" != xBASH; then 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 7865 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 7866 fi 7867 # 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 # If it succeeded, then it was overridden by the user. We will use it 7915 # for the tool. 7916 7917 # First remove it from the list of overridden variables, so we can test 7918 # for unknown variables in the end. 7919 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7920 7921 # Check if the provided tool contains a complete path. 7922 tool_specified="$MKDIR" 7923 tool_basename="${tool_specified##*/}" 7924 if test "x$tool_basename" = "x$tool_specified"; then 7925 # A command without a complete path is provided, search $PATH. 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 7927 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 7928 # Extract the first word of "$tool_basename", so it can be a program name with args. 7929 set dummy $tool_basename; 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 if test "x$MKDIR" = x; then 7969 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7970 fi 7971 else 7972 # Otherwise we believe it is a complete path. Use it as it is. 7973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 7974 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 7975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 7976 $as_echo_n "checking for MKDIR... " >&6; } 7977 if test ! -x "$tool_specified"; then 7978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7979 $as_echo "not found" >&6; } 7980 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 7981 fi 7982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7983 $as_echo "$tool_specified" >&6; } 7984 fi 7985 fi 7986 fi 7987 7988 7989 7990 if test "x$MKDIR" = x; then 7991 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 7992 fi 7993 7994 7995 7996 7997 7998 # Publish this variable in the help. 7999 8000 8001 if test "x$MKTEMP" = x; then 8002 # The variable is not set by user, try to locate tool using the code snippet 8003 for ac_prog in mktemp 8004 do 8005 # Extract the first word of "$ac_prog", so it can be a program name with args. 8006 set dummy $ac_prog; ac_word=$2 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8008 $as_echo_n "checking for $ac_word... " >&6; } 8009 if ${ac_cv_path_MKTEMP+:} false; then : 8010 $as_echo_n "(cached) " >&6 8011 else 8012 case $MKTEMP in 8013 [\\/]* | ?:[\\/]*) 8014 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8015 ;; 8016 *) 8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8018 for as_dir in $PATH 8019 do 8020 IFS=$as_save_IFS 8021 test -z "$as_dir" && as_dir=. 8022 for ac_exec_ext in '' $ac_executable_extensions; do 8023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8024 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8026 break 2 8027 fi 8028 done 8029 done 8030 IFS=$as_save_IFS 8031 8032 ;; 8033 esac 8034 fi 8035 MKTEMP=$ac_cv_path_MKTEMP 8036 if test -n "$MKTEMP"; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8038 $as_echo "$MKTEMP" >&6; } 8039 else 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8041 $as_echo "no" >&6; } 8042 fi 8043 8044 8045 test -n "$MKTEMP" && break 8046 done 8047 8048 else 8049 # The variable is set, but is it from the command line or the environment? 8050 8051 # Try to remove the string !MKTEMP! from our list. 8052 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8053 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8054 # If it failed, the variable was not from the command line. Ignore it, 8055 # but warn the user (except for BASH, which is always set by the calling BASH). 8056 if test "xMKTEMP" != xBASH; then 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8058 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8059 fi 8060 # 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 # If it succeeded, then it was overridden by the user. We will use it 8108 # for the tool. 8109 8110 # First remove it from the list of overridden variables, so we can test 8111 # for unknown variables in the end. 8112 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8113 8114 # Check if the provided tool contains a complete path. 8115 tool_specified="$MKTEMP" 8116 tool_basename="${tool_specified##*/}" 8117 if test "x$tool_basename" = "x$tool_specified"; then 8118 # A command without a complete path is provided, search $PATH. 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8120 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8121 # Extract the first word of "$tool_basename", so it can be a program name with args. 8122 set dummy $tool_basename; 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 if test "x$MKTEMP" = x; then 8162 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8163 fi 8164 else 8165 # Otherwise we believe it is a complete path. Use it as it is. 8166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8167 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8169 $as_echo_n "checking for MKTEMP... " >&6; } 8170 if test ! -x "$tool_specified"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8172 $as_echo "not found" >&6; } 8173 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8174 fi 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8176 $as_echo "$tool_specified" >&6; } 8177 fi 8178 fi 8179 fi 8180 8181 8182 8183 if test "x$MKTEMP" = x; then 8184 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8185 fi 8186 8187 8188 8189 8190 8191 # Publish this variable in the help. 8192 8193 8194 if test "x$MV" = x; then 8195 # The variable is not set by user, try to locate tool using the code snippet 8196 for ac_prog in mv 8197 do 8198 # Extract the first word of "$ac_prog", so it can be a program name with args. 8199 set dummy $ac_prog; ac_word=$2 8200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8201 $as_echo_n "checking for $ac_word... " >&6; } 8202 if ${ac_cv_path_MV+:} false; then : 8203 $as_echo_n "(cached) " >&6 8204 else 8205 case $MV in 8206 [\\/]* | ?:[\\/]*) 8207 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8208 ;; 8209 *) 8210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8211 for as_dir in $PATH 8212 do 8213 IFS=$as_save_IFS 8214 test -z "$as_dir" && as_dir=. 8215 for ac_exec_ext in '' $ac_executable_extensions; do 8216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8217 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8219 break 2 8220 fi 8221 done 8222 done 8223 IFS=$as_save_IFS 8224 8225 ;; 8226 esac 8227 fi 8228 MV=$ac_cv_path_MV 8229 if test -n "$MV"; then 8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8231 $as_echo "$MV" >&6; } 8232 else 8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8234 $as_echo "no" >&6; } 8235 fi 8236 8237 8238 test -n "$MV" && break 8239 done 8240 8241 else 8242 # The variable is set, but is it from the command line or the environment? 8243 8244 # Try to remove the string !MV! from our list. 8245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8247 # If it failed, the variable was not from the command line. Ignore it, 8248 # but warn the user (except for BASH, which is always set by the calling BASH). 8249 if test "xMV" != xBASH; then 8250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8251 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8252 fi 8253 # 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 # If it succeeded, then it was overridden by the user. We will use it 8301 # for the tool. 8302 8303 # First remove it from the list of overridden variables, so we can test 8304 # for unknown variables in the end. 8305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8306 8307 # Check if the provided tool contains a complete path. 8308 tool_specified="$MV" 8309 tool_basename="${tool_specified##*/}" 8310 if test "x$tool_basename" = "x$tool_specified"; then 8311 # A command without a complete path is provided, search $PATH. 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8313 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8314 # Extract the first word of "$tool_basename", so it can be a program name with args. 8315 set dummy $tool_basename; 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 if test "x$MV" = x; then 8355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8356 fi 8357 else 8358 # Otherwise we believe it is a complete path. Use it as it is. 8359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8360 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8362 $as_echo_n "checking for MV... " >&6; } 8363 if test ! -x "$tool_specified"; then 8364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8365 $as_echo "not found" >&6; } 8366 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8367 fi 8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8369 $as_echo "$tool_specified" >&6; } 8370 fi 8371 fi 8372 fi 8373 8374 8375 8376 if test "x$MV" = x; then 8377 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8378 fi 8379 8380 8381 8382 8383 8384 # Publish this variable in the help. 8385 8386 8387 if test "x$NAWK" = x; then 8388 # The variable is not set by user, try to locate tool using the code snippet 8389 for ac_prog in nawk gawk awk 8390 do 8391 # Extract the first word of "$ac_prog", so it can be a program name with args. 8392 set dummy $ac_prog; ac_word=$2 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8394 $as_echo_n "checking for $ac_word... " >&6; } 8395 if ${ac_cv_path_NAWK+:} false; then : 8396 $as_echo_n "(cached) " >&6 8397 else 8398 case $NAWK in 8399 [\\/]* | ?:[\\/]*) 8400 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8401 ;; 8402 *) 8403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8404 for as_dir in $PATH 8405 do 8406 IFS=$as_save_IFS 8407 test -z "$as_dir" && as_dir=. 8408 for ac_exec_ext in '' $ac_executable_extensions; do 8409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8410 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8412 break 2 8413 fi 8414 done 8415 done 8416 IFS=$as_save_IFS 8417 8418 ;; 8419 esac 8420 fi 8421 NAWK=$ac_cv_path_NAWK 8422 if test -n "$NAWK"; then 8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8424 $as_echo "$NAWK" >&6; } 8425 else 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8427 $as_echo "no" >&6; } 8428 fi 8429 8430 8431 test -n "$NAWK" && break 8432 done 8433 8434 else 8435 # The variable is set, but is it from the command line or the environment? 8436 8437 # Try to remove the string !NAWK! from our list. 8438 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8439 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8440 # If it failed, the variable was not from the command line. Ignore it, 8441 # but warn the user (except for BASH, which is always set by the calling BASH). 8442 if test "xNAWK" != xBASH; then 8443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8444 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8445 fi 8446 # 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 # If it succeeded, then it was overridden by the user. We will use it 8494 # for the tool. 8495 8496 # First remove it from the list of overridden variables, so we can test 8497 # for unknown variables in the end. 8498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8499 8500 # Check if the provided tool contains a complete path. 8501 tool_specified="$NAWK" 8502 tool_basename="${tool_specified##*/}" 8503 if test "x$tool_basename" = "x$tool_specified"; then 8504 # A command without a complete path is provided, search $PATH. 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8506 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8507 # Extract the first word of "$tool_basename", so it can be a program name with args. 8508 set dummy $tool_basename; 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 if test "x$NAWK" = x; then 8548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8549 fi 8550 else 8551 # Otherwise we believe it is a complete path. Use it as it is. 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8553 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8555 $as_echo_n "checking for NAWK... " >&6; } 8556 if test ! -x "$tool_specified"; then 8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8558 $as_echo "not found" >&6; } 8559 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8560 fi 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8562 $as_echo "$tool_specified" >&6; } 8563 fi 8564 fi 8565 fi 8566 8567 8568 8569 if test "x$NAWK" = x; then 8570 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8571 fi 8572 8573 8574 8575 8576 8577 # Publish this variable in the help. 8578 8579 8580 if test "x$PRINTF" = x; then 8581 # The variable is not set by user, try to locate tool using the code snippet 8582 for ac_prog in printf 8583 do 8584 # Extract the first word of "$ac_prog", so it can be a program name with args. 8585 set dummy $ac_prog; ac_word=$2 8586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8587 $as_echo_n "checking for $ac_word... " >&6; } 8588 if ${ac_cv_path_PRINTF+:} false; then : 8589 $as_echo_n "(cached) " >&6 8590 else 8591 case $PRINTF in 8592 [\\/]* | ?:[\\/]*) 8593 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8594 ;; 8595 *) 8596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8597 for as_dir in $PATH 8598 do 8599 IFS=$as_save_IFS 8600 test -z "$as_dir" && as_dir=. 8601 for ac_exec_ext in '' $ac_executable_extensions; do 8602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8603 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8605 break 2 8606 fi 8607 done 8608 done 8609 IFS=$as_save_IFS 8610 8611 ;; 8612 esac 8613 fi 8614 PRINTF=$ac_cv_path_PRINTF 8615 if test -n "$PRINTF"; then 8616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8617 $as_echo "$PRINTF" >&6; } 8618 else 8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8620 $as_echo "no" >&6; } 8621 fi 8622 8623 8624 test -n "$PRINTF" && break 8625 done 8626 8627 else 8628 # The variable is set, but is it from the command line or the environment? 8629 8630 # Try to remove the string !PRINTF! from our list. 8631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8633 # If it failed, the variable was not from the command line. Ignore it, 8634 # but warn the user (except for BASH, which is always set by the calling BASH). 8635 if test "xPRINTF" != xBASH; then 8636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8637 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8638 fi 8639 # 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 # If it succeeded, then it was overridden by the user. We will use it 8687 # for the tool. 8688 8689 # First remove it from the list of overridden variables, so we can test 8690 # for unknown variables in the end. 8691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8692 8693 # Check if the provided tool contains a complete path. 8694 tool_specified="$PRINTF" 8695 tool_basename="${tool_specified##*/}" 8696 if test "x$tool_basename" = "x$tool_specified"; then 8697 # A command without a complete path is provided, search $PATH. 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8699 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8700 # Extract the first word of "$tool_basename", so it can be a program name with args. 8701 set dummy $tool_basename; 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 if test "x$PRINTF" = x; then 8741 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8742 fi 8743 else 8744 # Otherwise we believe it is a complete path. Use it as it is. 8745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8746 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8748 $as_echo_n "checking for PRINTF... " >&6; } 8749 if test ! -x "$tool_specified"; then 8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8751 $as_echo "not found" >&6; } 8752 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8753 fi 8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8755 $as_echo "$tool_specified" >&6; } 8756 fi 8757 fi 8758 fi 8759 8760 8761 8762 if test "x$PRINTF" = x; then 8763 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8764 fi 8765 8766 8767 8768 8769 8770 # Publish this variable in the help. 8771 8772 8773 if test "x$RM" = x; then 8774 # The variable is not set by user, try to locate tool using the code snippet 8775 for ac_prog in rm 8776 do 8777 # Extract the first word of "$ac_prog", so it can be a program name with args. 8778 set dummy $ac_prog; ac_word=$2 8779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8780 $as_echo_n "checking for $ac_word... " >&6; } 8781 if ${ac_cv_path_RM+:} false; then : 8782 $as_echo_n "(cached) " >&6 8783 else 8784 case $RM in 8785 [\\/]* | ?:[\\/]*) 8786 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8787 ;; 8788 *) 8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8790 for as_dir in $PATH 8791 do 8792 IFS=$as_save_IFS 8793 test -z "$as_dir" && as_dir=. 8794 for ac_exec_ext in '' $ac_executable_extensions; do 8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8796 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8798 break 2 8799 fi 8800 done 8801 done 8802 IFS=$as_save_IFS 8803 8804 ;; 8805 esac 8806 fi 8807 RM=$ac_cv_path_RM 8808 if test -n "$RM"; then 8809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8810 $as_echo "$RM" >&6; } 8811 else 8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8813 $as_echo "no" >&6; } 8814 fi 8815 8816 8817 test -n "$RM" && break 8818 done 8819 8820 else 8821 # The variable is set, but is it from the command line or the environment? 8822 8823 # Try to remove the string !RM! from our list. 8824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8826 # If it failed, the variable was not from the command line. Ignore it, 8827 # but warn the user (except for BASH, which is always set by the calling BASH). 8828 if test "xRM" != xBASH; then 8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8830 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8831 fi 8832 # 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 # If it succeeded, then it was overridden by the user. We will use it 8880 # for the tool. 8881 8882 # First remove it from the list of overridden variables, so we can test 8883 # for unknown variables in the end. 8884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8885 8886 # Check if the provided tool contains a complete path. 8887 tool_specified="$RM" 8888 tool_basename="${tool_specified##*/}" 8889 if test "x$tool_basename" = "x$tool_specified"; then 8890 # A command without a complete path is provided, search $PATH. 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 8892 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 8893 # Extract the first word of "$tool_basename", so it can be a program name with args. 8894 set dummy $tool_basename; 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 if test "x$RM" = x; then 8934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8935 fi 8936 else 8937 # Otherwise we believe it is a complete path. Use it as it is. 8938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 8939 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 8940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 8941 $as_echo_n "checking for RM... " >&6; } 8942 if test ! -x "$tool_specified"; then 8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8944 $as_echo "not found" >&6; } 8945 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 8946 fi 8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8948 $as_echo "$tool_specified" >&6; } 8949 fi 8950 fi 8951 fi 8952 8953 8954 8955 if test "x$RM" = x; then 8956 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 8957 fi 8958 8959 8960 8961 8962 8963 # Publish this variable in the help. 8964 8965 8966 if test "x$SH" = x; then 8967 # The variable is not set by user, try to locate tool using the code snippet 8968 for ac_prog in sh 8969 do 8970 # Extract the first word of "$ac_prog", so it can be a program name with args. 8971 set dummy $ac_prog; ac_word=$2 8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8973 $as_echo_n "checking for $ac_word... " >&6; } 8974 if ${ac_cv_path_SH+:} false; then : 8975 $as_echo_n "(cached) " >&6 8976 else 8977 case $SH in 8978 [\\/]* | ?:[\\/]*) 8979 ac_cv_path_SH="$SH" # Let the user override the test with a path. 8980 ;; 8981 *) 8982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8983 for as_dir in $PATH 8984 do 8985 IFS=$as_save_IFS 8986 test -z "$as_dir" && as_dir=. 8987 for ac_exec_ext in '' $ac_executable_extensions; do 8988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8989 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 8990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8991 break 2 8992 fi 8993 done 8994 done 8995 IFS=$as_save_IFS 8996 8997 ;; 8998 esac 8999 fi 9000 SH=$ac_cv_path_SH 9001 if test -n "$SH"; then 9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9003 $as_echo "$SH" >&6; } 9004 else 9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9006 $as_echo "no" >&6; } 9007 fi 9008 9009 9010 test -n "$SH" && break 9011 done 9012 9013 else 9014 # The variable is set, but is it from the command line or the environment? 9015 9016 # Try to remove the string !SH! from our list. 9017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9019 # If it failed, the variable was not from the command line. Ignore it, 9020 # but warn the user (except for BASH, which is always set by the calling BASH). 9021 if test "xSH" != xBASH; then 9022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9023 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9024 fi 9025 # 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 # If it succeeded, then it was overridden by the user. We will use it 9073 # for the tool. 9074 9075 # First remove it from the list of overridden variables, so we can test 9076 # for unknown variables in the end. 9077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9078 9079 # Check if the provided tool contains a complete path. 9080 tool_specified="$SH" 9081 tool_basename="${tool_specified##*/}" 9082 if test "x$tool_basename" = "x$tool_specified"; then 9083 # A command without a complete path is provided, search $PATH. 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9085 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9086 # Extract the first word of "$tool_basename", so it can be a program name with args. 9087 set dummy $tool_basename; 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 if test "x$SH" = x; then 9127 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9128 fi 9129 else 9130 # Otherwise we believe it is a complete path. Use it as it is. 9131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9132 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9134 $as_echo_n "checking for SH... " >&6; } 9135 if test ! -x "$tool_specified"; then 9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9137 $as_echo "not found" >&6; } 9138 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9139 fi 9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9141 $as_echo "$tool_specified" >&6; } 9142 fi 9143 fi 9144 fi 9145 9146 9147 9148 if test "x$SH" = x; then 9149 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9150 fi 9151 9152 9153 9154 9155 9156 # Publish this variable in the help. 9157 9158 9159 if test "x$SORT" = x; then 9160 # The variable is not set by user, try to locate tool using the code snippet 9161 for ac_prog in sort 9162 do 9163 # Extract the first word of "$ac_prog", so it can be a program name with args. 9164 set dummy $ac_prog; ac_word=$2 9165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9166 $as_echo_n "checking for $ac_word... " >&6; } 9167 if ${ac_cv_path_SORT+:} false; then : 9168 $as_echo_n "(cached) " >&6 9169 else 9170 case $SORT in 9171 [\\/]* | ?:[\\/]*) 9172 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9173 ;; 9174 *) 9175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9176 for as_dir in $PATH 9177 do 9178 IFS=$as_save_IFS 9179 test -z "$as_dir" && as_dir=. 9180 for ac_exec_ext in '' $ac_executable_extensions; do 9181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9182 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9184 break 2 9185 fi 9186 done 9187 done 9188 IFS=$as_save_IFS 9189 9190 ;; 9191 esac 9192 fi 9193 SORT=$ac_cv_path_SORT 9194 if test -n "$SORT"; then 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9196 $as_echo "$SORT" >&6; } 9197 else 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9199 $as_echo "no" >&6; } 9200 fi 9201 9202 9203 test -n "$SORT" && break 9204 done 9205 9206 else 9207 # The variable is set, but is it from the command line or the environment? 9208 9209 # Try to remove the string !SORT! from our list. 9210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9212 # If it failed, the variable was not from the command line. Ignore it, 9213 # but warn the user (except for BASH, which is always set by the calling BASH). 9214 if test "xSORT" != xBASH; then 9215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9216 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9217 fi 9218 # 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 # If it succeeded, then it was overridden by the user. We will use it 9266 # for the tool. 9267 9268 # First remove it from the list of overridden variables, so we can test 9269 # for unknown variables in the end. 9270 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9271 9272 # Check if the provided tool contains a complete path. 9273 tool_specified="$SORT" 9274 tool_basename="${tool_specified##*/}" 9275 if test "x$tool_basename" = "x$tool_specified"; then 9276 # A command without a complete path is provided, search $PATH. 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9278 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9279 # Extract the first word of "$tool_basename", so it can be a program name with args. 9280 set dummy $tool_basename; 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 if test "x$SORT" = x; then 9320 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9321 fi 9322 else 9323 # Otherwise we believe it is a complete path. Use it as it is. 9324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9325 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9327 $as_echo_n "checking for SORT... " >&6; } 9328 if test ! -x "$tool_specified"; then 9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9330 $as_echo "not found" >&6; } 9331 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9332 fi 9333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9334 $as_echo "$tool_specified" >&6; } 9335 fi 9336 fi 9337 fi 9338 9339 9340 9341 if test "x$SORT" = x; then 9342 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9343 fi 9344 9345 9346 9347 9348 9349 # Publish this variable in the help. 9350 9351 9352 if test "x$TAIL" = x; then 9353 # The variable is not set by user, try to locate tool using the code snippet 9354 for ac_prog in tail 9355 do 9356 # Extract the first word of "$ac_prog", so it can be a program name with args. 9357 set dummy $ac_prog; ac_word=$2 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9359 $as_echo_n "checking for $ac_word... " >&6; } 9360 if ${ac_cv_path_TAIL+:} false; then : 9361 $as_echo_n "(cached) " >&6 9362 else 9363 case $TAIL in 9364 [\\/]* | ?:[\\/]*) 9365 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9366 ;; 9367 *) 9368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9369 for as_dir in $PATH 9370 do 9371 IFS=$as_save_IFS 9372 test -z "$as_dir" && as_dir=. 9373 for ac_exec_ext in '' $ac_executable_extensions; do 9374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9375 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9377 break 2 9378 fi 9379 done 9380 done 9381 IFS=$as_save_IFS 9382 9383 ;; 9384 esac 9385 fi 9386 TAIL=$ac_cv_path_TAIL 9387 if test -n "$TAIL"; then 9388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9389 $as_echo "$TAIL" >&6; } 9390 else 9391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9392 $as_echo "no" >&6; } 9393 fi 9394 9395 9396 test -n "$TAIL" && break 9397 done 9398 9399 else 9400 # The variable is set, but is it from the command line or the environment? 9401 9402 # Try to remove the string !TAIL! from our list. 9403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9405 # If it failed, the variable was not from the command line. Ignore it, 9406 # but warn the user (except for BASH, which is always set by the calling BASH). 9407 if test "xTAIL" != xBASH; then 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9409 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9410 fi 9411 # 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 # If it succeeded, then it was overridden by the user. We will use it 9459 # for the tool. 9460 9461 # First remove it from the list of overridden variables, so we can test 9462 # for unknown variables in the end. 9463 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9464 9465 # Check if the provided tool contains a complete path. 9466 tool_specified="$TAIL" 9467 tool_basename="${tool_specified##*/}" 9468 if test "x$tool_basename" = "x$tool_specified"; then 9469 # A command without a complete path is provided, search $PATH. 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9471 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9472 # Extract the first word of "$tool_basename", so it can be a program name with args. 9473 set dummy $tool_basename; 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 if test "x$TAIL" = x; then 9513 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9514 fi 9515 else 9516 # Otherwise we believe it is a complete path. Use it as it is. 9517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9518 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9520 $as_echo_n "checking for TAIL... " >&6; } 9521 if test ! -x "$tool_specified"; then 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9523 $as_echo "not found" >&6; } 9524 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9525 fi 9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9527 $as_echo "$tool_specified" >&6; } 9528 fi 9529 fi 9530 fi 9531 9532 9533 9534 if test "x$TAIL" = x; then 9535 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9536 fi 9537 9538 9539 9540 9541 9542 # Publish this variable in the help. 9543 9544 9545 if test "x$TAR" = x; then 9546 # The variable is not set by user, try to locate tool using the code snippet 9547 for ac_prog in tar 9548 do 9549 # Extract the first word of "$ac_prog", so it can be a program name with args. 9550 set dummy $ac_prog; ac_word=$2 9551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9552 $as_echo_n "checking for $ac_word... " >&6; } 9553 if ${ac_cv_path_TAR+:} false; then : 9554 $as_echo_n "(cached) " >&6 9555 else 9556 case $TAR in 9557 [\\/]* | ?:[\\/]*) 9558 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9559 ;; 9560 *) 9561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9562 for as_dir in $PATH 9563 do 9564 IFS=$as_save_IFS 9565 test -z "$as_dir" && as_dir=. 9566 for ac_exec_ext in '' $ac_executable_extensions; do 9567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9568 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9570 break 2 9571 fi 9572 done 9573 done 9574 IFS=$as_save_IFS 9575 9576 ;; 9577 esac 9578 fi 9579 TAR=$ac_cv_path_TAR 9580 if test -n "$TAR"; then 9581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9582 $as_echo "$TAR" >&6; } 9583 else 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9585 $as_echo "no" >&6; } 9586 fi 9587 9588 9589 test -n "$TAR" && break 9590 done 9591 9592 else 9593 # The variable is set, but is it from the command line or the environment? 9594 9595 # Try to remove the string !TAR! from our list. 9596 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9597 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9598 # If it failed, the variable was not from the command line. Ignore it, 9599 # but warn the user (except for BASH, which is always set by the calling BASH). 9600 if test "xTAR" != xBASH; then 9601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9602 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9603 fi 9604 # 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 # If it succeeded, then it was overridden by the user. We will use it 9652 # for the tool. 9653 9654 # First remove it from the list of overridden variables, so we can test 9655 # for unknown variables in the end. 9656 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9657 9658 # Check if the provided tool contains a complete path. 9659 tool_specified="$TAR" 9660 tool_basename="${tool_specified##*/}" 9661 if test "x$tool_basename" = "x$tool_specified"; then 9662 # A command without a complete path is provided, search $PATH. 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9664 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9665 # Extract the first word of "$tool_basename", so it can be a program name with args. 9666 set dummy $tool_basename; 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 if test "x$TAR" = x; then 9706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9707 fi 9708 else 9709 # Otherwise we believe it is a complete path. Use it as it is. 9710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9711 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9713 $as_echo_n "checking for TAR... " >&6; } 9714 if test ! -x "$tool_specified"; then 9715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9716 $as_echo "not found" >&6; } 9717 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9718 fi 9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9720 $as_echo "$tool_specified" >&6; } 9721 fi 9722 fi 9723 fi 9724 9725 9726 9727 if test "x$TAR" = x; then 9728 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9729 fi 9730 9731 9732 9733 9734 9735 # Publish this variable in the help. 9736 9737 9738 if test "x$TEE" = x; then 9739 # The variable is not set by user, try to locate tool using the code snippet 9740 for ac_prog in tee 9741 do 9742 # Extract the first word of "$ac_prog", so it can be a program name with args. 9743 set dummy $ac_prog; ac_word=$2 9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9745 $as_echo_n "checking for $ac_word... " >&6; } 9746 if ${ac_cv_path_TEE+:} false; then : 9747 $as_echo_n "(cached) " >&6 9748 else 9749 case $TEE in 9750 [\\/]* | ?:[\\/]*) 9751 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9752 ;; 9753 *) 9754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9755 for as_dir in $PATH 9756 do 9757 IFS=$as_save_IFS 9758 test -z "$as_dir" && as_dir=. 9759 for ac_exec_ext in '' $ac_executable_extensions; do 9760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9761 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9763 break 2 9764 fi 9765 done 9766 done 9767 IFS=$as_save_IFS 9768 9769 ;; 9770 esac 9771 fi 9772 TEE=$ac_cv_path_TEE 9773 if test -n "$TEE"; then 9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9775 $as_echo "$TEE" >&6; } 9776 else 9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9778 $as_echo "no" >&6; } 9779 fi 9780 9781 9782 test -n "$TEE" && break 9783 done 9784 9785 else 9786 # The variable is set, but is it from the command line or the environment? 9787 9788 # Try to remove the string !TEE! from our list. 9789 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9790 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9791 # If it failed, the variable was not from the command line. Ignore it, 9792 # but warn the user (except for BASH, which is always set by the calling BASH). 9793 if test "xTEE" != xBASH; then 9794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9795 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9796 fi 9797 # 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 # If it succeeded, then it was overridden by the user. We will use it 9845 # for the tool. 9846 9847 # First remove it from the list of overridden variables, so we can test 9848 # for unknown variables in the end. 9849 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9850 9851 # Check if the provided tool contains a complete path. 9852 tool_specified="$TEE" 9853 tool_basename="${tool_specified##*/}" 9854 if test "x$tool_basename" = "x$tool_specified"; then 9855 # A command without a complete path is provided, search $PATH. 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9857 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9858 # Extract the first word of "$tool_basename", so it can be a program name with args. 9859 set dummy $tool_basename; 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 if test "x$TEE" = x; then 9899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9900 fi 9901 else 9902 # Otherwise we believe it is a complete path. Use it as it is. 9903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 9904 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 9906 $as_echo_n "checking for TEE... " >&6; } 9907 if test ! -x "$tool_specified"; then 9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9909 $as_echo "not found" >&6; } 9910 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 9911 fi 9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9913 $as_echo "$tool_specified" >&6; } 9914 fi 9915 fi 9916 fi 9917 9918 9919 9920 if test "x$TEE" = x; then 9921 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 9922 fi 9923 9924 9925 9926 9927 9928 # Publish this variable in the help. 9929 9930 9931 if test "x$TOUCH" = x; then 9932 # The variable is not set by user, try to locate tool using the code snippet 9933 for ac_prog in touch 9934 do 9935 # Extract the first word of "$ac_prog", so it can be a program name with args. 9936 set dummy $ac_prog; ac_word=$2 9937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9938 $as_echo_n "checking for $ac_word... " >&6; } 9939 if ${ac_cv_path_TOUCH+:} false; then : 9940 $as_echo_n "(cached) " >&6 9941 else 9942 case $TOUCH in 9943 [\\/]* | ?:[\\/]*) 9944 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 9945 ;; 9946 *) 9947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9948 for as_dir in $PATH 9949 do 9950 IFS=$as_save_IFS 9951 test -z "$as_dir" && as_dir=. 9952 for ac_exec_ext in '' $ac_executable_extensions; do 9953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9954 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 9955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9956 break 2 9957 fi 9958 done 9959 done 9960 IFS=$as_save_IFS 9961 9962 ;; 9963 esac 9964 fi 9965 TOUCH=$ac_cv_path_TOUCH 9966 if test -n "$TOUCH"; then 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 9968 $as_echo "$TOUCH" >&6; } 9969 else 9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9971 $as_echo "no" >&6; } 9972 fi 9973 9974 9975 test -n "$TOUCH" && break 9976 done 9977 9978 else 9979 # The variable is set, but is it from the command line or the environment? 9980 9981 # Try to remove the string !TOUCH! from our list. 9982 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 9983 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9984 # If it failed, the variable was not from the command line. Ignore it, 9985 # but warn the user (except for BASH, which is always set by the calling BASH). 9986 if test "xTOUCH" != xBASH; then 9987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 9988 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 9989 fi 9990 # Try to locate tool using the code snippet 9991 for ac_prog in 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 # If it succeeded, then it was overridden by the user. We will use it 10038 # for the tool. 10039 10040 # First remove it from the list of overridden variables, so we can test 10041 # for unknown variables in the end. 10042 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10043 10044 # Check if the provided tool contains a complete path. 10045 tool_specified="$TOUCH" 10046 tool_basename="${tool_specified##*/}" 10047 if test "x$tool_basename" = "x$tool_specified"; then 10048 # A command without a complete path is provided, search $PATH. 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10050 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10051 # Extract the first word of "$tool_basename", so it can be a program name with args. 10052 set dummy $tool_basename; 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 if test "x$TOUCH" = x; then 10092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10093 fi 10094 else 10095 # Otherwise we believe it is a complete path. Use it as it is. 10096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10097 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10099 $as_echo_n "checking for TOUCH... " >&6; } 10100 if test ! -x "$tool_specified"; then 10101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10102 $as_echo "not found" >&6; } 10103 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10104 fi 10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10106 $as_echo "$tool_specified" >&6; } 10107 fi 10108 fi 10109 fi 10110 10111 10112 10113 if test "x$TOUCH" = x; then 10114 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10115 fi 10116 10117 10118 10119 10120 10121 # Publish this variable in the help. 10122 10123 10124 if test "x$TR" = x; then 10125 # The variable is not set by user, try to locate tool using the code snippet 10126 for ac_prog in tr 10127 do 10128 # Extract the first word of "$ac_prog", so it can be a program name with args. 10129 set dummy $ac_prog; ac_word=$2 10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10131 $as_echo_n "checking for $ac_word... " >&6; } 10132 if ${ac_cv_path_TR+:} false; then : 10133 $as_echo_n "(cached) " >&6 10134 else 10135 case $TR in 10136 [\\/]* | ?:[\\/]*) 10137 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10138 ;; 10139 *) 10140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10141 for as_dir in $PATH 10142 do 10143 IFS=$as_save_IFS 10144 test -z "$as_dir" && as_dir=. 10145 for ac_exec_ext in '' $ac_executable_extensions; do 10146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10147 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10149 break 2 10150 fi 10151 done 10152 done 10153 IFS=$as_save_IFS 10154 10155 ;; 10156 esac 10157 fi 10158 TR=$ac_cv_path_TR 10159 if test -n "$TR"; then 10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10161 $as_echo "$TR" >&6; } 10162 else 10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10164 $as_echo "no" >&6; } 10165 fi 10166 10167 10168 test -n "$TR" && break 10169 done 10170 10171 else 10172 # The variable is set, but is it from the command line or the environment? 10173 10174 # Try to remove the string !TR! from our list. 10175 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10176 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10177 # If it failed, the variable was not from the command line. Ignore it, 10178 # but warn the user (except for BASH, which is always set by the calling BASH). 10179 if test "xTR" != xBASH; then 10180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10181 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10182 fi 10183 # 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 # If it succeeded, then it was overridden by the user. We will use it 10231 # for the tool. 10232 10233 # First remove it from the list of overridden variables, so we can test 10234 # for unknown variables in the end. 10235 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10236 10237 # Check if the provided tool contains a complete path. 10238 tool_specified="$TR" 10239 tool_basename="${tool_specified##*/}" 10240 if test "x$tool_basename" = "x$tool_specified"; then 10241 # A command without a complete path is provided, search $PATH. 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10243 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10244 # Extract the first word of "$tool_basename", so it can be a program name with args. 10245 set dummy $tool_basename; 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 if test "x$TR" = x; then 10285 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10286 fi 10287 else 10288 # Otherwise we believe it is a complete path. Use it as it is. 10289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10290 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10292 $as_echo_n "checking for TR... " >&6; } 10293 if test ! -x "$tool_specified"; then 10294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10295 $as_echo "not found" >&6; } 10296 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10297 fi 10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10299 $as_echo "$tool_specified" >&6; } 10300 fi 10301 fi 10302 fi 10303 10304 10305 10306 if test "x$TR" = x; then 10307 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10308 fi 10309 10310 10311 10312 10313 10314 # Publish this variable in the help. 10315 10316 10317 if test "x$UNAME" = x; then 10318 # The variable is not set by user, try to locate tool using the code snippet 10319 for ac_prog in uname 10320 do 10321 # Extract the first word of "$ac_prog", so it can be a program name with args. 10322 set dummy $ac_prog; ac_word=$2 10323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10324 $as_echo_n "checking for $ac_word... " >&6; } 10325 if ${ac_cv_path_UNAME+:} false; then : 10326 $as_echo_n "(cached) " >&6 10327 else 10328 case $UNAME in 10329 [\\/]* | ?:[\\/]*) 10330 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10331 ;; 10332 *) 10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10334 for as_dir in $PATH 10335 do 10336 IFS=$as_save_IFS 10337 test -z "$as_dir" && as_dir=. 10338 for ac_exec_ext in '' $ac_executable_extensions; do 10339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10340 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10342 break 2 10343 fi 10344 done 10345 done 10346 IFS=$as_save_IFS 10347 10348 ;; 10349 esac 10350 fi 10351 UNAME=$ac_cv_path_UNAME 10352 if test -n "$UNAME"; then 10353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10354 $as_echo "$UNAME" >&6; } 10355 else 10356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10357 $as_echo "no" >&6; } 10358 fi 10359 10360 10361 test -n "$UNAME" && break 10362 done 10363 10364 else 10365 # The variable is set, but is it from the command line or the environment? 10366 10367 # Try to remove the string !UNAME! from our list. 10368 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10369 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10370 # If it failed, the variable was not from the command line. Ignore it, 10371 # but warn the user (except for BASH, which is always set by the calling BASH). 10372 if test "xUNAME" != xBASH; then 10373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10374 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10375 fi 10376 # 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 # If it succeeded, then it was overridden by the user. We will use it 10424 # for the tool. 10425 10426 # First remove it from the list of overridden variables, so we can test 10427 # for unknown variables in the end. 10428 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10429 10430 # Check if the provided tool contains a complete path. 10431 tool_specified="$UNAME" 10432 tool_basename="${tool_specified##*/}" 10433 if test "x$tool_basename" = "x$tool_specified"; then 10434 # A command without a complete path is provided, search $PATH. 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10436 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10437 # Extract the first word of "$tool_basename", so it can be a program name with args. 10438 set dummy $tool_basename; 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 if test "x$UNAME" = x; then 10478 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10479 fi 10480 else 10481 # Otherwise we believe it is a complete path. Use it as it is. 10482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10483 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10485 $as_echo_n "checking for UNAME... " >&6; } 10486 if test ! -x "$tool_specified"; then 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10488 $as_echo "not found" >&6; } 10489 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10490 fi 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10492 $as_echo "$tool_specified" >&6; } 10493 fi 10494 fi 10495 fi 10496 10497 10498 10499 if test "x$UNAME" = x; then 10500 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10501 fi 10502 10503 10504 10505 10506 10507 # Publish this variable in the help. 10508 10509 10510 if test "x$UNIQ" = x; then 10511 # The variable is not set by user, try to locate tool using the code snippet 10512 for ac_prog in uniq 10513 do 10514 # Extract the first word of "$ac_prog", so it can be a program name with args. 10515 set dummy $ac_prog; ac_word=$2 10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10517 $as_echo_n "checking for $ac_word... " >&6; } 10518 if ${ac_cv_path_UNIQ+:} false; then : 10519 $as_echo_n "(cached) " >&6 10520 else 10521 case $UNIQ in 10522 [\\/]* | ?:[\\/]*) 10523 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10524 ;; 10525 *) 10526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10527 for as_dir in $PATH 10528 do 10529 IFS=$as_save_IFS 10530 test -z "$as_dir" && as_dir=. 10531 for ac_exec_ext in '' $ac_executable_extensions; do 10532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10533 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10535 break 2 10536 fi 10537 done 10538 done 10539 IFS=$as_save_IFS 10540 10541 ;; 10542 esac 10543 fi 10544 UNIQ=$ac_cv_path_UNIQ 10545 if test -n "$UNIQ"; then 10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10547 $as_echo "$UNIQ" >&6; } 10548 else 10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10550 $as_echo "no" >&6; } 10551 fi 10552 10553 10554 test -n "$UNIQ" && break 10555 done 10556 10557 else 10558 # The variable is set, but is it from the command line or the environment? 10559 10560 # Try to remove the string !UNIQ! from our list. 10561 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10562 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10563 # If it failed, the variable was not from the command line. Ignore it, 10564 # but warn the user (except for BASH, which is always set by the calling BASH). 10565 if test "xUNIQ" != xBASH; then 10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10567 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10568 fi 10569 # 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 # If it succeeded, then it was overridden by the user. We will use it 10617 # for the tool. 10618 10619 # First remove it from the list of overridden variables, so we can test 10620 # for unknown variables in the end. 10621 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10622 10623 # Check if the provided tool contains a complete path. 10624 tool_specified="$UNIQ" 10625 tool_basename="${tool_specified##*/}" 10626 if test "x$tool_basename" = "x$tool_specified"; then 10627 # A command without a complete path is provided, search $PATH. 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10629 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10630 # Extract the first word of "$tool_basename", so it can be a program name with args. 10631 set dummy $tool_basename; 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 if test "x$UNIQ" = x; then 10671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10672 fi 10673 else 10674 # Otherwise we believe it is a complete path. Use it as it is. 10675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10676 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10678 $as_echo_n "checking for UNIQ... " >&6; } 10679 if test ! -x "$tool_specified"; then 10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10681 $as_echo "not found" >&6; } 10682 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10683 fi 10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10685 $as_echo "$tool_specified" >&6; } 10686 fi 10687 fi 10688 fi 10689 10690 10691 10692 if test "x$UNIQ" = x; then 10693 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10694 fi 10695 10696 10697 10698 10699 10700 # Publish this variable in the help. 10701 10702 10703 if test "x$WC" = x; then 10704 # The variable is not set by user, try to locate tool using the code snippet 10705 for ac_prog in wc 10706 do 10707 # Extract the first word of "$ac_prog", so it can be a program name with args. 10708 set dummy $ac_prog; ac_word=$2 10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10710 $as_echo_n "checking for $ac_word... " >&6; } 10711 if ${ac_cv_path_WC+:} false; then : 10712 $as_echo_n "(cached) " >&6 10713 else 10714 case $WC in 10715 [\\/]* | ?:[\\/]*) 10716 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10717 ;; 10718 *) 10719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10720 for as_dir in $PATH 10721 do 10722 IFS=$as_save_IFS 10723 test -z "$as_dir" && as_dir=. 10724 for ac_exec_ext in '' $ac_executable_extensions; do 10725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10726 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10728 break 2 10729 fi 10730 done 10731 done 10732 IFS=$as_save_IFS 10733 10734 ;; 10735 esac 10736 fi 10737 WC=$ac_cv_path_WC 10738 if test -n "$WC"; then 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10740 $as_echo "$WC" >&6; } 10741 else 10742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10743 $as_echo "no" >&6; } 10744 fi 10745 10746 10747 test -n "$WC" && break 10748 done 10749 10750 else 10751 # The variable is set, but is it from the command line or the environment? 10752 10753 # Try to remove the string !WC! from our list. 10754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10756 # If it failed, the variable was not from the command line. Ignore it, 10757 # but warn the user (except for BASH, which is always set by the calling BASH). 10758 if test "xWC" != xBASH; then 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10760 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10761 fi 10762 # 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 # If it succeeded, then it was overridden by the user. We will use it 10810 # for the tool. 10811 10812 # First remove it from the list of overridden variables, so we can test 10813 # for unknown variables in the end. 10814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10815 10816 # Check if the provided tool contains a complete path. 10817 tool_specified="$WC" 10818 tool_basename="${tool_specified##*/}" 10819 if test "x$tool_basename" = "x$tool_specified"; then 10820 # A command without a complete path is provided, search $PATH. 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10822 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10823 # Extract the first word of "$tool_basename", so it can be a program name with args. 10824 set dummy $tool_basename; 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 if test "x$WC" = x; then 10864 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10865 fi 10866 else 10867 # Otherwise we believe it is a complete path. Use it as it is. 10868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 10869 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 10870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 10871 $as_echo_n "checking for WC... " >&6; } 10872 if test ! -x "$tool_specified"; then 10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10874 $as_echo "not found" >&6; } 10875 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 10876 fi 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10878 $as_echo "$tool_specified" >&6; } 10879 fi 10880 fi 10881 fi 10882 10883 10884 10885 if test "x$WC" = x; then 10886 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 10887 fi 10888 10889 10890 10891 10892 10893 # Publish this variable in the help. 10894 10895 10896 if test "x$WHICH" = x; then 10897 # The variable is not set by user, try to locate tool using the code snippet 10898 for ac_prog in which 10899 do 10900 # Extract the first word of "$ac_prog", so it can be a program name with args. 10901 set dummy $ac_prog; ac_word=$2 10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10903 $as_echo_n "checking for $ac_word... " >&6; } 10904 if ${ac_cv_path_WHICH+:} false; then : 10905 $as_echo_n "(cached) " >&6 10906 else 10907 case $WHICH in 10908 [\\/]* | ?:[\\/]*) 10909 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 10910 ;; 10911 *) 10912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10913 for as_dir in $PATH 10914 do 10915 IFS=$as_save_IFS 10916 test -z "$as_dir" && as_dir=. 10917 for ac_exec_ext in '' $ac_executable_extensions; do 10918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10919 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 10920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10921 break 2 10922 fi 10923 done 10924 done 10925 IFS=$as_save_IFS 10926 10927 ;; 10928 esac 10929 fi 10930 WHICH=$ac_cv_path_WHICH 10931 if test -n "$WHICH"; then 10932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 10933 $as_echo "$WHICH" >&6; } 10934 else 10935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10936 $as_echo "no" >&6; } 10937 fi 10938 10939 10940 test -n "$WHICH" && break 10941 done 10942 10943 else 10944 # The variable is set, but is it from the command line or the environment? 10945 10946 # Try to remove the string !WHICH! from our list. 10947 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 10948 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10949 # If it failed, the variable was not from the command line. Ignore it, 10950 # but warn the user (except for BASH, which is always set by the calling BASH). 10951 if test "xWHICH" != xBASH; then 10952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 10953 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 10954 fi 10955 # 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 # If it succeeded, then it was overridden by the user. We will use it 11003 # for the tool. 11004 11005 # First remove it from the list of overridden variables, so we can test 11006 # for unknown variables in the end. 11007 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11008 11009 # Check if the provided tool contains a complete path. 11010 tool_specified="$WHICH" 11011 tool_basename="${tool_specified##*/}" 11012 if test "x$tool_basename" = "x$tool_specified"; then 11013 # A command without a complete path is provided, search $PATH. 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11015 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11016 # Extract the first word of "$tool_basename", so it can be a program name with args. 11017 set dummy $tool_basename; 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 if test "x$WHICH" = x; then 11057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11058 fi 11059 else 11060 # Otherwise we believe it is a complete path. Use it as it is. 11061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11062 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11064 $as_echo_n "checking for WHICH... " >&6; } 11065 if test ! -x "$tool_specified"; then 11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11067 $as_echo "not found" >&6; } 11068 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11069 fi 11070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11071 $as_echo "$tool_specified" >&6; } 11072 fi 11073 fi 11074 fi 11075 11076 11077 11078 if test "x$WHICH" = x; then 11079 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11080 fi 11081 11082 11083 11084 11085 11086 # Publish this variable in the help. 11087 11088 11089 if test "x$XARGS" = x; then 11090 # The variable is not set by user, try to locate tool using the code snippet 11091 for ac_prog in xargs 11092 do 11093 # Extract the first word of "$ac_prog", so it can be a program name with args. 11094 set dummy $ac_prog; ac_word=$2 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11096 $as_echo_n "checking for $ac_word... " >&6; } 11097 if ${ac_cv_path_XARGS+:} false; then : 11098 $as_echo_n "(cached) " >&6 11099 else 11100 case $XARGS in 11101 [\\/]* | ?:[\\/]*) 11102 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11103 ;; 11104 *) 11105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11106 for as_dir in $PATH 11107 do 11108 IFS=$as_save_IFS 11109 test -z "$as_dir" && as_dir=. 11110 for ac_exec_ext in '' $ac_executable_extensions; do 11111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11112 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11114 break 2 11115 fi 11116 done 11117 done 11118 IFS=$as_save_IFS 11119 11120 ;; 11121 esac 11122 fi 11123 XARGS=$ac_cv_path_XARGS 11124 if test -n "$XARGS"; then 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11126 $as_echo "$XARGS" >&6; } 11127 else 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11129 $as_echo "no" >&6; } 11130 fi 11131 11132 11133 test -n "$XARGS" && break 11134 done 11135 11136 else 11137 # The variable is set, but is it from the command line or the environment? 11138 11139 # Try to remove the string !XARGS! from our list. 11140 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11141 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11142 # If it failed, the variable was not from the command line. Ignore it, 11143 # but warn the user (except for BASH, which is always set by the calling BASH). 11144 if test "xXARGS" != xBASH; then 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11146 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11147 fi 11148 # 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 # If it succeeded, then it was overridden by the user. We will use it 11196 # for the tool. 11197 11198 # First remove it from the list of overridden variables, so we can test 11199 # for unknown variables in the end. 11200 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11201 11202 # Check if the provided tool contains a complete path. 11203 tool_specified="$XARGS" 11204 tool_basename="${tool_specified##*/}" 11205 if test "x$tool_basename" = "x$tool_specified"; then 11206 # A command without a complete path is provided, search $PATH. 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11208 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11209 # Extract the first word of "$tool_basename", so it can be a program name with args. 11210 set dummy $tool_basename; 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 if test "x$XARGS" = x; then 11250 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11251 fi 11252 else 11253 # Otherwise we believe it is a complete path. Use it as it is. 11254 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11255 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11257 $as_echo_n "checking for XARGS... " >&6; } 11258 if test ! -x "$tool_specified"; then 11259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11260 $as_echo "not found" >&6; } 11261 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11262 fi 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11264 $as_echo "$tool_specified" >&6; } 11265 fi 11266 fi 11267 fi 11268 11269 11270 11271 if test "x$XARGS" = x; then 11272 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11273 fi 11274 11275 11276 11277 # Then required tools that require some special treatment. 11278 11279 11280 # Publish this variable in the help. 11281 11282 11283 if test "x$AWK" = x; then 11284 # The variable is not set by user, try to locate tool using the code snippet 11285 for ac_prog in gawk mawk nawk awk 11286 do 11287 # Extract the first word of "$ac_prog", so it can be a program name with args. 11288 set dummy $ac_prog; ac_word=$2 11289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11290 $as_echo_n "checking for $ac_word... " >&6; } 11291 if ${ac_cv_prog_AWK+:} false; then : 11292 $as_echo_n "(cached) " >&6 11293 else 11294 if test -n "$AWK"; then 11295 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11296 else 11297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11298 for as_dir in $PATH 11299 do 11300 IFS=$as_save_IFS 11301 test -z "$as_dir" && as_dir=. 11302 for ac_exec_ext in '' $ac_executable_extensions; do 11303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11304 ac_cv_prog_AWK="$ac_prog" 11305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11306 break 2 11307 fi 11308 done 11309 done 11310 IFS=$as_save_IFS 11311 11312 fi 11313 fi 11314 AWK=$ac_cv_prog_AWK 11315 if test -n "$AWK"; then 11316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11317 $as_echo "$AWK" >&6; } 11318 else 11319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11320 $as_echo "no" >&6; } 11321 fi 11322 11323 11324 test -n "$AWK" && break 11325 done 11326 11327 else 11328 # The variable is set, but is it from the command line or the environment? 11329 11330 # Try to remove the string !AWK! from our list. 11331 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11332 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11333 # If it failed, the variable was not from the command line. Ignore it, 11334 # but warn the user (except for BASH, which is always set by the calling BASH). 11335 if test "xAWK" != xBASH; then 11336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11337 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11338 fi 11339 # Try to locate tool using the code snippet 11340 for ac_prog in gawk mawk nawk awk 11341 do 11342 # Extract the first word of "$ac_prog", so it can be a program name with args. 11343 set dummy $ac_prog; ac_word=$2 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11345 $as_echo_n "checking for $ac_word... " >&6; } 11346 if ${ac_cv_prog_AWK+:} false; then : 11347 $as_echo_n "(cached) " >&6 11348 else 11349 if test -n "$AWK"; then 11350 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11351 else 11352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11353 for as_dir in $PATH 11354 do 11355 IFS=$as_save_IFS 11356 test -z "$as_dir" && as_dir=. 11357 for ac_exec_ext in '' $ac_executable_extensions; do 11358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11359 ac_cv_prog_AWK="$ac_prog" 11360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11361 break 2 11362 fi 11363 done 11364 done 11365 IFS=$as_save_IFS 11366 11367 fi 11368 fi 11369 AWK=$ac_cv_prog_AWK 11370 if test -n "$AWK"; then 11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11372 $as_echo "$AWK" >&6; } 11373 else 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11375 $as_echo "no" >&6; } 11376 fi 11377 11378 11379 test -n "$AWK" && break 11380 done 11381 11382 else 11383 # If it succeeded, then it was overridden by the user. We will use it 11384 # for the tool. 11385 11386 # First remove it from the list of overridden variables, so we can test 11387 # for unknown variables in the end. 11388 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11389 11390 # Check if the provided tool contains a complete path. 11391 tool_specified="$AWK" 11392 tool_basename="${tool_specified##*/}" 11393 if test "x$tool_basename" = "x$tool_specified"; then 11394 # A command without a complete path is provided, search $PATH. 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11396 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11397 # Extract the first word of "$tool_basename", so it can be a program name with args. 11398 set dummy $tool_basename; ac_word=$2 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11400 $as_echo_n "checking for $ac_word... " >&6; } 11401 if ${ac_cv_path_AWK+:} false; then : 11402 $as_echo_n "(cached) " >&6 11403 else 11404 case $AWK in 11405 [\\/]* | ?:[\\/]*) 11406 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11407 ;; 11408 *) 11409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11410 for as_dir in $PATH 11411 do 11412 IFS=$as_save_IFS 11413 test -z "$as_dir" && as_dir=. 11414 for ac_exec_ext in '' $ac_executable_extensions; do 11415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11416 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11418 break 2 11419 fi 11420 done 11421 done 11422 IFS=$as_save_IFS 11423 11424 ;; 11425 esac 11426 fi 11427 AWK=$ac_cv_path_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 if test "x$AWK" = x; then 11438 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11439 fi 11440 else 11441 # Otherwise we believe it is a complete path. Use it as it is. 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11443 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11445 $as_echo_n "checking for AWK... " >&6; } 11446 if test ! -x "$tool_specified"; then 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11448 $as_echo "not found" >&6; } 11449 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11450 fi 11451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11452 $as_echo "$tool_specified" >&6; } 11453 fi 11454 fi 11455 fi 11456 11457 11458 if test "x$AWK" = x; then 11459 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11460 fi 11461 11462 11463 11464 11465 # Publish this variable in the help. 11466 11467 11468 if test "x$GREP" = x; then 11469 # The variable is not set by user, try to locate tool using the code snippet 11470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11471 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11472 if ${ac_cv_path_GREP+:} false; then : 11473 $as_echo_n "(cached) " >&6 11474 else 11475 if test -z "$GREP"; then 11476 ac_path_GREP_found=false 11477 # Loop through the user's path and test for each of PROGNAME-LIST 11478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11479 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11480 do 11481 IFS=$as_save_IFS 11482 test -z "$as_dir" && as_dir=. 11483 for ac_prog in grep ggrep; do 11484 for ac_exec_ext in '' $ac_executable_extensions; do 11485 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11486 as_fn_executable_p "$ac_path_GREP" || continue 11487 # Check for GNU ac_path_GREP and select it if it is found. 11488 # Check for GNU $ac_path_GREP 11489 case `"$ac_path_GREP" --version 2>&1` in 11490 *GNU*) 11491 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11492 *) 11493 ac_count=0 11494 $as_echo_n 0123456789 >"conftest.in" 11495 while : 11496 do 11497 cat "conftest.in" "conftest.in" >"conftest.tmp" 11498 mv "conftest.tmp" "conftest.in" 11499 cp "conftest.in" "conftest.nl" 11500 $as_echo 'GREP' >> "conftest.nl" 11501 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11502 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11503 as_fn_arith $ac_count + 1 && ac_count=$as_val 11504 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11505 # Best one so far, save it but keep looking for a better one 11506 ac_cv_path_GREP="$ac_path_GREP" 11507 ac_path_GREP_max=$ac_count 11508 fi 11509 # 10*(2^10) chars as input seems more than enough 11510 test $ac_count -gt 10 && break 11511 done 11512 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11513 esac 11514 11515 $ac_path_GREP_found && break 3 11516 done 11517 done 11518 done 11519 IFS=$as_save_IFS 11520 if test -z "$ac_cv_path_GREP"; then 11521 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11522 fi 11523 else 11524 ac_cv_path_GREP=$GREP 11525 fi 11526 11527 fi 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11529 $as_echo "$ac_cv_path_GREP" >&6; } 11530 GREP="$ac_cv_path_GREP" 11531 11532 11533 else 11534 # The variable is set, but is it from the command line or the environment? 11535 11536 # Try to remove the string !GREP! from our list. 11537 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11538 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11539 # If it failed, the variable was not from the command line. Ignore it, 11540 # but warn the user (except for BASH, which is always set by the calling BASH). 11541 if test "xGREP" != xBASH; then 11542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11543 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11544 fi 11545 # Try to locate tool using the code snippet 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11547 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11548 if ${ac_cv_path_GREP+:} false; then : 11549 $as_echo_n "(cached) " >&6 11550 else 11551 if test -z "$GREP"; then 11552 ac_path_GREP_found=false 11553 # Loop through the user's path and test for each of PROGNAME-LIST 11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11555 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11556 do 11557 IFS=$as_save_IFS 11558 test -z "$as_dir" && as_dir=. 11559 for ac_prog in grep ggrep; do 11560 for ac_exec_ext in '' $ac_executable_extensions; do 11561 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11562 as_fn_executable_p "$ac_path_GREP" || continue 11563 # Check for GNU ac_path_GREP and select it if it is found. 11564 # Check for GNU $ac_path_GREP 11565 case `"$ac_path_GREP" --version 2>&1` in 11566 *GNU*) 11567 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11568 *) 11569 ac_count=0 11570 $as_echo_n 0123456789 >"conftest.in" 11571 while : 11572 do 11573 cat "conftest.in" "conftest.in" >"conftest.tmp" 11574 mv "conftest.tmp" "conftest.in" 11575 cp "conftest.in" "conftest.nl" 11576 $as_echo 'GREP' >> "conftest.nl" 11577 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11578 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11579 as_fn_arith $ac_count + 1 && ac_count=$as_val 11580 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11581 # Best one so far, save it but keep looking for a better one 11582 ac_cv_path_GREP="$ac_path_GREP" 11583 ac_path_GREP_max=$ac_count 11584 fi 11585 # 10*(2^10) chars as input seems more than enough 11586 test $ac_count -gt 10 && break 11587 done 11588 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11589 esac 11590 11591 $ac_path_GREP_found && break 3 11592 done 11593 done 11594 done 11595 IFS=$as_save_IFS 11596 if test -z "$ac_cv_path_GREP"; then 11597 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11598 fi 11599 else 11600 ac_cv_path_GREP=$GREP 11601 fi 11602 11603 fi 11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11605 $as_echo "$ac_cv_path_GREP" >&6; } 11606 GREP="$ac_cv_path_GREP" 11607 11608 11609 else 11610 # If it succeeded, then it was overridden by the user. We will use it 11611 # for the tool. 11612 11613 # First remove it from the list of overridden variables, so we can test 11614 # for unknown variables in the end. 11615 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11616 11617 # Check if the provided tool contains a complete path. 11618 tool_specified="$GREP" 11619 tool_basename="${tool_specified##*/}" 11620 if test "x$tool_basename" = "x$tool_specified"; then 11621 # A command without a complete path is provided, search $PATH. 11622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11623 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11624 # Extract the first word of "$tool_basename", so it can be a program name with args. 11625 set dummy $tool_basename; ac_word=$2 11626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11627 $as_echo_n "checking for $ac_word... " >&6; } 11628 if ${ac_cv_path_GREP+:} false; then : 11629 $as_echo_n "(cached) " >&6 11630 else 11631 case $GREP in 11632 [\\/]* | ?:[\\/]*) 11633 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11634 ;; 11635 *) 11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11637 for as_dir in $PATH 11638 do 11639 IFS=$as_save_IFS 11640 test -z "$as_dir" && as_dir=. 11641 for ac_exec_ext in '' $ac_executable_extensions; do 11642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11643 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11645 break 2 11646 fi 11647 done 11648 done 11649 IFS=$as_save_IFS 11650 11651 ;; 11652 esac 11653 fi 11654 GREP=$ac_cv_path_GREP 11655 if test -n "$GREP"; then 11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11657 $as_echo "$GREP" >&6; } 11658 else 11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11660 $as_echo "no" >&6; } 11661 fi 11662 11663 11664 if test "x$GREP" = x; then 11665 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11666 fi 11667 else 11668 # Otherwise we believe it is a complete path. Use it as it is. 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11670 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11672 $as_echo_n "checking for GREP... " >&6; } 11673 if test ! -x "$tool_specified"; then 11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11675 $as_echo "not found" >&6; } 11676 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11677 fi 11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11679 $as_echo "$tool_specified" >&6; } 11680 fi 11681 fi 11682 fi 11683 11684 11685 if test "x$GREP" = x; then 11686 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11687 fi 11688 11689 11690 11691 11692 # Publish this variable in the help. 11693 11694 11695 if test "x$EGREP" = x; then 11696 # The variable is not set by user, try to locate tool using the code snippet 11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11698 $as_echo_n "checking for egrep... " >&6; } 11699 if ${ac_cv_path_EGREP+:} false; then : 11700 $as_echo_n "(cached) " >&6 11701 else 11702 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11703 then ac_cv_path_EGREP="$GREP -E" 11704 else 11705 if test -z "$EGREP"; then 11706 ac_path_EGREP_found=false 11707 # Loop through the user's path and test for each of PROGNAME-LIST 11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11709 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11710 do 11711 IFS=$as_save_IFS 11712 test -z "$as_dir" && as_dir=. 11713 for ac_prog in egrep; do 11714 for ac_exec_ext in '' $ac_executable_extensions; do 11715 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11716 as_fn_executable_p "$ac_path_EGREP" || continue 11717 # Check for GNU ac_path_EGREP and select it if it is found. 11718 # Check for GNU $ac_path_EGREP 11719 case `"$ac_path_EGREP" --version 2>&1` in 11720 *GNU*) 11721 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11722 *) 11723 ac_count=0 11724 $as_echo_n 0123456789 >"conftest.in" 11725 while : 11726 do 11727 cat "conftest.in" "conftest.in" >"conftest.tmp" 11728 mv "conftest.tmp" "conftest.in" 11729 cp "conftest.in" "conftest.nl" 11730 $as_echo 'EGREP' >> "conftest.nl" 11731 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11732 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11733 as_fn_arith $ac_count + 1 && ac_count=$as_val 11734 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11735 # Best one so far, save it but keep looking for a better one 11736 ac_cv_path_EGREP="$ac_path_EGREP" 11737 ac_path_EGREP_max=$ac_count 11738 fi 11739 # 10*(2^10) chars as input seems more than enough 11740 test $ac_count -gt 10 && break 11741 done 11742 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11743 esac 11744 11745 $ac_path_EGREP_found && break 3 11746 done 11747 done 11748 done 11749 IFS=$as_save_IFS 11750 if test -z "$ac_cv_path_EGREP"; then 11751 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11752 fi 11753 else 11754 ac_cv_path_EGREP=$EGREP 11755 fi 11756 11757 fi 11758 fi 11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11760 $as_echo "$ac_cv_path_EGREP" >&6; } 11761 EGREP="$ac_cv_path_EGREP" 11762 11763 11764 else 11765 # The variable is set, but is it from the command line or the environment? 11766 11767 # Try to remove the string !EGREP! from our list. 11768 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11769 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11770 # If it failed, the variable was not from the command line. Ignore it, 11771 # but warn the user (except for BASH, which is always set by the calling BASH). 11772 if test "xEGREP" != xBASH; then 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11774 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11775 fi 11776 # Try to locate tool using the code snippet 11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11778 $as_echo_n "checking for egrep... " >&6; } 11779 if ${ac_cv_path_EGREP+:} false; then : 11780 $as_echo_n "(cached) " >&6 11781 else 11782 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11783 then ac_cv_path_EGREP="$GREP -E" 11784 else 11785 if test -z "$EGREP"; then 11786 ac_path_EGREP_found=false 11787 # Loop through the user's path and test for each of PROGNAME-LIST 11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11789 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11790 do 11791 IFS=$as_save_IFS 11792 test -z "$as_dir" && as_dir=. 11793 for ac_prog in egrep; do 11794 for ac_exec_ext in '' $ac_executable_extensions; do 11795 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11796 as_fn_executable_p "$ac_path_EGREP" || continue 11797 # Check for GNU ac_path_EGREP and select it if it is found. 11798 # Check for GNU $ac_path_EGREP 11799 case `"$ac_path_EGREP" --version 2>&1` in 11800 *GNU*) 11801 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11802 *) 11803 ac_count=0 11804 $as_echo_n 0123456789 >"conftest.in" 11805 while : 11806 do 11807 cat "conftest.in" "conftest.in" >"conftest.tmp" 11808 mv "conftest.tmp" "conftest.in" 11809 cp "conftest.in" "conftest.nl" 11810 $as_echo 'EGREP' >> "conftest.nl" 11811 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11812 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11813 as_fn_arith $ac_count + 1 && ac_count=$as_val 11814 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11815 # Best one so far, save it but keep looking for a better one 11816 ac_cv_path_EGREP="$ac_path_EGREP" 11817 ac_path_EGREP_max=$ac_count 11818 fi 11819 # 10*(2^10) chars as input seems more than enough 11820 test $ac_count -gt 10 && break 11821 done 11822 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11823 esac 11824 11825 $ac_path_EGREP_found && break 3 11826 done 11827 done 11828 done 11829 IFS=$as_save_IFS 11830 if test -z "$ac_cv_path_EGREP"; then 11831 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11832 fi 11833 else 11834 ac_cv_path_EGREP=$EGREP 11835 fi 11836 11837 fi 11838 fi 11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11840 $as_echo "$ac_cv_path_EGREP" >&6; } 11841 EGREP="$ac_cv_path_EGREP" 11842 11843 11844 else 11845 # If it succeeded, then it was overridden by the user. We will use it 11846 # for the tool. 11847 11848 # First remove it from the list of overridden variables, so we can test 11849 # for unknown variables in the end. 11850 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11851 11852 # Check if the provided tool contains a complete path. 11853 tool_specified="$EGREP" 11854 tool_basename="${tool_specified##*/}" 11855 if test "x$tool_basename" = "x$tool_specified"; then 11856 # A command without a complete path is provided, search $PATH. 11857 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11858 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 11859 # Extract the first word of "$tool_basename", so it can be a program name with args. 11860 set dummy $tool_basename; ac_word=$2 11861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11862 $as_echo_n "checking for $ac_word... " >&6; } 11863 if ${ac_cv_path_EGREP+:} false; then : 11864 $as_echo_n "(cached) " >&6 11865 else 11866 case $EGREP in 11867 [\\/]* | ?:[\\/]*) 11868 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 11869 ;; 11870 *) 11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11872 for as_dir in $PATH 11873 do 11874 IFS=$as_save_IFS 11875 test -z "$as_dir" && as_dir=. 11876 for ac_exec_ext in '' $ac_executable_extensions; do 11877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11878 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 11879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11880 break 2 11881 fi 11882 done 11883 done 11884 IFS=$as_save_IFS 11885 11886 ;; 11887 esac 11888 fi 11889 EGREP=$ac_cv_path_EGREP 11890 if test -n "$EGREP"; then 11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 11892 $as_echo "$EGREP" >&6; } 11893 else 11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11895 $as_echo "no" >&6; } 11896 fi 11897 11898 11899 if test "x$EGREP" = x; then 11900 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11901 fi 11902 else 11903 # Otherwise we believe it is a complete path. Use it as it is. 11904 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 11905 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 11906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 11907 $as_echo_n "checking for EGREP... " >&6; } 11908 if test ! -x "$tool_specified"; then 11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11910 $as_echo "not found" >&6; } 11911 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11912 fi 11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11914 $as_echo "$tool_specified" >&6; } 11915 fi 11916 fi 11917 fi 11918 11919 11920 if test "x$EGREP" = x; then 11921 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 11922 fi 11923 11924 11925 11926 11927 # Publish this variable in the help. 11928 11929 11930 if test "x$FGREP" = x; then 11931 # The variable is not set by user, try to locate tool using the code snippet 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11933 $as_echo_n "checking for fgrep... " >&6; } 11934 if ${ac_cv_path_FGREP+:} false; then : 11935 $as_echo_n "(cached) " >&6 11936 else 11937 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11938 then ac_cv_path_FGREP="$GREP -F" 11939 else 11940 if test -z "$FGREP"; then 11941 ac_path_FGREP_found=false 11942 # Loop through the user's path and test for each of PROGNAME-LIST 11943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11944 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11945 do 11946 IFS=$as_save_IFS 11947 test -z "$as_dir" && as_dir=. 11948 for ac_prog in fgrep; do 11949 for ac_exec_ext in '' $ac_executable_extensions; do 11950 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11951 as_fn_executable_p "$ac_path_FGREP" || continue 11952 # Check for GNU ac_path_FGREP and select it if it is found. 11953 # Check for GNU $ac_path_FGREP 11954 case `"$ac_path_FGREP" --version 2>&1` in 11955 *GNU*) 11956 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 11957 *) 11958 ac_count=0 11959 $as_echo_n 0123456789 >"conftest.in" 11960 while : 11961 do 11962 cat "conftest.in" "conftest.in" >"conftest.tmp" 11963 mv "conftest.tmp" "conftest.in" 11964 cp "conftest.in" "conftest.nl" 11965 $as_echo 'FGREP' >> "conftest.nl" 11966 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 11967 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11968 as_fn_arith $ac_count + 1 && ac_count=$as_val 11969 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 11970 # Best one so far, save it but keep looking for a better one 11971 ac_cv_path_FGREP="$ac_path_FGREP" 11972 ac_path_FGREP_max=$ac_count 11973 fi 11974 # 10*(2^10) chars as input seems more than enough 11975 test $ac_count -gt 10 && break 11976 done 11977 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11978 esac 11979 11980 $ac_path_FGREP_found && break 3 11981 done 11982 done 11983 done 11984 IFS=$as_save_IFS 11985 if test -z "$ac_cv_path_FGREP"; then 11986 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11987 fi 11988 else 11989 ac_cv_path_FGREP=$FGREP 11990 fi 11991 11992 fi 11993 fi 11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 11995 $as_echo "$ac_cv_path_FGREP" >&6; } 11996 FGREP="$ac_cv_path_FGREP" 11997 11998 11999 else 12000 # The variable is set, but is it from the command line or the environment? 12001 12002 # Try to remove the string !FGREP! from our list. 12003 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12004 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12005 # If it failed, the variable was not from the command line. Ignore it, 12006 # but warn the user (except for BASH, which is always set by the calling BASH). 12007 if test "xFGREP" != xBASH; then 12008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12009 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12010 fi 12011 # Try to locate tool using the code snippet 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12013 $as_echo_n "checking for fgrep... " >&6; } 12014 if ${ac_cv_path_FGREP+:} false; then : 12015 $as_echo_n "(cached) " >&6 12016 else 12017 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12018 then ac_cv_path_FGREP="$GREP -F" 12019 else 12020 if test -z "$FGREP"; then 12021 ac_path_FGREP_found=false 12022 # Loop through the user's path and test for each of PROGNAME-LIST 12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12025 do 12026 IFS=$as_save_IFS 12027 test -z "$as_dir" && as_dir=. 12028 for ac_prog in fgrep; do 12029 for ac_exec_ext in '' $ac_executable_extensions; do 12030 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12031 as_fn_executable_p "$ac_path_FGREP" || continue 12032 # Check for GNU ac_path_FGREP and select it if it is found. 12033 # Check for GNU $ac_path_FGREP 12034 case `"$ac_path_FGREP" --version 2>&1` in 12035 *GNU*) 12036 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12037 *) 12038 ac_count=0 12039 $as_echo_n 0123456789 >"conftest.in" 12040 while : 12041 do 12042 cat "conftest.in" "conftest.in" >"conftest.tmp" 12043 mv "conftest.tmp" "conftest.in" 12044 cp "conftest.in" "conftest.nl" 12045 $as_echo 'FGREP' >> "conftest.nl" 12046 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12048 as_fn_arith $ac_count + 1 && ac_count=$as_val 12049 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12050 # Best one so far, save it but keep looking for a better one 12051 ac_cv_path_FGREP="$ac_path_FGREP" 12052 ac_path_FGREP_max=$ac_count 12053 fi 12054 # 10*(2^10) chars as input seems more than enough 12055 test $ac_count -gt 10 && break 12056 done 12057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12058 esac 12059 12060 $ac_path_FGREP_found && break 3 12061 done 12062 done 12063 done 12064 IFS=$as_save_IFS 12065 if test -z "$ac_cv_path_FGREP"; then 12066 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12067 fi 12068 else 12069 ac_cv_path_FGREP=$FGREP 12070 fi 12071 12072 fi 12073 fi 12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12075 $as_echo "$ac_cv_path_FGREP" >&6; } 12076 FGREP="$ac_cv_path_FGREP" 12077 12078 12079 else 12080 # If it succeeded, then it was overridden by the user. We will use it 12081 # for the tool. 12082 12083 # First remove it from the list of overridden variables, so we can test 12084 # for unknown variables in the end. 12085 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12086 12087 # Check if the provided tool contains a complete path. 12088 tool_specified="$FGREP" 12089 tool_basename="${tool_specified##*/}" 12090 if test "x$tool_basename" = "x$tool_specified"; then 12091 # A command without a complete path is provided, search $PATH. 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12093 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12094 # Extract the first word of "$tool_basename", so it can be a program name with args. 12095 set dummy $tool_basename; ac_word=$2 12096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12097 $as_echo_n "checking for $ac_word... " >&6; } 12098 if ${ac_cv_path_FGREP+:} false; then : 12099 $as_echo_n "(cached) " >&6 12100 else 12101 case $FGREP in 12102 [\\/]* | ?:[\\/]*) 12103 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12104 ;; 12105 *) 12106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12107 for as_dir in $PATH 12108 do 12109 IFS=$as_save_IFS 12110 test -z "$as_dir" && as_dir=. 12111 for ac_exec_ext in '' $ac_executable_extensions; do 12112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12113 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12115 break 2 12116 fi 12117 done 12118 done 12119 IFS=$as_save_IFS 12120 12121 ;; 12122 esac 12123 fi 12124 FGREP=$ac_cv_path_FGREP 12125 if test -n "$FGREP"; then 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12127 $as_echo "$FGREP" >&6; } 12128 else 12129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12130 $as_echo "no" >&6; } 12131 fi 12132 12133 12134 if test "x$FGREP" = x; then 12135 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12136 fi 12137 else 12138 # Otherwise we believe it is a complete path. Use it as it is. 12139 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12140 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12142 $as_echo_n "checking for FGREP... " >&6; } 12143 if test ! -x "$tool_specified"; then 12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12145 $as_echo "not found" >&6; } 12146 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12147 fi 12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12149 $as_echo "$tool_specified" >&6; } 12150 fi 12151 fi 12152 fi 12153 12154 12155 if test "x$FGREP" = x; then 12156 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12157 fi 12158 12159 12160 12161 12162 # Publish this variable in the help. 12163 12164 12165 if test "x$SED" = x; then 12166 # The variable is not set by user, try to locate tool using the code snippet 12167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12168 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12169 if ${ac_cv_path_SED+:} false; then : 12170 $as_echo_n "(cached) " >&6 12171 else 12172 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12173 for ac_i in 1 2 3 4 5 6 7; do 12174 ac_script="$ac_script$as_nl$ac_script" 12175 done 12176 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12177 { ac_script=; unset ac_script;} 12178 if test -z "$SED"; then 12179 ac_path_SED_found=false 12180 # Loop through the user's path and test for each of PROGNAME-LIST 12181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12182 for as_dir in $PATH 12183 do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_prog in sed gsed; do 12187 for ac_exec_ext in '' $ac_executable_extensions; do 12188 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12189 as_fn_executable_p "$ac_path_SED" || continue 12190 # Check for GNU ac_path_SED and select it if it is found. 12191 # Check for GNU $ac_path_SED 12192 case `"$ac_path_SED" --version 2>&1` in 12193 *GNU*) 12194 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12195 *) 12196 ac_count=0 12197 $as_echo_n 0123456789 >"conftest.in" 12198 while : 12199 do 12200 cat "conftest.in" "conftest.in" >"conftest.tmp" 12201 mv "conftest.tmp" "conftest.in" 12202 cp "conftest.in" "conftest.nl" 12203 $as_echo '' >> "conftest.nl" 12204 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12205 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12206 as_fn_arith $ac_count + 1 && ac_count=$as_val 12207 if test $ac_count -gt ${ac_path_SED_max-0}; then 12208 # Best one so far, save it but keep looking for a better one 12209 ac_cv_path_SED="$ac_path_SED" 12210 ac_path_SED_max=$ac_count 12211 fi 12212 # 10*(2^10) chars as input seems more than enough 12213 test $ac_count -gt 10 && break 12214 done 12215 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12216 esac 12217 12218 $ac_path_SED_found && break 3 12219 done 12220 done 12221 done 12222 IFS=$as_save_IFS 12223 if test -z "$ac_cv_path_SED"; then 12224 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12225 fi 12226 else 12227 ac_cv_path_SED=$SED 12228 fi 12229 12230 fi 12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12232 $as_echo "$ac_cv_path_SED" >&6; } 12233 SED="$ac_cv_path_SED" 12234 rm -f conftest.sed 12235 12236 else 12237 # The variable is set, but is it from the command line or the environment? 12238 12239 # Try to remove the string !SED! from our list. 12240 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12241 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12242 # If it failed, the variable was not from the command line. Ignore it, 12243 # but warn the user (except for BASH, which is always set by the calling BASH). 12244 if test "xSED" != xBASH; then 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12246 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12247 fi 12248 # Try to locate tool using the code snippet 12249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12250 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12251 if ${ac_cv_path_SED+:} false; then : 12252 $as_echo_n "(cached) " >&6 12253 else 12254 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12255 for ac_i in 1 2 3 4 5 6 7; do 12256 ac_script="$ac_script$as_nl$ac_script" 12257 done 12258 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12259 { ac_script=; unset ac_script;} 12260 if test -z "$SED"; then 12261 ac_path_SED_found=false 12262 # Loop through the user's path and test for each of PROGNAME-LIST 12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12264 for as_dir in $PATH 12265 do 12266 IFS=$as_save_IFS 12267 test -z "$as_dir" && as_dir=. 12268 for ac_prog in sed gsed; do 12269 for ac_exec_ext in '' $ac_executable_extensions; do 12270 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12271 as_fn_executable_p "$ac_path_SED" || continue 12272 # Check for GNU ac_path_SED and select it if it is found. 12273 # Check for GNU $ac_path_SED 12274 case `"$ac_path_SED" --version 2>&1` in 12275 *GNU*) 12276 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12277 *) 12278 ac_count=0 12279 $as_echo_n 0123456789 >"conftest.in" 12280 while : 12281 do 12282 cat "conftest.in" "conftest.in" >"conftest.tmp" 12283 mv "conftest.tmp" "conftest.in" 12284 cp "conftest.in" "conftest.nl" 12285 $as_echo '' >> "conftest.nl" 12286 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12287 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12288 as_fn_arith $ac_count + 1 && ac_count=$as_val 12289 if test $ac_count -gt ${ac_path_SED_max-0}; then 12290 # Best one so far, save it but keep looking for a better one 12291 ac_cv_path_SED="$ac_path_SED" 12292 ac_path_SED_max=$ac_count 12293 fi 12294 # 10*(2^10) chars as input seems more than enough 12295 test $ac_count -gt 10 && break 12296 done 12297 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12298 esac 12299 12300 $ac_path_SED_found && break 3 12301 done 12302 done 12303 done 12304 IFS=$as_save_IFS 12305 if test -z "$ac_cv_path_SED"; then 12306 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12307 fi 12308 else 12309 ac_cv_path_SED=$SED 12310 fi 12311 12312 fi 12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12314 $as_echo "$ac_cv_path_SED" >&6; } 12315 SED="$ac_cv_path_SED" 12316 rm -f conftest.sed 12317 12318 else 12319 # If it succeeded, then it was overridden by the user. We will use it 12320 # for the tool. 12321 12322 # First remove it from the list of overridden variables, so we can test 12323 # for unknown variables in the end. 12324 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12325 12326 # Check if the provided tool contains a complete path. 12327 tool_specified="$SED" 12328 tool_basename="${tool_specified##*/}" 12329 if test "x$tool_basename" = "x$tool_specified"; then 12330 # A command without a complete path is provided, search $PATH. 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12332 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12333 # Extract the first word of "$tool_basename", so it can be a program name with args. 12334 set dummy $tool_basename; ac_word=$2 12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12336 $as_echo_n "checking for $ac_word... " >&6; } 12337 if ${ac_cv_path_SED+:} false; then : 12338 $as_echo_n "(cached) " >&6 12339 else 12340 case $SED in 12341 [\\/]* | ?:[\\/]*) 12342 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12343 ;; 12344 *) 12345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12346 for as_dir in $PATH 12347 do 12348 IFS=$as_save_IFS 12349 test -z "$as_dir" && as_dir=. 12350 for ac_exec_ext in '' $ac_executable_extensions; do 12351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12352 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12354 break 2 12355 fi 12356 done 12357 done 12358 IFS=$as_save_IFS 12359 12360 ;; 12361 esac 12362 fi 12363 SED=$ac_cv_path_SED 12364 if test -n "$SED"; then 12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12366 $as_echo "$SED" >&6; } 12367 else 12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12369 $as_echo "no" >&6; } 12370 fi 12371 12372 12373 if test "x$SED" = x; then 12374 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12375 fi 12376 else 12377 # Otherwise we believe it is a complete path. Use it as it is. 12378 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12379 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12381 $as_echo_n "checking for SED... " >&6; } 12382 if test ! -x "$tool_specified"; then 12383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12384 $as_echo "not found" >&6; } 12385 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12386 fi 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12388 $as_echo "$tool_specified" >&6; } 12389 fi 12390 fi 12391 fi 12392 12393 12394 if test "x$SED" = x; then 12395 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12396 fi 12397 12398 12399 12400 # Always force rm. 12401 RM="$RM -f" 12402 12403 # pwd behaves differently on various platforms and some don't support the -L flag. 12404 # Always use the bash builtin pwd to get uniform behavior. 12405 THEPWDCMD=pwd 12406 12407 # These are not required on all platforms 12408 12409 12410 # Publish this variable in the help. 12411 12412 12413 if test "x$CYGPATH" = x; then 12414 # The variable is not set by user, try to locate tool using the code snippet 12415 for ac_prog in cygpath 12416 do 12417 # Extract the first word of "$ac_prog", so it can be a program name with args. 12418 set dummy $ac_prog; ac_word=$2 12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12420 $as_echo_n "checking for $ac_word... " >&6; } 12421 if ${ac_cv_path_CYGPATH+:} false; then : 12422 $as_echo_n "(cached) " >&6 12423 else 12424 case $CYGPATH in 12425 [\\/]* | ?:[\\/]*) 12426 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12427 ;; 12428 *) 12429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12430 for as_dir in $PATH 12431 do 12432 IFS=$as_save_IFS 12433 test -z "$as_dir" && as_dir=. 12434 for ac_exec_ext in '' $ac_executable_extensions; do 12435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12436 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12438 break 2 12439 fi 12440 done 12441 done 12442 IFS=$as_save_IFS 12443 12444 ;; 12445 esac 12446 fi 12447 CYGPATH=$ac_cv_path_CYGPATH 12448 if test -n "$CYGPATH"; then 12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12450 $as_echo "$CYGPATH" >&6; } 12451 else 12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12453 $as_echo "no" >&6; } 12454 fi 12455 12456 12457 test -n "$CYGPATH" && break 12458 done 12459 12460 else 12461 # The variable is set, but is it from the command line or the environment? 12462 12463 # Try to remove the string !CYGPATH! from our list. 12464 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12465 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12466 # If it failed, the variable was not from the command line. Ignore it, 12467 # but warn the user (except for BASH, which is always set by the calling BASH). 12468 if test "xCYGPATH" != xBASH; then 12469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12470 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12471 fi 12472 # 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 # If it succeeded, then it was overridden by the user. We will use it 12520 # for the tool. 12521 12522 # First remove it from the list of overridden variables, so we can test 12523 # for unknown variables in the end. 12524 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12525 12526 # Check if the provided tool contains a complete path. 12527 tool_specified="$CYGPATH" 12528 tool_basename="${tool_specified##*/}" 12529 if test "x$tool_basename" = "x$tool_specified"; then 12530 # A command without a complete path is provided, search $PATH. 12531 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12532 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12533 # Extract the first word of "$tool_basename", so it can be a program name with args. 12534 set dummy $tool_basename; 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 if test "x$CYGPATH" = x; then 12574 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12575 fi 12576 else 12577 # Otherwise we believe it is a complete path. Use it as it is. 12578 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12579 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12581 $as_echo_n "checking for CYGPATH... " >&6; } 12582 if test ! -x "$tool_specified"; then 12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12584 $as_echo "not found" >&6; } 12585 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12586 fi 12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12588 $as_echo "$tool_specified" >&6; } 12589 fi 12590 fi 12591 fi 12592 12593 12594 12595 12596 # Publish this variable in the help. 12597 12598 12599 if test "x$READLINK" = x; then 12600 # The variable is not set by user, try to locate tool using the code snippet 12601 for ac_prog in greadlink readlink 12602 do 12603 # Extract the first word of "$ac_prog", so it can be a program name with args. 12604 set dummy $ac_prog; ac_word=$2 12605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12606 $as_echo_n "checking for $ac_word... " >&6; } 12607 if ${ac_cv_path_READLINK+:} false; then : 12608 $as_echo_n "(cached) " >&6 12609 else 12610 case $READLINK in 12611 [\\/]* | ?:[\\/]*) 12612 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12613 ;; 12614 *) 12615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12616 for as_dir in $PATH 12617 do 12618 IFS=$as_save_IFS 12619 test -z "$as_dir" && as_dir=. 12620 for ac_exec_ext in '' $ac_executable_extensions; do 12621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12622 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12624 break 2 12625 fi 12626 done 12627 done 12628 IFS=$as_save_IFS 12629 12630 ;; 12631 esac 12632 fi 12633 READLINK=$ac_cv_path_READLINK 12634 if test -n "$READLINK"; then 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12636 $as_echo "$READLINK" >&6; } 12637 else 12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12639 $as_echo "no" >&6; } 12640 fi 12641 12642 12643 test -n "$READLINK" && break 12644 done 12645 12646 else 12647 # The variable is set, but is it from the command line or the environment? 12648 12649 # Try to remove the string !READLINK! from our list. 12650 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12651 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12652 # If it failed, the variable was not from the command line. Ignore it, 12653 # but warn the user (except for BASH, which is always set by the calling BASH). 12654 if test "xREADLINK" != xBASH; then 12655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12656 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12657 fi 12658 # 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 # If it succeeded, then it was overridden by the user. We will use it 12706 # for the tool. 12707 12708 # First remove it from the list of overridden variables, so we can test 12709 # for unknown variables in the end. 12710 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12711 12712 # Check if the provided tool contains a complete path. 12713 tool_specified="$READLINK" 12714 tool_basename="${tool_specified##*/}" 12715 if test "x$tool_basename" = "x$tool_specified"; then 12716 # A command without a complete path is provided, search $PATH. 12717 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12718 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12719 # Extract the first word of "$tool_basename", so it can be a program name with args. 12720 set dummy $tool_basename; 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 if test "x$READLINK" = x; then 12760 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12761 fi 12762 else 12763 # Otherwise we believe it is a complete path. Use it as it is. 12764 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12765 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12767 $as_echo_n "checking for READLINK... " >&6; } 12768 if test ! -x "$tool_specified"; then 12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12770 $as_echo "not found" >&6; } 12771 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12772 fi 12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12774 $as_echo "$tool_specified" >&6; } 12775 fi 12776 fi 12777 fi 12778 12779 12780 12781 12782 # Publish this variable in the help. 12783 12784 12785 if test "x$DF" = x; then 12786 # The variable is not set by user, try to locate tool using the code snippet 12787 for ac_prog in df 12788 do 12789 # Extract the first word of "$ac_prog", so it can be a program name with args. 12790 set dummy $ac_prog; ac_word=$2 12791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12792 $as_echo_n "checking for $ac_word... " >&6; } 12793 if ${ac_cv_path_DF+:} false; then : 12794 $as_echo_n "(cached) " >&6 12795 else 12796 case $DF in 12797 [\\/]* | ?:[\\/]*) 12798 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12799 ;; 12800 *) 12801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12802 for as_dir in $PATH 12803 do 12804 IFS=$as_save_IFS 12805 test -z "$as_dir" && as_dir=. 12806 for ac_exec_ext in '' $ac_executable_extensions; do 12807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12808 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12810 break 2 12811 fi 12812 done 12813 done 12814 IFS=$as_save_IFS 12815 12816 ;; 12817 esac 12818 fi 12819 DF=$ac_cv_path_DF 12820 if test -n "$DF"; then 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12822 $as_echo "$DF" >&6; } 12823 else 12824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12825 $as_echo "no" >&6; } 12826 fi 12827 12828 12829 test -n "$DF" && break 12830 done 12831 12832 else 12833 # The variable is set, but is it from the command line or the environment? 12834 12835 # Try to remove the string !DF! from our list. 12836 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12837 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12838 # If it failed, the variable was not from the command line. Ignore it, 12839 # but warn the user (except for BASH, which is always set by the calling BASH). 12840 if test "xDF" != xBASH; then 12841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12842 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12843 fi 12844 # 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 # If it succeeded, then it was overridden by the user. We will use it 12892 # for the tool. 12893 12894 # First remove it from the list of overridden variables, so we can test 12895 # for unknown variables in the end. 12896 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12897 12898 # Check if the provided tool contains a complete path. 12899 tool_specified="$DF" 12900 tool_basename="${tool_specified##*/}" 12901 if test "x$tool_basename" = "x$tool_specified"; then 12902 # A command without a complete path is provided, search $PATH. 12903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 12904 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 12905 # Extract the first word of "$tool_basename", so it can be a program name with args. 12906 set dummy $tool_basename; 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 if test "x$DF" = x; then 12946 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12947 fi 12948 else 12949 # Otherwise we believe it is a complete path. Use it as it is. 12950 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 12951 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 12952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 12953 $as_echo_n "checking for DF... " >&6; } 12954 if test ! -x "$tool_specified"; then 12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12956 $as_echo "not found" >&6; } 12957 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 12958 fi 12959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12960 $as_echo "$tool_specified" >&6; } 12961 fi 12962 fi 12963 fi 12964 12965 12966 12967 12968 # Publish this variable in the help. 12969 12970 12971 if test "x$SETFILE" = x; then 12972 # The variable is not set by user, try to locate tool using the code snippet 12973 for ac_prog in SetFile 12974 do 12975 # Extract the first word of "$ac_prog", so it can be a program name with args. 12976 set dummy $ac_prog; ac_word=$2 12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12978 $as_echo_n "checking for $ac_word... " >&6; } 12979 if ${ac_cv_path_SETFILE+:} false; then : 12980 $as_echo_n "(cached) " >&6 12981 else 12982 case $SETFILE in 12983 [\\/]* | ?:[\\/]*) 12984 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 12985 ;; 12986 *) 12987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12988 for as_dir in $PATH 12989 do 12990 IFS=$as_save_IFS 12991 test -z "$as_dir" && as_dir=. 12992 for ac_exec_ext in '' $ac_executable_extensions; do 12993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12994 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 12995 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12996 break 2 12997 fi 12998 done 12999 done 13000 IFS=$as_save_IFS 13001 13002 ;; 13003 esac 13004 fi 13005 SETFILE=$ac_cv_path_SETFILE 13006 if test -n "$SETFILE"; then 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13008 $as_echo "$SETFILE" >&6; } 13009 else 13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13011 $as_echo "no" >&6; } 13012 fi 13013 13014 13015 test -n "$SETFILE" && break 13016 done 13017 13018 else 13019 # The variable is set, but is it from the command line or the environment? 13020 13021 # Try to remove the string !SETFILE! from our list. 13022 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13023 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13024 # If it failed, the variable was not from the command line. Ignore it, 13025 # but warn the user (except for BASH, which is always set by the calling BASH). 13026 if test "xSETFILE" != xBASH; then 13027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13028 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13029 fi 13030 # 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 # If it succeeded, then it was overridden by the user. We will use it 13078 # for the tool. 13079 13080 # First remove it from the list of overridden variables, so we can test 13081 # for unknown variables in the end. 13082 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13083 13084 # Check if the provided tool contains a complete path. 13085 tool_specified="$SETFILE" 13086 tool_basename="${tool_specified##*/}" 13087 if test "x$tool_basename" = "x$tool_specified"; then 13088 # A command without a complete path is provided, search $PATH. 13089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13090 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13091 # Extract the first word of "$tool_basename", so it can be a program name with args. 13092 set dummy $tool_basename; 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 if test "x$SETFILE" = x; then 13132 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13133 fi 13134 else 13135 # Otherwise we believe it is a complete path. Use it as it is. 13136 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13137 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13139 $as_echo_n "checking for SETFILE... " >&6; } 13140 if test ! -x "$tool_specified"; then 13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13142 $as_echo "not found" >&6; } 13143 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13144 fi 13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13146 $as_echo "$tool_specified" >&6; } 13147 fi 13148 fi 13149 fi 13150 13151 13152 13153 13154 # Now we can determine OpenJDK build and target platforms. This is required to 13155 # have early on. 13156 # Make sure we can run config.sub. 13157 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13158 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13159 13160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13161 $as_echo_n "checking build system type... " >&6; } 13162 if ${ac_cv_build+:} false; then : 13163 $as_echo_n "(cached) " >&6 13164 else 13165 ac_build_alias=$build_alias 13166 test "x$ac_build_alias" = x && 13167 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13168 test "x$ac_build_alias" = x && 13169 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13170 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13171 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13172 13173 fi 13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13175 $as_echo "$ac_cv_build" >&6; } 13176 case $ac_cv_build in 13177 *-*-*) ;; 13178 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13179 esac 13180 build=$ac_cv_build 13181 ac_save_IFS=$IFS; IFS='-' 13182 set x $ac_cv_build 13183 shift 13184 build_cpu=$1 13185 build_vendor=$2 13186 shift; shift 13187 # Remember, the first character of IFS is used to create $*, 13188 # except with old shells: 13189 build_os=$* 13190 IFS=$ac_save_IFS 13191 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13192 13193 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13195 $as_echo_n "checking host system type... " >&6; } 13196 if ${ac_cv_host+:} false; then : 13197 $as_echo_n "(cached) " >&6 13198 else 13199 if test "x$host_alias" = x; then 13200 ac_cv_host=$ac_cv_build 13201 else 13202 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13203 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13204 fi 13205 13206 fi 13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13208 $as_echo "$ac_cv_host" >&6; } 13209 case $ac_cv_host in 13210 *-*-*) ;; 13211 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13212 esac 13213 host=$ac_cv_host 13214 ac_save_IFS=$IFS; IFS='-' 13215 set x $ac_cv_host 13216 shift 13217 host_cpu=$1 13218 host_vendor=$2 13219 shift; shift 13220 # Remember, the first character of IFS is used to create $*, 13221 # except with old shells: 13222 host_os=$* 13223 IFS=$ac_save_IFS 13224 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13225 13226 13227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13228 $as_echo_n "checking target system type... " >&6; } 13229 if ${ac_cv_target+:} false; then : 13230 $as_echo_n "(cached) " >&6 13231 else 13232 if test "x$target_alias" = x; then 13233 ac_cv_target=$ac_cv_host 13234 else 13235 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13236 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13237 fi 13238 13239 fi 13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13241 $as_echo "$ac_cv_target" >&6; } 13242 case $ac_cv_target in 13243 *-*-*) ;; 13244 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13245 esac 13246 target=$ac_cv_target 13247 ac_save_IFS=$IFS; IFS='-' 13248 set x $ac_cv_target 13249 shift 13250 target_cpu=$1 13251 target_vendor=$2 13252 shift; shift 13253 # Remember, the first character of IFS is used to create $*, 13254 # except with old shells: 13255 target_os=$* 13256 IFS=$ac_save_IFS 13257 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13258 13259 13260 # The aliases save the names the user supplied, while $host etc. 13261 # will get canonicalized. 13262 test -n "$target_alias" && 13263 test "$program_prefix$program_suffix$program_transform_name" = \ 13264 NONENONEs,x,x, && 13265 program_prefix=${target_alias}- 13266 13267 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13268 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13269 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13270 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13271 # to use the configure naming style. 13272 13273 13274 13275 13276 13277 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13278 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13279 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13280 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13281 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13282 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13283 13284 13285 13286 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13287 13288 case "$build_os" in 13289 *linux*) 13290 VAR_OS=linux 13291 VAR_OS_API=posix 13292 VAR_OS_ENV=linux 13293 ;; 13294 *solaris*) 13295 VAR_OS=solaris 13296 VAR_OS_API=posix 13297 VAR_OS_ENV=solaris 13298 ;; 13299 *darwin*) 13300 VAR_OS=macosx 13301 VAR_OS_API=posix 13302 VAR_OS_ENV=macosx 13303 ;; 13304 *bsd*) 13305 VAR_OS=bsd 13306 VAR_OS_API=posix 13307 VAR_OS_ENV=bsd 13308 ;; 13309 *cygwin*) 13310 VAR_OS=windows 13311 VAR_OS_API=winapi 13312 VAR_OS_ENV=windows.cygwin 13313 ;; 13314 *mingw*) 13315 VAR_OS=windows 13316 VAR_OS_API=winapi 13317 VAR_OS_ENV=windows.msys 13318 ;; 13319 *aix*) 13320 VAR_OS=aix 13321 VAR_OS_API=posix 13322 VAR_OS_ENV=aix 13323 ;; 13324 *) 13325 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13326 ;; 13327 esac 13328 13329 13330 # First argument is the cpu name from the trip/quad 13331 case "$build_cpu" in 13332 x86_64) 13333 VAR_CPU=x86_64 13334 VAR_CPU_ARCH=x86 13335 VAR_CPU_BITS=64 13336 VAR_CPU_ENDIAN=little 13337 ;; 13338 i?86) 13339 VAR_CPU=x86 13340 VAR_CPU_ARCH=x86 13341 VAR_CPU_BITS=32 13342 VAR_CPU_ENDIAN=little 13343 ;; 13344 arm*) 13345 VAR_CPU=arm 13346 VAR_CPU_ARCH=arm 13347 VAR_CPU_BITS=32 13348 VAR_CPU_ENDIAN=little 13349 ;; 13350 powerpc) 13351 VAR_CPU=ppc 13352 VAR_CPU_ARCH=ppc 13353 VAR_CPU_BITS=32 13354 VAR_CPU_ENDIAN=big 13355 ;; 13356 powerpc64) 13357 VAR_CPU=ppc64 13358 VAR_CPU_ARCH=ppc 13359 VAR_CPU_BITS=64 13360 VAR_CPU_ENDIAN=big 13361 ;; 13362 s390) 13363 VAR_CPU=s390 13364 VAR_CPU_ARCH=s390 13365 VAR_CPU_BITS=32 13366 VAR_CPU_ENDIAN=big 13367 ;; 13368 s390x) 13369 VAR_CPU=s390x 13370 VAR_CPU_ARCH=s390 13371 VAR_CPU_BITS=64 13372 VAR_CPU_ENDIAN=big 13373 ;; 13374 sparc) 13375 VAR_CPU=sparc 13376 VAR_CPU_ARCH=sparc 13377 VAR_CPU_BITS=32 13378 VAR_CPU_ENDIAN=big 13379 ;; 13380 sparcv9) 13381 VAR_CPU=sparcv9 13382 VAR_CPU_ARCH=sparc 13383 VAR_CPU_BITS=64 13384 VAR_CPU_ENDIAN=big 13385 ;; 13386 *) 13387 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13388 ;; 13389 esac 13390 13391 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13392 OPENJDK_BUILD_OS="$VAR_OS" 13393 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13394 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13395 OPENJDK_BUILD_CPU="$VAR_CPU" 13396 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13397 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13398 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13399 13400 13401 13402 13403 13404 13405 13406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13407 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13409 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13410 13411 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13412 13413 case "$host_os" in 13414 *linux*) 13415 VAR_OS=linux 13416 VAR_OS_API=posix 13417 VAR_OS_ENV=linux 13418 ;; 13419 *solaris*) 13420 VAR_OS=solaris 13421 VAR_OS_API=posix 13422 VAR_OS_ENV=solaris 13423 ;; 13424 *darwin*) 13425 VAR_OS=macosx 13426 VAR_OS_API=posix 13427 VAR_OS_ENV=macosx 13428 ;; 13429 *bsd*) 13430 VAR_OS=bsd 13431 VAR_OS_API=posix 13432 VAR_OS_ENV=bsd 13433 ;; 13434 *cygwin*) 13435 VAR_OS=windows 13436 VAR_OS_API=winapi 13437 VAR_OS_ENV=windows.cygwin 13438 ;; 13439 *mingw*) 13440 VAR_OS=windows 13441 VAR_OS_API=winapi 13442 VAR_OS_ENV=windows.msys 13443 ;; 13444 *aix*) 13445 VAR_OS=aix 13446 VAR_OS_API=posix 13447 VAR_OS_ENV=aix 13448 ;; 13449 *) 13450 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13451 ;; 13452 esac 13453 13454 13455 # First argument is the cpu name from the trip/quad 13456 case "$host_cpu" in 13457 x86_64) 13458 VAR_CPU=x86_64 13459 VAR_CPU_ARCH=x86 13460 VAR_CPU_BITS=64 13461 VAR_CPU_ENDIAN=little 13462 ;; 13463 i?86) 13464 VAR_CPU=x86 13465 VAR_CPU_ARCH=x86 13466 VAR_CPU_BITS=32 13467 VAR_CPU_ENDIAN=little 13468 ;; 13469 arm*) 13470 VAR_CPU=arm 13471 VAR_CPU_ARCH=arm 13472 VAR_CPU_BITS=32 13473 VAR_CPU_ENDIAN=little 13474 ;; 13475 powerpc) 13476 VAR_CPU=ppc 13477 VAR_CPU_ARCH=ppc 13478 VAR_CPU_BITS=32 13479 VAR_CPU_ENDIAN=big 13480 ;; 13481 powerpc64) 13482 VAR_CPU=ppc64 13483 VAR_CPU_ARCH=ppc 13484 VAR_CPU_BITS=64 13485 VAR_CPU_ENDIAN=big 13486 ;; 13487 s390) 13488 VAR_CPU=s390 13489 VAR_CPU_ARCH=s390 13490 VAR_CPU_BITS=32 13491 VAR_CPU_ENDIAN=big 13492 ;; 13493 s390x) 13494 VAR_CPU=s390x 13495 VAR_CPU_ARCH=s390 13496 VAR_CPU_BITS=64 13497 VAR_CPU_ENDIAN=big 13498 ;; 13499 sparc) 13500 VAR_CPU=sparc 13501 VAR_CPU_ARCH=sparc 13502 VAR_CPU_BITS=32 13503 VAR_CPU_ENDIAN=big 13504 ;; 13505 sparcv9) 13506 VAR_CPU=sparcv9 13507 VAR_CPU_ARCH=sparc 13508 VAR_CPU_BITS=64 13509 VAR_CPU_ENDIAN=big 13510 ;; 13511 *) 13512 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13513 ;; 13514 esac 13515 13516 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13517 OPENJDK_TARGET_OS="$VAR_OS" 13518 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13519 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13520 OPENJDK_TARGET_CPU="$VAR_CPU" 13521 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13522 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13523 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13524 13525 13526 13527 13528 13529 13530 13531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13532 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13534 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13535 13536 13537 13538 # Check whether --with-target-bits was given. 13539 if test "${with_target_bits+set}" = set; then : 13540 withval=$with_target_bits; 13541 fi 13542 13543 13544 # We have three types of compiles: 13545 # native == normal compilation, target system == build system 13546 # cross == traditional cross compilation, target system != build system; special toolchain needed 13547 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13548 # 13549 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13550 # We're doing a proper cross-compilation 13551 COMPILE_TYPE="cross" 13552 else 13553 COMPILE_TYPE="native" 13554 fi 13555 13556 if test "x$with_target_bits" != x; then 13557 if test "x$COMPILE_TYPE" = "xcross"; then 13558 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13559 fi 13560 13561 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13562 # A reduced build is requested 13563 COMPILE_TYPE="reduced" 13564 OPENJDK_TARGET_CPU_BITS=32 13565 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13566 OPENJDK_TARGET_CPU=x86 13567 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13568 OPENJDK_TARGET_CPU=sparc 13569 else 13570 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13571 fi 13572 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13573 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 13574 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13575 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13576 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13577 else 13578 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13579 fi 13580 fi 13581 13582 13583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13584 $as_echo_n "checking compilation type... " >&6; } 13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13586 $as_echo "$COMPILE_TYPE" >&6; } 13587 13588 13589 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13590 REQUIRED_OS_NAME=SunOS 13591 REQUIRED_OS_VERSION=5.10 13592 fi 13593 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13594 REQUIRED_OS_NAME=Linux 13595 REQUIRED_OS_VERSION=2.6 13596 fi 13597 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13598 REQUIRED_OS_NAME=Windows 13599 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13600 REQUIRED_OS_VERSION=5.2 13601 else 13602 REQUIRED_OS_VERSION=5.1 13603 fi 13604 fi 13605 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13606 REQUIRED_OS_NAME=Darwin 13607 REQUIRED_OS_VERSION=11.2 13608 fi 13609 13610 13611 13612 13613 13614 # Also store the legacy naming of the cpu. 13615 # Ie i586 and amd64 instead of x86 and x86_64 13616 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13617 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13618 OPENJDK_TARGET_CPU_LEGACY="i586" 13619 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13620 # On all platforms except MacOSX replace x86_64 with amd64. 13621 OPENJDK_TARGET_CPU_LEGACY="amd64" 13622 fi 13623 13624 13625 # And the second legacy naming of the cpu. 13626 # Ie i386 and amd64 instead of x86 and x86_64. 13627 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13628 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13629 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13630 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13631 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13632 fi 13633 13634 13635 # This is the name of the cpu (but using i386 and amd64 instead of 13636 # x86 and x86_64, respectively), preceeded by a /, to be used when 13637 # locating libraries. On macosx, it's empty, though. 13638 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13639 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13640 OPENJDK_TARGET_CPU_LIBDIR="" 13641 fi 13642 13643 13644 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13645 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13646 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13647 OPENJDK_TARGET_CPU_ISADIR="" 13648 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13649 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13650 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13651 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13652 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13653 fi 13654 fi 13655 13656 13657 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13658 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13659 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13660 # On linux only, we replace x86 with i386. 13661 OPENJDK_TARGET_CPU_OSARCH="i386" 13662 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13663 # On all platforms except macosx, we replace x86_64 with amd64. 13664 OPENJDK_TARGET_CPU_OSARCH="amd64" 13665 fi 13666 13667 13668 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13669 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13670 OPENJDK_TARGET_CPU_JLI="i386" 13671 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13672 # On all platforms except macosx, we replace x86_64 with amd64. 13673 OPENJDK_TARGET_CPU_JLI="amd64" 13674 fi 13675 # Now setup the -D flags for building libjli. 13676 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13677 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13678 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13679 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13680 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13681 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13682 fi 13683 fi 13684 13685 13686 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13687 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13688 OPENJDK_TARGET_OS_API_DIR="solaris" 13689 fi 13690 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13691 OPENJDK_TARGET_OS_API_DIR="windows" 13692 fi 13693 13694 13695 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13696 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13697 else 13698 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13699 fi 13700 13701 13702 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13703 A_LP64="LP64:=" 13704 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13705 # unpack200.exe 13706 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13707 ADD_LP64="-D_LP64=1" 13708 fi 13709 fi 13710 LP64=$A_LP64 13711 13712 13713 if test "x$COMPILE_TYPE" = "xcross"; then 13714 # FIXME: ... or should this include reduced builds..? 13715 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13716 else 13717 DEFINE_CROSS_COMPILE_ARCH="" 13718 fi 13719 13720 13721 # ZERO_ARCHDEF is used to enable architecture-specific code 13722 case "${OPENJDK_TARGET_CPU}" in 13723 ppc*) ZERO_ARCHDEF=PPC ;; 13724 s390*) ZERO_ARCHDEF=S390 ;; 13725 sparc*) ZERO_ARCHDEF=SPARC ;; 13726 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13727 x86) ZERO_ARCHDEF=IA32 ;; 13728 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13729 esac 13730 13731 13732 13733 13734 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13735 13736 # Locate the directory of this script. 13737 SCRIPT="$0" 13738 AUTOCONF_DIR=`cd \`$DIRNAME $SCRIPT\`; $THEPWDCMD -L` 13739 13740 # Where is the source? It is located two levels above the configure script. 13741 CURDIR="$PWD" 13742 cd "$AUTOCONF_DIR/../.." 13743 SRC_ROOT="`$THEPWDCMD -L`" 13744 13745 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13746 PATH_SEP=";" 13747 13748 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13749 if test $SRC_ROOT_LENGTH -gt 100; then 13750 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13751 fi 13752 13753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13755 $as_echo_n "checking cygwin release... " >&6; } 13756 CYGWIN_VERSION=`$UNAME -r` 13757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13758 $as_echo "$CYGWIN_VERSION" >&6; } 13759 WINDOWS_ENV_VENDOR='cygwin' 13760 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13761 13762 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 13763 if test "x$CYGWIN_VERSION_OK" = x; then 13764 { $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 13765 $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;} 13766 as_fn_error $? "Cannot continue" "$LINENO" 5 13767 fi 13768 if test "x$CYGPATH" = x; then 13769 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13770 fi 13771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13772 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13773 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13774 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 13775 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13776 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13778 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13779 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13780 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13781 if test "x$test_cygdrive_prefix" = x; then 13782 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13783 fi 13784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13786 $as_echo_n "checking msys release... " >&6; } 13787 MSYS_VERSION=`$UNAME -r` 13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13789 $as_echo "$MSYS_VERSION" >&6; } 13790 13791 WINDOWS_ENV_VENDOR='msys' 13792 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13793 13794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13795 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13796 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13797 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13798 13799 windows_path="$MSYS_ROOT_PATH" 13800 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13801 unix_path=`$CYGPATH -u "$windows_path"` 13802 MSYS_ROOT_PATH="$unix_path" 13803 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13804 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13805 MSYS_ROOT_PATH="$unix_path" 13806 fi 13807 13808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13809 $as_echo "$MSYS_ROOT_PATH" >&6; } 13810 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13811 else 13812 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13813 fi 13814 13815 # Test if windows or unix (cygwin/msys) find is first in path. 13816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13817 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13818 FIND_BINARY_OUTPUT=`find --version 2>&1` 13819 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13821 $as_echo "unix style" >&6; } 13822 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13824 $as_echo "Windows" >&6; } 13825 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13826 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13827 { $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 13828 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13829 as_fn_error $? "Cannot continue" "$LINENO" 5 13830 else 13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13832 $as_echo "unknown" >&6; } 13833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 13834 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 13835 fi 13836 13837 else 13838 PATH_SEP=":" 13839 fi 13840 13841 13842 13843 cd "$CURDIR" 13844 13845 13846 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13847 13848 # Input might be given as Windows format, start by converting to 13849 # unix format. 13850 path="$SRC_ROOT" 13851 new_path=`$CYGPATH -u "$path"` 13852 13853 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13854 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13855 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13856 # "foo.exe" is OK but "foo" is an error. 13857 # 13858 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13859 # It is also a way to make sure we got the proper file name for the real test later on. 13860 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13861 if test "x$test_shortpath" = x; then 13862 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 13863 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} 13864 as_fn_error $? "Cannot locate the the path of SRC_ROOT" "$LINENO" 5 13865 fi 13866 13867 # Call helper function which possibly converts this using DOS-style short mode. 13868 # If so, the updated path is stored in $new_path. 13869 13870 input_path="$new_path" 13871 # Check if we need to convert this using DOS-style short mode. If the path 13872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13873 # take no chances and rewrite it. 13874 # Note: m4 eats our [], so we need to use [ and ] instead. 13875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13876 if test "x$has_forbidden_chars" != x; then 13877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13878 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 13879 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 13880 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 13881 # Going to short mode and back again did indeed matter. Since short mode is 13882 # case insensitive, let's make it lowercase to improve readability. 13883 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13884 # Now convert it back to Unix-stile (cygpath) 13885 input_path=`$CYGPATH -u "$shortmode_path"` 13886 new_path="$input_path" 13887 fi 13888 fi 13889 13890 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 13891 if test "x$test_cygdrive_prefix" = x; then 13892 # As a simple fix, exclude /usr/bin since it's not a real path. 13893 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 13894 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 13895 # a path prefixed by /cygdrive for fixpath to work. 13896 new_path="$CYGWIN_ROOT_PATH$input_path" 13897 fi 13898 fi 13899 13900 13901 if test "x$path" != "x$new_path"; then 13902 SRC_ROOT="$new_path" 13903 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 13904 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} 13905 fi 13906 13907 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13908 13909 path="$SRC_ROOT" 13910 has_colon=`$ECHO $path | $GREP ^.:` 13911 new_path="$path" 13912 if test "x$has_colon" = x; then 13913 # Not in mixed or Windows style, start by that. 13914 new_path=`cmd //c echo $path` 13915 fi 13916 13917 13918 input_path="$new_path" 13919 # Check if we need to convert this using DOS-style short mode. If the path 13920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13921 # take no chances and rewrite it. 13922 # Note: m4 eats our [], so we need to use [ and ] instead. 13923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 13924 if test "x$has_forbidden_chars" != x; then 13925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 13926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 13927 fi 13928 13929 13930 windows_path="$new_path" 13931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13932 unix_path=`$CYGPATH -u "$windows_path"` 13933 new_path="$unix_path" 13934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13936 new_path="$unix_path" 13937 fi 13938 13939 if test "x$path" != "x$new_path"; then 13940 SRC_ROOT="$new_path" 13941 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting SRC_ROOT to \"$new_path\"" >&5 13942 $as_echo "$as_me: Rewriting SRC_ROOT to \"$new_path\"" >&6;} 13943 fi 13944 13945 # Save the first 10 bytes of this path to the storage, so fixpath can work. 13946 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 13947 13948 else 13949 # We're on a posix platform. Hooray! :) 13950 path="$SRC_ROOT" 13951 has_space=`$ECHO "$path" | $GREP " "` 13952 if test "x$has_space" != x; then 13953 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&5 13954 $as_echo "$as_me: The path of SRC_ROOT, which resolves as \"$path\", is invalid." >&6;} 13955 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 13956 fi 13957 13958 # Use eval to expand a potential ~ 13959 eval path="$path" 13960 if test ! -f "$path" && test ! -d "$path"; then 13961 as_fn_error $? "The path of SRC_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 13962 fi 13963 13964 SRC_ROOT="`cd "$path"; $THEPWDCMD -L`" 13965 fi 13966 13967 13968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13969 13970 # Input might be given as Windows format, start by converting to 13971 # unix format. 13972 path="$CURDIR" 13973 new_path=`$CYGPATH -u "$path"` 13974 13975 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 13976 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 13977 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 13978 # "foo.exe" is OK but "foo" is an error. 13979 # 13980 # This test is therefore slightly more accurate than "test -f" to check for file precense. 13981 # It is also a way to make sure we got the proper file name for the real test later on. 13982 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 13983 if test "x$test_shortpath" = x; then 13984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 13985 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 13986 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 13987 fi 13988 13989 # Call helper function which possibly converts this using DOS-style short mode. 13990 # If so, the updated path is stored in $new_path. 13991 13992 input_path="$new_path" 13993 # Check if we need to convert this using DOS-style short mode. If the path 13994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 13995 # take no chances and rewrite it. 13996 # Note: m4 eats our [], so we need to use [ and ] instead. 13997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 13998 if test "x$has_forbidden_chars" != x; then 13999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14000 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14001 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14002 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14003 # Going to short mode and back again did indeed matter. Since short mode is 14004 # case insensitive, let's make it lowercase to improve readability. 14005 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14006 # Now convert it back to Unix-stile (cygpath) 14007 input_path=`$CYGPATH -u "$shortmode_path"` 14008 new_path="$input_path" 14009 fi 14010 fi 14011 14012 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14013 if test "x$test_cygdrive_prefix" = x; then 14014 # As a simple fix, exclude /usr/bin since it's not a real path. 14015 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14016 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14017 # a path prefixed by /cygdrive for fixpath to work. 14018 new_path="$CYGWIN_ROOT_PATH$input_path" 14019 fi 14020 fi 14021 14022 14023 if test "x$path" != "x$new_path"; then 14024 CURDIR="$new_path" 14025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14026 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14027 fi 14028 14029 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14030 14031 path="$CURDIR" 14032 has_colon=`$ECHO $path | $GREP ^.:` 14033 new_path="$path" 14034 if test "x$has_colon" = x; then 14035 # Not in mixed or Windows style, start by that. 14036 new_path=`cmd //c echo $path` 14037 fi 14038 14039 14040 input_path="$new_path" 14041 # Check if we need to convert this using DOS-style short mode. If the path 14042 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14043 # take no chances and rewrite it. 14044 # Note: m4 eats our [], so we need to use [ and ] instead. 14045 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14046 if test "x$has_forbidden_chars" != x; then 14047 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14048 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14049 fi 14050 14051 14052 windows_path="$new_path" 14053 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14054 unix_path=`$CYGPATH -u "$windows_path"` 14055 new_path="$unix_path" 14056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14057 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14058 new_path="$unix_path" 14059 fi 14060 14061 if test "x$path" != "x$new_path"; then 14062 CURDIR="$new_path" 14063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14064 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14065 fi 14066 14067 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14068 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14069 14070 else 14071 # We're on a posix platform. Hooray! :) 14072 path="$CURDIR" 14073 has_space=`$ECHO "$path" | $GREP " "` 14074 if test "x$has_space" != x; then 14075 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14076 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14077 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14078 fi 14079 14080 # Use eval to expand a potential ~ 14081 eval path="$path" 14082 if test ! -f "$path" && test ! -d "$path"; then 14083 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14084 fi 14085 14086 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14087 fi 14088 14089 14090 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14091 # Add extra search paths on solaris for utilities like ar and as etc... 14092 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14093 fi 14094 14095 # You can force the sys-root if the sys-root encoded into the cross compiler tools 14096 # is not correct. 14097 14098 # Check whether --with-sys-root was given. 14099 if test "${with_sys_root+set}" = set; then : 14100 withval=$with_sys_root; 14101 fi 14102 14103 14104 if test "x$with_sys_root" != x; then 14105 SYS_ROOT=$with_sys_root 14106 else 14107 SYS_ROOT=/ 14108 fi 14109 14110 14111 14112 # Check whether --with-tools-dir was given. 14113 if test "${with_tools_dir+set}" = set; then : 14114 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir 14115 14116 fi 14117 14118 14119 14120 # Check whether --with-devkit was given. 14121 if test "${with_devkit+set}" = set; then : 14122 withval=$with_devkit; 14123 if test "x$with_sys_root" != x; then 14124 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5 14125 fi 14126 14127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14128 14129 # Input might be given as Windows format, start by converting to 14130 # unix format. 14131 path="$with_devkit" 14132 new_path=`$CYGPATH -u "$path"` 14133 14134 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14135 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14136 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14137 # "foo.exe" is OK but "foo" is an error. 14138 # 14139 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14140 # It is also a way to make sure we got the proper file name for the real test later on. 14141 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14142 if test "x$test_shortpath" = x; then 14143 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14144 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14145 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14146 fi 14147 14148 # Call helper function which possibly converts this using DOS-style short mode. 14149 # If so, the updated path is stored in $new_path. 14150 14151 input_path="$new_path" 14152 # Check if we need to convert this using DOS-style short mode. If the path 14153 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14154 # take no chances and rewrite it. 14155 # Note: m4 eats our [], so we need to use [ and ] instead. 14156 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14157 if test "x$has_forbidden_chars" != x; then 14158 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14159 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14160 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14161 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14162 # Going to short mode and back again did indeed matter. Since short mode is 14163 # case insensitive, let's make it lowercase to improve readability. 14164 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14165 # Now convert it back to Unix-stile (cygpath) 14166 input_path=`$CYGPATH -u "$shortmode_path"` 14167 new_path="$input_path" 14168 fi 14169 fi 14170 14171 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14172 if test "x$test_cygdrive_prefix" = x; then 14173 # As a simple fix, exclude /usr/bin since it's not a real path. 14174 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14175 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14176 # a path prefixed by /cygdrive for fixpath to work. 14177 new_path="$CYGWIN_ROOT_PATH$input_path" 14178 fi 14179 fi 14180 14181 14182 if test "x$path" != "x$new_path"; then 14183 with_devkit="$new_path" 14184 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14185 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14186 fi 14187 14188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14189 14190 path="$with_devkit" 14191 has_colon=`$ECHO $path | $GREP ^.:` 14192 new_path="$path" 14193 if test "x$has_colon" = x; then 14194 # Not in mixed or Windows style, start by that. 14195 new_path=`cmd //c echo $path` 14196 fi 14197 14198 14199 input_path="$new_path" 14200 # Check if we need to convert this using DOS-style short mode. If the path 14201 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14202 # take no chances and rewrite it. 14203 # Note: m4 eats our [], so we need to use [ and ] instead. 14204 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14205 if test "x$has_forbidden_chars" != x; then 14206 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14207 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14208 fi 14209 14210 14211 windows_path="$new_path" 14212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14213 unix_path=`$CYGPATH -u "$windows_path"` 14214 new_path="$unix_path" 14215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14217 new_path="$unix_path" 14218 fi 14219 14220 if test "x$path" != "x$new_path"; then 14221 with_devkit="$new_path" 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14223 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14224 fi 14225 14226 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14227 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14228 14229 else 14230 # We're on a posix platform. Hooray! :) 14231 path="$with_devkit" 14232 has_space=`$ECHO "$path" | $GREP " "` 14233 if test "x$has_space" != x; then 14234 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14235 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14236 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14237 fi 14238 14239 # Use eval to expand a potential ~ 14240 eval path="$path" 14241 if test ! -f "$path" && test ! -d "$path"; then 14242 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14243 fi 14244 14245 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14246 fi 14247 14248 14249 if test "x$TOOLS_DIR" = x; then 14250 TOOLS_DIR="$with_devkit/bin" 14251 else 14252 TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin" 14253 fi 14254 14255 if test -d "$with_devkit/$host_alias/libc"; then 14256 SYS_ROOT=$with_devkit/$host_alias/libc 14257 elif test -d "$with_devkit/$host/sys-root"; then 14258 SYS_ROOT=$with_devkit/$host/sys-root 14259 fi 14260 14261 fi 14262 14263 14264 14265 # Setup default logging of stdout and stderr to build.log in the output root. 14266 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14267 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14268 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14269 14270 14271 14272 14273 14274 # Check if it's a pure open build or if custom sources are to be used. 14275 14276 # Check whether --enable-openjdk-only was given. 14277 if test "${enable_openjdk_only+set}" = set; then : 14278 enableval=$enable_openjdk_only; 14279 else 14280 enable_openjdk_only="no" 14281 fi 14282 14283 14284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14285 $as_echo_n "checking for presence of closed sources... " >&6; } 14286 if test -d "$SRC_ROOT/jdk/src/closed"; then 14287 CLOSED_SOURCE_PRESENT=yes 14288 else 14289 CLOSED_SOURCE_PRESENT=no 14290 fi 14291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14292 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14293 14294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14295 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14296 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14298 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14299 14300 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14301 OPENJDK=true 14302 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14304 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14305 fi 14306 else 14307 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14308 OPENJDK=true 14309 else 14310 OPENJDK=false 14311 fi 14312 fi 14313 14314 if test "x$OPENJDK" = "xtrue"; then 14315 SET_OPENJDK="OPENJDK=true" 14316 fi 14317 14318 14319 14320 14321 # These are needed to be able to create a configuration name (and thus the output directory) 14322 14323 ############################################################################### 14324 # 14325 # Check which variant of the JDK that we want to build. 14326 # Currently we have: 14327 # normal: standard edition 14328 # but the custom make system may add other variants 14329 # 14330 # Effectively the JDK variant gives a name to a specific set of 14331 # modules to compile into the JDK. In the future, these modules 14332 # might even be Jigsaw modules. 14333 # 14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14335 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14336 14337 # Check whether --with-jdk-variant was given. 14338 if test "${with_jdk_variant+set}" = set; then : 14339 withval=$with_jdk_variant; 14340 fi 14341 14342 14343 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14344 JDK_VARIANT="normal" 14345 else 14346 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14347 fi 14348 14349 14350 14351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14352 $as_echo "$JDK_VARIANT" >&6; } 14353 14354 14355 ############################################################################### 14356 # 14357 # Check which interpreter of the JVM we want to build. 14358 # Currently we have: 14359 # template: Template interpreter (the default) 14360 # cpp : C++ interpreter 14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14362 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14363 14364 # Check whether --with-jvm-interpreter was given. 14365 if test "${with_jvm_interpreter+set}" = set; then : 14366 withval=$with_jvm_interpreter; 14367 fi 14368 14369 14370 if test "x$with_jvm_interpreter" = x; then 14371 with_jvm_interpreter="template" 14372 fi 14373 14374 JVM_INTERPRETER="$with_jvm_interpreter" 14375 14376 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14377 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14378 fi 14379 14380 14381 14382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14383 $as_echo "$with_jvm_interpreter" >&6; } 14384 14385 14386 14387 ############################################################################### 14388 # 14389 # Check which variants of the JVM that we want to build. 14390 # Currently we have: 14391 # server: normal interpreter and a tiered C1/C2 compiler 14392 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14393 # minimal1: reduced form of client with optional VM services and features stripped out 14394 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14395 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14396 # zero: no machine code interpreter, no compiler 14397 # zeroshark: zero interpreter and shark/llvm compiler backend 14398 # core: interpreter only, no compiler (only works on some platforms) 14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14400 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14401 14402 # Check whether --with-jvm-variants was given. 14403 if test "${with_jvm_variants+set}" = set; then : 14404 withval=$with_jvm_variants; 14405 fi 14406 14407 14408 if test "x$with_jvm_variants" = x; then 14409 with_jvm_variants="server" 14410 fi 14411 14412 JVM_VARIANTS=",$with_jvm_variants," 14413 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,//'` 14414 14415 if test "x$TEST_VARIANTS" != "x,"; then 14416 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14417 fi 14418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14419 $as_echo "$with_jvm_variants" >&6; } 14420 14421 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14422 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14423 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14424 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14425 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14426 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14427 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14428 14429 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14430 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14431 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14432 fi 14433 fi 14434 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14435 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14436 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14437 fi 14438 fi 14439 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14440 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14441 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14442 fi 14443 fi 14444 14445 # Replace the commas with AND for use in the build directory name. 14446 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14447 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/'` 14448 if test "x$COUNT_VARIANTS" != "x,1"; then 14449 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14450 else 14451 BUILDING_MULTIPLE_JVM_VARIANTS=no 14452 fi 14453 14454 14455 14456 14457 14458 14459 14460 14461 14462 14463 INCLUDE_SA=true 14464 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14465 INCLUDE_SA=false 14466 fi 14467 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14468 INCLUDE_SA=false 14469 fi 14470 if test "x$VAR_CPU" = xppc64 ; then 14471 INCLUDE_SA=false 14472 fi 14473 14474 14475 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14476 MACOSX_UNIVERSAL="true" 14477 fi 14478 14479 14480 14481 14482 ############################################################################### 14483 # 14484 # Set the debug level 14485 # release: no debug information, all optimizations, no asserts. 14486 # fastdebug: debug information (-g), all optimizations, all asserts 14487 # slowdebug: debug information (-g), no optimizations, all asserts 14488 # 14489 DEBUG_LEVEL="release" 14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14491 $as_echo_n "checking which debug level to use... " >&6; } 14492 # Check whether --enable-debug was given. 14493 if test "${enable_debug+set}" = set; then : 14494 enableval=$enable_debug; 14495 ENABLE_DEBUG="${enableval}" 14496 DEBUG_LEVEL="fastdebug" 14497 14498 else 14499 ENABLE_DEBUG="no" 14500 fi 14501 14502 14503 14504 # Check whether --with-debug-level was given. 14505 if test "${with_debug_level+set}" = set; then : 14506 withval=$with_debug_level; 14507 DEBUG_LEVEL="${withval}" 14508 if test "x$ENABLE_DEBUG" = xyes; then 14509 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14510 fi 14511 14512 fi 14513 14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14515 $as_echo "$DEBUG_LEVEL" >&6; } 14516 14517 if test "x$DEBUG_LEVEL" != xrelease && \ 14518 test "x$DEBUG_LEVEL" != xfastdebug && \ 14519 test "x$DEBUG_LEVEL" != xslowdebug; then 14520 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14521 fi 14522 14523 14524 ############################################################################### 14525 # 14526 # Setup legacy vars/targets and new vars to deal with different debug levels. 14527 # 14528 14529 case $DEBUG_LEVEL in 14530 release ) 14531 VARIANT="OPT" 14532 FASTDEBUG="false" 14533 DEBUG_CLASSFILES="false" 14534 BUILD_VARIANT_RELEASE="" 14535 HOTSPOT_DEBUG_LEVEL="product" 14536 HOTSPOT_EXPORT="product" 14537 ;; 14538 fastdebug ) 14539 VARIANT="DBG" 14540 FASTDEBUG="true" 14541 DEBUG_CLASSFILES="true" 14542 BUILD_VARIANT_RELEASE="-fastdebug" 14543 HOTSPOT_DEBUG_LEVEL="fastdebug" 14544 HOTSPOT_EXPORT="fastdebug" 14545 ;; 14546 slowdebug ) 14547 VARIANT="DBG" 14548 FASTDEBUG="false" 14549 DEBUG_CLASSFILES="true" 14550 BUILD_VARIANT_RELEASE="-debug" 14551 HOTSPOT_DEBUG_LEVEL="jvmg" 14552 HOTSPOT_EXPORT="debug" 14553 ;; 14554 esac 14555 14556 ##### 14557 # Generate the legacy makefile targets for hotspot. 14558 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14559 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14560 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14561 # But until then ... 14562 HOTSPOT_TARGET="" 14563 14564 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14565 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14566 fi 14567 14568 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14569 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14570 fi 14571 14572 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14573 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14574 fi 14575 14576 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14577 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14578 fi 14579 14580 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14581 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14582 fi 14583 14584 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14585 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14586 fi 14587 14588 if test "x$JVM_VARIANT_CORE" = xtrue; then 14589 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14590 fi 14591 14592 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14593 14594 # On Macosx universal binaries are produced, but they only contain 14595 # 64 bit intel. This invalidates control of which jvms are built 14596 # from configure, but only server is valid anyway. Fix this 14597 # when hotspot makefiles are rewritten. 14598 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14599 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14600 fi 14601 14602 ##### 14603 14604 14605 14606 14607 14608 14609 14610 14611 # With basic setup done, call the custom early hook. 14612 14613 14614 # To properly create a configuration name, we need to have the OpenJDK target 14615 # and options (variants and debug level) parsed. 14616 14617 14618 14619 # Check whether --with-conf-name was given. 14620 if test "${with_conf_name+set}" = set; then : 14621 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14622 fi 14623 14624 14625 # Test from where we are running configure, in or outside of src root. 14626 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14627 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14628 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14629 # We are running configure from the src root. 14630 # Create a default ./build/target-variant-debuglevel output root. 14631 if test "x${CONF_NAME}" = x; then 14632 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14633 fi 14634 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14635 $MKDIR -p "$OUTPUT_ROOT" 14636 if test ! -d "$OUTPUT_ROOT"; then 14637 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14638 fi 14639 else 14640 # We are running configure from outside of the src dir. 14641 # Then use the current directory as output dir! 14642 # If configuration is situated in normal build directory, just use the build 14643 # directory name as configuration name, otherwise use the complete path. 14644 if test "x${CONF_NAME}" = x; then 14645 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14646 fi 14647 OUTPUT_ROOT="$CURDIR" 14648 14649 # WARNING: This might be a bad thing to do. You need to be sure you want to 14650 # have a configuration in this directory. Do some sanity checks! 14651 14652 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14653 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14654 # other files 14655 files_present=`$LS $OUTPUT_ROOT` 14656 # Configure has already touched config.log and confdefs.h in the current dir when this check 14657 # is performed. 14658 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14659 | $TR -d '\n'` 14660 if test "x$filtered_files" != x; then 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14662 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14663 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14664 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14665 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14666 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14667 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14668 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14669 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14670 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14671 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14672 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14673 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14674 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14675 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14676 fi 14677 fi 14678 fi 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14680 $as_echo_n "checking what configuration name to use... " >&6; } 14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 14682 $as_echo "$CONF_NAME" >&6; } 14683 14684 14685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14686 14687 # Input might be given as Windows format, start by converting to 14688 # unix format. 14689 path="$OUTPUT_ROOT" 14690 new_path=`$CYGPATH -u "$path"` 14691 14692 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14693 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14694 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14695 # "foo.exe" is OK but "foo" is an error. 14696 # 14697 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14698 # It is also a way to make sure we got the proper file name for the real test later on. 14699 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14700 if test "x$test_shortpath" = x; then 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14702 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14703 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 14704 fi 14705 14706 # Call helper function which possibly converts this using DOS-style short mode. 14707 # If so, the updated path is stored in $new_path. 14708 14709 input_path="$new_path" 14710 # Check if we need to convert this using DOS-style short mode. If the path 14711 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14712 # take no chances and rewrite it. 14713 # Note: m4 eats our [], so we need to use [ and ] instead. 14714 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14715 if test "x$has_forbidden_chars" != x; then 14716 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14717 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14718 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14719 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14720 # Going to short mode and back again did indeed matter. Since short mode is 14721 # case insensitive, let's make it lowercase to improve readability. 14722 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14723 # Now convert it back to Unix-stile (cygpath) 14724 input_path=`$CYGPATH -u "$shortmode_path"` 14725 new_path="$input_path" 14726 fi 14727 fi 14728 14729 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14730 if test "x$test_cygdrive_prefix" = x; then 14731 # As a simple fix, exclude /usr/bin since it's not a real path. 14732 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14733 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14734 # a path prefixed by /cygdrive for fixpath to work. 14735 new_path="$CYGWIN_ROOT_PATH$input_path" 14736 fi 14737 fi 14738 14739 14740 if test "x$path" != "x$new_path"; then 14741 OUTPUT_ROOT="$new_path" 14742 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14743 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14744 fi 14745 14746 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14747 14748 path="$OUTPUT_ROOT" 14749 has_colon=`$ECHO $path | $GREP ^.:` 14750 new_path="$path" 14751 if test "x$has_colon" = x; then 14752 # Not in mixed or Windows style, start by that. 14753 new_path=`cmd //c echo $path` 14754 fi 14755 14756 14757 input_path="$new_path" 14758 # Check if we need to convert this using DOS-style short mode. If the path 14759 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14760 # take no chances and rewrite it. 14761 # Note: m4 eats our [], so we need to use [ and ] instead. 14762 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14763 if test "x$has_forbidden_chars" != x; then 14764 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14765 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14766 fi 14767 14768 14769 windows_path="$new_path" 14770 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14771 unix_path=`$CYGPATH -u "$windows_path"` 14772 new_path="$unix_path" 14773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14774 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14775 new_path="$unix_path" 14776 fi 14777 14778 if test "x$path" != "x$new_path"; then 14779 OUTPUT_ROOT="$new_path" 14780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14781 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14782 fi 14783 14784 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14785 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14786 14787 else 14788 # We're on a posix platform. Hooray! :) 14789 path="$OUTPUT_ROOT" 14790 has_space=`$ECHO "$path" | $GREP " "` 14791 if test "x$has_space" != x; then 14792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14793 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14794 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14795 fi 14796 14797 # Use eval to expand a potential ~ 14798 eval path="$path" 14799 if test ! -f "$path" && test ! -d "$path"; then 14800 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 14801 fi 14802 14803 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 14804 fi 14805 14806 14807 SPEC=$OUTPUT_ROOT/spec.gmk 14808 14809 CONF_NAME=$CONF_NAME 14810 14811 OUTPUT_ROOT=$OUTPUT_ROOT 14812 14813 14814 # Most of the probed defines are put into config.h 14815 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 14816 14817 # The spec.gmk file contains all variables for the make system. 14818 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 14819 14820 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 14821 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 14822 14823 # The bootcycle-spec.gmk file contains support for boot cycle builds. 14824 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 14825 14826 # The compare.sh is used to compare the build output to other builds. 14827 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 14828 14829 # Spec.sh is currently used by compare-objects.sh 14830 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 14831 14832 # The generated Makefile knows where the spec.gmk is and where the source is. 14833 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 14834 # which will look for generated configurations 14835 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 14836 14837 14838 # Save the arguments given to us 14839 echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments 14840 14841 14842 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 14843 14844 for ac_prog in apt-get yum port pkgutil pkgadd 14845 do 14846 # Extract the first word of "$ac_prog", so it can be a program name with args. 14847 set dummy $ac_prog; ac_word=$2 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14849 $as_echo_n "checking for $ac_word... " >&6; } 14850 if ${ac_cv_prog_PKGHANDLER+:} false; then : 14851 $as_echo_n "(cached) " >&6 14852 else 14853 if test -n "$PKGHANDLER"; then 14854 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 14855 else 14856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14857 for as_dir in $PATH 14858 do 14859 IFS=$as_save_IFS 14860 test -z "$as_dir" && as_dir=. 14861 for ac_exec_ext in '' $ac_executable_extensions; do 14862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14863 ac_cv_prog_PKGHANDLER="$ac_prog" 14864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14865 break 2 14866 fi 14867 done 14868 done 14869 IFS=$as_save_IFS 14870 14871 fi 14872 fi 14873 PKGHANDLER=$ac_cv_prog_PKGHANDLER 14874 if test -n "$PKGHANDLER"; then 14875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 14876 $as_echo "$PKGHANDLER" >&6; } 14877 else 14878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14879 $as_echo "no" >&6; } 14880 fi 14881 14882 14883 test -n "$PKGHANDLER" && break 14884 done 14885 14886 14887 14888 # Setup tools that requires more complex handling, or that is not needed by the configure script. 14889 14890 14891 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 14892 if test "x$MAKE" != x; then 14893 # User has supplied a make, test it. 14894 if test ! -f "$MAKE"; then 14895 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 14896 fi 14897 14898 MAKE_CANDIDATE=""$MAKE"" 14899 DESCRIPTION="user supplied MAKE=$MAKE" 14900 if test "x$MAKE_CANDIDATE" != x; then 14901 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 14902 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 14903 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 14904 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 14905 if test "x$IS_GNU_MAKE" = x; then 14906 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 14907 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 14908 else 14909 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 14910 if test "x$IS_MODERN_MAKE" = x; then 14911 { $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 14912 $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;} 14913 else 14914 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 14915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14916 MAKE_EXPECTED_ENV='cygwin' 14917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14918 MAKE_EXPECTED_ENV='msys' 14919 else 14920 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 14921 fi 14922 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 14923 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 14924 else 14925 # Not relevant for non-Windows 14926 IS_MAKE_CORRECT_ENV=true 14927 fi 14928 if test "x$IS_MAKE_CORRECT_ENV" = x; then 14929 { $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 14930 $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;} 14931 else 14932 FOUND_MAKE=$MAKE_CANDIDATE 14933 14934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14935 14936 # First separate the path from the arguments. This will split at the first 14937 # space. 14938 complete="$FOUND_MAKE" 14939 path="${complete%% *}" 14940 tmp="$complete EOL" 14941 arguments="${tmp#* }" 14942 14943 # Input might be given as Windows format, start by converting to 14944 # unix format. 14945 new_path=`$CYGPATH -u "$path"` 14946 14947 # Now try to locate executable using which 14948 new_path=`$WHICH "$new_path" 2> /dev/null` 14949 # bat and cmd files are not always considered executable in cygwin causing which 14950 # to not find them 14951 if test "x$new_path" = x \ 14952 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 14953 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 14954 new_path=`$CYGPATH -u "$path"` 14955 fi 14956 if test "x$new_path" = x; then 14957 # Oops. Which didn't find the executable. 14958 # The splitting of arguments from the executable at a space might have been incorrect, 14959 # since paths with space are more likely in Windows. Give it another try with the whole 14960 # argument. 14961 path="$complete" 14962 arguments="EOL" 14963 new_path=`$CYGPATH -u "$path"` 14964 new_path=`$WHICH "$new_path" 2> /dev/null` 14965 # bat and cmd files are not always considered executable in cygwin causing which 14966 # to not find them 14967 if test "x$new_path" = x \ 14968 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 14969 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 14970 new_path=`$CYGPATH -u "$path"` 14971 fi 14972 if test "x$new_path" = x; then 14973 # It's still not found. Now this is an unrecoverable error. 14974 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 14975 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 14976 has_space=`$ECHO "$complete" | $GREP " "` 14977 if test "x$has_space" != x; then 14978 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 14979 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 14980 fi 14981 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 14982 fi 14983 fi 14984 14985 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14986 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14987 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14988 # "foo.exe" is OK but "foo" is an error. 14989 # 14990 # This test is therefore slightly more accurate than "test -f" to check for file presence. 14991 # It is also a way to make sure we got the proper file name for the real test later on. 14992 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14993 if test "x$test_shortpath" = x; then 14994 # Short path failed, file does not exist as specified. 14995 # Try adding .exe or .cmd 14996 if test -f "${new_path}.exe"; then 14997 input_to_shortpath="${new_path}.exe" 14998 elif test -f "${new_path}.cmd"; then 14999 input_to_shortpath="${new_path}.cmd" 15000 else 15001 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15002 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15003 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15004 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15005 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15006 fi 15007 else 15008 input_to_shortpath="$new_path" 15009 fi 15010 15011 # Call helper function which possibly converts this using DOS-style short mode. 15012 # If so, the updated path is stored in $new_path. 15013 new_path="$input_to_shortpath" 15014 15015 input_path="$input_to_shortpath" 15016 # Check if we need to convert this using DOS-style short mode. If the path 15017 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15018 # take no chances and rewrite it. 15019 # Note: m4 eats our [], so we need to use [ and ] instead. 15020 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15021 if test "x$has_forbidden_chars" != x; then 15022 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15023 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15024 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15025 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15026 # Going to short mode and back again did indeed matter. Since short mode is 15027 # case insensitive, let's make it lowercase to improve readability. 15028 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15029 # Now convert it back to Unix-stile (cygpath) 15030 input_path=`$CYGPATH -u "$shortmode_path"` 15031 new_path="$input_path" 15032 fi 15033 fi 15034 15035 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15036 if test "x$test_cygdrive_prefix" = x; then 15037 # As a simple fix, exclude /usr/bin since it's not a real path. 15038 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15039 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15040 # a path prefixed by /cygdrive for fixpath to work. 15041 new_path="$CYGWIN_ROOT_PATH$input_path" 15042 fi 15043 fi 15044 15045 # remove trailing .exe if any 15046 new_path="${new_path/%.exe/}" 15047 15048 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15049 15050 # First separate the path from the arguments. This will split at the first 15051 # space. 15052 complete="$FOUND_MAKE" 15053 path="${complete%% *}" 15054 tmp="$complete EOL" 15055 arguments="${tmp#* }" 15056 15057 # Input might be given as Windows format, start by converting to 15058 # unix format. 15059 new_path="$path" 15060 15061 windows_path="$new_path" 15062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15063 unix_path=`$CYGPATH -u "$windows_path"` 15064 new_path="$unix_path" 15065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15067 new_path="$unix_path" 15068 fi 15069 15070 15071 # Now try to locate executable using which 15072 new_path=`$WHICH "$new_path" 2> /dev/null` 15073 15074 if test "x$new_path" = x; then 15075 # Oops. Which didn't find the executable. 15076 # The splitting of arguments from the executable at a space might have been incorrect, 15077 # since paths with space are more likely in Windows. Give it another try with the whole 15078 # argument. 15079 path="$complete" 15080 arguments="EOL" 15081 new_path="$path" 15082 15083 windows_path="$new_path" 15084 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15085 unix_path=`$CYGPATH -u "$windows_path"` 15086 new_path="$unix_path" 15087 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15088 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15089 new_path="$unix_path" 15090 fi 15091 15092 15093 new_path=`$WHICH "$new_path" 2> /dev/null` 15094 15095 if test "x$new_path" = x; then 15096 # It's still not found. Now this is an unrecoverable error. 15097 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15098 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15099 has_space=`$ECHO "$complete" | $GREP " "` 15100 if test "x$has_space" != x; then 15101 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15102 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15103 fi 15104 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15105 fi 15106 fi 15107 15108 # Now new_path has a complete unix path to the binary 15109 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15110 # Keep paths in /bin as-is, but remove trailing .exe if any 15111 new_path="${new_path/%.exe/}" 15112 # Do not save /bin paths to all_fixpath_prefixes! 15113 else 15114 # Not in mixed or Windows style, start by that. 15115 new_path=`cmd //c echo $new_path` 15116 15117 input_path="$new_path" 15118 # Check if we need to convert this using DOS-style short mode. If the path 15119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15120 # take no chances and rewrite it. 15121 # Note: m4 eats our [], so we need to use [ and ] instead. 15122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15123 if test "x$has_forbidden_chars" != x; then 15124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15125 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15126 fi 15127 15128 # Output is in $new_path 15129 15130 windows_path="$new_path" 15131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15132 unix_path=`$CYGPATH -u "$windows_path"` 15133 new_path="$unix_path" 15134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15135 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15136 new_path="$unix_path" 15137 fi 15138 15139 # remove trailing .exe if any 15140 new_path="${new_path/%.exe/}" 15141 15142 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15143 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15144 fi 15145 15146 else 15147 # We're on a posix platform. Hooray! :) 15148 # First separate the path from the arguments. This will split at the first 15149 # space. 15150 complete="$FOUND_MAKE" 15151 path="${complete%% *}" 15152 tmp="$complete EOL" 15153 arguments="${tmp#* }" 15154 15155 # Cannot rely on the command "which" here since it doesn't always work. 15156 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15157 if test -z "$is_absolute_path"; then 15158 # Path to executable is not absolute. Find it. 15159 IFS_save="$IFS" 15160 IFS=: 15161 for p in $PATH; do 15162 if test -f "$p/$path" && test -x "$p/$path"; then 15163 new_path="$p/$path" 15164 break 15165 fi 15166 done 15167 IFS="$IFS_save" 15168 else 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 15170 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 15171 new_path="$path" 15172 fi 15173 15174 if test "x$new_path" = x; then 15175 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15176 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15177 has_space=`$ECHO "$complete" | $GREP " "` 15178 if test "x$has_space" != x; then 15179 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15180 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15181 fi 15182 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15183 fi 15184 fi 15185 15186 # Now join together the path and the arguments once again 15187 if test "x$arguments" != xEOL; then 15188 new_complete="$new_path ${arguments% *}" 15189 else 15190 new_complete="$new_path" 15191 fi 15192 15193 if test "x$complete" != "x$new_complete"; then 15194 FOUND_MAKE="$new_complete" 15195 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15196 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15197 fi 15198 15199 fi 15200 fi 15201 fi 15202 fi 15203 15204 if test "x$FOUND_MAKE" = x; then 15205 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15206 fi 15207 else 15208 # Try our hardest to locate a correct version of GNU make 15209 for ac_prog in gmake 15210 do 15211 # Extract the first word of "$ac_prog", so it can be a program name with args. 15212 set dummy $ac_prog; ac_word=$2 15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15214 $as_echo_n "checking for $ac_word... " >&6; } 15215 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15216 $as_echo_n "(cached) " >&6 15217 else 15218 case $CHECK_GMAKE in 15219 [\\/]* | ?:[\\/]*) 15220 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15221 ;; 15222 *) 15223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15224 for as_dir in $PATH 15225 do 15226 IFS=$as_save_IFS 15227 test -z "$as_dir" && as_dir=. 15228 for ac_exec_ext in '' $ac_executable_extensions; do 15229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15230 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15232 break 2 15233 fi 15234 done 15235 done 15236 IFS=$as_save_IFS 15237 15238 ;; 15239 esac 15240 fi 15241 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15242 if test -n "$CHECK_GMAKE"; then 15243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15244 $as_echo "$CHECK_GMAKE" >&6; } 15245 else 15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15247 $as_echo "no" >&6; } 15248 fi 15249 15250 15251 test -n "$CHECK_GMAKE" && break 15252 done 15253 15254 15255 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15256 DESCRIPTION="gmake in PATH" 15257 if test "x$MAKE_CANDIDATE" != x; then 15258 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15259 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15260 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15261 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15262 if test "x$IS_GNU_MAKE" = x; then 15263 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15264 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15265 else 15266 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15267 if test "x$IS_MODERN_MAKE" = x; then 15268 { $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 15269 $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;} 15270 else 15271 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15273 MAKE_EXPECTED_ENV='cygwin' 15274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15275 MAKE_EXPECTED_ENV='msys' 15276 else 15277 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15278 fi 15279 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15280 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15281 else 15282 # Not relevant for non-Windows 15283 IS_MAKE_CORRECT_ENV=true 15284 fi 15285 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15286 { $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 15287 $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;} 15288 else 15289 FOUND_MAKE=$MAKE_CANDIDATE 15290 15291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15292 15293 # First separate the path from the arguments. This will split at the first 15294 # space. 15295 complete="$FOUND_MAKE" 15296 path="${complete%% *}" 15297 tmp="$complete EOL" 15298 arguments="${tmp#* }" 15299 15300 # Input might be given as Windows format, start by converting to 15301 # unix format. 15302 new_path=`$CYGPATH -u "$path"` 15303 15304 # Now try to locate executable using which 15305 new_path=`$WHICH "$new_path" 2> /dev/null` 15306 # bat and cmd files are not always considered executable in cygwin causing which 15307 # to not find them 15308 if test "x$new_path" = x \ 15309 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15310 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15311 new_path=`$CYGPATH -u "$path"` 15312 fi 15313 if test "x$new_path" = x; then 15314 # Oops. Which didn't find the executable. 15315 # The splitting of arguments from the executable at a space might have been incorrect, 15316 # since paths with space are more likely in Windows. Give it another try with the whole 15317 # argument. 15318 path="$complete" 15319 arguments="EOL" 15320 new_path=`$CYGPATH -u "$path"` 15321 new_path=`$WHICH "$new_path" 2> /dev/null` 15322 # bat and cmd files are not always considered executable in cygwin causing which 15323 # to not find them 15324 if test "x$new_path" = x \ 15325 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15326 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15327 new_path=`$CYGPATH -u "$path"` 15328 fi 15329 if test "x$new_path" = x; then 15330 # It's still not found. Now this is an unrecoverable error. 15331 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15332 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15333 has_space=`$ECHO "$complete" | $GREP " "` 15334 if test "x$has_space" != x; then 15335 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15336 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15337 fi 15338 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15339 fi 15340 fi 15341 15342 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15343 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15344 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15345 # "foo.exe" is OK but "foo" is an error. 15346 # 15347 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15348 # It is also a way to make sure we got the proper file name for the real test later on. 15349 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15350 if test "x$test_shortpath" = x; then 15351 # Short path failed, file does not exist as specified. 15352 # Try adding .exe or .cmd 15353 if test -f "${new_path}.exe"; then 15354 input_to_shortpath="${new_path}.exe" 15355 elif test -f "${new_path}.cmd"; then 15356 input_to_shortpath="${new_path}.cmd" 15357 else 15358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15359 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15360 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15361 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15362 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15363 fi 15364 else 15365 input_to_shortpath="$new_path" 15366 fi 15367 15368 # Call helper function which possibly converts this using DOS-style short mode. 15369 # If so, the updated path is stored in $new_path. 15370 new_path="$input_to_shortpath" 15371 15372 input_path="$input_to_shortpath" 15373 # Check if we need to convert this using DOS-style short mode. If the path 15374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15375 # take no chances and rewrite it. 15376 # Note: m4 eats our [], so we need to use [ and ] instead. 15377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15378 if test "x$has_forbidden_chars" != x; then 15379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15380 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15381 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15382 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15383 # Going to short mode and back again did indeed matter. Since short mode is 15384 # case insensitive, let's make it lowercase to improve readability. 15385 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15386 # Now convert it back to Unix-stile (cygpath) 15387 input_path=`$CYGPATH -u "$shortmode_path"` 15388 new_path="$input_path" 15389 fi 15390 fi 15391 15392 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15393 if test "x$test_cygdrive_prefix" = x; then 15394 # As a simple fix, exclude /usr/bin since it's not a real path. 15395 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15396 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15397 # a path prefixed by /cygdrive for fixpath to work. 15398 new_path="$CYGWIN_ROOT_PATH$input_path" 15399 fi 15400 fi 15401 15402 # remove trailing .exe if any 15403 new_path="${new_path/%.exe/}" 15404 15405 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15406 15407 # First separate the path from the arguments. This will split at the first 15408 # space. 15409 complete="$FOUND_MAKE" 15410 path="${complete%% *}" 15411 tmp="$complete EOL" 15412 arguments="${tmp#* }" 15413 15414 # Input might be given as Windows format, start by converting to 15415 # unix format. 15416 new_path="$path" 15417 15418 windows_path="$new_path" 15419 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15420 unix_path=`$CYGPATH -u "$windows_path"` 15421 new_path="$unix_path" 15422 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15423 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15424 new_path="$unix_path" 15425 fi 15426 15427 15428 # Now try to locate executable using which 15429 new_path=`$WHICH "$new_path" 2> /dev/null` 15430 15431 if test "x$new_path" = x; then 15432 # Oops. Which didn't find the executable. 15433 # The splitting of arguments from the executable at a space might have been incorrect, 15434 # since paths with space are more likely in Windows. Give it another try with the whole 15435 # argument. 15436 path="$complete" 15437 arguments="EOL" 15438 new_path="$path" 15439 15440 windows_path="$new_path" 15441 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15442 unix_path=`$CYGPATH -u "$windows_path"` 15443 new_path="$unix_path" 15444 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15445 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15446 new_path="$unix_path" 15447 fi 15448 15449 15450 new_path=`$WHICH "$new_path" 2> /dev/null` 15451 15452 if test "x$new_path" = x; then 15453 # It's still not found. Now this is an unrecoverable error. 15454 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15455 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15456 has_space=`$ECHO "$complete" | $GREP " "` 15457 if test "x$has_space" != x; then 15458 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15459 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15460 fi 15461 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15462 fi 15463 fi 15464 15465 # Now new_path has a complete unix path to the binary 15466 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15467 # Keep paths in /bin as-is, but remove trailing .exe if any 15468 new_path="${new_path/%.exe/}" 15469 # Do not save /bin paths to all_fixpath_prefixes! 15470 else 15471 # Not in mixed or Windows style, start by that. 15472 new_path=`cmd //c echo $new_path` 15473 15474 input_path="$new_path" 15475 # Check if we need to convert this using DOS-style short mode. If the path 15476 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15477 # take no chances and rewrite it. 15478 # Note: m4 eats our [], so we need to use [ and ] instead. 15479 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15480 if test "x$has_forbidden_chars" != x; then 15481 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15482 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15483 fi 15484 15485 # Output is in $new_path 15486 15487 windows_path="$new_path" 15488 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15489 unix_path=`$CYGPATH -u "$windows_path"` 15490 new_path="$unix_path" 15491 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15492 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15493 new_path="$unix_path" 15494 fi 15495 15496 # remove trailing .exe if any 15497 new_path="${new_path/%.exe/}" 15498 15499 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15500 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15501 fi 15502 15503 else 15504 # We're on a posix platform. Hooray! :) 15505 # First separate the path from the arguments. This will split at the first 15506 # space. 15507 complete="$FOUND_MAKE" 15508 path="${complete%% *}" 15509 tmp="$complete EOL" 15510 arguments="${tmp#* }" 15511 15512 # Cannot rely on the command "which" here since it doesn't always work. 15513 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15514 if test -z "$is_absolute_path"; then 15515 # Path to executable is not absolute. Find it. 15516 IFS_save="$IFS" 15517 IFS=: 15518 for p in $PATH; do 15519 if test -f "$p/$path" && test -x "$p/$path"; then 15520 new_path="$p/$path" 15521 break 15522 fi 15523 done 15524 IFS="$IFS_save" 15525 else 15526 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 15527 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 15528 new_path="$path" 15529 fi 15530 15531 if test "x$new_path" = x; then 15532 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15533 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15534 has_space=`$ECHO "$complete" | $GREP " "` 15535 if test "x$has_space" != x; then 15536 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15537 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15538 fi 15539 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15540 fi 15541 fi 15542 15543 # Now join together the path and the arguments once again 15544 if test "x$arguments" != xEOL; then 15545 new_complete="$new_path ${arguments% *}" 15546 else 15547 new_complete="$new_path" 15548 fi 15549 15550 if test "x$complete" != "x$new_complete"; then 15551 FOUND_MAKE="$new_complete" 15552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15553 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15554 fi 15555 15556 fi 15557 fi 15558 fi 15559 fi 15560 15561 15562 if test "x$FOUND_MAKE" = x; then 15563 for ac_prog in make 15564 do 15565 # Extract the first word of "$ac_prog", so it can be a program name with args. 15566 set dummy $ac_prog; ac_word=$2 15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15568 $as_echo_n "checking for $ac_word... " >&6; } 15569 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15570 $as_echo_n "(cached) " >&6 15571 else 15572 case $CHECK_MAKE in 15573 [\\/]* | ?:[\\/]*) 15574 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15575 ;; 15576 *) 15577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15578 for as_dir in $PATH 15579 do 15580 IFS=$as_save_IFS 15581 test -z "$as_dir" && as_dir=. 15582 for ac_exec_ext in '' $ac_executable_extensions; do 15583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15584 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15586 break 2 15587 fi 15588 done 15589 done 15590 IFS=$as_save_IFS 15591 15592 ;; 15593 esac 15594 fi 15595 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15596 if test -n "$CHECK_MAKE"; then 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15598 $as_echo "$CHECK_MAKE" >&6; } 15599 else 15600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15601 $as_echo "no" >&6; } 15602 fi 15603 15604 15605 test -n "$CHECK_MAKE" && break 15606 done 15607 15608 15609 MAKE_CANDIDATE=""$CHECK_MAKE"" 15610 DESCRIPTION="make in PATH" 15611 if test "x$MAKE_CANDIDATE" != x; then 15612 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15613 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15614 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15615 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15616 if test "x$IS_GNU_MAKE" = x; then 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15618 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15619 else 15620 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15621 if test "x$IS_MODERN_MAKE" = x; then 15622 { $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 15623 $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;} 15624 else 15625 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15626 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15627 MAKE_EXPECTED_ENV='cygwin' 15628 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15629 MAKE_EXPECTED_ENV='msys' 15630 else 15631 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15632 fi 15633 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15634 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15635 else 15636 # Not relevant for non-Windows 15637 IS_MAKE_CORRECT_ENV=true 15638 fi 15639 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15640 { $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 15641 $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;} 15642 else 15643 FOUND_MAKE=$MAKE_CANDIDATE 15644 15645 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15646 15647 # First separate the path from the arguments. This will split at the first 15648 # space. 15649 complete="$FOUND_MAKE" 15650 path="${complete%% *}" 15651 tmp="$complete EOL" 15652 arguments="${tmp#* }" 15653 15654 # Input might be given as Windows format, start by converting to 15655 # unix format. 15656 new_path=`$CYGPATH -u "$path"` 15657 15658 # Now try to locate executable using which 15659 new_path=`$WHICH "$new_path" 2> /dev/null` 15660 # bat and cmd files are not always considered executable in cygwin causing which 15661 # to not find them 15662 if test "x$new_path" = x \ 15663 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15664 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15665 new_path=`$CYGPATH -u "$path"` 15666 fi 15667 if test "x$new_path" = x; then 15668 # Oops. Which didn't find the executable. 15669 # The splitting of arguments from the executable at a space might have been incorrect, 15670 # since paths with space are more likely in Windows. Give it another try with the whole 15671 # argument. 15672 path="$complete" 15673 arguments="EOL" 15674 new_path=`$CYGPATH -u "$path"` 15675 new_path=`$WHICH "$new_path" 2> /dev/null` 15676 # bat and cmd files are not always considered executable in cygwin causing which 15677 # to not find them 15678 if test "x$new_path" = x \ 15679 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15680 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15681 new_path=`$CYGPATH -u "$path"` 15682 fi 15683 if test "x$new_path" = x; then 15684 # It's still not found. Now this is an unrecoverable error. 15685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15686 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15687 has_space=`$ECHO "$complete" | $GREP " "` 15688 if test "x$has_space" != x; then 15689 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15690 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15691 fi 15692 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15693 fi 15694 fi 15695 15696 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15697 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15698 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15699 # "foo.exe" is OK but "foo" is an error. 15700 # 15701 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15702 # It is also a way to make sure we got the proper file name for the real test later on. 15703 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15704 if test "x$test_shortpath" = x; then 15705 # Short path failed, file does not exist as specified. 15706 # Try adding .exe or .cmd 15707 if test -f "${new_path}.exe"; then 15708 input_to_shortpath="${new_path}.exe" 15709 elif test -f "${new_path}.cmd"; then 15710 input_to_shortpath="${new_path}.cmd" 15711 else 15712 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15713 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15715 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15716 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15717 fi 15718 else 15719 input_to_shortpath="$new_path" 15720 fi 15721 15722 # Call helper function which possibly converts this using DOS-style short mode. 15723 # If so, the updated path is stored in $new_path. 15724 new_path="$input_to_shortpath" 15725 15726 input_path="$input_to_shortpath" 15727 # Check if we need to convert this using DOS-style short mode. If the path 15728 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15729 # take no chances and rewrite it. 15730 # Note: m4 eats our [], so we need to use [ and ] instead. 15731 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15732 if test "x$has_forbidden_chars" != x; then 15733 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15734 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15735 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15736 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15737 # Going to short mode and back again did indeed matter. Since short mode is 15738 # case insensitive, let's make it lowercase to improve readability. 15739 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15740 # Now convert it back to Unix-stile (cygpath) 15741 input_path=`$CYGPATH -u "$shortmode_path"` 15742 new_path="$input_path" 15743 fi 15744 fi 15745 15746 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15747 if test "x$test_cygdrive_prefix" = x; then 15748 # As a simple fix, exclude /usr/bin since it's not a real path. 15749 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15750 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15751 # a path prefixed by /cygdrive for fixpath to work. 15752 new_path="$CYGWIN_ROOT_PATH$input_path" 15753 fi 15754 fi 15755 15756 # remove trailing .exe if any 15757 new_path="${new_path/%.exe/}" 15758 15759 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15760 15761 # First separate the path from the arguments. This will split at the first 15762 # space. 15763 complete="$FOUND_MAKE" 15764 path="${complete%% *}" 15765 tmp="$complete EOL" 15766 arguments="${tmp#* }" 15767 15768 # Input might be given as Windows format, start by converting to 15769 # unix format. 15770 new_path="$path" 15771 15772 windows_path="$new_path" 15773 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15774 unix_path=`$CYGPATH -u "$windows_path"` 15775 new_path="$unix_path" 15776 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15777 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15778 new_path="$unix_path" 15779 fi 15780 15781 15782 # Now try to locate executable using which 15783 new_path=`$WHICH "$new_path" 2> /dev/null` 15784 15785 if test "x$new_path" = x; then 15786 # Oops. Which didn't find the executable. 15787 # The splitting of arguments from the executable at a space might have been incorrect, 15788 # since paths with space are more likely in Windows. Give it another try with the whole 15789 # argument. 15790 path="$complete" 15791 arguments="EOL" 15792 new_path="$path" 15793 15794 windows_path="$new_path" 15795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15796 unix_path=`$CYGPATH -u "$windows_path"` 15797 new_path="$unix_path" 15798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15800 new_path="$unix_path" 15801 fi 15802 15803 15804 new_path=`$WHICH "$new_path" 2> /dev/null` 15805 15806 if test "x$new_path" = x; then 15807 # It's still not found. Now this is an unrecoverable error. 15808 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15809 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15810 has_space=`$ECHO "$complete" | $GREP " "` 15811 if test "x$has_space" != x; then 15812 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15813 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15814 fi 15815 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15816 fi 15817 fi 15818 15819 # Now new_path has a complete unix path to the binary 15820 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15821 # Keep paths in /bin as-is, but remove trailing .exe if any 15822 new_path="${new_path/%.exe/}" 15823 # Do not save /bin paths to all_fixpath_prefixes! 15824 else 15825 # Not in mixed or Windows style, start by that. 15826 new_path=`cmd //c echo $new_path` 15827 15828 input_path="$new_path" 15829 # Check if we need to convert this using DOS-style short mode. If the path 15830 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15831 # take no chances and rewrite it. 15832 # Note: m4 eats our [], so we need to use [ and ] instead. 15833 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15834 if test "x$has_forbidden_chars" != x; then 15835 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15836 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15837 fi 15838 15839 # Output is in $new_path 15840 15841 windows_path="$new_path" 15842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15843 unix_path=`$CYGPATH -u "$windows_path"` 15844 new_path="$unix_path" 15845 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15846 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15847 new_path="$unix_path" 15848 fi 15849 15850 # remove trailing .exe if any 15851 new_path="${new_path/%.exe/}" 15852 15853 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15854 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15855 fi 15856 15857 else 15858 # We're on a posix platform. Hooray! :) 15859 # First separate the path from the arguments. This will split at the first 15860 # space. 15861 complete="$FOUND_MAKE" 15862 path="${complete%% *}" 15863 tmp="$complete EOL" 15864 arguments="${tmp#* }" 15865 15866 # Cannot rely on the command "which" here since it doesn't always work. 15867 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15868 if test -z "$is_absolute_path"; then 15869 # Path to executable is not absolute. Find it. 15870 IFS_save="$IFS" 15871 IFS=: 15872 for p in $PATH; do 15873 if test -f "$p/$path" && test -x "$p/$path"; then 15874 new_path="$p/$path" 15875 break 15876 fi 15877 done 15878 IFS="$IFS_save" 15879 else 15880 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 15881 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 15882 new_path="$path" 15883 fi 15884 15885 if test "x$new_path" = x; then 15886 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15887 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15888 has_space=`$ECHO "$complete" | $GREP " "` 15889 if test "x$has_space" != x; then 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15891 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15892 fi 15893 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15894 fi 15895 fi 15896 15897 # Now join together the path and the arguments once again 15898 if test "x$arguments" != xEOL; then 15899 new_complete="$new_path ${arguments% *}" 15900 else 15901 new_complete="$new_path" 15902 fi 15903 15904 if test "x$complete" != "x$new_complete"; then 15905 FOUND_MAKE="$new_complete" 15906 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15907 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15908 fi 15909 15910 fi 15911 fi 15912 fi 15913 fi 15914 15915 fi 15916 15917 if test "x$FOUND_MAKE" = x; then 15918 if test "x$TOOLS_DIR" != x; then 15919 # We have a tools-dir, check that as well before giving up. 15920 OLD_PATH=$PATH 15921 PATH=$TOOLS_DIR:$PATH 15922 for ac_prog in gmake 15923 do 15924 # Extract the first word of "$ac_prog", so it can be a program name with args. 15925 set dummy $ac_prog; ac_word=$2 15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15927 $as_echo_n "checking for $ac_word... " >&6; } 15928 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 15929 $as_echo_n "(cached) " >&6 15930 else 15931 case $CHECK_TOOLSDIR_GMAKE in 15932 [\\/]* | ?:[\\/]*) 15933 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 15934 ;; 15935 *) 15936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15937 for as_dir in $PATH 15938 do 15939 IFS=$as_save_IFS 15940 test -z "$as_dir" && as_dir=. 15941 for ac_exec_ext in '' $ac_executable_extensions; do 15942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15943 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15945 break 2 15946 fi 15947 done 15948 done 15949 IFS=$as_save_IFS 15950 15951 ;; 15952 esac 15953 fi 15954 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 15955 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 15957 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 15958 else 15959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15960 $as_echo "no" >&6; } 15961 fi 15962 15963 15964 test -n "$CHECK_TOOLSDIR_GMAKE" && break 15965 done 15966 15967 15968 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 15969 DESCRIPTION="gmake in tools-dir" 15970 if test "x$MAKE_CANDIDATE" != x; then 15971 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15972 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15973 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15974 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15975 if test "x$IS_GNU_MAKE" = x; then 15976 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15977 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15978 else 15979 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15980 if test "x$IS_MODERN_MAKE" = x; then 15981 { $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 15982 $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;} 15983 else 15984 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15986 MAKE_EXPECTED_ENV='cygwin' 15987 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15988 MAKE_EXPECTED_ENV='msys' 15989 else 15990 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15991 fi 15992 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15993 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15994 else 15995 # Not relevant for non-Windows 15996 IS_MAKE_CORRECT_ENV=true 15997 fi 15998 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15999 { $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 16000 $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;} 16001 else 16002 FOUND_MAKE=$MAKE_CANDIDATE 16003 16004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16005 16006 # First separate the path from the arguments. This will split at the first 16007 # space. 16008 complete="$FOUND_MAKE" 16009 path="${complete%% *}" 16010 tmp="$complete EOL" 16011 arguments="${tmp#* }" 16012 16013 # Input might be given as Windows format, start by converting to 16014 # unix format. 16015 new_path=`$CYGPATH -u "$path"` 16016 16017 # Now try to locate executable using which 16018 new_path=`$WHICH "$new_path" 2> /dev/null` 16019 # bat and cmd files are not always considered executable in cygwin causing which 16020 # to not find them 16021 if test "x$new_path" = x \ 16022 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16023 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16024 new_path=`$CYGPATH -u "$path"` 16025 fi 16026 if test "x$new_path" = x; then 16027 # Oops. Which didn't find the executable. 16028 # The splitting of arguments from the executable at a space might have been incorrect, 16029 # since paths with space are more likely in Windows. Give it another try with the whole 16030 # argument. 16031 path="$complete" 16032 arguments="EOL" 16033 new_path=`$CYGPATH -u "$path"` 16034 new_path=`$WHICH "$new_path" 2> /dev/null` 16035 # bat and cmd files are not always considered executable in cygwin causing which 16036 # to not find them 16037 if test "x$new_path" = x \ 16038 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16039 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16040 new_path=`$CYGPATH -u "$path"` 16041 fi 16042 if test "x$new_path" = x; then 16043 # It's still not found. Now this is an unrecoverable error. 16044 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16045 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16046 has_space=`$ECHO "$complete" | $GREP " "` 16047 if test "x$has_space" != x; then 16048 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16049 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16050 fi 16051 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16052 fi 16053 fi 16054 16055 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16056 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16057 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16058 # "foo.exe" is OK but "foo" is an error. 16059 # 16060 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16061 # It is also a way to make sure we got the proper file name for the real test later on. 16062 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16063 if test "x$test_shortpath" = x; then 16064 # Short path failed, file does not exist as specified. 16065 # Try adding .exe or .cmd 16066 if test -f "${new_path}.exe"; then 16067 input_to_shortpath="${new_path}.exe" 16068 elif test -f "${new_path}.cmd"; then 16069 input_to_shortpath="${new_path}.cmd" 16070 else 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16072 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16073 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16074 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16075 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16076 fi 16077 else 16078 input_to_shortpath="$new_path" 16079 fi 16080 16081 # Call helper function which possibly converts this using DOS-style short mode. 16082 # If so, the updated path is stored in $new_path. 16083 new_path="$input_to_shortpath" 16084 16085 input_path="$input_to_shortpath" 16086 # Check if we need to convert this using DOS-style short mode. If the path 16087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16088 # take no chances and rewrite it. 16089 # Note: m4 eats our [], so we need to use [ and ] instead. 16090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16091 if test "x$has_forbidden_chars" != x; then 16092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16093 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16094 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16095 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16096 # Going to short mode and back again did indeed matter. Since short mode is 16097 # case insensitive, let's make it lowercase to improve readability. 16098 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16099 # Now convert it back to Unix-stile (cygpath) 16100 input_path=`$CYGPATH -u "$shortmode_path"` 16101 new_path="$input_path" 16102 fi 16103 fi 16104 16105 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16106 if test "x$test_cygdrive_prefix" = x; then 16107 # As a simple fix, exclude /usr/bin since it's not a real path. 16108 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16109 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16110 # a path prefixed by /cygdrive for fixpath to work. 16111 new_path="$CYGWIN_ROOT_PATH$input_path" 16112 fi 16113 fi 16114 16115 # remove trailing .exe if any 16116 new_path="${new_path/%.exe/}" 16117 16118 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16119 16120 # First separate the path from the arguments. This will split at the first 16121 # space. 16122 complete="$FOUND_MAKE" 16123 path="${complete%% *}" 16124 tmp="$complete EOL" 16125 arguments="${tmp#* }" 16126 16127 # Input might be given as Windows format, start by converting to 16128 # unix format. 16129 new_path="$path" 16130 16131 windows_path="$new_path" 16132 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16133 unix_path=`$CYGPATH -u "$windows_path"` 16134 new_path="$unix_path" 16135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16136 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16137 new_path="$unix_path" 16138 fi 16139 16140 16141 # Now try to locate executable using which 16142 new_path=`$WHICH "$new_path" 2> /dev/null` 16143 16144 if test "x$new_path" = x; then 16145 # Oops. Which didn't find the executable. 16146 # The splitting of arguments from the executable at a space might have been incorrect, 16147 # since paths with space are more likely in Windows. Give it another try with the whole 16148 # argument. 16149 path="$complete" 16150 arguments="EOL" 16151 new_path="$path" 16152 16153 windows_path="$new_path" 16154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16155 unix_path=`$CYGPATH -u "$windows_path"` 16156 new_path="$unix_path" 16157 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16158 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16159 new_path="$unix_path" 16160 fi 16161 16162 16163 new_path=`$WHICH "$new_path" 2> /dev/null` 16164 16165 if test "x$new_path" = x; then 16166 # It's still not found. Now this is an unrecoverable error. 16167 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16168 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16169 has_space=`$ECHO "$complete" | $GREP " "` 16170 if test "x$has_space" != x; then 16171 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16172 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16173 fi 16174 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16175 fi 16176 fi 16177 16178 # Now new_path has a complete unix path to the binary 16179 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16180 # Keep paths in /bin as-is, but remove trailing .exe if any 16181 new_path="${new_path/%.exe/}" 16182 # Do not save /bin paths to all_fixpath_prefixes! 16183 else 16184 # Not in mixed or Windows style, start by that. 16185 new_path=`cmd //c echo $new_path` 16186 16187 input_path="$new_path" 16188 # Check if we need to convert this using DOS-style short mode. If the path 16189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16190 # take no chances and rewrite it. 16191 # Note: m4 eats our [], so we need to use [ and ] instead. 16192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16193 if test "x$has_forbidden_chars" != x; then 16194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16195 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16196 fi 16197 16198 # Output is in $new_path 16199 16200 windows_path="$new_path" 16201 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16202 unix_path=`$CYGPATH -u "$windows_path"` 16203 new_path="$unix_path" 16204 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16205 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16206 new_path="$unix_path" 16207 fi 16208 16209 # remove trailing .exe if any 16210 new_path="${new_path/%.exe/}" 16211 16212 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16213 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16214 fi 16215 16216 else 16217 # We're on a posix platform. Hooray! :) 16218 # First separate the path from the arguments. This will split at the first 16219 # space. 16220 complete="$FOUND_MAKE" 16221 path="${complete%% *}" 16222 tmp="$complete EOL" 16223 arguments="${tmp#* }" 16224 16225 # Cannot rely on the command "which" here since it doesn't always work. 16226 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16227 if test -z "$is_absolute_path"; then 16228 # Path to executable is not absolute. Find it. 16229 IFS_save="$IFS" 16230 IFS=: 16231 for p in $PATH; do 16232 if test -f "$p/$path" && test -x "$p/$path"; then 16233 new_path="$p/$path" 16234 break 16235 fi 16236 done 16237 IFS="$IFS_save" 16238 else 16239 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 16240 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 16241 new_path="$path" 16242 fi 16243 16244 if test "x$new_path" = x; then 16245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16246 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16247 has_space=`$ECHO "$complete" | $GREP " "` 16248 if test "x$has_space" != x; then 16249 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16250 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16251 fi 16252 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16253 fi 16254 fi 16255 16256 # Now join together the path and the arguments once again 16257 if test "x$arguments" != xEOL; then 16258 new_complete="$new_path ${arguments% *}" 16259 else 16260 new_complete="$new_path" 16261 fi 16262 16263 if test "x$complete" != "x$new_complete"; then 16264 FOUND_MAKE="$new_complete" 16265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16266 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16267 fi 16268 16269 fi 16270 fi 16271 fi 16272 fi 16273 16274 if test "x$FOUND_MAKE" = x; then 16275 for ac_prog in make 16276 do 16277 # Extract the first word of "$ac_prog", so it can be a program name with args. 16278 set dummy $ac_prog; ac_word=$2 16279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16280 $as_echo_n "checking for $ac_word... " >&6; } 16281 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16282 $as_echo_n "(cached) " >&6 16283 else 16284 case $CHECK_TOOLSDIR_MAKE in 16285 [\\/]* | ?:[\\/]*) 16286 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16287 ;; 16288 *) 16289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16290 for as_dir in $PATH 16291 do 16292 IFS=$as_save_IFS 16293 test -z "$as_dir" && as_dir=. 16294 for ac_exec_ext in '' $ac_executable_extensions; do 16295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16296 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16298 break 2 16299 fi 16300 done 16301 done 16302 IFS=$as_save_IFS 16303 16304 ;; 16305 esac 16306 fi 16307 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16308 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16310 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16311 else 16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16313 $as_echo "no" >&6; } 16314 fi 16315 16316 16317 test -n "$CHECK_TOOLSDIR_MAKE" && break 16318 done 16319 16320 16321 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16322 DESCRIPTION="make in tools-dir" 16323 if test "x$MAKE_CANDIDATE" != x; then 16324 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16325 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16326 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16327 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16328 if test "x$IS_GNU_MAKE" = x; then 16329 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16330 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16331 else 16332 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16333 if test "x$IS_MODERN_MAKE" = x; then 16334 { $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 16335 $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;} 16336 else 16337 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16339 MAKE_EXPECTED_ENV='cygwin' 16340 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16341 MAKE_EXPECTED_ENV='msys' 16342 else 16343 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16344 fi 16345 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16346 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16347 else 16348 # Not relevant for non-Windows 16349 IS_MAKE_CORRECT_ENV=true 16350 fi 16351 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16352 { $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 16353 $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;} 16354 else 16355 FOUND_MAKE=$MAKE_CANDIDATE 16356 16357 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16358 16359 # First separate the path from the arguments. This will split at the first 16360 # space. 16361 complete="$FOUND_MAKE" 16362 path="${complete%% *}" 16363 tmp="$complete EOL" 16364 arguments="${tmp#* }" 16365 16366 # Input might be given as Windows format, start by converting to 16367 # unix format. 16368 new_path=`$CYGPATH -u "$path"` 16369 16370 # Now try to locate executable using which 16371 new_path=`$WHICH "$new_path" 2> /dev/null` 16372 # bat and cmd files are not always considered executable in cygwin causing which 16373 # to not find them 16374 if test "x$new_path" = x \ 16375 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16376 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16377 new_path=`$CYGPATH -u "$path"` 16378 fi 16379 if test "x$new_path" = x; then 16380 # Oops. Which didn't find the executable. 16381 # The splitting of arguments from the executable at a space might have been incorrect, 16382 # since paths with space are more likely in Windows. Give it another try with the whole 16383 # argument. 16384 path="$complete" 16385 arguments="EOL" 16386 new_path=`$CYGPATH -u "$path"` 16387 new_path=`$WHICH "$new_path" 2> /dev/null` 16388 # bat and cmd files are not always considered executable in cygwin causing which 16389 # to not find them 16390 if test "x$new_path" = x \ 16391 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16392 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16393 new_path=`$CYGPATH -u "$path"` 16394 fi 16395 if test "x$new_path" = x; then 16396 # It's still not found. Now this is an unrecoverable error. 16397 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16398 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16399 has_space=`$ECHO "$complete" | $GREP " "` 16400 if test "x$has_space" != x; then 16401 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16402 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16403 fi 16404 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16405 fi 16406 fi 16407 16408 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16409 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16410 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16411 # "foo.exe" is OK but "foo" is an error. 16412 # 16413 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16414 # It is also a way to make sure we got the proper file name for the real test later on. 16415 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16416 if test "x$test_shortpath" = x; then 16417 # Short path failed, file does not exist as specified. 16418 # Try adding .exe or .cmd 16419 if test -f "${new_path}.exe"; then 16420 input_to_shortpath="${new_path}.exe" 16421 elif test -f "${new_path}.cmd"; then 16422 input_to_shortpath="${new_path}.cmd" 16423 else 16424 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16425 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16426 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16427 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16428 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16429 fi 16430 else 16431 input_to_shortpath="$new_path" 16432 fi 16433 16434 # Call helper function which possibly converts this using DOS-style short mode. 16435 # If so, the updated path is stored in $new_path. 16436 new_path="$input_to_shortpath" 16437 16438 input_path="$input_to_shortpath" 16439 # Check if we need to convert this using DOS-style short mode. If the path 16440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16441 # take no chances and rewrite it. 16442 # Note: m4 eats our [], so we need to use [ and ] instead. 16443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16444 if test "x$has_forbidden_chars" != x; then 16445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16446 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16447 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16448 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16449 # Going to short mode and back again did indeed matter. Since short mode is 16450 # case insensitive, let's make it lowercase to improve readability. 16451 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16452 # Now convert it back to Unix-stile (cygpath) 16453 input_path=`$CYGPATH -u "$shortmode_path"` 16454 new_path="$input_path" 16455 fi 16456 fi 16457 16458 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16459 if test "x$test_cygdrive_prefix" = x; then 16460 # As a simple fix, exclude /usr/bin since it's not a real path. 16461 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16462 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16463 # a path prefixed by /cygdrive for fixpath to work. 16464 new_path="$CYGWIN_ROOT_PATH$input_path" 16465 fi 16466 fi 16467 16468 # remove trailing .exe if any 16469 new_path="${new_path/%.exe/}" 16470 16471 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16472 16473 # First separate the path from the arguments. This will split at the first 16474 # space. 16475 complete="$FOUND_MAKE" 16476 path="${complete%% *}" 16477 tmp="$complete EOL" 16478 arguments="${tmp#* }" 16479 16480 # Input might be given as Windows format, start by converting to 16481 # unix format. 16482 new_path="$path" 16483 16484 windows_path="$new_path" 16485 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16486 unix_path=`$CYGPATH -u "$windows_path"` 16487 new_path="$unix_path" 16488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16489 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16490 new_path="$unix_path" 16491 fi 16492 16493 16494 # Now try to locate executable using which 16495 new_path=`$WHICH "$new_path" 2> /dev/null` 16496 16497 if test "x$new_path" = x; then 16498 # Oops. Which didn't find the executable. 16499 # The splitting of arguments from the executable at a space might have been incorrect, 16500 # since paths with space are more likely in Windows. Give it another try with the whole 16501 # argument. 16502 path="$complete" 16503 arguments="EOL" 16504 new_path="$path" 16505 16506 windows_path="$new_path" 16507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16508 unix_path=`$CYGPATH -u "$windows_path"` 16509 new_path="$unix_path" 16510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16512 new_path="$unix_path" 16513 fi 16514 16515 16516 new_path=`$WHICH "$new_path" 2> /dev/null` 16517 16518 if test "x$new_path" = x; then 16519 # It's still not found. Now this is an unrecoverable error. 16520 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16521 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16522 has_space=`$ECHO "$complete" | $GREP " "` 16523 if test "x$has_space" != x; then 16524 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16525 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16526 fi 16527 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16528 fi 16529 fi 16530 16531 # Now new_path has a complete unix path to the binary 16532 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16533 # Keep paths in /bin as-is, but remove trailing .exe if any 16534 new_path="${new_path/%.exe/}" 16535 # Do not save /bin paths to all_fixpath_prefixes! 16536 else 16537 # Not in mixed or Windows style, start by that. 16538 new_path=`cmd //c echo $new_path` 16539 16540 input_path="$new_path" 16541 # Check if we need to convert this using DOS-style short mode. If the path 16542 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16543 # take no chances and rewrite it. 16544 # Note: m4 eats our [], so we need to use [ and ] instead. 16545 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16546 if test "x$has_forbidden_chars" != x; then 16547 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16548 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16549 fi 16550 16551 # Output is in $new_path 16552 16553 windows_path="$new_path" 16554 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16555 unix_path=`$CYGPATH -u "$windows_path"` 16556 new_path="$unix_path" 16557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16558 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16559 new_path="$unix_path" 16560 fi 16561 16562 # remove trailing .exe if any 16563 new_path="${new_path/%.exe/}" 16564 16565 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16566 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16567 fi 16568 16569 else 16570 # We're on a posix platform. Hooray! :) 16571 # First separate the path from the arguments. This will split at the first 16572 # space. 16573 complete="$FOUND_MAKE" 16574 path="${complete%% *}" 16575 tmp="$complete EOL" 16576 arguments="${tmp#* }" 16577 16578 # Cannot rely on the command "which" here since it doesn't always work. 16579 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16580 if test -z "$is_absolute_path"; then 16581 # Path to executable is not absolute. Find it. 16582 IFS_save="$IFS" 16583 IFS=: 16584 for p in $PATH; do 16585 if test -f "$p/$path" && test -x "$p/$path"; then 16586 new_path="$p/$path" 16587 break 16588 fi 16589 done 16590 IFS="$IFS_save" 16591 else 16592 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&5 16593 $as_echo "$as_me: Resolving FOUND_MAKE (as $path) failed, using $path directly." >&6;} 16594 new_path="$path" 16595 fi 16596 16597 if test "x$new_path" = x; then 16598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16599 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16600 has_space=`$ECHO "$complete" | $GREP " "` 16601 if test "x$has_space" != x; then 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16603 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16604 fi 16605 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16606 fi 16607 fi 16608 16609 # Now join together the path and the arguments once again 16610 if test "x$arguments" != xEOL; then 16611 new_complete="$new_path ${arguments% *}" 16612 else 16613 new_complete="$new_path" 16614 fi 16615 16616 if test "x$complete" != "x$new_complete"; then 16617 FOUND_MAKE="$new_complete" 16618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16619 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16620 fi 16621 16622 fi 16623 fi 16624 fi 16625 fi 16626 16627 fi 16628 PATH=$OLD_PATH 16629 fi 16630 fi 16631 16632 if test "x$FOUND_MAKE" = x; then 16633 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 16634 fi 16635 fi 16636 16637 MAKE=$FOUND_MAKE 16638 16639 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16640 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16641 16642 16643 16644 # Test if find supports -delete 16645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16646 $as_echo_n "checking if find supports -delete... " >&6; } 16647 FIND_DELETE="-delete" 16648 16649 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16650 16651 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16652 16653 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16654 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16655 # No, it does not. 16656 rm $DELETEDIR/TestIfFindSupportsDelete 16657 FIND_DELETE="-exec rm \{\} \+" 16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16659 $as_echo "no" >&6; } 16660 else 16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16662 $as_echo "yes" >&6; } 16663 fi 16664 rmdir $DELETEDIR 16665 16666 16667 16668 # These tools might not be installed by default, 16669 # need hint on how to install them. 16670 16671 16672 16673 # Publish this variable in the help. 16674 16675 16676 if test "x$UNZIP" = x; then 16677 # The variable is not set by user, try to locate tool using the code snippet 16678 for ac_prog in unzip 16679 do 16680 # Extract the first word of "$ac_prog", so it can be a program name with args. 16681 set dummy $ac_prog; ac_word=$2 16682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16683 $as_echo_n "checking for $ac_word... " >&6; } 16684 if ${ac_cv_path_UNZIP+:} false; then : 16685 $as_echo_n "(cached) " >&6 16686 else 16687 case $UNZIP in 16688 [\\/]* | ?:[\\/]*) 16689 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16690 ;; 16691 *) 16692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16693 for as_dir in $PATH 16694 do 16695 IFS=$as_save_IFS 16696 test -z "$as_dir" && as_dir=. 16697 for ac_exec_ext in '' $ac_executable_extensions; do 16698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16699 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16701 break 2 16702 fi 16703 done 16704 done 16705 IFS=$as_save_IFS 16706 16707 ;; 16708 esac 16709 fi 16710 UNZIP=$ac_cv_path_UNZIP 16711 if test -n "$UNZIP"; then 16712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16713 $as_echo "$UNZIP" >&6; } 16714 else 16715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16716 $as_echo "no" >&6; } 16717 fi 16718 16719 16720 test -n "$UNZIP" && break 16721 done 16722 16723 else 16724 # The variable is set, but is it from the command line or the environment? 16725 16726 # Try to remove the string !UNZIP! from our list. 16727 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 16728 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 16729 # If it failed, the variable was not from the command line. Ignore it, 16730 # but warn the user (except for BASH, which is always set by the calling BASH). 16731 if test "xUNZIP" != xBASH; then 16732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 16733 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 16734 fi 16735 # Try to locate tool using the code snippet 16736 for ac_prog in unzip 16737 do 16738 # Extract the first word of "$ac_prog", so it can be a program name with args. 16739 set dummy $ac_prog; ac_word=$2 16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16741 $as_echo_n "checking for $ac_word... " >&6; } 16742 if ${ac_cv_path_UNZIP+:} false; then : 16743 $as_echo_n "(cached) " >&6 16744 else 16745 case $UNZIP in 16746 [\\/]* | ?:[\\/]*) 16747 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16748 ;; 16749 *) 16750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16751 for as_dir in $PATH 16752 do 16753 IFS=$as_save_IFS 16754 test -z "$as_dir" && as_dir=. 16755 for ac_exec_ext in '' $ac_executable_extensions; do 16756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16757 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16759 break 2 16760 fi 16761 done 16762 done 16763 IFS=$as_save_IFS 16764 16765 ;; 16766 esac 16767 fi 16768 UNZIP=$ac_cv_path_UNZIP 16769 if test -n "$UNZIP"; then 16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16771 $as_echo "$UNZIP" >&6; } 16772 else 16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16774 $as_echo "no" >&6; } 16775 fi 16776 16777 16778 test -n "$UNZIP" && break 16779 done 16780 16781 else 16782 # If it succeeded, then it was overridden by the user. We will use it 16783 # for the tool. 16784 16785 # First remove it from the list of overridden variables, so we can test 16786 # for unknown variables in the end. 16787 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 16788 16789 # Check if the provided tool contains a complete path. 16790 tool_specified="$UNZIP" 16791 tool_basename="${tool_specified##*/}" 16792 if test "x$tool_basename" = "x$tool_specified"; then 16793 # A command without a complete path is provided, search $PATH. 16794 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 16795 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 16796 # Extract the first word of "$tool_basename", so it can be a program name with args. 16797 set dummy $tool_basename; ac_word=$2 16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16799 $as_echo_n "checking for $ac_word... " >&6; } 16800 if ${ac_cv_path_UNZIP+:} false; then : 16801 $as_echo_n "(cached) " >&6 16802 else 16803 case $UNZIP in 16804 [\\/]* | ?:[\\/]*) 16805 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16806 ;; 16807 *) 16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16809 for as_dir in $PATH 16810 do 16811 IFS=$as_save_IFS 16812 test -z "$as_dir" && as_dir=. 16813 for ac_exec_ext in '' $ac_executable_extensions; do 16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16815 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16816 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16817 break 2 16818 fi 16819 done 16820 done 16821 IFS=$as_save_IFS 16822 16823 ;; 16824 esac 16825 fi 16826 UNZIP=$ac_cv_path_UNZIP 16827 if test -n "$UNZIP"; then 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16829 $as_echo "$UNZIP" >&6; } 16830 else 16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16832 $as_echo "no" >&6; } 16833 fi 16834 16835 16836 if test "x$UNZIP" = x; then 16837 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 16838 fi 16839 else 16840 # Otherwise we believe it is a complete path. Use it as it is. 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 16842 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 16844 $as_echo_n "checking for UNZIP... " >&6; } 16845 if test ! -x "$tool_specified"; then 16846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 16847 $as_echo "not found" >&6; } 16848 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 16849 fi 16850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 16851 $as_echo "$tool_specified" >&6; } 16852 fi 16853 fi 16854 fi 16855 16856 16857 16858 if test "x$UNZIP" = x; then 16859 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 16860 fi 16861 16862 16863 16864 16865 16866 # Publish this variable in the help. 16867 16868 16869 if test "x$ZIP" = x; then 16870 # The variable is not set by user, try to locate tool using the code snippet 16871 for ac_prog in zip 16872 do 16873 # Extract the first word of "$ac_prog", so it can be a program name with args. 16874 set dummy $ac_prog; ac_word=$2 16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16876 $as_echo_n "checking for $ac_word... " >&6; } 16877 if ${ac_cv_path_ZIP+:} false; then : 16878 $as_echo_n "(cached) " >&6 16879 else 16880 case $ZIP in 16881 [\\/]* | ?:[\\/]*) 16882 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 16883 ;; 16884 *) 16885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16886 for as_dir in $PATH 16887 do 16888 IFS=$as_save_IFS 16889 test -z "$as_dir" && as_dir=. 16890 for ac_exec_ext in '' $ac_executable_extensions; do 16891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16892 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 16893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16894 break 2 16895 fi 16896 done 16897 done 16898 IFS=$as_save_IFS 16899 16900 ;; 16901 esac 16902 fi 16903 ZIP=$ac_cv_path_ZIP 16904 if test -n "$ZIP"; then 16905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 16906 $as_echo "$ZIP" >&6; } 16907 else 16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16909 $as_echo "no" >&6; } 16910 fi 16911 16912 16913 test -n "$ZIP" && break 16914 done 16915 16916 else 16917 # The variable is set, but is it from the command line or the environment? 16918 16919 # Try to remove the string !ZIP! from our list. 16920 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 16921 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 16922 # If it failed, the variable was not from the command line. Ignore it, 16923 # but warn the user (except for BASH, which is always set by the calling BASH). 16924 if test "xZIP" != xBASH; then 16925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 16926 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 16927 fi 16928 # Try to locate tool using the code snippet 16929 for ac_prog in zip 16930 do 16931 # Extract the first word of "$ac_prog", so it can be a program name with args. 16932 set dummy $ac_prog; ac_word=$2 16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16934 $as_echo_n "checking for $ac_word... " >&6; } 16935 if ${ac_cv_path_ZIP+:} false; then : 16936 $as_echo_n "(cached) " >&6 16937 else 16938 case $ZIP in 16939 [\\/]* | ?:[\\/]*) 16940 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 16941 ;; 16942 *) 16943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16944 for as_dir in $PATH 16945 do 16946 IFS=$as_save_IFS 16947 test -z "$as_dir" && as_dir=. 16948 for ac_exec_ext in '' $ac_executable_extensions; do 16949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16950 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 16951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16952 break 2 16953 fi 16954 done 16955 done 16956 IFS=$as_save_IFS 16957 16958 ;; 16959 esac 16960 fi 16961 ZIP=$ac_cv_path_ZIP 16962 if test -n "$ZIP"; then 16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 16964 $as_echo "$ZIP" >&6; } 16965 else 16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16967 $as_echo "no" >&6; } 16968 fi 16969 16970 16971 test -n "$ZIP" && break 16972 done 16973 16974 else 16975 # If it succeeded, then it was overridden by the user. We will use it 16976 # for the tool. 16977 16978 # First remove it from the list of overridden variables, so we can test 16979 # for unknown variables in the end. 16980 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 16981 16982 # Check if the provided tool contains a complete path. 16983 tool_specified="$ZIP" 16984 tool_basename="${tool_specified##*/}" 16985 if test "x$tool_basename" = "x$tool_specified"; then 16986 # A command without a complete path is provided, search $PATH. 16987 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 16988 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 16989 # Extract the first word of "$tool_basename", so it can be a program name with args. 16990 set dummy $tool_basename; ac_word=$2 16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16992 $as_echo_n "checking for $ac_word... " >&6; } 16993 if ${ac_cv_path_ZIP+:} false; then : 16994 $as_echo_n "(cached) " >&6 16995 else 16996 case $ZIP in 16997 [\\/]* | ?:[\\/]*) 16998 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 16999 ;; 17000 *) 17001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17002 for as_dir in $PATH 17003 do 17004 IFS=$as_save_IFS 17005 test -z "$as_dir" && as_dir=. 17006 for ac_exec_ext in '' $ac_executable_extensions; do 17007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17008 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17010 break 2 17011 fi 17012 done 17013 done 17014 IFS=$as_save_IFS 17015 17016 ;; 17017 esac 17018 fi 17019 ZIP=$ac_cv_path_ZIP 17020 if test -n "$ZIP"; then 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17022 $as_echo "$ZIP" >&6; } 17023 else 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17025 $as_echo "no" >&6; } 17026 fi 17027 17028 17029 if test "x$ZIP" = x; then 17030 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17031 fi 17032 else 17033 # Otherwise we believe it is a complete path. Use it as it is. 17034 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17035 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17037 $as_echo_n "checking for ZIP... " >&6; } 17038 if test ! -x "$tool_specified"; then 17039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17040 $as_echo "not found" >&6; } 17041 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17042 fi 17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17044 $as_echo "$tool_specified" >&6; } 17045 fi 17046 fi 17047 fi 17048 17049 17050 17051 if test "x$ZIP" = x; then 17052 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17053 fi 17054 17055 17056 17057 # Non-required basic tools 17058 17059 17060 17061 # Publish this variable in the help. 17062 17063 17064 if test "x$LDD" = x; then 17065 # The variable is not set by user, try to locate tool using the code snippet 17066 for ac_prog in ldd 17067 do 17068 # Extract the first word of "$ac_prog", so it can be a program name with args. 17069 set dummy $ac_prog; ac_word=$2 17070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17071 $as_echo_n "checking for $ac_word... " >&6; } 17072 if ${ac_cv_path_LDD+:} false; then : 17073 $as_echo_n "(cached) " >&6 17074 else 17075 case $LDD in 17076 [\\/]* | ?:[\\/]*) 17077 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17078 ;; 17079 *) 17080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17081 for as_dir in $PATH 17082 do 17083 IFS=$as_save_IFS 17084 test -z "$as_dir" && as_dir=. 17085 for ac_exec_ext in '' $ac_executable_extensions; do 17086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17087 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17089 break 2 17090 fi 17091 done 17092 done 17093 IFS=$as_save_IFS 17094 17095 ;; 17096 esac 17097 fi 17098 LDD=$ac_cv_path_LDD 17099 if test -n "$LDD"; then 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17101 $as_echo "$LDD" >&6; } 17102 else 17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17104 $as_echo "no" >&6; } 17105 fi 17106 17107 17108 test -n "$LDD" && break 17109 done 17110 17111 else 17112 # The variable is set, but is it from the command line or the environment? 17113 17114 # Try to remove the string !LDD! from our list. 17115 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17116 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17117 # If it failed, the variable was not from the command line. Ignore it, 17118 # but warn the user (except for BASH, which is always set by the calling BASH). 17119 if test "xLDD" != xBASH; then 17120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17121 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17122 fi 17123 # Try to locate tool using the code snippet 17124 for ac_prog in ldd 17125 do 17126 # Extract the first word of "$ac_prog", so it can be a program name with args. 17127 set dummy $ac_prog; ac_word=$2 17128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17129 $as_echo_n "checking for $ac_word... " >&6; } 17130 if ${ac_cv_path_LDD+:} false; then : 17131 $as_echo_n "(cached) " >&6 17132 else 17133 case $LDD in 17134 [\\/]* | ?:[\\/]*) 17135 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17136 ;; 17137 *) 17138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17139 for as_dir in $PATH 17140 do 17141 IFS=$as_save_IFS 17142 test -z "$as_dir" && as_dir=. 17143 for ac_exec_ext in '' $ac_executable_extensions; do 17144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17145 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17147 break 2 17148 fi 17149 done 17150 done 17151 IFS=$as_save_IFS 17152 17153 ;; 17154 esac 17155 fi 17156 LDD=$ac_cv_path_LDD 17157 if test -n "$LDD"; then 17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17159 $as_echo "$LDD" >&6; } 17160 else 17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17162 $as_echo "no" >&6; } 17163 fi 17164 17165 17166 test -n "$LDD" && break 17167 done 17168 17169 else 17170 # If it succeeded, then it was overridden by the user. We will use it 17171 # for the tool. 17172 17173 # First remove it from the list of overridden variables, so we can test 17174 # for unknown variables in the end. 17175 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17176 17177 # Check if the provided tool contains a complete path. 17178 tool_specified="$LDD" 17179 tool_basename="${tool_specified##*/}" 17180 if test "x$tool_basename" = "x$tool_specified"; then 17181 # A command without a complete path is provided, search $PATH. 17182 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17183 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17184 # Extract the first word of "$tool_basename", so it can be a program name with args. 17185 set dummy $tool_basename; ac_word=$2 17186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17187 $as_echo_n "checking for $ac_word... " >&6; } 17188 if ${ac_cv_path_LDD+:} false; then : 17189 $as_echo_n "(cached) " >&6 17190 else 17191 case $LDD in 17192 [\\/]* | ?:[\\/]*) 17193 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17194 ;; 17195 *) 17196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17197 for as_dir in $PATH 17198 do 17199 IFS=$as_save_IFS 17200 test -z "$as_dir" && as_dir=. 17201 for ac_exec_ext in '' $ac_executable_extensions; do 17202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17203 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17205 break 2 17206 fi 17207 done 17208 done 17209 IFS=$as_save_IFS 17210 17211 ;; 17212 esac 17213 fi 17214 LDD=$ac_cv_path_LDD 17215 if test -n "$LDD"; then 17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17217 $as_echo "$LDD" >&6; } 17218 else 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17220 $as_echo "no" >&6; } 17221 fi 17222 17223 17224 if test "x$LDD" = x; then 17225 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17226 fi 17227 else 17228 # Otherwise we believe it is a complete path. Use it as it is. 17229 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17230 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17232 $as_echo_n "checking for LDD... " >&6; } 17233 if test ! -x "$tool_specified"; then 17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17235 $as_echo "not found" >&6; } 17236 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17237 fi 17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17239 $as_echo "$tool_specified" >&6; } 17240 fi 17241 fi 17242 fi 17243 17244 17245 if test "x$LDD" = "x"; then 17246 # List shared lib dependencies is used for 17247 # debug output and checking for forbidden dependencies. 17248 # We can build without it. 17249 LDD="true" 17250 fi 17251 17252 17253 # Publish this variable in the help. 17254 17255 17256 if test "x$OTOOL" = x; then 17257 # The variable is not set by user, try to locate tool using the code snippet 17258 for ac_prog in otool 17259 do 17260 # Extract the first word of "$ac_prog", so it can be a program name with args. 17261 set dummy $ac_prog; ac_word=$2 17262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17263 $as_echo_n "checking for $ac_word... " >&6; } 17264 if ${ac_cv_path_OTOOL+:} false; then : 17265 $as_echo_n "(cached) " >&6 17266 else 17267 case $OTOOL in 17268 [\\/]* | ?:[\\/]*) 17269 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17270 ;; 17271 *) 17272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17273 for as_dir in $PATH 17274 do 17275 IFS=$as_save_IFS 17276 test -z "$as_dir" && as_dir=. 17277 for ac_exec_ext in '' $ac_executable_extensions; do 17278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17279 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17281 break 2 17282 fi 17283 done 17284 done 17285 IFS=$as_save_IFS 17286 17287 ;; 17288 esac 17289 fi 17290 OTOOL=$ac_cv_path_OTOOL 17291 if test -n "$OTOOL"; then 17292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17293 $as_echo "$OTOOL" >&6; } 17294 else 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17296 $as_echo "no" >&6; } 17297 fi 17298 17299 17300 test -n "$OTOOL" && break 17301 done 17302 17303 else 17304 # The variable is set, but is it from the command line or the environment? 17305 17306 # Try to remove the string !OTOOL! from our list. 17307 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17308 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17309 # If it failed, the variable was not from the command line. Ignore it, 17310 # but warn the user (except for BASH, which is always set by the calling BASH). 17311 if test "xOTOOL" != xBASH; then 17312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17313 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17314 fi 17315 # Try to locate tool using the code snippet 17316 for ac_prog in otool 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_OTOOL+:} false; then : 17323 $as_echo_n "(cached) " >&6 17324 else 17325 case $OTOOL in 17326 [\\/]* | ?:[\\/]*) 17327 ac_cv_path_OTOOL="$OTOOL" # 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_OTOOL="$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 OTOOL=$ac_cv_path_OTOOL 17349 if test -n "$OTOOL"; then 17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17351 $as_echo "$OTOOL" >&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 "$OTOOL" && break 17359 done 17360 17361 else 17362 # If it succeeded, then it was overridden by the user. We will use it 17363 # for the tool. 17364 17365 # First remove it from the list of overridden variables, so we can test 17366 # for unknown variables in the end. 17367 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17368 17369 # Check if the provided tool contains a complete path. 17370 tool_specified="$OTOOL" 17371 tool_basename="${tool_specified##*/}" 17372 if test "x$tool_basename" = "x$tool_specified"; then 17373 # A command without a complete path is provided, search $PATH. 17374 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 17375 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 17376 # Extract the first word of "$tool_basename", so it can be a program name with args. 17377 set dummy $tool_basename; 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_OTOOL+:} false; then : 17381 $as_echo_n "(cached) " >&6 17382 else 17383 case $OTOOL in 17384 [\\/]* | ?:[\\/]*) 17385 ac_cv_path_OTOOL="$OTOOL" # 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_OTOOL="$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 OTOOL=$ac_cv_path_OTOOL 17407 if test -n "$OTOOL"; then 17408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17409 $as_echo "$OTOOL" >&6; } 17410 else 17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17412 $as_echo "no" >&6; } 17413 fi 17414 17415 17416 if test "x$OTOOL" = x; then 17417 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17418 fi 17419 else 17420 # Otherwise we believe it is a complete path. Use it as it is. 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 17422 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 17424 $as_echo_n "checking for OTOOL... " >&6; } 17425 if test ! -x "$tool_specified"; then 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17427 $as_echo "not found" >&6; } 17428 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 17429 fi 17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17431 $as_echo "$tool_specified" >&6; } 17432 fi 17433 fi 17434 fi 17435 17436 17437 if test "x$OTOOL" = "x"; then 17438 OTOOL="true" 17439 fi 17440 17441 17442 # Publish this variable in the help. 17443 17444 17445 if test "x$READELF" = x; then 17446 # The variable is not set by user, try to locate tool using the code snippet 17447 for ac_prog in greadelf readelf 17448 do 17449 # Extract the first word of "$ac_prog", so it can be a program name with args. 17450 set dummy $ac_prog; ac_word=$2 17451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17452 $as_echo_n "checking for $ac_word... " >&6; } 17453 if ${ac_cv_path_READELF+:} false; then : 17454 $as_echo_n "(cached) " >&6 17455 else 17456 case $READELF in 17457 [\\/]* | ?:[\\/]*) 17458 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17459 ;; 17460 *) 17461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17462 for as_dir in $PATH 17463 do 17464 IFS=$as_save_IFS 17465 test -z "$as_dir" && as_dir=. 17466 for ac_exec_ext in '' $ac_executable_extensions; do 17467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17468 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17470 break 2 17471 fi 17472 done 17473 done 17474 IFS=$as_save_IFS 17475 17476 ;; 17477 esac 17478 fi 17479 READELF=$ac_cv_path_READELF 17480 if test -n "$READELF"; then 17481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17482 $as_echo "$READELF" >&6; } 17483 else 17484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17485 $as_echo "no" >&6; } 17486 fi 17487 17488 17489 test -n "$READELF" && break 17490 done 17491 17492 else 17493 # The variable is set, but is it from the command line or the environment? 17494 17495 # Try to remove the string !READELF! from our list. 17496 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17497 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17498 # If it failed, the variable was not from the command line. Ignore it, 17499 # but warn the user (except for BASH, which is always set by the calling BASH). 17500 if test "xREADELF" != xBASH; then 17501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17502 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17503 fi 17504 # Try to locate tool using the code snippet 17505 for ac_prog in greadelf readelf 17506 do 17507 # Extract the first word of "$ac_prog", so it can be a program name with args. 17508 set dummy $ac_prog; ac_word=$2 17509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17510 $as_echo_n "checking for $ac_word... " >&6; } 17511 if ${ac_cv_path_READELF+:} false; then : 17512 $as_echo_n "(cached) " >&6 17513 else 17514 case $READELF in 17515 [\\/]* | ?:[\\/]*) 17516 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17517 ;; 17518 *) 17519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17520 for as_dir in $PATH 17521 do 17522 IFS=$as_save_IFS 17523 test -z "$as_dir" && as_dir=. 17524 for ac_exec_ext in '' $ac_executable_extensions; do 17525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17526 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17528 break 2 17529 fi 17530 done 17531 done 17532 IFS=$as_save_IFS 17533 17534 ;; 17535 esac 17536 fi 17537 READELF=$ac_cv_path_READELF 17538 if test -n "$READELF"; then 17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17540 $as_echo "$READELF" >&6; } 17541 else 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17543 $as_echo "no" >&6; } 17544 fi 17545 17546 17547 test -n "$READELF" && break 17548 done 17549 17550 else 17551 # If it succeeded, then it was overridden by the user. We will use it 17552 # for the tool. 17553 17554 # First remove it from the list of overridden variables, so we can test 17555 # for unknown variables in the end. 17556 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17557 17558 # Check if the provided tool contains a complete path. 17559 tool_specified="$READELF" 17560 tool_basename="${tool_specified##*/}" 17561 if test "x$tool_basename" = "x$tool_specified"; then 17562 # A command without a complete path is provided, search $PATH. 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17564 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17565 # Extract the first word of "$tool_basename", so it can be a program name with args. 17566 set dummy $tool_basename; ac_word=$2 17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17568 $as_echo_n "checking for $ac_word... " >&6; } 17569 if ${ac_cv_path_READELF+:} false; then : 17570 $as_echo_n "(cached) " >&6 17571 else 17572 case $READELF in 17573 [\\/]* | ?:[\\/]*) 17574 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17575 ;; 17576 *) 17577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17578 for as_dir in $PATH 17579 do 17580 IFS=$as_save_IFS 17581 test -z "$as_dir" && as_dir=. 17582 for ac_exec_ext in '' $ac_executable_extensions; do 17583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17584 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17586 break 2 17587 fi 17588 done 17589 done 17590 IFS=$as_save_IFS 17591 17592 ;; 17593 esac 17594 fi 17595 READELF=$ac_cv_path_READELF 17596 if test -n "$READELF"; then 17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17598 $as_echo "$READELF" >&6; } 17599 else 17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17601 $as_echo "no" >&6; } 17602 fi 17603 17604 17605 if test "x$READELF" = x; then 17606 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17607 fi 17608 else 17609 # Otherwise we believe it is a complete path. Use it as it is. 17610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17611 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17613 $as_echo_n "checking for READELF... " >&6; } 17614 if test ! -x "$tool_specified"; then 17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17616 $as_echo "not found" >&6; } 17617 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17618 fi 17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17620 $as_echo "$tool_specified" >&6; } 17621 fi 17622 fi 17623 fi 17624 17625 17626 17627 17628 # Publish this variable in the help. 17629 17630 17631 if test "x$HG" = x; then 17632 # The variable is not set by user, try to locate tool using the code snippet 17633 for ac_prog in hg 17634 do 17635 # Extract the first word of "$ac_prog", so it can be a program name with args. 17636 set dummy $ac_prog; ac_word=$2 17637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17638 $as_echo_n "checking for $ac_word... " >&6; } 17639 if ${ac_cv_path_HG+:} false; then : 17640 $as_echo_n "(cached) " >&6 17641 else 17642 case $HG in 17643 [\\/]* | ?:[\\/]*) 17644 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17645 ;; 17646 *) 17647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17648 for as_dir in $PATH 17649 do 17650 IFS=$as_save_IFS 17651 test -z "$as_dir" && as_dir=. 17652 for ac_exec_ext in '' $ac_executable_extensions; do 17653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17654 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17656 break 2 17657 fi 17658 done 17659 done 17660 IFS=$as_save_IFS 17661 17662 ;; 17663 esac 17664 fi 17665 HG=$ac_cv_path_HG 17666 if test -n "$HG"; then 17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17668 $as_echo "$HG" >&6; } 17669 else 17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17671 $as_echo "no" >&6; } 17672 fi 17673 17674 17675 test -n "$HG" && break 17676 done 17677 17678 else 17679 # The variable is set, but is it from the command line or the environment? 17680 17681 # Try to remove the string !HG! from our list. 17682 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17683 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17684 # If it failed, the variable was not from the command line. Ignore it, 17685 # but warn the user (except for BASH, which is always set by the calling BASH). 17686 if test "xHG" != xBASH; then 17687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17688 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 17689 fi 17690 # Try to locate tool using the code snippet 17691 for ac_prog in hg 17692 do 17693 # Extract the first word of "$ac_prog", so it can be a program name with args. 17694 set dummy $ac_prog; ac_word=$2 17695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17696 $as_echo_n "checking for $ac_word... " >&6; } 17697 if ${ac_cv_path_HG+:} false; then : 17698 $as_echo_n "(cached) " >&6 17699 else 17700 case $HG in 17701 [\\/]* | ?:[\\/]*) 17702 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17703 ;; 17704 *) 17705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17706 for as_dir in $PATH 17707 do 17708 IFS=$as_save_IFS 17709 test -z "$as_dir" && as_dir=. 17710 for ac_exec_ext in '' $ac_executable_extensions; do 17711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17712 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17714 break 2 17715 fi 17716 done 17717 done 17718 IFS=$as_save_IFS 17719 17720 ;; 17721 esac 17722 fi 17723 HG=$ac_cv_path_HG 17724 if test -n "$HG"; then 17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17726 $as_echo "$HG" >&6; } 17727 else 17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17729 $as_echo "no" >&6; } 17730 fi 17731 17732 17733 test -n "$HG" && break 17734 done 17735 17736 else 17737 # If it succeeded, then it was overridden by the user. We will use it 17738 # for the tool. 17739 17740 # First remove it from the list of overridden variables, so we can test 17741 # for unknown variables in the end. 17742 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17743 17744 # Check if the provided tool contains a complete path. 17745 tool_specified="$HG" 17746 tool_basename="${tool_specified##*/}" 17747 if test "x$tool_basename" = "x$tool_specified"; then 17748 # A command without a complete path is provided, search $PATH. 17749 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 17750 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 17751 # Extract the first word of "$tool_basename", so it can be a program name with args. 17752 set dummy $tool_basename; ac_word=$2 17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17754 $as_echo_n "checking for $ac_word... " >&6; } 17755 if ${ac_cv_path_HG+:} false; then : 17756 $as_echo_n "(cached) " >&6 17757 else 17758 case $HG in 17759 [\\/]* | ?:[\\/]*) 17760 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17761 ;; 17762 *) 17763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17764 for as_dir in $PATH 17765 do 17766 IFS=$as_save_IFS 17767 test -z "$as_dir" && as_dir=. 17768 for ac_exec_ext in '' $ac_executable_extensions; do 17769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17770 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17772 break 2 17773 fi 17774 done 17775 done 17776 IFS=$as_save_IFS 17777 17778 ;; 17779 esac 17780 fi 17781 HG=$ac_cv_path_HG 17782 if test -n "$HG"; then 17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17784 $as_echo "$HG" >&6; } 17785 else 17786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17787 $as_echo "no" >&6; } 17788 fi 17789 17790 17791 if test "x$HG" = x; then 17792 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17793 fi 17794 else 17795 # Otherwise we believe it is a complete path. Use it as it is. 17796 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 17797 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 17798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 17799 $as_echo_n "checking for HG... " >&6; } 17800 if test ! -x "$tool_specified"; then 17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17802 $as_echo "not found" >&6; } 17803 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 17804 fi 17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17806 $as_echo "$tool_specified" >&6; } 17807 fi 17808 fi 17809 fi 17810 17811 17812 17813 17814 # Publish this variable in the help. 17815 17816 17817 if test "x$STAT" = x; then 17818 # The variable is not set by user, try to locate tool using the code snippet 17819 for ac_prog in stat 17820 do 17821 # Extract the first word of "$ac_prog", so it can be a program name with args. 17822 set dummy $ac_prog; ac_word=$2 17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17824 $as_echo_n "checking for $ac_word... " >&6; } 17825 if ${ac_cv_path_STAT+:} false; then : 17826 $as_echo_n "(cached) " >&6 17827 else 17828 case $STAT in 17829 [\\/]* | ?:[\\/]*) 17830 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17831 ;; 17832 *) 17833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17834 for as_dir in $PATH 17835 do 17836 IFS=$as_save_IFS 17837 test -z "$as_dir" && as_dir=. 17838 for ac_exec_ext in '' $ac_executable_extensions; do 17839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17840 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17842 break 2 17843 fi 17844 done 17845 done 17846 IFS=$as_save_IFS 17847 17848 ;; 17849 esac 17850 fi 17851 STAT=$ac_cv_path_STAT 17852 if test -n "$STAT"; then 17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17854 $as_echo "$STAT" >&6; } 17855 else 17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17857 $as_echo "no" >&6; } 17858 fi 17859 17860 17861 test -n "$STAT" && break 17862 done 17863 17864 else 17865 # The variable is set, but is it from the command line or the environment? 17866 17867 # Try to remove the string !STAT! from our list. 17868 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 17869 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17870 # If it failed, the variable was not from the command line. Ignore it, 17871 # but warn the user (except for BASH, which is always set by the calling BASH). 17872 if test "xSTAT" != xBASH; then 17873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 17874 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 17875 fi 17876 # Try to locate tool using the code snippet 17877 for ac_prog in stat 17878 do 17879 # Extract the first word of "$ac_prog", so it can be a program name with args. 17880 set dummy $ac_prog; ac_word=$2 17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17882 $as_echo_n "checking for $ac_word... " >&6; } 17883 if ${ac_cv_path_STAT+:} false; then : 17884 $as_echo_n "(cached) " >&6 17885 else 17886 case $STAT in 17887 [\\/]* | ?:[\\/]*) 17888 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17889 ;; 17890 *) 17891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17892 for as_dir in $PATH 17893 do 17894 IFS=$as_save_IFS 17895 test -z "$as_dir" && as_dir=. 17896 for ac_exec_ext in '' $ac_executable_extensions; do 17897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17898 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17900 break 2 17901 fi 17902 done 17903 done 17904 IFS=$as_save_IFS 17905 17906 ;; 17907 esac 17908 fi 17909 STAT=$ac_cv_path_STAT 17910 if test -n "$STAT"; then 17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17912 $as_echo "$STAT" >&6; } 17913 else 17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17915 $as_echo "no" >&6; } 17916 fi 17917 17918 17919 test -n "$STAT" && break 17920 done 17921 17922 else 17923 # If it succeeded, then it was overridden by the user. We will use it 17924 # for the tool. 17925 17926 # First remove it from the list of overridden variables, so we can test 17927 # for unknown variables in the end. 17928 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17929 17930 # Check if the provided tool contains a complete path. 17931 tool_specified="$STAT" 17932 tool_basename="${tool_specified##*/}" 17933 if test "x$tool_basename" = "x$tool_specified"; then 17934 # A command without a complete path is provided, search $PATH. 17935 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 17936 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 17937 # Extract the first word of "$tool_basename", so it can be a program name with args. 17938 set dummy $tool_basename; ac_word=$2 17939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17940 $as_echo_n "checking for $ac_word... " >&6; } 17941 if ${ac_cv_path_STAT+:} false; then : 17942 $as_echo_n "(cached) " >&6 17943 else 17944 case $STAT in 17945 [\\/]* | ?:[\\/]*) 17946 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17947 ;; 17948 *) 17949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17950 for as_dir in $PATH 17951 do 17952 IFS=$as_save_IFS 17953 test -z "$as_dir" && as_dir=. 17954 for ac_exec_ext in '' $ac_executable_extensions; do 17955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17956 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17958 break 2 17959 fi 17960 done 17961 done 17962 IFS=$as_save_IFS 17963 17964 ;; 17965 esac 17966 fi 17967 STAT=$ac_cv_path_STAT 17968 if test -n "$STAT"; then 17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17970 $as_echo "$STAT" >&6; } 17971 else 17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17973 $as_echo "no" >&6; } 17974 fi 17975 17976 17977 if test "x$STAT" = x; then 17978 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17979 fi 17980 else 17981 # Otherwise we believe it is a complete path. Use it as it is. 17982 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 17983 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 17985 $as_echo_n "checking for STAT... " >&6; } 17986 if test ! -x "$tool_specified"; then 17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17988 $as_echo "not found" >&6; } 17989 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 17990 fi 17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17992 $as_echo "$tool_specified" >&6; } 17993 fi 17994 fi 17995 fi 17996 17997 17998 17999 18000 # Publish this variable in the help. 18001 18002 18003 if test "x$TIME" = x; then 18004 # The variable is not set by user, try to locate tool using the code snippet 18005 for ac_prog in time 18006 do 18007 # Extract the first word of "$ac_prog", so it can be a program name with args. 18008 set dummy $ac_prog; ac_word=$2 18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18010 $as_echo_n "checking for $ac_word... " >&6; } 18011 if ${ac_cv_path_TIME+:} false; then : 18012 $as_echo_n "(cached) " >&6 18013 else 18014 case $TIME in 18015 [\\/]* | ?:[\\/]*) 18016 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18017 ;; 18018 *) 18019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18020 for as_dir in $PATH 18021 do 18022 IFS=$as_save_IFS 18023 test -z "$as_dir" && as_dir=. 18024 for ac_exec_ext in '' $ac_executable_extensions; do 18025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18026 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18028 break 2 18029 fi 18030 done 18031 done 18032 IFS=$as_save_IFS 18033 18034 ;; 18035 esac 18036 fi 18037 TIME=$ac_cv_path_TIME 18038 if test -n "$TIME"; then 18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18040 $as_echo "$TIME" >&6; } 18041 else 18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18043 $as_echo "no" >&6; } 18044 fi 18045 18046 18047 test -n "$TIME" && break 18048 done 18049 18050 else 18051 # The variable is set, but is it from the command line or the environment? 18052 18053 # Try to remove the string !TIME! from our list. 18054 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18055 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18056 # If it failed, the variable was not from the command line. Ignore it, 18057 # but warn the user (except for BASH, which is always set by the calling BASH). 18058 if test "xTIME" != xBASH; then 18059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18060 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18061 fi 18062 # Try to locate tool using the code snippet 18063 for ac_prog in time 18064 do 18065 # Extract the first word of "$ac_prog", so it can be a program name with args. 18066 set dummy $ac_prog; ac_word=$2 18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18068 $as_echo_n "checking for $ac_word... " >&6; } 18069 if ${ac_cv_path_TIME+:} false; then : 18070 $as_echo_n "(cached) " >&6 18071 else 18072 case $TIME in 18073 [\\/]* | ?:[\\/]*) 18074 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18075 ;; 18076 *) 18077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18078 for as_dir in $PATH 18079 do 18080 IFS=$as_save_IFS 18081 test -z "$as_dir" && as_dir=. 18082 for ac_exec_ext in '' $ac_executable_extensions; do 18083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18084 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18086 break 2 18087 fi 18088 done 18089 done 18090 IFS=$as_save_IFS 18091 18092 ;; 18093 esac 18094 fi 18095 TIME=$ac_cv_path_TIME 18096 if test -n "$TIME"; then 18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18098 $as_echo "$TIME" >&6; } 18099 else 18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18101 $as_echo "no" >&6; } 18102 fi 18103 18104 18105 test -n "$TIME" && break 18106 done 18107 18108 else 18109 # If it succeeded, then it was overridden by the user. We will use it 18110 # for the tool. 18111 18112 # First remove it from the list of overridden variables, so we can test 18113 # for unknown variables in the end. 18114 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18115 18116 # Check if the provided tool contains a complete path. 18117 tool_specified="$TIME" 18118 tool_basename="${tool_specified##*/}" 18119 if test "x$tool_basename" = "x$tool_specified"; then 18120 # A command without a complete path is provided, search $PATH. 18121 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18122 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18123 # Extract the first word of "$tool_basename", so it can be a program name with args. 18124 set dummy $tool_basename; ac_word=$2 18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18126 $as_echo_n "checking for $ac_word... " >&6; } 18127 if ${ac_cv_path_TIME+:} false; then : 18128 $as_echo_n "(cached) " >&6 18129 else 18130 case $TIME in 18131 [\\/]* | ?:[\\/]*) 18132 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18133 ;; 18134 *) 18135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18136 for as_dir in $PATH 18137 do 18138 IFS=$as_save_IFS 18139 test -z "$as_dir" && as_dir=. 18140 for ac_exec_ext in '' $ac_executable_extensions; do 18141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18142 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18144 break 2 18145 fi 18146 done 18147 done 18148 IFS=$as_save_IFS 18149 18150 ;; 18151 esac 18152 fi 18153 TIME=$ac_cv_path_TIME 18154 if test -n "$TIME"; then 18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18156 $as_echo "$TIME" >&6; } 18157 else 18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18159 $as_echo "no" >&6; } 18160 fi 18161 18162 18163 if test "x$TIME" = x; then 18164 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18165 fi 18166 else 18167 # Otherwise we believe it is a complete path. Use it as it is. 18168 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18169 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18171 $as_echo_n "checking for TIME... " >&6; } 18172 if test ! -x "$tool_specified"; then 18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18174 $as_echo "not found" >&6; } 18175 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18176 fi 18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18178 $as_echo "$tool_specified" >&6; } 18179 fi 18180 fi 18181 fi 18182 18183 18184 # Check if it's GNU time 18185 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18186 if test "x$IS_GNU_TIME" != x; then 18187 IS_GNU_TIME=yes 18188 else 18189 IS_GNU_TIME=no 18190 fi 18191 18192 18193 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18194 18195 18196 18197 # Publish this variable in the help. 18198 18199 18200 if test "x$COMM" = x; then 18201 # The variable is not set by user, try to locate tool using the code snippet 18202 for ac_prog in comm 18203 do 18204 # Extract the first word of "$ac_prog", so it can be a program name with args. 18205 set dummy $ac_prog; ac_word=$2 18206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18207 $as_echo_n "checking for $ac_word... " >&6; } 18208 if ${ac_cv_path_COMM+:} false; then : 18209 $as_echo_n "(cached) " >&6 18210 else 18211 case $COMM in 18212 [\\/]* | ?:[\\/]*) 18213 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18214 ;; 18215 *) 18216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18217 for as_dir in $PATH 18218 do 18219 IFS=$as_save_IFS 18220 test -z "$as_dir" && as_dir=. 18221 for ac_exec_ext in '' $ac_executable_extensions; do 18222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18223 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18225 break 2 18226 fi 18227 done 18228 done 18229 IFS=$as_save_IFS 18230 18231 ;; 18232 esac 18233 fi 18234 COMM=$ac_cv_path_COMM 18235 if test -n "$COMM"; then 18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18237 $as_echo "$COMM" >&6; } 18238 else 18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18240 $as_echo "no" >&6; } 18241 fi 18242 18243 18244 test -n "$COMM" && break 18245 done 18246 18247 else 18248 # The variable is set, but is it from the command line or the environment? 18249 18250 # Try to remove the string !COMM! from our list. 18251 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18252 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18253 # If it failed, the variable was not from the command line. Ignore it, 18254 # but warn the user (except for BASH, which is always set by the calling BASH). 18255 if test "xCOMM" != xBASH; then 18256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18257 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18258 fi 18259 # Try to locate tool using the code snippet 18260 for ac_prog in comm 18261 do 18262 # Extract the first word of "$ac_prog", so it can be a program name with args. 18263 set dummy $ac_prog; ac_word=$2 18264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18265 $as_echo_n "checking for $ac_word... " >&6; } 18266 if ${ac_cv_path_COMM+:} false; then : 18267 $as_echo_n "(cached) " >&6 18268 else 18269 case $COMM in 18270 [\\/]* | ?:[\\/]*) 18271 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18272 ;; 18273 *) 18274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18275 for as_dir in $PATH 18276 do 18277 IFS=$as_save_IFS 18278 test -z "$as_dir" && as_dir=. 18279 for ac_exec_ext in '' $ac_executable_extensions; do 18280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18281 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18283 break 2 18284 fi 18285 done 18286 done 18287 IFS=$as_save_IFS 18288 18289 ;; 18290 esac 18291 fi 18292 COMM=$ac_cv_path_COMM 18293 if test -n "$COMM"; then 18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18295 $as_echo "$COMM" >&6; } 18296 else 18297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18298 $as_echo "no" >&6; } 18299 fi 18300 18301 18302 test -n "$COMM" && break 18303 done 18304 18305 else 18306 # If it succeeded, then it was overridden by the user. We will use it 18307 # for the tool. 18308 18309 # First remove it from the list of overridden variables, so we can test 18310 # for unknown variables in the end. 18311 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18312 18313 # Check if the provided tool contains a complete path. 18314 tool_specified="$COMM" 18315 tool_basename="${tool_specified##*/}" 18316 if test "x$tool_basename" = "x$tool_specified"; then 18317 # A command without a complete path is provided, search $PATH. 18318 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18319 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18320 # Extract the first word of "$tool_basename", so it can be a program name with args. 18321 set dummy $tool_basename; ac_word=$2 18322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18323 $as_echo_n "checking for $ac_word... " >&6; } 18324 if ${ac_cv_path_COMM+:} false; then : 18325 $as_echo_n "(cached) " >&6 18326 else 18327 case $COMM in 18328 [\\/]* | ?:[\\/]*) 18329 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18330 ;; 18331 *) 18332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18333 for as_dir in $PATH 18334 do 18335 IFS=$as_save_IFS 18336 test -z "$as_dir" && as_dir=. 18337 for ac_exec_ext in '' $ac_executable_extensions; do 18338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18339 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18341 break 2 18342 fi 18343 done 18344 done 18345 IFS=$as_save_IFS 18346 18347 ;; 18348 esac 18349 fi 18350 COMM=$ac_cv_path_COMM 18351 if test -n "$COMM"; then 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18353 $as_echo "$COMM" >&6; } 18354 else 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18356 $as_echo "no" >&6; } 18357 fi 18358 18359 18360 if test "x$COMM" = x; then 18361 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18362 fi 18363 else 18364 # Otherwise we believe it is a complete path. Use it as it is. 18365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18366 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18368 $as_echo_n "checking for COMM... " >&6; } 18369 if test ! -x "$tool_specified"; then 18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18371 $as_echo "not found" >&6; } 18372 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18373 fi 18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18375 $as_echo "$tool_specified" >&6; } 18376 fi 18377 fi 18378 fi 18379 18380 18381 18382 if test "x$COMM" = x; then 18383 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18384 fi 18385 18386 18387 fi 18388 18389 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18390 18391 18392 18393 # Publish this variable in the help. 18394 18395 18396 if test "x$DSYMUTIL" = x; then 18397 # The variable is not set by user, try to locate tool using the code snippet 18398 for ac_prog in dsymutil 18399 do 18400 # Extract the first word of "$ac_prog", so it can be a program name with args. 18401 set dummy $ac_prog; ac_word=$2 18402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18403 $as_echo_n "checking for $ac_word... " >&6; } 18404 if ${ac_cv_path_DSYMUTIL+:} false; then : 18405 $as_echo_n "(cached) " >&6 18406 else 18407 case $DSYMUTIL in 18408 [\\/]* | ?:[\\/]*) 18409 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18410 ;; 18411 *) 18412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18413 for as_dir in $PATH 18414 do 18415 IFS=$as_save_IFS 18416 test -z "$as_dir" && as_dir=. 18417 for ac_exec_ext in '' $ac_executable_extensions; do 18418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18419 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18421 break 2 18422 fi 18423 done 18424 done 18425 IFS=$as_save_IFS 18426 18427 ;; 18428 esac 18429 fi 18430 DSYMUTIL=$ac_cv_path_DSYMUTIL 18431 if test -n "$DSYMUTIL"; then 18432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18433 $as_echo "$DSYMUTIL" >&6; } 18434 else 18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18436 $as_echo "no" >&6; } 18437 fi 18438 18439 18440 test -n "$DSYMUTIL" && break 18441 done 18442 18443 else 18444 # The variable is set, but is it from the command line or the environment? 18445 18446 # Try to remove the string !DSYMUTIL! from our list. 18447 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18448 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18449 # If it failed, the variable was not from the command line. Ignore it, 18450 # but warn the user (except for BASH, which is always set by the calling BASH). 18451 if test "xDSYMUTIL" != xBASH; then 18452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18453 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18454 fi 18455 # Try to locate tool using the code snippet 18456 for ac_prog in dsymutil 18457 do 18458 # Extract the first word of "$ac_prog", so it can be a program name with args. 18459 set dummy $ac_prog; ac_word=$2 18460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18461 $as_echo_n "checking for $ac_word... " >&6; } 18462 if ${ac_cv_path_DSYMUTIL+:} false; then : 18463 $as_echo_n "(cached) " >&6 18464 else 18465 case $DSYMUTIL in 18466 [\\/]* | ?:[\\/]*) 18467 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18468 ;; 18469 *) 18470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18471 for as_dir in $PATH 18472 do 18473 IFS=$as_save_IFS 18474 test -z "$as_dir" && as_dir=. 18475 for ac_exec_ext in '' $ac_executable_extensions; do 18476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18477 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18479 break 2 18480 fi 18481 done 18482 done 18483 IFS=$as_save_IFS 18484 18485 ;; 18486 esac 18487 fi 18488 DSYMUTIL=$ac_cv_path_DSYMUTIL 18489 if test -n "$DSYMUTIL"; then 18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18491 $as_echo "$DSYMUTIL" >&6; } 18492 else 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18494 $as_echo "no" >&6; } 18495 fi 18496 18497 18498 test -n "$DSYMUTIL" && break 18499 done 18500 18501 else 18502 # If it succeeded, then it was overridden by the user. We will use it 18503 # for the tool. 18504 18505 # First remove it from the list of overridden variables, so we can test 18506 # for unknown variables in the end. 18507 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18508 18509 # Check if the provided tool contains a complete path. 18510 tool_specified="$DSYMUTIL" 18511 tool_basename="${tool_specified##*/}" 18512 if test "x$tool_basename" = "x$tool_specified"; then 18513 # A command without a complete path is provided, search $PATH. 18514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18515 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18516 # Extract the first word of "$tool_basename", so it can be a program name with args. 18517 set dummy $tool_basename; ac_word=$2 18518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18519 $as_echo_n "checking for $ac_word... " >&6; } 18520 if ${ac_cv_path_DSYMUTIL+:} false; then : 18521 $as_echo_n "(cached) " >&6 18522 else 18523 case $DSYMUTIL in 18524 [\\/]* | ?:[\\/]*) 18525 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18526 ;; 18527 *) 18528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18529 for as_dir in $PATH 18530 do 18531 IFS=$as_save_IFS 18532 test -z "$as_dir" && as_dir=. 18533 for ac_exec_ext in '' $ac_executable_extensions; do 18534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18535 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18537 break 2 18538 fi 18539 done 18540 done 18541 IFS=$as_save_IFS 18542 18543 ;; 18544 esac 18545 fi 18546 DSYMUTIL=$ac_cv_path_DSYMUTIL 18547 if test -n "$DSYMUTIL"; then 18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18549 $as_echo "$DSYMUTIL" >&6; } 18550 else 18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18552 $as_echo "no" >&6; } 18553 fi 18554 18555 18556 if test "x$DSYMUTIL" = x; then 18557 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18558 fi 18559 else 18560 # Otherwise we believe it is a complete path. Use it as it is. 18561 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18562 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18564 $as_echo_n "checking for DSYMUTIL... " >&6; } 18565 if test ! -x "$tool_specified"; then 18566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18567 $as_echo "not found" >&6; } 18568 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18569 fi 18570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18571 $as_echo "$tool_specified" >&6; } 18572 fi 18573 fi 18574 fi 18575 18576 18577 18578 if test "x$DSYMUTIL" = x; then 18579 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18580 fi 18581 18582 18583 18584 18585 18586 # Publish this variable in the help. 18587 18588 18589 if test "x$XATTR" = x; then 18590 # The variable is not set by user, try to locate tool using the code snippet 18591 for ac_prog in xattr 18592 do 18593 # Extract the first word of "$ac_prog", so it can be a program name with args. 18594 set dummy $ac_prog; ac_word=$2 18595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18596 $as_echo_n "checking for $ac_word... " >&6; } 18597 if ${ac_cv_path_XATTR+:} false; then : 18598 $as_echo_n "(cached) " >&6 18599 else 18600 case $XATTR in 18601 [\\/]* | ?:[\\/]*) 18602 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18603 ;; 18604 *) 18605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18606 for as_dir in $PATH 18607 do 18608 IFS=$as_save_IFS 18609 test -z "$as_dir" && as_dir=. 18610 for ac_exec_ext in '' $ac_executable_extensions; do 18611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18612 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18614 break 2 18615 fi 18616 done 18617 done 18618 IFS=$as_save_IFS 18619 18620 ;; 18621 esac 18622 fi 18623 XATTR=$ac_cv_path_XATTR 18624 if test -n "$XATTR"; then 18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18626 $as_echo "$XATTR" >&6; } 18627 else 18628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18629 $as_echo "no" >&6; } 18630 fi 18631 18632 18633 test -n "$XATTR" && break 18634 done 18635 18636 else 18637 # The variable is set, but is it from the command line or the environment? 18638 18639 # Try to remove the string !XATTR! from our list. 18640 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18641 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18642 # If it failed, the variable was not from the command line. Ignore it, 18643 # but warn the user (except for BASH, which is always set by the calling BASH). 18644 if test "xXATTR" != xBASH; then 18645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18646 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18647 fi 18648 # Try to locate tool using the code snippet 18649 for ac_prog in xattr 18650 do 18651 # Extract the first word of "$ac_prog", so it can be a program name with args. 18652 set dummy $ac_prog; ac_word=$2 18653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18654 $as_echo_n "checking for $ac_word... " >&6; } 18655 if ${ac_cv_path_XATTR+:} false; then : 18656 $as_echo_n "(cached) " >&6 18657 else 18658 case $XATTR in 18659 [\\/]* | ?:[\\/]*) 18660 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18661 ;; 18662 *) 18663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18664 for as_dir in $PATH 18665 do 18666 IFS=$as_save_IFS 18667 test -z "$as_dir" && as_dir=. 18668 for ac_exec_ext in '' $ac_executable_extensions; do 18669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18670 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18672 break 2 18673 fi 18674 done 18675 done 18676 IFS=$as_save_IFS 18677 18678 ;; 18679 esac 18680 fi 18681 XATTR=$ac_cv_path_XATTR 18682 if test -n "$XATTR"; then 18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18684 $as_echo "$XATTR" >&6; } 18685 else 18686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18687 $as_echo "no" >&6; } 18688 fi 18689 18690 18691 test -n "$XATTR" && break 18692 done 18693 18694 else 18695 # If it succeeded, then it was overridden by the user. We will use it 18696 # for the tool. 18697 18698 # First remove it from the list of overridden variables, so we can test 18699 # for unknown variables in the end. 18700 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18701 18702 # Check if the provided tool contains a complete path. 18703 tool_specified="$XATTR" 18704 tool_basename="${tool_specified##*/}" 18705 if test "x$tool_basename" = "x$tool_specified"; then 18706 # A command without a complete path is provided, search $PATH. 18707 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 18708 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 18709 # Extract the first word of "$tool_basename", so it can be a program name with args. 18710 set dummy $tool_basename; ac_word=$2 18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18712 $as_echo_n "checking for $ac_word... " >&6; } 18713 if ${ac_cv_path_XATTR+:} false; then : 18714 $as_echo_n "(cached) " >&6 18715 else 18716 case $XATTR in 18717 [\\/]* | ?:[\\/]*) 18718 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18719 ;; 18720 *) 18721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18722 for as_dir in $PATH 18723 do 18724 IFS=$as_save_IFS 18725 test -z "$as_dir" && as_dir=. 18726 for ac_exec_ext in '' $ac_executable_extensions; do 18727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18728 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18730 break 2 18731 fi 18732 done 18733 done 18734 IFS=$as_save_IFS 18735 18736 ;; 18737 esac 18738 fi 18739 XATTR=$ac_cv_path_XATTR 18740 if test -n "$XATTR"; then 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18742 $as_echo "$XATTR" >&6; } 18743 else 18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18745 $as_echo "no" >&6; } 18746 fi 18747 18748 18749 if test "x$XATTR" = x; then 18750 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18751 fi 18752 else 18753 # Otherwise we believe it is a complete path. Use it as it is. 18754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 18755 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 18757 $as_echo_n "checking for XATTR... " >&6; } 18758 if test ! -x "$tool_specified"; then 18759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18760 $as_echo "not found" >&6; } 18761 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 18762 fi 18763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18764 $as_echo "$tool_specified" >&6; } 18765 fi 18766 fi 18767 fi 18768 18769 18770 18771 if test "x$XATTR" = x; then 18772 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 18773 fi 18774 18775 18776 18777 18778 # Publish this variable in the help. 18779 18780 18781 if test "x$CODESIGN" = x; then 18782 # The variable is not set by user, try to locate tool using the code snippet 18783 for ac_prog in codesign 18784 do 18785 # Extract the first word of "$ac_prog", so it can be a program name with args. 18786 set dummy $ac_prog; ac_word=$2 18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18788 $as_echo_n "checking for $ac_word... " >&6; } 18789 if ${ac_cv_path_CODESIGN+:} false; then : 18790 $as_echo_n "(cached) " >&6 18791 else 18792 case $CODESIGN in 18793 [\\/]* | ?:[\\/]*) 18794 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18795 ;; 18796 *) 18797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18798 for as_dir in $PATH 18799 do 18800 IFS=$as_save_IFS 18801 test -z "$as_dir" && as_dir=. 18802 for ac_exec_ext in '' $ac_executable_extensions; do 18803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18804 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18806 break 2 18807 fi 18808 done 18809 done 18810 IFS=$as_save_IFS 18811 18812 ;; 18813 esac 18814 fi 18815 CODESIGN=$ac_cv_path_CODESIGN 18816 if test -n "$CODESIGN"; then 18817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18818 $as_echo "$CODESIGN" >&6; } 18819 else 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18821 $as_echo "no" >&6; } 18822 fi 18823 18824 18825 test -n "$CODESIGN" && break 18826 done 18827 18828 else 18829 # The variable is set, but is it from the command line or the environment? 18830 18831 # Try to remove the string !CODESIGN! from our list. 18832 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 18833 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18834 # If it failed, the variable was not from the command line. Ignore it, 18835 # but warn the user (except for BASH, which is always set by the calling BASH). 18836 if test "xCODESIGN" != xBASH; then 18837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 18838 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 18839 fi 18840 # Try to locate tool using the code snippet 18841 for ac_prog in codesign 18842 do 18843 # Extract the first word of "$ac_prog", so it can be a program name with args. 18844 set dummy $ac_prog; ac_word=$2 18845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18846 $as_echo_n "checking for $ac_word... " >&6; } 18847 if ${ac_cv_path_CODESIGN+:} false; then : 18848 $as_echo_n "(cached) " >&6 18849 else 18850 case $CODESIGN in 18851 [\\/]* | ?:[\\/]*) 18852 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18853 ;; 18854 *) 18855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18856 for as_dir in $PATH 18857 do 18858 IFS=$as_save_IFS 18859 test -z "$as_dir" && as_dir=. 18860 for ac_exec_ext in '' $ac_executable_extensions; do 18861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18862 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18864 break 2 18865 fi 18866 done 18867 done 18868 IFS=$as_save_IFS 18869 18870 ;; 18871 esac 18872 fi 18873 CODESIGN=$ac_cv_path_CODESIGN 18874 if test -n "$CODESIGN"; then 18875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18876 $as_echo "$CODESIGN" >&6; } 18877 else 18878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18879 $as_echo "no" >&6; } 18880 fi 18881 18882 18883 test -n "$CODESIGN" && break 18884 done 18885 18886 else 18887 # If it succeeded, then it was overridden by the user. We will use it 18888 # for the tool. 18889 18890 # First remove it from the list of overridden variables, so we can test 18891 # for unknown variables in the end. 18892 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18893 18894 # Check if the provided tool contains a complete path. 18895 tool_specified="$CODESIGN" 18896 tool_basename="${tool_specified##*/}" 18897 if test "x$tool_basename" = "x$tool_specified"; then 18898 # A command without a complete path is provided, search $PATH. 18899 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 18900 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 18901 # Extract the first word of "$tool_basename", so it can be a program name with args. 18902 set dummy $tool_basename; ac_word=$2 18903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18904 $as_echo_n "checking for $ac_word... " >&6; } 18905 if ${ac_cv_path_CODESIGN+:} false; then : 18906 $as_echo_n "(cached) " >&6 18907 else 18908 case $CODESIGN in 18909 [\\/]* | ?:[\\/]*) 18910 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18911 ;; 18912 *) 18913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18914 for as_dir in $PATH 18915 do 18916 IFS=$as_save_IFS 18917 test -z "$as_dir" && as_dir=. 18918 for ac_exec_ext in '' $ac_executable_extensions; do 18919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18920 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18922 break 2 18923 fi 18924 done 18925 done 18926 IFS=$as_save_IFS 18927 18928 ;; 18929 esac 18930 fi 18931 CODESIGN=$ac_cv_path_CODESIGN 18932 if test -n "$CODESIGN"; then 18933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18934 $as_echo "$CODESIGN" >&6; } 18935 else 18936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18937 $as_echo "no" >&6; } 18938 fi 18939 18940 18941 if test "x$CODESIGN" = x; then 18942 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18943 fi 18944 else 18945 # Otherwise we believe it is a complete path. Use it as it is. 18946 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 18947 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 18949 $as_echo_n "checking for CODESIGN... " >&6; } 18950 if test ! -x "$tool_specified"; then 18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18952 $as_echo "not found" >&6; } 18953 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 18954 fi 18955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18956 $as_echo "$tool_specified" >&6; } 18957 fi 18958 fi 18959 fi 18960 18961 18962 if test "x$CODESIGN" != "x"; then 18963 # Verify that the openjdk_codesign certificate is present 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 18965 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 18966 rm -f codesign-testfile 18967 touch codesign-testfile 18968 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 18969 rm -f codesign-testfile 18970 if test "x$CODESIGN" = x; then 18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18972 $as_echo "no" >&6; } 18973 else 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18975 $as_echo "yes" >&6; } 18976 fi 18977 fi 18978 fi 18979 18980 18981 # Check if pkg-config is available. 18982 18983 18984 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18985 if test -n "$ac_tool_prefix"; then 18986 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18987 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18989 $as_echo_n "checking for $ac_word... " >&6; } 18990 if ${ac_cv_path_PKG_CONFIG+:} false; then : 18991 $as_echo_n "(cached) " >&6 18992 else 18993 case $PKG_CONFIG in 18994 [\\/]* | ?:[\\/]*) 18995 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18996 ;; 18997 *) 18998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18999 for as_dir in $PATH 19000 do 19001 IFS=$as_save_IFS 19002 test -z "$as_dir" && as_dir=. 19003 for ac_exec_ext in '' $ac_executable_extensions; do 19004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19005 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19007 break 2 19008 fi 19009 done 19010 done 19011 IFS=$as_save_IFS 19012 19013 ;; 19014 esac 19015 fi 19016 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19017 if test -n "$PKG_CONFIG"; then 19018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19019 $as_echo "$PKG_CONFIG" >&6; } 19020 else 19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19022 $as_echo "no" >&6; } 19023 fi 19024 19025 19026 fi 19027 if test -z "$ac_cv_path_PKG_CONFIG"; then 19028 ac_pt_PKG_CONFIG=$PKG_CONFIG 19029 # Extract the first word of "pkg-config", so it can be a program name with args. 19030 set dummy pkg-config; ac_word=$2 19031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19032 $as_echo_n "checking for $ac_word... " >&6; } 19033 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19034 $as_echo_n "(cached) " >&6 19035 else 19036 case $ac_pt_PKG_CONFIG in 19037 [\\/]* | ?:[\\/]*) 19038 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19039 ;; 19040 *) 19041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19042 for as_dir in $PATH 19043 do 19044 IFS=$as_save_IFS 19045 test -z "$as_dir" && as_dir=. 19046 for ac_exec_ext in '' $ac_executable_extensions; do 19047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19048 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19050 break 2 19051 fi 19052 done 19053 done 19054 IFS=$as_save_IFS 19055 19056 ;; 19057 esac 19058 fi 19059 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19060 if test -n "$ac_pt_PKG_CONFIG"; then 19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19062 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19063 else 19064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19065 $as_echo "no" >&6; } 19066 fi 19067 19068 if test "x$ac_pt_PKG_CONFIG" = x; then 19069 PKG_CONFIG="" 19070 else 19071 case $cross_compiling:$ac_tool_warned in 19072 yes:) 19073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19074 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19075 ac_tool_warned=yes ;; 19076 esac 19077 PKG_CONFIG=$ac_pt_PKG_CONFIG 19078 fi 19079 else 19080 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19081 fi 19082 19083 fi 19084 if test -n "$PKG_CONFIG"; then 19085 _pkg_min_version=0.9.0 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19087 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19088 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19090 $as_echo "yes" >&6; } 19091 else 19092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19093 $as_echo "no" >&6; } 19094 PKG_CONFIG="" 19095 fi 19096 19097 fi 19098 19099 # After basic tools have been setup, we can check build os specific details. 19100 19101 ############################################################################### 19102 19103 # Note that this is the build platform OS version! 19104 19105 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19106 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19107 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19108 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19109 19110 19111 19112 19113 19114 # Setup builddeps, for automatic downloading of tools we need. 19115 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19116 # boot-jdk setup, but we need to have basic tools setup first. 19117 19118 19119 # Check whether --with-builddeps-conf was given. 19120 if test "${with_builddeps_conf+set}" = set; then : 19121 withval=$with_builddeps_conf; 19122 fi 19123 19124 19125 19126 # Check whether --with-builddeps-server was given. 19127 if test "${with_builddeps_server+set}" = set; then : 19128 withval=$with_builddeps_server; 19129 fi 19130 19131 19132 19133 # Check whether --with-builddeps-dir was given. 19134 if test "${with_builddeps_dir+set}" = set; then : 19135 withval=$with_builddeps_dir; 19136 else 19137 with_builddeps_dir=/localhome/builddeps 19138 fi 19139 19140 19141 19142 # Check whether --with-builddeps-group was given. 19143 if test "${with_builddeps_group+set}" = set; then : 19144 withval=$with_builddeps_group; 19145 fi 19146 19147 19148 19149 19150 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19151 if test "x$with_builddeps_conf" != x; then 19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19153 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19154 builddepsfile=$with_builddeps_conf 19155 if test -s $builddepsfile; then 19156 . $builddepsfile 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19158 $as_echo "loaded!" >&6; } 19159 else 19160 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19161 fi 19162 else 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19164 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19165 builddepsfile=`mktemp` 19166 touch $builddepsfile 19167 # Put all found confs into a single file. 19168 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19169 # Source the file to acquire the variables 19170 if test -s $builddepsfile; then 19171 . $builddepsfile 19172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19173 $as_echo "found at least one!" >&6; } 19174 else 19175 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19176 fi 19177 fi 19178 # Create build and target names that use _ instead of "-" and ".". 19179 # This is necessary to use them in variable names. 19180 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19181 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19182 # Extract rewrite information for build and target 19183 eval rewritten_build=\${REWRITE_${build_var}} 19184 if test "x$rewritten_build" = x; then 19185 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19186 echo Build stays the same $rewritten_build 19187 else 19188 echo Rewriting build for builddeps into $rewritten_build 19189 fi 19190 eval rewritten_target=\${REWRITE_${target_var}} 19191 if test "x$rewritten_target" = x; then 19192 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19193 echo Target stays the same $rewritten_target 19194 else 19195 echo Rewriting target for builddeps into $rewritten_target 19196 fi 19197 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19198 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19199 fi 19200 for ac_prog in 7z unzip 19201 do 19202 # Extract the first word of "$ac_prog", so it can be a program name with args. 19203 set dummy $ac_prog; ac_word=$2 19204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19205 $as_echo_n "checking for $ac_word... " >&6; } 19206 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19207 $as_echo_n "(cached) " >&6 19208 else 19209 if test -n "$BDEPS_UNZIP"; then 19210 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19211 else 19212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19213 for as_dir in $PATH 19214 do 19215 IFS=$as_save_IFS 19216 test -z "$as_dir" && as_dir=. 19217 for ac_exec_ext in '' $ac_executable_extensions; do 19218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19219 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19221 break 2 19222 fi 19223 done 19224 done 19225 IFS=$as_save_IFS 19226 19227 fi 19228 fi 19229 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19230 if test -n "$BDEPS_UNZIP"; then 19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19232 $as_echo "$BDEPS_UNZIP" >&6; } 19233 else 19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19235 $as_echo "no" >&6; } 19236 fi 19237 19238 19239 test -n "$BDEPS_UNZIP" && break 19240 done 19241 19242 if test "x$BDEPS_UNZIP" = x7z; then 19243 BDEPS_UNZIP="7z x" 19244 fi 19245 19246 for ac_prog in wget lftp ftp 19247 do 19248 # Extract the first word of "$ac_prog", so it can be a program name with args. 19249 set dummy $ac_prog; ac_word=$2 19250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19251 $as_echo_n "checking for $ac_word... " >&6; } 19252 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19253 $as_echo_n "(cached) " >&6 19254 else 19255 if test -n "$BDEPS_FTP"; then 19256 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19257 else 19258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19259 for as_dir in $PATH 19260 do 19261 IFS=$as_save_IFS 19262 test -z "$as_dir" && as_dir=. 19263 for ac_exec_ext in '' $ac_executable_extensions; do 19264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19265 ac_cv_prog_BDEPS_FTP="$ac_prog" 19266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19267 break 2 19268 fi 19269 done 19270 done 19271 IFS=$as_save_IFS 19272 19273 fi 19274 fi 19275 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19276 if test -n "$BDEPS_FTP"; then 19277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19278 $as_echo "$BDEPS_FTP" >&6; } 19279 else 19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19281 $as_echo "no" >&6; } 19282 fi 19283 19284 19285 test -n "$BDEPS_FTP" && break 19286 done 19287 19288 19289 19290 ############################################################################### 19291 # 19292 # Determine OpenJDK variants, options and version numbers. 19293 # 19294 ############################################################################### 19295 19296 # We need build & target for this. 19297 19298 19299 ############################################################################### 19300 # 19301 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19302 # We always build headless support. 19303 # 19304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19305 $as_echo_n "checking headful support... " >&6; } 19306 # Check whether --enable-headful was given. 19307 if test "${enable_headful+set}" = set; then : 19308 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19309 else 19310 SUPPORT_HEADFUL=yes 19311 fi 19312 19313 19314 SUPPORT_HEADLESS=yes 19315 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19316 19317 if test "x$SUPPORT_HEADFUL" = xyes; then 19318 # We are building both headful and headless. 19319 headful_msg="include support for both headful and headless" 19320 fi 19321 19322 if test "x$SUPPORT_HEADFUL" = xno; then 19323 # Thus we are building headless only. 19324 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19325 headful_msg="headless only" 19326 fi 19327 19328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19329 $as_echo "$headful_msg" >&6; } 19330 19331 19332 19333 19334 19335 # Control wether Hotspot runs Queens test after build. 19336 # Check whether --enable-hotspot-test-in-build was given. 19337 if test "${enable_hotspot_test_in_build+set}" = set; then : 19338 enableval=$enable_hotspot_test_in_build; 19339 else 19340 enable_hotspot_test_in_build=no 19341 fi 19342 19343 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19344 TEST_IN_BUILD=true 19345 else 19346 TEST_IN_BUILD=false 19347 fi 19348 19349 19350 ############################################################################### 19351 # 19352 # Choose cacerts source file 19353 # 19354 19355 # Check whether --with-cacerts-file was given. 19356 if test "${with_cacerts_file+set}" = set; then : 19357 withval=$with_cacerts_file; 19358 fi 19359 19360 if test "x$with_cacerts_file" != x; then 19361 CACERTS_FILE=$with_cacerts_file 19362 else 19363 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19364 fi 19365 19366 19367 ############################################################################### 19368 # 19369 # Enable or disable unlimited crypto 19370 # 19371 # Check whether --enable-unlimited-crypto was given. 19372 if test "${enable_unlimited_crypto+set}" = set; then : 19373 enableval=$enable_unlimited_crypto; 19374 else 19375 enable_unlimited_crypto=no 19376 fi 19377 19378 if test "x$enable_unlimited_crypto" = "xyes"; then 19379 UNLIMITED_CRYPTO=true 19380 else 19381 UNLIMITED_CRYPTO=false 19382 fi 19383 19384 19385 ############################################################################### 19386 # 19387 # Enable or disable the elliptic curve crypto implementation 19388 # 19389 19390 19391 ############################################################################### 19392 # 19393 # --enable-rmiconnector-iiop 19394 # 19395 # Check whether --enable-rmiconnector-iiop was given. 19396 if test "${enable_rmiconnector_iiop+set}" = set; then : 19397 enableval=$enable_rmiconnector_iiop; 19398 fi 19399 19400 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19401 RMICONNECTOR_IIOP=true 19402 else 19403 RMICONNECTOR_IIOP=false 19404 fi 19405 19406 19407 ############################################################################### 19408 # 19409 # Compress jars 19410 # 19411 COMPRESS_JARS=false 19412 19413 19414 19415 19416 # Source the version numbers 19417 . $AUTOCONF_DIR/version-numbers 19418 19419 # Get the settings from parameters 19420 19421 # Check whether --with-milestone was given. 19422 if test "${with_milestone+set}" = set; then : 19423 withval=$with_milestone; 19424 fi 19425 19426 if test "x$with_milestone" = xyes; then 19427 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19428 elif test "x$with_milestone" != x; then 19429 MILESTONE="$with_milestone" 19430 fi 19431 if test "x$MILESTONE" = x; then 19432 MILESTONE=internal 19433 fi 19434 19435 19436 # Check whether --with-update-version was given. 19437 if test "${with_update_version+set}" = set; then : 19438 withval=$with_update_version; 19439 fi 19440 19441 if test "x$with_update_version" = xyes; then 19442 as_fn_error $? "Update version must have a value" "$LINENO" 5 19443 elif test "x$with_update_version" != x; then 19444 JDK_UPDATE_VERSION="$with_update_version" 19445 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19446 # to a bug in expr (which reduces it to just X). To work around this, we 19447 # always add a 0 to one digit update versions. 19448 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19449 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19450 fi 19451 fi 19452 19453 19454 # Check whether --with-user-release-suffix was given. 19455 if test "${with_user_release_suffix+set}" = set; then : 19456 withval=$with_user_release_suffix; 19457 fi 19458 19459 if test "x$with_user_release_suffix" = xyes; then 19460 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19461 elif test "x$with_user_release_suffix" != x; then 19462 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19463 fi 19464 19465 19466 # Check whether --with-build-number was given. 19467 if test "${with_build_number+set}" = set; then : 19468 withval=$with_build_number; 19469 fi 19470 19471 if test "x$with_build_number" = xyes; then 19472 as_fn_error $? "Build number must have a value" "$LINENO" 5 19473 elif test "x$with_build_number" != x; then 19474 JDK_BUILD_NUMBER="$with_build_number" 19475 fi 19476 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19477 if test "x$JDK_BUILD_NUMBER" = x; then 19478 JDK_BUILD_NUMBER=b00 19479 if test "x$USER_RELEASE_SUFFIX" = x; then 19480 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19481 # Avoid [:alnum:] since it depends on the locale. 19482 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19483 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19484 fi 19485 fi 19486 19487 # Now set the JDK version, milestone, build number etc. 19488 19489 19490 19491 19492 19493 19494 19495 19496 19497 19498 19499 19500 19501 19502 19503 COPYRIGHT_YEAR=`date +'%Y'` 19504 19505 19506 if test "x$JDK_UPDATE_VERSION" != x; then 19507 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19508 else 19509 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19510 fi 19511 19512 19513 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19514 19515 19516 19517 ############################################################################### 19518 # 19519 # Setup BootJDK, used to bootstrap the build. 19520 # 19521 ############################################################################### 19522 19523 19524 BOOT_JDK_FOUND=no 19525 19526 # Check whether --with-boot-jdk was given. 19527 if test "${with_boot_jdk+set}" = set; then : 19528 withval=$with_boot_jdk; 19529 fi 19530 19531 19532 # We look for the Boot JDK through various means, going from more certain to 19533 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19534 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19535 # must check if this is indeed valid; otherwise we'll continue looking. 19536 19537 # Test: Is bootjdk explicitely set by command line arguments? 19538 19539 if test "x$BOOT_JDK_FOUND" = xno; then 19540 # Now execute the test 19541 19542 if test "x$with_boot_jdk" != x; then 19543 BOOT_JDK=$with_boot_jdk 19544 BOOT_JDK_FOUND=maybe 19545 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19546 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19547 fi 19548 19549 19550 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19551 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19552 # Do we have a bin/java? 19553 if test ! -x "$BOOT_JDK/bin/java"; then 19554 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19555 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19556 BOOT_JDK_FOUND=no 19557 else 19558 # Do we have a bin/javac? 19559 if test ! -x "$BOOT_JDK/bin/javac"; then 19560 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19561 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19562 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19563 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19564 BOOT_JDK_FOUND=no 19565 else 19566 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19567 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19568 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19569 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19570 BOOT_JDK_FOUND=no 19571 else 19572 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19573 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19574 19575 # Extra M4 quote needed to protect [] in grep expression. 19576 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 19577 if test "x$FOUND_CORRECT_VERSION" = x; then 19578 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19579 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19580 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 19581 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 19582 BOOT_JDK_FOUND=no 19583 else 19584 # We're done! :-) 19585 BOOT_JDK_FOUND=yes 19586 19587 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19588 19589 # Input might be given as Windows format, start by converting to 19590 # unix format. 19591 path="$BOOT_JDK" 19592 new_path=`$CYGPATH -u "$path"` 19593 19594 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19595 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19596 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19597 # "foo.exe" is OK but "foo" is an error. 19598 # 19599 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19600 # It is also a way to make sure we got the proper file name for the real test later on. 19601 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19602 if test "x$test_shortpath" = x; then 19603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19604 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19605 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19606 fi 19607 19608 # Call helper function which possibly converts this using DOS-style short mode. 19609 # If so, the updated path is stored in $new_path. 19610 19611 input_path="$new_path" 19612 # Check if we need to convert this using DOS-style short mode. If the path 19613 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19614 # take no chances and rewrite it. 19615 # Note: m4 eats our [], so we need to use [ and ] instead. 19616 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19617 if test "x$has_forbidden_chars" != x; then 19618 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19619 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19620 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19621 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19622 # Going to short mode and back again did indeed matter. Since short mode is 19623 # case insensitive, let's make it lowercase to improve readability. 19624 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19625 # Now convert it back to Unix-stile (cygpath) 19626 input_path=`$CYGPATH -u "$shortmode_path"` 19627 new_path="$input_path" 19628 fi 19629 fi 19630 19631 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19632 if test "x$test_cygdrive_prefix" = x; then 19633 # As a simple fix, exclude /usr/bin since it's not a real path. 19634 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19635 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19636 # a path prefixed by /cygdrive for fixpath to work. 19637 new_path="$CYGWIN_ROOT_PATH$input_path" 19638 fi 19639 fi 19640 19641 19642 if test "x$path" != "x$new_path"; then 19643 BOOT_JDK="$new_path" 19644 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19645 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19646 fi 19647 19648 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19649 19650 path="$BOOT_JDK" 19651 has_colon=`$ECHO $path | $GREP ^.:` 19652 new_path="$path" 19653 if test "x$has_colon" = x; then 19654 # Not in mixed or Windows style, start by that. 19655 new_path=`cmd //c echo $path` 19656 fi 19657 19658 19659 input_path="$new_path" 19660 # Check if we need to convert this using DOS-style short mode. If the path 19661 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19662 # take no chances and rewrite it. 19663 # Note: m4 eats our [], so we need to use [ and ] instead. 19664 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19665 if test "x$has_forbidden_chars" != x; then 19666 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19667 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19668 fi 19669 19670 19671 windows_path="$new_path" 19672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19673 unix_path=`$CYGPATH -u "$windows_path"` 19674 new_path="$unix_path" 19675 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19676 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19677 new_path="$unix_path" 19678 fi 19679 19680 if test "x$path" != "x$new_path"; then 19681 BOOT_JDK="$new_path" 19682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19683 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19684 fi 19685 19686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19688 19689 else 19690 # We're on a posix platform. Hooray! :) 19691 path="$BOOT_JDK" 19692 has_space=`$ECHO "$path" | $GREP " "` 19693 if test "x$has_space" != x; then 19694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19695 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19696 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 19697 fi 19698 19699 # Use eval to expand a potential ~ 19700 eval path="$path" 19701 if test ! -f "$path" && test ! -d "$path"; then 19702 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 19703 fi 19704 19705 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 19706 fi 19707 19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 19709 $as_echo_n "checking for Boot JDK... " >&6; } 19710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 19711 $as_echo "$BOOT_JDK" >&6; } 19712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 19713 $as_echo_n "checking Boot JDK version... " >&6; } 19714 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 19715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 19716 $as_echo "$BOOT_JDK_VERSION" >&6; } 19717 fi # end check jdk version 19718 fi # end check rt.jar 19719 fi # end check javac 19720 fi # end check java 19721 fi # end check boot jdk found 19722 fi 19723 19724 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 19725 # Having specified an argument which is incorrect will produce an instant failure; 19726 # we should not go on looking 19727 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 19728 fi 19729 19730 # Test: Is bootjdk available from builddeps? 19731 19732 if test "x$BOOT_JDK_FOUND" = xno; then 19733 # Now execute the test 19734 19735 19736 19737 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19738 # Source the builddeps file again, to make sure it uses the latest variables! 19739 . $builddepsfile 19740 # Look for a target and build machine specific resource! 19741 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 19742 if test "x$resource" = x; then 19743 # Ok, lets instead look for a target specific resource 19744 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 19745 fi 19746 if test "x$resource" = x; then 19747 # Ok, lets instead look for a build specific resource 19748 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 19749 fi 19750 if test "x$resource" = x; then 19751 # Ok, lets instead look for a generic resource 19752 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 19753 resource=${builddep_bootjdk} 19754 fi 19755 if test "x$resource" != x; then 19756 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 19757 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 19758 # If the resource in the builddeps.conf file is an existing directory, 19759 # for example /java/linux/cups 19760 if test -d ${resource}; then 19761 depdir=${resource} 19762 else 19763 19764 # bootjdk is for example mymodule 19765 # $resource is for example libs/general/libmymod_1_2_3.zip 19766 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 19767 # $with_builddeps_dir is for example /localhome/builddeps 19768 # depdir is the name of the variable into which we store the depdir, eg MYMOD 19769 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 19770 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 19771 filename=`basename $resource` 19772 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 19773 filebase=${filename%%.*} 19774 extension=${filename#*.} 19775 installdir=$with_builddeps_dir/$filebase 19776 if test ! -f $installdir/$filename.unpacked; then 19777 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 19778 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 19779 if test ! -d $installdir; then 19780 mkdir -p $installdir 19781 fi 19782 if test ! -d $installdir; then 19783 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 19784 fi 19785 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 19786 touch $tmpfile 19787 if test ! -f $tmpfile; then 19788 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 19789 fi 19790 19791 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 19792 # $tmpfile is the local file name for the downloaded file. 19793 VALID_TOOL=no 19794 if test "x$BDEPS_FTP" = xwget; then 19795 VALID_TOOL=yes 19796 wget -O $tmpfile $with_builddeps_server/$resource 19797 fi 19798 if test "x$BDEPS_FTP" = xlftp; then 19799 VALID_TOOL=yes 19800 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 19801 fi 19802 if test "x$BDEPS_FTP" = xftp; then 19803 VALID_TOOL=yes 19804 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 19805 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 19806 FTPUSERPWD=${FTPSERVER%%@*} 19807 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 19808 FTPUSER=${userpwd%%:*} 19809 FTPPWD=${userpwd#*@} 19810 FTPSERVER=${FTPSERVER#*@} 19811 else 19812 FTPUSER=ftp 19813 FTPPWD=ftp 19814 fi 19815 # the "pass" command does not work on some 19816 # ftp clients (read ftp.exe) but if it works, 19817 # passive mode is better! 19818 ( \ 19819 echo "user $FTPUSER $FTPPWD" ; \ 19820 echo "pass" ; \ 19821 echo "bin" ; \ 19822 echo "get $FTPPATH $tmpfile" ; \ 19823 ) | ftp -in $FTPSERVER 19824 fi 19825 if test "x$VALID_TOOL" != xyes; then 19826 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 19827 fi 19828 19829 mv $tmpfile $installdir/$filename 19830 if test ! -s $installdir/$filename; then 19831 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 19832 fi 19833 case "$extension" in 19834 zip) echo "Unzipping $installdir/$filename..." 19835 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 19836 ;; 19837 tar.gz) echo "Untaring $installdir/$filename..." 19838 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 19839 ;; 19840 tgz) echo "Untaring $installdir/$filename..." 19841 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 19842 ;; 19843 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 19844 ;; 19845 esac 19846 fi 19847 if test -f $installdir/$filename.unpacked; then 19848 depdir=$installdir 19849 fi 19850 19851 fi 19852 # Source the builddeps file again, because in the previous command, the depdir 19853 # was updated to point at the current build dependency install directory. 19854 . $builddepsfile 19855 # Now extract variables from the builddeps.conf files. 19856 theroot=${builddep_bootjdk_ROOT} 19857 thecflags=${builddep_bootjdk_CFLAGS} 19858 thelibs=${builddep_bootjdk_LIBS} 19859 if test "x$depdir" = x; then 19860 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 19861 fi 19862 BOOT_JDK=$depdir 19863 if test "x$theroot" != x; then 19864 BOOT_JDK="$theroot" 19865 fi 19866 if test "x$thecflags" != x; then 19867 BOOT_JDK_CFLAGS="$thecflags" 19868 fi 19869 if test "x$thelibs" != x; then 19870 BOOT_JDK_LIBS="$thelibs" 19871 fi 19872 BOOT_JDK_FOUND=maybe 19873 else BOOT_JDK_FOUND=no 19874 19875 fi 19876 else BOOT_JDK_FOUND=no 19877 19878 fi 19879 19880 19881 19882 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19883 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19884 # Do we have a bin/java? 19885 if test ! -x "$BOOT_JDK/bin/java"; then 19886 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19887 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19888 BOOT_JDK_FOUND=no 19889 else 19890 # Do we have a bin/javac? 19891 if test ! -x "$BOOT_JDK/bin/javac"; then 19892 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19893 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19894 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19895 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19896 BOOT_JDK_FOUND=no 19897 else 19898 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19899 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19900 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19901 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19902 BOOT_JDK_FOUND=no 19903 else 19904 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19905 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19906 19907 # Extra M4 quote needed to protect [] in grep expression. 19908 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 19909 if test "x$FOUND_CORRECT_VERSION" = x; then 19910 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19911 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19912 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 19913 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 19914 BOOT_JDK_FOUND=no 19915 else 19916 # We're done! :-) 19917 BOOT_JDK_FOUND=yes 19918 19919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19920 19921 # Input might be given as Windows format, start by converting to 19922 # unix format. 19923 path="$BOOT_JDK" 19924 new_path=`$CYGPATH -u "$path"` 19925 19926 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19927 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19928 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19929 # "foo.exe" is OK but "foo" is an error. 19930 # 19931 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19932 # It is also a way to make sure we got the proper file name for the real test later on. 19933 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19934 if test "x$test_shortpath" = x; then 19935 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19936 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19937 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19938 fi 19939 19940 # Call helper function which possibly converts this using DOS-style short mode. 19941 # If so, the updated path is stored in $new_path. 19942 19943 input_path="$new_path" 19944 # Check if we need to convert this using DOS-style short mode. If the path 19945 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19946 # take no chances and rewrite it. 19947 # Note: m4 eats our [], so we need to use [ and ] instead. 19948 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19949 if test "x$has_forbidden_chars" != x; then 19950 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19951 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19952 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19953 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19954 # Going to short mode and back again did indeed matter. Since short mode is 19955 # case insensitive, let's make it lowercase to improve readability. 19956 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19957 # Now convert it back to Unix-stile (cygpath) 19958 input_path=`$CYGPATH -u "$shortmode_path"` 19959 new_path="$input_path" 19960 fi 19961 fi 19962 19963 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19964 if test "x$test_cygdrive_prefix" = x; then 19965 # As a simple fix, exclude /usr/bin since it's not a real path. 19966 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19967 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19968 # a path prefixed by /cygdrive for fixpath to work. 19969 new_path="$CYGWIN_ROOT_PATH$input_path" 19970 fi 19971 fi 19972 19973 19974 if test "x$path" != "x$new_path"; then 19975 BOOT_JDK="$new_path" 19976 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19977 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19978 fi 19979 19980 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19981 19982 path="$BOOT_JDK" 19983 has_colon=`$ECHO $path | $GREP ^.:` 19984 new_path="$path" 19985 if test "x$has_colon" = x; then 19986 # Not in mixed or Windows style, start by that. 19987 new_path=`cmd //c echo $path` 19988 fi 19989 19990 19991 input_path="$new_path" 19992 # Check if we need to convert this using DOS-style short mode. If the path 19993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19994 # take no chances and rewrite it. 19995 # Note: m4 eats our [], so we need to use [ and ] instead. 19996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19997 if test "x$has_forbidden_chars" != x; then 19998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19999 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20000 fi 20001 20002 20003 windows_path="$new_path" 20004 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20005 unix_path=`$CYGPATH -u "$windows_path"` 20006 new_path="$unix_path" 20007 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20008 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20009 new_path="$unix_path" 20010 fi 20011 20012 if test "x$path" != "x$new_path"; then 20013 BOOT_JDK="$new_path" 20014 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20015 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20016 fi 20017 20018 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20019 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20020 20021 else 20022 # We're on a posix platform. Hooray! :) 20023 path="$BOOT_JDK" 20024 has_space=`$ECHO "$path" | $GREP " "` 20025 if test "x$has_space" != x; then 20026 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20027 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20028 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20029 fi 20030 20031 # Use eval to expand a potential ~ 20032 eval path="$path" 20033 if test ! -f "$path" && test ! -d "$path"; then 20034 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20035 fi 20036 20037 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20038 fi 20039 20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20041 $as_echo_n "checking for Boot JDK... " >&6; } 20042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20043 $as_echo "$BOOT_JDK" >&6; } 20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20045 $as_echo_n "checking Boot JDK version... " >&6; } 20046 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20048 $as_echo "$BOOT_JDK_VERSION" >&6; } 20049 fi # end check jdk version 20050 fi # end check rt.jar 20051 fi # end check javac 20052 fi # end check java 20053 fi # end check boot jdk found 20054 fi 20055 20056 20057 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20058 20059 if test "x$BOOT_JDK_FOUND" = xno; then 20060 # Now execute the test 20061 20062 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20063 # First check at user selected default 20064 20065 if test "x$BOOT_JDK_FOUND" = xno; then 20066 # Now execute the test 20067 20068 if test -x /usr/libexec/java_home; then 20069 BOOT_JDK=`/usr/libexec/java_home ` 20070 BOOT_JDK_FOUND=maybe 20071 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20072 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20073 fi 20074 20075 20076 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20077 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20078 # Do we have a bin/java? 20079 if test ! -x "$BOOT_JDK/bin/java"; then 20080 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20081 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20082 BOOT_JDK_FOUND=no 20083 else 20084 # Do we have a bin/javac? 20085 if test ! -x "$BOOT_JDK/bin/javac"; then 20086 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20087 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20088 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20089 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20090 BOOT_JDK_FOUND=no 20091 else 20092 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20093 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20095 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20096 BOOT_JDK_FOUND=no 20097 else 20098 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20099 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20100 20101 # Extra M4 quote needed to protect [] in grep expression. 20102 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20103 if test "x$FOUND_CORRECT_VERSION" = x; then 20104 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20105 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20106 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20107 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20108 BOOT_JDK_FOUND=no 20109 else 20110 # We're done! :-) 20111 BOOT_JDK_FOUND=yes 20112 20113 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20114 20115 # Input might be given as Windows format, start by converting to 20116 # unix format. 20117 path="$BOOT_JDK" 20118 new_path=`$CYGPATH -u "$path"` 20119 20120 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20121 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20122 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20123 # "foo.exe" is OK but "foo" is an error. 20124 # 20125 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20126 # It is also a way to make sure we got the proper file name for the real test later on. 20127 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20128 if test "x$test_shortpath" = x; then 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20130 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20131 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20132 fi 20133 20134 # Call helper function which possibly converts this using DOS-style short mode. 20135 # If so, the updated path is stored in $new_path. 20136 20137 input_path="$new_path" 20138 # Check if we need to convert this using DOS-style short mode. If the path 20139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20140 # take no chances and rewrite it. 20141 # Note: m4 eats our [], so we need to use [ and ] instead. 20142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20143 if test "x$has_forbidden_chars" != x; then 20144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20145 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20146 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20147 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20148 # Going to short mode and back again did indeed matter. Since short mode is 20149 # case insensitive, let's make it lowercase to improve readability. 20150 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20151 # Now convert it back to Unix-stile (cygpath) 20152 input_path=`$CYGPATH -u "$shortmode_path"` 20153 new_path="$input_path" 20154 fi 20155 fi 20156 20157 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20158 if test "x$test_cygdrive_prefix" = x; then 20159 # As a simple fix, exclude /usr/bin since it's not a real path. 20160 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20161 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20162 # a path prefixed by /cygdrive for fixpath to work. 20163 new_path="$CYGWIN_ROOT_PATH$input_path" 20164 fi 20165 fi 20166 20167 20168 if test "x$path" != "x$new_path"; then 20169 BOOT_JDK="$new_path" 20170 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20171 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20172 fi 20173 20174 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20175 20176 path="$BOOT_JDK" 20177 has_colon=`$ECHO $path | $GREP ^.:` 20178 new_path="$path" 20179 if test "x$has_colon" = x; then 20180 # Not in mixed or Windows style, start by that. 20181 new_path=`cmd //c echo $path` 20182 fi 20183 20184 20185 input_path="$new_path" 20186 # Check if we need to convert this using DOS-style short mode. If the path 20187 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20188 # take no chances and rewrite it. 20189 # Note: m4 eats our [], so we need to use [ and ] instead. 20190 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20191 if test "x$has_forbidden_chars" != x; then 20192 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20193 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20194 fi 20195 20196 20197 windows_path="$new_path" 20198 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20199 unix_path=`$CYGPATH -u "$windows_path"` 20200 new_path="$unix_path" 20201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20202 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20203 new_path="$unix_path" 20204 fi 20205 20206 if test "x$path" != "x$new_path"; then 20207 BOOT_JDK="$new_path" 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20209 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20210 fi 20211 20212 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20213 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20214 20215 else 20216 # We're on a posix platform. Hooray! :) 20217 path="$BOOT_JDK" 20218 has_space=`$ECHO "$path" | $GREP " "` 20219 if test "x$has_space" != x; then 20220 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20221 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20222 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20223 fi 20224 20225 # Use eval to expand a potential ~ 20226 eval path="$path" 20227 if test ! -f "$path" && test ! -d "$path"; then 20228 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20229 fi 20230 20231 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20232 fi 20233 20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20235 $as_echo_n "checking for Boot JDK... " >&6; } 20236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20237 $as_echo "$BOOT_JDK" >&6; } 20238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20239 $as_echo_n "checking Boot JDK version... " >&6; } 20240 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20242 $as_echo "$BOOT_JDK_VERSION" >&6; } 20243 fi # end check jdk version 20244 fi # end check rt.jar 20245 fi # end check javac 20246 fi # end check java 20247 fi # end check boot jdk found 20248 fi 20249 20250 # If that did not work out (e.g. too old), try explicit versions instead 20251 20252 if test "x$BOOT_JDK_FOUND" = xno; then 20253 # Now execute the test 20254 20255 if test -x /usr/libexec/java_home; then 20256 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20257 BOOT_JDK_FOUND=maybe 20258 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20259 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20260 fi 20261 20262 20263 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20264 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20265 # Do we have a bin/java? 20266 if test ! -x "$BOOT_JDK/bin/java"; then 20267 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20268 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20269 BOOT_JDK_FOUND=no 20270 else 20271 # Do we have a bin/javac? 20272 if test ! -x "$BOOT_JDK/bin/javac"; then 20273 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20274 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20275 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20276 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20277 BOOT_JDK_FOUND=no 20278 else 20279 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20280 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20281 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20283 BOOT_JDK_FOUND=no 20284 else 20285 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20286 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20287 20288 # Extra M4 quote needed to protect [] in grep expression. 20289 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20290 if test "x$FOUND_CORRECT_VERSION" = x; then 20291 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20292 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20293 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20294 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20295 BOOT_JDK_FOUND=no 20296 else 20297 # We're done! :-) 20298 BOOT_JDK_FOUND=yes 20299 20300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20301 20302 # Input might be given as Windows format, start by converting to 20303 # unix format. 20304 path="$BOOT_JDK" 20305 new_path=`$CYGPATH -u "$path"` 20306 20307 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20308 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20309 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20310 # "foo.exe" is OK but "foo" is an error. 20311 # 20312 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20313 # It is also a way to make sure we got the proper file name for the real test later on. 20314 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20315 if test "x$test_shortpath" = x; then 20316 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20317 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20318 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20319 fi 20320 20321 # Call helper function which possibly converts this using DOS-style short mode. 20322 # If so, the updated path is stored in $new_path. 20323 20324 input_path="$new_path" 20325 # Check if we need to convert this using DOS-style short mode. If the path 20326 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20327 # take no chances and rewrite it. 20328 # Note: m4 eats our [], so we need to use [ and ] instead. 20329 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20330 if test "x$has_forbidden_chars" != x; then 20331 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20332 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20333 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20334 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20335 # Going to short mode and back again did indeed matter. Since short mode is 20336 # case insensitive, let's make it lowercase to improve readability. 20337 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20338 # Now convert it back to Unix-stile (cygpath) 20339 input_path=`$CYGPATH -u "$shortmode_path"` 20340 new_path="$input_path" 20341 fi 20342 fi 20343 20344 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20345 if test "x$test_cygdrive_prefix" = x; then 20346 # As a simple fix, exclude /usr/bin since it's not a real path. 20347 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20348 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20349 # a path prefixed by /cygdrive for fixpath to work. 20350 new_path="$CYGWIN_ROOT_PATH$input_path" 20351 fi 20352 fi 20353 20354 20355 if test "x$path" != "x$new_path"; then 20356 BOOT_JDK="$new_path" 20357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20358 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20359 fi 20360 20361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20362 20363 path="$BOOT_JDK" 20364 has_colon=`$ECHO $path | $GREP ^.:` 20365 new_path="$path" 20366 if test "x$has_colon" = x; then 20367 # Not in mixed or Windows style, start by that. 20368 new_path=`cmd //c echo $path` 20369 fi 20370 20371 20372 input_path="$new_path" 20373 # Check if we need to convert this using DOS-style short mode. If the path 20374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20375 # take no chances and rewrite it. 20376 # Note: m4 eats our [], so we need to use [ and ] instead. 20377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20378 if test "x$has_forbidden_chars" != x; then 20379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20381 fi 20382 20383 20384 windows_path="$new_path" 20385 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20386 unix_path=`$CYGPATH -u "$windows_path"` 20387 new_path="$unix_path" 20388 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20389 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20390 new_path="$unix_path" 20391 fi 20392 20393 if test "x$path" != "x$new_path"; then 20394 BOOT_JDK="$new_path" 20395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20396 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20397 fi 20398 20399 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20400 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20401 20402 else 20403 # We're on a posix platform. Hooray! :) 20404 path="$BOOT_JDK" 20405 has_space=`$ECHO "$path" | $GREP " "` 20406 if test "x$has_space" != x; then 20407 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20408 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20409 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20410 fi 20411 20412 # Use eval to expand a potential ~ 20413 eval path="$path" 20414 if test ! -f "$path" && test ! -d "$path"; then 20415 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20416 fi 20417 20418 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20419 fi 20420 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20422 $as_echo_n "checking for Boot JDK... " >&6; } 20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20424 $as_echo "$BOOT_JDK" >&6; } 20425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20426 $as_echo_n "checking Boot JDK version... " >&6; } 20427 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20429 $as_echo "$BOOT_JDK_VERSION" >&6; } 20430 fi # end check jdk version 20431 fi # end check rt.jar 20432 fi # end check javac 20433 fi # end check java 20434 fi # end check boot jdk found 20435 fi 20436 20437 20438 if test "x$BOOT_JDK_FOUND" = xno; then 20439 # Now execute the test 20440 20441 if test -x /usr/libexec/java_home; then 20442 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20443 BOOT_JDK_FOUND=maybe 20444 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20445 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20446 fi 20447 20448 20449 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20450 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20451 # Do we have a bin/java? 20452 if test ! -x "$BOOT_JDK/bin/java"; then 20453 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20455 BOOT_JDK_FOUND=no 20456 else 20457 # Do we have a bin/javac? 20458 if test ! -x "$BOOT_JDK/bin/javac"; then 20459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20461 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20462 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20463 BOOT_JDK_FOUND=no 20464 else 20465 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20466 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20467 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20469 BOOT_JDK_FOUND=no 20470 else 20471 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20472 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20473 20474 # Extra M4 quote needed to protect [] in grep expression. 20475 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20476 if test "x$FOUND_CORRECT_VERSION" = x; then 20477 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20479 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20480 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20481 BOOT_JDK_FOUND=no 20482 else 20483 # We're done! :-) 20484 BOOT_JDK_FOUND=yes 20485 20486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20487 20488 # Input might be given as Windows format, start by converting to 20489 # unix format. 20490 path="$BOOT_JDK" 20491 new_path=`$CYGPATH -u "$path"` 20492 20493 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20494 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20495 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20496 # "foo.exe" is OK but "foo" is an error. 20497 # 20498 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20499 # It is also a way to make sure we got the proper file name for the real test later on. 20500 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20501 if test "x$test_shortpath" = x; then 20502 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20504 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20505 fi 20506 20507 # Call helper function which possibly converts this using DOS-style short mode. 20508 # If so, the updated path is stored in $new_path. 20509 20510 input_path="$new_path" 20511 # Check if we need to convert this using DOS-style short mode. If the path 20512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20513 # take no chances and rewrite it. 20514 # Note: m4 eats our [], so we need to use [ and ] instead. 20515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20516 if test "x$has_forbidden_chars" != x; then 20517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20518 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20519 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20520 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20521 # Going to short mode and back again did indeed matter. Since short mode is 20522 # case insensitive, let's make it lowercase to improve readability. 20523 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20524 # Now convert it back to Unix-stile (cygpath) 20525 input_path=`$CYGPATH -u "$shortmode_path"` 20526 new_path="$input_path" 20527 fi 20528 fi 20529 20530 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20531 if test "x$test_cygdrive_prefix" = x; then 20532 # As a simple fix, exclude /usr/bin since it's not a real path. 20533 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20534 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20535 # a path prefixed by /cygdrive for fixpath to work. 20536 new_path="$CYGWIN_ROOT_PATH$input_path" 20537 fi 20538 fi 20539 20540 20541 if test "x$path" != "x$new_path"; then 20542 BOOT_JDK="$new_path" 20543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20545 fi 20546 20547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20548 20549 path="$BOOT_JDK" 20550 has_colon=`$ECHO $path | $GREP ^.:` 20551 new_path="$path" 20552 if test "x$has_colon" = x; then 20553 # Not in mixed or Windows style, start by that. 20554 new_path=`cmd //c echo $path` 20555 fi 20556 20557 20558 input_path="$new_path" 20559 # Check if we need to convert this using DOS-style short mode. If the path 20560 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20561 # take no chances and rewrite it. 20562 # Note: m4 eats our [], so we need to use [ and ] instead. 20563 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20564 if test "x$has_forbidden_chars" != x; then 20565 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20566 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20567 fi 20568 20569 20570 windows_path="$new_path" 20571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20572 unix_path=`$CYGPATH -u "$windows_path"` 20573 new_path="$unix_path" 20574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20576 new_path="$unix_path" 20577 fi 20578 20579 if test "x$path" != "x$new_path"; then 20580 BOOT_JDK="$new_path" 20581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20582 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20583 fi 20584 20585 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20586 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20587 20588 else 20589 # We're on a posix platform. Hooray! :) 20590 path="$BOOT_JDK" 20591 has_space=`$ECHO "$path" | $GREP " "` 20592 if test "x$has_space" != x; then 20593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20594 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20595 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20596 fi 20597 20598 # Use eval to expand a potential ~ 20599 eval path="$path" 20600 if test ! -f "$path" && test ! -d "$path"; then 20601 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20602 fi 20603 20604 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20605 fi 20606 20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20608 $as_echo_n "checking for Boot JDK... " >&6; } 20609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20610 $as_echo "$BOOT_JDK" >&6; } 20611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20612 $as_echo_n "checking Boot JDK version... " >&6; } 20613 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20615 $as_echo "$BOOT_JDK_VERSION" >&6; } 20616 fi # end check jdk version 20617 fi # end check rt.jar 20618 fi # end check javac 20619 fi # end check java 20620 fi # end check boot jdk found 20621 fi 20622 20623 20624 if test "x$BOOT_JDK_FOUND" = xno; then 20625 # Now execute the test 20626 20627 if test -x /usr/libexec/java_home; then 20628 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 20629 BOOT_JDK_FOUND=maybe 20630 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 20631 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 20632 fi 20633 20634 20635 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20636 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20637 # Do we have a bin/java? 20638 if test ! -x "$BOOT_JDK/bin/java"; then 20639 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20641 BOOT_JDK_FOUND=no 20642 else 20643 # Do we have a bin/javac? 20644 if test ! -x "$BOOT_JDK/bin/javac"; then 20645 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20646 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20647 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20648 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20649 BOOT_JDK_FOUND=no 20650 else 20651 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20652 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20653 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20654 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20655 BOOT_JDK_FOUND=no 20656 else 20657 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20658 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20659 20660 # Extra M4 quote needed to protect [] in grep expression. 20661 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20662 if test "x$FOUND_CORRECT_VERSION" = x; then 20663 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20664 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20665 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20666 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20667 BOOT_JDK_FOUND=no 20668 else 20669 # We're done! :-) 20670 BOOT_JDK_FOUND=yes 20671 20672 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20673 20674 # Input might be given as Windows format, start by converting to 20675 # unix format. 20676 path="$BOOT_JDK" 20677 new_path=`$CYGPATH -u "$path"` 20678 20679 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20680 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20681 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20682 # "foo.exe" is OK but "foo" is an error. 20683 # 20684 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20685 # It is also a way to make sure we got the proper file name for the real test later on. 20686 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20687 if test "x$test_shortpath" = x; then 20688 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20689 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20690 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20691 fi 20692 20693 # Call helper function which possibly converts this using DOS-style short mode. 20694 # If so, the updated path is stored in $new_path. 20695 20696 input_path="$new_path" 20697 # Check if we need to convert this using DOS-style short mode. If the path 20698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20699 # take no chances and rewrite it. 20700 # Note: m4 eats our [], so we need to use [ and ] instead. 20701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20702 if test "x$has_forbidden_chars" != x; then 20703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20704 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20705 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20706 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20707 # Going to short mode and back again did indeed matter. Since short mode is 20708 # case insensitive, let's make it lowercase to improve readability. 20709 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20710 # Now convert it back to Unix-stile (cygpath) 20711 input_path=`$CYGPATH -u "$shortmode_path"` 20712 new_path="$input_path" 20713 fi 20714 fi 20715 20716 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20717 if test "x$test_cygdrive_prefix" = x; then 20718 # As a simple fix, exclude /usr/bin since it's not a real path. 20719 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20720 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20721 # a path prefixed by /cygdrive for fixpath to work. 20722 new_path="$CYGWIN_ROOT_PATH$input_path" 20723 fi 20724 fi 20725 20726 20727 if test "x$path" != "x$new_path"; then 20728 BOOT_JDK="$new_path" 20729 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20730 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20731 fi 20732 20733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20734 20735 path="$BOOT_JDK" 20736 has_colon=`$ECHO $path | $GREP ^.:` 20737 new_path="$path" 20738 if test "x$has_colon" = x; then 20739 # Not in mixed or Windows style, start by that. 20740 new_path=`cmd //c echo $path` 20741 fi 20742 20743 20744 input_path="$new_path" 20745 # Check if we need to convert this using DOS-style short mode. If the path 20746 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20747 # take no chances and rewrite it. 20748 # Note: m4 eats our [], so we need to use [ and ] instead. 20749 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20750 if test "x$has_forbidden_chars" != x; then 20751 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20752 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20753 fi 20754 20755 20756 windows_path="$new_path" 20757 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20758 unix_path=`$CYGPATH -u "$windows_path"` 20759 new_path="$unix_path" 20760 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20761 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20762 new_path="$unix_path" 20763 fi 20764 20765 if test "x$path" != "x$new_path"; then 20766 BOOT_JDK="$new_path" 20767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20769 fi 20770 20771 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20772 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20773 20774 else 20775 # We're on a posix platform. Hooray! :) 20776 path="$BOOT_JDK" 20777 has_space=`$ECHO "$path" | $GREP " "` 20778 if test "x$has_space" != x; then 20779 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20780 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20781 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20782 fi 20783 20784 # Use eval to expand a potential ~ 20785 eval path="$path" 20786 if test ! -f "$path" && test ! -d "$path"; then 20787 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20788 fi 20789 20790 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20791 fi 20792 20793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20794 $as_echo_n "checking for Boot JDK... " >&6; } 20795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20796 $as_echo "$BOOT_JDK" >&6; } 20797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20798 $as_echo_n "checking Boot JDK version... " >&6; } 20799 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20801 $as_echo "$BOOT_JDK_VERSION" >&6; } 20802 fi # end check jdk version 20803 fi # end check rt.jar 20804 fi # end check javac 20805 fi # end check java 20806 fi # end check boot jdk found 20807 fi 20808 20809 fi 20810 20811 20812 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20813 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20814 # Do we have a bin/java? 20815 if test ! -x "$BOOT_JDK/bin/java"; then 20816 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20817 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20818 BOOT_JDK_FOUND=no 20819 else 20820 # Do we have a bin/javac? 20821 if test ! -x "$BOOT_JDK/bin/javac"; then 20822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20824 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20825 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20826 BOOT_JDK_FOUND=no 20827 else 20828 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20829 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20830 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20831 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20832 BOOT_JDK_FOUND=no 20833 else 20834 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20835 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20836 20837 # Extra M4 quote needed to protect [] in grep expression. 20838 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20839 if test "x$FOUND_CORRECT_VERSION" = x; then 20840 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20841 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20842 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20843 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20844 BOOT_JDK_FOUND=no 20845 else 20846 # We're done! :-) 20847 BOOT_JDK_FOUND=yes 20848 20849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20850 20851 # Input might be given as Windows format, start by converting to 20852 # unix format. 20853 path="$BOOT_JDK" 20854 new_path=`$CYGPATH -u "$path"` 20855 20856 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20857 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20858 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20859 # "foo.exe" is OK but "foo" is an error. 20860 # 20861 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20862 # It is also a way to make sure we got the proper file name for the real test later on. 20863 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20864 if test "x$test_shortpath" = x; then 20865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20866 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20867 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20868 fi 20869 20870 # Call helper function which possibly converts this using DOS-style short mode. 20871 # If so, the updated path is stored in $new_path. 20872 20873 input_path="$new_path" 20874 # Check if we need to convert this using DOS-style short mode. If the path 20875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20876 # take no chances and rewrite it. 20877 # Note: m4 eats our [], so we need to use [ and ] instead. 20878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20879 if test "x$has_forbidden_chars" != x; then 20880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20881 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20882 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20883 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20884 # Going to short mode and back again did indeed matter. Since short mode is 20885 # case insensitive, let's make it lowercase to improve readability. 20886 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20887 # Now convert it back to Unix-stile (cygpath) 20888 input_path=`$CYGPATH -u "$shortmode_path"` 20889 new_path="$input_path" 20890 fi 20891 fi 20892 20893 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20894 if test "x$test_cygdrive_prefix" = x; then 20895 # As a simple fix, exclude /usr/bin since it's not a real path. 20896 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20897 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20898 # a path prefixed by /cygdrive for fixpath to work. 20899 new_path="$CYGWIN_ROOT_PATH$input_path" 20900 fi 20901 fi 20902 20903 20904 if test "x$path" != "x$new_path"; then 20905 BOOT_JDK="$new_path" 20906 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20907 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20908 fi 20909 20910 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20911 20912 path="$BOOT_JDK" 20913 has_colon=`$ECHO $path | $GREP ^.:` 20914 new_path="$path" 20915 if test "x$has_colon" = x; then 20916 # Not in mixed or Windows style, start by that. 20917 new_path=`cmd //c echo $path` 20918 fi 20919 20920 20921 input_path="$new_path" 20922 # Check if we need to convert this using DOS-style short mode. If the path 20923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20924 # take no chances and rewrite it. 20925 # Note: m4 eats our [], so we need to use [ and ] instead. 20926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20927 if test "x$has_forbidden_chars" != x; then 20928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20929 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20930 fi 20931 20932 20933 windows_path="$new_path" 20934 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20935 unix_path=`$CYGPATH -u "$windows_path"` 20936 new_path="$unix_path" 20937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20938 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20939 new_path="$unix_path" 20940 fi 20941 20942 if test "x$path" != "x$new_path"; then 20943 BOOT_JDK="$new_path" 20944 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20945 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20946 fi 20947 20948 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20949 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20950 20951 else 20952 # We're on a posix platform. Hooray! :) 20953 path="$BOOT_JDK" 20954 has_space=`$ECHO "$path" | $GREP " "` 20955 if test "x$has_space" != x; then 20956 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20957 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20958 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20959 fi 20960 20961 # Use eval to expand a potential ~ 20962 eval path="$path" 20963 if test ! -f "$path" && test ! -d "$path"; then 20964 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20965 fi 20966 20967 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20968 fi 20969 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20971 $as_echo_n "checking for Boot JDK... " >&6; } 20972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20973 $as_echo "$BOOT_JDK" >&6; } 20974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20975 $as_echo_n "checking Boot JDK version... " >&6; } 20976 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20978 $as_echo "$BOOT_JDK_VERSION" >&6; } 20979 fi # end check jdk version 20980 fi # end check rt.jar 20981 fi # end check javac 20982 fi # end check java 20983 fi # end check boot jdk found 20984 fi 20985 20986 20987 # Test: Is $JAVA_HOME set? 20988 20989 if test "x$BOOT_JDK_FOUND" = xno; then 20990 # Now execute the test 20991 20992 if test "x$JAVA_HOME" != x; then 20993 JAVA_HOME_PROCESSED="$JAVA_HOME" 20994 20995 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20996 20997 # Input might be given as Windows format, start by converting to 20998 # unix format. 20999 path="$JAVA_HOME_PROCESSED" 21000 new_path=`$CYGPATH -u "$path"` 21001 21002 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21003 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21004 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21005 # "foo.exe" is OK but "foo" is an error. 21006 # 21007 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21008 # It is also a way to make sure we got the proper file name for the real test later on. 21009 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21010 if test "x$test_shortpath" = x; then 21011 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21012 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21013 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21014 fi 21015 21016 # Call helper function which possibly converts this using DOS-style short mode. 21017 # If so, the updated path is stored in $new_path. 21018 21019 input_path="$new_path" 21020 # Check if we need to convert this using DOS-style short mode. If the path 21021 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21022 # take no chances and rewrite it. 21023 # Note: m4 eats our [], so we need to use [ and ] instead. 21024 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21025 if test "x$has_forbidden_chars" != x; then 21026 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21027 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21028 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21029 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21030 # Going to short mode and back again did indeed matter. Since short mode is 21031 # case insensitive, let's make it lowercase to improve readability. 21032 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21033 # Now convert it back to Unix-stile (cygpath) 21034 input_path=`$CYGPATH -u "$shortmode_path"` 21035 new_path="$input_path" 21036 fi 21037 fi 21038 21039 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21040 if test "x$test_cygdrive_prefix" = x; then 21041 # As a simple fix, exclude /usr/bin since it's not a real path. 21042 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21043 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21044 # a path prefixed by /cygdrive for fixpath to work. 21045 new_path="$CYGWIN_ROOT_PATH$input_path" 21046 fi 21047 fi 21048 21049 21050 if test "x$path" != "x$new_path"; then 21051 JAVA_HOME_PROCESSED="$new_path" 21052 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21053 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21054 fi 21055 21056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21057 21058 path="$JAVA_HOME_PROCESSED" 21059 has_colon=`$ECHO $path | $GREP ^.:` 21060 new_path="$path" 21061 if test "x$has_colon" = x; then 21062 # Not in mixed or Windows style, start by that. 21063 new_path=`cmd //c echo $path` 21064 fi 21065 21066 21067 input_path="$new_path" 21068 # Check if we need to convert this using DOS-style short mode. If the path 21069 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21070 # take no chances and rewrite it. 21071 # Note: m4 eats our [], so we need to use [ and ] instead. 21072 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21073 if test "x$has_forbidden_chars" != x; then 21074 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21075 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21076 fi 21077 21078 21079 windows_path="$new_path" 21080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21081 unix_path=`$CYGPATH -u "$windows_path"` 21082 new_path="$unix_path" 21083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21084 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21085 new_path="$unix_path" 21086 fi 21087 21088 if test "x$path" != "x$new_path"; then 21089 JAVA_HOME_PROCESSED="$new_path" 21090 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21091 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21092 fi 21093 21094 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21095 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21096 21097 else 21098 # We're on a posix platform. Hooray! :) 21099 path="$JAVA_HOME_PROCESSED" 21100 has_space=`$ECHO "$path" | $GREP " "` 21101 if test "x$has_space" != x; then 21102 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21103 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21104 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21105 fi 21106 21107 # Use eval to expand a potential ~ 21108 eval path="$path" 21109 if test ! -f "$path" && test ! -d "$path"; then 21110 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21111 fi 21112 21113 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21114 fi 21115 21116 if test ! -d "$JAVA_HOME_PROCESSED"; then 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21118 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21119 else 21120 # Aha, the user has set a JAVA_HOME 21121 # let us use that as the Boot JDK. 21122 BOOT_JDK="$JAVA_HOME_PROCESSED" 21123 BOOT_JDK_FOUND=maybe 21124 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21125 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21126 fi 21127 fi 21128 21129 21130 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21131 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21132 # Do we have a bin/java? 21133 if test ! -x "$BOOT_JDK/bin/java"; then 21134 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21135 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21136 BOOT_JDK_FOUND=no 21137 else 21138 # Do we have a bin/javac? 21139 if test ! -x "$BOOT_JDK/bin/javac"; then 21140 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21141 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21142 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21143 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21144 BOOT_JDK_FOUND=no 21145 else 21146 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21147 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21148 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21149 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21150 BOOT_JDK_FOUND=no 21151 else 21152 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21153 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21154 21155 # Extra M4 quote needed to protect [] in grep expression. 21156 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21157 if test "x$FOUND_CORRECT_VERSION" = x; then 21158 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21159 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21160 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21161 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21162 BOOT_JDK_FOUND=no 21163 else 21164 # We're done! :-) 21165 BOOT_JDK_FOUND=yes 21166 21167 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21168 21169 # Input might be given as Windows format, start by converting to 21170 # unix format. 21171 path="$BOOT_JDK" 21172 new_path=`$CYGPATH -u "$path"` 21173 21174 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21175 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21176 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21177 # "foo.exe" is OK but "foo" is an error. 21178 # 21179 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21180 # It is also a way to make sure we got the proper file name for the real test later on. 21181 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21182 if test "x$test_shortpath" = x; then 21183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21184 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21185 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21186 fi 21187 21188 # Call helper function which possibly converts this using DOS-style short mode. 21189 # If so, the updated path is stored in $new_path. 21190 21191 input_path="$new_path" 21192 # Check if we need to convert this using DOS-style short mode. If the path 21193 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21194 # take no chances and rewrite it. 21195 # Note: m4 eats our [], so we need to use [ and ] instead. 21196 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21197 if test "x$has_forbidden_chars" != x; then 21198 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21199 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21200 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21201 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21202 # Going to short mode and back again did indeed matter. Since short mode is 21203 # case insensitive, let's make it lowercase to improve readability. 21204 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21205 # Now convert it back to Unix-stile (cygpath) 21206 input_path=`$CYGPATH -u "$shortmode_path"` 21207 new_path="$input_path" 21208 fi 21209 fi 21210 21211 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21212 if test "x$test_cygdrive_prefix" = x; then 21213 # As a simple fix, exclude /usr/bin since it's not a real path. 21214 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21215 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21216 # a path prefixed by /cygdrive for fixpath to work. 21217 new_path="$CYGWIN_ROOT_PATH$input_path" 21218 fi 21219 fi 21220 21221 21222 if test "x$path" != "x$new_path"; then 21223 BOOT_JDK="$new_path" 21224 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21225 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21226 fi 21227 21228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21229 21230 path="$BOOT_JDK" 21231 has_colon=`$ECHO $path | $GREP ^.:` 21232 new_path="$path" 21233 if test "x$has_colon" = x; then 21234 # Not in mixed or Windows style, start by that. 21235 new_path=`cmd //c echo $path` 21236 fi 21237 21238 21239 input_path="$new_path" 21240 # Check if we need to convert this using DOS-style short mode. If the path 21241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21242 # take no chances and rewrite it. 21243 # Note: m4 eats our [], so we need to use [ and ] instead. 21244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21245 if test "x$has_forbidden_chars" != x; then 21246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21247 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21248 fi 21249 21250 21251 windows_path="$new_path" 21252 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21253 unix_path=`$CYGPATH -u "$windows_path"` 21254 new_path="$unix_path" 21255 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21256 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21257 new_path="$unix_path" 21258 fi 21259 21260 if test "x$path" != "x$new_path"; then 21261 BOOT_JDK="$new_path" 21262 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21263 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21264 fi 21265 21266 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21267 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21268 21269 else 21270 # We're on a posix platform. Hooray! :) 21271 path="$BOOT_JDK" 21272 has_space=`$ECHO "$path" | $GREP " "` 21273 if test "x$has_space" != x; then 21274 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21275 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21276 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21277 fi 21278 21279 # Use eval to expand a potential ~ 21280 eval path="$path" 21281 if test ! -f "$path" && test ! -d "$path"; then 21282 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21283 fi 21284 21285 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21286 fi 21287 21288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21289 $as_echo_n "checking for Boot JDK... " >&6; } 21290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21291 $as_echo "$BOOT_JDK" >&6; } 21292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21293 $as_echo_n "checking Boot JDK version... " >&6; } 21294 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21296 $as_echo "$BOOT_JDK_VERSION" >&6; } 21297 fi # end check jdk version 21298 fi # end check rt.jar 21299 fi # end check javac 21300 fi # end check java 21301 fi # end check boot jdk found 21302 fi 21303 21304 21305 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21306 21307 if test "x$BOOT_JDK_FOUND" = xno; then 21308 # Now execute the test 21309 21310 # Extract the first word of "javac", so it can be a program name with args. 21311 set dummy javac; ac_word=$2 21312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21313 $as_echo_n "checking for $ac_word... " >&6; } 21314 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21315 $as_echo_n "(cached) " >&6 21316 else 21317 case $JAVAC_CHECK in 21318 [\\/]* | ?:[\\/]*) 21319 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21320 ;; 21321 *) 21322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21323 for as_dir in $PATH 21324 do 21325 IFS=$as_save_IFS 21326 test -z "$as_dir" && as_dir=. 21327 for ac_exec_ext in '' $ac_executable_extensions; do 21328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21329 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21331 break 2 21332 fi 21333 done 21334 done 21335 IFS=$as_save_IFS 21336 21337 ;; 21338 esac 21339 fi 21340 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21341 if test -n "$JAVAC_CHECK"; then 21342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21343 $as_echo "$JAVAC_CHECK" >&6; } 21344 else 21345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21346 $as_echo "no" >&6; } 21347 fi 21348 21349 21350 # Extract the first word of "java", so it can be a program name with args. 21351 set dummy java; ac_word=$2 21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21353 $as_echo_n "checking for $ac_word... " >&6; } 21354 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21355 $as_echo_n "(cached) " >&6 21356 else 21357 case $JAVA_CHECK in 21358 [\\/]* | ?:[\\/]*) 21359 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21360 ;; 21361 *) 21362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21363 for as_dir in $PATH 21364 do 21365 IFS=$as_save_IFS 21366 test -z "$as_dir" && as_dir=. 21367 for ac_exec_ext in '' $ac_executable_extensions; do 21368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21369 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21371 break 2 21372 fi 21373 done 21374 done 21375 IFS=$as_save_IFS 21376 21377 ;; 21378 esac 21379 fi 21380 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21381 if test -n "$JAVA_CHECK"; then 21382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21383 $as_echo "$JAVA_CHECK" >&6; } 21384 else 21385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21386 $as_echo "no" >&6; } 21387 fi 21388 21389 21390 BINARY="$JAVAC_CHECK" 21391 if test "x$JAVAC_CHECK" = x; then 21392 BINARY="$JAVA_CHECK" 21393 fi 21394 if test "x$BINARY" != x; then 21395 # So there is a java(c) binary, it might be part of a JDK. 21396 # Lets find the JDK/JRE directory by following symbolic links. 21397 # Linux/GNU systems often have links from /usr/bin/java to 21398 # /etc/alternatives/java to the real JDK binary. 21399 21400 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21401 # Follow a chain of symbolic links. Use readlink 21402 # where it exists, else fall back to horribly 21403 # complicated shell code. 21404 if test "x$READLINK_TESTED" != yes; then 21405 # On MacOSX there is a readlink tool with a different 21406 # purpose than the GNU readlink tool. Check the found readlink. 21407 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21408 if test "x$ISGNU" = x; then 21409 # A readlink that we do not know how to use. 21410 # Are there other non-GNU readlinks out there? 21411 READLINK_TESTED=yes 21412 READLINK= 21413 fi 21414 fi 21415 21416 if test "x$READLINK" != x; then 21417 BINARY=`$READLINK -f $BINARY` 21418 else 21419 # Save the current directory for restoring afterwards 21420 STARTDIR=$PWD 21421 COUNTER=0 21422 sym_link_dir=`$DIRNAME $BINARY` 21423 sym_link_file=`$BASENAME $BINARY` 21424 cd $sym_link_dir 21425 # Use -P flag to resolve symlinks in directories. 21426 cd `$THEPWDCMD -P` 21427 sym_link_dir=`$THEPWDCMD -P` 21428 # Resolve file symlinks 21429 while test $COUNTER -lt 20; do 21430 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21431 if test "x$ISLINK" == x; then 21432 # This is not a symbolic link! We are done! 21433 break 21434 fi 21435 # Again resolve directory symlinks since the target of the just found 21436 # link could be in a different directory 21437 cd `$DIRNAME $ISLINK` 21438 sym_link_dir=`$THEPWDCMD -P` 21439 sym_link_file=`$BASENAME $ISLINK` 21440 let COUNTER=COUNTER+1 21441 done 21442 cd $STARTDIR 21443 BINARY=$sym_link_dir/$sym_link_file 21444 fi 21445 fi 21446 21447 BOOT_JDK=`dirname "$BINARY"` 21448 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21449 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21450 # Looks like we found ourselves an JDK 21451 BOOT_JDK_FOUND=maybe 21452 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21453 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21454 fi 21455 fi 21456 21457 21458 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21459 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21460 # Do we have a bin/java? 21461 if test ! -x "$BOOT_JDK/bin/java"; then 21462 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21463 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21464 BOOT_JDK_FOUND=no 21465 else 21466 # Do we have a bin/javac? 21467 if test ! -x "$BOOT_JDK/bin/javac"; then 21468 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21469 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21471 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21472 BOOT_JDK_FOUND=no 21473 else 21474 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21475 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21476 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21478 BOOT_JDK_FOUND=no 21479 else 21480 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21481 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21482 21483 # Extra M4 quote needed to protect [] in grep expression. 21484 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21485 if test "x$FOUND_CORRECT_VERSION" = x; then 21486 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21487 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21488 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21489 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21490 BOOT_JDK_FOUND=no 21491 else 21492 # We're done! :-) 21493 BOOT_JDK_FOUND=yes 21494 21495 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21496 21497 # Input might be given as Windows format, start by converting to 21498 # unix format. 21499 path="$BOOT_JDK" 21500 new_path=`$CYGPATH -u "$path"` 21501 21502 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21503 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21504 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21505 # "foo.exe" is OK but "foo" is an error. 21506 # 21507 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21508 # It is also a way to make sure we got the proper file name for the real test later on. 21509 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21510 if test "x$test_shortpath" = x; then 21511 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21512 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21513 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21514 fi 21515 21516 # Call helper function which possibly converts this using DOS-style short mode. 21517 # If so, the updated path is stored in $new_path. 21518 21519 input_path="$new_path" 21520 # Check if we need to convert this using DOS-style short mode. If the path 21521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21522 # take no chances and rewrite it. 21523 # Note: m4 eats our [], so we need to use [ and ] instead. 21524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21525 if test "x$has_forbidden_chars" != x; then 21526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21530 # Going to short mode and back again did indeed matter. Since short mode is 21531 # case insensitive, let's make it lowercase to improve readability. 21532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21533 # Now convert it back to Unix-stile (cygpath) 21534 input_path=`$CYGPATH -u "$shortmode_path"` 21535 new_path="$input_path" 21536 fi 21537 fi 21538 21539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21540 if test "x$test_cygdrive_prefix" = x; then 21541 # As a simple fix, exclude /usr/bin since it's not a real path. 21542 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21544 # a path prefixed by /cygdrive for fixpath to work. 21545 new_path="$CYGWIN_ROOT_PATH$input_path" 21546 fi 21547 fi 21548 21549 21550 if test "x$path" != "x$new_path"; then 21551 BOOT_JDK="$new_path" 21552 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21553 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21554 fi 21555 21556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21557 21558 path="$BOOT_JDK" 21559 has_colon=`$ECHO $path | $GREP ^.:` 21560 new_path="$path" 21561 if test "x$has_colon" = x; then 21562 # Not in mixed or Windows style, start by that. 21563 new_path=`cmd //c echo $path` 21564 fi 21565 21566 21567 input_path="$new_path" 21568 # Check if we need to convert this using DOS-style short mode. If the path 21569 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21570 # take no chances and rewrite it. 21571 # Note: m4 eats our [], so we need to use [ and ] instead. 21572 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21573 if test "x$has_forbidden_chars" != x; then 21574 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21575 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21576 fi 21577 21578 21579 windows_path="$new_path" 21580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21581 unix_path=`$CYGPATH -u "$windows_path"` 21582 new_path="$unix_path" 21583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21585 new_path="$unix_path" 21586 fi 21587 21588 if test "x$path" != "x$new_path"; then 21589 BOOT_JDK="$new_path" 21590 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21591 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21592 fi 21593 21594 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21595 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21596 21597 else 21598 # We're on a posix platform. Hooray! :) 21599 path="$BOOT_JDK" 21600 has_space=`$ECHO "$path" | $GREP " "` 21601 if test "x$has_space" != x; then 21602 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21603 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21604 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21605 fi 21606 21607 # Use eval to expand a potential ~ 21608 eval path="$path" 21609 if test ! -f "$path" && test ! -d "$path"; then 21610 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21611 fi 21612 21613 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21614 fi 21615 21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21617 $as_echo_n "checking for Boot JDK... " >&6; } 21618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21619 $as_echo "$BOOT_JDK" >&6; } 21620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21621 $as_echo_n "checking Boot JDK version... " >&6; } 21622 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21624 $as_echo "$BOOT_JDK_VERSION" >&6; } 21625 fi # end check jdk version 21626 fi # end check rt.jar 21627 fi # end check javac 21628 fi # end check java 21629 fi # end check boot jdk found 21630 fi 21631 21632 21633 # Test: Is there a JDK installed in default, well-known locations? 21634 21635 if test "x$BOOT_JDK_FOUND" = xno; then 21636 # Now execute the test 21637 21638 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21639 21640 if test "x$BOOT_JDK_FOUND" = xno; then 21641 # Now execute the test 21642 21643 if test "x$ProgramW6432" != x; then 21644 VIRTUAL_DIR="$ProgramW6432/Java" 21645 21646 windows_path="$VIRTUAL_DIR" 21647 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21648 unix_path=`$CYGPATH -u "$windows_path"` 21649 VIRTUAL_DIR="$unix_path" 21650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21651 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21652 VIRTUAL_DIR="$unix_path" 21653 fi 21654 21655 21656 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21657 BOOT_JDK_SUFFIX="" 21658 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21659 if test "x$ALL_JDKS_FOUND" != x; then 21660 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21661 21662 if test "x$BOOT_JDK_FOUND" = xno; then 21663 # Now execute the test 21664 21665 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21666 if test -d "$BOOT_JDK"; then 21667 BOOT_JDK_FOUND=maybe 21668 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21669 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21670 fi 21671 21672 21673 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21674 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21675 # Do we have a bin/java? 21676 if test ! -x "$BOOT_JDK/bin/java"; then 21677 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21678 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21679 BOOT_JDK_FOUND=no 21680 else 21681 # Do we have a bin/javac? 21682 if test ! -x "$BOOT_JDK/bin/javac"; then 21683 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21684 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21685 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21686 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21687 BOOT_JDK_FOUND=no 21688 else 21689 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21690 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21691 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21692 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21693 BOOT_JDK_FOUND=no 21694 else 21695 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21696 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21697 21698 # Extra M4 quote needed to protect [] in grep expression. 21699 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21700 if test "x$FOUND_CORRECT_VERSION" = x; then 21701 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21702 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21703 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21704 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21705 BOOT_JDK_FOUND=no 21706 else 21707 # We're done! :-) 21708 BOOT_JDK_FOUND=yes 21709 21710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21711 21712 # Input might be given as Windows format, start by converting to 21713 # unix format. 21714 path="$BOOT_JDK" 21715 new_path=`$CYGPATH -u "$path"` 21716 21717 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21718 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21719 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21720 # "foo.exe" is OK but "foo" is an error. 21721 # 21722 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21723 # It is also a way to make sure we got the proper file name for the real test later on. 21724 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21725 if test "x$test_shortpath" = x; then 21726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21727 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21728 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21729 fi 21730 21731 # Call helper function which possibly converts this using DOS-style short mode. 21732 # If so, the updated path is stored in $new_path. 21733 21734 input_path="$new_path" 21735 # Check if we need to convert this using DOS-style short mode. If the path 21736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21737 # take no chances and rewrite it. 21738 # Note: m4 eats our [], so we need to use [ and ] instead. 21739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21740 if test "x$has_forbidden_chars" != x; then 21741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21742 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21743 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21744 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21745 # Going to short mode and back again did indeed matter. Since short mode is 21746 # case insensitive, let's make it lowercase to improve readability. 21747 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21748 # Now convert it back to Unix-stile (cygpath) 21749 input_path=`$CYGPATH -u "$shortmode_path"` 21750 new_path="$input_path" 21751 fi 21752 fi 21753 21754 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21755 if test "x$test_cygdrive_prefix" = x; then 21756 # As a simple fix, exclude /usr/bin since it's not a real path. 21757 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21758 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21759 # a path prefixed by /cygdrive for fixpath to work. 21760 new_path="$CYGWIN_ROOT_PATH$input_path" 21761 fi 21762 fi 21763 21764 21765 if test "x$path" != "x$new_path"; then 21766 BOOT_JDK="$new_path" 21767 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21768 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21769 fi 21770 21771 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21772 21773 path="$BOOT_JDK" 21774 has_colon=`$ECHO $path | $GREP ^.:` 21775 new_path="$path" 21776 if test "x$has_colon" = x; then 21777 # Not in mixed or Windows style, start by that. 21778 new_path=`cmd //c echo $path` 21779 fi 21780 21781 21782 input_path="$new_path" 21783 # Check if we need to convert this using DOS-style short mode. If the path 21784 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21785 # take no chances and rewrite it. 21786 # Note: m4 eats our [], so we need to use [ and ] instead. 21787 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21788 if test "x$has_forbidden_chars" != x; then 21789 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21790 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21791 fi 21792 21793 21794 windows_path="$new_path" 21795 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21796 unix_path=`$CYGPATH -u "$windows_path"` 21797 new_path="$unix_path" 21798 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21799 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21800 new_path="$unix_path" 21801 fi 21802 21803 if test "x$path" != "x$new_path"; then 21804 BOOT_JDK="$new_path" 21805 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21806 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21807 fi 21808 21809 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21810 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21811 21812 else 21813 # We're on a posix platform. Hooray! :) 21814 path="$BOOT_JDK" 21815 has_space=`$ECHO "$path" | $GREP " "` 21816 if test "x$has_space" != x; then 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21819 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21820 fi 21821 21822 # Use eval to expand a potential ~ 21823 eval path="$path" 21824 if test ! -f "$path" && test ! -d "$path"; then 21825 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21826 fi 21827 21828 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21829 fi 21830 21831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21832 $as_echo_n "checking for Boot JDK... " >&6; } 21833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21834 $as_echo "$BOOT_JDK" >&6; } 21835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21836 $as_echo_n "checking Boot JDK version... " >&6; } 21837 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21839 $as_echo "$BOOT_JDK_VERSION" >&6; } 21840 fi # end check jdk version 21841 fi # end check rt.jar 21842 fi # end check javac 21843 fi # end check java 21844 fi # end check boot jdk found 21845 fi 21846 21847 done 21848 fi 21849 21850 fi 21851 21852 21853 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21854 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21855 # Do we have a bin/java? 21856 if test ! -x "$BOOT_JDK/bin/java"; then 21857 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21858 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21859 BOOT_JDK_FOUND=no 21860 else 21861 # Do we have a bin/javac? 21862 if test ! -x "$BOOT_JDK/bin/javac"; then 21863 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21864 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21865 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21866 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21867 BOOT_JDK_FOUND=no 21868 else 21869 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21870 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21871 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21872 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21873 BOOT_JDK_FOUND=no 21874 else 21875 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21876 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21877 21878 # Extra M4 quote needed to protect [] in grep expression. 21879 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21880 if test "x$FOUND_CORRECT_VERSION" = x; then 21881 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21882 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21883 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21884 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21885 BOOT_JDK_FOUND=no 21886 else 21887 # We're done! :-) 21888 BOOT_JDK_FOUND=yes 21889 21890 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21891 21892 # Input might be given as Windows format, start by converting to 21893 # unix format. 21894 path="$BOOT_JDK" 21895 new_path=`$CYGPATH -u "$path"` 21896 21897 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21898 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21899 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21900 # "foo.exe" is OK but "foo" is an error. 21901 # 21902 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21903 # It is also a way to make sure we got the proper file name for the real test later on. 21904 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21905 if test "x$test_shortpath" = x; then 21906 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21907 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21908 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21909 fi 21910 21911 # Call helper function which possibly converts this using DOS-style short mode. 21912 # If so, the updated path is stored in $new_path. 21913 21914 input_path="$new_path" 21915 # Check if we need to convert this using DOS-style short mode. If the path 21916 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21917 # take no chances and rewrite it. 21918 # Note: m4 eats our [], so we need to use [ and ] instead. 21919 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21920 if test "x$has_forbidden_chars" != x; then 21921 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21922 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21923 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21924 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21925 # Going to short mode and back again did indeed matter. Since short mode is 21926 # case insensitive, let's make it lowercase to improve readability. 21927 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21928 # Now convert it back to Unix-stile (cygpath) 21929 input_path=`$CYGPATH -u "$shortmode_path"` 21930 new_path="$input_path" 21931 fi 21932 fi 21933 21934 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21935 if test "x$test_cygdrive_prefix" = x; then 21936 # As a simple fix, exclude /usr/bin since it's not a real path. 21937 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21938 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21939 # a path prefixed by /cygdrive for fixpath to work. 21940 new_path="$CYGWIN_ROOT_PATH$input_path" 21941 fi 21942 fi 21943 21944 21945 if test "x$path" != "x$new_path"; then 21946 BOOT_JDK="$new_path" 21947 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21948 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21949 fi 21950 21951 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21952 21953 path="$BOOT_JDK" 21954 has_colon=`$ECHO $path | $GREP ^.:` 21955 new_path="$path" 21956 if test "x$has_colon" = x; then 21957 # Not in mixed or Windows style, start by that. 21958 new_path=`cmd //c echo $path` 21959 fi 21960 21961 21962 input_path="$new_path" 21963 # Check if we need to convert this using DOS-style short mode. If the path 21964 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21965 # take no chances and rewrite it. 21966 # Note: m4 eats our [], so we need to use [ and ] instead. 21967 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21968 if test "x$has_forbidden_chars" != x; then 21969 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21970 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21971 fi 21972 21973 21974 windows_path="$new_path" 21975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21976 unix_path=`$CYGPATH -u "$windows_path"` 21977 new_path="$unix_path" 21978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21980 new_path="$unix_path" 21981 fi 21982 21983 if test "x$path" != "x$new_path"; then 21984 BOOT_JDK="$new_path" 21985 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21986 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21987 fi 21988 21989 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21990 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21991 21992 else 21993 # We're on a posix platform. Hooray! :) 21994 path="$BOOT_JDK" 21995 has_space=`$ECHO "$path" | $GREP " "` 21996 if test "x$has_space" != x; then 21997 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21998 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21999 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22000 fi 22001 22002 # Use eval to expand a potential ~ 22003 eval path="$path" 22004 if test ! -f "$path" && test ! -d "$path"; then 22005 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22006 fi 22007 22008 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22009 fi 22010 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22012 $as_echo_n "checking for Boot JDK... " >&6; } 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22014 $as_echo "$BOOT_JDK" >&6; } 22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22016 $as_echo_n "checking Boot JDK version... " >&6; } 22017 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22019 $as_echo "$BOOT_JDK_VERSION" >&6; } 22020 fi # end check jdk version 22021 fi # end check rt.jar 22022 fi # end check javac 22023 fi # end check java 22024 fi # end check boot jdk found 22025 fi 22026 22027 22028 if test "x$BOOT_JDK_FOUND" = xno; then 22029 # Now execute the test 22030 22031 if test "x$PROGRAMW6432" != x; then 22032 VIRTUAL_DIR="$PROGRAMW6432/Java" 22033 22034 windows_path="$VIRTUAL_DIR" 22035 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22036 unix_path=`$CYGPATH -u "$windows_path"` 22037 VIRTUAL_DIR="$unix_path" 22038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22039 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22040 VIRTUAL_DIR="$unix_path" 22041 fi 22042 22043 22044 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22045 BOOT_JDK_SUFFIX="" 22046 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22047 if test "x$ALL_JDKS_FOUND" != x; then 22048 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22049 22050 if test "x$BOOT_JDK_FOUND" = xno; then 22051 # Now execute the test 22052 22053 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22054 if test -d "$BOOT_JDK"; then 22055 BOOT_JDK_FOUND=maybe 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22057 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22058 fi 22059 22060 22061 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22062 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22063 # Do we have a bin/java? 22064 if test ! -x "$BOOT_JDK/bin/java"; then 22065 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22066 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22067 BOOT_JDK_FOUND=no 22068 else 22069 # Do we have a bin/javac? 22070 if test ! -x "$BOOT_JDK/bin/javac"; then 22071 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22072 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22073 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22074 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22075 BOOT_JDK_FOUND=no 22076 else 22077 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22078 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22079 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22080 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22081 BOOT_JDK_FOUND=no 22082 else 22083 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22084 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22085 22086 # Extra M4 quote needed to protect [] in grep expression. 22087 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22088 if test "x$FOUND_CORRECT_VERSION" = x; then 22089 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22090 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22091 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22092 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22093 BOOT_JDK_FOUND=no 22094 else 22095 # We're done! :-) 22096 BOOT_JDK_FOUND=yes 22097 22098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22099 22100 # Input might be given as Windows format, start by converting to 22101 # unix format. 22102 path="$BOOT_JDK" 22103 new_path=`$CYGPATH -u "$path"` 22104 22105 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22106 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22107 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22108 # "foo.exe" is OK but "foo" is an error. 22109 # 22110 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22111 # It is also a way to make sure we got the proper file name for the real test later on. 22112 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22113 if test "x$test_shortpath" = x; then 22114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22115 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22116 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22117 fi 22118 22119 # Call helper function which possibly converts this using DOS-style short mode. 22120 # If so, the updated path is stored in $new_path. 22121 22122 input_path="$new_path" 22123 # Check if we need to convert this using DOS-style short mode. If the path 22124 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22125 # take no chances and rewrite it. 22126 # Note: m4 eats our [], so we need to use [ and ] instead. 22127 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22128 if test "x$has_forbidden_chars" != x; then 22129 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22130 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22131 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22132 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22133 # Going to short mode and back again did indeed matter. Since short mode is 22134 # case insensitive, let's make it lowercase to improve readability. 22135 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22136 # Now convert it back to Unix-stile (cygpath) 22137 input_path=`$CYGPATH -u "$shortmode_path"` 22138 new_path="$input_path" 22139 fi 22140 fi 22141 22142 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22143 if test "x$test_cygdrive_prefix" = x; then 22144 # As a simple fix, exclude /usr/bin since it's not a real path. 22145 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22146 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22147 # a path prefixed by /cygdrive for fixpath to work. 22148 new_path="$CYGWIN_ROOT_PATH$input_path" 22149 fi 22150 fi 22151 22152 22153 if test "x$path" != "x$new_path"; then 22154 BOOT_JDK="$new_path" 22155 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22156 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22157 fi 22158 22159 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22160 22161 path="$BOOT_JDK" 22162 has_colon=`$ECHO $path | $GREP ^.:` 22163 new_path="$path" 22164 if test "x$has_colon" = x; then 22165 # Not in mixed or Windows style, start by that. 22166 new_path=`cmd //c echo $path` 22167 fi 22168 22169 22170 input_path="$new_path" 22171 # Check if we need to convert this using DOS-style short mode. If the path 22172 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22173 # take no chances and rewrite it. 22174 # Note: m4 eats our [], so we need to use [ and ] instead. 22175 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22176 if test "x$has_forbidden_chars" != x; then 22177 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22178 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22179 fi 22180 22181 22182 windows_path="$new_path" 22183 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22184 unix_path=`$CYGPATH -u "$windows_path"` 22185 new_path="$unix_path" 22186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22187 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22188 new_path="$unix_path" 22189 fi 22190 22191 if test "x$path" != "x$new_path"; then 22192 BOOT_JDK="$new_path" 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22194 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22195 fi 22196 22197 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22198 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22199 22200 else 22201 # We're on a posix platform. Hooray! :) 22202 path="$BOOT_JDK" 22203 has_space=`$ECHO "$path" | $GREP " "` 22204 if test "x$has_space" != x; then 22205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22206 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22207 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22208 fi 22209 22210 # Use eval to expand a potential ~ 22211 eval path="$path" 22212 if test ! -f "$path" && test ! -d "$path"; then 22213 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22214 fi 22215 22216 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22217 fi 22218 22219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22220 $as_echo_n "checking for Boot JDK... " >&6; } 22221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22222 $as_echo "$BOOT_JDK" >&6; } 22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22224 $as_echo_n "checking Boot JDK version... " >&6; } 22225 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22227 $as_echo "$BOOT_JDK_VERSION" >&6; } 22228 fi # end check jdk version 22229 fi # end check rt.jar 22230 fi # end check javac 22231 fi # end check java 22232 fi # end check boot jdk found 22233 fi 22234 22235 done 22236 fi 22237 22238 fi 22239 22240 22241 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22242 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22243 # Do we have a bin/java? 22244 if test ! -x "$BOOT_JDK/bin/java"; then 22245 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22246 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22247 BOOT_JDK_FOUND=no 22248 else 22249 # Do we have a bin/javac? 22250 if test ! -x "$BOOT_JDK/bin/javac"; then 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22252 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22254 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22255 BOOT_JDK_FOUND=no 22256 else 22257 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22258 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22259 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22260 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22261 BOOT_JDK_FOUND=no 22262 else 22263 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22264 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22265 22266 # Extra M4 quote needed to protect [] in grep expression. 22267 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22268 if test "x$FOUND_CORRECT_VERSION" = x; then 22269 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22271 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22272 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22273 BOOT_JDK_FOUND=no 22274 else 22275 # We're done! :-) 22276 BOOT_JDK_FOUND=yes 22277 22278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22279 22280 # Input might be given as Windows format, start by converting to 22281 # unix format. 22282 path="$BOOT_JDK" 22283 new_path=`$CYGPATH -u "$path"` 22284 22285 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22286 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22287 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22288 # "foo.exe" is OK but "foo" is an error. 22289 # 22290 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22291 # It is also a way to make sure we got the proper file name for the real test later on. 22292 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22293 if test "x$test_shortpath" = x; then 22294 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22295 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22296 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22297 fi 22298 22299 # Call helper function which possibly converts this using DOS-style short mode. 22300 # If so, the updated path is stored in $new_path. 22301 22302 input_path="$new_path" 22303 # Check if we need to convert this using DOS-style short mode. If the path 22304 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22305 # take no chances and rewrite it. 22306 # Note: m4 eats our [], so we need to use [ and ] instead. 22307 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22308 if test "x$has_forbidden_chars" != x; then 22309 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22310 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22311 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22312 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22313 # Going to short mode and back again did indeed matter. Since short mode is 22314 # case insensitive, let's make it lowercase to improve readability. 22315 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22316 # Now convert it back to Unix-stile (cygpath) 22317 input_path=`$CYGPATH -u "$shortmode_path"` 22318 new_path="$input_path" 22319 fi 22320 fi 22321 22322 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22323 if test "x$test_cygdrive_prefix" = x; then 22324 # As a simple fix, exclude /usr/bin since it's not a real path. 22325 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22326 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22327 # a path prefixed by /cygdrive for fixpath to work. 22328 new_path="$CYGWIN_ROOT_PATH$input_path" 22329 fi 22330 fi 22331 22332 22333 if test "x$path" != "x$new_path"; then 22334 BOOT_JDK="$new_path" 22335 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22336 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22337 fi 22338 22339 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22340 22341 path="$BOOT_JDK" 22342 has_colon=`$ECHO $path | $GREP ^.:` 22343 new_path="$path" 22344 if test "x$has_colon" = x; then 22345 # Not in mixed or Windows style, start by that. 22346 new_path=`cmd //c echo $path` 22347 fi 22348 22349 22350 input_path="$new_path" 22351 # Check if we need to convert this using DOS-style short mode. If the path 22352 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22353 # take no chances and rewrite it. 22354 # Note: m4 eats our [], so we need to use [ and ] instead. 22355 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22356 if test "x$has_forbidden_chars" != x; then 22357 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22358 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22359 fi 22360 22361 22362 windows_path="$new_path" 22363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22364 unix_path=`$CYGPATH -u "$windows_path"` 22365 new_path="$unix_path" 22366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22368 new_path="$unix_path" 22369 fi 22370 22371 if test "x$path" != "x$new_path"; then 22372 BOOT_JDK="$new_path" 22373 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22374 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22375 fi 22376 22377 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22378 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22379 22380 else 22381 # We're on a posix platform. Hooray! :) 22382 path="$BOOT_JDK" 22383 has_space=`$ECHO "$path" | $GREP " "` 22384 if test "x$has_space" != x; then 22385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22386 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22387 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22388 fi 22389 22390 # Use eval to expand a potential ~ 22391 eval path="$path" 22392 if test ! -f "$path" && test ! -d "$path"; then 22393 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22394 fi 22395 22396 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22397 fi 22398 22399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22400 $as_echo_n "checking for Boot JDK... " >&6; } 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22402 $as_echo "$BOOT_JDK" >&6; } 22403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22404 $as_echo_n "checking Boot JDK version... " >&6; } 22405 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22407 $as_echo "$BOOT_JDK_VERSION" >&6; } 22408 fi # end check jdk version 22409 fi # end check rt.jar 22410 fi # end check javac 22411 fi # end check java 22412 fi # end check boot jdk found 22413 fi 22414 22415 22416 if test "x$BOOT_JDK_FOUND" = xno; then 22417 # Now execute the test 22418 22419 if test "x$PROGRAMFILES" != x; then 22420 VIRTUAL_DIR="$PROGRAMFILES/Java" 22421 22422 windows_path="$VIRTUAL_DIR" 22423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22424 unix_path=`$CYGPATH -u "$windows_path"` 22425 VIRTUAL_DIR="$unix_path" 22426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22428 VIRTUAL_DIR="$unix_path" 22429 fi 22430 22431 22432 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22433 BOOT_JDK_SUFFIX="" 22434 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22435 if test "x$ALL_JDKS_FOUND" != x; then 22436 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22437 22438 if test "x$BOOT_JDK_FOUND" = xno; then 22439 # Now execute the test 22440 22441 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22442 if test -d "$BOOT_JDK"; then 22443 BOOT_JDK_FOUND=maybe 22444 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22445 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22446 fi 22447 22448 22449 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22450 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22451 # Do we have a bin/java? 22452 if test ! -x "$BOOT_JDK/bin/java"; then 22453 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22454 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22455 BOOT_JDK_FOUND=no 22456 else 22457 # Do we have a bin/javac? 22458 if test ! -x "$BOOT_JDK/bin/javac"; then 22459 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22460 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22462 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22463 BOOT_JDK_FOUND=no 22464 else 22465 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22466 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22467 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22468 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22469 BOOT_JDK_FOUND=no 22470 else 22471 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22472 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22473 22474 # Extra M4 quote needed to protect [] in grep expression. 22475 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22476 if test "x$FOUND_CORRECT_VERSION" = x; then 22477 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22478 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22479 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22480 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22481 BOOT_JDK_FOUND=no 22482 else 22483 # We're done! :-) 22484 BOOT_JDK_FOUND=yes 22485 22486 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22487 22488 # Input might be given as Windows format, start by converting to 22489 # unix format. 22490 path="$BOOT_JDK" 22491 new_path=`$CYGPATH -u "$path"` 22492 22493 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22494 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22495 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22496 # "foo.exe" is OK but "foo" is an error. 22497 # 22498 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22499 # It is also a way to make sure we got the proper file name for the real test later on. 22500 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22501 if test "x$test_shortpath" = x; then 22502 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22503 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22504 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22505 fi 22506 22507 # Call helper function which possibly converts this using DOS-style short mode. 22508 # If so, the updated path is stored in $new_path. 22509 22510 input_path="$new_path" 22511 # Check if we need to convert this using DOS-style short mode. If the path 22512 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22513 # take no chances and rewrite it. 22514 # Note: m4 eats our [], so we need to use [ and ] instead. 22515 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22516 if test "x$has_forbidden_chars" != x; then 22517 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22518 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22519 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22520 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22521 # Going to short mode and back again did indeed matter. Since short mode is 22522 # case insensitive, let's make it lowercase to improve readability. 22523 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22524 # Now convert it back to Unix-stile (cygpath) 22525 input_path=`$CYGPATH -u "$shortmode_path"` 22526 new_path="$input_path" 22527 fi 22528 fi 22529 22530 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22531 if test "x$test_cygdrive_prefix" = x; then 22532 # As a simple fix, exclude /usr/bin since it's not a real path. 22533 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22534 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22535 # a path prefixed by /cygdrive for fixpath to work. 22536 new_path="$CYGWIN_ROOT_PATH$input_path" 22537 fi 22538 fi 22539 22540 22541 if test "x$path" != "x$new_path"; then 22542 BOOT_JDK="$new_path" 22543 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22544 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22545 fi 22546 22547 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22548 22549 path="$BOOT_JDK" 22550 has_colon=`$ECHO $path | $GREP ^.:` 22551 new_path="$path" 22552 if test "x$has_colon" = x; then 22553 # Not in mixed or Windows style, start by that. 22554 new_path=`cmd //c echo $path` 22555 fi 22556 22557 22558 input_path="$new_path" 22559 # Check if we need to convert this using DOS-style short mode. If the path 22560 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22561 # take no chances and rewrite it. 22562 # Note: m4 eats our [], so we need to use [ and ] instead. 22563 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22564 if test "x$has_forbidden_chars" != x; then 22565 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22566 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22567 fi 22568 22569 22570 windows_path="$new_path" 22571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22572 unix_path=`$CYGPATH -u "$windows_path"` 22573 new_path="$unix_path" 22574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22576 new_path="$unix_path" 22577 fi 22578 22579 if test "x$path" != "x$new_path"; then 22580 BOOT_JDK="$new_path" 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22582 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22583 fi 22584 22585 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22586 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22587 22588 else 22589 # We're on a posix platform. Hooray! :) 22590 path="$BOOT_JDK" 22591 has_space=`$ECHO "$path" | $GREP " "` 22592 if test "x$has_space" != x; then 22593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22594 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22595 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22596 fi 22597 22598 # Use eval to expand a potential ~ 22599 eval path="$path" 22600 if test ! -f "$path" && test ! -d "$path"; then 22601 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22602 fi 22603 22604 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22605 fi 22606 22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22608 $as_echo_n "checking for Boot JDK... " >&6; } 22609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22610 $as_echo "$BOOT_JDK" >&6; } 22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22612 $as_echo_n "checking Boot JDK version... " >&6; } 22613 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22615 $as_echo "$BOOT_JDK_VERSION" >&6; } 22616 fi # end check jdk version 22617 fi # end check rt.jar 22618 fi # end check javac 22619 fi # end check java 22620 fi # end check boot jdk found 22621 fi 22622 22623 done 22624 fi 22625 22626 fi 22627 22628 22629 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22630 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22631 # Do we have a bin/java? 22632 if test ! -x "$BOOT_JDK/bin/java"; then 22633 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22634 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22635 BOOT_JDK_FOUND=no 22636 else 22637 # Do we have a bin/javac? 22638 if test ! -x "$BOOT_JDK/bin/javac"; then 22639 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22640 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22641 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22642 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22643 BOOT_JDK_FOUND=no 22644 else 22645 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22646 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22647 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22648 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22649 BOOT_JDK_FOUND=no 22650 else 22651 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22652 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22653 22654 # Extra M4 quote needed to protect [] in grep expression. 22655 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22656 if test "x$FOUND_CORRECT_VERSION" = x; then 22657 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22658 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22659 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22660 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22661 BOOT_JDK_FOUND=no 22662 else 22663 # We're done! :-) 22664 BOOT_JDK_FOUND=yes 22665 22666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22667 22668 # Input might be given as Windows format, start by converting to 22669 # unix format. 22670 path="$BOOT_JDK" 22671 new_path=`$CYGPATH -u "$path"` 22672 22673 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22674 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22675 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22676 # "foo.exe" is OK but "foo" is an error. 22677 # 22678 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22679 # It is also a way to make sure we got the proper file name for the real test later on. 22680 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22681 if test "x$test_shortpath" = x; then 22682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22683 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22684 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22685 fi 22686 22687 # Call helper function which possibly converts this using DOS-style short mode. 22688 # If so, the updated path is stored in $new_path. 22689 22690 input_path="$new_path" 22691 # Check if we need to convert this using DOS-style short mode. If the path 22692 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22693 # take no chances and rewrite it. 22694 # Note: m4 eats our [], so we need to use [ and ] instead. 22695 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22696 if test "x$has_forbidden_chars" != x; then 22697 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22698 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22699 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22700 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22701 # Going to short mode and back again did indeed matter. Since short mode is 22702 # case insensitive, let's make it lowercase to improve readability. 22703 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22704 # Now convert it back to Unix-stile (cygpath) 22705 input_path=`$CYGPATH -u "$shortmode_path"` 22706 new_path="$input_path" 22707 fi 22708 fi 22709 22710 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22711 if test "x$test_cygdrive_prefix" = x; then 22712 # As a simple fix, exclude /usr/bin since it's not a real path. 22713 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22714 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22715 # a path prefixed by /cygdrive for fixpath to work. 22716 new_path="$CYGWIN_ROOT_PATH$input_path" 22717 fi 22718 fi 22719 22720 22721 if test "x$path" != "x$new_path"; then 22722 BOOT_JDK="$new_path" 22723 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22724 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22725 fi 22726 22727 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22728 22729 path="$BOOT_JDK" 22730 has_colon=`$ECHO $path | $GREP ^.:` 22731 new_path="$path" 22732 if test "x$has_colon" = x; then 22733 # Not in mixed or Windows style, start by that. 22734 new_path=`cmd //c echo $path` 22735 fi 22736 22737 22738 input_path="$new_path" 22739 # Check if we need to convert this using DOS-style short mode. If the path 22740 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22741 # take no chances and rewrite it. 22742 # Note: m4 eats our [], so we need to use [ and ] instead. 22743 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22744 if test "x$has_forbidden_chars" != x; then 22745 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22746 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22747 fi 22748 22749 22750 windows_path="$new_path" 22751 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22752 unix_path=`$CYGPATH -u "$windows_path"` 22753 new_path="$unix_path" 22754 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22755 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22756 new_path="$unix_path" 22757 fi 22758 22759 if test "x$path" != "x$new_path"; then 22760 BOOT_JDK="$new_path" 22761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22762 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22763 fi 22764 22765 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22766 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22767 22768 else 22769 # We're on a posix platform. Hooray! :) 22770 path="$BOOT_JDK" 22771 has_space=`$ECHO "$path" | $GREP " "` 22772 if test "x$has_space" != x; then 22773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22774 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22775 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22776 fi 22777 22778 # Use eval to expand a potential ~ 22779 eval path="$path" 22780 if test ! -f "$path" && test ! -d "$path"; then 22781 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22782 fi 22783 22784 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22785 fi 22786 22787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22788 $as_echo_n "checking for Boot JDK... " >&6; } 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22790 $as_echo "$BOOT_JDK" >&6; } 22791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22792 $as_echo_n "checking Boot JDK version... " >&6; } 22793 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22795 $as_echo "$BOOT_JDK_VERSION" >&6; } 22796 fi # end check jdk version 22797 fi # end check rt.jar 22798 fi # end check javac 22799 fi # end check java 22800 fi # end check boot jdk found 22801 fi 22802 22803 22804 if test "x$BOOT_JDK_FOUND" = xno; then 22805 # Now execute the test 22806 22807 if test "x$ProgramFiles" != x; then 22808 VIRTUAL_DIR="$ProgramFiles/Java" 22809 22810 windows_path="$VIRTUAL_DIR" 22811 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22812 unix_path=`$CYGPATH -u "$windows_path"` 22813 VIRTUAL_DIR="$unix_path" 22814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22815 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22816 VIRTUAL_DIR="$unix_path" 22817 fi 22818 22819 22820 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22821 BOOT_JDK_SUFFIX="" 22822 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22823 if test "x$ALL_JDKS_FOUND" != x; then 22824 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22825 22826 if test "x$BOOT_JDK_FOUND" = xno; then 22827 # Now execute the test 22828 22829 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22830 if test -d "$BOOT_JDK"; then 22831 BOOT_JDK_FOUND=maybe 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22833 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22834 fi 22835 22836 22837 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22838 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22839 # Do we have a bin/java? 22840 if test ! -x "$BOOT_JDK/bin/java"; then 22841 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22842 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22843 BOOT_JDK_FOUND=no 22844 else 22845 # Do we have a bin/javac? 22846 if test ! -x "$BOOT_JDK/bin/javac"; then 22847 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22848 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22849 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22850 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22851 BOOT_JDK_FOUND=no 22852 else 22853 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22854 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22855 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22856 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22857 BOOT_JDK_FOUND=no 22858 else 22859 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22860 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22861 22862 # Extra M4 quote needed to protect [] in grep expression. 22863 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22864 if test "x$FOUND_CORRECT_VERSION" = x; then 22865 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22866 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22867 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22868 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22869 BOOT_JDK_FOUND=no 22870 else 22871 # We're done! :-) 22872 BOOT_JDK_FOUND=yes 22873 22874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22875 22876 # Input might be given as Windows format, start by converting to 22877 # unix format. 22878 path="$BOOT_JDK" 22879 new_path=`$CYGPATH -u "$path"` 22880 22881 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22882 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22883 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22884 # "foo.exe" is OK but "foo" is an error. 22885 # 22886 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22887 # It is also a way to make sure we got the proper file name for the real test later on. 22888 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22889 if test "x$test_shortpath" = x; then 22890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22891 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22892 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22893 fi 22894 22895 # Call helper function which possibly converts this using DOS-style short mode. 22896 # If so, the updated path is stored in $new_path. 22897 22898 input_path="$new_path" 22899 # Check if we need to convert this using DOS-style short mode. If the path 22900 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22901 # take no chances and rewrite it. 22902 # Note: m4 eats our [], so we need to use [ and ] instead. 22903 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22904 if test "x$has_forbidden_chars" != x; then 22905 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22906 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22907 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22908 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22909 # Going to short mode and back again did indeed matter. Since short mode is 22910 # case insensitive, let's make it lowercase to improve readability. 22911 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22912 # Now convert it back to Unix-stile (cygpath) 22913 input_path=`$CYGPATH -u "$shortmode_path"` 22914 new_path="$input_path" 22915 fi 22916 fi 22917 22918 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22919 if test "x$test_cygdrive_prefix" = x; then 22920 # As a simple fix, exclude /usr/bin since it's not a real path. 22921 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22922 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22923 # a path prefixed by /cygdrive for fixpath to work. 22924 new_path="$CYGWIN_ROOT_PATH$input_path" 22925 fi 22926 fi 22927 22928 22929 if test "x$path" != "x$new_path"; then 22930 BOOT_JDK="$new_path" 22931 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22932 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22933 fi 22934 22935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22936 22937 path="$BOOT_JDK" 22938 has_colon=`$ECHO $path | $GREP ^.:` 22939 new_path="$path" 22940 if test "x$has_colon" = x; then 22941 # Not in mixed or Windows style, start by that. 22942 new_path=`cmd //c echo $path` 22943 fi 22944 22945 22946 input_path="$new_path" 22947 # Check if we need to convert this using DOS-style short mode. If the path 22948 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22949 # take no chances and rewrite it. 22950 # Note: m4 eats our [], so we need to use [ and ] instead. 22951 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22952 if test "x$has_forbidden_chars" != x; then 22953 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22954 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22955 fi 22956 22957 22958 windows_path="$new_path" 22959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22960 unix_path=`$CYGPATH -u "$windows_path"` 22961 new_path="$unix_path" 22962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22964 new_path="$unix_path" 22965 fi 22966 22967 if test "x$path" != "x$new_path"; then 22968 BOOT_JDK="$new_path" 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22970 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22971 fi 22972 22973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22975 22976 else 22977 # We're on a posix platform. Hooray! :) 22978 path="$BOOT_JDK" 22979 has_space=`$ECHO "$path" | $GREP " "` 22980 if test "x$has_space" != x; then 22981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22982 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22983 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22984 fi 22985 22986 # Use eval to expand a potential ~ 22987 eval path="$path" 22988 if test ! -f "$path" && test ! -d "$path"; then 22989 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22990 fi 22991 22992 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22993 fi 22994 22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22996 $as_echo_n "checking for Boot JDK... " >&6; } 22997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22998 $as_echo "$BOOT_JDK" >&6; } 22999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23000 $as_echo_n "checking Boot JDK version... " >&6; } 23001 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23003 $as_echo "$BOOT_JDK_VERSION" >&6; } 23004 fi # end check jdk version 23005 fi # end check rt.jar 23006 fi # end check javac 23007 fi # end check java 23008 fi # end check boot jdk found 23009 fi 23010 23011 done 23012 fi 23013 23014 fi 23015 23016 23017 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23018 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23019 # Do we have a bin/java? 23020 if test ! -x "$BOOT_JDK/bin/java"; then 23021 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23022 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23023 BOOT_JDK_FOUND=no 23024 else 23025 # Do we have a bin/javac? 23026 if test ! -x "$BOOT_JDK/bin/javac"; then 23027 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23028 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23029 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23030 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23031 BOOT_JDK_FOUND=no 23032 else 23033 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23034 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23035 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23036 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23037 BOOT_JDK_FOUND=no 23038 else 23039 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23040 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23041 23042 # Extra M4 quote needed to protect [] in grep expression. 23043 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23044 if test "x$FOUND_CORRECT_VERSION" = x; then 23045 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23046 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23047 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23048 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23049 BOOT_JDK_FOUND=no 23050 else 23051 # We're done! :-) 23052 BOOT_JDK_FOUND=yes 23053 23054 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23055 23056 # Input might be given as Windows format, start by converting to 23057 # unix format. 23058 path="$BOOT_JDK" 23059 new_path=`$CYGPATH -u "$path"` 23060 23061 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23062 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23063 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23064 # "foo.exe" is OK but "foo" is an error. 23065 # 23066 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23067 # It is also a way to make sure we got the proper file name for the real test later on. 23068 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23069 if test "x$test_shortpath" = x; then 23070 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23071 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23072 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23073 fi 23074 23075 # Call helper function which possibly converts this using DOS-style short mode. 23076 # If so, the updated path is stored in $new_path. 23077 23078 input_path="$new_path" 23079 # Check if we need to convert this using DOS-style short mode. If the path 23080 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23081 # take no chances and rewrite it. 23082 # Note: m4 eats our [], so we need to use [ and ] instead. 23083 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23084 if test "x$has_forbidden_chars" != x; then 23085 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23086 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23087 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23088 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23089 # Going to short mode and back again did indeed matter. Since short mode is 23090 # case insensitive, let's make it lowercase to improve readability. 23091 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23092 # Now convert it back to Unix-stile (cygpath) 23093 input_path=`$CYGPATH -u "$shortmode_path"` 23094 new_path="$input_path" 23095 fi 23096 fi 23097 23098 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23099 if test "x$test_cygdrive_prefix" = x; then 23100 # As a simple fix, exclude /usr/bin since it's not a real path. 23101 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23102 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23103 # a path prefixed by /cygdrive for fixpath to work. 23104 new_path="$CYGWIN_ROOT_PATH$input_path" 23105 fi 23106 fi 23107 23108 23109 if test "x$path" != "x$new_path"; then 23110 BOOT_JDK="$new_path" 23111 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23112 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23113 fi 23114 23115 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23116 23117 path="$BOOT_JDK" 23118 has_colon=`$ECHO $path | $GREP ^.:` 23119 new_path="$path" 23120 if test "x$has_colon" = x; then 23121 # Not in mixed or Windows style, start by that. 23122 new_path=`cmd //c echo $path` 23123 fi 23124 23125 23126 input_path="$new_path" 23127 # Check if we need to convert this using DOS-style short mode. If the path 23128 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23129 # take no chances and rewrite it. 23130 # Note: m4 eats our [], so we need to use [ and ] instead. 23131 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23132 if test "x$has_forbidden_chars" != x; then 23133 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23134 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23135 fi 23136 23137 23138 windows_path="$new_path" 23139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23140 unix_path=`$CYGPATH -u "$windows_path"` 23141 new_path="$unix_path" 23142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23144 new_path="$unix_path" 23145 fi 23146 23147 if test "x$path" != "x$new_path"; then 23148 BOOT_JDK="$new_path" 23149 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23150 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23151 fi 23152 23153 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23154 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23155 23156 else 23157 # We're on a posix platform. Hooray! :) 23158 path="$BOOT_JDK" 23159 has_space=`$ECHO "$path" | $GREP " "` 23160 if test "x$has_space" != x; then 23161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23162 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23163 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23164 fi 23165 23166 # Use eval to expand a potential ~ 23167 eval path="$path" 23168 if test ! -f "$path" && test ! -d "$path"; then 23169 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23170 fi 23171 23172 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23173 fi 23174 23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23176 $as_echo_n "checking for Boot JDK... " >&6; } 23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23178 $as_echo "$BOOT_JDK" >&6; } 23179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23180 $as_echo_n "checking Boot JDK version... " >&6; } 23181 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23183 $as_echo "$BOOT_JDK_VERSION" >&6; } 23184 fi # end check jdk version 23185 fi # end check rt.jar 23186 fi # end check javac 23187 fi # end check java 23188 fi # end check boot jdk found 23189 fi 23190 23191 23192 if test "x$BOOT_JDK_FOUND" = xno; then 23193 # Now execute the test 23194 23195 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23196 BOOT_JDK_SUFFIX="" 23197 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23198 if test "x$ALL_JDKS_FOUND" != x; then 23199 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23200 23201 if test "x$BOOT_JDK_FOUND" = xno; then 23202 # Now execute the test 23203 23204 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23205 if test -d "$BOOT_JDK"; then 23206 BOOT_JDK_FOUND=maybe 23207 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23208 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23209 fi 23210 23211 23212 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23213 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23214 # Do we have a bin/java? 23215 if test ! -x "$BOOT_JDK/bin/java"; then 23216 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23217 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23218 BOOT_JDK_FOUND=no 23219 else 23220 # Do we have a bin/javac? 23221 if test ! -x "$BOOT_JDK/bin/javac"; then 23222 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23223 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23224 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23225 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23226 BOOT_JDK_FOUND=no 23227 else 23228 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23229 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23230 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23231 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23232 BOOT_JDK_FOUND=no 23233 else 23234 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23235 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23236 23237 # Extra M4 quote needed to protect [] in grep expression. 23238 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23239 if test "x$FOUND_CORRECT_VERSION" = x; then 23240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23242 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23243 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23244 BOOT_JDK_FOUND=no 23245 else 23246 # We're done! :-) 23247 BOOT_JDK_FOUND=yes 23248 23249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23250 23251 # Input might be given as Windows format, start by converting to 23252 # unix format. 23253 path="$BOOT_JDK" 23254 new_path=`$CYGPATH -u "$path"` 23255 23256 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23257 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23258 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23259 # "foo.exe" is OK but "foo" is an error. 23260 # 23261 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23262 # It is also a way to make sure we got the proper file name for the real test later on. 23263 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23264 if test "x$test_shortpath" = x; then 23265 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23266 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23267 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23268 fi 23269 23270 # Call helper function which possibly converts this using DOS-style short mode. 23271 # If so, the updated path is stored in $new_path. 23272 23273 input_path="$new_path" 23274 # Check if we need to convert this using DOS-style short mode. If the path 23275 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23276 # take no chances and rewrite it. 23277 # Note: m4 eats our [], so we need to use [ and ] instead. 23278 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23279 if test "x$has_forbidden_chars" != x; then 23280 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23281 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23282 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23283 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23284 # Going to short mode and back again did indeed matter. Since short mode is 23285 # case insensitive, let's make it lowercase to improve readability. 23286 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23287 # Now convert it back to Unix-stile (cygpath) 23288 input_path=`$CYGPATH -u "$shortmode_path"` 23289 new_path="$input_path" 23290 fi 23291 fi 23292 23293 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23294 if test "x$test_cygdrive_prefix" = x; then 23295 # As a simple fix, exclude /usr/bin since it's not a real path. 23296 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23297 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23298 # a path prefixed by /cygdrive for fixpath to work. 23299 new_path="$CYGWIN_ROOT_PATH$input_path" 23300 fi 23301 fi 23302 23303 23304 if test "x$path" != "x$new_path"; then 23305 BOOT_JDK="$new_path" 23306 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23307 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23308 fi 23309 23310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23311 23312 path="$BOOT_JDK" 23313 has_colon=`$ECHO $path | $GREP ^.:` 23314 new_path="$path" 23315 if test "x$has_colon" = x; then 23316 # Not in mixed or Windows style, start by that. 23317 new_path=`cmd //c echo $path` 23318 fi 23319 23320 23321 input_path="$new_path" 23322 # Check if we need to convert this using DOS-style short mode. If the path 23323 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23324 # take no chances and rewrite it. 23325 # Note: m4 eats our [], so we need to use [ and ] instead. 23326 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23327 if test "x$has_forbidden_chars" != x; then 23328 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23329 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23330 fi 23331 23332 23333 windows_path="$new_path" 23334 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23335 unix_path=`$CYGPATH -u "$windows_path"` 23336 new_path="$unix_path" 23337 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23338 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23339 new_path="$unix_path" 23340 fi 23341 23342 if test "x$path" != "x$new_path"; then 23343 BOOT_JDK="$new_path" 23344 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23345 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23346 fi 23347 23348 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23349 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23350 23351 else 23352 # We're on a posix platform. Hooray! :) 23353 path="$BOOT_JDK" 23354 has_space=`$ECHO "$path" | $GREP " "` 23355 if test "x$has_space" != x; then 23356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23357 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23358 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23359 fi 23360 23361 # Use eval to expand a potential ~ 23362 eval path="$path" 23363 if test ! -f "$path" && test ! -d "$path"; then 23364 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23365 fi 23366 23367 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23368 fi 23369 23370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23371 $as_echo_n "checking for Boot JDK... " >&6; } 23372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23373 $as_echo "$BOOT_JDK" >&6; } 23374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23375 $as_echo_n "checking Boot JDK version... " >&6; } 23376 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23378 $as_echo "$BOOT_JDK_VERSION" >&6; } 23379 fi # end check jdk version 23380 fi # end check rt.jar 23381 fi # end check javac 23382 fi # end check java 23383 fi # end check boot jdk found 23384 fi 23385 23386 done 23387 fi 23388 23389 23390 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23391 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23392 # Do we have a bin/java? 23393 if test ! -x "$BOOT_JDK/bin/java"; then 23394 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23395 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23396 BOOT_JDK_FOUND=no 23397 else 23398 # Do we have a bin/javac? 23399 if test ! -x "$BOOT_JDK/bin/javac"; then 23400 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23401 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23402 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23403 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23404 BOOT_JDK_FOUND=no 23405 else 23406 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23407 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23408 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23409 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23410 BOOT_JDK_FOUND=no 23411 else 23412 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23413 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23414 23415 # Extra M4 quote needed to protect [] in grep expression. 23416 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23417 if test "x$FOUND_CORRECT_VERSION" = x; then 23418 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23419 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23420 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23421 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23422 BOOT_JDK_FOUND=no 23423 else 23424 # We're done! :-) 23425 BOOT_JDK_FOUND=yes 23426 23427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23428 23429 # Input might be given as Windows format, start by converting to 23430 # unix format. 23431 path="$BOOT_JDK" 23432 new_path=`$CYGPATH -u "$path"` 23433 23434 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23435 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23436 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23437 # "foo.exe" is OK but "foo" is an error. 23438 # 23439 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23440 # It is also a way to make sure we got the proper file name for the real test later on. 23441 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23442 if test "x$test_shortpath" = x; then 23443 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23444 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23445 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23446 fi 23447 23448 # Call helper function which possibly converts this using DOS-style short mode. 23449 # If so, the updated path is stored in $new_path. 23450 23451 input_path="$new_path" 23452 # Check if we need to convert this using DOS-style short mode. If the path 23453 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23454 # take no chances and rewrite it. 23455 # Note: m4 eats our [], so we need to use [ and ] instead. 23456 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23457 if test "x$has_forbidden_chars" != x; then 23458 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23459 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23460 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23461 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23462 # Going to short mode and back again did indeed matter. Since short mode is 23463 # case insensitive, let's make it lowercase to improve readability. 23464 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23465 # Now convert it back to Unix-stile (cygpath) 23466 input_path=`$CYGPATH -u "$shortmode_path"` 23467 new_path="$input_path" 23468 fi 23469 fi 23470 23471 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23472 if test "x$test_cygdrive_prefix" = x; then 23473 # As a simple fix, exclude /usr/bin since it's not a real path. 23474 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23475 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23476 # a path prefixed by /cygdrive for fixpath to work. 23477 new_path="$CYGWIN_ROOT_PATH$input_path" 23478 fi 23479 fi 23480 23481 23482 if test "x$path" != "x$new_path"; then 23483 BOOT_JDK="$new_path" 23484 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23485 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23486 fi 23487 23488 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23489 23490 path="$BOOT_JDK" 23491 has_colon=`$ECHO $path | $GREP ^.:` 23492 new_path="$path" 23493 if test "x$has_colon" = x; then 23494 # Not in mixed or Windows style, start by that. 23495 new_path=`cmd //c echo $path` 23496 fi 23497 23498 23499 input_path="$new_path" 23500 # Check if we need to convert this using DOS-style short mode. If the path 23501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23502 # take no chances and rewrite it. 23503 # Note: m4 eats our [], so we need to use [ and ] instead. 23504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23505 if test "x$has_forbidden_chars" != x; then 23506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23508 fi 23509 23510 23511 windows_path="$new_path" 23512 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23513 unix_path=`$CYGPATH -u "$windows_path"` 23514 new_path="$unix_path" 23515 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23516 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23517 new_path="$unix_path" 23518 fi 23519 23520 if test "x$path" != "x$new_path"; then 23521 BOOT_JDK="$new_path" 23522 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23523 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23524 fi 23525 23526 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23527 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23528 23529 else 23530 # We're on a posix platform. Hooray! :) 23531 path="$BOOT_JDK" 23532 has_space=`$ECHO "$path" | $GREP " "` 23533 if test "x$has_space" != x; then 23534 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23535 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23536 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23537 fi 23538 23539 # Use eval to expand a potential ~ 23540 eval path="$path" 23541 if test ! -f "$path" && test ! -d "$path"; then 23542 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23543 fi 23544 23545 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23546 fi 23547 23548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23549 $as_echo_n "checking for Boot JDK... " >&6; } 23550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23551 $as_echo "$BOOT_JDK" >&6; } 23552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23553 $as_echo_n "checking Boot JDK version... " >&6; } 23554 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23556 $as_echo "$BOOT_JDK_VERSION" >&6; } 23557 fi # end check jdk version 23558 fi # end check rt.jar 23559 fi # end check javac 23560 fi # end check java 23561 fi # end check boot jdk found 23562 fi 23563 23564 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23565 23566 if test "x$BOOT_JDK_FOUND" = xno; then 23567 # Now execute the test 23568 23569 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23570 BOOT_JDK_SUFFIX="/Contents/Home" 23571 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23572 if test "x$ALL_JDKS_FOUND" != x; then 23573 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23574 23575 if test "x$BOOT_JDK_FOUND" = xno; then 23576 # Now execute the test 23577 23578 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23579 if test -d "$BOOT_JDK"; then 23580 BOOT_JDK_FOUND=maybe 23581 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23582 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23583 fi 23584 23585 23586 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23587 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23588 # Do we have a bin/java? 23589 if test ! -x "$BOOT_JDK/bin/java"; then 23590 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23591 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23592 BOOT_JDK_FOUND=no 23593 else 23594 # Do we have a bin/javac? 23595 if test ! -x "$BOOT_JDK/bin/javac"; then 23596 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23597 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23598 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23599 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23600 BOOT_JDK_FOUND=no 23601 else 23602 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23603 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23604 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23605 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23606 BOOT_JDK_FOUND=no 23607 else 23608 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23609 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23610 23611 # Extra M4 quote needed to protect [] in grep expression. 23612 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23613 if test "x$FOUND_CORRECT_VERSION" = x; then 23614 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23615 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23616 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23617 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23618 BOOT_JDK_FOUND=no 23619 else 23620 # We're done! :-) 23621 BOOT_JDK_FOUND=yes 23622 23623 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23624 23625 # Input might be given as Windows format, start by converting to 23626 # unix format. 23627 path="$BOOT_JDK" 23628 new_path=`$CYGPATH -u "$path"` 23629 23630 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23631 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23632 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23633 # "foo.exe" is OK but "foo" is an error. 23634 # 23635 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23636 # It is also a way to make sure we got the proper file name for the real test later on. 23637 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23638 if test "x$test_shortpath" = x; then 23639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23640 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23641 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23642 fi 23643 23644 # Call helper function which possibly converts this using DOS-style short mode. 23645 # If so, the updated path is stored in $new_path. 23646 23647 input_path="$new_path" 23648 # Check if we need to convert this using DOS-style short mode. If the path 23649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23650 # take no chances and rewrite it. 23651 # Note: m4 eats our [], so we need to use [ and ] instead. 23652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23653 if test "x$has_forbidden_chars" != x; then 23654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23655 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23656 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23657 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23658 # Going to short mode and back again did indeed matter. Since short mode is 23659 # case insensitive, let's make it lowercase to improve readability. 23660 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23661 # Now convert it back to Unix-stile (cygpath) 23662 input_path=`$CYGPATH -u "$shortmode_path"` 23663 new_path="$input_path" 23664 fi 23665 fi 23666 23667 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23668 if test "x$test_cygdrive_prefix" = x; then 23669 # As a simple fix, exclude /usr/bin since it's not a real path. 23670 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23671 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23672 # a path prefixed by /cygdrive for fixpath to work. 23673 new_path="$CYGWIN_ROOT_PATH$input_path" 23674 fi 23675 fi 23676 23677 23678 if test "x$path" != "x$new_path"; then 23679 BOOT_JDK="$new_path" 23680 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23681 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23682 fi 23683 23684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23685 23686 path="$BOOT_JDK" 23687 has_colon=`$ECHO $path | $GREP ^.:` 23688 new_path="$path" 23689 if test "x$has_colon" = x; then 23690 # Not in mixed or Windows style, start by that. 23691 new_path=`cmd //c echo $path` 23692 fi 23693 23694 23695 input_path="$new_path" 23696 # Check if we need to convert this using DOS-style short mode. If the path 23697 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23698 # take no chances and rewrite it. 23699 # Note: m4 eats our [], so we need to use [ and ] instead. 23700 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23701 if test "x$has_forbidden_chars" != x; then 23702 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23703 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23704 fi 23705 23706 23707 windows_path="$new_path" 23708 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23709 unix_path=`$CYGPATH -u "$windows_path"` 23710 new_path="$unix_path" 23711 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23712 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23713 new_path="$unix_path" 23714 fi 23715 23716 if test "x$path" != "x$new_path"; then 23717 BOOT_JDK="$new_path" 23718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23720 fi 23721 23722 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23723 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23724 23725 else 23726 # We're on a posix platform. Hooray! :) 23727 path="$BOOT_JDK" 23728 has_space=`$ECHO "$path" | $GREP " "` 23729 if test "x$has_space" != x; then 23730 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23731 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23732 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23733 fi 23734 23735 # Use eval to expand a potential ~ 23736 eval path="$path" 23737 if test ! -f "$path" && test ! -d "$path"; then 23738 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23739 fi 23740 23741 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23742 fi 23743 23744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23745 $as_echo_n "checking for Boot JDK... " >&6; } 23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23747 $as_echo "$BOOT_JDK" >&6; } 23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23749 $as_echo_n "checking Boot JDK version... " >&6; } 23750 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23752 $as_echo "$BOOT_JDK_VERSION" >&6; } 23753 fi # end check jdk version 23754 fi # end check rt.jar 23755 fi # end check javac 23756 fi # end check java 23757 fi # end check boot jdk found 23758 fi 23759 23760 done 23761 fi 23762 23763 23764 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23765 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23766 # Do we have a bin/java? 23767 if test ! -x "$BOOT_JDK/bin/java"; then 23768 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23769 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23770 BOOT_JDK_FOUND=no 23771 else 23772 # Do we have a bin/javac? 23773 if test ! -x "$BOOT_JDK/bin/javac"; then 23774 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23775 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23776 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23777 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23778 BOOT_JDK_FOUND=no 23779 else 23780 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23781 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23782 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23783 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23784 BOOT_JDK_FOUND=no 23785 else 23786 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23787 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23788 23789 # Extra M4 quote needed to protect [] in grep expression. 23790 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23791 if test "x$FOUND_CORRECT_VERSION" = x; then 23792 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23793 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23794 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23795 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23796 BOOT_JDK_FOUND=no 23797 else 23798 # We're done! :-) 23799 BOOT_JDK_FOUND=yes 23800 23801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23802 23803 # Input might be given as Windows format, start by converting to 23804 # unix format. 23805 path="$BOOT_JDK" 23806 new_path=`$CYGPATH -u "$path"` 23807 23808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23811 # "foo.exe" is OK but "foo" is an error. 23812 # 23813 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23814 # It is also a way to make sure we got the proper file name for the real test later on. 23815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23816 if test "x$test_shortpath" = x; then 23817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23818 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23819 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23820 fi 23821 23822 # Call helper function which possibly converts this using DOS-style short mode. 23823 # If so, the updated path is stored in $new_path. 23824 23825 input_path="$new_path" 23826 # Check if we need to convert this using DOS-style short mode. If the path 23827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23828 # take no chances and rewrite it. 23829 # Note: m4 eats our [], so we need to use [ and ] instead. 23830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23831 if test "x$has_forbidden_chars" != x; then 23832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23836 # Going to short mode and back again did indeed matter. Since short mode is 23837 # case insensitive, let's make it lowercase to improve readability. 23838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23839 # Now convert it back to Unix-stile (cygpath) 23840 input_path=`$CYGPATH -u "$shortmode_path"` 23841 new_path="$input_path" 23842 fi 23843 fi 23844 23845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23846 if test "x$test_cygdrive_prefix" = x; then 23847 # As a simple fix, exclude /usr/bin since it's not a real path. 23848 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23850 # a path prefixed by /cygdrive for fixpath to work. 23851 new_path="$CYGWIN_ROOT_PATH$input_path" 23852 fi 23853 fi 23854 23855 23856 if test "x$path" != "x$new_path"; then 23857 BOOT_JDK="$new_path" 23858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23859 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23860 fi 23861 23862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23863 23864 path="$BOOT_JDK" 23865 has_colon=`$ECHO $path | $GREP ^.:` 23866 new_path="$path" 23867 if test "x$has_colon" = x; then 23868 # Not in mixed or Windows style, start by that. 23869 new_path=`cmd //c echo $path` 23870 fi 23871 23872 23873 input_path="$new_path" 23874 # Check if we need to convert this using DOS-style short mode. If the path 23875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23876 # take no chances and rewrite it. 23877 # Note: m4 eats our [], so we need to use [ and ] instead. 23878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23879 if test "x$has_forbidden_chars" != x; then 23880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23881 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23882 fi 23883 23884 23885 windows_path="$new_path" 23886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23887 unix_path=`$CYGPATH -u "$windows_path"` 23888 new_path="$unix_path" 23889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23891 new_path="$unix_path" 23892 fi 23893 23894 if test "x$path" != "x$new_path"; then 23895 BOOT_JDK="$new_path" 23896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23897 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23898 fi 23899 23900 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23901 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23902 23903 else 23904 # We're on a posix platform. Hooray! :) 23905 path="$BOOT_JDK" 23906 has_space=`$ECHO "$path" | $GREP " "` 23907 if test "x$has_space" != x; then 23908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23909 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23910 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23911 fi 23912 23913 # Use eval to expand a potential ~ 23914 eval path="$path" 23915 if test ! -f "$path" && test ! -d "$path"; then 23916 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23917 fi 23918 23919 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23920 fi 23921 23922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23923 $as_echo_n "checking for Boot JDK... " >&6; } 23924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23925 $as_echo "$BOOT_JDK" >&6; } 23926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23927 $as_echo_n "checking Boot JDK version... " >&6; } 23928 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23930 $as_echo "$BOOT_JDK_VERSION" >&6; } 23931 fi # end check jdk version 23932 fi # end check rt.jar 23933 fi # end check javac 23934 fi # end check java 23935 fi # end check boot jdk found 23936 fi 23937 23938 23939 if test "x$BOOT_JDK_FOUND" = xno; then 23940 # Now execute the test 23941 23942 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23943 BOOT_JDK_SUFFIX="/Contents/Home" 23944 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23945 if test "x$ALL_JDKS_FOUND" != x; then 23946 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23947 23948 if test "x$BOOT_JDK_FOUND" = xno; then 23949 # Now execute the test 23950 23951 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23952 if test -d "$BOOT_JDK"; then 23953 BOOT_JDK_FOUND=maybe 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23955 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23956 fi 23957 23958 23959 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23960 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23961 # Do we have a bin/java? 23962 if test ! -x "$BOOT_JDK/bin/java"; then 23963 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23964 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23965 BOOT_JDK_FOUND=no 23966 else 23967 # Do we have a bin/javac? 23968 if test ! -x "$BOOT_JDK/bin/javac"; then 23969 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23970 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23971 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23972 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23973 BOOT_JDK_FOUND=no 23974 else 23975 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23976 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23977 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23978 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23979 BOOT_JDK_FOUND=no 23980 else 23981 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23982 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23983 23984 # Extra M4 quote needed to protect [] in grep expression. 23985 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23986 if test "x$FOUND_CORRECT_VERSION" = x; then 23987 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23988 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23989 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23990 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23991 BOOT_JDK_FOUND=no 23992 else 23993 # We're done! :-) 23994 BOOT_JDK_FOUND=yes 23995 23996 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23997 23998 # Input might be given as Windows format, start by converting to 23999 # unix format. 24000 path="$BOOT_JDK" 24001 new_path=`$CYGPATH -u "$path"` 24002 24003 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24004 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24005 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24006 # "foo.exe" is OK but "foo" is an error. 24007 # 24008 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24009 # It is also a way to make sure we got the proper file name for the real test later on. 24010 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24011 if test "x$test_shortpath" = x; then 24012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24013 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24014 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24015 fi 24016 24017 # Call helper function which possibly converts this using DOS-style short mode. 24018 # If so, the updated path is stored in $new_path. 24019 24020 input_path="$new_path" 24021 # Check if we need to convert this using DOS-style short mode. If the path 24022 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24023 # take no chances and rewrite it. 24024 # Note: m4 eats our [], so we need to use [ and ] instead. 24025 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24026 if test "x$has_forbidden_chars" != x; then 24027 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24028 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24029 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24030 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24031 # Going to short mode and back again did indeed matter. Since short mode is 24032 # case insensitive, let's make it lowercase to improve readability. 24033 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24034 # Now convert it back to Unix-stile (cygpath) 24035 input_path=`$CYGPATH -u "$shortmode_path"` 24036 new_path="$input_path" 24037 fi 24038 fi 24039 24040 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24041 if test "x$test_cygdrive_prefix" = x; then 24042 # As a simple fix, exclude /usr/bin since it's not a real path. 24043 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24044 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24045 # a path prefixed by /cygdrive for fixpath to work. 24046 new_path="$CYGWIN_ROOT_PATH$input_path" 24047 fi 24048 fi 24049 24050 24051 if test "x$path" != "x$new_path"; then 24052 BOOT_JDK="$new_path" 24053 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24054 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24055 fi 24056 24057 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24058 24059 path="$BOOT_JDK" 24060 has_colon=`$ECHO $path | $GREP ^.:` 24061 new_path="$path" 24062 if test "x$has_colon" = x; then 24063 # Not in mixed or Windows style, start by that. 24064 new_path=`cmd //c echo $path` 24065 fi 24066 24067 24068 input_path="$new_path" 24069 # Check if we need to convert this using DOS-style short mode. If the path 24070 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24071 # take no chances and rewrite it. 24072 # Note: m4 eats our [], so we need to use [ and ] instead. 24073 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24074 if test "x$has_forbidden_chars" != x; then 24075 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24076 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24077 fi 24078 24079 24080 windows_path="$new_path" 24081 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24082 unix_path=`$CYGPATH -u "$windows_path"` 24083 new_path="$unix_path" 24084 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24085 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24086 new_path="$unix_path" 24087 fi 24088 24089 if test "x$path" != "x$new_path"; then 24090 BOOT_JDK="$new_path" 24091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24092 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24093 fi 24094 24095 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24096 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24097 24098 else 24099 # We're on a posix platform. Hooray! :) 24100 path="$BOOT_JDK" 24101 has_space=`$ECHO "$path" | $GREP " "` 24102 if test "x$has_space" != x; then 24103 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24104 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24105 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24106 fi 24107 24108 # Use eval to expand a potential ~ 24109 eval path="$path" 24110 if test ! -f "$path" && test ! -d "$path"; then 24111 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24112 fi 24113 24114 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24115 fi 24116 24117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24118 $as_echo_n "checking for Boot JDK... " >&6; } 24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24120 $as_echo "$BOOT_JDK" >&6; } 24121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24122 $as_echo_n "checking Boot JDK version... " >&6; } 24123 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24125 $as_echo "$BOOT_JDK_VERSION" >&6; } 24126 fi # end check jdk version 24127 fi # end check rt.jar 24128 fi # end check javac 24129 fi # end check java 24130 fi # end check boot jdk found 24131 fi 24132 24133 done 24134 fi 24135 24136 24137 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24138 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24139 # Do we have a bin/java? 24140 if test ! -x "$BOOT_JDK/bin/java"; then 24141 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24142 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24143 BOOT_JDK_FOUND=no 24144 else 24145 # Do we have a bin/javac? 24146 if test ! -x "$BOOT_JDK/bin/javac"; then 24147 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24148 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24150 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24151 BOOT_JDK_FOUND=no 24152 else 24153 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24154 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24155 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24156 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24157 BOOT_JDK_FOUND=no 24158 else 24159 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24160 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24161 24162 # Extra M4 quote needed to protect [] in grep expression. 24163 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24164 if test "x$FOUND_CORRECT_VERSION" = x; then 24165 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24166 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24167 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24168 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24169 BOOT_JDK_FOUND=no 24170 else 24171 # We're done! :-) 24172 BOOT_JDK_FOUND=yes 24173 24174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24175 24176 # Input might be given as Windows format, start by converting to 24177 # unix format. 24178 path="$BOOT_JDK" 24179 new_path=`$CYGPATH -u "$path"` 24180 24181 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24182 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24183 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24184 # "foo.exe" is OK but "foo" is an error. 24185 # 24186 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24187 # It is also a way to make sure we got the proper file name for the real test later on. 24188 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24189 if test "x$test_shortpath" = x; then 24190 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24191 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24192 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24193 fi 24194 24195 # Call helper function which possibly converts this using DOS-style short mode. 24196 # If so, the updated path is stored in $new_path. 24197 24198 input_path="$new_path" 24199 # Check if we need to convert this using DOS-style short mode. If the path 24200 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24201 # take no chances and rewrite it. 24202 # Note: m4 eats our [], so we need to use [ and ] instead. 24203 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24204 if test "x$has_forbidden_chars" != x; then 24205 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24206 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24207 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24208 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24209 # Going to short mode and back again did indeed matter. Since short mode is 24210 # case insensitive, let's make it lowercase to improve readability. 24211 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24212 # Now convert it back to Unix-stile (cygpath) 24213 input_path=`$CYGPATH -u "$shortmode_path"` 24214 new_path="$input_path" 24215 fi 24216 fi 24217 24218 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24219 if test "x$test_cygdrive_prefix" = x; then 24220 # As a simple fix, exclude /usr/bin since it's not a real path. 24221 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24222 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24223 # a path prefixed by /cygdrive for fixpath to work. 24224 new_path="$CYGWIN_ROOT_PATH$input_path" 24225 fi 24226 fi 24227 24228 24229 if test "x$path" != "x$new_path"; then 24230 BOOT_JDK="$new_path" 24231 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24232 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24233 fi 24234 24235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24236 24237 path="$BOOT_JDK" 24238 has_colon=`$ECHO $path | $GREP ^.:` 24239 new_path="$path" 24240 if test "x$has_colon" = x; then 24241 # Not in mixed or Windows style, start by that. 24242 new_path=`cmd //c echo $path` 24243 fi 24244 24245 24246 input_path="$new_path" 24247 # Check if we need to convert this using DOS-style short mode. If the path 24248 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24249 # take no chances and rewrite it. 24250 # Note: m4 eats our [], so we need to use [ and ] instead. 24251 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24252 if test "x$has_forbidden_chars" != x; then 24253 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24254 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24255 fi 24256 24257 24258 windows_path="$new_path" 24259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24260 unix_path=`$CYGPATH -u "$windows_path"` 24261 new_path="$unix_path" 24262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24264 new_path="$unix_path" 24265 fi 24266 24267 if test "x$path" != "x$new_path"; then 24268 BOOT_JDK="$new_path" 24269 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24270 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24271 fi 24272 24273 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24274 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24275 24276 else 24277 # We're on a posix platform. Hooray! :) 24278 path="$BOOT_JDK" 24279 has_space=`$ECHO "$path" | $GREP " "` 24280 if test "x$has_space" != x; then 24281 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24282 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24283 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24284 fi 24285 24286 # Use eval to expand a potential ~ 24287 eval path="$path" 24288 if test ! -f "$path" && test ! -d "$path"; then 24289 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24290 fi 24291 24292 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24293 fi 24294 24295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24296 $as_echo_n "checking for Boot JDK... " >&6; } 24297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24298 $as_echo "$BOOT_JDK" >&6; } 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24300 $as_echo_n "checking Boot JDK version... " >&6; } 24301 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24303 $as_echo "$BOOT_JDK_VERSION" >&6; } 24304 fi # end check jdk version 24305 fi # end check rt.jar 24306 fi # end check javac 24307 fi # end check java 24308 fi # end check boot jdk found 24309 fi 24310 24311 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24312 24313 if test "x$BOOT_JDK_FOUND" = xno; then 24314 # Now execute the test 24315 24316 BOOT_JDK_PREFIX="/usr/lib/jvm" 24317 BOOT_JDK_SUFFIX="" 24318 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24319 if test "x$ALL_JDKS_FOUND" != x; then 24320 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24321 24322 if test "x$BOOT_JDK_FOUND" = xno; then 24323 # Now execute the test 24324 24325 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24326 if test -d "$BOOT_JDK"; then 24327 BOOT_JDK_FOUND=maybe 24328 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24329 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24330 fi 24331 24332 24333 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24334 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24335 # Do we have a bin/java? 24336 if test ! -x "$BOOT_JDK/bin/java"; then 24337 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24338 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24339 BOOT_JDK_FOUND=no 24340 else 24341 # Do we have a bin/javac? 24342 if test ! -x "$BOOT_JDK/bin/javac"; then 24343 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24344 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24345 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24346 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24347 BOOT_JDK_FOUND=no 24348 else 24349 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24350 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24351 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24352 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24353 BOOT_JDK_FOUND=no 24354 else 24355 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24356 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24357 24358 # Extra M4 quote needed to protect [] in grep expression. 24359 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24360 if test "x$FOUND_CORRECT_VERSION" = x; then 24361 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24362 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24363 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24364 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24365 BOOT_JDK_FOUND=no 24366 else 24367 # We're done! :-) 24368 BOOT_JDK_FOUND=yes 24369 24370 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24371 24372 # Input might be given as Windows format, start by converting to 24373 # unix format. 24374 path="$BOOT_JDK" 24375 new_path=`$CYGPATH -u "$path"` 24376 24377 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24378 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24379 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24380 # "foo.exe" is OK but "foo" is an error. 24381 # 24382 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24383 # It is also a way to make sure we got the proper file name for the real test later on. 24384 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24385 if test "x$test_shortpath" = x; then 24386 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24387 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24388 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24389 fi 24390 24391 # Call helper function which possibly converts this using DOS-style short mode. 24392 # If so, the updated path is stored in $new_path. 24393 24394 input_path="$new_path" 24395 # Check if we need to convert this using DOS-style short mode. If the path 24396 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24397 # take no chances and rewrite it. 24398 # Note: m4 eats our [], so we need to use [ and ] instead. 24399 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24400 if test "x$has_forbidden_chars" != x; then 24401 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24402 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24403 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24404 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24405 # Going to short mode and back again did indeed matter. Since short mode is 24406 # case insensitive, let's make it lowercase to improve readability. 24407 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24408 # Now convert it back to Unix-stile (cygpath) 24409 input_path=`$CYGPATH -u "$shortmode_path"` 24410 new_path="$input_path" 24411 fi 24412 fi 24413 24414 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24415 if test "x$test_cygdrive_prefix" = x; then 24416 # As a simple fix, exclude /usr/bin since it's not a real path. 24417 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24418 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24419 # a path prefixed by /cygdrive for fixpath to work. 24420 new_path="$CYGWIN_ROOT_PATH$input_path" 24421 fi 24422 fi 24423 24424 24425 if test "x$path" != "x$new_path"; then 24426 BOOT_JDK="$new_path" 24427 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24428 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24429 fi 24430 24431 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24432 24433 path="$BOOT_JDK" 24434 has_colon=`$ECHO $path | $GREP ^.:` 24435 new_path="$path" 24436 if test "x$has_colon" = x; then 24437 # Not in mixed or Windows style, start by that. 24438 new_path=`cmd //c echo $path` 24439 fi 24440 24441 24442 input_path="$new_path" 24443 # Check if we need to convert this using DOS-style short mode. If the path 24444 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24445 # take no chances and rewrite it. 24446 # Note: m4 eats our [], so we need to use [ and ] instead. 24447 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24448 if test "x$has_forbidden_chars" != x; then 24449 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24450 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24451 fi 24452 24453 24454 windows_path="$new_path" 24455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24456 unix_path=`$CYGPATH -u "$windows_path"` 24457 new_path="$unix_path" 24458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24459 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24460 new_path="$unix_path" 24461 fi 24462 24463 if test "x$path" != "x$new_path"; then 24464 BOOT_JDK="$new_path" 24465 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24466 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24467 fi 24468 24469 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24470 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24471 24472 else 24473 # We're on a posix platform. Hooray! :) 24474 path="$BOOT_JDK" 24475 has_space=`$ECHO "$path" | $GREP " "` 24476 if test "x$has_space" != x; then 24477 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24478 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24479 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24480 fi 24481 24482 # Use eval to expand a potential ~ 24483 eval path="$path" 24484 if test ! -f "$path" && test ! -d "$path"; then 24485 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24486 fi 24487 24488 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24489 fi 24490 24491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24492 $as_echo_n "checking for Boot JDK... " >&6; } 24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24494 $as_echo "$BOOT_JDK" >&6; } 24495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24496 $as_echo_n "checking Boot JDK version... " >&6; } 24497 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24499 $as_echo "$BOOT_JDK_VERSION" >&6; } 24500 fi # end check jdk version 24501 fi # end check rt.jar 24502 fi # end check javac 24503 fi # end check java 24504 fi # end check boot jdk found 24505 fi 24506 24507 done 24508 fi 24509 24510 24511 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24512 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24513 # Do we have a bin/java? 24514 if test ! -x "$BOOT_JDK/bin/java"; then 24515 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24516 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24517 BOOT_JDK_FOUND=no 24518 else 24519 # Do we have a bin/javac? 24520 if test ! -x "$BOOT_JDK/bin/javac"; then 24521 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24522 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24523 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24524 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24525 BOOT_JDK_FOUND=no 24526 else 24527 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24528 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24529 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24530 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24531 BOOT_JDK_FOUND=no 24532 else 24533 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24534 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24535 24536 # Extra M4 quote needed to protect [] in grep expression. 24537 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24538 if test "x$FOUND_CORRECT_VERSION" = x; then 24539 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24540 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24541 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24542 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24543 BOOT_JDK_FOUND=no 24544 else 24545 # We're done! :-) 24546 BOOT_JDK_FOUND=yes 24547 24548 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24549 24550 # Input might be given as Windows format, start by converting to 24551 # unix format. 24552 path="$BOOT_JDK" 24553 new_path=`$CYGPATH -u "$path"` 24554 24555 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24556 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24557 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24558 # "foo.exe" is OK but "foo" is an error. 24559 # 24560 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24561 # It is also a way to make sure we got the proper file name for the real test later on. 24562 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24563 if test "x$test_shortpath" = x; then 24564 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24565 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24566 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24567 fi 24568 24569 # Call helper function which possibly converts this using DOS-style short mode. 24570 # If so, the updated path is stored in $new_path. 24571 24572 input_path="$new_path" 24573 # Check if we need to convert this using DOS-style short mode. If the path 24574 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24575 # take no chances and rewrite it. 24576 # Note: m4 eats our [], so we need to use [ and ] instead. 24577 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24578 if test "x$has_forbidden_chars" != x; then 24579 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24580 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24581 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24582 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24583 # Going to short mode and back again did indeed matter. Since short mode is 24584 # case insensitive, let's make it lowercase to improve readability. 24585 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24586 # Now convert it back to Unix-stile (cygpath) 24587 input_path=`$CYGPATH -u "$shortmode_path"` 24588 new_path="$input_path" 24589 fi 24590 fi 24591 24592 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24593 if test "x$test_cygdrive_prefix" = x; then 24594 # As a simple fix, exclude /usr/bin since it's not a real path. 24595 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24596 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24597 # a path prefixed by /cygdrive for fixpath to work. 24598 new_path="$CYGWIN_ROOT_PATH$input_path" 24599 fi 24600 fi 24601 24602 24603 if test "x$path" != "x$new_path"; then 24604 BOOT_JDK="$new_path" 24605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24606 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24607 fi 24608 24609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24610 24611 path="$BOOT_JDK" 24612 has_colon=`$ECHO $path | $GREP ^.:` 24613 new_path="$path" 24614 if test "x$has_colon" = x; then 24615 # Not in mixed or Windows style, start by that. 24616 new_path=`cmd //c echo $path` 24617 fi 24618 24619 24620 input_path="$new_path" 24621 # Check if we need to convert this using DOS-style short mode. If the path 24622 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24623 # take no chances and rewrite it. 24624 # Note: m4 eats our [], so we need to use [ and ] instead. 24625 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24626 if test "x$has_forbidden_chars" != x; then 24627 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24628 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24629 fi 24630 24631 24632 windows_path="$new_path" 24633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24634 unix_path=`$CYGPATH -u "$windows_path"` 24635 new_path="$unix_path" 24636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24638 new_path="$unix_path" 24639 fi 24640 24641 if test "x$path" != "x$new_path"; then 24642 BOOT_JDK="$new_path" 24643 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24644 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24645 fi 24646 24647 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24648 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24649 24650 else 24651 # We're on a posix platform. Hooray! :) 24652 path="$BOOT_JDK" 24653 has_space=`$ECHO "$path" | $GREP " "` 24654 if test "x$has_space" != x; then 24655 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24656 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24657 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24658 fi 24659 24660 # Use eval to expand a potential ~ 24661 eval path="$path" 24662 if test ! -f "$path" && test ! -d "$path"; then 24663 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24664 fi 24665 24666 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24667 fi 24668 24669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24670 $as_echo_n "checking for Boot JDK... " >&6; } 24671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24672 $as_echo "$BOOT_JDK" >&6; } 24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24674 $as_echo_n "checking Boot JDK version... " >&6; } 24675 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24677 $as_echo "$BOOT_JDK_VERSION" >&6; } 24678 fi # end check jdk version 24679 fi # end check rt.jar 24680 fi # end check javac 24681 fi # end check java 24682 fi # end check boot jdk found 24683 fi 24684 24685 fi 24686 24687 24688 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24689 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24690 # Do we have a bin/java? 24691 if test ! -x "$BOOT_JDK/bin/java"; then 24692 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24693 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24694 BOOT_JDK_FOUND=no 24695 else 24696 # Do we have a bin/javac? 24697 if test ! -x "$BOOT_JDK/bin/javac"; then 24698 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24699 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24700 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24701 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24702 BOOT_JDK_FOUND=no 24703 else 24704 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24705 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24706 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24707 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24708 BOOT_JDK_FOUND=no 24709 else 24710 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24711 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24712 24713 # Extra M4 quote needed to protect [] in grep expression. 24714 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24715 if test "x$FOUND_CORRECT_VERSION" = x; then 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24719 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24720 BOOT_JDK_FOUND=no 24721 else 24722 # We're done! :-) 24723 BOOT_JDK_FOUND=yes 24724 24725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24726 24727 # Input might be given as Windows format, start by converting to 24728 # unix format. 24729 path="$BOOT_JDK" 24730 new_path=`$CYGPATH -u "$path"` 24731 24732 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24733 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24734 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24735 # "foo.exe" is OK but "foo" is an error. 24736 # 24737 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24738 # It is also a way to make sure we got the proper file name for the real test later on. 24739 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24740 if test "x$test_shortpath" = x; then 24741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24742 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24743 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24744 fi 24745 24746 # Call helper function which possibly converts this using DOS-style short mode. 24747 # If so, the updated path is stored in $new_path. 24748 24749 input_path="$new_path" 24750 # Check if we need to convert this using DOS-style short mode. If the path 24751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24752 # take no chances and rewrite it. 24753 # Note: m4 eats our [], so we need to use [ and ] instead. 24754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24755 if test "x$has_forbidden_chars" != x; then 24756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24757 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24758 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24759 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24760 # Going to short mode and back again did indeed matter. Since short mode is 24761 # case insensitive, let's make it lowercase to improve readability. 24762 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24763 # Now convert it back to Unix-stile (cygpath) 24764 input_path=`$CYGPATH -u "$shortmode_path"` 24765 new_path="$input_path" 24766 fi 24767 fi 24768 24769 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24770 if test "x$test_cygdrive_prefix" = x; then 24771 # As a simple fix, exclude /usr/bin since it's not a real path. 24772 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24773 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24774 # a path prefixed by /cygdrive for fixpath to work. 24775 new_path="$CYGWIN_ROOT_PATH$input_path" 24776 fi 24777 fi 24778 24779 24780 if test "x$path" != "x$new_path"; then 24781 BOOT_JDK="$new_path" 24782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24783 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24784 fi 24785 24786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24787 24788 path="$BOOT_JDK" 24789 has_colon=`$ECHO $path | $GREP ^.:` 24790 new_path="$path" 24791 if test "x$has_colon" = x; then 24792 # Not in mixed or Windows style, start by that. 24793 new_path=`cmd //c echo $path` 24794 fi 24795 24796 24797 input_path="$new_path" 24798 # Check if we need to convert this using DOS-style short mode. If the path 24799 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24800 # take no chances and rewrite it. 24801 # Note: m4 eats our [], so we need to use [ and ] instead. 24802 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24803 if test "x$has_forbidden_chars" != x; then 24804 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24805 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24806 fi 24807 24808 24809 windows_path="$new_path" 24810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24811 unix_path=`$CYGPATH -u "$windows_path"` 24812 new_path="$unix_path" 24813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24815 new_path="$unix_path" 24816 fi 24817 24818 if test "x$path" != "x$new_path"; then 24819 BOOT_JDK="$new_path" 24820 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24821 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24822 fi 24823 24824 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24825 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24826 24827 else 24828 # We're on a posix platform. Hooray! :) 24829 path="$BOOT_JDK" 24830 has_space=`$ECHO "$path" | $GREP " "` 24831 if test "x$has_space" != x; then 24832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24833 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24834 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24835 fi 24836 24837 # Use eval to expand a potential ~ 24838 eval path="$path" 24839 if test ! -f "$path" && test ! -d "$path"; then 24840 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24841 fi 24842 24843 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24844 fi 24845 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24847 $as_echo_n "checking for Boot JDK... " >&6; } 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24849 $as_echo "$BOOT_JDK" >&6; } 24850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24851 $as_echo_n "checking Boot JDK version... " >&6; } 24852 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24854 $as_echo "$BOOT_JDK_VERSION" >&6; } 24855 fi # end check jdk version 24856 fi # end check rt.jar 24857 fi # end check javac 24858 fi # end check java 24859 fi # end check boot jdk found 24860 fi 24861 24862 24863 # If we haven't found anything yet, we've truly lost. Give up. 24864 if test "x$BOOT_JDK_FOUND" = xno; then 24865 24866 # Print a helpful message on how to acquire the necessary build dependency. 24867 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24868 MISSING_DEPENDENCY=openjdk 24869 24870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24871 cygwin_help $MISSING_DEPENDENCY 24872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24873 msys_help $MISSING_DEPENDENCY 24874 else 24875 PKGHANDLER_COMMAND= 24876 24877 case $PKGHANDLER in 24878 apt-get) 24879 apt_help $MISSING_DEPENDENCY ;; 24880 yum) 24881 yum_help $MISSING_DEPENDENCY ;; 24882 port) 24883 port_help $MISSING_DEPENDENCY ;; 24884 pkgutil) 24885 pkgutil_help $MISSING_DEPENDENCY ;; 24886 pkgadd) 24887 pkgadd_help $MISSING_DEPENDENCY ;; 24888 esac 24889 24890 if test "x$PKGHANDLER_COMMAND" != x; then 24891 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24892 fi 24893 fi 24894 24895 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24896 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24897 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24898 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24899 as_fn_error $? "Cannot continue" "$LINENO" 5 24900 fi 24901 24902 # Setup proper paths for what we found 24903 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24904 if test ! -f "$BOOT_RTJAR"; then 24905 # On MacOSX it is called classes.jar 24906 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24907 if test -f "$BOOT_RTJAR"; then 24908 # Remove the .. 24909 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24910 fi 24911 fi 24912 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24913 BOOT_JDK="$BOOT_JDK" 24914 24915 24916 24917 24918 # Setup tools from the Boot JDK. 24919 24920 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 24921 24922 # Publish this variable in the help. 24923 24924 24925 if test "x$JAVA" = x; then 24926 # The variable is not set by user, try to locate tool using the code snippet 24927 24928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24929 $as_echo_n "checking for java in Boot JDK... " >&6; } 24930 JAVA=$BOOT_JDK/bin/java 24931 if test ! -x $JAVA; then 24932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24933 $as_echo "not found" >&6; } 24934 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24935 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24936 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24937 fi 24938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24939 $as_echo "ok" >&6; } 24940 24941 24942 else 24943 # The variable is set, but is it from the command line or the environment? 24944 24945 # Try to remove the string !JAVA! from our list. 24946 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 24947 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 24948 # If it failed, the variable was not from the command line. Ignore it, 24949 # but warn the user (except for BASH, which is always set by the calling BASH). 24950 if test "xJAVA" != xBASH; then 24951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 24952 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 24953 fi 24954 # Try to locate tool using the code snippet 24955 24956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24957 $as_echo_n "checking for java in Boot JDK... " >&6; } 24958 JAVA=$BOOT_JDK/bin/java 24959 if test ! -x $JAVA; then 24960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24961 $as_echo "not found" >&6; } 24962 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24963 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24964 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24965 fi 24966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24967 $as_echo "ok" >&6; } 24968 24969 24970 else 24971 # If it succeeded, then it was overridden by the user. We will use it 24972 # for the tool. 24973 24974 # First remove it from the list of overridden variables, so we can test 24975 # for unknown variables in the end. 24976 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 24977 24978 # Check if the provided tool contains a complete path. 24979 tool_specified="$JAVA" 24980 tool_basename="${tool_specified##*/}" 24981 if test "x$tool_basename" = "x$tool_specified"; then 24982 # A command without a complete path is provided, search $PATH. 24983 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 24984 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 24985 # Extract the first word of "$tool_basename", so it can be a program name with args. 24986 set dummy $tool_basename; ac_word=$2 24987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24988 $as_echo_n "checking for $ac_word... " >&6; } 24989 if ${ac_cv_path_JAVA+:} false; then : 24990 $as_echo_n "(cached) " >&6 24991 else 24992 case $JAVA in 24993 [\\/]* | ?:[\\/]*) 24994 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 24995 ;; 24996 *) 24997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24998 for as_dir in $PATH 24999 do 25000 IFS=$as_save_IFS 25001 test -z "$as_dir" && as_dir=. 25002 for ac_exec_ext in '' $ac_executable_extensions; do 25003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25004 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25006 break 2 25007 fi 25008 done 25009 done 25010 IFS=$as_save_IFS 25011 25012 ;; 25013 esac 25014 fi 25015 JAVA=$ac_cv_path_JAVA 25016 if test -n "$JAVA"; then 25017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25018 $as_echo "$JAVA" >&6; } 25019 else 25020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25021 $as_echo "no" >&6; } 25022 fi 25023 25024 25025 if test "x$JAVA" = x; then 25026 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25027 fi 25028 else 25029 # Otherwise we believe it is a complete path. Use it as it is. 25030 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25031 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25033 $as_echo_n "checking for JAVA... " >&6; } 25034 if test ! -x "$tool_specified"; then 25035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25036 $as_echo "not found" >&6; } 25037 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25038 fi 25039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25040 $as_echo "$tool_specified" >&6; } 25041 fi 25042 fi 25043 fi 25044 25045 25046 25047 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25048 25049 # Publish this variable in the help. 25050 25051 25052 if test "x$JAVAC" = x; then 25053 # The variable is not set by user, try to locate tool using the code snippet 25054 25055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25056 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25057 JAVAC=$BOOT_JDK/bin/javac 25058 if test ! -x $JAVAC; then 25059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25060 $as_echo "not found" >&6; } 25061 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25062 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25063 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25064 fi 25065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25066 $as_echo "ok" >&6; } 25067 25068 25069 else 25070 # The variable is set, but is it from the command line or the environment? 25071 25072 # Try to remove the string !JAVAC! from our list. 25073 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25074 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25075 # If it failed, the variable was not from the command line. Ignore it, 25076 # but warn the user (except for BASH, which is always set by the calling BASH). 25077 if test "xJAVAC" != xBASH; then 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25079 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25080 fi 25081 # Try to locate tool using the code snippet 25082 25083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25084 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25085 JAVAC=$BOOT_JDK/bin/javac 25086 if test ! -x $JAVAC; then 25087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25088 $as_echo "not found" >&6; } 25089 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25090 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25091 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25092 fi 25093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25094 $as_echo "ok" >&6; } 25095 25096 25097 else 25098 # If it succeeded, then it was overridden by the user. We will use it 25099 # for the tool. 25100 25101 # First remove it from the list of overridden variables, so we can test 25102 # for unknown variables in the end. 25103 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25104 25105 # Check if the provided tool contains a complete path. 25106 tool_specified="$JAVAC" 25107 tool_basename="${tool_specified##*/}" 25108 if test "x$tool_basename" = "x$tool_specified"; then 25109 # A command without a complete path is provided, search $PATH. 25110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25111 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25112 # Extract the first word of "$tool_basename", so it can be a program name with args. 25113 set dummy $tool_basename; ac_word=$2 25114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25115 $as_echo_n "checking for $ac_word... " >&6; } 25116 if ${ac_cv_path_JAVAC+:} false; then : 25117 $as_echo_n "(cached) " >&6 25118 else 25119 case $JAVAC in 25120 [\\/]* | ?:[\\/]*) 25121 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25122 ;; 25123 *) 25124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25125 for as_dir in $PATH 25126 do 25127 IFS=$as_save_IFS 25128 test -z "$as_dir" && as_dir=. 25129 for ac_exec_ext in '' $ac_executable_extensions; do 25130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25131 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25133 break 2 25134 fi 25135 done 25136 done 25137 IFS=$as_save_IFS 25138 25139 ;; 25140 esac 25141 fi 25142 JAVAC=$ac_cv_path_JAVAC 25143 if test -n "$JAVAC"; then 25144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25145 $as_echo "$JAVAC" >&6; } 25146 else 25147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25148 $as_echo "no" >&6; } 25149 fi 25150 25151 25152 if test "x$JAVAC" = x; then 25153 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25154 fi 25155 else 25156 # Otherwise we believe it is a complete path. Use it as it is. 25157 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25158 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25160 $as_echo_n "checking for JAVAC... " >&6; } 25161 if test ! -x "$tool_specified"; then 25162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25163 $as_echo "not found" >&6; } 25164 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25165 fi 25166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25167 $as_echo "$tool_specified" >&6; } 25168 fi 25169 fi 25170 fi 25171 25172 25173 25174 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25175 25176 # Publish this variable in the help. 25177 25178 25179 if test "x$JAVAH" = x; then 25180 # The variable is not set by user, try to locate tool using the code snippet 25181 25182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25183 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25184 JAVAH=$BOOT_JDK/bin/javah 25185 if test ! -x $JAVAH; then 25186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25187 $as_echo "not found" >&6; } 25188 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25189 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25190 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25191 fi 25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25193 $as_echo "ok" >&6; } 25194 25195 25196 else 25197 # The variable is set, but is it from the command line or the environment? 25198 25199 # Try to remove the string !JAVAH! from our list. 25200 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25201 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25202 # If it failed, the variable was not from the command line. Ignore it, 25203 # but warn the user (except for BASH, which is always set by the calling BASH). 25204 if test "xJAVAH" != xBASH; then 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25206 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25207 fi 25208 # Try to locate tool using the code snippet 25209 25210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25211 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25212 JAVAH=$BOOT_JDK/bin/javah 25213 if test ! -x $JAVAH; then 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25215 $as_echo "not found" >&6; } 25216 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25217 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25218 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25219 fi 25220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25221 $as_echo "ok" >&6; } 25222 25223 25224 else 25225 # If it succeeded, then it was overridden by the user. We will use it 25226 # for the tool. 25227 25228 # First remove it from the list of overridden variables, so we can test 25229 # for unknown variables in the end. 25230 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25231 25232 # Check if the provided tool contains a complete path. 25233 tool_specified="$JAVAH" 25234 tool_basename="${tool_specified##*/}" 25235 if test "x$tool_basename" = "x$tool_specified"; then 25236 # A command without a complete path is provided, search $PATH. 25237 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25238 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25239 # Extract the first word of "$tool_basename", so it can be a program name with args. 25240 set dummy $tool_basename; ac_word=$2 25241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25242 $as_echo_n "checking for $ac_word... " >&6; } 25243 if ${ac_cv_path_JAVAH+:} false; then : 25244 $as_echo_n "(cached) " >&6 25245 else 25246 case $JAVAH in 25247 [\\/]* | ?:[\\/]*) 25248 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25249 ;; 25250 *) 25251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25252 for as_dir in $PATH 25253 do 25254 IFS=$as_save_IFS 25255 test -z "$as_dir" && as_dir=. 25256 for ac_exec_ext in '' $ac_executable_extensions; do 25257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25258 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25260 break 2 25261 fi 25262 done 25263 done 25264 IFS=$as_save_IFS 25265 25266 ;; 25267 esac 25268 fi 25269 JAVAH=$ac_cv_path_JAVAH 25270 if test -n "$JAVAH"; then 25271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25272 $as_echo "$JAVAH" >&6; } 25273 else 25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25275 $as_echo "no" >&6; } 25276 fi 25277 25278 25279 if test "x$JAVAH" = x; then 25280 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25281 fi 25282 else 25283 # Otherwise we believe it is a complete path. Use it as it is. 25284 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25285 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25287 $as_echo_n "checking for JAVAH... " >&6; } 25288 if test ! -x "$tool_specified"; then 25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25290 $as_echo "not found" >&6; } 25291 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25292 fi 25293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25294 $as_echo "$tool_specified" >&6; } 25295 fi 25296 fi 25297 fi 25298 25299 25300 25301 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25302 25303 # Publish this variable in the help. 25304 25305 25306 if test "x$JAR" = x; then 25307 # The variable is not set by user, try to locate tool using the code snippet 25308 25309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25310 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25311 JAR=$BOOT_JDK/bin/jar 25312 if test ! -x $JAR; then 25313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25314 $as_echo "not found" >&6; } 25315 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25316 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25317 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25318 fi 25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25320 $as_echo "ok" >&6; } 25321 25322 25323 else 25324 # The variable is set, but is it from the command line or the environment? 25325 25326 # Try to remove the string !JAR! from our list. 25327 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25328 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25329 # If it failed, the variable was not from the command line. Ignore it, 25330 # but warn the user (except for BASH, which is always set by the calling BASH). 25331 if test "xJAR" != xBASH; then 25332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25333 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25334 fi 25335 # Try to locate tool using the code snippet 25336 25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25338 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25339 JAR=$BOOT_JDK/bin/jar 25340 if test ! -x $JAR; then 25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25342 $as_echo "not found" >&6; } 25343 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25344 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25345 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25346 fi 25347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25348 $as_echo "ok" >&6; } 25349 25350 25351 else 25352 # If it succeeded, then it was overridden by the user. We will use it 25353 # for the tool. 25354 25355 # First remove it from the list of overridden variables, so we can test 25356 # for unknown variables in the end. 25357 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25358 25359 # Check if the provided tool contains a complete path. 25360 tool_specified="$JAR" 25361 tool_basename="${tool_specified##*/}" 25362 if test "x$tool_basename" = "x$tool_specified"; then 25363 # A command without a complete path is provided, search $PATH. 25364 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25365 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25366 # Extract the first word of "$tool_basename", so it can be a program name with args. 25367 set dummy $tool_basename; ac_word=$2 25368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25369 $as_echo_n "checking for $ac_word... " >&6; } 25370 if ${ac_cv_path_JAR+:} false; then : 25371 $as_echo_n "(cached) " >&6 25372 else 25373 case $JAR in 25374 [\\/]* | ?:[\\/]*) 25375 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25376 ;; 25377 *) 25378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25379 for as_dir in $PATH 25380 do 25381 IFS=$as_save_IFS 25382 test -z "$as_dir" && as_dir=. 25383 for ac_exec_ext in '' $ac_executable_extensions; do 25384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25385 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25387 break 2 25388 fi 25389 done 25390 done 25391 IFS=$as_save_IFS 25392 25393 ;; 25394 esac 25395 fi 25396 JAR=$ac_cv_path_JAR 25397 if test -n "$JAR"; then 25398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25399 $as_echo "$JAR" >&6; } 25400 else 25401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25402 $as_echo "no" >&6; } 25403 fi 25404 25405 25406 if test "x$JAR" = x; then 25407 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25408 fi 25409 else 25410 # Otherwise we believe it is a complete path. Use it as it is. 25411 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25412 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25414 $as_echo_n "checking for JAR... " >&6; } 25415 if test ! -x "$tool_specified"; then 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25417 $as_echo "not found" >&6; } 25418 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25419 fi 25420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25421 $as_echo "$tool_specified" >&6; } 25422 fi 25423 fi 25424 fi 25425 25426 25427 25428 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25429 25430 # Publish this variable in the help. 25431 25432 25433 if test "x$NATIVE2ASCII" = x; then 25434 # The variable is not set by user, try to locate tool using the code snippet 25435 25436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25437 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25438 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25439 if test ! -x $NATIVE2ASCII; then 25440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25441 $as_echo "not found" >&6; } 25442 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25443 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25444 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25445 fi 25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25447 $as_echo "ok" >&6; } 25448 25449 25450 else 25451 # The variable is set, but is it from the command line or the environment? 25452 25453 # Try to remove the string !NATIVE2ASCII! from our list. 25454 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25455 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25456 # If it failed, the variable was not from the command line. Ignore it, 25457 # but warn the user (except for BASH, which is always set by the calling BASH). 25458 if test "xNATIVE2ASCII" != xBASH; then 25459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25460 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25461 fi 25462 # Try to locate tool using the code snippet 25463 25464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25465 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25466 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25467 if test ! -x $NATIVE2ASCII; then 25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25469 $as_echo "not found" >&6; } 25470 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25471 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25472 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25473 fi 25474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25475 $as_echo "ok" >&6; } 25476 25477 25478 else 25479 # If it succeeded, then it was overridden by the user. We will use it 25480 # for the tool. 25481 25482 # First remove it from the list of overridden variables, so we can test 25483 # for unknown variables in the end. 25484 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25485 25486 # Check if the provided tool contains a complete path. 25487 tool_specified="$NATIVE2ASCII" 25488 tool_basename="${tool_specified##*/}" 25489 if test "x$tool_basename" = "x$tool_specified"; then 25490 # A command without a complete path is provided, search $PATH. 25491 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25492 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25493 # Extract the first word of "$tool_basename", so it can be a program name with args. 25494 set dummy $tool_basename; ac_word=$2 25495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25496 $as_echo_n "checking for $ac_word... " >&6; } 25497 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25498 $as_echo_n "(cached) " >&6 25499 else 25500 case $NATIVE2ASCII in 25501 [\\/]* | ?:[\\/]*) 25502 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25503 ;; 25504 *) 25505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25506 for as_dir in $PATH 25507 do 25508 IFS=$as_save_IFS 25509 test -z "$as_dir" && as_dir=. 25510 for ac_exec_ext in '' $ac_executable_extensions; do 25511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25512 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25514 break 2 25515 fi 25516 done 25517 done 25518 IFS=$as_save_IFS 25519 25520 ;; 25521 esac 25522 fi 25523 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25524 if test -n "$NATIVE2ASCII"; then 25525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25526 $as_echo "$NATIVE2ASCII" >&6; } 25527 else 25528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25529 $as_echo "no" >&6; } 25530 fi 25531 25532 25533 if test "x$NATIVE2ASCII" = x; then 25534 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25535 fi 25536 else 25537 # Otherwise we believe it is a complete path. Use it as it is. 25538 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25539 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25541 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25542 if test ! -x "$tool_specified"; then 25543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25544 $as_echo "not found" >&6; } 25545 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 25546 fi 25547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25548 $as_echo "$tool_specified" >&6; } 25549 fi 25550 fi 25551 fi 25552 25553 25554 25555 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25556 25557 # Publish this variable in the help. 25558 25559 25560 if test "x$JARSIGNER" = x; then 25561 # The variable is not set by user, try to locate tool using the code snippet 25562 25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25564 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25565 JARSIGNER=$BOOT_JDK/bin/jarsigner 25566 if test ! -x $JARSIGNER; then 25567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25568 $as_echo "not found" >&6; } 25569 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25570 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25571 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25572 fi 25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25574 $as_echo "ok" >&6; } 25575 25576 25577 else 25578 # The variable is set, but is it from the command line or the environment? 25579 25580 # Try to remove the string !JARSIGNER! from our list. 25581 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 25582 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25583 # If it failed, the variable was not from the command line. Ignore it, 25584 # but warn the user (except for BASH, which is always set by the calling BASH). 25585 if test "xJARSIGNER" != xBASH; then 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 25587 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 25588 fi 25589 # Try to locate tool using the code snippet 25590 25591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25592 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25593 JARSIGNER=$BOOT_JDK/bin/jarsigner 25594 if test ! -x $JARSIGNER; then 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25596 $as_echo "not found" >&6; } 25597 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25598 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25599 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25600 fi 25601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25602 $as_echo "ok" >&6; } 25603 25604 25605 else 25606 # If it succeeded, then it was overridden by the user. We will use it 25607 # for the tool. 25608 25609 # First remove it from the list of overridden variables, so we can test 25610 # for unknown variables in the end. 25611 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25612 25613 # Check if the provided tool contains a complete path. 25614 tool_specified="$JARSIGNER" 25615 tool_basename="${tool_specified##*/}" 25616 if test "x$tool_basename" = "x$tool_specified"; then 25617 # A command without a complete path is provided, search $PATH. 25618 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 25619 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 25620 # Extract the first word of "$tool_basename", so it can be a program name with args. 25621 set dummy $tool_basename; ac_word=$2 25622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25623 $as_echo_n "checking for $ac_word... " >&6; } 25624 if ${ac_cv_path_JARSIGNER+:} false; then : 25625 $as_echo_n "(cached) " >&6 25626 else 25627 case $JARSIGNER in 25628 [\\/]* | ?:[\\/]*) 25629 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 25630 ;; 25631 *) 25632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25633 for as_dir in $PATH 25634 do 25635 IFS=$as_save_IFS 25636 test -z "$as_dir" && as_dir=. 25637 for ac_exec_ext in '' $ac_executable_extensions; do 25638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25639 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 25640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25641 break 2 25642 fi 25643 done 25644 done 25645 IFS=$as_save_IFS 25646 25647 ;; 25648 esac 25649 fi 25650 JARSIGNER=$ac_cv_path_JARSIGNER 25651 if test -n "$JARSIGNER"; then 25652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 25653 $as_echo "$JARSIGNER" >&6; } 25654 else 25655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25656 $as_echo "no" >&6; } 25657 fi 25658 25659 25660 if test "x$JARSIGNER" = x; then 25661 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25662 fi 25663 else 25664 # Otherwise we believe it is a complete path. Use it as it is. 25665 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 25666 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 25667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 25668 $as_echo_n "checking for JARSIGNER... " >&6; } 25669 if test ! -x "$tool_specified"; then 25670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25671 $as_echo "not found" >&6; } 25672 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 25673 fi 25674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25675 $as_echo "$tool_specified" >&6; } 25676 fi 25677 fi 25678 fi 25679 25680 25681 25682 # Finally, set some other options... 25683 25684 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 25685 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 25686 25687 25688 25689 25690 ############################################################################## 25691 # 25692 # Specify options for anything that is run with the Boot JDK. 25693 # 25694 25695 # Check whether --with-boot-jdk-jvmargs was given. 25696 if test "${with_boot_jdk_jvmargs+set}" = set; then : 25697 withval=$with_boot_jdk_jvmargs; 25698 fi 25699 25700 25701 if test "x$with_boot_jdk_jvmargs" = x; then 25702 # Not all JVM:s accept the same arguments on the command line. 25703 # OpenJDK specific increase in thread stack for JDK build, 25704 # well more specifically, when running javac. 25705 if test "x$BUILD_NUM_BITS" = x32; then 25706 STACK_SIZE=768 25707 else 25708 # Running Javac on a JVM on a 64-bit machine, the stack takes more space 25709 # since 64-bit pointers are pushed on the stach. Apparently, we need 25710 # to increase the stack space when javacing the JDK.... 25711 STACK_SIZE=1536 25712 fi 25713 25714 # Minimum amount of heap memory. 25715 25716 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 25717 $ECHO "Command: $JAVA -Xms64M -version" >&5 25718 OUTPUT=`$JAVA -Xms64M -version 2>&1` 25719 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25720 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25721 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25722 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M" 25723 JVM_ARG_OK=true 25724 else 25725 $ECHO "Arg failed:" >&5 25726 $ECHO "$OUTPUT" >&5 25727 JVM_ARG_OK=false 25728 fi 25729 25730 if test "x$OPENJDK_TARGET_OS" = "xmacosx" || test "x$OPENJDK_TARGET_CPU" = "xppc64" ; then 25731 # Why does macosx need more heap? Its the huge JDK batch. 25732 25733 $ECHO "Check if jvm arg is ok: -Xmx1600M" >&5 25734 $ECHO "Command: $JAVA -Xmx1600M -version" >&5 25735 OUTPUT=`$JAVA -Xmx1600M -version 2>&1` 25736 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25737 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25738 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25739 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M" 25740 JVM_ARG_OK=true 25741 else 25742 $ECHO "Arg failed:" >&5 25743 $ECHO "$OUTPUT" >&5 25744 JVM_ARG_OK=false 25745 fi 25746 25747 else 25748 25749 $ECHO "Check if jvm arg is ok: -Xmx1100M" >&5 25750 $ECHO "Command: $JAVA -Xmx1100M -version" >&5 25751 OUTPUT=`$JAVA -Xmx1100M -version 2>&1` 25752 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25753 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25754 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25755 boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M" 25756 JVM_ARG_OK=true 25757 else 25758 $ECHO "Arg failed:" >&5 25759 $ECHO "$OUTPUT" >&5 25760 JVM_ARG_OK=false 25761 fi 25762 25763 fi 25764 # When is adding -client something that speeds up the JVM? 25765 # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA]) 25766 25767 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 25768 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 25769 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 25770 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25771 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25772 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25773 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE" 25774 JVM_ARG_OK=true 25775 else 25776 $ECHO "Arg failed:" >&5 25777 $ECHO "$OUTPUT" >&5 25778 JVM_ARG_OK=false 25779 fi 25780 25781 # Disable special log output when a debug build is used as Boot JDK... 25782 25783 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 25784 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 25785 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 25786 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25787 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25788 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25789 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 25790 JVM_ARG_OK=true 25791 else 25792 $ECHO "Arg failed:" >&5 25793 $ECHO "$OUTPUT" >&5 25794 JVM_ARG_OK=false 25795 fi 25796 25797 fi 25798 25799 BOOT_JDK_JVMARGS=$boot_jdk_jvmargs 25800 25801 25802 25803 ############################################################################### 25804 # 25805 # Configure the sources to use. We can add or override individual directories. 25806 # 25807 ############################################################################### 25808 25809 25810 # Where are the sources. Any of these can be overridden 25811 # using --with-override-corba and the likes. 25812 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 25813 CORBA_TOPDIR="$SRC_ROOT/corba" 25814 JAXP_TOPDIR="$SRC_ROOT/jaxp" 25815 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 25816 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 25817 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 25818 JDK_TOPDIR="$SRC_ROOT/jdk" 25819 25820 25821 25822 25823 25824 25825 25826 25827 25828 25829 ############################################################################### 25830 # 25831 # Pickup additional source for a component from outside of the source root 25832 # or override source for a component. 25833 # 25834 25835 # Check whether --with-add-source-root was given. 25836 if test "${with_add_source_root+set}" = set; then : 25837 withval=$with_add_source_root; 25838 fi 25839 25840 25841 25842 # Check whether --with-override-source-root was given. 25843 if test "${with_override_source_root+set}" = set; then : 25844 withval=$with_override_source_root; 25845 fi 25846 25847 25848 25849 # Check whether --with-adds-and-overrides was given. 25850 if test "${with_adds_and_overrides+set}" = set; then : 25851 withval=$with_adds_and_overrides; 25852 fi 25853 25854 25855 if test "x$with_adds_and_overrides" != x; then 25856 with_add_source_root="$with_adds_and_overrides/adds" 25857 with_override_source_root="$with_adds_and_overrides/overrides" 25858 fi 25859 25860 if test "x$with_add_source_root" != x; then 25861 if ! test -d $with_add_source_root; then 25862 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 25863 fi 25864 CURDIR="$PWD" 25865 cd "$with_add_source_root" 25866 ADD_SRC_ROOT="`pwd`" 25867 cd "$CURDIR" 25868 # Verify that the addon source root does not have any root makefiles. 25869 # If it does, then it is usually an error, prevent this. 25870 if test -f $with_add_source_root/langtools/make/Makefile; then 25871 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 25872 fi 25873 if test -f $with_add_source_root/corba/make/Makefile; then 25874 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 25875 fi 25876 if test -f $with_add_source_root/jaxp/make/Makefile; then 25877 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 25878 fi 25879 if test -f $with_add_source_root/jaxws/make/Makefile; then 25880 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 25881 fi 25882 if test -f $with_add_source_root/hotspot/make/Makefile; then 25883 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 25884 fi 25885 if test -f $with_add_source_root/nashorn/make/Makefile; then 25886 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 25887 fi 25888 if test -f $with_add_source_root/jdk/make/Makefile; then 25889 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 25890 fi 25891 fi 25892 25893 25894 if test "x$with_override_source_root" != x; then 25895 if ! test -d $with_override_source_root; then 25896 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 25897 fi 25898 CURDIR="$PWD" 25899 cd "$with_override_source_root" 25900 OVERRIDE_SRC_ROOT="`pwd`" 25901 cd "$CURDIR" 25902 if test -f $with_override_source_root/langtools/make/Makefile; then 25903 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 25904 fi 25905 if test -f $with_override_source_root/corba/make/Makefile; then 25906 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 25907 fi 25908 if test -f $with_override_source_root/jaxp/make/Makefile; then 25909 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 25910 fi 25911 if test -f $with_override_source_root/jaxws/make/Makefile; then 25912 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 25913 fi 25914 if test -f $with_override_source_root/hotspot/make/Makefile; then 25915 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 25916 fi 25917 if test -f $with_override_source_root/nashorn/make/Makefile; then 25918 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 25919 fi 25920 if test -f $with_override_source_root/jdk/make/Makefile; then 25921 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 25922 fi 25923 fi 25924 25925 25926 ############################################################################### 25927 # 25928 # Override a repo completely, this is used for example when you have 3 small 25929 # development sandboxes of the langtools sources and want to avoid having 3 full 25930 # OpenJDK sources checked out on disk. 25931 # 25932 # Assuming that the 3 langtools sandboxes are located here: 25933 # /home/fredrik/sandbox1/langtools 25934 # /home/fredrik/sandbox2/langtools 25935 # /home/fredrik/sandbox3/langtools 25936 # 25937 # From the source root you create build subdirs manually: 25938 # mkdir -p build1 build2 build3 25939 # in each build directory run: 25940 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 25941 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 25942 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 25943 # 25944 25945 25946 # Check whether --with-override-langtools was given. 25947 if test "${with_override_langtools+set}" = set; then : 25948 withval=$with_override_langtools; 25949 fi 25950 25951 25952 25953 # Check whether --with-override-corba was given. 25954 if test "${with_override_corba+set}" = set; then : 25955 withval=$with_override_corba; 25956 fi 25957 25958 25959 25960 # Check whether --with-override-jaxp was given. 25961 if test "${with_override_jaxp+set}" = set; then : 25962 withval=$with_override_jaxp; 25963 fi 25964 25965 25966 25967 # Check whether --with-override-jaxws was given. 25968 if test "${with_override_jaxws+set}" = set; then : 25969 withval=$with_override_jaxws; 25970 fi 25971 25972 25973 25974 # Check whether --with-override-hotspot was given. 25975 if test "${with_override_hotspot+set}" = set; then : 25976 withval=$with_override_hotspot; 25977 fi 25978 25979 25980 25981 # Check whether --with-override-nashorn was given. 25982 if test "${with_override_nashorn+set}" = set; then : 25983 withval=$with_override_nashorn; 25984 fi 25985 25986 25987 25988 # Check whether --with-override-jdk was given. 25989 if test "${with_override_jdk+set}" = set; then : 25990 withval=$with_override_jdk; 25991 fi 25992 25993 25994 if test "x$with_override_langtools" != x; then 25995 CURDIR="$PWD" 25996 cd "$with_override_langtools" 25997 LANGTOOLS_TOPDIR="`pwd`" 25998 cd "$CURDIR" 25999 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26000 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26001 fi 26002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26003 $as_echo_n "checking if langtools should be overridden... " >&6; } 26004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26005 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26006 fi 26007 if test "x$with_override_corba" != x; then 26008 CURDIR="$PWD" 26009 cd "$with_override_corba" 26010 CORBA_TOPDIR="`pwd`" 26011 cd "$CURDIR" 26012 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26013 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26014 fi 26015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26016 $as_echo_n "checking if corba should be overridden... " >&6; } 26017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26018 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26019 fi 26020 if test "x$with_override_jaxp" != x; then 26021 CURDIR="$PWD" 26022 cd "$with_override_jaxp" 26023 JAXP_TOPDIR="`pwd`" 26024 cd "$CURDIR" 26025 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26026 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26027 fi 26028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26029 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26031 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26032 fi 26033 if test "x$with_override_jaxws" != x; then 26034 CURDIR="$PWD" 26035 cd "$with_override_jaxws" 26036 JAXWS_TOPDIR="`pwd`" 26037 cd "$CURDIR" 26038 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26039 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26040 fi 26041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26042 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26044 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26045 fi 26046 if test "x$with_override_hotspot" != x; then 26047 CURDIR="$PWD" 26048 cd "$with_override_hotspot" 26049 HOTSPOT_TOPDIR="`pwd`" 26050 cd "$CURDIR" 26051 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26052 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26053 fi 26054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26055 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26057 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26058 fi 26059 if test "x$with_override_nashorn" != x; then 26060 CURDIR="$PWD" 26061 cd "$with_override_nashorn" 26062 NASHORN_TOPDIR="`pwd`" 26063 cd "$CURDIR" 26064 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26065 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26066 fi 26067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26068 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26070 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26071 fi 26072 if test "x$with_override_jdk" != x; then 26073 CURDIR="$PWD" 26074 cd "$with_override_jdk" 26075 JDK_TOPDIR="`pwd`" 26076 cd "$CURDIR" 26077 if ! test -f $JDK_TOPDIR/make/Makefile; then 26078 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26079 fi 26080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26081 $as_echo_n "checking if JDK should be overridden... " >&6; } 26082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26083 $as_echo "yes with $JDK_TOPDIR" >&6; } 26084 fi 26085 26086 26087 BUILD_OUTPUT="$OUTPUT_ROOT" 26088 26089 26090 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26091 BUILD_HOTSPOT=true 26092 26093 26094 26095 # Check whether --with-import-hotspot was given. 26096 if test "${with_import_hotspot+set}" = set; then : 26097 withval=$with_import_hotspot; 26098 fi 26099 26100 if test "x$with_import_hotspot" != x; then 26101 CURDIR="$PWD" 26102 cd "$with_import_hotspot" 26103 HOTSPOT_DIST="`pwd`" 26104 cd "$CURDIR" 26105 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26106 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26107 fi 26108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26109 $as_echo_n "checking if hotspot should be imported... " >&6; } 26110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26111 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26112 BUILD_HOTSPOT=false 26113 fi 26114 26115 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26116 26117 26118 ############################################################################### 26119 # 26120 # Setup the toolchain (compilers etc), i.e. the tools that need to be 26121 # cross-compilation aware. 26122 # 26123 ############################################################################### 26124 26125 26126 ############################################################################### 26127 # 26128 # Configure the development tool paths and potential sysroot. 26129 # 26130 ac_ext=cpp 26131 ac_cpp='$CXXCPP $CPPFLAGS' 26132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26135 26136 26137 # The option used to specify the target .o,.a or .so file. 26138 # When compiling, how to specify the to be created object file. 26139 CC_OUT_OPTION='-o$(SPACE)' 26140 # When linking, how to specify the to be created executable. 26141 EXE_OUT_OPTION='-o$(SPACE)' 26142 # When linking, how to specify the to be created dynamically linkable library. 26143 LD_OUT_OPTION='-o$(SPACE)' 26144 # When archiving, how to specify the to be create static archive for object files. 26145 AR_OUT_OPTION='rcs$(SPACE)' 26146 26147 26148 26149 26150 26151 # Locate the actual tools 26152 26153 26154 # Check whether --with-jtreg was given. 26155 if test "${with_jtreg+set}" = set; then : 26156 withval=$with_jtreg; 26157 else 26158 with_jtreg=no 26159 fi 26160 26161 26162 if test "x$with_jtreg" = xno; then 26163 # jtreg disabled 26164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 26165 $as_echo_n "checking for jtreg... " >&6; } 26166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26167 $as_echo "no" >&6; } 26168 else 26169 if test "x$with_jtreg" != xyes; then 26170 # with path specified. 26171 JT_HOME="$with_jtreg" 26172 fi 26173 26174 if test "x$JT_HOME" != x; then 26175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 26176 $as_echo_n "checking for jtreg... " >&6; } 26177 26178 # use JT_HOME enviroment var. 26179 26180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26181 26182 # Input might be given as Windows format, start by converting to 26183 # unix format. 26184 path="$JT_HOME" 26185 new_path=`$CYGPATH -u "$path"` 26186 26187 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26188 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26189 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26190 # "foo.exe" is OK but "foo" is an error. 26191 # 26192 # This test is therefore slightly more accurate than "test -f" to check for file precense. 26193 # It is also a way to make sure we got the proper file name for the real test later on. 26194 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26195 if test "x$test_shortpath" = x; then 26196 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 26197 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 26198 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 26199 fi 26200 26201 # Call helper function which possibly converts this using DOS-style short mode. 26202 # If so, the updated path is stored in $new_path. 26203 26204 input_path="$new_path" 26205 # Check if we need to convert this using DOS-style short mode. If the path 26206 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26207 # take no chances and rewrite it. 26208 # Note: m4 eats our [], so we need to use [ and ] instead. 26209 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26210 if test "x$has_forbidden_chars" != x; then 26211 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26212 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26213 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26214 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26215 # Going to short mode and back again did indeed matter. Since short mode is 26216 # case insensitive, let's make it lowercase to improve readability. 26217 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26218 # Now convert it back to Unix-stile (cygpath) 26219 input_path=`$CYGPATH -u "$shortmode_path"` 26220 new_path="$input_path" 26221 fi 26222 fi 26223 26224 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26225 if test "x$test_cygdrive_prefix" = x; then 26226 # As a simple fix, exclude /usr/bin since it's not a real path. 26227 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 26228 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26229 # a path prefixed by /cygdrive for fixpath to work. 26230 new_path="$CYGWIN_ROOT_PATH$input_path" 26231 fi 26232 fi 26233 26234 26235 if test "x$path" != "x$new_path"; then 26236 JT_HOME="$new_path" 26237 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 26238 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 26239 fi 26240 26241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26242 26243 path="$JT_HOME" 26244 has_colon=`$ECHO $path | $GREP ^.:` 26245 new_path="$path" 26246 if test "x$has_colon" = x; then 26247 # Not in mixed or Windows style, start by that. 26248 new_path=`cmd //c echo $path` 26249 fi 26250 26251 26252 input_path="$new_path" 26253 # Check if we need to convert this using DOS-style short mode. If the path 26254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26255 # take no chances and rewrite it. 26256 # Note: m4 eats our [], so we need to use [ and ] instead. 26257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26258 if test "x$has_forbidden_chars" != x; then 26259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26261 fi 26262 26263 26264 windows_path="$new_path" 26265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26266 unix_path=`$CYGPATH -u "$windows_path"` 26267 new_path="$unix_path" 26268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26270 new_path="$unix_path" 26271 fi 26272 26273 if test "x$path" != "x$new_path"; then 26274 JT_HOME="$new_path" 26275 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 26276 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 26277 fi 26278 26279 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26280 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26281 26282 else 26283 # We're on a posix platform. Hooray! :) 26284 path="$JT_HOME" 26285 has_space=`$ECHO "$path" | $GREP " "` 26286 if test "x$has_space" != x; then 26287 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 26288 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 26289 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 26290 fi 26291 26292 # Use eval to expand a potential ~ 26293 eval path="$path" 26294 if test ! -f "$path" && test ! -d "$path"; then 26295 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 26296 fi 26297 26298 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 26299 fi 26300 26301 26302 # jtreg win32 script works for everybody 26303 JTREGEXE="$JT_HOME/win32/bin/jtreg" 26304 26305 if test ! -f "$JTREGEXE"; then 26306 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 26307 fi 26308 26309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 26310 $as_echo "$JTREGEXE" >&6; } 26311 else 26312 # try to find jtreg on path 26313 26314 26315 26316 # Publish this variable in the help. 26317 26318 26319 if test "x$JTREGEXE" = x; then 26320 # The variable is not set by user, try to locate tool using the code snippet 26321 for ac_prog in jtreg 26322 do 26323 # Extract the first word of "$ac_prog", so it can be a program name with args. 26324 set dummy $ac_prog; ac_word=$2 26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26326 $as_echo_n "checking for $ac_word... " >&6; } 26327 if ${ac_cv_path_JTREGEXE+:} false; then : 26328 $as_echo_n "(cached) " >&6 26329 else 26330 case $JTREGEXE in 26331 [\\/]* | ?:[\\/]*) 26332 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 26333 ;; 26334 *) 26335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26336 for as_dir in $PATH 26337 do 26338 IFS=$as_save_IFS 26339 test -z "$as_dir" && as_dir=. 26340 for ac_exec_ext in '' $ac_executable_extensions; do 26341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26342 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 26343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26344 break 2 26345 fi 26346 done 26347 done 26348 IFS=$as_save_IFS 26349 26350 ;; 26351 esac 26352 fi 26353 JTREGEXE=$ac_cv_path_JTREGEXE 26354 if test -n "$JTREGEXE"; then 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 26356 $as_echo "$JTREGEXE" >&6; } 26357 else 26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26359 $as_echo "no" >&6; } 26360 fi 26361 26362 26363 test -n "$JTREGEXE" && break 26364 done 26365 26366 else 26367 # The variable is set, but is it from the command line or the environment? 26368 26369 # Try to remove the string !JTREGEXE! from our list. 26370 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 26371 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 26372 # If it failed, the variable was not from the command line. Ignore it, 26373 # but warn the user (except for BASH, which is always set by the calling BASH). 26374 if test "xJTREGEXE" != xBASH; then 26375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 26376 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 26377 fi 26378 # Try to locate tool using the code snippet 26379 for ac_prog in jtreg 26380 do 26381 # Extract the first word of "$ac_prog", so it can be a program name with args. 26382 set dummy $ac_prog; ac_word=$2 26383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26384 $as_echo_n "checking for $ac_word... " >&6; } 26385 if ${ac_cv_path_JTREGEXE+:} false; then : 26386 $as_echo_n "(cached) " >&6 26387 else 26388 case $JTREGEXE in 26389 [\\/]* | ?:[\\/]*) 26390 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 26391 ;; 26392 *) 26393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26394 for as_dir in $PATH 26395 do 26396 IFS=$as_save_IFS 26397 test -z "$as_dir" && as_dir=. 26398 for ac_exec_ext in '' $ac_executable_extensions; do 26399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26400 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 26401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26402 break 2 26403 fi 26404 done 26405 done 26406 IFS=$as_save_IFS 26407 26408 ;; 26409 esac 26410 fi 26411 JTREGEXE=$ac_cv_path_JTREGEXE 26412 if test -n "$JTREGEXE"; then 26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 26414 $as_echo "$JTREGEXE" >&6; } 26415 else 26416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26417 $as_echo "no" >&6; } 26418 fi 26419 26420 26421 test -n "$JTREGEXE" && break 26422 done 26423 26424 else 26425 # If it succeeded, then it was overridden by the user. We will use it 26426 # for the tool. 26427 26428 # First remove it from the list of overridden variables, so we can test 26429 # for unknown variables in the end. 26430 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 26431 26432 # Check if the provided tool contains a complete path. 26433 tool_specified="$JTREGEXE" 26434 tool_basename="${tool_specified##*/}" 26435 if test "x$tool_basename" = "x$tool_specified"; then 26436 # A command without a complete path is provided, search $PATH. 26437 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 26438 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 26439 # Extract the first word of "$tool_basename", so it can be a program name with args. 26440 set dummy $tool_basename; ac_word=$2 26441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26442 $as_echo_n "checking for $ac_word... " >&6; } 26443 if ${ac_cv_path_JTREGEXE+:} false; then : 26444 $as_echo_n "(cached) " >&6 26445 else 26446 case $JTREGEXE in 26447 [\\/]* | ?:[\\/]*) 26448 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 26449 ;; 26450 *) 26451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26452 for as_dir in $PATH 26453 do 26454 IFS=$as_save_IFS 26455 test -z "$as_dir" && as_dir=. 26456 for ac_exec_ext in '' $ac_executable_extensions; do 26457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26458 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 26459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26460 break 2 26461 fi 26462 done 26463 done 26464 IFS=$as_save_IFS 26465 26466 ;; 26467 esac 26468 fi 26469 JTREGEXE=$ac_cv_path_JTREGEXE 26470 if test -n "$JTREGEXE"; then 26471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 26472 $as_echo "$JTREGEXE" >&6; } 26473 else 26474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26475 $as_echo "no" >&6; } 26476 fi 26477 26478 26479 if test "x$JTREGEXE" = x; then 26480 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 26481 fi 26482 else 26483 # Otherwise we believe it is a complete path. Use it as it is. 26484 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 26485 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 26486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 26487 $as_echo_n "checking for JTREGEXE... " >&6; } 26488 if test ! -x "$tool_specified"; then 26489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 26490 $as_echo "not found" >&6; } 26491 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 26492 fi 26493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 26494 $as_echo "$tool_specified" >&6; } 26495 fi 26496 fi 26497 fi 26498 26499 26500 26501 if test "x$JTREGEXE" = x; then 26502 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 26503 fi 26504 26505 26506 JT_HOME="`$DIRNAME $JTREGEXE`" 26507 fi 26508 fi 26509 26510 26511 26512 26513 26514 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 26515 26516 # Store path to cygwin link.exe to help excluding it when searching for 26517 # VS linker. This must be done before changing the PATH when looking for VS. 26518 # Extract the first word of "link", so it can be a program name with args. 26519 set dummy link; ac_word=$2 26520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26521 $as_echo_n "checking for $ac_word... " >&6; } 26522 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26523 $as_echo_n "(cached) " >&6 26524 else 26525 case $CYGWIN_LINK in 26526 [\\/]* | ?:[\\/]*) 26527 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26528 ;; 26529 *) 26530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26531 for as_dir in $PATH 26532 do 26533 IFS=$as_save_IFS 26534 test -z "$as_dir" && as_dir=. 26535 for ac_exec_ext in '' $ac_executable_extensions; do 26536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26537 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26539 break 2 26540 fi 26541 done 26542 done 26543 IFS=$as_save_IFS 26544 26545 ;; 26546 esac 26547 fi 26548 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26549 if test -n "$CYGWIN_LINK"; then 26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26551 $as_echo "$CYGWIN_LINK" >&6; } 26552 else 26553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26554 $as_echo "no" >&6; } 26555 fi 26556 26557 26558 if test "x$CYGWIN_LINK" != x; then 26559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26560 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26561 "$CYGWIN_LINK" --version > /dev/null 26562 if test $? -eq 0 ; then 26563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26564 $as_echo "yes" >&6; } 26565 else 26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26567 $as_echo "no" >&6; } 26568 # This might be the VS linker. Don't exclude it later on. 26569 CYGWIN_LINK="" 26570 fi 26571 fi 26572 26573 # First-hand choice is to locate and run the vsvars bat file. 26574 26575 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26576 VCVARSFILE="vc/bin/vcvars32.bat" 26577 else 26578 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26579 fi 26580 26581 VS_ENV_CMD="" 26582 VS_ENV_ARGS="" 26583 if test "x$with_toolsdir" != x; then 26584 26585 if test "x$VS_ENV_CMD" = x; then 26586 VS100BASE="$with_toolsdir/../.." 26587 METHOD="--with-tools-dir" 26588 26589 windows_path="$VS100BASE" 26590 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26591 unix_path=`$CYGPATH -u "$windows_path"` 26592 VS100BASE="$unix_path" 26593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26594 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26595 VS100BASE="$unix_path" 26596 fi 26597 26598 if test -d "$VS100BASE"; then 26599 if test -f "$VS100BASE/$VCVARSFILE"; then 26600 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26601 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26602 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 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$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26615 # Having specified an argument which is incorrect will produce an instant failure; 26616 # we should not go on looking 26617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26618 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26619 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26620 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26621 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26622 fi 26623 26624 if test "x$VS100COMNTOOLS" != x; then 26625 26626 if test "x$VS_ENV_CMD" = x; then 26627 VS100BASE="$VS100COMNTOOLS/../.." 26628 METHOD="VS100COMNTOOLS variable" 26629 26630 windows_path="$VS100BASE" 26631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26632 unix_path=`$CYGPATH -u "$windows_path"` 26633 VS100BASE="$unix_path" 26634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26636 VS100BASE="$unix_path" 26637 fi 26638 26639 if test -d "$VS100BASE"; then 26640 if test -f "$VS100BASE/$VCVARSFILE"; then 26641 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26642 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26643 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26644 else 26645 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26646 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26647 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26648 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26649 fi 26650 fi 26651 fi 26652 26653 fi 26654 if test "x$PROGRAMFILES" != x; then 26655 26656 if test "x$VS_ENV_CMD" = x; then 26657 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26658 METHOD="well-known name" 26659 26660 windows_path="$VS100BASE" 26661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26662 unix_path=`$CYGPATH -u "$windows_path"` 26663 VS100BASE="$unix_path" 26664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26666 VS100BASE="$unix_path" 26667 fi 26668 26669 if test -d "$VS100BASE"; then 26670 if test -f "$VS100BASE/$VCVARSFILE"; then 26671 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26672 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26673 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26674 else 26675 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26676 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26677 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26678 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26679 fi 26680 fi 26681 fi 26682 26683 fi 26684 26685 if test "x$VS_ENV_CMD" = x; then 26686 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26687 METHOD="well-known name" 26688 26689 windows_path="$VS100BASE" 26690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26691 unix_path=`$CYGPATH -u "$windows_path"` 26692 VS100BASE="$unix_path" 26693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26695 VS100BASE="$unix_path" 26696 fi 26697 26698 if test -d "$VS100BASE"; then 26699 if test -f "$VS100BASE/$VCVARSFILE"; then 26700 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26701 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26702 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26703 else 26704 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26705 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26706 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26707 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26708 fi 26709 fi 26710 fi 26711 26712 26713 if test "x$VS_ENV_CMD" = x; then 26714 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 26715 METHOD="well-known name" 26716 26717 windows_path="$VS100BASE" 26718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26719 unix_path=`$CYGPATH -u "$windows_path"` 26720 VS100BASE="$unix_path" 26721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26723 VS100BASE="$unix_path" 26724 fi 26725 26726 if test -d "$VS100BASE"; then 26727 if test -f "$VS100BASE/$VCVARSFILE"; then 26728 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26729 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26730 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26731 else 26732 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26733 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26734 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26735 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26736 fi 26737 fi 26738 fi 26739 26740 26741 if test "x$ProgramW6432" != x; then 26742 26743 if test "x$VS_ENV_CMD" = x; then 26744 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 26745 METHOD="well-known name" 26746 26747 windows_path="$WIN_SDK_BASE" 26748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26749 unix_path=`$CYGPATH -u "$windows_path"` 26750 WIN_SDK_BASE="$unix_path" 26751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26753 WIN_SDK_BASE="$unix_path" 26754 fi 26755 26756 if test -d "$WIN_SDK_BASE"; then 26757 # There have been cases of partial or broken SDK installations. A missing 26758 # lib dir is not going to work. 26759 if test ! -d "$WIN_SDK_BASE/../lib"; then 26760 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26761 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26762 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26763 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26764 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26765 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26766 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26767 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26768 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26769 VS_ENV_ARGS="/x86" 26770 else 26771 VS_ENV_ARGS="/x64" 26772 fi 26773 else 26774 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26775 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26776 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26777 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26778 fi 26779 fi 26780 fi 26781 26782 fi 26783 if test "x$PROGRAMW6432" != x; then 26784 26785 if test "x$VS_ENV_CMD" = x; then 26786 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 26787 METHOD="well-known name" 26788 26789 windows_path="$WIN_SDK_BASE" 26790 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26791 unix_path=`$CYGPATH -u "$windows_path"` 26792 WIN_SDK_BASE="$unix_path" 26793 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26794 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26795 WIN_SDK_BASE="$unix_path" 26796 fi 26797 26798 if test -d "$WIN_SDK_BASE"; then 26799 # There have been cases of partial or broken SDK installations. A missing 26800 # lib dir is not going to work. 26801 if test ! -d "$WIN_SDK_BASE/../lib"; then 26802 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26803 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26804 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26805 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26806 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 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 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26810 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26811 VS_ENV_ARGS="/x86" 26812 else 26813 VS_ENV_ARGS="/x64" 26814 fi 26815 else 26816 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26817 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26818 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26819 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26820 fi 26821 fi 26822 fi 26823 26824 fi 26825 if test "x$PROGRAMFILES" != x; then 26826 26827 if test "x$VS_ENV_CMD" = x; then 26828 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 26829 METHOD="well-known name" 26830 26831 windows_path="$WIN_SDK_BASE" 26832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26833 unix_path=`$CYGPATH -u "$windows_path"` 26834 WIN_SDK_BASE="$unix_path" 26835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26837 WIN_SDK_BASE="$unix_path" 26838 fi 26839 26840 if test -d "$WIN_SDK_BASE"; then 26841 # There have been cases of partial or broken SDK installations. A missing 26842 # lib dir is not going to work. 26843 if test ! -d "$WIN_SDK_BASE/../lib"; then 26844 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26845 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26846 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26847 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26848 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26849 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26850 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26851 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26852 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26853 VS_ENV_ARGS="/x86" 26854 else 26855 VS_ENV_ARGS="/x64" 26856 fi 26857 else 26858 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26859 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26860 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26861 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26862 fi 26863 fi 26864 fi 26865 26866 fi 26867 26868 if test "x$VS_ENV_CMD" = x; then 26869 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 26870 METHOD="well-known name" 26871 26872 windows_path="$WIN_SDK_BASE" 26873 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26874 unix_path=`$CYGPATH -u "$windows_path"` 26875 WIN_SDK_BASE="$unix_path" 26876 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26877 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26878 WIN_SDK_BASE="$unix_path" 26879 fi 26880 26881 if test -d "$WIN_SDK_BASE"; then 26882 # There have been cases of partial or broken SDK installations. A missing 26883 # lib dir is not going to work. 26884 if test ! -d "$WIN_SDK_BASE/../lib"; then 26885 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26886 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26887 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26888 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26889 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26890 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26891 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26892 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26893 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26894 VS_ENV_ARGS="/x86" 26895 else 26896 VS_ENV_ARGS="/x64" 26897 fi 26898 else 26899 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26900 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26901 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26902 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26903 fi 26904 fi 26905 fi 26906 26907 26908 if test "x$VS_ENV_CMD" = x; then 26909 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 26910 METHOD="well-known name" 26911 26912 windows_path="$WIN_SDK_BASE" 26913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26914 unix_path=`$CYGPATH -u "$windows_path"` 26915 WIN_SDK_BASE="$unix_path" 26916 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26917 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26918 WIN_SDK_BASE="$unix_path" 26919 fi 26920 26921 if test -d "$WIN_SDK_BASE"; then 26922 # There have been cases of partial or broken SDK installations. A missing 26923 # lib dir is not going to work. 26924 if test ! -d "$WIN_SDK_BASE/../lib"; then 26925 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26926 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26927 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26928 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26929 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26930 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26931 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26932 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26933 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26934 VS_ENV_ARGS="/x86" 26935 else 26936 VS_ENV_ARGS="/x64" 26937 fi 26938 else 26939 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26940 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26941 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26942 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26943 fi 26944 fi 26945 fi 26946 26947 26948 if test "x$VS_ENV_CMD" != x; then 26949 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26950 26951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26952 26953 # First separate the path from the arguments. This will split at the first 26954 # space. 26955 complete="$VS_ENV_CMD" 26956 path="${complete%% *}" 26957 tmp="$complete EOL" 26958 arguments="${tmp#* }" 26959 26960 # Input might be given as Windows format, start by converting to 26961 # unix format. 26962 new_path=`$CYGPATH -u "$path"` 26963 26964 # Now try to locate executable using which 26965 new_path=`$WHICH "$new_path" 2> /dev/null` 26966 # bat and cmd files are not always considered executable in cygwin causing which 26967 # to not find them 26968 if test "x$new_path" = x \ 26969 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26970 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26971 new_path=`$CYGPATH -u "$path"` 26972 fi 26973 if test "x$new_path" = x; then 26974 # Oops. Which didn't find the executable. 26975 # The splitting of arguments from the executable at a space might have been incorrect, 26976 # since paths with space are more likely in Windows. Give it another try with the whole 26977 # argument. 26978 path="$complete" 26979 arguments="EOL" 26980 new_path=`$CYGPATH -u "$path"` 26981 new_path=`$WHICH "$new_path" 2> /dev/null` 26982 # bat and cmd files are not always considered executable in cygwin causing which 26983 # to not find them 26984 if test "x$new_path" = x \ 26985 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26986 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26987 new_path=`$CYGPATH -u "$path"` 26988 fi 26989 if test "x$new_path" = x; then 26990 # It's still not found. Now this is an unrecoverable error. 26991 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26992 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26993 has_space=`$ECHO "$complete" | $GREP " "` 26994 if test "x$has_space" != x; then 26995 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26996 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26997 fi 26998 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 26999 fi 27000 fi 27001 27002 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27003 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27004 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27005 # "foo.exe" is OK but "foo" is an error. 27006 # 27007 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27008 # It is also a way to make sure we got the proper file name for the real test later on. 27009 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27010 if test "x$test_shortpath" = x; then 27011 # Short path failed, file does not exist as specified. 27012 # Try adding .exe or .cmd 27013 if test -f "${new_path}.exe"; then 27014 input_to_shortpath="${new_path}.exe" 27015 elif test -f "${new_path}.cmd"; then 27016 input_to_shortpath="${new_path}.cmd" 27017 else 27018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27019 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27020 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27021 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27022 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27023 fi 27024 else 27025 input_to_shortpath="$new_path" 27026 fi 27027 27028 # Call helper function which possibly converts this using DOS-style short mode. 27029 # If so, the updated path is stored in $new_path. 27030 new_path="$input_to_shortpath" 27031 27032 input_path="$input_to_shortpath" 27033 # Check if we need to convert this using DOS-style short mode. If the path 27034 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27035 # take no chances and rewrite it. 27036 # Note: m4 eats our [], so we need to use [ and ] instead. 27037 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27038 if test "x$has_forbidden_chars" != x; then 27039 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27040 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27041 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27042 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27043 # Going to short mode and back again did indeed matter. Since short mode is 27044 # case insensitive, let's make it lowercase to improve readability. 27045 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27046 # Now convert it back to Unix-stile (cygpath) 27047 input_path=`$CYGPATH -u "$shortmode_path"` 27048 new_path="$input_path" 27049 fi 27050 fi 27051 27052 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27053 if test "x$test_cygdrive_prefix" = x; then 27054 # As a simple fix, exclude /usr/bin since it's not a real path. 27055 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27056 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27057 # a path prefixed by /cygdrive for fixpath to work. 27058 new_path="$CYGWIN_ROOT_PATH$input_path" 27059 fi 27060 fi 27061 27062 # remove trailing .exe if any 27063 new_path="${new_path/%.exe/}" 27064 27065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27066 27067 # First separate the path from the arguments. This will split at the first 27068 # space. 27069 complete="$VS_ENV_CMD" 27070 path="${complete%% *}" 27071 tmp="$complete EOL" 27072 arguments="${tmp#* }" 27073 27074 # Input might be given as Windows format, start by converting to 27075 # unix format. 27076 new_path="$path" 27077 27078 windows_path="$new_path" 27079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27080 unix_path=`$CYGPATH -u "$windows_path"` 27081 new_path="$unix_path" 27082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27083 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27084 new_path="$unix_path" 27085 fi 27086 27087 27088 # Now try to locate executable using which 27089 new_path=`$WHICH "$new_path" 2> /dev/null` 27090 27091 if test "x$new_path" = x; then 27092 # Oops. Which didn't find the executable. 27093 # The splitting of arguments from the executable at a space might have been incorrect, 27094 # since paths with space are more likely in Windows. Give it another try with the whole 27095 # argument. 27096 path="$complete" 27097 arguments="EOL" 27098 new_path="$path" 27099 27100 windows_path="$new_path" 27101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27102 unix_path=`$CYGPATH -u "$windows_path"` 27103 new_path="$unix_path" 27104 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27105 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27106 new_path="$unix_path" 27107 fi 27108 27109 27110 new_path=`$WHICH "$new_path" 2> /dev/null` 27111 27112 if test "x$new_path" = x; then 27113 # It's still not found. Now this is an unrecoverable error. 27114 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27115 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27116 has_space=`$ECHO "$complete" | $GREP " "` 27117 if test "x$has_space" != x; then 27118 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27119 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27120 fi 27121 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27122 fi 27123 fi 27124 27125 # Now new_path has a complete unix path to the binary 27126 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27127 # Keep paths in /bin as-is, but remove trailing .exe if any 27128 new_path="${new_path/%.exe/}" 27129 # Do not save /bin paths to all_fixpath_prefixes! 27130 else 27131 # Not in mixed or Windows style, start by that. 27132 new_path=`cmd //c echo $new_path` 27133 27134 input_path="$new_path" 27135 # Check if we need to convert this using DOS-style short mode. If the path 27136 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27137 # take no chances and rewrite it. 27138 # Note: m4 eats our [], so we need to use [ and ] instead. 27139 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27140 if test "x$has_forbidden_chars" != x; then 27141 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27142 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27143 fi 27144 27145 # Output is in $new_path 27146 27147 windows_path="$new_path" 27148 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27149 unix_path=`$CYGPATH -u "$windows_path"` 27150 new_path="$unix_path" 27151 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27152 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27153 new_path="$unix_path" 27154 fi 27155 27156 # remove trailing .exe if any 27157 new_path="${new_path/%.exe/}" 27158 27159 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27160 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27161 fi 27162 27163 else 27164 # We're on a posix platform. Hooray! :) 27165 # First separate the path from the arguments. This will split at the first 27166 # space. 27167 complete="$VS_ENV_CMD" 27168 path="${complete%% *}" 27169 tmp="$complete EOL" 27170 arguments="${tmp#* }" 27171 27172 # Cannot rely on the command "which" here since it doesn't always work. 27173 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27174 if test -z "$is_absolute_path"; then 27175 # Path to executable is not absolute. Find it. 27176 IFS_save="$IFS" 27177 IFS=: 27178 for p in $PATH; do 27179 if test -f "$p/$path" && test -x "$p/$path"; then 27180 new_path="$p/$path" 27181 break 27182 fi 27183 done 27184 IFS="$IFS_save" 27185 else 27186 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&5 27187 $as_echo "$as_me: Resolving VS_ENV_CMD (as $path) failed, using $path directly." >&6;} 27188 new_path="$path" 27189 fi 27190 27191 if test "x$new_path" = x; then 27192 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27193 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27194 has_space=`$ECHO "$complete" | $GREP " "` 27195 if test "x$has_space" != x; then 27196 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27197 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27198 fi 27199 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27200 fi 27201 fi 27202 27203 # Now join together the path and the arguments once again 27204 if test "x$arguments" != xEOL; then 27205 new_complete="$new_path ${arguments% *}" 27206 else 27207 new_complete="$new_path" 27208 fi 27209 27210 if test "x$complete" != "x$new_complete"; then 27211 VS_ENV_CMD="$new_complete" 27212 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 27213 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 27214 fi 27215 27216 27217 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 27218 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 27219 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 27220 cd $OUTPUT_ROOT 27221 # FIXME: The code betweeen ---- was inlined from a separate script and is not properly adapted 27222 # to autoconf standards. 27223 27224 #---- 27225 27226 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment) 27227 # but calculate the difference in Cygwin environment before/after running it and then 27228 # apply the diff. 27229 27230 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 27231 _vs10varsall=`cygpath -a -m -s "$VS_ENV_CMD"` 27232 _dosvs10varsall=`cygpath -a -w -s $_vs10varsall` 27233 _dosbash=`cygpath -a -w -s \`which bash\`.*` 27234 else 27235 _dosvs10varsall=`cmd //c echo $VS_ENV_CMD` 27236 _dosbash=`cmd //c echo \`which bash\`` 27237 fi 27238 27239 # generate the set of exported vars before/after the vs10 setup 27240 $ECHO "@echo off" > localdevenvtmp.bat 27241 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export0" >> localdevenvtmp.bat 27242 $ECHO "call $_dosvs10varsall $VS_ENV_ARGS" >> localdevenvtmp.bat 27243 $ECHO "$_dosbash -c \"export -p\" > localdevenvtmp.export1" >> localdevenvtmp.bat 27244 27245 # Now execute the newly created bat file. 27246 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys 27247 cmd /c localdevenvtmp.bat | cat 27248 27249 # apply the diff (less some non-vs10 vars named by "!") 27250 $SORT localdevenvtmp.export0 | $GREP -v "!" > localdevenvtmp.export0.sort 27251 $SORT localdevenvtmp.export1 | $GREP -v "!" > localdevenvtmp.export1.sort 27252 $COMM -1 -3 localdevenvtmp.export0.sort localdevenvtmp.export1.sort > localdevenv.sh 27253 27254 # cleanup 27255 $RM localdevenvtmp* 27256 #---- 27257 cd $CURDIR 27258 if test ! -s $OUTPUT_ROOT/localdevenv.sh; then 27259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27260 $as_echo "no" >&6; } 27261 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 27262 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 27263 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27264 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27265 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27266 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27267 as_fn_error $? "Cannot continue" "$LINENO" 5 27268 fi 27269 27270 # Now set all paths and other env variables. This will allow the rest of 27271 # the configure script to find and run the compiler in the proper way. 27272 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 27273 $as_echo "$as_me: Setting extracted environment variables" >&6;} 27274 . $OUTPUT_ROOT/localdevenv.sh 27275 else 27276 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 27277 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 27278 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 27279 fi 27280 27281 # At this point, we should have corrent variables in the environment, or we can't continue. 27282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 27283 $as_echo_n "checking for Visual Studio variables... " >&6; } 27284 27285 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 27286 if test "x$INCLUDE" = x || test "x$LIB" = x; then 27287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 27288 $as_echo "present but broken" >&6; } 27289 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 27290 else 27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27292 $as_echo "ok" >&6; } 27293 # Remove any trailing \ from INCLUDE and LIB to avoid trouble in spec.gmk. 27294 VS_INCLUDE=`$ECHO "$INCLUDE" | $SED 's/\\\\$//'` 27295 VS_LIB=`$ECHO "$LIB" | $SED 's/\\\\$//'` 27296 # Remove any paths containing # (typically F#) as that messes up make 27297 PATH=`$ECHO "$PATH" | $SED 's/[^:#]*#[^:]*://g'` 27298 VS_PATH="$PATH" 27299 27300 27301 27302 fi 27303 else 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27305 $as_echo "not found" >&6; } 27306 27307 if test "x$VS_ENV_CMD" = x; then 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 27309 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 27311 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 27312 else 27313 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 27314 $as_echo "$as_me: Running the extraction script failed." >&6;} 27315 fi 27316 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 27317 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 27318 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 27319 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 27320 as_fn_error $? "Cannot continue" "$LINENO" 5 27321 fi 27322 27323 27324 27325 # Check whether --with-msvcr-dll was given. 27326 if test "${with_msvcr_dll+set}" = set; then : 27327 withval=$with_msvcr_dll; 27328 fi 27329 27330 27331 if test "x$with_msvcr_dll" != x; then 27332 # If given explicitely by user, do not probe. If not present, fail directly. 27333 27334 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 27335 METHOD="--with-msvcr-dll" 27336 if test -e "$POSSIBLE_MSVCR_DLL"; then 27337 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 27338 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 27339 27340 # Need to check if the found msvcr is correct architecture 27341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 27342 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 27343 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 27344 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27345 CORRECT_MSVCR_ARCH=386 27346 else 27347 CORRECT_MSVCR_ARCH=x86-64 27348 fi 27349 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 27350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27351 $as_echo "ok" >&6; } 27352 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27354 $as_echo_n "checking for msvcr100.dll... " >&6; } 27355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 27356 $as_echo "$MSVCR_DLL" >&6; } 27357 else 27358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 27359 $as_echo "incorrect, ignoring" >&6; } 27360 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 27361 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 27362 fi 27363 fi 27364 27365 if test "x$MSVCR_DLL" = x; then 27366 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 27367 fi 27368 fi 27369 27370 if test "x$MSVCR_DLL" = x; then 27371 # Probe: Using well-known location from Visual Studio 10.0 27372 if test "x$VCINSTALLDIR" != x; then 27373 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 27374 27375 windows_path="$CYGWIN_VC_INSTALL_DIR" 27376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27377 unix_path=`$CYGPATH -u "$windows_path"` 27378 CYGWIN_VC_INSTALL_DIR="$unix_path" 27379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27381 CYGWIN_VC_INSTALL_DIR="$unix_path" 27382 fi 27383 27384 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 27385 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 27386 else 27387 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 27388 fi 27389 27390 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27391 METHOD="well-known location in VCINSTALLDIR" 27392 if test -e "$POSSIBLE_MSVCR_DLL"; then 27393 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 27394 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 27395 27396 # Need to check if the found msvcr is correct architecture 27397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 27398 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 27399 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 27400 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27401 CORRECT_MSVCR_ARCH=386 27402 else 27403 CORRECT_MSVCR_ARCH=x86-64 27404 fi 27405 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 27406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27407 $as_echo "ok" >&6; } 27408 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27410 $as_echo_n "checking for msvcr100.dll... " >&6; } 27411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 27412 $as_echo "$MSVCR_DLL" >&6; } 27413 else 27414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 27415 $as_echo "incorrect, ignoring" >&6; } 27416 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 27417 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 27418 fi 27419 fi 27420 27421 fi 27422 fi 27423 27424 if test "x$MSVCR_DLL" = x; then 27425 # Probe: Check in the Boot JDK directory. 27426 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 27427 27428 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27429 METHOD="well-known location in Boot JDK" 27430 if test -e "$POSSIBLE_MSVCR_DLL"; then 27431 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 27432 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 27433 27434 # Need to check if the found msvcr is correct architecture 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 27436 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 27437 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 27438 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27439 CORRECT_MSVCR_ARCH=386 27440 else 27441 CORRECT_MSVCR_ARCH=x86-64 27442 fi 27443 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 27444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27445 $as_echo "ok" >&6; } 27446 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27448 $as_echo_n "checking for msvcr100.dll... " >&6; } 27449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 27450 $as_echo "$MSVCR_DLL" >&6; } 27451 else 27452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 27453 $as_echo "incorrect, ignoring" >&6; } 27454 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 27455 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 27456 fi 27457 fi 27458 27459 fi 27460 27461 if test "x$MSVCR_DLL" = x; then 27462 # Probe: Look in the Windows system32 directory 27463 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 27464 27465 windows_path="$CYGWIN_SYSTEMROOT" 27466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27467 unix_path=`$CYGPATH -u "$windows_path"` 27468 CYGWIN_SYSTEMROOT="$unix_path" 27469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27471 CYGWIN_SYSTEMROOT="$unix_path" 27472 fi 27473 27474 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 27475 27476 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27477 METHOD="well-known location in SYSTEMROOT" 27478 if test -e "$POSSIBLE_MSVCR_DLL"; then 27479 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 27480 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 27481 27482 # Need to check if the found msvcr is correct architecture 27483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 27484 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 27485 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 27486 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27487 CORRECT_MSVCR_ARCH=386 27488 else 27489 CORRECT_MSVCR_ARCH=x86-64 27490 fi 27491 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 27492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27493 $as_echo "ok" >&6; } 27494 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27496 $as_echo_n "checking for msvcr100.dll... " >&6; } 27497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 27498 $as_echo "$MSVCR_DLL" >&6; } 27499 else 27500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 27501 $as_echo "incorrect, ignoring" >&6; } 27502 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 27503 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 27504 fi 27505 fi 27506 27507 fi 27508 27509 if test "x$MSVCR_DLL" = x; then 27510 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 27511 if test "x$VS100COMNTOOLS" != x; then 27512 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 27513 27514 windows_path="$CYGWIN_VS_TOOLS_DIR" 27515 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27516 unix_path=`$CYGPATH -u "$windows_path"` 27517 CYGWIN_VS_TOOLS_DIR="$unix_path" 27518 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27519 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27520 CYGWIN_VS_TOOLS_DIR="$unix_path" 27521 fi 27522 27523 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 27524 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 27525 else 27526 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 27527 fi 27528 27529 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27530 METHOD="search of VS100COMNTOOLS" 27531 if test -e "$POSSIBLE_MSVCR_DLL"; then 27532 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 27533 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 27534 27535 # Need to check if the found msvcr is correct architecture 27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 27537 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 27538 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 27539 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27540 CORRECT_MSVCR_ARCH=386 27541 else 27542 CORRECT_MSVCR_ARCH=x86-64 27543 fi 27544 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 27545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27546 $as_echo "ok" >&6; } 27547 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27549 $as_echo_n "checking for msvcr100.dll... " >&6; } 27550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 27551 $as_echo "$MSVCR_DLL" >&6; } 27552 else 27553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 27554 $as_echo "incorrect, ignoring" >&6; } 27555 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 27556 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 27557 fi 27558 fi 27559 27560 fi 27561 fi 27562 27563 if test "x$MSVCR_DLL" = x; then 27564 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 27565 # (This was the original behaviour; kept since it might turn up something) 27566 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 27567 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 27568 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 27569 else 27570 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 27571 if test "x$POSSIBLE_MSVCR_DLL" = x; then 27572 # We're grasping at straws now... 27573 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 27574 fi 27575 fi 27576 27577 27578 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27579 METHOD="search of VCINSTALLDIR" 27580 if test -e "$POSSIBLE_MSVCR_DLL"; then 27581 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 27582 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 27583 27584 # Need to check if the found msvcr is correct architecture 27585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 27586 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 27587 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 27588 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 27589 CORRECT_MSVCR_ARCH=386 27590 else 27591 CORRECT_MSVCR_ARCH=x86-64 27592 fi 27593 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 27594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 27595 $as_echo "ok" >&6; } 27596 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 27597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27598 $as_echo_n "checking for msvcr100.dll... " >&6; } 27599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 27600 $as_echo "$MSVCR_DLL" >&6; } 27601 else 27602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 27603 $as_echo "incorrect, ignoring" >&6; } 27604 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 27605 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 27606 fi 27607 fi 27608 27609 fi 27610 fi 27611 27612 if test "x$MSVCR_DLL" = x; then 27613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 27614 $as_echo_n "checking for msvcr100.dll... " >&6; } 27615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27616 $as_echo "no" >&6; } 27617 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 27618 fi 27619 27620 27621 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27622 27623 # Input might be given as Windows format, start by converting to 27624 # unix format. 27625 path="$MSVCR_DLL" 27626 new_path=`$CYGPATH -u "$path"` 27627 27628 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27629 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27630 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27631 # "foo.exe" is OK but "foo" is an error. 27632 # 27633 # This test is therefore slightly more accurate than "test -f" to check for file precense. 27634 # It is also a way to make sure we got the proper file name for the real test later on. 27635 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27636 if test "x$test_shortpath" = x; then 27637 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 27638 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 27639 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 27640 fi 27641 27642 # Call helper function which possibly converts this using DOS-style short mode. 27643 # If so, the updated path is stored in $new_path. 27644 27645 input_path="$new_path" 27646 # Check if we need to convert this using DOS-style short mode. If the path 27647 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27648 # take no chances and rewrite it. 27649 # Note: m4 eats our [], so we need to use [ and ] instead. 27650 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27651 if test "x$has_forbidden_chars" != x; then 27652 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27653 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27654 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27655 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27656 # Going to short mode and back again did indeed matter. Since short mode is 27657 # case insensitive, let's make it lowercase to improve readability. 27658 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27659 # Now convert it back to Unix-stile (cygpath) 27660 input_path=`$CYGPATH -u "$shortmode_path"` 27661 new_path="$input_path" 27662 fi 27663 fi 27664 27665 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27666 if test "x$test_cygdrive_prefix" = x; then 27667 # As a simple fix, exclude /usr/bin since it's not a real path. 27668 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 27669 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27670 # a path prefixed by /cygdrive for fixpath to work. 27671 new_path="$CYGWIN_ROOT_PATH$input_path" 27672 fi 27673 fi 27674 27675 27676 if test "x$path" != "x$new_path"; then 27677 MSVCR_DLL="$new_path" 27678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 27679 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 27680 fi 27681 27682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27683 27684 path="$MSVCR_DLL" 27685 has_colon=`$ECHO $path | $GREP ^.:` 27686 new_path="$path" 27687 if test "x$has_colon" = x; then 27688 # Not in mixed or Windows style, start by that. 27689 new_path=`cmd //c echo $path` 27690 fi 27691 27692 27693 input_path="$new_path" 27694 # Check if we need to convert this using DOS-style short mode. If the path 27695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27696 # take no chances and rewrite it. 27697 # Note: m4 eats our [], so we need to use [ and ] instead. 27698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27699 if test "x$has_forbidden_chars" != x; then 27700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27701 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27702 fi 27703 27704 27705 windows_path="$new_path" 27706 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27707 unix_path=`$CYGPATH -u "$windows_path"` 27708 new_path="$unix_path" 27709 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27710 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27711 new_path="$unix_path" 27712 fi 27713 27714 if test "x$path" != "x$new_path"; then 27715 MSVCR_DLL="$new_path" 27716 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 27717 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 27718 fi 27719 27720 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27721 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27722 27723 else 27724 # We're on a posix platform. Hooray! :) 27725 path="$MSVCR_DLL" 27726 has_space=`$ECHO "$path" | $GREP " "` 27727 if test "x$has_space" != x; then 27728 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 27729 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 27730 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 27731 fi 27732 27733 # Use eval to expand a potential ~ 27734 eval path="$path" 27735 if test ! -f "$path" && test ! -d "$path"; then 27736 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 27737 fi 27738 27739 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 27740 fi 27741 27742 27743 27744 27745 # Check whether --with-dxsdk was given. 27746 if test "${with_dxsdk+set}" = set; then : 27747 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 27748 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 27749 fi 27750 27751 27752 27753 27754 # Check whether --with-dxsdk-lib was given. 27755 if test "${with_dxsdk_lib+set}" = set; then : 27756 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 27757 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 27758 fi 27759 27760 27761 27762 27763 # Check whether --with-dxsdk-include was given. 27764 if test "${with_dxsdk_include+set}" = set; then : 27765 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 27766 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 27767 fi 27768 27769 27770 fi 27771 27772 27773 27774 # If --build AND --host is set, then the configure script will find any 27775 # cross compilation tools in the PATH. Cross compilation tools 27776 # follows the cross compilation standard where they are prefixed with ${host}. 27777 # For example the binary i686-sun-solaris2.10-gcc 27778 # will cross compile for i686-sun-solaris2.10 27779 # If neither of build and host is not set, then build=host and the 27780 # default compiler found in the path will be used. 27781 # Setting only --host, does not seem to be really supported. 27782 # Please set both --build and --host if you want to cross compile. 27783 27784 if test "x$COMPILE_TYPE" = "xcross"; then 27785 # Now we to find a C/C++ compiler that can build executables for the build 27786 # platform. We can't use the AC_PROG_CC macro, since it can only be used 27787 # once. Also, we need to do this before adding a tools dir to the path, 27788 # otherwise we might pick up cross-compilers which don't use standard naming. 27789 # Otherwise, we'll set the BUILD_tools to the native tools, but that'll have 27790 # to wait until they are properly discovered. 27791 27792 27793 # Publish this variable in the help. 27794 27795 27796 if test "x$BUILD_CC" = x; then 27797 # The variable is not set by user, try to locate tool using the code snippet 27798 for ac_prog in cl cc gcc 27799 do 27800 # Extract the first word of "$ac_prog", so it can be a program name with args. 27801 set dummy $ac_prog; ac_word=$2 27802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27803 $as_echo_n "checking for $ac_word... " >&6; } 27804 if ${ac_cv_path_BUILD_CC+:} false; then : 27805 $as_echo_n "(cached) " >&6 27806 else 27807 case $BUILD_CC in 27808 [\\/]* | ?:[\\/]*) 27809 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 27810 ;; 27811 *) 27812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27813 for as_dir in $PATH 27814 do 27815 IFS=$as_save_IFS 27816 test -z "$as_dir" && as_dir=. 27817 for ac_exec_ext in '' $ac_executable_extensions; do 27818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27819 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 27820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27821 break 2 27822 fi 27823 done 27824 done 27825 IFS=$as_save_IFS 27826 27827 ;; 27828 esac 27829 fi 27830 BUILD_CC=$ac_cv_path_BUILD_CC 27831 if test -n "$BUILD_CC"; then 27832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 27833 $as_echo "$BUILD_CC" >&6; } 27834 else 27835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27836 $as_echo "no" >&6; } 27837 fi 27838 27839 27840 test -n "$BUILD_CC" && break 27841 done 27842 27843 else 27844 # The variable is set, but is it from the command line or the environment? 27845 27846 # Try to remove the string !BUILD_CC! from our list. 27847 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 27848 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 27849 # If it failed, the variable was not from the command line. Ignore it, 27850 # but warn the user (except for BASH, which is always set by the calling BASH). 27851 if test "xBUILD_CC" != xBASH; then 27852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 27853 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 27854 fi 27855 # Try to locate tool using the code snippet 27856 for ac_prog in cl cc gcc 27857 do 27858 # Extract the first word of "$ac_prog", so it can be a program name with args. 27859 set dummy $ac_prog; ac_word=$2 27860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27861 $as_echo_n "checking for $ac_word... " >&6; } 27862 if ${ac_cv_path_BUILD_CC+:} false; then : 27863 $as_echo_n "(cached) " >&6 27864 else 27865 case $BUILD_CC in 27866 [\\/]* | ?:[\\/]*) 27867 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 27868 ;; 27869 *) 27870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27871 for as_dir in $PATH 27872 do 27873 IFS=$as_save_IFS 27874 test -z "$as_dir" && as_dir=. 27875 for ac_exec_ext in '' $ac_executable_extensions; do 27876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27877 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 27878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27879 break 2 27880 fi 27881 done 27882 done 27883 IFS=$as_save_IFS 27884 27885 ;; 27886 esac 27887 fi 27888 BUILD_CC=$ac_cv_path_BUILD_CC 27889 if test -n "$BUILD_CC"; then 27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 27891 $as_echo "$BUILD_CC" >&6; } 27892 else 27893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27894 $as_echo "no" >&6; } 27895 fi 27896 27897 27898 test -n "$BUILD_CC" && break 27899 done 27900 27901 else 27902 # If it succeeded, then it was overridden by the user. We will use it 27903 # for the tool. 27904 27905 # First remove it from the list of overridden variables, so we can test 27906 # for unknown variables in the end. 27907 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 27908 27909 # Check if the provided tool contains a complete path. 27910 tool_specified="$BUILD_CC" 27911 tool_basename="${tool_specified##*/}" 27912 if test "x$tool_basename" = "x$tool_specified"; then 27913 # A command without a complete path is provided, search $PATH. 27914 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 27915 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 27916 # Extract the first word of "$tool_basename", so it can be a program name with args. 27917 set dummy $tool_basename; ac_word=$2 27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27919 $as_echo_n "checking for $ac_word... " >&6; } 27920 if ${ac_cv_path_BUILD_CC+:} false; then : 27921 $as_echo_n "(cached) " >&6 27922 else 27923 case $BUILD_CC in 27924 [\\/]* | ?:[\\/]*) 27925 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 27926 ;; 27927 *) 27928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27929 for as_dir in $PATH 27930 do 27931 IFS=$as_save_IFS 27932 test -z "$as_dir" && as_dir=. 27933 for ac_exec_ext in '' $ac_executable_extensions; do 27934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27935 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 27936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27937 break 2 27938 fi 27939 done 27940 done 27941 IFS=$as_save_IFS 27942 27943 ;; 27944 esac 27945 fi 27946 BUILD_CC=$ac_cv_path_BUILD_CC 27947 if test -n "$BUILD_CC"; then 27948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 27949 $as_echo "$BUILD_CC" >&6; } 27950 else 27951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27952 $as_echo "no" >&6; } 27953 fi 27954 27955 27956 if test "x$BUILD_CC" = x; then 27957 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 27958 fi 27959 else 27960 # Otherwise we believe it is a complete path. Use it as it is. 27961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 27962 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 27964 $as_echo_n "checking for BUILD_CC... " >&6; } 27965 if test ! -x "$tool_specified"; then 27966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 27967 $as_echo "not found" >&6; } 27968 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 27969 fi 27970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 27971 $as_echo "$tool_specified" >&6; } 27972 fi 27973 fi 27974 fi 27975 27976 27977 27978 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27979 27980 # First separate the path from the arguments. This will split at the first 27981 # space. 27982 complete="$BUILD_CC" 27983 path="${complete%% *}" 27984 tmp="$complete EOL" 27985 arguments="${tmp#* }" 27986 27987 # Input might be given as Windows format, start by converting to 27988 # unix format. 27989 new_path=`$CYGPATH -u "$path"` 27990 27991 # Now try to locate executable using which 27992 new_path=`$WHICH "$new_path" 2> /dev/null` 27993 # bat and cmd files are not always considered executable in cygwin causing which 27994 # to not find them 27995 if test "x$new_path" = x \ 27996 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27997 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27998 new_path=`$CYGPATH -u "$path"` 27999 fi 28000 if test "x$new_path" = x; then 28001 # Oops. Which didn't find the executable. 28002 # The splitting of arguments from the executable at a space might have been incorrect, 28003 # since paths with space are more likely in Windows. Give it another try with the whole 28004 # argument. 28005 path="$complete" 28006 arguments="EOL" 28007 new_path=`$CYGPATH -u "$path"` 28008 new_path=`$WHICH "$new_path" 2> /dev/null` 28009 # bat and cmd files are not always considered executable in cygwin causing which 28010 # to not find them 28011 if test "x$new_path" = x \ 28012 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28013 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28014 new_path=`$CYGPATH -u "$path"` 28015 fi 28016 if test "x$new_path" = x; then 28017 # It's still not found. Now this is an unrecoverable error. 28018 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 28019 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 28020 has_space=`$ECHO "$complete" | $GREP " "` 28021 if test "x$has_space" != x; then 28022 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28023 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28024 fi 28025 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 28026 fi 28027 fi 28028 28029 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28030 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28031 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28032 # "foo.exe" is OK but "foo" is an error. 28033 # 28034 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28035 # It is also a way to make sure we got the proper file name for the real test later on. 28036 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28037 if test "x$test_shortpath" = x; then 28038 # Short path failed, file does not exist as specified. 28039 # Try adding .exe or .cmd 28040 if test -f "${new_path}.exe"; then 28041 input_to_shortpath="${new_path}.exe" 28042 elif test -f "${new_path}.cmd"; then 28043 input_to_shortpath="${new_path}.cmd" 28044 else 28045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 28046 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 28047 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28048 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28049 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 28050 fi 28051 else 28052 input_to_shortpath="$new_path" 28053 fi 28054 28055 # Call helper function which possibly converts this using DOS-style short mode. 28056 # If so, the updated path is stored in $new_path. 28057 new_path="$input_to_shortpath" 28058 28059 input_path="$input_to_shortpath" 28060 # Check if we need to convert this using DOS-style short mode. If the path 28061 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28062 # take no chances and rewrite it. 28063 # Note: m4 eats our [], so we need to use [ and ] instead. 28064 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28065 if test "x$has_forbidden_chars" != x; then 28066 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28067 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28068 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28069 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28070 # Going to short mode and back again did indeed matter. Since short mode is 28071 # case insensitive, let's make it lowercase to improve readability. 28072 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28073 # Now convert it back to Unix-stile (cygpath) 28074 input_path=`$CYGPATH -u "$shortmode_path"` 28075 new_path="$input_path" 28076 fi 28077 fi 28078 28079 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28080 if test "x$test_cygdrive_prefix" = x; then 28081 # As a simple fix, exclude /usr/bin since it's not a real path. 28082 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28083 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28084 # a path prefixed by /cygdrive for fixpath to work. 28085 new_path="$CYGWIN_ROOT_PATH$input_path" 28086 fi 28087 fi 28088 28089 # remove trailing .exe if any 28090 new_path="${new_path/%.exe/}" 28091 28092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28093 28094 # First separate the path from the arguments. This will split at the first 28095 # space. 28096 complete="$BUILD_CC" 28097 path="${complete%% *}" 28098 tmp="$complete EOL" 28099 arguments="${tmp#* }" 28100 28101 # Input might be given as Windows format, start by converting to 28102 # unix format. 28103 new_path="$path" 28104 28105 windows_path="$new_path" 28106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28107 unix_path=`$CYGPATH -u "$windows_path"` 28108 new_path="$unix_path" 28109 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28110 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28111 new_path="$unix_path" 28112 fi 28113 28114 28115 # Now try to locate executable using which 28116 new_path=`$WHICH "$new_path" 2> /dev/null` 28117 28118 if test "x$new_path" = x; then 28119 # Oops. Which didn't find the executable. 28120 # The splitting of arguments from the executable at a space might have been incorrect, 28121 # since paths with space are more likely in Windows. Give it another try with the whole 28122 # argument. 28123 path="$complete" 28124 arguments="EOL" 28125 new_path="$path" 28126 28127 windows_path="$new_path" 28128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28129 unix_path=`$CYGPATH -u "$windows_path"` 28130 new_path="$unix_path" 28131 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28132 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28133 new_path="$unix_path" 28134 fi 28135 28136 28137 new_path=`$WHICH "$new_path" 2> /dev/null` 28138 28139 if test "x$new_path" = x; then 28140 # It's still not found. Now this is an unrecoverable error. 28141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 28142 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 28143 has_space=`$ECHO "$complete" | $GREP " "` 28144 if test "x$has_space" != x; then 28145 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28146 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28147 fi 28148 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 28149 fi 28150 fi 28151 28152 # Now new_path has a complete unix path to the binary 28153 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28154 # Keep paths in /bin as-is, but remove trailing .exe if any 28155 new_path="${new_path/%.exe/}" 28156 # Do not save /bin paths to all_fixpath_prefixes! 28157 else 28158 # Not in mixed or Windows style, start by that. 28159 new_path=`cmd //c echo $new_path` 28160 28161 input_path="$new_path" 28162 # Check if we need to convert this using DOS-style short mode. If the path 28163 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28164 # take no chances and rewrite it. 28165 # Note: m4 eats our [], so we need to use [ and ] instead. 28166 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28167 if test "x$has_forbidden_chars" != x; then 28168 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28169 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28170 fi 28171 28172 # Output is in $new_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 # remove trailing .exe if any 28184 new_path="${new_path/%.exe/}" 28185 28186 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28187 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28188 fi 28189 28190 else 28191 # We're on a posix platform. Hooray! :) 28192 # First separate the path from the arguments. This will split at the first 28193 # space. 28194 complete="$BUILD_CC" 28195 path="${complete%% *}" 28196 tmp="$complete EOL" 28197 arguments="${tmp#* }" 28198 28199 # Cannot rely on the command "which" here since it doesn't always work. 28200 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28201 if test -z "$is_absolute_path"; then 28202 # Path to executable is not absolute. Find it. 28203 IFS_save="$IFS" 28204 IFS=: 28205 for p in $PATH; do 28206 if test -f "$p/$path" && test -x "$p/$path"; then 28207 new_path="$p/$path" 28208 break 28209 fi 28210 done 28211 IFS="$IFS_save" 28212 else 28213 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CC (as $path) failed, using $path directly." >&5 28214 $as_echo "$as_me: Resolving BUILD_CC (as $path) failed, using $path directly." >&6;} 28215 new_path="$path" 28216 fi 28217 28218 if test "x$new_path" = x; then 28219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 28220 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 28221 has_space=`$ECHO "$complete" | $GREP " "` 28222 if test "x$has_space" != x; then 28223 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28224 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28225 fi 28226 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 28227 fi 28228 fi 28229 28230 # Now join together the path and the arguments once again 28231 if test "x$arguments" != xEOL; then 28232 new_complete="$new_path ${arguments% *}" 28233 else 28234 new_complete="$new_path" 28235 fi 28236 28237 if test "x$complete" != "x$new_complete"; then 28238 BUILD_CC="$new_complete" 28239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 28240 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 28241 fi 28242 28243 28244 28245 # Publish this variable in the help. 28246 28247 28248 if test "x$BUILD_CXX" = x; then 28249 # The variable is not set by user, try to locate tool using the code snippet 28250 for ac_prog in cl CC g++ 28251 do 28252 # Extract the first word of "$ac_prog", so it can be a program name with args. 28253 set dummy $ac_prog; ac_word=$2 28254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28255 $as_echo_n "checking for $ac_word... " >&6; } 28256 if ${ac_cv_path_BUILD_CXX+:} false; then : 28257 $as_echo_n "(cached) " >&6 28258 else 28259 case $BUILD_CXX in 28260 [\\/]* | ?:[\\/]*) 28261 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 28262 ;; 28263 *) 28264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28265 for as_dir in $PATH 28266 do 28267 IFS=$as_save_IFS 28268 test -z "$as_dir" && as_dir=. 28269 for ac_exec_ext in '' $ac_executable_extensions; do 28270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28271 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 28272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28273 break 2 28274 fi 28275 done 28276 done 28277 IFS=$as_save_IFS 28278 28279 ;; 28280 esac 28281 fi 28282 BUILD_CXX=$ac_cv_path_BUILD_CXX 28283 if test -n "$BUILD_CXX"; then 28284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 28285 $as_echo "$BUILD_CXX" >&6; } 28286 else 28287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28288 $as_echo "no" >&6; } 28289 fi 28290 28291 28292 test -n "$BUILD_CXX" && break 28293 done 28294 28295 else 28296 # The variable is set, but is it from the command line or the environment? 28297 28298 # Try to remove the string !BUILD_CXX! from our list. 28299 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 28300 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 28301 # If it failed, the variable was not from the command line. Ignore it, 28302 # but warn the user (except for BASH, which is always set by the calling BASH). 28303 if test "xBUILD_CXX" != xBASH; then 28304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 28305 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 28306 fi 28307 # Try to locate tool using the code snippet 28308 for ac_prog in cl CC g++ 28309 do 28310 # Extract the first word of "$ac_prog", so it can be a program name with args. 28311 set dummy $ac_prog; ac_word=$2 28312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28313 $as_echo_n "checking for $ac_word... " >&6; } 28314 if ${ac_cv_path_BUILD_CXX+:} false; then : 28315 $as_echo_n "(cached) " >&6 28316 else 28317 case $BUILD_CXX in 28318 [\\/]* | ?:[\\/]*) 28319 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 28320 ;; 28321 *) 28322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28323 for as_dir in $PATH 28324 do 28325 IFS=$as_save_IFS 28326 test -z "$as_dir" && as_dir=. 28327 for ac_exec_ext in '' $ac_executable_extensions; do 28328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28329 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 28330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28331 break 2 28332 fi 28333 done 28334 done 28335 IFS=$as_save_IFS 28336 28337 ;; 28338 esac 28339 fi 28340 BUILD_CXX=$ac_cv_path_BUILD_CXX 28341 if test -n "$BUILD_CXX"; then 28342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 28343 $as_echo "$BUILD_CXX" >&6; } 28344 else 28345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28346 $as_echo "no" >&6; } 28347 fi 28348 28349 28350 test -n "$BUILD_CXX" && break 28351 done 28352 28353 else 28354 # If it succeeded, then it was overridden by the user. We will use it 28355 # for the tool. 28356 28357 # First remove it from the list of overridden variables, so we can test 28358 # for unknown variables in the end. 28359 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 28360 28361 # Check if the provided tool contains a complete path. 28362 tool_specified="$BUILD_CXX" 28363 tool_basename="${tool_specified##*/}" 28364 if test "x$tool_basename" = "x$tool_specified"; then 28365 # A command without a complete path is provided, search $PATH. 28366 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 28367 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 28368 # Extract the first word of "$tool_basename", so it can be a program name with args. 28369 set dummy $tool_basename; ac_word=$2 28370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28371 $as_echo_n "checking for $ac_word... " >&6; } 28372 if ${ac_cv_path_BUILD_CXX+:} false; then : 28373 $as_echo_n "(cached) " >&6 28374 else 28375 case $BUILD_CXX in 28376 [\\/]* | ?:[\\/]*) 28377 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 28378 ;; 28379 *) 28380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28381 for as_dir in $PATH 28382 do 28383 IFS=$as_save_IFS 28384 test -z "$as_dir" && as_dir=. 28385 for ac_exec_ext in '' $ac_executable_extensions; do 28386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28387 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 28388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28389 break 2 28390 fi 28391 done 28392 done 28393 IFS=$as_save_IFS 28394 28395 ;; 28396 esac 28397 fi 28398 BUILD_CXX=$ac_cv_path_BUILD_CXX 28399 if test -n "$BUILD_CXX"; then 28400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 28401 $as_echo "$BUILD_CXX" >&6; } 28402 else 28403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28404 $as_echo "no" >&6; } 28405 fi 28406 28407 28408 if test "x$BUILD_CXX" = x; then 28409 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 28410 fi 28411 else 28412 # Otherwise we believe it is a complete path. Use it as it is. 28413 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 28414 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 28416 $as_echo_n "checking for BUILD_CXX... " >&6; } 28417 if test ! -x "$tool_specified"; then 28418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28419 $as_echo "not found" >&6; } 28420 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 28421 fi 28422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 28423 $as_echo "$tool_specified" >&6; } 28424 fi 28425 fi 28426 fi 28427 28428 28429 28430 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28431 28432 # First separate the path from the arguments. This will split at the first 28433 # space. 28434 complete="$BUILD_CXX" 28435 path="${complete%% *}" 28436 tmp="$complete EOL" 28437 arguments="${tmp#* }" 28438 28439 # Input might be given as Windows format, start by converting to 28440 # unix format. 28441 new_path=`$CYGPATH -u "$path"` 28442 28443 # Now try to locate executable using which 28444 new_path=`$WHICH "$new_path" 2> /dev/null` 28445 # bat and cmd files are not always considered executable in cygwin causing which 28446 # to not find them 28447 if test "x$new_path" = x \ 28448 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28449 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28450 new_path=`$CYGPATH -u "$path"` 28451 fi 28452 if test "x$new_path" = x; then 28453 # Oops. Which didn't find the executable. 28454 # The splitting of arguments from the executable at a space might have been incorrect, 28455 # since paths with space are more likely in Windows. Give it another try with the whole 28456 # argument. 28457 path="$complete" 28458 arguments="EOL" 28459 new_path=`$CYGPATH -u "$path"` 28460 new_path=`$WHICH "$new_path" 2> /dev/null` 28461 # bat and cmd files are not always considered executable in cygwin causing which 28462 # to not find them 28463 if test "x$new_path" = x \ 28464 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28465 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28466 new_path=`$CYGPATH -u "$path"` 28467 fi 28468 if test "x$new_path" = x; then 28469 # It's still not found. Now this is an unrecoverable error. 28470 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 28471 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 28472 has_space=`$ECHO "$complete" | $GREP " "` 28473 if test "x$has_space" != x; then 28474 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28475 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28476 fi 28477 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 28478 fi 28479 fi 28480 28481 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28482 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28483 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28484 # "foo.exe" is OK but "foo" is an error. 28485 # 28486 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28487 # It is also a way to make sure we got the proper file name for the real test later on. 28488 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28489 if test "x$test_shortpath" = x; then 28490 # Short path failed, file does not exist as specified. 28491 # Try adding .exe or .cmd 28492 if test -f "${new_path}.exe"; then 28493 input_to_shortpath="${new_path}.exe" 28494 elif test -f "${new_path}.cmd"; then 28495 input_to_shortpath="${new_path}.cmd" 28496 else 28497 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 28498 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 28499 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28500 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28501 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 28502 fi 28503 else 28504 input_to_shortpath="$new_path" 28505 fi 28506 28507 # Call helper function which possibly converts this using DOS-style short mode. 28508 # If so, the updated path is stored in $new_path. 28509 new_path="$input_to_shortpath" 28510 28511 input_path="$input_to_shortpath" 28512 # Check if we need to convert this using DOS-style short mode. If the path 28513 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28514 # take no chances and rewrite it. 28515 # Note: m4 eats our [], so we need to use [ and ] instead. 28516 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28517 if test "x$has_forbidden_chars" != x; then 28518 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28519 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28520 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28521 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28522 # Going to short mode and back again did indeed matter. Since short mode is 28523 # case insensitive, let's make it lowercase to improve readability. 28524 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28525 # Now convert it back to Unix-stile (cygpath) 28526 input_path=`$CYGPATH -u "$shortmode_path"` 28527 new_path="$input_path" 28528 fi 28529 fi 28530 28531 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28532 if test "x$test_cygdrive_prefix" = x; then 28533 # As a simple fix, exclude /usr/bin since it's not a real path. 28534 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28535 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28536 # a path prefixed by /cygdrive for fixpath to work. 28537 new_path="$CYGWIN_ROOT_PATH$input_path" 28538 fi 28539 fi 28540 28541 # remove trailing .exe if any 28542 new_path="${new_path/%.exe/}" 28543 28544 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28545 28546 # First separate the path from the arguments. This will split at the first 28547 # space. 28548 complete="$BUILD_CXX" 28549 path="${complete%% *}" 28550 tmp="$complete EOL" 28551 arguments="${tmp#* }" 28552 28553 # Input might be given as Windows format, start by converting to 28554 # unix format. 28555 new_path="$path" 28556 28557 windows_path="$new_path" 28558 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28559 unix_path=`$CYGPATH -u "$windows_path"` 28560 new_path="$unix_path" 28561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28562 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28563 new_path="$unix_path" 28564 fi 28565 28566 28567 # Now try to locate executable using which 28568 new_path=`$WHICH "$new_path" 2> /dev/null` 28569 28570 if test "x$new_path" = x; then 28571 # Oops. Which didn't find the executable. 28572 # The splitting of arguments from the executable at a space might have been incorrect, 28573 # since paths with space are more likely in Windows. Give it another try with the whole 28574 # argument. 28575 path="$complete" 28576 arguments="EOL" 28577 new_path="$path" 28578 28579 windows_path="$new_path" 28580 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28581 unix_path=`$CYGPATH -u "$windows_path"` 28582 new_path="$unix_path" 28583 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28584 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28585 new_path="$unix_path" 28586 fi 28587 28588 28589 new_path=`$WHICH "$new_path" 2> /dev/null` 28590 28591 if test "x$new_path" = x; then 28592 # It's still not found. Now this is an unrecoverable error. 28593 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 28594 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 28595 has_space=`$ECHO "$complete" | $GREP " "` 28596 if test "x$has_space" != x; then 28597 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28598 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28599 fi 28600 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 28601 fi 28602 fi 28603 28604 # Now new_path has a complete unix path to the binary 28605 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28606 # Keep paths in /bin as-is, but remove trailing .exe if any 28607 new_path="${new_path/%.exe/}" 28608 # Do not save /bin paths to all_fixpath_prefixes! 28609 else 28610 # Not in mixed or Windows style, start by that. 28611 new_path=`cmd //c echo $new_path` 28612 28613 input_path="$new_path" 28614 # Check if we need to convert this using DOS-style short mode. If the path 28615 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28616 # take no chances and rewrite it. 28617 # Note: m4 eats our [], so we need to use [ and ] instead. 28618 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28619 if test "x$has_forbidden_chars" != x; then 28620 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28621 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28622 fi 28623 28624 # Output is in $new_path 28625 28626 windows_path="$new_path" 28627 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28628 unix_path=`$CYGPATH -u "$windows_path"` 28629 new_path="$unix_path" 28630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28631 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28632 new_path="$unix_path" 28633 fi 28634 28635 # remove trailing .exe if any 28636 new_path="${new_path/%.exe/}" 28637 28638 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28639 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28640 fi 28641 28642 else 28643 # We're on a posix platform. Hooray! :) 28644 # First separate the path from the arguments. This will split at the first 28645 # space. 28646 complete="$BUILD_CXX" 28647 path="${complete%% *}" 28648 tmp="$complete EOL" 28649 arguments="${tmp#* }" 28650 28651 # Cannot rely on the command "which" here since it doesn't always work. 28652 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28653 if test -z "$is_absolute_path"; then 28654 # Path to executable is not absolute. Find it. 28655 IFS_save="$IFS" 28656 IFS=: 28657 for p in $PATH; do 28658 if test -f "$p/$path" && test -x "$p/$path"; then 28659 new_path="$p/$path" 28660 break 28661 fi 28662 done 28663 IFS="$IFS_save" 28664 else 28665 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_CXX (as $path) failed, using $path directly." >&5 28666 $as_echo "$as_me: Resolving BUILD_CXX (as $path) failed, using $path directly." >&6;} 28667 new_path="$path" 28668 fi 28669 28670 if test "x$new_path" = x; then 28671 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 28672 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 28673 has_space=`$ECHO "$complete" | $GREP " "` 28674 if test "x$has_space" != x; then 28675 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28676 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28677 fi 28678 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 28679 fi 28680 fi 28681 28682 # Now join together the path and the arguments once again 28683 if test "x$arguments" != xEOL; then 28684 new_complete="$new_path ${arguments% *}" 28685 else 28686 new_complete="$new_path" 28687 fi 28688 28689 if test "x$complete" != "x$new_complete"; then 28690 BUILD_CXX="$new_complete" 28691 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 28692 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 28693 fi 28694 28695 28696 28697 # Publish this variable in the help. 28698 28699 28700 if test "x$BUILD_LD" = x; then 28701 # The variable is not set by user, try to locate tool using the code snippet 28702 for ac_prog in ld 28703 do 28704 # Extract the first word of "$ac_prog", so it can be a program name with args. 28705 set dummy $ac_prog; ac_word=$2 28706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28707 $as_echo_n "checking for $ac_word... " >&6; } 28708 if ${ac_cv_path_BUILD_LD+:} false; then : 28709 $as_echo_n "(cached) " >&6 28710 else 28711 case $BUILD_LD in 28712 [\\/]* | ?:[\\/]*) 28713 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 28714 ;; 28715 *) 28716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28717 for as_dir in $PATH 28718 do 28719 IFS=$as_save_IFS 28720 test -z "$as_dir" && as_dir=. 28721 for ac_exec_ext in '' $ac_executable_extensions; do 28722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28723 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 28724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28725 break 2 28726 fi 28727 done 28728 done 28729 IFS=$as_save_IFS 28730 28731 ;; 28732 esac 28733 fi 28734 BUILD_LD=$ac_cv_path_BUILD_LD 28735 if test -n "$BUILD_LD"; then 28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 28737 $as_echo "$BUILD_LD" >&6; } 28738 else 28739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28740 $as_echo "no" >&6; } 28741 fi 28742 28743 28744 test -n "$BUILD_LD" && break 28745 done 28746 28747 else 28748 # The variable is set, but is it from the command line or the environment? 28749 28750 # Try to remove the string !BUILD_LD! from our list. 28751 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 28752 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 28753 # If it failed, the variable was not from the command line. Ignore it, 28754 # but warn the user (except for BASH, which is always set by the calling BASH). 28755 if test "xBUILD_LD" != xBASH; then 28756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 28757 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 28758 fi 28759 # Try to locate tool using the code snippet 28760 for ac_prog in ld 28761 do 28762 # Extract the first word of "$ac_prog", so it can be a program name with args. 28763 set dummy $ac_prog; ac_word=$2 28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28765 $as_echo_n "checking for $ac_word... " >&6; } 28766 if ${ac_cv_path_BUILD_LD+:} false; then : 28767 $as_echo_n "(cached) " >&6 28768 else 28769 case $BUILD_LD in 28770 [\\/]* | ?:[\\/]*) 28771 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 28772 ;; 28773 *) 28774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28775 for as_dir in $PATH 28776 do 28777 IFS=$as_save_IFS 28778 test -z "$as_dir" && as_dir=. 28779 for ac_exec_ext in '' $ac_executable_extensions; do 28780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28781 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 28782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28783 break 2 28784 fi 28785 done 28786 done 28787 IFS=$as_save_IFS 28788 28789 ;; 28790 esac 28791 fi 28792 BUILD_LD=$ac_cv_path_BUILD_LD 28793 if test -n "$BUILD_LD"; then 28794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 28795 $as_echo "$BUILD_LD" >&6; } 28796 else 28797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28798 $as_echo "no" >&6; } 28799 fi 28800 28801 28802 test -n "$BUILD_LD" && break 28803 done 28804 28805 else 28806 # If it succeeded, then it was overridden by the user. We will use it 28807 # for the tool. 28808 28809 # First remove it from the list of overridden variables, so we can test 28810 # for unknown variables in the end. 28811 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 28812 28813 # Check if the provided tool contains a complete path. 28814 tool_specified="$BUILD_LD" 28815 tool_basename="${tool_specified##*/}" 28816 if test "x$tool_basename" = "x$tool_specified"; then 28817 # A command without a complete path is provided, search $PATH. 28818 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 28819 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 28820 # Extract the first word of "$tool_basename", so it can be a program name with args. 28821 set dummy $tool_basename; ac_word=$2 28822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28823 $as_echo_n "checking for $ac_word... " >&6; } 28824 if ${ac_cv_path_BUILD_LD+:} false; then : 28825 $as_echo_n "(cached) " >&6 28826 else 28827 case $BUILD_LD in 28828 [\\/]* | ?:[\\/]*) 28829 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 28830 ;; 28831 *) 28832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28833 for as_dir in $PATH 28834 do 28835 IFS=$as_save_IFS 28836 test -z "$as_dir" && as_dir=. 28837 for ac_exec_ext in '' $ac_executable_extensions; do 28838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28839 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 28840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28841 break 2 28842 fi 28843 done 28844 done 28845 IFS=$as_save_IFS 28846 28847 ;; 28848 esac 28849 fi 28850 BUILD_LD=$ac_cv_path_BUILD_LD 28851 if test -n "$BUILD_LD"; then 28852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 28853 $as_echo "$BUILD_LD" >&6; } 28854 else 28855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28856 $as_echo "no" >&6; } 28857 fi 28858 28859 28860 if test "x$BUILD_LD" = x; then 28861 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 28862 fi 28863 else 28864 # Otherwise we believe it is a complete path. Use it as it is. 28865 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 28866 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 28867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 28868 $as_echo_n "checking for BUILD_LD... " >&6; } 28869 if test ! -x "$tool_specified"; then 28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 28871 $as_echo "not found" >&6; } 28872 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 28873 fi 28874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 28875 $as_echo "$tool_specified" >&6; } 28876 fi 28877 fi 28878 fi 28879 28880 28881 28882 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28883 28884 # First separate the path from the arguments. This will split at the first 28885 # space. 28886 complete="$BUILD_LD" 28887 path="${complete%% *}" 28888 tmp="$complete EOL" 28889 arguments="${tmp#* }" 28890 28891 # Input might be given as Windows format, start by converting to 28892 # unix format. 28893 new_path=`$CYGPATH -u "$path"` 28894 28895 # Now try to locate executable using which 28896 new_path=`$WHICH "$new_path" 2> /dev/null` 28897 # bat and cmd files are not always considered executable in cygwin causing which 28898 # to not find them 28899 if test "x$new_path" = x \ 28900 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28901 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28902 new_path=`$CYGPATH -u "$path"` 28903 fi 28904 if test "x$new_path" = x; then 28905 # Oops. Which didn't find the executable. 28906 # The splitting of arguments from the executable at a space might have been incorrect, 28907 # since paths with space are more likely in Windows. Give it another try with the whole 28908 # argument. 28909 path="$complete" 28910 arguments="EOL" 28911 new_path=`$CYGPATH -u "$path"` 28912 new_path=`$WHICH "$new_path" 2> /dev/null` 28913 # bat and cmd files are not always considered executable in cygwin causing which 28914 # to not find them 28915 if test "x$new_path" = x \ 28916 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28917 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28918 new_path=`$CYGPATH -u "$path"` 28919 fi 28920 if test "x$new_path" = x; then 28921 # It's still not found. Now this is an unrecoverable error. 28922 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 28923 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 28924 has_space=`$ECHO "$complete" | $GREP " "` 28925 if test "x$has_space" != x; then 28926 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28927 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28928 fi 28929 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 28930 fi 28931 fi 28932 28933 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28934 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28935 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28936 # "foo.exe" is OK but "foo" is an error. 28937 # 28938 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28939 # It is also a way to make sure we got the proper file name for the real test later on. 28940 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28941 if test "x$test_shortpath" = x; then 28942 # Short path failed, file does not exist as specified. 28943 # Try adding .exe or .cmd 28944 if test -f "${new_path}.exe"; then 28945 input_to_shortpath="${new_path}.exe" 28946 elif test -f "${new_path}.cmd"; then 28947 input_to_shortpath="${new_path}.cmd" 28948 else 28949 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 28950 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 28951 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28952 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28953 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 28954 fi 28955 else 28956 input_to_shortpath="$new_path" 28957 fi 28958 28959 # Call helper function which possibly converts this using DOS-style short mode. 28960 # If so, the updated path is stored in $new_path. 28961 new_path="$input_to_shortpath" 28962 28963 input_path="$input_to_shortpath" 28964 # Check if we need to convert this using DOS-style short mode. If the path 28965 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28966 # take no chances and rewrite it. 28967 # Note: m4 eats our [], so we need to use [ and ] instead. 28968 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28969 if test "x$has_forbidden_chars" != x; then 28970 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28971 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28972 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28973 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28974 # Going to short mode and back again did indeed matter. Since short mode is 28975 # case insensitive, let's make it lowercase to improve readability. 28976 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28977 # Now convert it back to Unix-stile (cygpath) 28978 input_path=`$CYGPATH -u "$shortmode_path"` 28979 new_path="$input_path" 28980 fi 28981 fi 28982 28983 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28984 if test "x$test_cygdrive_prefix" = x; then 28985 # As a simple fix, exclude /usr/bin since it's not a real path. 28986 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28987 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28988 # a path prefixed by /cygdrive for fixpath to work. 28989 new_path="$CYGWIN_ROOT_PATH$input_path" 28990 fi 28991 fi 28992 28993 # remove trailing .exe if any 28994 new_path="${new_path/%.exe/}" 28995 28996 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28997 28998 # First separate the path from the arguments. This will split at the first 28999 # space. 29000 complete="$BUILD_LD" 29001 path="${complete%% *}" 29002 tmp="$complete EOL" 29003 arguments="${tmp#* }" 29004 29005 # Input might be given as Windows format, start by converting to 29006 # unix format. 29007 new_path="$path" 29008 29009 windows_path="$new_path" 29010 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29011 unix_path=`$CYGPATH -u "$windows_path"` 29012 new_path="$unix_path" 29013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29014 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29015 new_path="$unix_path" 29016 fi 29017 29018 29019 # Now try to locate executable using which 29020 new_path=`$WHICH "$new_path" 2> /dev/null` 29021 29022 if test "x$new_path" = x; then 29023 # Oops. Which didn't find the executable. 29024 # The splitting of arguments from the executable at a space might have been incorrect, 29025 # since paths with space are more likely in Windows. Give it another try with the whole 29026 # argument. 29027 path="$complete" 29028 arguments="EOL" 29029 new_path="$path" 29030 29031 windows_path="$new_path" 29032 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29033 unix_path=`$CYGPATH -u "$windows_path"` 29034 new_path="$unix_path" 29035 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29036 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29037 new_path="$unix_path" 29038 fi 29039 29040 29041 new_path=`$WHICH "$new_path" 2> /dev/null` 29042 29043 if test "x$new_path" = x; then 29044 # It's still not found. Now this is an unrecoverable error. 29045 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 29046 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 29047 has_space=`$ECHO "$complete" | $GREP " "` 29048 if test "x$has_space" != x; then 29049 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29050 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29051 fi 29052 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 29053 fi 29054 fi 29055 29056 # Now new_path has a complete unix path to the binary 29057 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29058 # Keep paths in /bin as-is, but remove trailing .exe if any 29059 new_path="${new_path/%.exe/}" 29060 # Do not save /bin paths to all_fixpath_prefixes! 29061 else 29062 # Not in mixed or Windows style, start by that. 29063 new_path=`cmd //c echo $new_path` 29064 29065 input_path="$new_path" 29066 # Check if we need to convert this using DOS-style short mode. If the path 29067 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29068 # take no chances and rewrite it. 29069 # Note: m4 eats our [], so we need to use [ and ] instead. 29070 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29071 if test "x$has_forbidden_chars" != x; then 29072 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29073 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29074 fi 29075 29076 # Output is in $new_path 29077 29078 windows_path="$new_path" 29079 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29080 unix_path=`$CYGPATH -u "$windows_path"` 29081 new_path="$unix_path" 29082 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29083 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29084 new_path="$unix_path" 29085 fi 29086 29087 # remove trailing .exe if any 29088 new_path="${new_path/%.exe/}" 29089 29090 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29091 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29092 fi 29093 29094 else 29095 # We're on a posix platform. Hooray! :) 29096 # First separate the path from the arguments. This will split at the first 29097 # space. 29098 complete="$BUILD_LD" 29099 path="${complete%% *}" 29100 tmp="$complete EOL" 29101 arguments="${tmp#* }" 29102 29103 # Cannot rely on the command "which" here since it doesn't always work. 29104 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29105 if test -z "$is_absolute_path"; then 29106 # Path to executable is not absolute. Find it. 29107 IFS_save="$IFS" 29108 IFS=: 29109 for p in $PATH; do 29110 if test -f "$p/$path" && test -x "$p/$path"; then 29111 new_path="$p/$path" 29112 break 29113 fi 29114 done 29115 IFS="$IFS_save" 29116 else 29117 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving BUILD_LD (as $path) failed, using $path directly." >&5 29118 $as_echo "$as_me: Resolving BUILD_LD (as $path) failed, using $path directly." >&6;} 29119 new_path="$path" 29120 fi 29121 29122 if test "x$new_path" = x; then 29123 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 29124 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 29125 has_space=`$ECHO "$complete" | $GREP " "` 29126 if test "x$has_space" != x; then 29127 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29128 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29129 fi 29130 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 29131 fi 29132 fi 29133 29134 # Now join together the path and the arguments once again 29135 if test "x$arguments" != xEOL; then 29136 new_complete="$new_path ${arguments% *}" 29137 else 29138 new_complete="$new_path" 29139 fi 29140 29141 if test "x$complete" != "x$new_complete"; then 29142 BUILD_LD="$new_complete" 29143 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 29144 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 29145 fi 29146 29147 fi 29148 29149 29150 29151 29152 # If a devkit is found on the builddeps server, then prepend its path to the 29153 # PATH variable. If there are cross compilers available in the devkit, these 29154 # will be found by AC_PROG_CC et al. 29155 DEVKIT= 29156 29157 29158 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 29159 # Source the builddeps file again, to make sure it uses the latest variables! 29160 . $builddepsfile 29161 # Look for a target and build machine specific resource! 29162 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 29163 if test "x$resource" = x; then 29164 # Ok, lets instead look for a target specific resource 29165 eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}} 29166 fi 29167 if test "x$resource" = x; then 29168 # Ok, lets instead look for a build specific resource 29169 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 29170 fi 29171 if test "x$resource" = x; then 29172 # Ok, lets instead look for a generic resource 29173 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 29174 resource=${builddep_devkit} 29175 fi 29176 if test "x$resource" != x; then 29177 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 29178 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 29179 # If the resource in the builddeps.conf file is an existing directory, 29180 # for example /java/linux/cups 29181 if test -d ${resource}; then 29182 depdir=${resource} 29183 else 29184 29185 # devkit is for example mymodule 29186 # $resource is for example libs/general/libmymod_1_2_3.zip 29187 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 29188 # $with_builddeps_dir is for example /localhome/builddeps 29189 # depdir is the name of the variable into which we store the depdir, eg MYMOD 29190 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 29191 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 29192 filename=`basename $resource` 29193 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 29194 filebase=${filename%%.*} 29195 extension=${filename#*.} 29196 installdir=$with_builddeps_dir/$filebase 29197 if test ! -f $installdir/$filename.unpacked; then 29198 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 29199 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 29200 if test ! -d $installdir; then 29201 mkdir -p $installdir 29202 fi 29203 if test ! -d $installdir; then 29204 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 29205 fi 29206 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 29207 touch $tmpfile 29208 if test ! -f $tmpfile; then 29209 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 29210 fi 29211 29212 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 29213 # $tmpfile is the local file name for the downloaded file. 29214 VALID_TOOL=no 29215 if test "x$BDEPS_FTP" = xwget; then 29216 VALID_TOOL=yes 29217 wget -O $tmpfile $with_builddeps_server/$resource 29218 fi 29219 if test "x$BDEPS_FTP" = xlftp; then 29220 VALID_TOOL=yes 29221 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 29222 fi 29223 if test "x$BDEPS_FTP" = xftp; then 29224 VALID_TOOL=yes 29225 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 29226 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 29227 FTPUSERPWD=${FTPSERVER%%@*} 29228 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 29229 FTPUSER=${userpwd%%:*} 29230 FTPPWD=${userpwd#*@} 29231 FTPSERVER=${FTPSERVER#*@} 29232 else 29233 FTPUSER=ftp 29234 FTPPWD=ftp 29235 fi 29236 # the "pass" command does not work on some 29237 # ftp clients (read ftp.exe) but if it works, 29238 # passive mode is better! 29239 ( \ 29240 echo "user $FTPUSER $FTPPWD" ; \ 29241 echo "pass" ; \ 29242 echo "bin" ; \ 29243 echo "get $FTPPATH $tmpfile" ; \ 29244 ) | ftp -in $FTPSERVER 29245 fi 29246 if test "x$VALID_TOOL" != xyes; then 29247 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 29248 fi 29249 29250 mv $tmpfile $installdir/$filename 29251 if test ! -s $installdir/$filename; then 29252 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 29253 fi 29254 case "$extension" in 29255 zip) echo "Unzipping $installdir/$filename..." 29256 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 29257 ;; 29258 tar.gz) echo "Untaring $installdir/$filename..." 29259 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 29260 ;; 29261 tgz) echo "Untaring $installdir/$filename..." 29262 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 29263 ;; 29264 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 29265 ;; 29266 esac 29267 fi 29268 if test -f $installdir/$filename.unpacked; then 29269 depdir=$installdir 29270 fi 29271 29272 fi 29273 # Source the builddeps file again, because in the previous command, the depdir 29274 # was updated to point at the current build dependency install directory. 29275 . $builddepsfile 29276 # Now extract variables from the builddeps.conf files. 29277 theroot=${builddep_devkit_ROOT} 29278 thecflags=${builddep_devkit_CFLAGS} 29279 thelibs=${builddep_devkit_LIBS} 29280 if test "x$depdir" = x; then 29281 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 29282 fi 29283 DEVKIT=$depdir 29284 if test "x$theroot" != x; then 29285 DEVKIT="$theroot" 29286 fi 29287 if test "x$thecflags" != x; then 29288 DEVKIT_CFLAGS="$thecflags" 29289 fi 29290 if test "x$thelibs" != x; then 29291 DEVKIT_LIBS="$thelibs" 29292 fi 29293 29294 # Found devkit 29295 PATH="$DEVKIT/bin:$PATH" 29296 SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root" 29297 if test "x$x_includes" = "xNONE"; then 29298 x_includes="$SYS_ROOT/usr/include/X11" 29299 fi 29300 if test "x$x_libraries" = "xNONE"; then 29301 x_libraries="$SYS_ROOT/usr/lib" 29302 fi 29303 29304 29305 fi 29306 29307 fi 29308 29309 29310 # Store the CFLAGS etal passed to the configure script. 29311 ORG_CFLAGS="$CFLAGS" 29312 ORG_CXXFLAGS="$CXXFLAGS" 29313 ORG_OBJCFLAGS="$OBJCFLAGS" 29314 29315 # autoconf magic only relies on PATH, so update it if tools dir is specified 29316 OLD_PATH="$PATH" 29317 if test "x$TOOLS_DIR" != x; then 29318 PATH=$TOOLS_DIR:$PATH 29319 fi 29320 29321 29322 ### Locate C compiler (CC) 29323 29324 # On windows, only cl.exe is supported. 29325 # On Solaris, cc is preferred to gcc. 29326 # Elsewhere, gcc is preferred to cc. 29327 29328 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 29329 COMPILER_CHECK_LIST="cl" 29330 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 29331 COMPILER_CHECK_LIST="cc gcc" 29332 elif test "x$OPENJDK_TARGET_OS" = "xaix"; then 29333 # Do not probe for cc on AIX. 29334 COMPILER_CHECK_LIST="xlc_r" 29335 else 29336 COMPILER_CHECK_LIST="gcc cc" 29337 fi 29338 29339 29340 COMPILER_NAME=C 29341 SEARCH_LIST="$COMPILER_CHECK_LIST" 29342 29343 if test "x$CC" != x; then 29344 # User has supplied compiler name already, always let that override. 29345 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 29346 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 29347 if test "x`basename $CC`" = "x$CC"; then 29348 # A command without a complete path is provided, search $PATH. 29349 29350 for ac_prog in $CC 29351 do 29352 # Extract the first word of "$ac_prog", so it can be a program name with args. 29353 set dummy $ac_prog; ac_word=$2 29354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29355 $as_echo_n "checking for $ac_word... " >&6; } 29356 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 29357 $as_echo_n "(cached) " >&6 29358 else 29359 case $POTENTIAL_CC in 29360 [\\/]* | ?:[\\/]*) 29361 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 29362 ;; 29363 *) 29364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29365 for as_dir in $PATH 29366 do 29367 IFS=$as_save_IFS 29368 test -z "$as_dir" && as_dir=. 29369 for ac_exec_ext in '' $ac_executable_extensions; do 29370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29371 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 29372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29373 break 2 29374 fi 29375 done 29376 done 29377 IFS=$as_save_IFS 29378 29379 ;; 29380 esac 29381 fi 29382 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 29383 if test -n "$POTENTIAL_CC"; then 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 29385 $as_echo "$POTENTIAL_CC" >&6; } 29386 else 29387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29388 $as_echo "no" >&6; } 29389 fi 29390 29391 29392 test -n "$POTENTIAL_CC" && break 29393 done 29394 29395 if test "x$POTENTIAL_CC" != x; then 29396 CC=$POTENTIAL_CC 29397 else 29398 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 29399 fi 29400 else 29401 # Otherwise it might already be a complete path 29402 if test ! -x "$CC"; then 29403 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 29404 fi 29405 fi 29406 else 29407 # No user supplied value. Locate compiler ourselves 29408 CC= 29409 # If TOOLS_DIR is set, check for all compiler names in there first 29410 # before checking the rest of the PATH. 29411 if test -n "$TOOLS_DIR"; then 29412 PATH_save="$PATH" 29413 PATH="$TOOLS_DIR" 29414 for ac_prog in $SEARCH_LIST 29415 do 29416 # Extract the first word of "$ac_prog", so it can be a program name with args. 29417 set dummy $ac_prog; ac_word=$2 29418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29419 $as_echo_n "checking for $ac_word... " >&6; } 29420 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then : 29421 $as_echo_n "(cached) " >&6 29422 else 29423 case $TOOLS_DIR_CC in 29424 [\\/]* | ?:[\\/]*) 29425 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path. 29426 ;; 29427 *) 29428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29429 for as_dir in $PATH 29430 do 29431 IFS=$as_save_IFS 29432 test -z "$as_dir" && as_dir=. 29433 for ac_exec_ext in '' $ac_executable_extensions; do 29434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29435 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext" 29436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29437 break 2 29438 fi 29439 done 29440 done 29441 IFS=$as_save_IFS 29442 29443 ;; 29444 esac 29445 fi 29446 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC 29447 if test -n "$TOOLS_DIR_CC"; then 29448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5 29449 $as_echo "$TOOLS_DIR_CC" >&6; } 29450 else 29451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29452 $as_echo "no" >&6; } 29453 fi 29454 29455 29456 test -n "$TOOLS_DIR_CC" && break 29457 done 29458 29459 CC=$TOOLS_DIR_CC 29460 PATH="$PATH_save" 29461 fi 29462 29463 # AC_PATH_PROGS can't be run multiple times with the same variable, 29464 # so create a new name for this run. 29465 if test "x$CC" = x; then 29466 for ac_prog in $SEARCH_LIST 29467 do 29468 # Extract the first word of "$ac_prog", so it can be a program name with args. 29469 set dummy $ac_prog; ac_word=$2 29470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29471 $as_echo_n "checking for $ac_word... " >&6; } 29472 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 29473 $as_echo_n "(cached) " >&6 29474 else 29475 case $POTENTIAL_CC in 29476 [\\/]* | ?:[\\/]*) 29477 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 29478 ;; 29479 *) 29480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29481 for as_dir in $PATH 29482 do 29483 IFS=$as_save_IFS 29484 test -z "$as_dir" && as_dir=. 29485 for ac_exec_ext in '' $ac_executable_extensions; do 29486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29487 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 29488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29489 break 2 29490 fi 29491 done 29492 done 29493 IFS=$as_save_IFS 29494 29495 ;; 29496 esac 29497 fi 29498 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 29499 if test -n "$POTENTIAL_CC"; then 29500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 29501 $as_echo "$POTENTIAL_CC" >&6; } 29502 else 29503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29504 $as_echo "no" >&6; } 29505 fi 29506 29507 29508 test -n "$POTENTIAL_CC" && break 29509 done 29510 29511 CC=$POTENTIAL_CC 29512 fi 29513 29514 if test "x$CC" = x; then 29515 29516 # Print a helpful message on how to acquire the necessary build dependency. 29517 # devkit is the help tag: freetype, cups, pulse, alsa etc 29518 MISSING_DEPENDENCY=devkit 29519 29520 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29521 cygwin_help $MISSING_DEPENDENCY 29522 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29523 msys_help $MISSING_DEPENDENCY 29524 else 29525 PKGHANDLER_COMMAND= 29526 29527 case $PKGHANDLER in 29528 apt-get) 29529 apt_help $MISSING_DEPENDENCY ;; 29530 yum) 29531 yum_help $MISSING_DEPENDENCY ;; 29532 port) 29533 port_help $MISSING_DEPENDENCY ;; 29534 pkgutil) 29535 pkgutil_help $MISSING_DEPENDENCY ;; 29536 pkgadd) 29537 pkgadd_help $MISSING_DEPENDENCY ;; 29538 esac 29539 29540 if test "x$PKGHANDLER_COMMAND" != x; then 29541 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29542 fi 29543 fi 29544 29545 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29546 fi 29547 fi 29548 29549 # Now we have a compiler binary in CC. Make sure it's okay. 29550 29551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29552 29553 # First separate the path from the arguments. This will split at the first 29554 # space. 29555 complete="$CC" 29556 path="${complete%% *}" 29557 tmp="$complete EOL" 29558 arguments="${tmp#* }" 29559 29560 # Input might be given as Windows format, start by converting to 29561 # unix format. 29562 new_path=`$CYGPATH -u "$path"` 29563 29564 # Now try to locate executable using which 29565 new_path=`$WHICH "$new_path" 2> /dev/null` 29566 # bat and cmd files are not always considered executable in cygwin causing which 29567 # to not find them 29568 if test "x$new_path" = x \ 29569 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29570 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29571 new_path=`$CYGPATH -u "$path"` 29572 fi 29573 if test "x$new_path" = x; then 29574 # Oops. Which didn't find the executable. 29575 # The splitting of arguments from the executable at a space might have been incorrect, 29576 # since paths with space are more likely in Windows. Give it another try with the whole 29577 # argument. 29578 path="$complete" 29579 arguments="EOL" 29580 new_path=`$CYGPATH -u "$path"` 29581 new_path=`$WHICH "$new_path" 2> /dev/null` 29582 # bat and cmd files are not always considered executable in cygwin causing which 29583 # to not find them 29584 if test "x$new_path" = x \ 29585 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29586 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29587 new_path=`$CYGPATH -u "$path"` 29588 fi 29589 if test "x$new_path" = x; then 29590 # It's still not found. Now this is an unrecoverable error. 29591 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 29592 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 29593 has_space=`$ECHO "$complete" | $GREP " "` 29594 if test "x$has_space" != x; then 29595 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29596 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29597 fi 29598 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29599 fi 29600 fi 29601 29602 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29603 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29604 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29605 # "foo.exe" is OK but "foo" is an error. 29606 # 29607 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29608 # It is also a way to make sure we got the proper file name for the real test later on. 29609 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29610 if test "x$test_shortpath" = x; then 29611 # Short path failed, file does not exist as specified. 29612 # Try adding .exe or .cmd 29613 if test -f "${new_path}.exe"; then 29614 input_to_shortpath="${new_path}.exe" 29615 elif test -f "${new_path}.cmd"; then 29616 input_to_shortpath="${new_path}.cmd" 29617 else 29618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 29619 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 29620 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29621 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29622 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29623 fi 29624 else 29625 input_to_shortpath="$new_path" 29626 fi 29627 29628 # Call helper function which possibly converts this using DOS-style short mode. 29629 # If so, the updated path is stored in $new_path. 29630 new_path="$input_to_shortpath" 29631 29632 input_path="$input_to_shortpath" 29633 # Check if we need to convert this using DOS-style short mode. If the path 29634 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29635 # take no chances and rewrite it. 29636 # Note: m4 eats our [], so we need to use [ and ] instead. 29637 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29638 if test "x$has_forbidden_chars" != x; then 29639 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29640 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29641 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29642 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29643 # Going to short mode and back again did indeed matter. Since short mode is 29644 # case insensitive, let's make it lowercase to improve readability. 29645 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29646 # Now convert it back to Unix-stile (cygpath) 29647 input_path=`$CYGPATH -u "$shortmode_path"` 29648 new_path="$input_path" 29649 fi 29650 fi 29651 29652 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29653 if test "x$test_cygdrive_prefix" = x; then 29654 # As a simple fix, exclude /usr/bin since it's not a real path. 29655 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29656 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29657 # a path prefixed by /cygdrive for fixpath to work. 29658 new_path="$CYGWIN_ROOT_PATH$input_path" 29659 fi 29660 fi 29661 29662 # remove trailing .exe if any 29663 new_path="${new_path/%.exe/}" 29664 29665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29666 29667 # First separate the path from the arguments. This will split at the first 29668 # space. 29669 complete="$CC" 29670 path="${complete%% *}" 29671 tmp="$complete EOL" 29672 arguments="${tmp#* }" 29673 29674 # Input might be given as Windows format, start by converting to 29675 # unix format. 29676 new_path="$path" 29677 29678 windows_path="$new_path" 29679 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29680 unix_path=`$CYGPATH -u "$windows_path"` 29681 new_path="$unix_path" 29682 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29683 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29684 new_path="$unix_path" 29685 fi 29686 29687 29688 # Now try to locate executable using which 29689 new_path=`$WHICH "$new_path" 2> /dev/null` 29690 29691 if test "x$new_path" = x; then 29692 # Oops. Which didn't find the executable. 29693 # The splitting of arguments from the executable at a space might have been incorrect, 29694 # since paths with space are more likely in Windows. Give it another try with the whole 29695 # argument. 29696 path="$complete" 29697 arguments="EOL" 29698 new_path="$path" 29699 29700 windows_path="$new_path" 29701 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29702 unix_path=`$CYGPATH -u "$windows_path"` 29703 new_path="$unix_path" 29704 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29705 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29706 new_path="$unix_path" 29707 fi 29708 29709 29710 new_path=`$WHICH "$new_path" 2> /dev/null` 29711 29712 if test "x$new_path" = x; then 29713 # It's still not found. Now this is an unrecoverable error. 29714 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 29715 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 29716 has_space=`$ECHO "$complete" | $GREP " "` 29717 if test "x$has_space" != x; then 29718 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29719 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29720 fi 29721 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29722 fi 29723 fi 29724 29725 # Now new_path has a complete unix path to the binary 29726 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29727 # Keep paths in /bin as-is, but remove trailing .exe if any 29728 new_path="${new_path/%.exe/}" 29729 # Do not save /bin paths to all_fixpath_prefixes! 29730 else 29731 # Not in mixed or Windows style, start by that. 29732 new_path=`cmd //c echo $new_path` 29733 29734 input_path="$new_path" 29735 # Check if we need to convert this using DOS-style short mode. If the path 29736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29737 # take no chances and rewrite it. 29738 # Note: m4 eats our [], so we need to use [ and ] instead. 29739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29740 if test "x$has_forbidden_chars" != x; then 29741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29742 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29743 fi 29744 29745 # Output is in $new_path 29746 29747 windows_path="$new_path" 29748 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29749 unix_path=`$CYGPATH -u "$windows_path"` 29750 new_path="$unix_path" 29751 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29752 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29753 new_path="$unix_path" 29754 fi 29755 29756 # remove trailing .exe if any 29757 new_path="${new_path/%.exe/}" 29758 29759 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29760 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29761 fi 29762 29763 else 29764 # We're on a posix platform. Hooray! :) 29765 # First separate the path from the arguments. This will split at the first 29766 # space. 29767 complete="$CC" 29768 path="${complete%% *}" 29769 tmp="$complete EOL" 29770 arguments="${tmp#* }" 29771 29772 # Cannot rely on the command "which" here since it doesn't always work. 29773 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29774 if test -z "$is_absolute_path"; then 29775 # Path to executable is not absolute. Find it. 29776 IFS_save="$IFS" 29777 IFS=: 29778 for p in $PATH; do 29779 if test -f "$p/$path" && test -x "$p/$path"; then 29780 new_path="$p/$path" 29781 break 29782 fi 29783 done 29784 IFS="$IFS_save" 29785 else 29786 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CC (as $path) failed, using $path directly." >&5 29787 $as_echo "$as_me: Resolving CC (as $path) failed, using $path directly." >&6;} 29788 new_path="$path" 29789 fi 29790 29791 if test "x$new_path" = x; then 29792 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 29793 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 29794 has_space=`$ECHO "$complete" | $GREP " "` 29795 if test "x$has_space" != x; then 29796 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29797 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29798 fi 29799 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 29800 fi 29801 fi 29802 29803 # Now join together the path and the arguments once again 29804 if test "x$arguments" != xEOL; then 29805 new_complete="$new_path ${arguments% *}" 29806 else 29807 new_complete="$new_path" 29808 fi 29809 29810 if test "x$complete" != "x$new_complete"; then 29811 CC="$new_complete" 29812 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 29813 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 29814 fi 29815 29816 TEST_COMPILER="$CC" 29817 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29818 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29819 if test "x$OPENJDK_BUILD_OS" != xaix; then 29820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 29821 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 29822 29823 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29824 # Follow a chain of symbolic links. Use readlink 29825 # where it exists, else fall back to horribly 29826 # complicated shell code. 29827 if test "x$READLINK_TESTED" != yes; then 29828 # On MacOSX there is a readlink tool with a different 29829 # purpose than the GNU readlink tool. Check the found readlink. 29830 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29831 if test "x$ISGNU" = x; then 29832 # A readlink that we do not know how to use. 29833 # Are there other non-GNU readlinks out there? 29834 READLINK_TESTED=yes 29835 READLINK= 29836 fi 29837 fi 29838 29839 if test "x$READLINK" != x; then 29840 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29841 else 29842 # Save the current directory for restoring afterwards 29843 STARTDIR=$PWD 29844 COUNTER=0 29845 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29846 sym_link_file=`$BASENAME $TEST_COMPILER` 29847 cd $sym_link_dir 29848 # Use -P flag to resolve symlinks in directories. 29849 cd `$THEPWDCMD -P` 29850 sym_link_dir=`$THEPWDCMD -P` 29851 # Resolve file symlinks 29852 while test $COUNTER -lt 20; do 29853 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29854 if test "x$ISLINK" == x; then 29855 # This is not a symbolic link! We are done! 29856 break 29857 fi 29858 # Again resolve directory symlinks since the target of the just found 29859 # link could be in a different directory 29860 cd `$DIRNAME $ISLINK` 29861 sym_link_dir=`$THEPWDCMD -P` 29862 sym_link_file=`$BASENAME $ISLINK` 29863 let COUNTER=COUNTER+1 29864 done 29865 cd $STARTDIR 29866 TEST_COMPILER=$sym_link_dir/$sym_link_file 29867 fi 29868 fi 29869 29870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29871 $as_echo "$TEST_COMPILER" >&6; } 29872 fi 29873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 29874 $as_echo_n "checking if CC is disguised ccache... " >&6; } 29875 29876 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29877 if test "x$COMPILER_BASENAME" = "xccache"; then 29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29879 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29880 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29881 # We want to control ccache invocation ourselves, so ignore this cc and try 29882 # searching again. 29883 29884 # Remove the path to the fake ccache cc from the PATH 29885 RETRY_COMPILER_SAVED_PATH="$PATH" 29886 COMPILER_DIRNAME=`$DIRNAME $CC` 29887 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29888 29889 # Try again looking for our compiler 29890 if test -n "$ac_tool_prefix"; then 29891 for ac_prog in $COMPILER_CHECK_LIST 29892 do 29893 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29894 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29896 $as_echo_n "checking for $ac_word... " >&6; } 29897 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 29898 $as_echo_n "(cached) " >&6 29899 else 29900 if test -n "$PROPER_COMPILER_CC"; then 29901 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 29902 else 29903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29904 for as_dir in $PATH 29905 do 29906 IFS=$as_save_IFS 29907 test -z "$as_dir" && as_dir=. 29908 for ac_exec_ext in '' $ac_executable_extensions; do 29909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29910 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 29911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29912 break 2 29913 fi 29914 done 29915 done 29916 IFS=$as_save_IFS 29917 29918 fi 29919 fi 29920 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 29921 if test -n "$PROPER_COMPILER_CC"; then 29922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 29923 $as_echo "$PROPER_COMPILER_CC" >&6; } 29924 else 29925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29926 $as_echo "no" >&6; } 29927 fi 29928 29929 29930 test -n "$PROPER_COMPILER_CC" && break 29931 done 29932 fi 29933 if test -z "$PROPER_COMPILER_CC"; then 29934 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 29935 for ac_prog in $COMPILER_CHECK_LIST 29936 do 29937 # Extract the first word of "$ac_prog", so it can be a program name with args. 29938 set dummy $ac_prog; ac_word=$2 29939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29940 $as_echo_n "checking for $ac_word... " >&6; } 29941 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 29942 $as_echo_n "(cached) " >&6 29943 else 29944 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 29945 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 29946 else 29947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29948 for as_dir in $PATH 29949 do 29950 IFS=$as_save_IFS 29951 test -z "$as_dir" && as_dir=. 29952 for ac_exec_ext in '' $ac_executable_extensions; do 29953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29954 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 29955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29956 break 2 29957 fi 29958 done 29959 done 29960 IFS=$as_save_IFS 29961 29962 fi 29963 fi 29964 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 29965 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 29966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 29967 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 29968 else 29969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29970 $as_echo "no" >&6; } 29971 fi 29972 29973 29974 test -n "$ac_ct_PROPER_COMPILER_CC" && break 29975 done 29976 29977 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 29978 PROPER_COMPILER_CC="" 29979 else 29980 case $cross_compiling:$ac_tool_warned in 29981 yes:) 29982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29983 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29984 ac_tool_warned=yes ;; 29985 esac 29986 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 29987 fi 29988 fi 29989 29990 29991 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29992 29993 # First separate the path from the arguments. This will split at the first 29994 # space. 29995 complete="$PROPER_COMPILER_CC" 29996 path="${complete%% *}" 29997 tmp="$complete EOL" 29998 arguments="${tmp#* }" 29999 30000 # Input might be given as Windows format, start by converting to 30001 # unix format. 30002 new_path=`$CYGPATH -u "$path"` 30003 30004 # Now try to locate executable using which 30005 new_path=`$WHICH "$new_path" 2> /dev/null` 30006 # bat and cmd files are not always considered executable in cygwin causing which 30007 # to not find them 30008 if test "x$new_path" = x \ 30009 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30010 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30011 new_path=`$CYGPATH -u "$path"` 30012 fi 30013 if test "x$new_path" = x; then 30014 # Oops. Which didn't find the executable. 30015 # The splitting of arguments from the executable at a space might have been incorrect, 30016 # since paths with space are more likely in Windows. Give it another try with the whole 30017 # argument. 30018 path="$complete" 30019 arguments="EOL" 30020 new_path=`$CYGPATH -u "$path"` 30021 new_path=`$WHICH "$new_path" 2> /dev/null` 30022 # bat and cmd files are not always considered executable in cygwin causing which 30023 # to not find them 30024 if test "x$new_path" = x \ 30025 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30026 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30027 new_path=`$CYGPATH -u "$path"` 30028 fi 30029 if test "x$new_path" = x; then 30030 # It's still not found. Now this is an unrecoverable error. 30031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 30032 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 30033 has_space=`$ECHO "$complete" | $GREP " "` 30034 if test "x$has_space" != x; then 30035 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30036 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30037 fi 30038 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 30039 fi 30040 fi 30041 30042 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30043 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30044 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30045 # "foo.exe" is OK but "foo" is an error. 30046 # 30047 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30048 # It is also a way to make sure we got the proper file name for the real test later on. 30049 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30050 if test "x$test_shortpath" = x; then 30051 # Short path failed, file does not exist as specified. 30052 # Try adding .exe or .cmd 30053 if test -f "${new_path}.exe"; then 30054 input_to_shortpath="${new_path}.exe" 30055 elif test -f "${new_path}.cmd"; then 30056 input_to_shortpath="${new_path}.cmd" 30057 else 30058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 30059 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 30060 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30061 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30062 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 30063 fi 30064 else 30065 input_to_shortpath="$new_path" 30066 fi 30067 30068 # Call helper function which possibly converts this using DOS-style short mode. 30069 # If so, the updated path is stored in $new_path. 30070 new_path="$input_to_shortpath" 30071 30072 input_path="$input_to_shortpath" 30073 # Check if we need to convert this using DOS-style short mode. If the path 30074 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30075 # take no chances and rewrite it. 30076 # Note: m4 eats our [], so we need to use [ and ] instead. 30077 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30078 if test "x$has_forbidden_chars" != x; then 30079 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30080 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30081 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30082 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30083 # Going to short mode and back again did indeed matter. Since short mode is 30084 # case insensitive, let's make it lowercase to improve readability. 30085 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30086 # Now convert it back to Unix-stile (cygpath) 30087 input_path=`$CYGPATH -u "$shortmode_path"` 30088 new_path="$input_path" 30089 fi 30090 fi 30091 30092 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30093 if test "x$test_cygdrive_prefix" = x; then 30094 # As a simple fix, exclude /usr/bin since it's not a real path. 30095 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30096 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30097 # a path prefixed by /cygdrive for fixpath to work. 30098 new_path="$CYGWIN_ROOT_PATH$input_path" 30099 fi 30100 fi 30101 30102 # remove trailing .exe if any 30103 new_path="${new_path/%.exe/}" 30104 30105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30106 30107 # First separate the path from the arguments. This will split at the first 30108 # space. 30109 complete="$PROPER_COMPILER_CC" 30110 path="${complete%% *}" 30111 tmp="$complete EOL" 30112 arguments="${tmp#* }" 30113 30114 # Input might be given as Windows format, start by converting to 30115 # unix format. 30116 new_path="$path" 30117 30118 windows_path="$new_path" 30119 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30120 unix_path=`$CYGPATH -u "$windows_path"` 30121 new_path="$unix_path" 30122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30123 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30124 new_path="$unix_path" 30125 fi 30126 30127 30128 # Now try to locate executable using which 30129 new_path=`$WHICH "$new_path" 2> /dev/null` 30130 30131 if test "x$new_path" = x; then 30132 # Oops. Which didn't find the executable. 30133 # The splitting of arguments from the executable at a space might have been incorrect, 30134 # since paths with space are more likely in Windows. Give it another try with the whole 30135 # argument. 30136 path="$complete" 30137 arguments="EOL" 30138 new_path="$path" 30139 30140 windows_path="$new_path" 30141 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30142 unix_path=`$CYGPATH -u "$windows_path"` 30143 new_path="$unix_path" 30144 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30145 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30146 new_path="$unix_path" 30147 fi 30148 30149 30150 new_path=`$WHICH "$new_path" 2> /dev/null` 30151 30152 if test "x$new_path" = x; then 30153 # It's still not found. Now this is an unrecoverable error. 30154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 30155 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 30156 has_space=`$ECHO "$complete" | $GREP " "` 30157 if test "x$has_space" != x; then 30158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30160 fi 30161 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 30162 fi 30163 fi 30164 30165 # Now new_path has a complete unix path to the binary 30166 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30167 # Keep paths in /bin as-is, but remove trailing .exe if any 30168 new_path="${new_path/%.exe/}" 30169 # Do not save /bin paths to all_fixpath_prefixes! 30170 else 30171 # Not in mixed or Windows style, start by that. 30172 new_path=`cmd //c echo $new_path` 30173 30174 input_path="$new_path" 30175 # Check if we need to convert this using DOS-style short mode. If the path 30176 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30177 # take no chances and rewrite it. 30178 # Note: m4 eats our [], so we need to use [ and ] instead. 30179 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30180 if test "x$has_forbidden_chars" != x; then 30181 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30182 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30183 fi 30184 30185 # Output is in $new_path 30186 30187 windows_path="$new_path" 30188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30189 unix_path=`$CYGPATH -u "$windows_path"` 30190 new_path="$unix_path" 30191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30193 new_path="$unix_path" 30194 fi 30195 30196 # remove trailing .exe if any 30197 new_path="${new_path/%.exe/}" 30198 30199 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30200 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30201 fi 30202 30203 else 30204 # We're on a posix platform. Hooray! :) 30205 # First separate the path from the arguments. This will split at the first 30206 # space. 30207 complete="$PROPER_COMPILER_CC" 30208 path="${complete%% *}" 30209 tmp="$complete EOL" 30210 arguments="${tmp#* }" 30211 30212 # Cannot rely on the command "which" here since it doesn't always work. 30213 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30214 if test -z "$is_absolute_path"; then 30215 # Path to executable is not absolute. Find it. 30216 IFS_save="$IFS" 30217 IFS=: 30218 for p in $PATH; do 30219 if test -f "$p/$path" && test -x "$p/$path"; then 30220 new_path="$p/$path" 30221 break 30222 fi 30223 done 30224 IFS="$IFS_save" 30225 else 30226 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&5 30227 $as_echo "$as_me: Resolving PROPER_COMPILER_CC (as $path) failed, using $path directly." >&6;} 30228 new_path="$path" 30229 fi 30230 30231 if test "x$new_path" = x; then 30232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 30233 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 30234 has_space=`$ECHO "$complete" | $GREP " "` 30235 if test "x$has_space" != x; then 30236 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30237 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30238 fi 30239 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 30240 fi 30241 fi 30242 30243 # Now join together the path and the arguments once again 30244 if test "x$arguments" != xEOL; then 30245 new_complete="$new_path ${arguments% *}" 30246 else 30247 new_complete="$new_path" 30248 fi 30249 30250 if test "x$complete" != "x$new_complete"; then 30251 PROPER_COMPILER_CC="$new_complete" 30252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 30253 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 30254 fi 30255 30256 PATH="$RETRY_COMPILER_SAVED_PATH" 30257 30258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 30259 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 30260 30261 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30262 # Follow a chain of symbolic links. Use readlink 30263 # where it exists, else fall back to horribly 30264 # complicated shell code. 30265 if test "x$READLINK_TESTED" != yes; then 30266 # On MacOSX there is a readlink tool with a different 30267 # purpose than the GNU readlink tool. Check the found readlink. 30268 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30269 if test "x$ISGNU" = x; then 30270 # A readlink that we do not know how to use. 30271 # Are there other non-GNU readlinks out there? 30272 READLINK_TESTED=yes 30273 READLINK= 30274 fi 30275 fi 30276 30277 if test "x$READLINK" != x; then 30278 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 30279 else 30280 # Save the current directory for restoring afterwards 30281 STARTDIR=$PWD 30282 COUNTER=0 30283 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 30284 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 30285 cd $sym_link_dir 30286 # Use -P flag to resolve symlinks in directories. 30287 cd `$THEPWDCMD -P` 30288 sym_link_dir=`$THEPWDCMD -P` 30289 # Resolve file symlinks 30290 while test $COUNTER -lt 20; do 30291 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30292 if test "x$ISLINK" == x; then 30293 # This is not a symbolic link! We are done! 30294 break 30295 fi 30296 # Again resolve directory symlinks since the target of the just found 30297 # link could be in a different directory 30298 cd `$DIRNAME $ISLINK` 30299 sym_link_dir=`$THEPWDCMD -P` 30300 sym_link_file=`$BASENAME $ISLINK` 30301 let COUNTER=COUNTER+1 30302 done 30303 cd $STARTDIR 30304 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 30305 fi 30306 fi 30307 30308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 30309 $as_echo "$PROPER_COMPILER_CC" >&6; } 30310 CC="$PROPER_COMPILER_CC" 30311 else 30312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 30313 $as_echo "no, keeping CC" >&6; } 30314 fi 30315 30316 30317 COMPILER=$CC 30318 COMPILER_NAME=$COMPILER_NAME 30319 30320 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 30321 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work 30322 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1` 30323 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30324 if test $? -ne 0; then 30325 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 30326 30327 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5 30328 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;} 30329 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5 30330 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;} 30331 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30332 else 30333 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"` 30334 COMPILER_VENDOR="Sun Studio" 30335 fi 30336 elif test "x$OPENJDK_TARGET_OS" = xaix; then 30337 COMPILER_VERSION_TEST=`$COMPILER -qversion 2>&1 | $TAIL -n 1` 30338 $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null 30339 if test $? -ne 0; then 30340 as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5 30341 else 30342 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'` 30343 COMPILER_VENDOR='IBM' 30344 fi 30345 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 30346 # First line typically looks something like: 30347 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30348 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30349 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"` 30350 COMPILER_VENDOR="Microsoft CL.EXE" 30351 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"` 30352 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 30353 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 30354 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 30355 fi 30356 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 30357 if test "x$COMPILER_CPU_TEST" != "xx64"; then 30358 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 30359 fi 30360 fi 30361 else 30362 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 30363 # Check that this is likely to be GCC. 30364 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null 30365 if test $? -ne 0; then 30366 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 30367 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} 30368 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 30369 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} 30370 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30371 fi 30372 30373 # First line typically looks something like: 30374 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 30375 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` 30376 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` 30377 fi 30378 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) 30379 CC_VERSION="$COMPILER_VERSION" 30380 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) 30381 CC_VENDOR="$COMPILER_VENDOR" 30382 30383 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5 30384 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;} 30385 30386 30387 # Now that we have resolved CC ourself, let autoconf have its go at it 30388 ac_ext=c 30389 ac_cpp='$CPP $CPPFLAGS' 30390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30392 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30393 if test -n "$ac_tool_prefix"; then 30394 for ac_prog in $CC 30395 do 30396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30399 $as_echo_n "checking for $ac_word... " >&6; } 30400 if ${ac_cv_prog_CC+:} false; then : 30401 $as_echo_n "(cached) " >&6 30402 else 30403 if test -n "$CC"; then 30404 ac_cv_prog_CC="$CC" # Let the user override the test. 30405 else 30406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30407 for as_dir in $PATH 30408 do 30409 IFS=$as_save_IFS 30410 test -z "$as_dir" && as_dir=. 30411 for ac_exec_ext in '' $ac_executable_extensions; do 30412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 30414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30415 break 2 30416 fi 30417 done 30418 done 30419 IFS=$as_save_IFS 30420 30421 fi 30422 fi 30423 CC=$ac_cv_prog_CC 30424 if test -n "$CC"; then 30425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 30426 $as_echo "$CC" >&6; } 30427 else 30428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30429 $as_echo "no" >&6; } 30430 fi 30431 30432 30433 test -n "$CC" && break 30434 done 30435 fi 30436 if test -z "$CC"; then 30437 ac_ct_CC=$CC 30438 for ac_prog in $CC 30439 do 30440 # Extract the first word of "$ac_prog", so it can be a program name with args. 30441 set dummy $ac_prog; ac_word=$2 30442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30443 $as_echo_n "checking for $ac_word... " >&6; } 30444 if ${ac_cv_prog_ac_ct_CC+:} false; then : 30445 $as_echo_n "(cached) " >&6 30446 else 30447 if test -n "$ac_ct_CC"; then 30448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 30449 else 30450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30451 for as_dir in $PATH 30452 do 30453 IFS=$as_save_IFS 30454 test -z "$as_dir" && as_dir=. 30455 for ac_exec_ext in '' $ac_executable_extensions; do 30456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30457 ac_cv_prog_ac_ct_CC="$ac_prog" 30458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30459 break 2 30460 fi 30461 done 30462 done 30463 IFS=$as_save_IFS 30464 30465 fi 30466 fi 30467 ac_ct_CC=$ac_cv_prog_ac_ct_CC 30468 if test -n "$ac_ct_CC"; then 30469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 30470 $as_echo "$ac_ct_CC" >&6; } 30471 else 30472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30473 $as_echo "no" >&6; } 30474 fi 30475 30476 30477 test -n "$ac_ct_CC" && break 30478 done 30479 30480 if test "x$ac_ct_CC" = x; then 30481 CC="" 30482 else 30483 case $cross_compiling:$ac_tool_warned in 30484 yes:) 30485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30486 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30487 ac_tool_warned=yes ;; 30488 esac 30489 CC=$ac_ct_CC 30490 fi 30491 fi 30492 30493 30494 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30496 as_fn_error $? "no acceptable C compiler found in \$PATH 30497 See \`config.log' for more details" "$LINENO" 5; } 30498 30499 # Provide some information about the compiler. 30500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 30501 set X $ac_compile 30502 ac_compiler=$2 30503 for ac_option in --version -v -V -qversion; do 30504 { { ac_try="$ac_compiler $ac_option >&5" 30505 case "(($ac_try" in 30506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30507 *) ac_try_echo=$ac_try;; 30508 esac 30509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30510 $as_echo "$ac_try_echo"; } >&5 30511 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30512 ac_status=$? 30513 if test -s conftest.err; then 30514 sed '10a\ 30515 ... rest of stderr output deleted ... 30516 10q' conftest.err >conftest.er1 30517 cat conftest.er1 >&5 30518 fi 30519 rm -f conftest.er1 conftest.err 30520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30521 test $ac_status = 0; } 30522 done 30523 30524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30525 /* end confdefs.h. */ 30526 30527 int 30528 main () 30529 { 30530 30531 ; 30532 return 0; 30533 } 30534 _ACEOF 30535 ac_clean_files_save=$ac_clean_files 30536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 30537 # Try to create an executable without -o first, disregard a.out. 30538 # It will help us diagnose broken compilers, and finding out an intuition 30539 # of exeext. 30540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 30541 $as_echo_n "checking whether the C compiler works... " >&6; } 30542 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 30543 30544 # The possible output files: 30545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 30546 30547 ac_rmfiles= 30548 for ac_file in $ac_files 30549 do 30550 case $ac_file in 30551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 30552 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 30553 esac 30554 done 30555 rm -f $ac_rmfiles 30556 30557 if { { ac_try="$ac_link_default" 30558 case "(($ac_try" in 30559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30560 *) ac_try_echo=$ac_try;; 30561 esac 30562 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30563 $as_echo "$ac_try_echo"; } >&5 30564 (eval "$ac_link_default") 2>&5 30565 ac_status=$? 30566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30567 test $ac_status = 0; }; then : 30568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 30569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 30570 # in a Makefile. We should not override ac_cv_exeext if it was cached, 30571 # so that the user can short-circuit this test for compilers unknown to 30572 # Autoconf. 30573 for ac_file in $ac_files '' 30574 do 30575 test -f "$ac_file" || continue 30576 case $ac_file in 30577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 30578 ;; 30579 [ab].out ) 30580 # We found the default executable, but exeext='' is most 30581 # certainly right. 30582 break;; 30583 *.* ) 30584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 30585 then :; else 30586 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 30587 fi 30588 # We set ac_cv_exeext here because the later test for it is not 30589 # safe: cross compilers may not add the suffix if given an `-o' 30590 # argument, so we may need to know it at that point already. 30591 # Even if this section looks crufty: it has the advantage of 30592 # actually working. 30593 break;; 30594 * ) 30595 break;; 30596 esac 30597 done 30598 test "$ac_cv_exeext" = no && ac_cv_exeext= 30599 30600 else 30601 ac_file='' 30602 fi 30603 if test -z "$ac_file"; then : 30604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30605 $as_echo "no" >&6; } 30606 $as_echo "$as_me: failed program was:" >&5 30607 sed 's/^/| /' conftest.$ac_ext >&5 30608 30609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30611 as_fn_error 77 "C compiler cannot create executables 30612 See \`config.log' for more details" "$LINENO" 5; } 30613 else 30614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30615 $as_echo "yes" >&6; } 30616 fi 30617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 30618 $as_echo_n "checking for C compiler default output file name... " >&6; } 30619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 30620 $as_echo "$ac_file" >&6; } 30621 ac_exeext=$ac_cv_exeext 30622 30623 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 30624 ac_clean_files=$ac_clean_files_save 30625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 30626 $as_echo_n "checking for suffix of executables... " >&6; } 30627 if { { ac_try="$ac_link" 30628 case "(($ac_try" in 30629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30630 *) ac_try_echo=$ac_try;; 30631 esac 30632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30633 $as_echo "$ac_try_echo"; } >&5 30634 (eval "$ac_link") 2>&5 30635 ac_status=$? 30636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30637 test $ac_status = 0; }; then : 30638 # If both `conftest.exe' and `conftest' are `present' (well, observable) 30639 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 30640 # work properly (i.e., refer to `conftest.exe'), while it won't with 30641 # `rm'. 30642 for ac_file in conftest.exe conftest conftest.*; do 30643 test -f "$ac_file" || continue 30644 case $ac_file in 30645 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 30646 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 30647 break;; 30648 * ) break;; 30649 esac 30650 done 30651 else 30652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30654 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 30655 See \`config.log' for more details" "$LINENO" 5; } 30656 fi 30657 rm -f conftest conftest$ac_cv_exeext 30658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 30659 $as_echo "$ac_cv_exeext" >&6; } 30660 30661 rm -f conftest.$ac_ext 30662 EXEEXT=$ac_cv_exeext 30663 ac_exeext=$EXEEXT 30664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30665 /* end confdefs.h. */ 30666 #include <stdio.h> 30667 int 30668 main () 30669 { 30670 FILE *f = fopen ("conftest.out", "w"); 30671 return ferror (f) || fclose (f) != 0; 30672 30673 ; 30674 return 0; 30675 } 30676 _ACEOF 30677 ac_clean_files="$ac_clean_files conftest.out" 30678 # Check that the compiler produces executables we can run. If not, either 30679 # the compiler is broken, or we cross compile. 30680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 30681 $as_echo_n "checking whether we are cross compiling... " >&6; } 30682 if test "$cross_compiling" != yes; then 30683 { { ac_try="$ac_link" 30684 case "(($ac_try" in 30685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30686 *) ac_try_echo=$ac_try;; 30687 esac 30688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30689 $as_echo "$ac_try_echo"; } >&5 30690 (eval "$ac_link") 2>&5 30691 ac_status=$? 30692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30693 test $ac_status = 0; } 30694 if { ac_try='./conftest$ac_cv_exeext' 30695 { { case "(($ac_try" in 30696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30697 *) ac_try_echo=$ac_try;; 30698 esac 30699 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30700 $as_echo "$ac_try_echo"; } >&5 30701 (eval "$ac_try") 2>&5 30702 ac_status=$? 30703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30704 test $ac_status = 0; }; }; then 30705 cross_compiling=no 30706 else 30707 if test "$cross_compiling" = maybe; then 30708 cross_compiling=yes 30709 else 30710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30712 as_fn_error $? "cannot run C compiled programs. 30713 If you meant to cross compile, use \`--host'. 30714 See \`config.log' for more details" "$LINENO" 5; } 30715 fi 30716 fi 30717 fi 30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 30719 $as_echo "$cross_compiling" >&6; } 30720 30721 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 30722 ac_clean_files=$ac_clean_files_save 30723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 30724 $as_echo_n "checking for suffix of object files... " >&6; } 30725 if ${ac_cv_objext+:} false; then : 30726 $as_echo_n "(cached) " >&6 30727 else 30728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30729 /* end confdefs.h. */ 30730 30731 int 30732 main () 30733 { 30734 30735 ; 30736 return 0; 30737 } 30738 _ACEOF 30739 rm -f conftest.o conftest.obj 30740 if { { ac_try="$ac_compile" 30741 case "(($ac_try" in 30742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30743 *) ac_try_echo=$ac_try;; 30744 esac 30745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30746 $as_echo "$ac_try_echo"; } >&5 30747 (eval "$ac_compile") 2>&5 30748 ac_status=$? 30749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30750 test $ac_status = 0; }; then : 30751 for ac_file in conftest.o conftest.obj conftest.*; do 30752 test -f "$ac_file" || continue; 30753 case $ac_file in 30754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 30755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 30756 break;; 30757 esac 30758 done 30759 else 30760 $as_echo "$as_me: failed program was:" >&5 30761 sed 's/^/| /' conftest.$ac_ext >&5 30762 30763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30765 as_fn_error $? "cannot compute suffix of object files: cannot compile 30766 See \`config.log' for more details" "$LINENO" 5; } 30767 fi 30768 rm -f conftest.$ac_cv_objext conftest.$ac_ext 30769 fi 30770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 30771 $as_echo "$ac_cv_objext" >&6; } 30772 OBJEXT=$ac_cv_objext 30773 ac_objext=$OBJEXT 30774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 30775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 30776 if ${ac_cv_c_compiler_gnu+:} false; then : 30777 $as_echo_n "(cached) " >&6 30778 else 30779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30780 /* end confdefs.h. */ 30781 30782 int 30783 main () 30784 { 30785 #ifndef __GNUC__ 30786 choke me 30787 #endif 30788 30789 ; 30790 return 0; 30791 } 30792 _ACEOF 30793 if ac_fn_c_try_compile "$LINENO"; then : 30794 ac_compiler_gnu=yes 30795 else 30796 ac_compiler_gnu=no 30797 fi 30798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30799 ac_cv_c_compiler_gnu=$ac_compiler_gnu 30800 30801 fi 30802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 30803 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 30804 if test $ac_compiler_gnu = yes; then 30805 GCC=yes 30806 else 30807 GCC= 30808 fi 30809 ac_test_CFLAGS=${CFLAGS+set} 30810 ac_save_CFLAGS=$CFLAGS 30811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 30812 $as_echo_n "checking whether $CC accepts -g... " >&6; } 30813 if ${ac_cv_prog_cc_g+:} false; then : 30814 $as_echo_n "(cached) " >&6 30815 else 30816 ac_save_c_werror_flag=$ac_c_werror_flag 30817 ac_c_werror_flag=yes 30818 ac_cv_prog_cc_g=no 30819 CFLAGS="-g" 30820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30821 /* end confdefs.h. */ 30822 30823 int 30824 main () 30825 { 30826 30827 ; 30828 return 0; 30829 } 30830 _ACEOF 30831 if ac_fn_c_try_compile "$LINENO"; then : 30832 ac_cv_prog_cc_g=yes 30833 else 30834 CFLAGS="" 30835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30836 /* end confdefs.h. */ 30837 30838 int 30839 main () 30840 { 30841 30842 ; 30843 return 0; 30844 } 30845 _ACEOF 30846 if ac_fn_c_try_compile "$LINENO"; then : 30847 30848 else 30849 ac_c_werror_flag=$ac_save_c_werror_flag 30850 CFLAGS="-g" 30851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30852 /* end confdefs.h. */ 30853 30854 int 30855 main () 30856 { 30857 30858 ; 30859 return 0; 30860 } 30861 _ACEOF 30862 if ac_fn_c_try_compile "$LINENO"; then : 30863 ac_cv_prog_cc_g=yes 30864 fi 30865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30866 fi 30867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30868 fi 30869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30870 ac_c_werror_flag=$ac_save_c_werror_flag 30871 fi 30872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 30873 $as_echo "$ac_cv_prog_cc_g" >&6; } 30874 if test "$ac_test_CFLAGS" = set; then 30875 CFLAGS=$ac_save_CFLAGS 30876 elif test $ac_cv_prog_cc_g = yes; then 30877 if test "$GCC" = yes; then 30878 CFLAGS="-g -O2" 30879 else 30880 CFLAGS="-g" 30881 fi 30882 else 30883 if test "$GCC" = yes; then 30884 CFLAGS="-O2" 30885 else 30886 CFLAGS= 30887 fi 30888 fi 30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 30890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 30891 if ${ac_cv_prog_cc_c89+:} false; then : 30892 $as_echo_n "(cached) " >&6 30893 else 30894 ac_cv_prog_cc_c89=no 30895 ac_save_CC=$CC 30896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30897 /* end confdefs.h. */ 30898 #include <stdarg.h> 30899 #include <stdio.h> 30900 struct stat; 30901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 30902 struct buf { int x; }; 30903 FILE * (*rcsopen) (struct buf *, struct stat *, int); 30904 static char *e (p, i) 30905 char **p; 30906 int i; 30907 { 30908 return p[i]; 30909 } 30910 static char *f (char * (*g) (char **, int), char **p, ...) 30911 { 30912 char *s; 30913 va_list v; 30914 va_start (v,p); 30915 s = g (p, va_arg (v,int)); 30916 va_end (v); 30917 return s; 30918 } 30919 30920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 30921 function prototypes and stuff, but not '\xHH' hex character constants. 30922 These don't provoke an error unfortunately, instead are silently treated 30923 as 'x'. The following induces an error, until -std is added to get 30924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 30925 array size at least. It's necessary to write '\x00'==0 to get something 30926 that's true only with -std. */ 30927 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 30928 30929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 30930 inside strings and character constants. */ 30931 #define FOO(x) 'x' 30932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 30933 30934 int test (int i, double x); 30935 struct s1 {int (*f) (int a);}; 30936 struct s2 {int (*f) (double a);}; 30937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 30938 int argc; 30939 char **argv; 30940 int 30941 main () 30942 { 30943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 30944 ; 30945 return 0; 30946 } 30947 _ACEOF 30948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 30949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 30950 do 30951 CC="$ac_save_CC $ac_arg" 30952 if ac_fn_c_try_compile "$LINENO"; then : 30953 ac_cv_prog_cc_c89=$ac_arg 30954 fi 30955 rm -f core conftest.err conftest.$ac_objext 30956 test "x$ac_cv_prog_cc_c89" != "xno" && break 30957 done 30958 rm -f conftest.$ac_ext 30959 CC=$ac_save_CC 30960 30961 fi 30962 # AC_CACHE_VAL 30963 case "x$ac_cv_prog_cc_c89" in 30964 x) 30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 30966 $as_echo "none needed" >&6; } ;; 30967 xno) 30968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 30969 $as_echo "unsupported" >&6; } ;; 30970 *) 30971 CC="$CC $ac_cv_prog_cc_c89" 30972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 30973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 30974 esac 30975 if test "x$ac_cv_prog_cc_c89" != xno; then : 30976 30977 fi 30978 30979 ac_ext=cpp 30980 ac_cpp='$CXXCPP $CPPFLAGS' 30981 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30982 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30983 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30984 30985 30986 # Option used to tell the compiler whether to create 32- or 64-bit executables 30987 # Notice that CC contains the full compiler path at this point. 30988 case $CC in 30989 *xlc_r) COMPILER_TARGET_BITS_FLAG="-q";; 30990 *) COMPILER_TARGET_BITS_FLAG="-m";; 30991 esac 30992 30993 30994 ### Locate C++ compiler (CXX) 30995 30996 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 30997 COMPILER_CHECK_LIST="cl" 30998 elif test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 30999 COMPILER_CHECK_LIST="CC g++" 31000 elif test "x$OPENJDK_TARGET_OS" = "xaix"; then 31001 # Do not probe for CC on AIX . 31002 COMPILER_CHECK_LIST="xlC_r" 31003 else 31004 COMPILER_CHECK_LIST="g++ CC" 31005 fi 31006 31007 31008 COMPILER_NAME=C++ 31009 SEARCH_LIST="$COMPILER_CHECK_LIST" 31010 31011 if test "x$CXX" != x; then 31012 # User has supplied compiler name already, always let that override. 31013 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 31014 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 31015 if test "x`basename $CXX`" = "x$CXX"; then 31016 # A command without a complete path is provided, search $PATH. 31017 31018 for ac_prog in $CXX 31019 do 31020 # Extract the first word of "$ac_prog", so it can be a program name with args. 31021 set dummy $ac_prog; ac_word=$2 31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31023 $as_echo_n "checking for $ac_word... " >&6; } 31024 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 31025 $as_echo_n "(cached) " >&6 31026 else 31027 case $POTENTIAL_CXX in 31028 [\\/]* | ?:[\\/]*) 31029 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 31030 ;; 31031 *) 31032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31033 for as_dir in $PATH 31034 do 31035 IFS=$as_save_IFS 31036 test -z "$as_dir" && as_dir=. 31037 for ac_exec_ext in '' $ac_executable_extensions; do 31038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31039 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 31040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31041 break 2 31042 fi 31043 done 31044 done 31045 IFS=$as_save_IFS 31046 31047 ;; 31048 esac 31049 fi 31050 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 31051 if test -n "$POTENTIAL_CXX"; then 31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 31053 $as_echo "$POTENTIAL_CXX" >&6; } 31054 else 31055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31056 $as_echo "no" >&6; } 31057 fi 31058 31059 31060 test -n "$POTENTIAL_CXX" && break 31061 done 31062 31063 if test "x$POTENTIAL_CXX" != x; then 31064 CXX=$POTENTIAL_CXX 31065 else 31066 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 31067 fi 31068 else 31069 # Otherwise it might already be a complete path 31070 if test ! -x "$CXX"; then 31071 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 31072 fi 31073 fi 31074 else 31075 # No user supplied value. Locate compiler ourselves 31076 CXX= 31077 # If TOOLS_DIR is set, check for all compiler names in there first 31078 # before checking the rest of the PATH. 31079 if test -n "$TOOLS_DIR"; then 31080 PATH_save="$PATH" 31081 PATH="$TOOLS_DIR" 31082 for ac_prog in $SEARCH_LIST 31083 do 31084 # Extract the first word of "$ac_prog", so it can be a program name with args. 31085 set dummy $ac_prog; ac_word=$2 31086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31087 $as_echo_n "checking for $ac_word... " >&6; } 31088 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then : 31089 $as_echo_n "(cached) " >&6 31090 else 31091 case $TOOLS_DIR_CXX in 31092 [\\/]* | ?:[\\/]*) 31093 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path. 31094 ;; 31095 *) 31096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31097 for as_dir in $PATH 31098 do 31099 IFS=$as_save_IFS 31100 test -z "$as_dir" && as_dir=. 31101 for ac_exec_ext in '' $ac_executable_extensions; do 31102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31103 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext" 31104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31105 break 2 31106 fi 31107 done 31108 done 31109 IFS=$as_save_IFS 31110 31111 ;; 31112 esac 31113 fi 31114 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX 31115 if test -n "$TOOLS_DIR_CXX"; then 31116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5 31117 $as_echo "$TOOLS_DIR_CXX" >&6; } 31118 else 31119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31120 $as_echo "no" >&6; } 31121 fi 31122 31123 31124 test -n "$TOOLS_DIR_CXX" && break 31125 done 31126 31127 CXX=$TOOLS_DIR_CXX 31128 PATH="$PATH_save" 31129 fi 31130 31131 # AC_PATH_PROGS can't be run multiple times with the same variable, 31132 # so create a new name for this run. 31133 if test "x$CXX" = x; then 31134 for ac_prog in $SEARCH_LIST 31135 do 31136 # Extract the first word of "$ac_prog", so it can be a program name with args. 31137 set dummy $ac_prog; ac_word=$2 31138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31139 $as_echo_n "checking for $ac_word... " >&6; } 31140 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 31141 $as_echo_n "(cached) " >&6 31142 else 31143 case $POTENTIAL_CXX in 31144 [\\/]* | ?:[\\/]*) 31145 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 31146 ;; 31147 *) 31148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31149 for as_dir in $PATH 31150 do 31151 IFS=$as_save_IFS 31152 test -z "$as_dir" && as_dir=. 31153 for ac_exec_ext in '' $ac_executable_extensions; do 31154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31155 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 31156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31157 break 2 31158 fi 31159 done 31160 done 31161 IFS=$as_save_IFS 31162 31163 ;; 31164 esac 31165 fi 31166 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 31167 if test -n "$POTENTIAL_CXX"; then 31168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 31169 $as_echo "$POTENTIAL_CXX" >&6; } 31170 else 31171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31172 $as_echo "no" >&6; } 31173 fi 31174 31175 31176 test -n "$POTENTIAL_CXX" && break 31177 done 31178 31179 CXX=$POTENTIAL_CXX 31180 fi 31181 31182 if test "x$CXX" = x; then 31183 31184 # Print a helpful message on how to acquire the necessary build dependency. 31185 # devkit is the help tag: freetype, cups, pulse, alsa etc 31186 MISSING_DEPENDENCY=devkit 31187 31188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31189 cygwin_help $MISSING_DEPENDENCY 31190 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31191 msys_help $MISSING_DEPENDENCY 31192 else 31193 PKGHANDLER_COMMAND= 31194 31195 case $PKGHANDLER in 31196 apt-get) 31197 apt_help $MISSING_DEPENDENCY ;; 31198 yum) 31199 yum_help $MISSING_DEPENDENCY ;; 31200 port) 31201 port_help $MISSING_DEPENDENCY ;; 31202 pkgutil) 31203 pkgutil_help $MISSING_DEPENDENCY ;; 31204 pkgadd) 31205 pkgadd_help $MISSING_DEPENDENCY ;; 31206 esac 31207 31208 if test "x$PKGHANDLER_COMMAND" != x; then 31209 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 31210 fi 31211 fi 31212 31213 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 31214 fi 31215 fi 31216 31217 # Now we have a compiler binary in CXX. Make sure it's okay. 31218 31219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31220 31221 # First separate the path from the arguments. This will split at the first 31222 # space. 31223 complete="$CXX" 31224 path="${complete%% *}" 31225 tmp="$complete EOL" 31226 arguments="${tmp#* }" 31227 31228 # Input might be given as Windows format, start by converting to 31229 # unix format. 31230 new_path=`$CYGPATH -u "$path"` 31231 31232 # Now try to locate executable using which 31233 new_path=`$WHICH "$new_path" 2> /dev/null` 31234 # bat and cmd files are not always considered executable in cygwin causing which 31235 # to not find them 31236 if test "x$new_path" = x \ 31237 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31238 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31239 new_path=`$CYGPATH -u "$path"` 31240 fi 31241 if test "x$new_path" = x; then 31242 # Oops. Which didn't find the executable. 31243 # The splitting of arguments from the executable at a space might have been incorrect, 31244 # since paths with space are more likely in Windows. Give it another try with the whole 31245 # argument. 31246 path="$complete" 31247 arguments="EOL" 31248 new_path=`$CYGPATH -u "$path"` 31249 new_path=`$WHICH "$new_path" 2> /dev/null` 31250 # bat and cmd files are not always considered executable in cygwin causing which 31251 # to not find them 31252 if test "x$new_path" = x \ 31253 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31254 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31255 new_path=`$CYGPATH -u "$path"` 31256 fi 31257 if test "x$new_path" = x; then 31258 # It's still not found. Now this is an unrecoverable error. 31259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 31260 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 31261 has_space=`$ECHO "$complete" | $GREP " "` 31262 if test "x$has_space" != x; then 31263 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31264 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31265 fi 31266 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31267 fi 31268 fi 31269 31270 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31271 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31272 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31273 # "foo.exe" is OK but "foo" is an error. 31274 # 31275 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31276 # It is also a way to make sure we got the proper file name for the real test later on. 31277 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31278 if test "x$test_shortpath" = x; then 31279 # Short path failed, file does not exist as specified. 31280 # Try adding .exe or .cmd 31281 if test -f "${new_path}.exe"; then 31282 input_to_shortpath="${new_path}.exe" 31283 elif test -f "${new_path}.cmd"; then 31284 input_to_shortpath="${new_path}.cmd" 31285 else 31286 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 31287 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 31288 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31289 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31290 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31291 fi 31292 else 31293 input_to_shortpath="$new_path" 31294 fi 31295 31296 # Call helper function which possibly converts this using DOS-style short mode. 31297 # If so, the updated path is stored in $new_path. 31298 new_path="$input_to_shortpath" 31299 31300 input_path="$input_to_shortpath" 31301 # Check if we need to convert this using DOS-style short mode. If the path 31302 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31303 # take no chances and rewrite it. 31304 # Note: m4 eats our [], so we need to use [ and ] instead. 31305 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31306 if test "x$has_forbidden_chars" != x; then 31307 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31308 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31309 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31310 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31311 # Going to short mode and back again did indeed matter. Since short mode is 31312 # case insensitive, let's make it lowercase to improve readability. 31313 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31314 # Now convert it back to Unix-stile (cygpath) 31315 input_path=`$CYGPATH -u "$shortmode_path"` 31316 new_path="$input_path" 31317 fi 31318 fi 31319 31320 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31321 if test "x$test_cygdrive_prefix" = x; then 31322 # As a simple fix, exclude /usr/bin since it's not a real path. 31323 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31324 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31325 # a path prefixed by /cygdrive for fixpath to work. 31326 new_path="$CYGWIN_ROOT_PATH$input_path" 31327 fi 31328 fi 31329 31330 # remove trailing .exe if any 31331 new_path="${new_path/%.exe/}" 31332 31333 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31334 31335 # First separate the path from the arguments. This will split at the first 31336 # space. 31337 complete="$CXX" 31338 path="${complete%% *}" 31339 tmp="$complete EOL" 31340 arguments="${tmp#* }" 31341 31342 # Input might be given as Windows format, start by converting to 31343 # unix format. 31344 new_path="$path" 31345 31346 windows_path="$new_path" 31347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31348 unix_path=`$CYGPATH -u "$windows_path"` 31349 new_path="$unix_path" 31350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31352 new_path="$unix_path" 31353 fi 31354 31355 31356 # Now try to locate executable using which 31357 new_path=`$WHICH "$new_path" 2> /dev/null` 31358 31359 if test "x$new_path" = x; then 31360 # Oops. Which didn't find the executable. 31361 # The splitting of arguments from the executable at a space might have been incorrect, 31362 # since paths with space are more likely in Windows. Give it another try with the whole 31363 # argument. 31364 path="$complete" 31365 arguments="EOL" 31366 new_path="$path" 31367 31368 windows_path="$new_path" 31369 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31370 unix_path=`$CYGPATH -u "$windows_path"` 31371 new_path="$unix_path" 31372 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31373 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31374 new_path="$unix_path" 31375 fi 31376 31377 31378 new_path=`$WHICH "$new_path" 2> /dev/null` 31379 31380 if test "x$new_path" = x; then 31381 # It's still not found. Now this is an unrecoverable error. 31382 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 31383 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 31384 has_space=`$ECHO "$complete" | $GREP " "` 31385 if test "x$has_space" != x; then 31386 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31387 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31388 fi 31389 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31390 fi 31391 fi 31392 31393 # Now new_path has a complete unix path to the binary 31394 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31395 # Keep paths in /bin as-is, but remove trailing .exe if any 31396 new_path="${new_path/%.exe/}" 31397 # Do not save /bin paths to all_fixpath_prefixes! 31398 else 31399 # Not in mixed or Windows style, start by that. 31400 new_path=`cmd //c echo $new_path` 31401 31402 input_path="$new_path" 31403 # Check if we need to convert this using DOS-style short mode. If the path 31404 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31405 # take no chances and rewrite it. 31406 # Note: m4 eats our [], so we need to use [ and ] instead. 31407 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31408 if test "x$has_forbidden_chars" != x; then 31409 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31410 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31411 fi 31412 31413 # Output is in $new_path 31414 31415 windows_path="$new_path" 31416 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31417 unix_path=`$CYGPATH -u "$windows_path"` 31418 new_path="$unix_path" 31419 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31420 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31421 new_path="$unix_path" 31422 fi 31423 31424 # remove trailing .exe if any 31425 new_path="${new_path/%.exe/}" 31426 31427 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31428 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31429 fi 31430 31431 else 31432 # We're on a posix platform. Hooray! :) 31433 # First separate the path from the arguments. This will split at the first 31434 # space. 31435 complete="$CXX" 31436 path="${complete%% *}" 31437 tmp="$complete EOL" 31438 arguments="${tmp#* }" 31439 31440 # Cannot rely on the command "which" here since it doesn't always work. 31441 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31442 if test -z "$is_absolute_path"; then 31443 # Path to executable is not absolute. Find it. 31444 IFS_save="$IFS" 31445 IFS=: 31446 for p in $PATH; do 31447 if test -f "$p/$path" && test -x "$p/$path"; then 31448 new_path="$p/$path" 31449 break 31450 fi 31451 done 31452 IFS="$IFS_save" 31453 else 31454 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXX (as $path) failed, using $path directly." >&5 31455 $as_echo "$as_me: Resolving CXX (as $path) failed, using $path directly." >&6;} 31456 new_path="$path" 31457 fi 31458 31459 if test "x$new_path" = x; then 31460 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 31461 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 31462 has_space=`$ECHO "$complete" | $GREP " "` 31463 if test "x$has_space" != x; then 31464 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31465 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31466 fi 31467 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 31468 fi 31469 fi 31470 31471 # Now join together the path and the arguments once again 31472 if test "x$arguments" != xEOL; then 31473 new_complete="$new_path ${arguments% *}" 31474 else 31475 new_complete="$new_path" 31476 fi 31477 31478 if test "x$complete" != "x$new_complete"; then 31479 CXX="$new_complete" 31480 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 31481 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 31482 fi 31483 31484 TEST_COMPILER="$CXX" 31485 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 31486 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 31487 if test "x$OPENJDK_BUILD_OS" != xaix; then 31488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 31489 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 31490 31491 if test "x$OPENJDK_BUILD_OS" != xwindows; then 31492 # Follow a chain of symbolic links. Use readlink 31493 # where it exists, else fall back to horribly 31494 # complicated shell code. 31495 if test "x$READLINK_TESTED" != yes; then 31496 # On MacOSX there is a readlink tool with a different 31497 # purpose than the GNU readlink tool. Check the found readlink. 31498 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 31499 if test "x$ISGNU" = x; then 31500 # A readlink that we do not know how to use. 31501 # Are there other non-GNU readlinks out there? 31502 READLINK_TESTED=yes 31503 READLINK= 31504 fi 31505 fi 31506 31507 if test "x$READLINK" != x; then 31508 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 31509 else 31510 # Save the current directory for restoring afterwards 31511 STARTDIR=$PWD 31512 COUNTER=0 31513 sym_link_dir=`$DIRNAME $TEST_COMPILER` 31514 sym_link_file=`$BASENAME $TEST_COMPILER` 31515 cd $sym_link_dir 31516 # Use -P flag to resolve symlinks in directories. 31517 cd `$THEPWDCMD -P` 31518 sym_link_dir=`$THEPWDCMD -P` 31519 # Resolve file symlinks 31520 while test $COUNTER -lt 20; do 31521 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 31522 if test "x$ISLINK" == x; then 31523 # This is not a symbolic link! We are done! 31524 break 31525 fi 31526 # Again resolve directory symlinks since the target of the just found 31527 # link could be in a different directory 31528 cd `$DIRNAME $ISLINK` 31529 sym_link_dir=`$THEPWDCMD -P` 31530 sym_link_file=`$BASENAME $ISLINK` 31531 let COUNTER=COUNTER+1 31532 done 31533 cd $STARTDIR 31534 TEST_COMPILER=$sym_link_dir/$sym_link_file 31535 fi 31536 fi 31537 31538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 31539 $as_echo "$TEST_COMPILER" >&6; } 31540 fi 31541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 31542 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 31543 31544 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 31545 if test "x$COMPILER_BASENAME" = "xccache"; then 31546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 31547 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 31548 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 31549 # We want to control ccache invocation ourselves, so ignore this cc and try 31550 # searching again. 31551 31552 # Remove the path to the fake ccache cc from the PATH 31553 RETRY_COMPILER_SAVED_PATH="$PATH" 31554 COMPILER_DIRNAME=`$DIRNAME $CXX` 31555 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 31556 31557 # Try again looking for our compiler 31558 if test -n "$ac_tool_prefix"; then 31559 for ac_prog in $COMPILER_CHECK_LIST 31560 do 31561 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31562 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31564 $as_echo_n "checking for $ac_word... " >&6; } 31565 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 31566 $as_echo_n "(cached) " >&6 31567 else 31568 if test -n "$PROPER_COMPILER_CXX"; then 31569 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 31570 else 31571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31572 for as_dir in $PATH 31573 do 31574 IFS=$as_save_IFS 31575 test -z "$as_dir" && as_dir=. 31576 for ac_exec_ext in '' $ac_executable_extensions; do 31577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31578 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 31579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31580 break 2 31581 fi 31582 done 31583 done 31584 IFS=$as_save_IFS 31585 31586 fi 31587 fi 31588 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 31589 if test -n "$PROPER_COMPILER_CXX"; then 31590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 31591 $as_echo "$PROPER_COMPILER_CXX" >&6; } 31592 else 31593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31594 $as_echo "no" >&6; } 31595 fi 31596 31597 31598 test -n "$PROPER_COMPILER_CXX" && break 31599 done 31600 fi 31601 if test -z "$PROPER_COMPILER_CXX"; then 31602 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 31603 for ac_prog in $COMPILER_CHECK_LIST 31604 do 31605 # Extract the first word of "$ac_prog", so it can be a program name with args. 31606 set dummy $ac_prog; ac_word=$2 31607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31608 $as_echo_n "checking for $ac_word... " >&6; } 31609 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 31610 $as_echo_n "(cached) " >&6 31611 else 31612 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 31613 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 31614 else 31615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31616 for as_dir in $PATH 31617 do 31618 IFS=$as_save_IFS 31619 test -z "$as_dir" && as_dir=. 31620 for ac_exec_ext in '' $ac_executable_extensions; do 31621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31622 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 31623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31624 break 2 31625 fi 31626 done 31627 done 31628 IFS=$as_save_IFS 31629 31630 fi 31631 fi 31632 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 31633 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 31634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 31635 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 31636 else 31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31638 $as_echo "no" >&6; } 31639 fi 31640 31641 31642 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 31643 done 31644 31645 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 31646 PROPER_COMPILER_CXX="" 31647 else 31648 case $cross_compiling:$ac_tool_warned in 31649 yes:) 31650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31651 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31652 ac_tool_warned=yes ;; 31653 esac 31654 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 31655 fi 31656 fi 31657 31658 31659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31660 31661 # First separate the path from the arguments. This will split at the first 31662 # space. 31663 complete="$PROPER_COMPILER_CXX" 31664 path="${complete%% *}" 31665 tmp="$complete EOL" 31666 arguments="${tmp#* }" 31667 31668 # Input might be given as Windows format, start by converting to 31669 # unix format. 31670 new_path=`$CYGPATH -u "$path"` 31671 31672 # Now try to locate executable using which 31673 new_path=`$WHICH "$new_path" 2> /dev/null` 31674 # bat and cmd files are not always considered executable in cygwin causing which 31675 # to not find them 31676 if test "x$new_path" = x \ 31677 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31678 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31679 new_path=`$CYGPATH -u "$path"` 31680 fi 31681 if test "x$new_path" = x; then 31682 # Oops. Which didn't find the executable. 31683 # The splitting of arguments from the executable at a space might have been incorrect, 31684 # since paths with space are more likely in Windows. Give it another try with the whole 31685 # argument. 31686 path="$complete" 31687 arguments="EOL" 31688 new_path=`$CYGPATH -u "$path"` 31689 new_path=`$WHICH "$new_path" 2> /dev/null` 31690 # bat and cmd files are not always considered executable in cygwin causing which 31691 # to not find them 31692 if test "x$new_path" = x \ 31693 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31694 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31695 new_path=`$CYGPATH -u "$path"` 31696 fi 31697 if test "x$new_path" = x; then 31698 # It's still not found. Now this is an unrecoverable error. 31699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31700 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31701 has_space=`$ECHO "$complete" | $GREP " "` 31702 if test "x$has_space" != x; then 31703 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31704 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31705 fi 31706 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31707 fi 31708 fi 31709 31710 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31711 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31712 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31713 # "foo.exe" is OK but "foo" is an error. 31714 # 31715 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31716 # It is also a way to make sure we got the proper file name for the real test later on. 31717 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31718 if test "x$test_shortpath" = x; then 31719 # Short path failed, file does not exist as specified. 31720 # Try adding .exe or .cmd 31721 if test -f "${new_path}.exe"; then 31722 input_to_shortpath="${new_path}.exe" 31723 elif test -f "${new_path}.cmd"; then 31724 input_to_shortpath="${new_path}.cmd" 31725 else 31726 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 31727 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 31728 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31729 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31730 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31731 fi 31732 else 31733 input_to_shortpath="$new_path" 31734 fi 31735 31736 # Call helper function which possibly converts this using DOS-style short mode. 31737 # If so, the updated path is stored in $new_path. 31738 new_path="$input_to_shortpath" 31739 31740 input_path="$input_to_shortpath" 31741 # Check if we need to convert this using DOS-style short mode. If the path 31742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31743 # take no chances and rewrite it. 31744 # Note: m4 eats our [], so we need to use [ and ] instead. 31745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31746 if test "x$has_forbidden_chars" != x; then 31747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31748 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31749 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31750 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31751 # Going to short mode and back again did indeed matter. Since short mode is 31752 # case insensitive, let's make it lowercase to improve readability. 31753 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31754 # Now convert it back to Unix-stile (cygpath) 31755 input_path=`$CYGPATH -u "$shortmode_path"` 31756 new_path="$input_path" 31757 fi 31758 fi 31759 31760 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31761 if test "x$test_cygdrive_prefix" = x; then 31762 # As a simple fix, exclude /usr/bin since it's not a real path. 31763 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31764 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31765 # a path prefixed by /cygdrive for fixpath to work. 31766 new_path="$CYGWIN_ROOT_PATH$input_path" 31767 fi 31768 fi 31769 31770 # remove trailing .exe if any 31771 new_path="${new_path/%.exe/}" 31772 31773 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31774 31775 # First separate the path from the arguments. This will split at the first 31776 # space. 31777 complete="$PROPER_COMPILER_CXX" 31778 path="${complete%% *}" 31779 tmp="$complete EOL" 31780 arguments="${tmp#* }" 31781 31782 # Input might be given as Windows format, start by converting to 31783 # unix format. 31784 new_path="$path" 31785 31786 windows_path="$new_path" 31787 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31788 unix_path=`$CYGPATH -u "$windows_path"` 31789 new_path="$unix_path" 31790 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31791 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31792 new_path="$unix_path" 31793 fi 31794 31795 31796 # Now try to locate executable using which 31797 new_path=`$WHICH "$new_path" 2> /dev/null` 31798 31799 if test "x$new_path" = x; then 31800 # Oops. Which didn't find the executable. 31801 # The splitting of arguments from the executable at a space might have been incorrect, 31802 # since paths with space are more likely in Windows. Give it another try with the whole 31803 # argument. 31804 path="$complete" 31805 arguments="EOL" 31806 new_path="$path" 31807 31808 windows_path="$new_path" 31809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31810 unix_path=`$CYGPATH -u "$windows_path"` 31811 new_path="$unix_path" 31812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31814 new_path="$unix_path" 31815 fi 31816 31817 31818 new_path=`$WHICH "$new_path" 2> /dev/null` 31819 31820 if test "x$new_path" = x; then 31821 # It's still not found. Now this is an unrecoverable error. 31822 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31823 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31824 has_space=`$ECHO "$complete" | $GREP " "` 31825 if test "x$has_space" != x; then 31826 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31827 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31828 fi 31829 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31830 fi 31831 fi 31832 31833 # Now new_path has a complete unix path to the binary 31834 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31835 # Keep paths in /bin as-is, but remove trailing .exe if any 31836 new_path="${new_path/%.exe/}" 31837 # Do not save /bin paths to all_fixpath_prefixes! 31838 else 31839 # Not in mixed or Windows style, start by that. 31840 new_path=`cmd //c echo $new_path` 31841 31842 input_path="$new_path" 31843 # Check if we need to convert this using DOS-style short mode. If the path 31844 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31845 # take no chances and rewrite it. 31846 # Note: m4 eats our [], so we need to use [ and ] instead. 31847 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31848 if test "x$has_forbidden_chars" != x; then 31849 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31850 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31851 fi 31852 31853 # Output is in $new_path 31854 31855 windows_path="$new_path" 31856 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31857 unix_path=`$CYGPATH -u "$windows_path"` 31858 new_path="$unix_path" 31859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31860 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31861 new_path="$unix_path" 31862 fi 31863 31864 # remove trailing .exe if any 31865 new_path="${new_path/%.exe/}" 31866 31867 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31868 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31869 fi 31870 31871 else 31872 # We're on a posix platform. Hooray! :) 31873 # First separate the path from the arguments. This will split at the first 31874 # space. 31875 complete="$PROPER_COMPILER_CXX" 31876 path="${complete%% *}" 31877 tmp="$complete EOL" 31878 arguments="${tmp#* }" 31879 31880 # Cannot rely on the command "which" here since it doesn't always work. 31881 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31882 if test -z "$is_absolute_path"; then 31883 # Path to executable is not absolute. Find it. 31884 IFS_save="$IFS" 31885 IFS=: 31886 for p in $PATH; do 31887 if test -f "$p/$path" && test -x "$p/$path"; then 31888 new_path="$p/$path" 31889 break 31890 fi 31891 done 31892 IFS="$IFS_save" 31893 else 31894 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&5 31895 $as_echo "$as_me: Resolving PROPER_COMPILER_CXX (as $path) failed, using $path directly." >&6;} 31896 new_path="$path" 31897 fi 31898 31899 if test "x$new_path" = x; then 31900 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 31901 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 31902 has_space=`$ECHO "$complete" | $GREP " "` 31903 if test "x$has_space" != x; then 31904 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31905 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31906 fi 31907 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 31908 fi 31909 fi 31910 31911 # Now join together the path and the arguments once again 31912 if test "x$arguments" != xEOL; then 31913 new_complete="$new_path ${arguments% *}" 31914 else 31915 new_complete="$new_path" 31916 fi 31917 31918 if test "x$complete" != "x$new_complete"; then 31919 PROPER_COMPILER_CXX="$new_complete" 31920 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 31921 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 31922 fi 31923 31924 PATH="$RETRY_COMPILER_SAVED_PATH" 31925 31926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 31927 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 31928 31929 if test "x$OPENJDK_BUILD_OS" != xwindows; then 31930 # Follow a chain of symbolic links. Use readlink 31931 # where it exists, else fall back to horribly 31932 # complicated shell code. 31933 if test "x$READLINK_TESTED" != yes; then 31934 # On MacOSX there is a readlink tool with a different 31935 # purpose than the GNU readlink tool. Check the found readlink. 31936 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 31937 if test "x$ISGNU" = x; then 31938 # A readlink that we do not know how to use. 31939 # Are there other non-GNU readlinks out there? 31940 READLINK_TESTED=yes 31941 READLINK= 31942 fi 31943 fi 31944 31945 if test "x$READLINK" != x; then 31946 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 31947 else 31948 # Save the current directory for restoring afterwards 31949 STARTDIR=$PWD 31950 COUNTER=0 31951 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 31952 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 31953 cd $sym_link_dir 31954 # Use -P flag to resolve symlinks in directories. 31955 cd `$THEPWDCMD -P` 31956 sym_link_dir=`$THEPWDCMD -P` 31957 # Resolve file symlinks 31958 while test $COUNTER -lt 20; do 31959 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 31960 if test "x$ISLINK" == x; then 31961 # This is not a symbolic link! We are done! 31962 break 31963 fi 31964 # Again resolve directory symlinks since the target of the just found 31965 # link could be in a different directory 31966 cd `$DIRNAME $ISLINK` 31967 sym_link_dir=`$THEPWDCMD -P` 31968 sym_link_file=`$BASENAME $ISLINK` 31969 let COUNTER=COUNTER+1 31970 done 31971 cd $STARTDIR 31972 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 31973 fi 31974 fi 31975 31976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 31977 $as_echo "$PROPER_COMPILER_CXX" >&6; } 31978 CXX="$PROPER_COMPILER_CXX" 31979 else 31980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 31981 $as_echo "no, keeping CXX" >&6; } 31982 fi 31983 31984 31985 COMPILER=$CXX 31986 COMPILER_NAME=$COMPILER_NAME 31987 31988 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31989 # Make sure we use the Sun Studio compiler and not gcc on Solaris, which won't work 31990 COMPILER_VERSION_TEST=`$COMPILER -V 2>&1 | $HEAD -n 1` 31991 $ECHO $COMPILER_VERSION_TEST | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 31992 if test $? -ne 0; then 31993 GCC_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 31994 31995 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&5 31996 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required Sun Studio compiler." >&6;} 31997 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&5 31998 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_TEST\" and with --version: \"$GCC_VERSION_TEST\"" >&6;} 31999 as_fn_error $? "Sun Studio compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32000 else 32001 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/p"` 32002 COMPILER_VENDOR="Sun Studio" 32003 fi 32004 elif test "x$OPENJDK_TARGET_OS" = xaix; then 32005 COMPILER_VERSION_TEST=`$COMPILER -qversion 2>&1 | $TAIL -n 1` 32006 $ECHO $COMPILER_VERSION_TEST | $GREP "^Version: " > /dev/null 32007 if test $? -ne 0; then 32008 as_fn_error $? "Failed to detect the compiler version of $COMPILER ...." "$LINENO" 5 32009 else 32010 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n 's/Version: \(0-90-9\.0-90-9*\).*/\1/p'` 32011 COMPILER_VENDOR='IBM' 32012 fi 32013 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 32014 # First line typically looks something like: 32015 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 32016 COMPILER_VERSION_TEST=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 32017 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.*Version \([1-9][0-9.]*\) .*/\1/p"` 32018 COMPILER_VENDOR="Microsoft CL.EXE" 32019 COMPILER_CPU_TEST=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* for \(.*\)$/\1/p"` 32020 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 32021 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 32022 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 32023 fi 32024 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 32025 if test "x$COMPILER_CPU_TEST" != "xx64"; then 32026 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 32027 fi 32028 fi 32029 else 32030 COMPILER_VERSION_TEST=`$COMPILER --version 2>&1 | $HEAD -n 1` 32031 # Check that this is likely to be GCC. 32032 $COMPILER --version 2>&1 | $GREP "Free Software Foundation" > /dev/null 32033 if test $? -ne 0; then 32034 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&5 32035 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required GCC compiler." >&6;} 32036 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&5 32037 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_TEST\"" >&6;} 32038 as_fn_error $? "GCC compiler is required. Try setting --with-tools-dir." "$LINENO" 5 32039 fi 32040 32041 # First line typically looks something like: 32042 # gcc (Ubuntu/Linaro 4.5.2-8ubuntu4) 4.5.2 32043 COMPILER_VERSION=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^.* \([1-9][0-9.]*\)/\1/p"` 32044 COMPILER_VENDOR=`$ECHO $COMPILER_VERSION_TEST | $SED -n "s/^\(.*\) [1-9][0-9.]*/\1/p"` 32045 fi 32046 # This sets CC_VERSION or CXX_VERSION. (This comment is a grep marker) 32047 CXX_VERSION="$COMPILER_VERSION" 32048 # This sets CC_VENDOR or CXX_VENDOR. (This comment is a grep marker) 32049 CXX_VENDOR="$COMPILER_VENDOR" 32050 32051 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&5 32052 $as_echo "$as_me: Using $COMPILER_VENDOR $COMPILER_NAME compiler version $COMPILER_VERSION (located at $COMPILER)" >&6;} 32053 32054 32055 # Now that we have resolved CXX ourself, let autoconf have its go at it 32056 ac_ext=cpp 32057 ac_cpp='$CXXCPP $CPPFLAGS' 32058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32061 if test -z "$CXX"; then 32062 if test -n "$CCC"; then 32063 CXX=$CCC 32064 else 32065 if test -n "$ac_tool_prefix"; then 32066 for ac_prog in $CXX 32067 do 32068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32071 $as_echo_n "checking for $ac_word... " >&6; } 32072 if ${ac_cv_prog_CXX+:} false; then : 32073 $as_echo_n "(cached) " >&6 32074 else 32075 if test -n "$CXX"; then 32076 ac_cv_prog_CXX="$CXX" # Let the user override the test. 32077 else 32078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32079 for as_dir in $PATH 32080 do 32081 IFS=$as_save_IFS 32082 test -z "$as_dir" && as_dir=. 32083 for ac_exec_ext in '' $ac_executable_extensions; do 32084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 32086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32087 break 2 32088 fi 32089 done 32090 done 32091 IFS=$as_save_IFS 32092 32093 fi 32094 fi 32095 CXX=$ac_cv_prog_CXX 32096 if test -n "$CXX"; then 32097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 32098 $as_echo "$CXX" >&6; } 32099 else 32100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32101 $as_echo "no" >&6; } 32102 fi 32103 32104 32105 test -n "$CXX" && break 32106 done 32107 fi 32108 if test -z "$CXX"; then 32109 ac_ct_CXX=$CXX 32110 for ac_prog in $CXX 32111 do 32112 # Extract the first word of "$ac_prog", so it can be a program name with args. 32113 set dummy $ac_prog; ac_word=$2 32114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32115 $as_echo_n "checking for $ac_word... " >&6; } 32116 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 32117 $as_echo_n "(cached) " >&6 32118 else 32119 if test -n "$ac_ct_CXX"; then 32120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 32121 else 32122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32123 for as_dir in $PATH 32124 do 32125 IFS=$as_save_IFS 32126 test -z "$as_dir" && as_dir=. 32127 for ac_exec_ext in '' $ac_executable_extensions; do 32128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32129 ac_cv_prog_ac_ct_CXX="$ac_prog" 32130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32131 break 2 32132 fi 32133 done 32134 done 32135 IFS=$as_save_IFS 32136 32137 fi 32138 fi 32139 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 32140 if test -n "$ac_ct_CXX"; then 32141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 32142 $as_echo "$ac_ct_CXX" >&6; } 32143 else 32144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32145 $as_echo "no" >&6; } 32146 fi 32147 32148 32149 test -n "$ac_ct_CXX" && break 32150 done 32151 32152 if test "x$ac_ct_CXX" = x; then 32153 CXX="g++" 32154 else 32155 case $cross_compiling:$ac_tool_warned in 32156 yes:) 32157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32159 ac_tool_warned=yes ;; 32160 esac 32161 CXX=$ac_ct_CXX 32162 fi 32163 fi 32164 32165 fi 32166 fi 32167 # Provide some information about the compiler. 32168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 32169 set X $ac_compile 32170 ac_compiler=$2 32171 for ac_option in --version -v -V -qversion; do 32172 { { ac_try="$ac_compiler $ac_option >&5" 32173 case "(($ac_try" in 32174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32175 *) ac_try_echo=$ac_try;; 32176 esac 32177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32178 $as_echo "$ac_try_echo"; } >&5 32179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32180 ac_status=$? 32181 if test -s conftest.err; then 32182 sed '10a\ 32183 ... rest of stderr output deleted ... 32184 10q' conftest.err >conftest.er1 32185 cat conftest.er1 >&5 32186 fi 32187 rm -f conftest.er1 conftest.err 32188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32189 test $ac_status = 0; } 32190 done 32191 32192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 32193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 32194 if ${ac_cv_cxx_compiler_gnu+:} false; then : 32195 $as_echo_n "(cached) " >&6 32196 else 32197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32198 /* end confdefs.h. */ 32199 32200 int 32201 main () 32202 { 32203 #ifndef __GNUC__ 32204 choke me 32205 #endif 32206 32207 ; 32208 return 0; 32209 } 32210 _ACEOF 32211 if ac_fn_cxx_try_compile "$LINENO"; then : 32212 ac_compiler_gnu=yes 32213 else 32214 ac_compiler_gnu=no 32215 fi 32216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32217 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 32218 32219 fi 32220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 32221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 32222 if test $ac_compiler_gnu = yes; then 32223 GXX=yes 32224 else 32225 GXX= 32226 fi 32227 ac_test_CXXFLAGS=${CXXFLAGS+set} 32228 ac_save_CXXFLAGS=$CXXFLAGS 32229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 32230 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 32231 if ${ac_cv_prog_cxx_g+:} false; then : 32232 $as_echo_n "(cached) " >&6 32233 else 32234 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 32235 ac_cxx_werror_flag=yes 32236 ac_cv_prog_cxx_g=no 32237 CXXFLAGS="-g" 32238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32239 /* end confdefs.h. */ 32240 32241 int 32242 main () 32243 { 32244 32245 ; 32246 return 0; 32247 } 32248 _ACEOF 32249 if ac_fn_cxx_try_compile "$LINENO"; then : 32250 ac_cv_prog_cxx_g=yes 32251 else 32252 CXXFLAGS="" 32253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32254 /* end confdefs.h. */ 32255 32256 int 32257 main () 32258 { 32259 32260 ; 32261 return 0; 32262 } 32263 _ACEOF 32264 if ac_fn_cxx_try_compile "$LINENO"; then : 32265 32266 else 32267 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 32268 CXXFLAGS="-g" 32269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32270 /* end confdefs.h. */ 32271 32272 int 32273 main () 32274 { 32275 32276 ; 32277 return 0; 32278 } 32279 _ACEOF 32280 if ac_fn_cxx_try_compile "$LINENO"; then : 32281 ac_cv_prog_cxx_g=yes 32282 fi 32283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32284 fi 32285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32286 fi 32287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32288 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 32289 fi 32290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 32291 $as_echo "$ac_cv_prog_cxx_g" >&6; } 32292 if test "$ac_test_CXXFLAGS" = set; then 32293 CXXFLAGS=$ac_save_CXXFLAGS 32294 elif test $ac_cv_prog_cxx_g = yes; then 32295 if test "$GXX" = yes; then 32296 CXXFLAGS="-g -O2" 32297 else 32298 CXXFLAGS="-g" 32299 fi 32300 else 32301 if test "$GXX" = yes; then 32302 CXXFLAGS="-O2" 32303 else 32304 CXXFLAGS= 32305 fi 32306 fi 32307 ac_ext=cpp 32308 ac_cpp='$CXXCPP $CPPFLAGS' 32309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32312 32313 32314 ### Locate other tools 32315 32316 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 32317 ac_ext=m 32318 ac_cpp='$OBJCPP $CPPFLAGS' 32319 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32320 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32321 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32322 if test -n "$ac_tool_prefix"; then 32323 for ac_prog in gcc objcc objc cc CC 32324 do 32325 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32326 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32328 $as_echo_n "checking for $ac_word... " >&6; } 32329 if ${ac_cv_prog_OBJC+:} false; then : 32330 $as_echo_n "(cached) " >&6 32331 else 32332 if test -n "$OBJC"; then 32333 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32334 else 32335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32336 for as_dir in $PATH 32337 do 32338 IFS=$as_save_IFS 32339 test -z "$as_dir" && as_dir=. 32340 for ac_exec_ext in '' $ac_executable_extensions; do 32341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32342 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32344 break 2 32345 fi 32346 done 32347 done 32348 IFS=$as_save_IFS 32349 32350 fi 32351 fi 32352 OBJC=$ac_cv_prog_OBJC 32353 if test -n "$OBJC"; then 32354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32355 $as_echo "$OBJC" >&6; } 32356 else 32357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32358 $as_echo "no" >&6; } 32359 fi 32360 32361 32362 test -n "$OBJC" && break 32363 done 32364 fi 32365 if test -z "$OBJC"; then 32366 ac_ct_OBJC=$OBJC 32367 for ac_prog in gcc objcc objc cc CC 32368 do 32369 # Extract the first word of "$ac_prog", so it can be a program name with args. 32370 set dummy $ac_prog; ac_word=$2 32371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32372 $as_echo_n "checking for $ac_word... " >&6; } 32373 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32374 $as_echo_n "(cached) " >&6 32375 else 32376 if test -n "$ac_ct_OBJC"; then 32377 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32378 else 32379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32380 for as_dir in $PATH 32381 do 32382 IFS=$as_save_IFS 32383 test -z "$as_dir" && as_dir=. 32384 for ac_exec_ext in '' $ac_executable_extensions; do 32385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32386 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32388 break 2 32389 fi 32390 done 32391 done 32392 IFS=$as_save_IFS 32393 32394 fi 32395 fi 32396 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32397 if test -n "$ac_ct_OBJC"; then 32398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32399 $as_echo "$ac_ct_OBJC" >&6; } 32400 else 32401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32402 $as_echo "no" >&6; } 32403 fi 32404 32405 32406 test -n "$ac_ct_OBJC" && break 32407 done 32408 32409 if test "x$ac_ct_OBJC" = x; then 32410 OBJC="gcc" 32411 else 32412 case $cross_compiling:$ac_tool_warned in 32413 yes:) 32414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32415 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32416 ac_tool_warned=yes ;; 32417 esac 32418 OBJC=$ac_ct_OBJC 32419 fi 32420 fi 32421 32422 # Provide some information about the compiler. 32423 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32424 set X $ac_compile 32425 ac_compiler=$2 32426 for ac_option in --version -v -V -qversion; do 32427 { { ac_try="$ac_compiler $ac_option >&5" 32428 case "(($ac_try" in 32429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32430 *) ac_try_echo=$ac_try;; 32431 esac 32432 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32433 $as_echo "$ac_try_echo"; } >&5 32434 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32435 ac_status=$? 32436 if test -s conftest.err; then 32437 sed '10a\ 32438 ... rest of stderr output deleted ... 32439 10q' conftest.err >conftest.er1 32440 cat conftest.er1 >&5 32441 fi 32442 rm -f conftest.er1 conftest.err 32443 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32444 test $ac_status = 0; } 32445 done 32446 32447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32448 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32449 if ${ac_cv_objc_compiler_gnu+:} false; then : 32450 $as_echo_n "(cached) " >&6 32451 else 32452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32453 /* end confdefs.h. */ 32454 32455 int 32456 main () 32457 { 32458 #ifndef __GNUC__ 32459 choke me 32460 #endif 32461 32462 ; 32463 return 0; 32464 } 32465 _ACEOF 32466 if ac_fn_objc_try_compile "$LINENO"; then : 32467 ac_compiler_gnu=yes 32468 else 32469 ac_compiler_gnu=no 32470 fi 32471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32472 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32473 32474 fi 32475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32476 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32477 if test $ac_compiler_gnu = yes; then 32478 GOBJC=yes 32479 else 32480 GOBJC= 32481 fi 32482 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32483 ac_save_OBJCFLAGS=$OBJCFLAGS 32484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32485 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32486 if ${ac_cv_prog_objc_g+:} false; then : 32487 $as_echo_n "(cached) " >&6 32488 else 32489 ac_save_objc_werror_flag=$ac_objc_werror_flag 32490 ac_objc_werror_flag=yes 32491 ac_cv_prog_objc_g=no 32492 OBJCFLAGS="-g" 32493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32494 /* end confdefs.h. */ 32495 32496 int 32497 main () 32498 { 32499 32500 ; 32501 return 0; 32502 } 32503 _ACEOF 32504 if ac_fn_objc_try_compile "$LINENO"; then : 32505 ac_cv_prog_objc_g=yes 32506 else 32507 OBJCFLAGS="" 32508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32509 /* end confdefs.h. */ 32510 32511 int 32512 main () 32513 { 32514 32515 ; 32516 return 0; 32517 } 32518 _ACEOF 32519 if ac_fn_objc_try_compile "$LINENO"; then : 32520 32521 else 32522 ac_objc_werror_flag=$ac_save_objc_werror_flag 32523 OBJCFLAGS="-g" 32524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32525 /* end confdefs.h. */ 32526 32527 int 32528 main () 32529 { 32530 32531 ; 32532 return 0; 32533 } 32534 _ACEOF 32535 if ac_fn_objc_try_compile "$LINENO"; then : 32536 ac_cv_prog_objc_g=yes 32537 fi 32538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32539 fi 32540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32541 fi 32542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32543 ac_objc_werror_flag=$ac_save_objc_werror_flag 32544 fi 32545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 32546 $as_echo "$ac_cv_prog_objc_g" >&6; } 32547 if test "$ac_test_OBJCFLAGS" = set; then 32548 OBJCFLAGS=$ac_save_OBJCFLAGS 32549 elif test $ac_cv_prog_objc_g = yes; then 32550 if test "$GOBJC" = yes; then 32551 OBJCFLAGS="-g -O2" 32552 else 32553 OBJCFLAGS="-g" 32554 fi 32555 else 32556 if test "$GOBJC" = yes; then 32557 OBJCFLAGS="-O2" 32558 else 32559 OBJCFLAGS= 32560 fi 32561 fi 32562 ac_ext=cpp 32563 ac_cpp='$CXXCPP $CPPFLAGS' 32564 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32565 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32566 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 32567 32568 32569 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32570 32571 # First separate the path from the arguments. This will split at the first 32572 # space. 32573 complete="$OBJC" 32574 path="${complete%% *}" 32575 tmp="$complete EOL" 32576 arguments="${tmp#* }" 32577 32578 # Input might be given as Windows format, start by converting to 32579 # unix format. 32580 new_path=`$CYGPATH -u "$path"` 32581 32582 # Now try to locate executable using which 32583 new_path=`$WHICH "$new_path" 2> /dev/null` 32584 # bat and cmd files are not always considered executable in cygwin causing which 32585 # to not find them 32586 if test "x$new_path" = x \ 32587 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32588 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32589 new_path=`$CYGPATH -u "$path"` 32590 fi 32591 if test "x$new_path" = x; then 32592 # Oops. Which didn't find the executable. 32593 # The splitting of arguments from the executable at a space might have been incorrect, 32594 # since paths with space are more likely in Windows. Give it another try with the whole 32595 # argument. 32596 path="$complete" 32597 arguments="EOL" 32598 new_path=`$CYGPATH -u "$path"` 32599 new_path=`$WHICH "$new_path" 2> /dev/null` 32600 # bat and cmd files are not always considered executable in cygwin causing which 32601 # to not find them 32602 if test "x$new_path" = x \ 32603 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32604 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32605 new_path=`$CYGPATH -u "$path"` 32606 fi 32607 if test "x$new_path" = x; then 32608 # It's still not found. Now this is an unrecoverable error. 32609 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32610 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32611 has_space=`$ECHO "$complete" | $GREP " "` 32612 if test "x$has_space" != x; then 32613 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32614 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32615 fi 32616 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32617 fi 32618 fi 32619 32620 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32621 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32622 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32623 # "foo.exe" is OK but "foo" is an error. 32624 # 32625 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32626 # It is also a way to make sure we got the proper file name for the real test later on. 32627 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32628 if test "x$test_shortpath" = x; then 32629 # Short path failed, file does not exist as specified. 32630 # Try adding .exe or .cmd 32631 if test -f "${new_path}.exe"; then 32632 input_to_shortpath="${new_path}.exe" 32633 elif test -f "${new_path}.cmd"; then 32634 input_to_shortpath="${new_path}.cmd" 32635 else 32636 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 32637 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 32638 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32639 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32640 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32641 fi 32642 else 32643 input_to_shortpath="$new_path" 32644 fi 32645 32646 # Call helper function which possibly converts this using DOS-style short mode. 32647 # If so, the updated path is stored in $new_path. 32648 new_path="$input_to_shortpath" 32649 32650 input_path="$input_to_shortpath" 32651 # Check if we need to convert this using DOS-style short mode. If the path 32652 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32653 # take no chances and rewrite it. 32654 # Note: m4 eats our [], so we need to use [ and ] instead. 32655 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32656 if test "x$has_forbidden_chars" != x; then 32657 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32658 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32659 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32660 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32661 # Going to short mode and back again did indeed matter. Since short mode is 32662 # case insensitive, let's make it lowercase to improve readability. 32663 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32664 # Now convert it back to Unix-stile (cygpath) 32665 input_path=`$CYGPATH -u "$shortmode_path"` 32666 new_path="$input_path" 32667 fi 32668 fi 32669 32670 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32671 if test "x$test_cygdrive_prefix" = x; then 32672 # As a simple fix, exclude /usr/bin since it's not a real path. 32673 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32674 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32675 # a path prefixed by /cygdrive for fixpath to work. 32676 new_path="$CYGWIN_ROOT_PATH$input_path" 32677 fi 32678 fi 32679 32680 # remove trailing .exe if any 32681 new_path="${new_path/%.exe/}" 32682 32683 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32684 32685 # First separate the path from the arguments. This will split at the first 32686 # space. 32687 complete="$OBJC" 32688 path="${complete%% *}" 32689 tmp="$complete EOL" 32690 arguments="${tmp#* }" 32691 32692 # Input might be given as Windows format, start by converting to 32693 # unix format. 32694 new_path="$path" 32695 32696 windows_path="$new_path" 32697 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32698 unix_path=`$CYGPATH -u "$windows_path"` 32699 new_path="$unix_path" 32700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32701 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32702 new_path="$unix_path" 32703 fi 32704 32705 32706 # Now try to locate executable using which 32707 new_path=`$WHICH "$new_path" 2> /dev/null` 32708 32709 if test "x$new_path" = x; then 32710 # Oops. Which didn't find the executable. 32711 # The splitting of arguments from the executable at a space might have been incorrect, 32712 # since paths with space are more likely in Windows. Give it another try with the whole 32713 # argument. 32714 path="$complete" 32715 arguments="EOL" 32716 new_path="$path" 32717 32718 windows_path="$new_path" 32719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32720 unix_path=`$CYGPATH -u "$windows_path"` 32721 new_path="$unix_path" 32722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32724 new_path="$unix_path" 32725 fi 32726 32727 32728 new_path=`$WHICH "$new_path" 2> /dev/null` 32729 32730 if test "x$new_path" = x; then 32731 # It's still not found. Now this is an unrecoverable error. 32732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32733 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32734 has_space=`$ECHO "$complete" | $GREP " "` 32735 if test "x$has_space" != x; then 32736 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32737 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32738 fi 32739 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32740 fi 32741 fi 32742 32743 # Now new_path has a complete unix path to the binary 32744 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32745 # Keep paths in /bin as-is, but remove trailing .exe if any 32746 new_path="${new_path/%.exe/}" 32747 # Do not save /bin paths to all_fixpath_prefixes! 32748 else 32749 # Not in mixed or Windows style, start by that. 32750 new_path=`cmd //c echo $new_path` 32751 32752 input_path="$new_path" 32753 # Check if we need to convert this using DOS-style short mode. If the path 32754 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32755 # take no chances and rewrite it. 32756 # Note: m4 eats our [], so we need to use [ and ] instead. 32757 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32758 if test "x$has_forbidden_chars" != x; then 32759 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32760 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32761 fi 32762 32763 # Output is in $new_path 32764 32765 windows_path="$new_path" 32766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32767 unix_path=`$CYGPATH -u "$windows_path"` 32768 new_path="$unix_path" 32769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32771 new_path="$unix_path" 32772 fi 32773 32774 # remove trailing .exe if any 32775 new_path="${new_path/%.exe/}" 32776 32777 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32778 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32779 fi 32780 32781 else 32782 # We're on a posix platform. Hooray! :) 32783 # First separate the path from the arguments. This will split at the first 32784 # space. 32785 complete="$OBJC" 32786 path="${complete%% *}" 32787 tmp="$complete EOL" 32788 arguments="${tmp#* }" 32789 32790 # Cannot rely on the command "which" here since it doesn't always work. 32791 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32792 if test -z "$is_absolute_path"; then 32793 # Path to executable is not absolute. Find it. 32794 IFS_save="$IFS" 32795 IFS=: 32796 for p in $PATH; do 32797 if test -f "$p/$path" && test -x "$p/$path"; then 32798 new_path="$p/$path" 32799 break 32800 fi 32801 done 32802 IFS="$IFS_save" 32803 else 32804 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJC (as $path) failed, using $path directly." >&5 32805 $as_echo "$as_me: Resolving OBJC (as $path) failed, using $path directly." >&6;} 32806 new_path="$path" 32807 fi 32808 32809 if test "x$new_path" = x; then 32810 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 32811 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 32812 has_space=`$ECHO "$complete" | $GREP " "` 32813 if test "x$has_space" != x; then 32814 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32815 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32816 fi 32817 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 32818 fi 32819 fi 32820 32821 # Now join together the path and the arguments once again 32822 if test "x$arguments" != xEOL; then 32823 new_complete="$new_path ${arguments% *}" 32824 else 32825 new_complete="$new_path" 32826 fi 32827 32828 if test "x$complete" != "x$new_complete"; then 32829 OBJC="$new_complete" 32830 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 32831 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 32832 fi 32833 32834 else 32835 OBJC= 32836 fi 32837 32838 # Restore the flags to the user specified values. 32839 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 32840 CFLAGS="$ORG_CFLAGS" 32841 CXXFLAGS="$ORG_CXXFLAGS" 32842 OBJCFLAGS="$ORG_OBJCFLAGS" 32843 32844 LD="$CC" 32845 LDEXE="$CC" 32846 LDCXX="$CXX" 32847 LDEXECXX="$CXX" 32848 32849 # LDEXE is the linker to use, when creating executables. 32850 32851 # Linking C++ libraries. 32852 32853 # Linking C++ executables. 32854 32855 32856 if test "x$OPENJDK_TARGET_OS" != xwindows; then 32857 32858 32859 # Publish this variable in the help. 32860 32861 32862 if test "x$AR" = x; then 32863 # The variable is not set by user, try to locate tool using the code snippet 32864 if test -n "$ac_tool_prefix"; then 32865 for ac_prog in ar 32866 do 32867 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32868 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32870 $as_echo_n "checking for $ac_word... " >&6; } 32871 if ${ac_cv_prog_AR+:} false; then : 32872 $as_echo_n "(cached) " >&6 32873 else 32874 if test -n "$AR"; then 32875 ac_cv_prog_AR="$AR" # Let the user override the test. 32876 else 32877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32878 for as_dir in $PATH 32879 do 32880 IFS=$as_save_IFS 32881 test -z "$as_dir" && as_dir=. 32882 for ac_exec_ext in '' $ac_executable_extensions; do 32883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32884 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32886 break 2 32887 fi 32888 done 32889 done 32890 IFS=$as_save_IFS 32891 32892 fi 32893 fi 32894 AR=$ac_cv_prog_AR 32895 if test -n "$AR"; then 32896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32897 $as_echo "$AR" >&6; } 32898 else 32899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32900 $as_echo "no" >&6; } 32901 fi 32902 32903 32904 test -n "$AR" && break 32905 done 32906 fi 32907 if test -z "$AR"; then 32908 ac_ct_AR=$AR 32909 for ac_prog in ar 32910 do 32911 # Extract the first word of "$ac_prog", so it can be a program name with args. 32912 set dummy $ac_prog; ac_word=$2 32913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32914 $as_echo_n "checking for $ac_word... " >&6; } 32915 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32916 $as_echo_n "(cached) " >&6 32917 else 32918 if test -n "$ac_ct_AR"; then 32919 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32920 else 32921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32922 for as_dir in $PATH 32923 do 32924 IFS=$as_save_IFS 32925 test -z "$as_dir" && as_dir=. 32926 for ac_exec_ext in '' $ac_executable_extensions; do 32927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32928 ac_cv_prog_ac_ct_AR="$ac_prog" 32929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32930 break 2 32931 fi 32932 done 32933 done 32934 IFS=$as_save_IFS 32935 32936 fi 32937 fi 32938 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32939 if test -n "$ac_ct_AR"; then 32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32941 $as_echo "$ac_ct_AR" >&6; } 32942 else 32943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32944 $as_echo "no" >&6; } 32945 fi 32946 32947 32948 test -n "$ac_ct_AR" && break 32949 done 32950 32951 if test "x$ac_ct_AR" = x; then 32952 AR="" 32953 else 32954 case $cross_compiling:$ac_tool_warned in 32955 yes:) 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32957 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32958 ac_tool_warned=yes ;; 32959 esac 32960 AR=$ac_ct_AR 32961 fi 32962 fi 32963 32964 else 32965 # The variable is set, but is it from the command line or the environment? 32966 32967 # Try to remove the string !AR! from our list. 32968 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32969 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32970 # If it failed, the variable was not from the command line. Ignore it, 32971 # but warn the user (except for BASH, which is always set by the calling BASH). 32972 if test "xAR" != xBASH; then 32973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32974 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32975 fi 32976 # Try to locate tool using the code snippet 32977 if test -n "$ac_tool_prefix"; then 32978 for ac_prog in ar 32979 do 32980 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32981 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32983 $as_echo_n "checking for $ac_word... " >&6; } 32984 if ${ac_cv_prog_AR+:} false; then : 32985 $as_echo_n "(cached) " >&6 32986 else 32987 if test -n "$AR"; then 32988 ac_cv_prog_AR="$AR" # Let the user override the test. 32989 else 32990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32991 for as_dir in $PATH 32992 do 32993 IFS=$as_save_IFS 32994 test -z "$as_dir" && as_dir=. 32995 for ac_exec_ext in '' $ac_executable_extensions; do 32996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32997 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32999 break 2 33000 fi 33001 done 33002 done 33003 IFS=$as_save_IFS 33004 33005 fi 33006 fi 33007 AR=$ac_cv_prog_AR 33008 if test -n "$AR"; then 33009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33010 $as_echo "$AR" >&6; } 33011 else 33012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33013 $as_echo "no" >&6; } 33014 fi 33015 33016 33017 test -n "$AR" && break 33018 done 33019 fi 33020 if test -z "$AR"; then 33021 ac_ct_AR=$AR 33022 for ac_prog in ar 33023 do 33024 # Extract the first word of "$ac_prog", so it can be a program name with args. 33025 set dummy $ac_prog; ac_word=$2 33026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33027 $as_echo_n "checking for $ac_word... " >&6; } 33028 if ${ac_cv_prog_ac_ct_AR+:} false; then : 33029 $as_echo_n "(cached) " >&6 33030 else 33031 if test -n "$ac_ct_AR"; then 33032 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 33033 else 33034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33035 for as_dir in $PATH 33036 do 33037 IFS=$as_save_IFS 33038 test -z "$as_dir" && as_dir=. 33039 for ac_exec_ext in '' $ac_executable_extensions; do 33040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33041 ac_cv_prog_ac_ct_AR="$ac_prog" 33042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33043 break 2 33044 fi 33045 done 33046 done 33047 IFS=$as_save_IFS 33048 33049 fi 33050 fi 33051 ac_ct_AR=$ac_cv_prog_ac_ct_AR 33052 if test -n "$ac_ct_AR"; then 33053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 33054 $as_echo "$ac_ct_AR" >&6; } 33055 else 33056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33057 $as_echo "no" >&6; } 33058 fi 33059 33060 33061 test -n "$ac_ct_AR" && break 33062 done 33063 33064 if test "x$ac_ct_AR" = x; then 33065 AR="" 33066 else 33067 case $cross_compiling:$ac_tool_warned in 33068 yes:) 33069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 33070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 33071 ac_tool_warned=yes ;; 33072 esac 33073 AR=$ac_ct_AR 33074 fi 33075 fi 33076 33077 else 33078 # If it succeeded, then it was overridden by the user. We will use it 33079 # for the tool. 33080 33081 # First remove it from the list of overridden variables, so we can test 33082 # for unknown variables in the end. 33083 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33084 33085 # Check if the provided tool contains a complete path. 33086 tool_specified="$AR" 33087 tool_basename="${tool_specified##*/}" 33088 if test "x$tool_basename" = "x$tool_specified"; then 33089 # A command without a complete path is provided, search $PATH. 33090 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 33091 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 33092 # Extract the first word of "$tool_basename", so it can be a program name with args. 33093 set dummy $tool_basename; ac_word=$2 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33095 $as_echo_n "checking for $ac_word... " >&6; } 33096 if ${ac_cv_path_AR+:} false; then : 33097 $as_echo_n "(cached) " >&6 33098 else 33099 case $AR in 33100 [\\/]* | ?:[\\/]*) 33101 ac_cv_path_AR="$AR" # Let the user override the test with a path. 33102 ;; 33103 *) 33104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33105 for as_dir in $PATH 33106 do 33107 IFS=$as_save_IFS 33108 test -z "$as_dir" && as_dir=. 33109 for ac_exec_ext in '' $ac_executable_extensions; do 33110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33111 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 33112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33113 break 2 33114 fi 33115 done 33116 done 33117 IFS=$as_save_IFS 33118 33119 ;; 33120 esac 33121 fi 33122 AR=$ac_cv_path_AR 33123 if test -n "$AR"; then 33124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 33125 $as_echo "$AR" >&6; } 33126 else 33127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33128 $as_echo "no" >&6; } 33129 fi 33130 33131 33132 if test "x$AR" = x; then 33133 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33134 fi 33135 else 33136 # Otherwise we believe it is a complete path. Use it as it is. 33137 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 33138 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 33139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 33140 $as_echo_n "checking for AR... " >&6; } 33141 if test ! -x "$tool_specified"; then 33142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33143 $as_echo "not found" >&6; } 33144 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 33145 fi 33146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33147 $as_echo "$tool_specified" >&6; } 33148 fi 33149 fi 33150 fi 33151 33152 33153 33154 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33155 33156 # First separate the path from the arguments. This will split at the first 33157 # space. 33158 complete="$AR" 33159 path="${complete%% *}" 33160 tmp="$complete EOL" 33161 arguments="${tmp#* }" 33162 33163 # Input might be given as Windows format, start by converting to 33164 # unix format. 33165 new_path=`$CYGPATH -u "$path"` 33166 33167 # Now try to locate executable using which 33168 new_path=`$WHICH "$new_path" 2> /dev/null` 33169 # bat and cmd files are not always considered executable in cygwin causing which 33170 # to not find them 33171 if test "x$new_path" = x \ 33172 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33173 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33174 new_path=`$CYGPATH -u "$path"` 33175 fi 33176 if test "x$new_path" = x; then 33177 # Oops. Which didn't find the executable. 33178 # The splitting of arguments from the executable at a space might have been incorrect, 33179 # since paths with space are more likely in Windows. Give it another try with the whole 33180 # argument. 33181 path="$complete" 33182 arguments="EOL" 33183 new_path=`$CYGPATH -u "$path"` 33184 new_path=`$WHICH "$new_path" 2> /dev/null` 33185 # bat and cmd files are not always considered executable in cygwin causing which 33186 # to not find them 33187 if test "x$new_path" = x \ 33188 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33189 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33190 new_path=`$CYGPATH -u "$path"` 33191 fi 33192 if test "x$new_path" = x; then 33193 # It's still not found. Now this is an unrecoverable error. 33194 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33195 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33196 has_space=`$ECHO "$complete" | $GREP " "` 33197 if test "x$has_space" != x; then 33198 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33199 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33200 fi 33201 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33202 fi 33203 fi 33204 33205 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33206 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33207 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33208 # "foo.exe" is OK but "foo" is an error. 33209 # 33210 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33211 # It is also a way to make sure we got the proper file name for the real test later on. 33212 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33213 if test "x$test_shortpath" = x; then 33214 # Short path failed, file does not exist as specified. 33215 # Try adding .exe or .cmd 33216 if test -f "${new_path}.exe"; then 33217 input_to_shortpath="${new_path}.exe" 33218 elif test -f "${new_path}.cmd"; then 33219 input_to_shortpath="${new_path}.cmd" 33220 else 33221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 33222 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 33223 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33224 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33225 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33226 fi 33227 else 33228 input_to_shortpath="$new_path" 33229 fi 33230 33231 # Call helper function which possibly converts this using DOS-style short mode. 33232 # If so, the updated path is stored in $new_path. 33233 new_path="$input_to_shortpath" 33234 33235 input_path="$input_to_shortpath" 33236 # Check if we need to convert this using DOS-style short mode. If the path 33237 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33238 # take no chances and rewrite it. 33239 # Note: m4 eats our [], so we need to use [ and ] instead. 33240 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33241 if test "x$has_forbidden_chars" != x; then 33242 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33243 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33244 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33245 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33246 # Going to short mode and back again did indeed matter. Since short mode is 33247 # case insensitive, let's make it lowercase to improve readability. 33248 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33249 # Now convert it back to Unix-stile (cygpath) 33250 input_path=`$CYGPATH -u "$shortmode_path"` 33251 new_path="$input_path" 33252 fi 33253 fi 33254 33255 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33256 if test "x$test_cygdrive_prefix" = x; then 33257 # As a simple fix, exclude /usr/bin since it's not a real path. 33258 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33259 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33260 # a path prefixed by /cygdrive for fixpath to work. 33261 new_path="$CYGWIN_ROOT_PATH$input_path" 33262 fi 33263 fi 33264 33265 # remove trailing .exe if any 33266 new_path="${new_path/%.exe/}" 33267 33268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33269 33270 # First separate the path from the arguments. This will split at the first 33271 # space. 33272 complete="$AR" 33273 path="${complete%% *}" 33274 tmp="$complete EOL" 33275 arguments="${tmp#* }" 33276 33277 # Input might be given as Windows format, start by converting to 33278 # unix format. 33279 new_path="$path" 33280 33281 windows_path="$new_path" 33282 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33283 unix_path=`$CYGPATH -u "$windows_path"` 33284 new_path="$unix_path" 33285 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33286 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33287 new_path="$unix_path" 33288 fi 33289 33290 33291 # Now try to locate executable using which 33292 new_path=`$WHICH "$new_path" 2> /dev/null` 33293 33294 if test "x$new_path" = x; then 33295 # Oops. Which didn't find the executable. 33296 # The splitting of arguments from the executable at a space might have been incorrect, 33297 # since paths with space are more likely in Windows. Give it another try with the whole 33298 # argument. 33299 path="$complete" 33300 arguments="EOL" 33301 new_path="$path" 33302 33303 windows_path="$new_path" 33304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33305 unix_path=`$CYGPATH -u "$windows_path"` 33306 new_path="$unix_path" 33307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33309 new_path="$unix_path" 33310 fi 33311 33312 33313 new_path=`$WHICH "$new_path" 2> /dev/null` 33314 33315 if test "x$new_path" = x; then 33316 # It's still not found. Now this is an unrecoverable error. 33317 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33318 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33319 has_space=`$ECHO "$complete" | $GREP " "` 33320 if test "x$has_space" != x; then 33321 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33322 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33323 fi 33324 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33325 fi 33326 fi 33327 33328 # Now new_path has a complete unix path to the binary 33329 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33330 # Keep paths in /bin as-is, but remove trailing .exe if any 33331 new_path="${new_path/%.exe/}" 33332 # Do not save /bin paths to all_fixpath_prefixes! 33333 else 33334 # Not in mixed or Windows style, start by that. 33335 new_path=`cmd //c echo $new_path` 33336 33337 input_path="$new_path" 33338 # Check if we need to convert this using DOS-style short mode. If the path 33339 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33340 # take no chances and rewrite it. 33341 # Note: m4 eats our [], so we need to use [ and ] instead. 33342 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33343 if test "x$has_forbidden_chars" != x; then 33344 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33345 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33346 fi 33347 33348 # Output is in $new_path 33349 33350 windows_path="$new_path" 33351 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33352 unix_path=`$CYGPATH -u "$windows_path"` 33353 new_path="$unix_path" 33354 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33355 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33356 new_path="$unix_path" 33357 fi 33358 33359 # remove trailing .exe if any 33360 new_path="${new_path/%.exe/}" 33361 33362 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33363 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33364 fi 33365 33366 else 33367 # We're on a posix platform. Hooray! :) 33368 # First separate the path from the arguments. This will split at the first 33369 # space. 33370 complete="$AR" 33371 path="${complete%% *}" 33372 tmp="$complete EOL" 33373 arguments="${tmp#* }" 33374 33375 # Cannot rely on the command "which" here since it doesn't always work. 33376 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33377 if test -z "$is_absolute_path"; then 33378 # Path to executable is not absolute. Find it. 33379 IFS_save="$IFS" 33380 IFS=: 33381 for p in $PATH; do 33382 if test -f "$p/$path" && test -x "$p/$path"; then 33383 new_path="$p/$path" 33384 break 33385 fi 33386 done 33387 IFS="$IFS_save" 33388 else 33389 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AR (as $path) failed, using $path directly." >&5 33390 $as_echo "$as_me: Resolving AR (as $path) failed, using $path directly." >&6;} 33391 new_path="$path" 33392 fi 33393 33394 if test "x$new_path" = x; then 33395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 33396 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 33397 has_space=`$ECHO "$complete" | $GREP " "` 33398 if test "x$has_space" != x; then 33399 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33400 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33401 fi 33402 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 33403 fi 33404 fi 33405 33406 # Now join together the path and the arguments once again 33407 if test "x$arguments" != xEOL; then 33408 new_complete="$new_path ${arguments% *}" 33409 else 33410 new_complete="$new_path" 33411 fi 33412 33413 if test "x$complete" != "x$new_complete"; then 33414 AR="$new_complete" 33415 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 33416 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 33417 fi 33418 33419 fi 33420 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 33421 ARFLAGS="-r" 33422 elif test "x$OPENJDK_TARGET_OS" = xaix; then 33423 ARFLAGS="-X64" 33424 else 33425 ARFLAGS="" 33426 fi 33427 33428 33429 # For hotspot, we need these in Windows mixed path; other platforms keep them the same 33430 HOTSPOT_CXX="$CXX" 33431 HOTSPOT_LD="$LD" 33432 33433 33434 33435 COMPILER_NAME=gcc 33436 COMPILER_TYPE=CC 33437 if test "x$OPENJDK_TARGET_OS" = xwindows; then : 33438 33439 # For now, assume that we are always compiling using cl.exe. 33440 CC_OUT_OPTION=-Fo 33441 EXE_OUT_OPTION=-out: 33442 LD_OUT_OPTION=-out: 33443 AR_OUT_OPTION=-out: 33444 # On Windows, reject /usr/bin/link (as determined in CYGWIN_LINK), which is a cygwin 33445 # program for something completely different. 33446 # Extract the first word of "link", so it can be a program name with args. 33447 set dummy link; ac_word=$2 33448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33449 $as_echo_n "checking for $ac_word... " >&6; } 33450 if ${ac_cv_prog_WINLD+:} false; then : 33451 $as_echo_n "(cached) " >&6 33452 else 33453 if test -n "$WINLD"; then 33454 ac_cv_prog_WINLD="$WINLD" # Let the user override the test. 33455 else 33456 ac_prog_rejected=no 33457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33458 for as_dir in $PATH 33459 do 33460 IFS=$as_save_IFS 33461 test -z "$as_dir" && as_dir=. 33462 for ac_exec_ext in '' $ac_executable_extensions; do 33463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33464 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 33465 ac_prog_rejected=yes 33466 continue 33467 fi 33468 ac_cv_prog_WINLD="link" 33469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33470 break 2 33471 fi 33472 done 33473 done 33474 IFS=$as_save_IFS 33475 33476 if test $ac_prog_rejected = yes; then 33477 # We found a bogon in the path, so make sure we never use it. 33478 set dummy $ac_cv_prog_WINLD 33479 shift 33480 if test $# != 0; then 33481 # We chose a different compiler from the bogus one. 33482 # However, it has the same basename, so the bogon will be chosen 33483 # first if we set WINLD to just the basename; use the full file name. 33484 shift 33485 ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@" 33486 fi 33487 fi 33488 fi 33489 fi 33490 WINLD=$ac_cv_prog_WINLD 33491 if test -n "$WINLD"; then 33492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5 33493 $as_echo "$WINLD" >&6; } 33494 else 33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33496 $as_echo "no" >&6; } 33497 fi 33498 33499 33500 # Since we must ignore the first found link, WINLD will contain 33501 # the full path to the link.exe program. 33502 33503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33504 33505 # First separate the path from the arguments. This will split at the first 33506 # space. 33507 complete="$WINLD" 33508 path="${complete%% *}" 33509 tmp="$complete EOL" 33510 arguments="${tmp#* }" 33511 33512 # Input might be given as Windows format, start by converting to 33513 # unix format. 33514 new_path=`$CYGPATH -u "$path"` 33515 33516 # Now try to locate executable using which 33517 new_path=`$WHICH "$new_path" 2> /dev/null` 33518 # bat and cmd files are not always considered executable in cygwin causing which 33519 # to not find them 33520 if test "x$new_path" = x \ 33521 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33522 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33523 new_path=`$CYGPATH -u "$path"` 33524 fi 33525 if test "x$new_path" = x; then 33526 # Oops. Which didn't find the executable. 33527 # The splitting of arguments from the executable at a space might have been incorrect, 33528 # since paths with space are more likely in Windows. Give it another try with the whole 33529 # argument. 33530 path="$complete" 33531 arguments="EOL" 33532 new_path=`$CYGPATH -u "$path"` 33533 new_path=`$WHICH "$new_path" 2> /dev/null` 33534 # bat and cmd files are not always considered executable in cygwin causing which 33535 # to not find them 33536 if test "x$new_path" = x \ 33537 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33538 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33539 new_path=`$CYGPATH -u "$path"` 33540 fi 33541 if test "x$new_path" = x; then 33542 # It's still not found. Now this is an unrecoverable error. 33543 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 33544 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 33545 has_space=`$ECHO "$complete" | $GREP " "` 33546 if test "x$has_space" != x; then 33547 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33548 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33549 fi 33550 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 33551 fi 33552 fi 33553 33554 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33555 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33556 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33557 # "foo.exe" is OK but "foo" is an error. 33558 # 33559 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33560 # It is also a way to make sure we got the proper file name for the real test later on. 33561 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33562 if test "x$test_shortpath" = x; then 33563 # Short path failed, file does not exist as specified. 33564 # Try adding .exe or .cmd 33565 if test -f "${new_path}.exe"; then 33566 input_to_shortpath="${new_path}.exe" 33567 elif test -f "${new_path}.cmd"; then 33568 input_to_shortpath="${new_path}.cmd" 33569 else 33570 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$new_path\", is invalid." >&5 33571 $as_echo "$as_me: The path of WINLD, which resolves as \"$new_path\", is invalid." >&6;} 33572 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33573 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33574 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 33575 fi 33576 else 33577 input_to_shortpath="$new_path" 33578 fi 33579 33580 # Call helper function which possibly converts this using DOS-style short mode. 33581 # If so, the updated path is stored in $new_path. 33582 new_path="$input_to_shortpath" 33583 33584 input_path="$input_to_shortpath" 33585 # Check if we need to convert this using DOS-style short mode. If the path 33586 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33587 # take no chances and rewrite it. 33588 # Note: m4 eats our [], so we need to use [ and ] instead. 33589 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33590 if test "x$has_forbidden_chars" != x; then 33591 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33592 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33593 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33594 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33595 # Going to short mode and back again did indeed matter. Since short mode is 33596 # case insensitive, let's make it lowercase to improve readability. 33597 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33598 # Now convert it back to Unix-stile (cygpath) 33599 input_path=`$CYGPATH -u "$shortmode_path"` 33600 new_path="$input_path" 33601 fi 33602 fi 33603 33604 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33605 if test "x$test_cygdrive_prefix" = x; then 33606 # As a simple fix, exclude /usr/bin since it's not a real path. 33607 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33608 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33609 # a path prefixed by /cygdrive for fixpath to work. 33610 new_path="$CYGWIN_ROOT_PATH$input_path" 33611 fi 33612 fi 33613 33614 # remove trailing .exe if any 33615 new_path="${new_path/%.exe/}" 33616 33617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33618 33619 # First separate the path from the arguments. This will split at the first 33620 # space. 33621 complete="$WINLD" 33622 path="${complete%% *}" 33623 tmp="$complete EOL" 33624 arguments="${tmp#* }" 33625 33626 # Input might be given as Windows format, start by converting to 33627 # unix format. 33628 new_path="$path" 33629 33630 windows_path="$new_path" 33631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33632 unix_path=`$CYGPATH -u "$windows_path"` 33633 new_path="$unix_path" 33634 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33635 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33636 new_path="$unix_path" 33637 fi 33638 33639 33640 # Now try to locate executable using which 33641 new_path=`$WHICH "$new_path" 2> /dev/null` 33642 33643 if test "x$new_path" = x; then 33644 # Oops. Which didn't find the executable. 33645 # The splitting of arguments from the executable at a space might have been incorrect, 33646 # since paths with space are more likely in Windows. Give it another try with the whole 33647 # argument. 33648 path="$complete" 33649 arguments="EOL" 33650 new_path="$path" 33651 33652 windows_path="$new_path" 33653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33654 unix_path=`$CYGPATH -u "$windows_path"` 33655 new_path="$unix_path" 33656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33658 new_path="$unix_path" 33659 fi 33660 33661 33662 new_path=`$WHICH "$new_path" 2> /dev/null` 33663 33664 if test "x$new_path" = x; then 33665 # It's still not found. Now this is an unrecoverable error. 33666 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 33667 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 33668 has_space=`$ECHO "$complete" | $GREP " "` 33669 if test "x$has_space" != x; then 33670 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33671 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33672 fi 33673 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 33674 fi 33675 fi 33676 33677 # Now new_path has a complete unix path to the binary 33678 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33679 # Keep paths in /bin as-is, but remove trailing .exe if any 33680 new_path="${new_path/%.exe/}" 33681 # Do not save /bin paths to all_fixpath_prefixes! 33682 else 33683 # Not in mixed or Windows style, start by that. 33684 new_path=`cmd //c echo $new_path` 33685 33686 input_path="$new_path" 33687 # Check if we need to convert this using DOS-style short mode. If the path 33688 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33689 # take no chances and rewrite it. 33690 # Note: m4 eats our [], so we need to use [ and ] instead. 33691 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33692 if test "x$has_forbidden_chars" != x; then 33693 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33694 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33695 fi 33696 33697 # Output is in $new_path 33698 33699 windows_path="$new_path" 33700 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33701 unix_path=`$CYGPATH -u "$windows_path"` 33702 new_path="$unix_path" 33703 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33704 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33705 new_path="$unix_path" 33706 fi 33707 33708 # remove trailing .exe if any 33709 new_path="${new_path/%.exe/}" 33710 33711 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33712 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33713 fi 33714 33715 else 33716 # We're on a posix platform. Hooray! :) 33717 # First separate the path from the arguments. This will split at the first 33718 # space. 33719 complete="$WINLD" 33720 path="${complete%% *}" 33721 tmp="$complete EOL" 33722 arguments="${tmp#* }" 33723 33724 # Cannot rely on the command "which" here since it doesn't always work. 33725 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33726 if test -z "$is_absolute_path"; then 33727 # Path to executable is not absolute. Find it. 33728 IFS_save="$IFS" 33729 IFS=: 33730 for p in $PATH; do 33731 if test -f "$p/$path" && test -x "$p/$path"; then 33732 new_path="$p/$path" 33733 break 33734 fi 33735 done 33736 IFS="$IFS_save" 33737 else 33738 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINLD (as $path) failed, using $path directly." >&5 33739 $as_echo "$as_me: Resolving WINLD (as $path) failed, using $path directly." >&6;} 33740 new_path="$path" 33741 fi 33742 33743 if test "x$new_path" = x; then 33744 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINLD, which resolves as \"$complete\", is not found." >&5 33745 $as_echo "$as_me: The path of WINLD, which resolves as \"$complete\", is not found." >&6;} 33746 has_space=`$ECHO "$complete" | $GREP " "` 33747 if test "x$has_space" != x; then 33748 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33749 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33750 fi 33751 as_fn_error $? "Cannot locate the the path of WINLD" "$LINENO" 5 33752 fi 33753 fi 33754 33755 # Now join together the path and the arguments once again 33756 if test "x$arguments" != xEOL; then 33757 new_complete="$new_path ${arguments% *}" 33758 else 33759 new_complete="$new_path" 33760 fi 33761 33762 if test "x$complete" != "x$new_complete"; then 33763 WINLD="$new_complete" 33764 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINLD to \"$new_complete\"" >&5 33765 $as_echo "$as_me: Rewriting WINLD to \"$new_complete\"" >&6;} 33766 fi 33767 33768 printf "Windows linker was found at $WINLD\n" 33769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 33770 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 33771 "$WINLD" --version > /dev/null 33772 if test $? -eq 0 ; then 33773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33774 $as_echo "no" >&6; } 33775 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 33776 else 33777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 33778 $as_echo "yes" >&6; } 33779 fi 33780 LD="$WINLD" 33781 LDEXE="$WINLD" 33782 LDCXX="$WINLD" 33783 LDEXECXX="$WINLD" 33784 33785 # Extract the first word of "mt", so it can be a program name with args. 33786 set dummy mt; ac_word=$2 33787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33788 $as_echo_n "checking for $ac_word... " >&6; } 33789 if ${ac_cv_prog_MT+:} false; then : 33790 $as_echo_n "(cached) " >&6 33791 else 33792 if test -n "$MT"; then 33793 ac_cv_prog_MT="$MT" # Let the user override the test. 33794 else 33795 ac_prog_rejected=no 33796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33797 for as_dir in $PATH 33798 do 33799 IFS=$as_save_IFS 33800 test -z "$as_dir" && as_dir=. 33801 for ac_exec_ext in '' $ac_executable_extensions; do 33802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33803 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33804 ac_prog_rejected=yes 33805 continue 33806 fi 33807 ac_cv_prog_MT="mt" 33808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33809 break 2 33810 fi 33811 done 33812 done 33813 IFS=$as_save_IFS 33814 33815 if test $ac_prog_rejected = yes; then 33816 # We found a bogon in the path, so make sure we never use it. 33817 set dummy $ac_cv_prog_MT 33818 shift 33819 if test $# != 0; then 33820 # We chose a different compiler from the bogus one. 33821 # However, it has the same basename, so the bogon will be chosen 33822 # first if we set MT to just the basename; use the full file name. 33823 shift 33824 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33825 fi 33826 fi 33827 fi 33828 fi 33829 MT=$ac_cv_prog_MT 33830 if test -n "$MT"; then 33831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33832 $as_echo "$MT" >&6; } 33833 else 33834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33835 $as_echo "no" >&6; } 33836 fi 33837 33838 33839 33840 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33841 33842 # First separate the path from the arguments. This will split at the first 33843 # space. 33844 complete="$MT" 33845 path="${complete%% *}" 33846 tmp="$complete EOL" 33847 arguments="${tmp#* }" 33848 33849 # Input might be given as Windows format, start by converting to 33850 # unix format. 33851 new_path=`$CYGPATH -u "$path"` 33852 33853 # Now try to locate executable using which 33854 new_path=`$WHICH "$new_path" 2> /dev/null` 33855 # bat and cmd files are not always considered executable in cygwin causing which 33856 # to not find them 33857 if test "x$new_path" = x \ 33858 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33859 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33860 new_path=`$CYGPATH -u "$path"` 33861 fi 33862 if test "x$new_path" = x; then 33863 # Oops. Which didn't find the executable. 33864 # The splitting of arguments from the executable at a space might have been incorrect, 33865 # since paths with space are more likely in Windows. Give it another try with the whole 33866 # argument. 33867 path="$complete" 33868 arguments="EOL" 33869 new_path=`$CYGPATH -u "$path"` 33870 new_path=`$WHICH "$new_path" 2> /dev/null` 33871 # bat and cmd files are not always considered executable in cygwin causing which 33872 # to not find them 33873 if test "x$new_path" = x \ 33874 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33875 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33876 new_path=`$CYGPATH -u "$path"` 33877 fi 33878 if test "x$new_path" = x; then 33879 # It's still not found. Now this is an unrecoverable error. 33880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33881 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33882 has_space=`$ECHO "$complete" | $GREP " "` 33883 if test "x$has_space" != x; then 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33885 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33886 fi 33887 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33888 fi 33889 fi 33890 33891 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33892 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33893 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33894 # "foo.exe" is OK but "foo" is an error. 33895 # 33896 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33897 # It is also a way to make sure we got the proper file name for the real test later on. 33898 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33899 if test "x$test_shortpath" = x; then 33900 # Short path failed, file does not exist as specified. 33901 # Try adding .exe or .cmd 33902 if test -f "${new_path}.exe"; then 33903 input_to_shortpath="${new_path}.exe" 33904 elif test -f "${new_path}.cmd"; then 33905 input_to_shortpath="${new_path}.cmd" 33906 else 33907 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33908 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33909 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33910 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33911 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33912 fi 33913 else 33914 input_to_shortpath="$new_path" 33915 fi 33916 33917 # Call helper function which possibly converts this using DOS-style short mode. 33918 # If so, the updated path is stored in $new_path. 33919 new_path="$input_to_shortpath" 33920 33921 input_path="$input_to_shortpath" 33922 # Check if we need to convert this using DOS-style short mode. If the path 33923 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33924 # take no chances and rewrite it. 33925 # Note: m4 eats our [], so we need to use [ and ] instead. 33926 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33927 if test "x$has_forbidden_chars" != x; then 33928 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33929 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33930 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33931 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33932 # Going to short mode and back again did indeed matter. Since short mode is 33933 # case insensitive, let's make it lowercase to improve readability. 33934 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33935 # Now convert it back to Unix-stile (cygpath) 33936 input_path=`$CYGPATH -u "$shortmode_path"` 33937 new_path="$input_path" 33938 fi 33939 fi 33940 33941 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33942 if test "x$test_cygdrive_prefix" = x; then 33943 # As a simple fix, exclude /usr/bin since it's not a real path. 33944 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33945 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33946 # a path prefixed by /cygdrive for fixpath to work. 33947 new_path="$CYGWIN_ROOT_PATH$input_path" 33948 fi 33949 fi 33950 33951 # remove trailing .exe if any 33952 new_path="${new_path/%.exe/}" 33953 33954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33955 33956 # First separate the path from the arguments. This will split at the first 33957 # space. 33958 complete="$MT" 33959 path="${complete%% *}" 33960 tmp="$complete EOL" 33961 arguments="${tmp#* }" 33962 33963 # Input might be given as Windows format, start by converting to 33964 # unix format. 33965 new_path="$path" 33966 33967 windows_path="$new_path" 33968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33969 unix_path=`$CYGPATH -u "$windows_path"` 33970 new_path="$unix_path" 33971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33973 new_path="$unix_path" 33974 fi 33975 33976 33977 # Now try to locate executable using which 33978 new_path=`$WHICH "$new_path" 2> /dev/null` 33979 33980 if test "x$new_path" = x; then 33981 # Oops. Which didn't find the executable. 33982 # The splitting of arguments from the executable at a space might have been incorrect, 33983 # since paths with space are more likely in Windows. Give it another try with the whole 33984 # argument. 33985 path="$complete" 33986 arguments="EOL" 33987 new_path="$path" 33988 33989 windows_path="$new_path" 33990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33991 unix_path=`$CYGPATH -u "$windows_path"` 33992 new_path="$unix_path" 33993 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33994 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33995 new_path="$unix_path" 33996 fi 33997 33998 33999 new_path=`$WHICH "$new_path" 2> /dev/null` 34000 34001 if test "x$new_path" = x; then 34002 # It's still not found. Now this is an unrecoverable error. 34003 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34004 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34005 has_space=`$ECHO "$complete" | $GREP " "` 34006 if test "x$has_space" != x; then 34007 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34008 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34009 fi 34010 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34011 fi 34012 fi 34013 34014 # Now new_path has a complete unix path to the binary 34015 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34016 # Keep paths in /bin as-is, but remove trailing .exe if any 34017 new_path="${new_path/%.exe/}" 34018 # Do not save /bin paths to all_fixpath_prefixes! 34019 else 34020 # Not in mixed or Windows style, start by that. 34021 new_path=`cmd //c echo $new_path` 34022 34023 input_path="$new_path" 34024 # Check if we need to convert this using DOS-style short mode. If the path 34025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34026 # take no chances and rewrite it. 34027 # Note: m4 eats our [], so we need to use [ and ] instead. 34028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34029 if test "x$has_forbidden_chars" != x; then 34030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34031 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34032 fi 34033 34034 # Output is in $new_path 34035 34036 windows_path="$new_path" 34037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34038 unix_path=`$CYGPATH -u "$windows_path"` 34039 new_path="$unix_path" 34040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34042 new_path="$unix_path" 34043 fi 34044 34045 # remove trailing .exe if any 34046 new_path="${new_path/%.exe/}" 34047 34048 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34049 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34050 fi 34051 34052 else 34053 # We're on a posix platform. Hooray! :) 34054 # First separate the path from the arguments. This will split at the first 34055 # space. 34056 complete="$MT" 34057 path="${complete%% *}" 34058 tmp="$complete EOL" 34059 arguments="${tmp#* }" 34060 34061 # Cannot rely on the command "which" here since it doesn't always work. 34062 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34063 if test -z "$is_absolute_path"; then 34064 # Path to executable is not absolute. Find it. 34065 IFS_save="$IFS" 34066 IFS=: 34067 for p in $PATH; do 34068 if test -f "$p/$path" && test -x "$p/$path"; then 34069 new_path="$p/$path" 34070 break 34071 fi 34072 done 34073 IFS="$IFS_save" 34074 else 34075 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MT (as $path) failed, using $path directly." >&5 34076 $as_echo "$as_me: Resolving MT (as $path) failed, using $path directly." >&6;} 34077 new_path="$path" 34078 fi 34079 34080 if test "x$new_path" = x; then 34081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34082 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34083 has_space=`$ECHO "$complete" | $GREP " "` 34084 if test "x$has_space" != x; then 34085 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34086 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34087 fi 34088 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34089 fi 34090 fi 34091 34092 # Now join together the path and the arguments once again 34093 if test "x$arguments" != xEOL; then 34094 new_complete="$new_path ${arguments% *}" 34095 else 34096 new_complete="$new_path" 34097 fi 34098 34099 if test "x$complete" != "x$new_complete"; then 34100 MT="$new_complete" 34101 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34102 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34103 fi 34104 34105 # The resource compiler 34106 # Extract the first word of "rc", so it can be a program name with args. 34107 set dummy rc; ac_word=$2 34108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34109 $as_echo_n "checking for $ac_word... " >&6; } 34110 if ${ac_cv_prog_RC+:} false; then : 34111 $as_echo_n "(cached) " >&6 34112 else 34113 if test -n "$RC"; then 34114 ac_cv_prog_RC="$RC" # Let the user override the test. 34115 else 34116 ac_prog_rejected=no 34117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34118 for as_dir in $PATH 34119 do 34120 IFS=$as_save_IFS 34121 test -z "$as_dir" && as_dir=. 34122 for ac_exec_ext in '' $ac_executable_extensions; do 34123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34124 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34125 ac_prog_rejected=yes 34126 continue 34127 fi 34128 ac_cv_prog_RC="rc" 34129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34130 break 2 34131 fi 34132 done 34133 done 34134 IFS=$as_save_IFS 34135 34136 if test $ac_prog_rejected = yes; then 34137 # We found a bogon in the path, so make sure we never use it. 34138 set dummy $ac_cv_prog_RC 34139 shift 34140 if test $# != 0; then 34141 # We chose a different compiler from the bogus one. 34142 # However, it has the same basename, so the bogon will be chosen 34143 # first if we set RC to just the basename; use the full file name. 34144 shift 34145 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34146 fi 34147 fi 34148 fi 34149 fi 34150 RC=$ac_cv_prog_RC 34151 if test -n "$RC"; then 34152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34153 $as_echo "$RC" >&6; } 34154 else 34155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34156 $as_echo "no" >&6; } 34157 fi 34158 34159 34160 34161 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34162 34163 # First separate the path from the arguments. This will split at the first 34164 # space. 34165 complete="$RC" 34166 path="${complete%% *}" 34167 tmp="$complete EOL" 34168 arguments="${tmp#* }" 34169 34170 # Input might be given as Windows format, start by converting to 34171 # unix format. 34172 new_path=`$CYGPATH -u "$path"` 34173 34174 # Now try to locate executable using which 34175 new_path=`$WHICH "$new_path" 2> /dev/null` 34176 # bat and cmd files are not always considered executable in cygwin causing which 34177 # to not find them 34178 if test "x$new_path" = x \ 34179 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34180 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34181 new_path=`$CYGPATH -u "$path"` 34182 fi 34183 if test "x$new_path" = x; then 34184 # Oops. Which didn't find the executable. 34185 # The splitting of arguments from the executable at a space might have been incorrect, 34186 # since paths with space are more likely in Windows. Give it another try with the whole 34187 # argument. 34188 path="$complete" 34189 arguments="EOL" 34190 new_path=`$CYGPATH -u "$path"` 34191 new_path=`$WHICH "$new_path" 2> /dev/null` 34192 # bat and cmd files are not always considered executable in cygwin causing which 34193 # to not find them 34194 if test "x$new_path" = x \ 34195 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34196 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34197 new_path=`$CYGPATH -u "$path"` 34198 fi 34199 if test "x$new_path" = x; then 34200 # It's still not found. Now this is an unrecoverable error. 34201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34202 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34203 has_space=`$ECHO "$complete" | $GREP " "` 34204 if test "x$has_space" != x; then 34205 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34206 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34207 fi 34208 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34209 fi 34210 fi 34211 34212 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34213 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34214 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34215 # "foo.exe" is OK but "foo" is an error. 34216 # 34217 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34218 # It is also a way to make sure we got the proper file name for the real test later on. 34219 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34220 if test "x$test_shortpath" = x; then 34221 # Short path failed, file does not exist as specified. 34222 # Try adding .exe or .cmd 34223 if test -f "${new_path}.exe"; then 34224 input_to_shortpath="${new_path}.exe" 34225 elif test -f "${new_path}.cmd"; then 34226 input_to_shortpath="${new_path}.cmd" 34227 else 34228 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34229 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34230 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34231 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34232 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34233 fi 34234 else 34235 input_to_shortpath="$new_path" 34236 fi 34237 34238 # Call helper function which possibly converts this using DOS-style short mode. 34239 # If so, the updated path is stored in $new_path. 34240 new_path="$input_to_shortpath" 34241 34242 input_path="$input_to_shortpath" 34243 # Check if we need to convert this using DOS-style short mode. If the path 34244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34245 # take no chances and rewrite it. 34246 # Note: m4 eats our [], so we need to use [ and ] instead. 34247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34248 if test "x$has_forbidden_chars" != x; then 34249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34250 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34251 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34252 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34253 # Going to short mode and back again did indeed matter. Since short mode is 34254 # case insensitive, let's make it lowercase to improve readability. 34255 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34256 # Now convert it back to Unix-stile (cygpath) 34257 input_path=`$CYGPATH -u "$shortmode_path"` 34258 new_path="$input_path" 34259 fi 34260 fi 34261 34262 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34263 if test "x$test_cygdrive_prefix" = x; then 34264 # As a simple fix, exclude /usr/bin since it's not a real path. 34265 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34266 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34267 # a path prefixed by /cygdrive for fixpath to work. 34268 new_path="$CYGWIN_ROOT_PATH$input_path" 34269 fi 34270 fi 34271 34272 # remove trailing .exe if any 34273 new_path="${new_path/%.exe/}" 34274 34275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34276 34277 # First separate the path from the arguments. This will split at the first 34278 # space. 34279 complete="$RC" 34280 path="${complete%% *}" 34281 tmp="$complete EOL" 34282 arguments="${tmp#* }" 34283 34284 # Input might be given as Windows format, start by converting to 34285 # unix format. 34286 new_path="$path" 34287 34288 windows_path="$new_path" 34289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34290 unix_path=`$CYGPATH -u "$windows_path"` 34291 new_path="$unix_path" 34292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34294 new_path="$unix_path" 34295 fi 34296 34297 34298 # Now try to locate executable using which 34299 new_path=`$WHICH "$new_path" 2> /dev/null` 34300 34301 if test "x$new_path" = x; then 34302 # Oops. Which didn't find the executable. 34303 # The splitting of arguments from the executable at a space might have been incorrect, 34304 # since paths with space are more likely in Windows. Give it another try with the whole 34305 # argument. 34306 path="$complete" 34307 arguments="EOL" 34308 new_path="$path" 34309 34310 windows_path="$new_path" 34311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34312 unix_path=`$CYGPATH -u "$windows_path"` 34313 new_path="$unix_path" 34314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34316 new_path="$unix_path" 34317 fi 34318 34319 34320 new_path=`$WHICH "$new_path" 2> /dev/null` 34321 34322 if test "x$new_path" = x; then 34323 # It's still not found. Now this is an unrecoverable error. 34324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34325 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34326 has_space=`$ECHO "$complete" | $GREP " "` 34327 if test "x$has_space" != x; then 34328 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34329 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34330 fi 34331 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34332 fi 34333 fi 34334 34335 # Now new_path has a complete unix path to the binary 34336 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34337 # Keep paths in /bin as-is, but remove trailing .exe if any 34338 new_path="${new_path/%.exe/}" 34339 # Do not save /bin paths to all_fixpath_prefixes! 34340 else 34341 # Not in mixed or Windows style, start by that. 34342 new_path=`cmd //c echo $new_path` 34343 34344 input_path="$new_path" 34345 # Check if we need to convert this using DOS-style short mode. If the path 34346 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34347 # take no chances and rewrite it. 34348 # Note: m4 eats our [], so we need to use [ and ] instead. 34349 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34350 if test "x$has_forbidden_chars" != x; then 34351 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34352 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34353 fi 34354 34355 # Output is in $new_path 34356 34357 windows_path="$new_path" 34358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34359 unix_path=`$CYGPATH -u "$windows_path"` 34360 new_path="$unix_path" 34361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34363 new_path="$unix_path" 34364 fi 34365 34366 # remove trailing .exe if any 34367 new_path="${new_path/%.exe/}" 34368 34369 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34370 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34371 fi 34372 34373 else 34374 # We're on a posix platform. Hooray! :) 34375 # First separate the path from the arguments. This will split at the first 34376 # space. 34377 complete="$RC" 34378 path="${complete%% *}" 34379 tmp="$complete EOL" 34380 arguments="${tmp#* }" 34381 34382 # Cannot rely on the command "which" here since it doesn't always work. 34383 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34384 if test -z "$is_absolute_path"; then 34385 # Path to executable is not absolute. Find it. 34386 IFS_save="$IFS" 34387 IFS=: 34388 for p in $PATH; do 34389 if test -f "$p/$path" && test -x "$p/$path"; then 34390 new_path="$p/$path" 34391 break 34392 fi 34393 done 34394 IFS="$IFS_save" 34395 else 34396 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving RC (as $path) failed, using $path directly." >&5 34397 $as_echo "$as_me: Resolving RC (as $path) failed, using $path directly." >&6;} 34398 new_path="$path" 34399 fi 34400 34401 if test "x$new_path" = x; then 34402 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34403 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34404 has_space=`$ECHO "$complete" | $GREP " "` 34405 if test "x$has_space" != x; then 34406 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34407 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34408 fi 34409 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34410 fi 34411 fi 34412 34413 # Now join together the path and the arguments once again 34414 if test "x$arguments" != xEOL; then 34415 new_complete="$new_path ${arguments% *}" 34416 else 34417 new_complete="$new_path" 34418 fi 34419 34420 if test "x$complete" != "x$new_complete"; then 34421 RC="$new_complete" 34422 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34423 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34424 fi 34425 34426 34427 # For hotspot, we need these in Windows mixed path, 34428 # so rewrite them all. Need added .exe suffix. 34429 HOTSPOT_CXX="$CXX.exe" 34430 HOTSPOT_LD="$LD.exe" 34431 HOTSPOT_MT="$MT.exe" 34432 HOTSPOT_RC="$RC.exe" 34433 34434 unix_path="$HOTSPOT_CXX" 34435 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34436 windows_path=`$CYGPATH -m "$unix_path"` 34437 HOTSPOT_CXX="$windows_path" 34438 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34439 windows_path=`cmd //c echo $unix_path` 34440 HOTSPOT_CXX="$windows_path" 34441 fi 34442 34443 34444 unix_path="$HOTSPOT_LD" 34445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34446 windows_path=`$CYGPATH -m "$unix_path"` 34447 HOTSPOT_LD="$windows_path" 34448 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34449 windows_path=`cmd //c echo $unix_path` 34450 HOTSPOT_LD="$windows_path" 34451 fi 34452 34453 34454 unix_path="$HOTSPOT_MT" 34455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34456 windows_path=`$CYGPATH -m "$unix_path"` 34457 HOTSPOT_MT="$windows_path" 34458 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34459 windows_path=`cmd //c echo $unix_path` 34460 HOTSPOT_MT="$windows_path" 34461 fi 34462 34463 34464 unix_path="$HOTSPOT_RC" 34465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34466 windows_path=`$CYGPATH -m "$unix_path"` 34467 HOTSPOT_RC="$windows_path" 34468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34469 windows_path=`cmd //c echo $unix_path` 34470 HOTSPOT_RC="$windows_path" 34471 fi 34472 34473 34474 34475 34476 RC_FLAGS="-nologo -l 0x409 -r" 34477 if test "x$VARIANT" = xOPT; then : 34478 34479 RC_FLAGS="$RC_FLAGS -d NDEBUG" 34480 34481 fi 34482 34483 # The version variables used to create RC_FLAGS may be overridden 34484 # in a custom configure script, or possibly the command line. 34485 # Let those variables be expanded at make time in spec.gmk. 34486 # The \$ are escaped to the shell, and the $(...) variables 34487 # are evaluated by make. 34488 RC_FLAGS="$RC_FLAGS \ 34489 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 34490 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 34491 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 34492 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 34493 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 34494 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 34495 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 34496 34497 # lib.exe is used to create static libraries. 34498 # Extract the first word of "lib", so it can be a program name with args. 34499 set dummy lib; ac_word=$2 34500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34501 $as_echo_n "checking for $ac_word... " >&6; } 34502 if ${ac_cv_prog_WINAR+:} false; then : 34503 $as_echo_n "(cached) " >&6 34504 else 34505 if test -n "$WINAR"; then 34506 ac_cv_prog_WINAR="$WINAR" # Let the user override the test. 34507 else 34508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34509 for as_dir in $PATH 34510 do 34511 IFS=$as_save_IFS 34512 test -z "$as_dir" && as_dir=. 34513 for ac_exec_ext in '' $ac_executable_extensions; do 34514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34515 ac_cv_prog_WINAR="lib" 34516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34517 break 2 34518 fi 34519 done 34520 done 34521 IFS=$as_save_IFS 34522 34523 fi 34524 fi 34525 WINAR=$ac_cv_prog_WINAR 34526 if test -n "$WINAR"; then 34527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5 34528 $as_echo "$WINAR" >&6; } 34529 else 34530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34531 $as_echo "no" >&6; } 34532 fi 34533 34534 34535 34536 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34537 34538 # First separate the path from the arguments. This will split at the first 34539 # space. 34540 complete="$WINAR" 34541 path="${complete%% *}" 34542 tmp="$complete EOL" 34543 arguments="${tmp#* }" 34544 34545 # Input might be given as Windows format, start by converting to 34546 # unix format. 34547 new_path=`$CYGPATH -u "$path"` 34548 34549 # Now try to locate executable using which 34550 new_path=`$WHICH "$new_path" 2> /dev/null` 34551 # bat and cmd files are not always considered executable in cygwin causing which 34552 # to not find them 34553 if test "x$new_path" = x \ 34554 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34555 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34556 new_path=`$CYGPATH -u "$path"` 34557 fi 34558 if test "x$new_path" = x; then 34559 # Oops. Which didn't find the executable. 34560 # The splitting of arguments from the executable at a space might have been incorrect, 34561 # since paths with space are more likely in Windows. Give it another try with the whole 34562 # argument. 34563 path="$complete" 34564 arguments="EOL" 34565 new_path=`$CYGPATH -u "$path"` 34566 new_path=`$WHICH "$new_path" 2> /dev/null` 34567 # bat and cmd files are not always considered executable in cygwin causing which 34568 # to not find them 34569 if test "x$new_path" = x \ 34570 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34571 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34572 new_path=`$CYGPATH -u "$path"` 34573 fi 34574 if test "x$new_path" = x; then 34575 # It's still not found. Now this is an unrecoverable error. 34576 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 34577 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 34578 has_space=`$ECHO "$complete" | $GREP " "` 34579 if test "x$has_space" != x; then 34580 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34581 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34582 fi 34583 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 34584 fi 34585 fi 34586 34587 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34588 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34589 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34590 # "foo.exe" is OK but "foo" is an error. 34591 # 34592 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34593 # It is also a way to make sure we got the proper file name for the real test later on. 34594 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34595 if test "x$test_shortpath" = x; then 34596 # Short path failed, file does not exist as specified. 34597 # Try adding .exe or .cmd 34598 if test -f "${new_path}.exe"; then 34599 input_to_shortpath="${new_path}.exe" 34600 elif test -f "${new_path}.cmd"; then 34601 input_to_shortpath="${new_path}.cmd" 34602 else 34603 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$new_path\", is invalid." >&5 34604 $as_echo "$as_me: The path of WINAR, which resolves as \"$new_path\", is invalid." >&6;} 34605 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34606 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34607 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 34608 fi 34609 else 34610 input_to_shortpath="$new_path" 34611 fi 34612 34613 # Call helper function which possibly converts this using DOS-style short mode. 34614 # If so, the updated path is stored in $new_path. 34615 new_path="$input_to_shortpath" 34616 34617 input_path="$input_to_shortpath" 34618 # Check if we need to convert this using DOS-style short mode. If the path 34619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34620 # take no chances and rewrite it. 34621 # Note: m4 eats our [], so we need to use [ and ] instead. 34622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34623 if test "x$has_forbidden_chars" != x; then 34624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34625 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34626 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34627 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34628 # Going to short mode and back again did indeed matter. Since short mode is 34629 # case insensitive, let's make it lowercase to improve readability. 34630 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34631 # Now convert it back to Unix-stile (cygpath) 34632 input_path=`$CYGPATH -u "$shortmode_path"` 34633 new_path="$input_path" 34634 fi 34635 fi 34636 34637 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34638 if test "x$test_cygdrive_prefix" = x; then 34639 # As a simple fix, exclude /usr/bin since it's not a real path. 34640 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34641 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34642 # a path prefixed by /cygdrive for fixpath to work. 34643 new_path="$CYGWIN_ROOT_PATH$input_path" 34644 fi 34645 fi 34646 34647 # remove trailing .exe if any 34648 new_path="${new_path/%.exe/}" 34649 34650 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34651 34652 # First separate the path from the arguments. This will split at the first 34653 # space. 34654 complete="$WINAR" 34655 path="${complete%% *}" 34656 tmp="$complete EOL" 34657 arguments="${tmp#* }" 34658 34659 # Input might be given as Windows format, start by converting to 34660 # unix format. 34661 new_path="$path" 34662 34663 windows_path="$new_path" 34664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34665 unix_path=`$CYGPATH -u "$windows_path"` 34666 new_path="$unix_path" 34667 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34668 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34669 new_path="$unix_path" 34670 fi 34671 34672 34673 # Now try to locate executable using which 34674 new_path=`$WHICH "$new_path" 2> /dev/null` 34675 34676 if test "x$new_path" = x; then 34677 # Oops. Which didn't find the executable. 34678 # The splitting of arguments from the executable at a space might have been incorrect, 34679 # since paths with space are more likely in Windows. Give it another try with the whole 34680 # argument. 34681 path="$complete" 34682 arguments="EOL" 34683 new_path="$path" 34684 34685 windows_path="$new_path" 34686 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34687 unix_path=`$CYGPATH -u "$windows_path"` 34688 new_path="$unix_path" 34689 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34690 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34691 new_path="$unix_path" 34692 fi 34693 34694 34695 new_path=`$WHICH "$new_path" 2> /dev/null` 34696 34697 if test "x$new_path" = x; then 34698 # It's still not found. Now this is an unrecoverable error. 34699 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 34700 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 34701 has_space=`$ECHO "$complete" | $GREP " "` 34702 if test "x$has_space" != x; then 34703 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34704 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34705 fi 34706 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 34707 fi 34708 fi 34709 34710 # Now new_path has a complete unix path to the binary 34711 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34712 # Keep paths in /bin as-is, but remove trailing .exe if any 34713 new_path="${new_path/%.exe/}" 34714 # Do not save /bin paths to all_fixpath_prefixes! 34715 else 34716 # Not in mixed or Windows style, start by that. 34717 new_path=`cmd //c echo $new_path` 34718 34719 input_path="$new_path" 34720 # Check if we need to convert this using DOS-style short mode. If the path 34721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34722 # take no chances and rewrite it. 34723 # Note: m4 eats our [], so we need to use [ and ] instead. 34724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34725 if test "x$has_forbidden_chars" != x; then 34726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34727 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34728 fi 34729 34730 # Output is in $new_path 34731 34732 windows_path="$new_path" 34733 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34734 unix_path=`$CYGPATH -u "$windows_path"` 34735 new_path="$unix_path" 34736 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34737 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34738 new_path="$unix_path" 34739 fi 34740 34741 # remove trailing .exe if any 34742 new_path="${new_path/%.exe/}" 34743 34744 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34745 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34746 fi 34747 34748 else 34749 # We're on a posix platform. Hooray! :) 34750 # First separate the path from the arguments. This will split at the first 34751 # space. 34752 complete="$WINAR" 34753 path="${complete%% *}" 34754 tmp="$complete EOL" 34755 arguments="${tmp#* }" 34756 34757 # Cannot rely on the command "which" here since it doesn't always work. 34758 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34759 if test -z "$is_absolute_path"; then 34760 # Path to executable is not absolute. Find it. 34761 IFS_save="$IFS" 34762 IFS=: 34763 for p in $PATH; do 34764 if test -f "$p/$path" && test -x "$p/$path"; then 34765 new_path="$p/$path" 34766 break 34767 fi 34768 done 34769 IFS="$IFS_save" 34770 else 34771 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving WINAR (as $path) failed, using $path directly." >&5 34772 $as_echo "$as_me: Resolving WINAR (as $path) failed, using $path directly." >&6;} 34773 new_path="$path" 34774 fi 34775 34776 if test "x$new_path" = x; then 34777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of WINAR, which resolves as \"$complete\", is not found." >&5 34778 $as_echo "$as_me: The path of WINAR, which resolves as \"$complete\", is not found." >&6;} 34779 has_space=`$ECHO "$complete" | $GREP " "` 34780 if test "x$has_space" != x; then 34781 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34782 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34783 fi 34784 as_fn_error $? "Cannot locate the the path of WINAR" "$LINENO" 5 34785 fi 34786 fi 34787 34788 # Now join together the path and the arguments once again 34789 if test "x$arguments" != xEOL; then 34790 new_complete="$new_path ${arguments% *}" 34791 else 34792 new_complete="$new_path" 34793 fi 34794 34795 if test "x$complete" != "x$new_complete"; then 34796 WINAR="$new_complete" 34797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting WINAR to \"$new_complete\"" >&5 34798 $as_echo "$as_me: Rewriting WINAR to \"$new_complete\"" >&6;} 34799 fi 34800 34801 AR="$WINAR" 34802 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 34803 34804 # Extract the first word of "dumpbin", so it can be a program name with args. 34805 set dummy dumpbin; ac_word=$2 34806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34807 $as_echo_n "checking for $ac_word... " >&6; } 34808 if ${ac_cv_prog_DUMPBIN+:} false; then : 34809 $as_echo_n "(cached) " >&6 34810 else 34811 if test -n "$DUMPBIN"; then 34812 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34813 else 34814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34815 for as_dir in $PATH 34816 do 34817 IFS=$as_save_IFS 34818 test -z "$as_dir" && as_dir=. 34819 for ac_exec_ext in '' $ac_executable_extensions; do 34820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34821 ac_cv_prog_DUMPBIN="dumpbin" 34822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34823 break 2 34824 fi 34825 done 34826 done 34827 IFS=$as_save_IFS 34828 34829 fi 34830 fi 34831 DUMPBIN=$ac_cv_prog_DUMPBIN 34832 if test -n "$DUMPBIN"; then 34833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34834 $as_echo "$DUMPBIN" >&6; } 34835 else 34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34837 $as_echo "no" >&6; } 34838 fi 34839 34840 34841 34842 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34843 34844 # First separate the path from the arguments. This will split at the first 34845 # space. 34846 complete="$DUMPBIN" 34847 path="${complete%% *}" 34848 tmp="$complete EOL" 34849 arguments="${tmp#* }" 34850 34851 # Input might be given as Windows format, start by converting to 34852 # unix format. 34853 new_path=`$CYGPATH -u "$path"` 34854 34855 # Now try to locate executable using which 34856 new_path=`$WHICH "$new_path" 2> /dev/null` 34857 # bat and cmd files are not always considered executable in cygwin causing which 34858 # to not find them 34859 if test "x$new_path" = x \ 34860 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34861 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34862 new_path=`$CYGPATH -u "$path"` 34863 fi 34864 if test "x$new_path" = x; then 34865 # Oops. Which didn't find the executable. 34866 # The splitting of arguments from the executable at a space might have been incorrect, 34867 # since paths with space are more likely in Windows. Give it another try with the whole 34868 # argument. 34869 path="$complete" 34870 arguments="EOL" 34871 new_path=`$CYGPATH -u "$path"` 34872 new_path=`$WHICH "$new_path" 2> /dev/null` 34873 # bat and cmd files are not always considered executable in cygwin causing which 34874 # to not find them 34875 if test "x$new_path" = x \ 34876 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34877 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34878 new_path=`$CYGPATH -u "$path"` 34879 fi 34880 if test "x$new_path" = x; then 34881 # It's still not found. Now this is an unrecoverable error. 34882 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34883 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34884 has_space=`$ECHO "$complete" | $GREP " "` 34885 if test "x$has_space" != x; then 34886 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34887 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34888 fi 34889 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34890 fi 34891 fi 34892 34893 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34894 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34895 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34896 # "foo.exe" is OK but "foo" is an error. 34897 # 34898 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34899 # It is also a way to make sure we got the proper file name for the real test later on. 34900 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34901 if test "x$test_shortpath" = x; then 34902 # Short path failed, file does not exist as specified. 34903 # Try adding .exe or .cmd 34904 if test -f "${new_path}.exe"; then 34905 input_to_shortpath="${new_path}.exe" 34906 elif test -f "${new_path}.cmd"; then 34907 input_to_shortpath="${new_path}.cmd" 34908 else 34909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34910 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34911 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34912 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34913 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34914 fi 34915 else 34916 input_to_shortpath="$new_path" 34917 fi 34918 34919 # Call helper function which possibly converts this using DOS-style short mode. 34920 # If so, the updated path is stored in $new_path. 34921 new_path="$input_to_shortpath" 34922 34923 input_path="$input_to_shortpath" 34924 # Check if we need to convert this using DOS-style short mode. If the path 34925 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34926 # take no chances and rewrite it. 34927 # Note: m4 eats our [], so we need to use [ and ] instead. 34928 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34929 if test "x$has_forbidden_chars" != x; then 34930 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34931 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34932 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34933 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34934 # Going to short mode and back again did indeed matter. Since short mode is 34935 # case insensitive, let's make it lowercase to improve readability. 34936 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34937 # Now convert it back to Unix-stile (cygpath) 34938 input_path=`$CYGPATH -u "$shortmode_path"` 34939 new_path="$input_path" 34940 fi 34941 fi 34942 34943 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34944 if test "x$test_cygdrive_prefix" = x; then 34945 # As a simple fix, exclude /usr/bin since it's not a real path. 34946 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34947 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34948 # a path prefixed by /cygdrive for fixpath to work. 34949 new_path="$CYGWIN_ROOT_PATH$input_path" 34950 fi 34951 fi 34952 34953 # remove trailing .exe if any 34954 new_path="${new_path/%.exe/}" 34955 34956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34957 34958 # First separate the path from the arguments. This will split at the first 34959 # space. 34960 complete="$DUMPBIN" 34961 path="${complete%% *}" 34962 tmp="$complete EOL" 34963 arguments="${tmp#* }" 34964 34965 # Input might be given as Windows format, start by converting to 34966 # unix format. 34967 new_path="$path" 34968 34969 windows_path="$new_path" 34970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34971 unix_path=`$CYGPATH -u "$windows_path"` 34972 new_path="$unix_path" 34973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34975 new_path="$unix_path" 34976 fi 34977 34978 34979 # Now try to locate executable using which 34980 new_path=`$WHICH "$new_path" 2> /dev/null` 34981 34982 if test "x$new_path" = x; then 34983 # Oops. Which didn't find the executable. 34984 # The splitting of arguments from the executable at a space might have been incorrect, 34985 # since paths with space are more likely in Windows. Give it another try with the whole 34986 # argument. 34987 path="$complete" 34988 arguments="EOL" 34989 new_path="$path" 34990 34991 windows_path="$new_path" 34992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34993 unix_path=`$CYGPATH -u "$windows_path"` 34994 new_path="$unix_path" 34995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34996 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34997 new_path="$unix_path" 34998 fi 34999 35000 35001 new_path=`$WHICH "$new_path" 2> /dev/null` 35002 35003 if test "x$new_path" = x; then 35004 # It's still not found. Now this is an unrecoverable error. 35005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35006 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35007 has_space=`$ECHO "$complete" | $GREP " "` 35008 if test "x$has_space" != x; then 35009 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35010 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35011 fi 35012 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35013 fi 35014 fi 35015 35016 # Now new_path has a complete unix path to the binary 35017 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35018 # Keep paths in /bin as-is, but remove trailing .exe if any 35019 new_path="${new_path/%.exe/}" 35020 # Do not save /bin paths to all_fixpath_prefixes! 35021 else 35022 # Not in mixed or Windows style, start by that. 35023 new_path=`cmd //c echo $new_path` 35024 35025 input_path="$new_path" 35026 # Check if we need to convert this using DOS-style short mode. If the path 35027 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35028 # take no chances and rewrite it. 35029 # Note: m4 eats our [], so we need to use [ and ] instead. 35030 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35031 if test "x$has_forbidden_chars" != x; then 35032 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35033 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35034 fi 35035 35036 # Output is in $new_path 35037 35038 windows_path="$new_path" 35039 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35040 unix_path=`$CYGPATH -u "$windows_path"` 35041 new_path="$unix_path" 35042 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35043 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35044 new_path="$unix_path" 35045 fi 35046 35047 # remove trailing .exe if any 35048 new_path="${new_path/%.exe/}" 35049 35050 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35051 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35052 fi 35053 35054 else 35055 # We're on a posix platform. Hooray! :) 35056 # First separate the path from the arguments. This will split at the first 35057 # space. 35058 complete="$DUMPBIN" 35059 path="${complete%% *}" 35060 tmp="$complete EOL" 35061 arguments="${tmp#* }" 35062 35063 # Cannot rely on the command "which" here since it doesn't always work. 35064 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35065 if test -z "$is_absolute_path"; then 35066 # Path to executable is not absolute. Find it. 35067 IFS_save="$IFS" 35068 IFS=: 35069 for p in $PATH; do 35070 if test -f "$p/$path" && test -x "$p/$path"; then 35071 new_path="$p/$path" 35072 break 35073 fi 35074 done 35075 IFS="$IFS_save" 35076 else 35077 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving DUMPBIN (as $path) failed, using $path directly." >&5 35078 $as_echo "$as_me: Resolving DUMPBIN (as $path) failed, using $path directly." >&6;} 35079 new_path="$path" 35080 fi 35081 35082 if test "x$new_path" = x; then 35083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 35084 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 35085 has_space=`$ECHO "$complete" | $GREP " "` 35086 if test "x$has_space" != x; then 35087 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35088 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35089 fi 35090 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 35091 fi 35092 fi 35093 35094 # Now join together the path and the arguments once again 35095 if test "x$arguments" != xEOL; then 35096 new_complete="$new_path ${arguments% *}" 35097 else 35098 new_complete="$new_path" 35099 fi 35100 35101 if test "x$complete" != "x$new_complete"; then 35102 DUMPBIN="$new_complete" 35103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 35104 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 35105 fi 35106 35107 35108 COMPILER_TYPE=CL 35109 CCXXFLAGS="$CCXXFLAGS -nologo" 35110 35111 fi 35112 35113 35114 35115 ac_ext=c 35116 ac_cpp='$CPP $CPPFLAGS' 35117 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35118 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35119 ac_compiler_gnu=$ac_cv_c_compiler_gnu 35120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 35121 $as_echo_n "checking how to run the C preprocessor... " >&6; } 35122 # On Suns, sometimes $CPP names a directory. 35123 if test -n "$CPP" && test -d "$CPP"; then 35124 CPP= 35125 fi 35126 if test -z "$CPP"; then 35127 if ${ac_cv_prog_CPP+:} false; then : 35128 $as_echo_n "(cached) " >&6 35129 else 35130 # Double quotes because CPP needs to be expanded 35131 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 35132 do 35133 ac_preproc_ok=false 35134 for ac_c_preproc_warn_flag in '' yes 35135 do 35136 # Use a header file that comes with gcc, so configuring glibc 35137 # with a fresh cross-compiler works. 35138 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35139 # <limits.h> exists even on freestanding compilers. 35140 # On the NeXT, cc -E runs the code through the compiler's parser, 35141 # not just through cpp. "Syntax error" is here to catch this case. 35142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35143 /* end confdefs.h. */ 35144 #ifdef __STDC__ 35145 # include <limits.h> 35146 #else 35147 # include <assert.h> 35148 #endif 35149 Syntax error 35150 _ACEOF 35151 if ac_fn_c_try_cpp "$LINENO"; then : 35152 35153 else 35154 # Broken: fails on valid input. 35155 continue 35156 fi 35157 rm -f conftest.err conftest.i conftest.$ac_ext 35158 35159 # OK, works on sane cases. Now check whether nonexistent headers 35160 # can be detected and how. 35161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35162 /* end confdefs.h. */ 35163 #include <ac_nonexistent.h> 35164 _ACEOF 35165 if ac_fn_c_try_cpp "$LINENO"; then : 35166 # Broken: success on invalid input. 35167 continue 35168 else 35169 # Passes both tests. 35170 ac_preproc_ok=: 35171 break 35172 fi 35173 rm -f conftest.err conftest.i conftest.$ac_ext 35174 35175 done 35176 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35177 rm -f conftest.i conftest.err conftest.$ac_ext 35178 if $ac_preproc_ok; then : 35179 break 35180 fi 35181 35182 done 35183 ac_cv_prog_CPP=$CPP 35184 35185 fi 35186 CPP=$ac_cv_prog_CPP 35187 else 35188 ac_cv_prog_CPP=$CPP 35189 fi 35190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 35191 $as_echo "$CPP" >&6; } 35192 ac_preproc_ok=false 35193 for ac_c_preproc_warn_flag in '' yes 35194 do 35195 # Use a header file that comes with gcc, so configuring glibc 35196 # with a fresh cross-compiler works. 35197 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35198 # <limits.h> exists even on freestanding compilers. 35199 # On the NeXT, cc -E runs the code through the compiler's parser, 35200 # not just through cpp. "Syntax error" is here to catch this case. 35201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35202 /* end confdefs.h. */ 35203 #ifdef __STDC__ 35204 # include <limits.h> 35205 #else 35206 # include <assert.h> 35207 #endif 35208 Syntax error 35209 _ACEOF 35210 if ac_fn_c_try_cpp "$LINENO"; then : 35211 35212 else 35213 # Broken: fails on valid input. 35214 continue 35215 fi 35216 rm -f conftest.err conftest.i conftest.$ac_ext 35217 35218 # OK, works on sane cases. Now check whether nonexistent headers 35219 # can be detected and how. 35220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35221 /* end confdefs.h. */ 35222 #include <ac_nonexistent.h> 35223 _ACEOF 35224 if ac_fn_c_try_cpp "$LINENO"; then : 35225 # Broken: success on invalid input. 35226 continue 35227 else 35228 # Passes both tests. 35229 ac_preproc_ok=: 35230 break 35231 fi 35232 rm -f conftest.err conftest.i conftest.$ac_ext 35233 35234 done 35235 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35236 rm -f conftest.i conftest.err conftest.$ac_ext 35237 if $ac_preproc_ok; then : 35238 35239 else 35240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35242 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 35243 See \`config.log' for more details" "$LINENO" 5; } 35244 fi 35245 35246 ac_ext=cpp 35247 ac_cpp='$CXXCPP $CPPFLAGS' 35248 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35249 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35250 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35251 35252 35253 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35254 35255 # First separate the path from the arguments. This will split at the first 35256 # space. 35257 complete="$CPP" 35258 path="${complete%% *}" 35259 tmp="$complete EOL" 35260 arguments="${tmp#* }" 35261 35262 # Input might be given as Windows format, start by converting to 35263 # unix format. 35264 new_path=`$CYGPATH -u "$path"` 35265 35266 # Now try to locate executable using which 35267 new_path=`$WHICH "$new_path" 2> /dev/null` 35268 # bat and cmd files are not always considered executable in cygwin causing which 35269 # to not find them 35270 if test "x$new_path" = x \ 35271 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35272 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35273 new_path=`$CYGPATH -u "$path"` 35274 fi 35275 if test "x$new_path" = x; then 35276 # Oops. Which didn't find the executable. 35277 # The splitting of arguments from the executable at a space might have been incorrect, 35278 # since paths with space are more likely in Windows. Give it another try with the whole 35279 # argument. 35280 path="$complete" 35281 arguments="EOL" 35282 new_path=`$CYGPATH -u "$path"` 35283 new_path=`$WHICH "$new_path" 2> /dev/null` 35284 # bat and cmd files are not always considered executable in cygwin causing which 35285 # to not find them 35286 if test "x$new_path" = x \ 35287 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35288 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35289 new_path=`$CYGPATH -u "$path"` 35290 fi 35291 if test "x$new_path" = x; then 35292 # It's still not found. Now this is an unrecoverable error. 35293 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35294 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35295 has_space=`$ECHO "$complete" | $GREP " "` 35296 if test "x$has_space" != x; then 35297 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35298 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35299 fi 35300 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35301 fi 35302 fi 35303 35304 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35305 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35306 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35307 # "foo.exe" is OK but "foo" is an error. 35308 # 35309 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35310 # It is also a way to make sure we got the proper file name for the real test later on. 35311 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35312 if test "x$test_shortpath" = x; then 35313 # Short path failed, file does not exist as specified. 35314 # Try adding .exe or .cmd 35315 if test -f "${new_path}.exe"; then 35316 input_to_shortpath="${new_path}.exe" 35317 elif test -f "${new_path}.cmd"; then 35318 input_to_shortpath="${new_path}.cmd" 35319 else 35320 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 35321 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 35322 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35323 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35324 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35325 fi 35326 else 35327 input_to_shortpath="$new_path" 35328 fi 35329 35330 # Call helper function which possibly converts this using DOS-style short mode. 35331 # If so, the updated path is stored in $new_path. 35332 new_path="$input_to_shortpath" 35333 35334 input_path="$input_to_shortpath" 35335 # Check if we need to convert this using DOS-style short mode. If the path 35336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35337 # take no chances and rewrite it. 35338 # Note: m4 eats our [], so we need to use [ and ] instead. 35339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35340 if test "x$has_forbidden_chars" != x; then 35341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35342 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35343 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35344 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35345 # Going to short mode and back again did indeed matter. Since short mode is 35346 # case insensitive, let's make it lowercase to improve readability. 35347 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35348 # Now convert it back to Unix-stile (cygpath) 35349 input_path=`$CYGPATH -u "$shortmode_path"` 35350 new_path="$input_path" 35351 fi 35352 fi 35353 35354 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35355 if test "x$test_cygdrive_prefix" = x; then 35356 # As a simple fix, exclude /usr/bin since it's not a real path. 35357 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35358 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35359 # a path prefixed by /cygdrive for fixpath to work. 35360 new_path="$CYGWIN_ROOT_PATH$input_path" 35361 fi 35362 fi 35363 35364 # remove trailing .exe if any 35365 new_path="${new_path/%.exe/}" 35366 35367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35368 35369 # First separate the path from the arguments. This will split at the first 35370 # space. 35371 complete="$CPP" 35372 path="${complete%% *}" 35373 tmp="$complete EOL" 35374 arguments="${tmp#* }" 35375 35376 # Input might be given as Windows format, start by converting to 35377 # unix format. 35378 new_path="$path" 35379 35380 windows_path="$new_path" 35381 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35382 unix_path=`$CYGPATH -u "$windows_path"` 35383 new_path="$unix_path" 35384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35385 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35386 new_path="$unix_path" 35387 fi 35388 35389 35390 # Now try to locate executable using which 35391 new_path=`$WHICH "$new_path" 2> /dev/null` 35392 35393 if test "x$new_path" = x; then 35394 # Oops. Which didn't find the executable. 35395 # The splitting of arguments from the executable at a space might have been incorrect, 35396 # since paths with space are more likely in Windows. Give it another try with the whole 35397 # argument. 35398 path="$complete" 35399 arguments="EOL" 35400 new_path="$path" 35401 35402 windows_path="$new_path" 35403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35404 unix_path=`$CYGPATH -u "$windows_path"` 35405 new_path="$unix_path" 35406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35408 new_path="$unix_path" 35409 fi 35410 35411 35412 new_path=`$WHICH "$new_path" 2> /dev/null` 35413 35414 if test "x$new_path" = x; then 35415 # It's still not found. Now this is an unrecoverable error. 35416 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35417 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35418 has_space=`$ECHO "$complete" | $GREP " "` 35419 if test "x$has_space" != x; then 35420 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35421 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35422 fi 35423 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35424 fi 35425 fi 35426 35427 # Now new_path has a complete unix path to the binary 35428 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35429 # Keep paths in /bin as-is, but remove trailing .exe if any 35430 new_path="${new_path/%.exe/}" 35431 # Do not save /bin paths to all_fixpath_prefixes! 35432 else 35433 # Not in mixed or Windows style, start by that. 35434 new_path=`cmd //c echo $new_path` 35435 35436 input_path="$new_path" 35437 # Check if we need to convert this using DOS-style short mode. If the path 35438 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35439 # take no chances and rewrite it. 35440 # Note: m4 eats our [], so we need to use [ and ] instead. 35441 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35442 if test "x$has_forbidden_chars" != x; then 35443 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35444 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35445 fi 35446 35447 # Output is in $new_path 35448 35449 windows_path="$new_path" 35450 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35451 unix_path=`$CYGPATH -u "$windows_path"` 35452 new_path="$unix_path" 35453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35454 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35455 new_path="$unix_path" 35456 fi 35457 35458 # remove trailing .exe if any 35459 new_path="${new_path/%.exe/}" 35460 35461 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35462 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35463 fi 35464 35465 else 35466 # We're on a posix platform. Hooray! :) 35467 # First separate the path from the arguments. This will split at the first 35468 # space. 35469 complete="$CPP" 35470 path="${complete%% *}" 35471 tmp="$complete EOL" 35472 arguments="${tmp#* }" 35473 35474 # Cannot rely on the command "which" here since it doesn't always work. 35475 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35476 if test -z "$is_absolute_path"; then 35477 # Path to executable is not absolute. Find it. 35478 IFS_save="$IFS" 35479 IFS=: 35480 for p in $PATH; do 35481 if test -f "$p/$path" && test -x "$p/$path"; then 35482 new_path="$p/$path" 35483 break 35484 fi 35485 done 35486 IFS="$IFS_save" 35487 else 35488 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CPP (as $path) failed, using $path directly." >&5 35489 $as_echo "$as_me: Resolving CPP (as $path) failed, using $path directly." >&6;} 35490 new_path="$path" 35491 fi 35492 35493 if test "x$new_path" = x; then 35494 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 35495 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 35496 has_space=`$ECHO "$complete" | $GREP " "` 35497 if test "x$has_space" != x; then 35498 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35499 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35500 fi 35501 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 35502 fi 35503 fi 35504 35505 # Now join together the path and the arguments once again 35506 if test "x$arguments" != xEOL; then 35507 new_complete="$new_path ${arguments% *}" 35508 else 35509 new_complete="$new_path" 35510 fi 35511 35512 if test "x$complete" != "x$new_complete"; then 35513 CPP="$new_complete" 35514 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 35515 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 35516 fi 35517 35518 35519 ac_ext=cpp 35520 ac_cpp='$CXXCPP $CPPFLAGS' 35521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 35525 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 35526 if test -z "$CXXCPP"; then 35527 if ${ac_cv_prog_CXXCPP+:} false; then : 35528 $as_echo_n "(cached) " >&6 35529 else 35530 # Double quotes because CXXCPP needs to be expanded 35531 for CXXCPP in "$CXX -E" "/lib/cpp" 35532 do 35533 ac_preproc_ok=false 35534 for ac_cxx_preproc_warn_flag in '' yes 35535 do 35536 # Use a header file that comes with gcc, so configuring glibc 35537 # with a fresh cross-compiler works. 35538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35539 # <limits.h> exists even on freestanding compilers. 35540 # On the NeXT, cc -E runs the code through the compiler's parser, 35541 # not just through cpp. "Syntax error" is here to catch this case. 35542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35543 /* end confdefs.h. */ 35544 #ifdef __STDC__ 35545 # include <limits.h> 35546 #else 35547 # include <assert.h> 35548 #endif 35549 Syntax error 35550 _ACEOF 35551 if ac_fn_cxx_try_cpp "$LINENO"; then : 35552 35553 else 35554 # Broken: fails on valid input. 35555 continue 35556 fi 35557 rm -f conftest.err conftest.i conftest.$ac_ext 35558 35559 # OK, works on sane cases. Now check whether nonexistent headers 35560 # can be detected and how. 35561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35562 /* end confdefs.h. */ 35563 #include <ac_nonexistent.h> 35564 _ACEOF 35565 if ac_fn_cxx_try_cpp "$LINENO"; then : 35566 # Broken: success on invalid input. 35567 continue 35568 else 35569 # Passes both tests. 35570 ac_preproc_ok=: 35571 break 35572 fi 35573 rm -f conftest.err conftest.i conftest.$ac_ext 35574 35575 done 35576 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35577 rm -f conftest.i conftest.err conftest.$ac_ext 35578 if $ac_preproc_ok; then : 35579 break 35580 fi 35581 35582 done 35583 ac_cv_prog_CXXCPP=$CXXCPP 35584 35585 fi 35586 CXXCPP=$ac_cv_prog_CXXCPP 35587 else 35588 ac_cv_prog_CXXCPP=$CXXCPP 35589 fi 35590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 35591 $as_echo "$CXXCPP" >&6; } 35592 ac_preproc_ok=false 35593 for ac_cxx_preproc_warn_flag in '' yes 35594 do 35595 # Use a header file that comes with gcc, so configuring glibc 35596 # with a fresh cross-compiler works. 35597 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 35598 # <limits.h> exists even on freestanding compilers. 35599 # On the NeXT, cc -E runs the code through the compiler's parser, 35600 # not just through cpp. "Syntax error" is here to catch this case. 35601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35602 /* end confdefs.h. */ 35603 #ifdef __STDC__ 35604 # include <limits.h> 35605 #else 35606 # include <assert.h> 35607 #endif 35608 Syntax error 35609 _ACEOF 35610 if ac_fn_cxx_try_cpp "$LINENO"; then : 35611 35612 else 35613 # Broken: fails on valid input. 35614 continue 35615 fi 35616 rm -f conftest.err conftest.i conftest.$ac_ext 35617 35618 # OK, works on sane cases. Now check whether nonexistent headers 35619 # can be detected and how. 35620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 35621 /* end confdefs.h. */ 35622 #include <ac_nonexistent.h> 35623 _ACEOF 35624 if ac_fn_cxx_try_cpp "$LINENO"; then : 35625 # Broken: success on invalid input. 35626 continue 35627 else 35628 # Passes both tests. 35629 ac_preproc_ok=: 35630 break 35631 fi 35632 rm -f conftest.err conftest.i conftest.$ac_ext 35633 35634 done 35635 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 35636 rm -f conftest.i conftest.err conftest.$ac_ext 35637 if $ac_preproc_ok; then : 35638 35639 else 35640 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 35641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 35642 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 35643 See \`config.log' for more details" "$LINENO" 5; } 35644 fi 35645 35646 ac_ext=cpp 35647 ac_cpp='$CXXCPP $CPPFLAGS' 35648 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 35649 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 35650 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 35651 35652 35653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35654 35655 # First separate the path from the arguments. This will split at the first 35656 # space. 35657 complete="$CXXCPP" 35658 path="${complete%% *}" 35659 tmp="$complete EOL" 35660 arguments="${tmp#* }" 35661 35662 # Input might be given as Windows format, start by converting to 35663 # unix format. 35664 new_path=`$CYGPATH -u "$path"` 35665 35666 # Now try to locate executable using which 35667 new_path=`$WHICH "$new_path" 2> /dev/null` 35668 # bat and cmd files are not always considered executable in cygwin causing which 35669 # to not find them 35670 if test "x$new_path" = x \ 35671 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35672 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35673 new_path=`$CYGPATH -u "$path"` 35674 fi 35675 if test "x$new_path" = x; then 35676 # Oops. Which didn't find the executable. 35677 # The splitting of arguments from the executable at a space might have been incorrect, 35678 # since paths with space are more likely in Windows. Give it another try with the whole 35679 # argument. 35680 path="$complete" 35681 arguments="EOL" 35682 new_path=`$CYGPATH -u "$path"` 35683 new_path=`$WHICH "$new_path" 2> /dev/null` 35684 # bat and cmd files are not always considered executable in cygwin causing which 35685 # to not find them 35686 if test "x$new_path" = x \ 35687 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35688 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35689 new_path=`$CYGPATH -u "$path"` 35690 fi 35691 if test "x$new_path" = x; then 35692 # It's still not found. Now this is an unrecoverable error. 35693 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35694 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35695 has_space=`$ECHO "$complete" | $GREP " "` 35696 if test "x$has_space" != x; then 35697 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35698 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35699 fi 35700 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35701 fi 35702 fi 35703 35704 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35705 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35706 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35707 # "foo.exe" is OK but "foo" is an error. 35708 # 35709 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35710 # It is also a way to make sure we got the proper file name for the real test later on. 35711 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35712 if test "x$test_shortpath" = x; then 35713 # Short path failed, file does not exist as specified. 35714 # Try adding .exe or .cmd 35715 if test -f "${new_path}.exe"; then 35716 input_to_shortpath="${new_path}.exe" 35717 elif test -f "${new_path}.cmd"; then 35718 input_to_shortpath="${new_path}.cmd" 35719 else 35720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 35721 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 35722 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35723 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35724 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35725 fi 35726 else 35727 input_to_shortpath="$new_path" 35728 fi 35729 35730 # Call helper function which possibly converts this using DOS-style short mode. 35731 # If so, the updated path is stored in $new_path. 35732 new_path="$input_to_shortpath" 35733 35734 input_path="$input_to_shortpath" 35735 # Check if we need to convert this using DOS-style short mode. If the path 35736 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35737 # take no chances and rewrite it. 35738 # Note: m4 eats our [], so we need to use [ and ] instead. 35739 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35740 if test "x$has_forbidden_chars" != x; then 35741 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35742 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35743 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35744 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35745 # Going to short mode and back again did indeed matter. Since short mode is 35746 # case insensitive, let's make it lowercase to improve readability. 35747 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35748 # Now convert it back to Unix-stile (cygpath) 35749 input_path=`$CYGPATH -u "$shortmode_path"` 35750 new_path="$input_path" 35751 fi 35752 fi 35753 35754 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35755 if test "x$test_cygdrive_prefix" = x; then 35756 # As a simple fix, exclude /usr/bin since it's not a real path. 35757 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35758 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35759 # a path prefixed by /cygdrive for fixpath to work. 35760 new_path="$CYGWIN_ROOT_PATH$input_path" 35761 fi 35762 fi 35763 35764 # remove trailing .exe if any 35765 new_path="${new_path/%.exe/}" 35766 35767 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35768 35769 # First separate the path from the arguments. This will split at the first 35770 # space. 35771 complete="$CXXCPP" 35772 path="${complete%% *}" 35773 tmp="$complete EOL" 35774 arguments="${tmp#* }" 35775 35776 # Input might be given as Windows format, start by converting to 35777 # unix format. 35778 new_path="$path" 35779 35780 windows_path="$new_path" 35781 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35782 unix_path=`$CYGPATH -u "$windows_path"` 35783 new_path="$unix_path" 35784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35785 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35786 new_path="$unix_path" 35787 fi 35788 35789 35790 # Now try to locate executable using which 35791 new_path=`$WHICH "$new_path" 2> /dev/null` 35792 35793 if test "x$new_path" = x; then 35794 # Oops. Which didn't find the executable. 35795 # The splitting of arguments from the executable at a space might have been incorrect, 35796 # since paths with space are more likely in Windows. Give it another try with the whole 35797 # argument. 35798 path="$complete" 35799 arguments="EOL" 35800 new_path="$path" 35801 35802 windows_path="$new_path" 35803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35804 unix_path=`$CYGPATH -u "$windows_path"` 35805 new_path="$unix_path" 35806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35807 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35808 new_path="$unix_path" 35809 fi 35810 35811 35812 new_path=`$WHICH "$new_path" 2> /dev/null` 35813 35814 if test "x$new_path" = x; then 35815 # It's still not found. Now this is an unrecoverable error. 35816 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35817 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35818 has_space=`$ECHO "$complete" | $GREP " "` 35819 if test "x$has_space" != x; then 35820 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35821 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35822 fi 35823 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35824 fi 35825 fi 35826 35827 # Now new_path has a complete unix path to the binary 35828 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35829 # Keep paths in /bin as-is, but remove trailing .exe if any 35830 new_path="${new_path/%.exe/}" 35831 # Do not save /bin paths to all_fixpath_prefixes! 35832 else 35833 # Not in mixed or Windows style, start by that. 35834 new_path=`cmd //c echo $new_path` 35835 35836 input_path="$new_path" 35837 # Check if we need to convert this using DOS-style short mode. If the path 35838 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35839 # take no chances and rewrite it. 35840 # Note: m4 eats our [], so we need to use [ and ] instead. 35841 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35842 if test "x$has_forbidden_chars" != x; then 35843 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35844 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35845 fi 35846 35847 # Output is in $new_path 35848 35849 windows_path="$new_path" 35850 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35851 unix_path=`$CYGPATH -u "$windows_path"` 35852 new_path="$unix_path" 35853 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35854 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35855 new_path="$unix_path" 35856 fi 35857 35858 # remove trailing .exe if any 35859 new_path="${new_path/%.exe/}" 35860 35861 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35862 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35863 fi 35864 35865 else 35866 # We're on a posix platform. Hooray! :) 35867 # First separate the path from the arguments. This will split at the first 35868 # space. 35869 complete="$CXXCPP" 35870 path="${complete%% *}" 35871 tmp="$complete EOL" 35872 arguments="${tmp#* }" 35873 35874 # Cannot rely on the command "which" here since it doesn't always work. 35875 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35876 if test -z "$is_absolute_path"; then 35877 # Path to executable is not absolute. Find it. 35878 IFS_save="$IFS" 35879 IFS=: 35880 for p in $PATH; do 35881 if test -f "$p/$path" && test -x "$p/$path"; then 35882 new_path="$p/$path" 35883 break 35884 fi 35885 done 35886 IFS="$IFS_save" 35887 else 35888 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving CXXCPP (as $path) failed, using $path directly." >&5 35889 $as_echo "$as_me: Resolving CXXCPP (as $path) failed, using $path directly." >&6;} 35890 new_path="$path" 35891 fi 35892 35893 if test "x$new_path" = x; then 35894 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 35895 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 35896 has_space=`$ECHO "$complete" | $GREP " "` 35897 if test "x$has_space" != x; then 35898 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35899 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35900 fi 35901 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 35902 fi 35903 fi 35904 35905 # Now join together the path and the arguments once again 35906 if test "x$arguments" != xEOL; then 35907 new_complete="$new_path ${arguments% *}" 35908 else 35909 new_complete="$new_path" 35910 fi 35911 35912 if test "x$complete" != "x$new_complete"; then 35913 CXXCPP="$new_complete" 35914 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 35915 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 35916 fi 35917 35918 35919 if test "x$COMPILE_TYPE" != "xcross"; then 35920 # If we are not cross compiling, use the same compilers for 35921 # building the build platform executables. The cross-compilation 35922 # case needed to be done earlier, but this can only be done after 35923 # the native tools have been localized. 35924 BUILD_CC="$CC" 35925 BUILD_CXX="$CXX" 35926 BUILD_LD="$LD" 35927 fi 35928 35929 # for solaris we really need solaris tools, and not gnu equivalent 35930 # these seems to normally reside in /usr/ccs/bin so add that to path before 35931 # starting to probe 35932 # 35933 # NOTE: I add this /usr/ccs/bin after TOOLS but before OLD_PATH 35934 # so that it can be overriden --with-tools-dir 35935 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 35936 PATH="${TOOLS_DIR}:/usr/ccs/bin:${OLD_PATH}" 35937 fi 35938 35939 # Find the right assembler. 35940 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 35941 35942 35943 # Publish this variable in the help. 35944 35945 35946 if test "x$AS" = x; then 35947 # The variable is not set by user, try to locate tool using the code snippet 35948 for ac_prog in as 35949 do 35950 # Extract the first word of "$ac_prog", so it can be a program name with args. 35951 set dummy $ac_prog; ac_word=$2 35952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35953 $as_echo_n "checking for $ac_word... " >&6; } 35954 if ${ac_cv_path_AS+:} false; then : 35955 $as_echo_n "(cached) " >&6 35956 else 35957 case $AS in 35958 [\\/]* | ?:[\\/]*) 35959 ac_cv_path_AS="$AS" # Let the user override the test with a path. 35960 ;; 35961 *) 35962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35963 for as_dir in $PATH 35964 do 35965 IFS=$as_save_IFS 35966 test -z "$as_dir" && as_dir=. 35967 for ac_exec_ext in '' $ac_executable_extensions; do 35968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35969 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 35970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35971 break 2 35972 fi 35973 done 35974 done 35975 IFS=$as_save_IFS 35976 35977 ;; 35978 esac 35979 fi 35980 AS=$ac_cv_path_AS 35981 if test -n "$AS"; then 35982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 35983 $as_echo "$AS" >&6; } 35984 else 35985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35986 $as_echo "no" >&6; } 35987 fi 35988 35989 35990 test -n "$AS" && break 35991 done 35992 35993 else 35994 # The variable is set, but is it from the command line or the environment? 35995 35996 # Try to remove the string !AS! from our list. 35997 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 35998 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35999 # If it failed, the variable was not from the command line. Ignore it, 36000 # but warn the user (except for BASH, which is always set by the calling BASH). 36001 if test "xAS" != xBASH; then 36002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 36003 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 36004 fi 36005 # Try to locate tool using the code snippet 36006 for ac_prog in as 36007 do 36008 # Extract the first word of "$ac_prog", so it can be a program name with args. 36009 set dummy $ac_prog; ac_word=$2 36010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36011 $as_echo_n "checking for $ac_word... " >&6; } 36012 if ${ac_cv_path_AS+:} false; then : 36013 $as_echo_n "(cached) " >&6 36014 else 36015 case $AS in 36016 [\\/]* | ?:[\\/]*) 36017 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36018 ;; 36019 *) 36020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36021 for as_dir in $PATH 36022 do 36023 IFS=$as_save_IFS 36024 test -z "$as_dir" && as_dir=. 36025 for ac_exec_ext in '' $ac_executable_extensions; do 36026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36027 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36029 break 2 36030 fi 36031 done 36032 done 36033 IFS=$as_save_IFS 36034 36035 ;; 36036 esac 36037 fi 36038 AS=$ac_cv_path_AS 36039 if test -n "$AS"; then 36040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36041 $as_echo "$AS" >&6; } 36042 else 36043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36044 $as_echo "no" >&6; } 36045 fi 36046 36047 36048 test -n "$AS" && break 36049 done 36050 36051 else 36052 # If it succeeded, then it was overridden by the user. We will use it 36053 # for the tool. 36054 36055 # First remove it from the list of overridden variables, so we can test 36056 # for unknown variables in the end. 36057 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36058 36059 # Check if the provided tool contains a complete path. 36060 tool_specified="$AS" 36061 tool_basename="${tool_specified##*/}" 36062 if test "x$tool_basename" = "x$tool_specified"; then 36063 # A command without a complete path is provided, search $PATH. 36064 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 36065 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 36066 # Extract the first word of "$tool_basename", so it can be a program name with args. 36067 set dummy $tool_basename; ac_word=$2 36068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36069 $as_echo_n "checking for $ac_word... " >&6; } 36070 if ${ac_cv_path_AS+:} false; then : 36071 $as_echo_n "(cached) " >&6 36072 else 36073 case $AS in 36074 [\\/]* | ?:[\\/]*) 36075 ac_cv_path_AS="$AS" # Let the user override the test with a path. 36076 ;; 36077 *) 36078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36079 for as_dir in $PATH 36080 do 36081 IFS=$as_save_IFS 36082 test -z "$as_dir" && as_dir=. 36083 for ac_exec_ext in '' $ac_executable_extensions; do 36084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36085 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 36086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36087 break 2 36088 fi 36089 done 36090 done 36091 IFS=$as_save_IFS 36092 36093 ;; 36094 esac 36095 fi 36096 AS=$ac_cv_path_AS 36097 if test -n "$AS"; then 36098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 36099 $as_echo "$AS" >&6; } 36100 else 36101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36102 $as_echo "no" >&6; } 36103 fi 36104 36105 36106 if test "x$AS" = x; then 36107 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36108 fi 36109 else 36110 # Otherwise we believe it is a complete path. Use it as it is. 36111 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 36112 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 36113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 36114 $as_echo_n "checking for AS... " >&6; } 36115 if test ! -x "$tool_specified"; then 36116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36117 $as_echo "not found" >&6; } 36118 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 36119 fi 36120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36121 $as_echo "$tool_specified" >&6; } 36122 fi 36123 fi 36124 fi 36125 36126 36127 36128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36129 36130 # First separate the path from the arguments. This will split at the first 36131 # space. 36132 complete="$AS" 36133 path="${complete%% *}" 36134 tmp="$complete EOL" 36135 arguments="${tmp#* }" 36136 36137 # Input might be given as Windows format, start by converting to 36138 # unix format. 36139 new_path=`$CYGPATH -u "$path"` 36140 36141 # Now try to locate executable using which 36142 new_path=`$WHICH "$new_path" 2> /dev/null` 36143 # bat and cmd files are not always considered executable in cygwin causing which 36144 # to not find them 36145 if test "x$new_path" = x \ 36146 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36147 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36148 new_path=`$CYGPATH -u "$path"` 36149 fi 36150 if test "x$new_path" = x; then 36151 # Oops. Which didn't find the executable. 36152 # The splitting of arguments from the executable at a space might have been incorrect, 36153 # since paths with space are more likely in Windows. Give it another try with the whole 36154 # argument. 36155 path="$complete" 36156 arguments="EOL" 36157 new_path=`$CYGPATH -u "$path"` 36158 new_path=`$WHICH "$new_path" 2> /dev/null` 36159 # bat and cmd files are not always considered executable in cygwin causing which 36160 # to not find them 36161 if test "x$new_path" = x \ 36162 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36163 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36164 new_path=`$CYGPATH -u "$path"` 36165 fi 36166 if test "x$new_path" = x; then 36167 # It's still not found. Now this is an unrecoverable error. 36168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36169 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36170 has_space=`$ECHO "$complete" | $GREP " "` 36171 if test "x$has_space" != x; then 36172 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36173 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36174 fi 36175 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36176 fi 36177 fi 36178 36179 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36180 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36181 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36182 # "foo.exe" is OK but "foo" is an error. 36183 # 36184 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36185 # It is also a way to make sure we got the proper file name for the real test later on. 36186 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36187 if test "x$test_shortpath" = x; then 36188 # Short path failed, file does not exist as specified. 36189 # Try adding .exe or .cmd 36190 if test -f "${new_path}.exe"; then 36191 input_to_shortpath="${new_path}.exe" 36192 elif test -f "${new_path}.cmd"; then 36193 input_to_shortpath="${new_path}.cmd" 36194 else 36195 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 36196 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 36197 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36198 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36199 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36200 fi 36201 else 36202 input_to_shortpath="$new_path" 36203 fi 36204 36205 # Call helper function which possibly converts this using DOS-style short mode. 36206 # If so, the updated path is stored in $new_path. 36207 new_path="$input_to_shortpath" 36208 36209 input_path="$input_to_shortpath" 36210 # Check if we need to convert this using DOS-style short mode. If the path 36211 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36212 # take no chances and rewrite it. 36213 # Note: m4 eats our [], so we need to use [ and ] instead. 36214 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36215 if test "x$has_forbidden_chars" != x; then 36216 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36217 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36218 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36219 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36220 # Going to short mode and back again did indeed matter. Since short mode is 36221 # case insensitive, let's make it lowercase to improve readability. 36222 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36223 # Now convert it back to Unix-stile (cygpath) 36224 input_path=`$CYGPATH -u "$shortmode_path"` 36225 new_path="$input_path" 36226 fi 36227 fi 36228 36229 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36230 if test "x$test_cygdrive_prefix" = x; then 36231 # As a simple fix, exclude /usr/bin since it's not a real path. 36232 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36233 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36234 # a path prefixed by /cygdrive for fixpath to work. 36235 new_path="$CYGWIN_ROOT_PATH$input_path" 36236 fi 36237 fi 36238 36239 # remove trailing .exe if any 36240 new_path="${new_path/%.exe/}" 36241 36242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36243 36244 # First separate the path from the arguments. This will split at the first 36245 # space. 36246 complete="$AS" 36247 path="${complete%% *}" 36248 tmp="$complete EOL" 36249 arguments="${tmp#* }" 36250 36251 # Input might be given as Windows format, start by converting to 36252 # unix format. 36253 new_path="$path" 36254 36255 windows_path="$new_path" 36256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36257 unix_path=`$CYGPATH -u "$windows_path"` 36258 new_path="$unix_path" 36259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36261 new_path="$unix_path" 36262 fi 36263 36264 36265 # Now try to locate executable using which 36266 new_path=`$WHICH "$new_path" 2> /dev/null` 36267 36268 if test "x$new_path" = x; then 36269 # Oops. Which didn't find the executable. 36270 # The splitting of arguments from the executable at a space might have been incorrect, 36271 # since paths with space are more likely in Windows. Give it another try with the whole 36272 # argument. 36273 path="$complete" 36274 arguments="EOL" 36275 new_path="$path" 36276 36277 windows_path="$new_path" 36278 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36279 unix_path=`$CYGPATH -u "$windows_path"` 36280 new_path="$unix_path" 36281 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36282 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36283 new_path="$unix_path" 36284 fi 36285 36286 36287 new_path=`$WHICH "$new_path" 2> /dev/null` 36288 36289 if test "x$new_path" = x; then 36290 # It's still not found. Now this is an unrecoverable error. 36291 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36292 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36293 has_space=`$ECHO "$complete" | $GREP " "` 36294 if test "x$has_space" != x; then 36295 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36296 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36297 fi 36298 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36299 fi 36300 fi 36301 36302 # Now new_path has a complete unix path to the binary 36303 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36304 # Keep paths in /bin as-is, but remove trailing .exe if any 36305 new_path="${new_path/%.exe/}" 36306 # Do not save /bin paths to all_fixpath_prefixes! 36307 else 36308 # Not in mixed or Windows style, start by that. 36309 new_path=`cmd //c echo $new_path` 36310 36311 input_path="$new_path" 36312 # Check if we need to convert this using DOS-style short mode. If the path 36313 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36314 # take no chances and rewrite it. 36315 # Note: m4 eats our [], so we need to use [ and ] instead. 36316 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36317 if test "x$has_forbidden_chars" != x; then 36318 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36319 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36320 fi 36321 36322 # Output is in $new_path 36323 36324 windows_path="$new_path" 36325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36326 unix_path=`$CYGPATH -u "$windows_path"` 36327 new_path="$unix_path" 36328 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36329 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36330 new_path="$unix_path" 36331 fi 36332 36333 # remove trailing .exe if any 36334 new_path="${new_path/%.exe/}" 36335 36336 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36337 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36338 fi 36339 36340 else 36341 # We're on a posix platform. Hooray! :) 36342 # First separate the path from the arguments. This will split at the first 36343 # space. 36344 complete="$AS" 36345 path="${complete%% *}" 36346 tmp="$complete EOL" 36347 arguments="${tmp#* }" 36348 36349 # Cannot rely on the command "which" here since it doesn't always work. 36350 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36351 if test -z "$is_absolute_path"; then 36352 # Path to executable is not absolute. Find it. 36353 IFS_save="$IFS" 36354 IFS=: 36355 for p in $PATH; do 36356 if test -f "$p/$path" && test -x "$p/$path"; then 36357 new_path="$p/$path" 36358 break 36359 fi 36360 done 36361 IFS="$IFS_save" 36362 else 36363 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving AS (as $path) failed, using $path directly." >&5 36364 $as_echo "$as_me: Resolving AS (as $path) failed, using $path directly." >&6;} 36365 new_path="$path" 36366 fi 36367 36368 if test "x$new_path" = x; then 36369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 36370 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 36371 has_space=`$ECHO "$complete" | $GREP " "` 36372 if test "x$has_space" != x; then 36373 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36374 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36375 fi 36376 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 36377 fi 36378 fi 36379 36380 # Now join together the path and the arguments once again 36381 if test "x$arguments" != xEOL; then 36382 new_complete="$new_path ${arguments% *}" 36383 else 36384 new_complete="$new_path" 36385 fi 36386 36387 if test "x$complete" != "x$new_complete"; then 36388 AS="$new_complete" 36389 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 36390 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 36391 fi 36392 36393 else 36394 AS="$CC -c" 36395 fi 36396 36397 36398 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 36399 36400 36401 # Publish this variable in the help. 36402 36403 36404 if test "x$NM" = x; then 36405 # The variable is not set by user, try to locate tool using the code snippet 36406 for ac_prog in nm 36407 do 36408 # Extract the first word of "$ac_prog", so it can be a program name with args. 36409 set dummy $ac_prog; ac_word=$2 36410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36411 $as_echo_n "checking for $ac_word... " >&6; } 36412 if ${ac_cv_path_NM+:} false; then : 36413 $as_echo_n "(cached) " >&6 36414 else 36415 case $NM in 36416 [\\/]* | ?:[\\/]*) 36417 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36418 ;; 36419 *) 36420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36421 for as_dir in $PATH 36422 do 36423 IFS=$as_save_IFS 36424 test -z "$as_dir" && as_dir=. 36425 for ac_exec_ext in '' $ac_executable_extensions; do 36426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36427 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36429 break 2 36430 fi 36431 done 36432 done 36433 IFS=$as_save_IFS 36434 36435 ;; 36436 esac 36437 fi 36438 NM=$ac_cv_path_NM 36439 if test -n "$NM"; then 36440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36441 $as_echo "$NM" >&6; } 36442 else 36443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36444 $as_echo "no" >&6; } 36445 fi 36446 36447 36448 test -n "$NM" && break 36449 done 36450 36451 else 36452 # The variable is set, but is it from the command line or the environment? 36453 36454 # Try to remove the string !NM! from our list. 36455 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 36456 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36457 # If it failed, the variable was not from the command line. Ignore it, 36458 # but warn the user (except for BASH, which is always set by the calling BASH). 36459 if test "xNM" != xBASH; then 36460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 36461 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 36462 fi 36463 # Try to locate tool using the code snippet 36464 for ac_prog in nm 36465 do 36466 # Extract the first word of "$ac_prog", so it can be a program name with args. 36467 set dummy $ac_prog; ac_word=$2 36468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36469 $as_echo_n "checking for $ac_word... " >&6; } 36470 if ${ac_cv_path_NM+:} false; then : 36471 $as_echo_n "(cached) " >&6 36472 else 36473 case $NM in 36474 [\\/]* | ?:[\\/]*) 36475 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36476 ;; 36477 *) 36478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36479 for as_dir in $PATH 36480 do 36481 IFS=$as_save_IFS 36482 test -z "$as_dir" && as_dir=. 36483 for ac_exec_ext in '' $ac_executable_extensions; do 36484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36485 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36487 break 2 36488 fi 36489 done 36490 done 36491 IFS=$as_save_IFS 36492 36493 ;; 36494 esac 36495 fi 36496 NM=$ac_cv_path_NM 36497 if test -n "$NM"; then 36498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36499 $as_echo "$NM" >&6; } 36500 else 36501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36502 $as_echo "no" >&6; } 36503 fi 36504 36505 36506 test -n "$NM" && break 36507 done 36508 36509 else 36510 # If it succeeded, then it was overridden by the user. We will use it 36511 # for the tool. 36512 36513 # First remove it from the list of overridden variables, so we can test 36514 # for unknown variables in the end. 36515 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36516 36517 # Check if the provided tool contains a complete path. 36518 tool_specified="$NM" 36519 tool_basename="${tool_specified##*/}" 36520 if test "x$tool_basename" = "x$tool_specified"; then 36521 # A command without a complete path is provided, search $PATH. 36522 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 36523 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 36524 # Extract the first word of "$tool_basename", so it can be a program name with args. 36525 set dummy $tool_basename; ac_word=$2 36526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36527 $as_echo_n "checking for $ac_word... " >&6; } 36528 if ${ac_cv_path_NM+:} false; then : 36529 $as_echo_n "(cached) " >&6 36530 else 36531 case $NM in 36532 [\\/]* | ?:[\\/]*) 36533 ac_cv_path_NM="$NM" # Let the user override the test with a path. 36534 ;; 36535 *) 36536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36537 for as_dir in $PATH 36538 do 36539 IFS=$as_save_IFS 36540 test -z "$as_dir" && as_dir=. 36541 for ac_exec_ext in '' $ac_executable_extensions; do 36542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36543 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36545 break 2 36546 fi 36547 done 36548 done 36549 IFS=$as_save_IFS 36550 36551 ;; 36552 esac 36553 fi 36554 NM=$ac_cv_path_NM 36555 if test -n "$NM"; then 36556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36557 $as_echo "$NM" >&6; } 36558 else 36559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36560 $as_echo "no" >&6; } 36561 fi 36562 36563 36564 if test "x$NM" = x; then 36565 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36566 fi 36567 else 36568 # Otherwise we believe it is a complete path. Use it as it is. 36569 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 36570 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 36571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 36572 $as_echo_n "checking for NM... " >&6; } 36573 if test ! -x "$tool_specified"; then 36574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36575 $as_echo "not found" >&6; } 36576 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 36577 fi 36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36579 $as_echo "$tool_specified" >&6; } 36580 fi 36581 fi 36582 fi 36583 36584 36585 36586 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36587 36588 # First separate the path from the arguments. This will split at the first 36589 # space. 36590 complete="$NM" 36591 path="${complete%% *}" 36592 tmp="$complete EOL" 36593 arguments="${tmp#* }" 36594 36595 # Input might be given as Windows format, start by converting to 36596 # unix format. 36597 new_path=`$CYGPATH -u "$path"` 36598 36599 # Now try to locate executable using which 36600 new_path=`$WHICH "$new_path" 2> /dev/null` 36601 # bat and cmd files are not always considered executable in cygwin causing which 36602 # to not find them 36603 if test "x$new_path" = x \ 36604 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36605 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36606 new_path=`$CYGPATH -u "$path"` 36607 fi 36608 if test "x$new_path" = x; then 36609 # Oops. Which didn't find the executable. 36610 # The splitting of arguments from the executable at a space might have been incorrect, 36611 # since paths with space are more likely in Windows. Give it another try with the whole 36612 # argument. 36613 path="$complete" 36614 arguments="EOL" 36615 new_path=`$CYGPATH -u "$path"` 36616 new_path=`$WHICH "$new_path" 2> /dev/null` 36617 # bat and cmd files are not always considered executable in cygwin causing which 36618 # to not find them 36619 if test "x$new_path" = x \ 36620 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36621 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36622 new_path=`$CYGPATH -u "$path"` 36623 fi 36624 if test "x$new_path" = x; then 36625 # It's still not found. Now this is an unrecoverable error. 36626 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36627 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36628 has_space=`$ECHO "$complete" | $GREP " "` 36629 if test "x$has_space" != x; then 36630 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36631 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36632 fi 36633 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36634 fi 36635 fi 36636 36637 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36638 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36639 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36640 # "foo.exe" is OK but "foo" is an error. 36641 # 36642 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36643 # It is also a way to make sure we got the proper file name for the real test later on. 36644 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36645 if test "x$test_shortpath" = x; then 36646 # Short path failed, file does not exist as specified. 36647 # Try adding .exe or .cmd 36648 if test -f "${new_path}.exe"; then 36649 input_to_shortpath="${new_path}.exe" 36650 elif test -f "${new_path}.cmd"; then 36651 input_to_shortpath="${new_path}.cmd" 36652 else 36653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 36654 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 36655 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36656 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36657 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36658 fi 36659 else 36660 input_to_shortpath="$new_path" 36661 fi 36662 36663 # Call helper function which possibly converts this using DOS-style short mode. 36664 # If so, the updated path is stored in $new_path. 36665 new_path="$input_to_shortpath" 36666 36667 input_path="$input_to_shortpath" 36668 # Check if we need to convert this using DOS-style short mode. If the path 36669 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36670 # take no chances and rewrite it. 36671 # Note: m4 eats our [], so we need to use [ and ] instead. 36672 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36673 if test "x$has_forbidden_chars" != x; then 36674 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36675 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36676 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36677 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36678 # Going to short mode and back again did indeed matter. Since short mode is 36679 # case insensitive, let's make it lowercase to improve readability. 36680 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36681 # Now convert it back to Unix-stile (cygpath) 36682 input_path=`$CYGPATH -u "$shortmode_path"` 36683 new_path="$input_path" 36684 fi 36685 fi 36686 36687 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36688 if test "x$test_cygdrive_prefix" = x; then 36689 # As a simple fix, exclude /usr/bin since it's not a real path. 36690 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36691 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36692 # a path prefixed by /cygdrive for fixpath to work. 36693 new_path="$CYGWIN_ROOT_PATH$input_path" 36694 fi 36695 fi 36696 36697 # remove trailing .exe if any 36698 new_path="${new_path/%.exe/}" 36699 36700 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36701 36702 # First separate the path from the arguments. This will split at the first 36703 # space. 36704 complete="$NM" 36705 path="${complete%% *}" 36706 tmp="$complete EOL" 36707 arguments="${tmp#* }" 36708 36709 # Input might be given as Windows format, start by converting to 36710 # unix format. 36711 new_path="$path" 36712 36713 windows_path="$new_path" 36714 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36715 unix_path=`$CYGPATH -u "$windows_path"` 36716 new_path="$unix_path" 36717 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36718 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36719 new_path="$unix_path" 36720 fi 36721 36722 36723 # Now try to locate executable using which 36724 new_path=`$WHICH "$new_path" 2> /dev/null` 36725 36726 if test "x$new_path" = x; then 36727 # Oops. Which didn't find the executable. 36728 # The splitting of arguments from the executable at a space might have been incorrect, 36729 # since paths with space are more likely in Windows. Give it another try with the whole 36730 # argument. 36731 path="$complete" 36732 arguments="EOL" 36733 new_path="$path" 36734 36735 windows_path="$new_path" 36736 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36737 unix_path=`$CYGPATH -u "$windows_path"` 36738 new_path="$unix_path" 36739 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36740 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36741 new_path="$unix_path" 36742 fi 36743 36744 36745 new_path=`$WHICH "$new_path" 2> /dev/null` 36746 36747 if test "x$new_path" = x; then 36748 # It's still not found. Now this is an unrecoverable error. 36749 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36750 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36751 has_space=`$ECHO "$complete" | $GREP " "` 36752 if test "x$has_space" != x; then 36753 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36754 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36755 fi 36756 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36757 fi 36758 fi 36759 36760 # Now new_path has a complete unix path to the binary 36761 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36762 # Keep paths in /bin as-is, but remove trailing .exe if any 36763 new_path="${new_path/%.exe/}" 36764 # Do not save /bin paths to all_fixpath_prefixes! 36765 else 36766 # Not in mixed or Windows style, start by that. 36767 new_path=`cmd //c echo $new_path` 36768 36769 input_path="$new_path" 36770 # Check if we need to convert this using DOS-style short mode. If the path 36771 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36772 # take no chances and rewrite it. 36773 # Note: m4 eats our [], so we need to use [ and ] instead. 36774 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36775 if test "x$has_forbidden_chars" != x; then 36776 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36777 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36778 fi 36779 36780 # Output is in $new_path 36781 36782 windows_path="$new_path" 36783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36784 unix_path=`$CYGPATH -u "$windows_path"` 36785 new_path="$unix_path" 36786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36788 new_path="$unix_path" 36789 fi 36790 36791 # remove trailing .exe if any 36792 new_path="${new_path/%.exe/}" 36793 36794 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36795 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36796 fi 36797 36798 else 36799 # We're on a posix platform. Hooray! :) 36800 # First separate the path from the arguments. This will split at the first 36801 # space. 36802 complete="$NM" 36803 path="${complete%% *}" 36804 tmp="$complete EOL" 36805 arguments="${tmp#* }" 36806 36807 # Cannot rely on the command "which" here since it doesn't always work. 36808 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36809 if test -z "$is_absolute_path"; then 36810 # Path to executable is not absolute. Find it. 36811 IFS_save="$IFS" 36812 IFS=: 36813 for p in $PATH; do 36814 if test -f "$p/$path" && test -x "$p/$path"; then 36815 new_path="$p/$path" 36816 break 36817 fi 36818 done 36819 IFS="$IFS_save" 36820 else 36821 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5 36822 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;} 36823 new_path="$path" 36824 fi 36825 36826 if test "x$new_path" = x; then 36827 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36828 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36829 has_space=`$ECHO "$complete" | $GREP " "` 36830 if test "x$has_space" != x; then 36831 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36832 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36833 fi 36834 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36835 fi 36836 fi 36837 36838 # Now join together the path and the arguments once again 36839 if test "x$arguments" != xEOL; then 36840 new_complete="$new_path ${arguments% *}" 36841 else 36842 new_complete="$new_path" 36843 fi 36844 36845 if test "x$complete" != "x$new_complete"; then 36846 NM="$new_complete" 36847 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36848 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36849 fi 36850 36851 36852 36853 # Publish this variable in the help. 36854 36855 36856 if test "x$GNM" = x; then 36857 # The variable is not set by user, try to locate tool using the code snippet 36858 for ac_prog in gnm 36859 do 36860 # Extract the first word of "$ac_prog", so it can be a program name with args. 36861 set dummy $ac_prog; ac_word=$2 36862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36863 $as_echo_n "checking for $ac_word... " >&6; } 36864 if ${ac_cv_path_GNM+:} false; then : 36865 $as_echo_n "(cached) " >&6 36866 else 36867 case $GNM in 36868 [\\/]* | ?:[\\/]*) 36869 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36870 ;; 36871 *) 36872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36873 for as_dir in $PATH 36874 do 36875 IFS=$as_save_IFS 36876 test -z "$as_dir" && as_dir=. 36877 for ac_exec_ext in '' $ac_executable_extensions; do 36878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36879 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36881 break 2 36882 fi 36883 done 36884 done 36885 IFS=$as_save_IFS 36886 36887 ;; 36888 esac 36889 fi 36890 GNM=$ac_cv_path_GNM 36891 if test -n "$GNM"; then 36892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36893 $as_echo "$GNM" >&6; } 36894 else 36895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36896 $as_echo "no" >&6; } 36897 fi 36898 36899 36900 test -n "$GNM" && break 36901 done 36902 36903 else 36904 # The variable is set, but is it from the command line or the environment? 36905 36906 # Try to remove the string !GNM! from our list. 36907 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 36908 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36909 # If it failed, the variable was not from the command line. Ignore it, 36910 # but warn the user (except for BASH, which is always set by the calling BASH). 36911 if test "xGNM" != xBASH; then 36912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 36913 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 36914 fi 36915 # Try to locate tool using the code snippet 36916 for ac_prog in gnm 36917 do 36918 # Extract the first word of "$ac_prog", so it can be a program name with args. 36919 set dummy $ac_prog; ac_word=$2 36920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36921 $as_echo_n "checking for $ac_word... " >&6; } 36922 if ${ac_cv_path_GNM+:} false; then : 36923 $as_echo_n "(cached) " >&6 36924 else 36925 case $GNM in 36926 [\\/]* | ?:[\\/]*) 36927 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36928 ;; 36929 *) 36930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36931 for as_dir in $PATH 36932 do 36933 IFS=$as_save_IFS 36934 test -z "$as_dir" && as_dir=. 36935 for ac_exec_ext in '' $ac_executable_extensions; do 36936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36937 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36939 break 2 36940 fi 36941 done 36942 done 36943 IFS=$as_save_IFS 36944 36945 ;; 36946 esac 36947 fi 36948 GNM=$ac_cv_path_GNM 36949 if test -n "$GNM"; then 36950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 36951 $as_echo "$GNM" >&6; } 36952 else 36953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36954 $as_echo "no" >&6; } 36955 fi 36956 36957 36958 test -n "$GNM" && break 36959 done 36960 36961 else 36962 # If it succeeded, then it was overridden by the user. We will use it 36963 # for the tool. 36964 36965 # First remove it from the list of overridden variables, so we can test 36966 # for unknown variables in the end. 36967 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36968 36969 # Check if the provided tool contains a complete path. 36970 tool_specified="$GNM" 36971 tool_basename="${tool_specified##*/}" 36972 if test "x$tool_basename" = "x$tool_specified"; then 36973 # A command without a complete path is provided, search $PATH. 36974 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 36975 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 36976 # Extract the first word of "$tool_basename", so it can be a program name with args. 36977 set dummy $tool_basename; ac_word=$2 36978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36979 $as_echo_n "checking for $ac_word... " >&6; } 36980 if ${ac_cv_path_GNM+:} false; then : 36981 $as_echo_n "(cached) " >&6 36982 else 36983 case $GNM in 36984 [\\/]* | ?:[\\/]*) 36985 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 36986 ;; 36987 *) 36988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36989 for as_dir in $PATH 36990 do 36991 IFS=$as_save_IFS 36992 test -z "$as_dir" && as_dir=. 36993 for ac_exec_ext in '' $ac_executable_extensions; do 36994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36995 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 36996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36997 break 2 36998 fi 36999 done 37000 done 37001 IFS=$as_save_IFS 37002 37003 ;; 37004 esac 37005 fi 37006 GNM=$ac_cv_path_GNM 37007 if test -n "$GNM"; then 37008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 37009 $as_echo "$GNM" >&6; } 37010 else 37011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37012 $as_echo "no" >&6; } 37013 fi 37014 37015 37016 if test "x$GNM" = x; then 37017 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37018 fi 37019 else 37020 # Otherwise we believe it is a complete path. Use it as it is. 37021 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 37022 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 37023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 37024 $as_echo_n "checking for GNM... " >&6; } 37025 if test ! -x "$tool_specified"; then 37026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37027 $as_echo "not found" >&6; } 37028 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 37029 fi 37030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37031 $as_echo "$tool_specified" >&6; } 37032 fi 37033 fi 37034 fi 37035 37036 37037 37038 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37039 37040 # First separate the path from the arguments. This will split at the first 37041 # space. 37042 complete="$GNM" 37043 path="${complete%% *}" 37044 tmp="$complete EOL" 37045 arguments="${tmp#* }" 37046 37047 # Input might be given as Windows format, start by converting to 37048 # unix format. 37049 new_path=`$CYGPATH -u "$path"` 37050 37051 # Now try to locate executable using which 37052 new_path=`$WHICH "$new_path" 2> /dev/null` 37053 # bat and cmd files are not always considered executable in cygwin causing which 37054 # to not find them 37055 if test "x$new_path" = x \ 37056 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37057 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37058 new_path=`$CYGPATH -u "$path"` 37059 fi 37060 if test "x$new_path" = x; then 37061 # Oops. Which didn't find the executable. 37062 # The splitting of arguments from the executable at a space might have been incorrect, 37063 # since paths with space are more likely in Windows. Give it another try with the whole 37064 # argument. 37065 path="$complete" 37066 arguments="EOL" 37067 new_path=`$CYGPATH -u "$path"` 37068 new_path=`$WHICH "$new_path" 2> /dev/null` 37069 # bat and cmd files are not always considered executable in cygwin causing which 37070 # to not find them 37071 if test "x$new_path" = x \ 37072 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37073 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37074 new_path=`$CYGPATH -u "$path"` 37075 fi 37076 if test "x$new_path" = x; then 37077 # It's still not found. Now this is an unrecoverable error. 37078 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 37079 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 37080 has_space=`$ECHO "$complete" | $GREP " "` 37081 if test "x$has_space" != x; then 37082 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37083 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37084 fi 37085 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37086 fi 37087 fi 37088 37089 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37090 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37091 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37092 # "foo.exe" is OK but "foo" is an error. 37093 # 37094 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37095 # It is also a way to make sure we got the proper file name for the real test later on. 37096 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37097 if test "x$test_shortpath" = x; then 37098 # Short path failed, file does not exist as specified. 37099 # Try adding .exe or .cmd 37100 if test -f "${new_path}.exe"; then 37101 input_to_shortpath="${new_path}.exe" 37102 elif test -f "${new_path}.cmd"; then 37103 input_to_shortpath="${new_path}.cmd" 37104 else 37105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 37106 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 37107 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37108 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37109 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37110 fi 37111 else 37112 input_to_shortpath="$new_path" 37113 fi 37114 37115 # Call helper function which possibly converts this using DOS-style short mode. 37116 # If so, the updated path is stored in $new_path. 37117 new_path="$input_to_shortpath" 37118 37119 input_path="$input_to_shortpath" 37120 # Check if we need to convert this using DOS-style short mode. If the path 37121 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37122 # take no chances and rewrite it. 37123 # Note: m4 eats our [], so we need to use [ and ] instead. 37124 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37125 if test "x$has_forbidden_chars" != x; then 37126 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37127 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37128 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37129 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37130 # Going to short mode and back again did indeed matter. Since short mode is 37131 # case insensitive, let's make it lowercase to improve readability. 37132 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37133 # Now convert it back to Unix-stile (cygpath) 37134 input_path=`$CYGPATH -u "$shortmode_path"` 37135 new_path="$input_path" 37136 fi 37137 fi 37138 37139 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37140 if test "x$test_cygdrive_prefix" = x; then 37141 # As a simple fix, exclude /usr/bin since it's not a real path. 37142 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37143 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37144 # a path prefixed by /cygdrive for fixpath to work. 37145 new_path="$CYGWIN_ROOT_PATH$input_path" 37146 fi 37147 fi 37148 37149 # remove trailing .exe if any 37150 new_path="${new_path/%.exe/}" 37151 37152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37153 37154 # First separate the path from the arguments. This will split at the first 37155 # space. 37156 complete="$GNM" 37157 path="${complete%% *}" 37158 tmp="$complete EOL" 37159 arguments="${tmp#* }" 37160 37161 # Input might be given as Windows format, start by converting to 37162 # unix format. 37163 new_path="$path" 37164 37165 windows_path="$new_path" 37166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37167 unix_path=`$CYGPATH -u "$windows_path"` 37168 new_path="$unix_path" 37169 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37170 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37171 new_path="$unix_path" 37172 fi 37173 37174 37175 # Now try to locate executable using which 37176 new_path=`$WHICH "$new_path" 2> /dev/null` 37177 37178 if test "x$new_path" = x; then 37179 # Oops. Which didn't find the executable. 37180 # The splitting of arguments from the executable at a space might have been incorrect, 37181 # since paths with space are more likely in Windows. Give it another try with the whole 37182 # argument. 37183 path="$complete" 37184 arguments="EOL" 37185 new_path="$path" 37186 37187 windows_path="$new_path" 37188 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37189 unix_path=`$CYGPATH -u "$windows_path"` 37190 new_path="$unix_path" 37191 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37192 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37193 new_path="$unix_path" 37194 fi 37195 37196 37197 new_path=`$WHICH "$new_path" 2> /dev/null` 37198 37199 if test "x$new_path" = x; then 37200 # It's still not found. Now this is an unrecoverable error. 37201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 37202 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 37203 has_space=`$ECHO "$complete" | $GREP " "` 37204 if test "x$has_space" != x; then 37205 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37206 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37207 fi 37208 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37209 fi 37210 fi 37211 37212 # Now new_path has a complete unix path to the binary 37213 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37214 # Keep paths in /bin as-is, but remove trailing .exe if any 37215 new_path="${new_path/%.exe/}" 37216 # Do not save /bin paths to all_fixpath_prefixes! 37217 else 37218 # Not in mixed or Windows style, start by that. 37219 new_path=`cmd //c echo $new_path` 37220 37221 input_path="$new_path" 37222 # Check if we need to convert this using DOS-style short mode. If the path 37223 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37224 # take no chances and rewrite it. 37225 # Note: m4 eats our [], so we need to use [ and ] instead. 37226 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37227 if test "x$has_forbidden_chars" != x; then 37228 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37229 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37230 fi 37231 37232 # Output is in $new_path 37233 37234 windows_path="$new_path" 37235 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37236 unix_path=`$CYGPATH -u "$windows_path"` 37237 new_path="$unix_path" 37238 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37239 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37240 new_path="$unix_path" 37241 fi 37242 37243 # remove trailing .exe if any 37244 new_path="${new_path/%.exe/}" 37245 37246 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37247 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37248 fi 37249 37250 else 37251 # We're on a posix platform. Hooray! :) 37252 # First separate the path from the arguments. This will split at the first 37253 # space. 37254 complete="$GNM" 37255 path="${complete%% *}" 37256 tmp="$complete EOL" 37257 arguments="${tmp#* }" 37258 37259 # Cannot rely on the command "which" here since it doesn't always work. 37260 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37261 if test -z "$is_absolute_path"; then 37262 # Path to executable is not absolute. Find it. 37263 IFS_save="$IFS" 37264 IFS=: 37265 for p in $PATH; do 37266 if test -f "$p/$path" && test -x "$p/$path"; then 37267 new_path="$p/$path" 37268 break 37269 fi 37270 done 37271 IFS="$IFS_save" 37272 else 37273 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving GNM (as $path) failed, using $path directly." >&5 37274 $as_echo "$as_me: Resolving GNM (as $path) failed, using $path directly." >&6;} 37275 new_path="$path" 37276 fi 37277 37278 if test "x$new_path" = x; then 37279 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 37280 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 37281 has_space=`$ECHO "$complete" | $GREP " "` 37282 if test "x$has_space" != x; then 37283 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37284 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37285 fi 37286 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 37287 fi 37288 fi 37289 37290 # Now join together the path and the arguments once again 37291 if test "x$arguments" != xEOL; then 37292 new_complete="$new_path ${arguments% *}" 37293 else 37294 new_complete="$new_path" 37295 fi 37296 37297 if test "x$complete" != "x$new_complete"; then 37298 GNM="$new_complete" 37299 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 37300 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 37301 fi 37302 37303 37304 37305 # Publish this variable in the help. 37306 37307 37308 if test "x$STRIP" = x; then 37309 # The variable is not set by user, try to locate tool using the code snippet 37310 for ac_prog in strip 37311 do 37312 # Extract the first word of "$ac_prog", so it can be a program name with args. 37313 set dummy $ac_prog; ac_word=$2 37314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37315 $as_echo_n "checking for $ac_word... " >&6; } 37316 if ${ac_cv_path_STRIP+:} false; then : 37317 $as_echo_n "(cached) " >&6 37318 else 37319 case $STRIP in 37320 [\\/]* | ?:[\\/]*) 37321 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37322 ;; 37323 *) 37324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37325 for as_dir in $PATH 37326 do 37327 IFS=$as_save_IFS 37328 test -z "$as_dir" && as_dir=. 37329 for ac_exec_ext in '' $ac_executable_extensions; do 37330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37331 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37333 break 2 37334 fi 37335 done 37336 done 37337 IFS=$as_save_IFS 37338 37339 ;; 37340 esac 37341 fi 37342 STRIP=$ac_cv_path_STRIP 37343 if test -n "$STRIP"; then 37344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37345 $as_echo "$STRIP" >&6; } 37346 else 37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37348 $as_echo "no" >&6; } 37349 fi 37350 37351 37352 test -n "$STRIP" && break 37353 done 37354 37355 else 37356 # The variable is set, but is it from the command line or the environment? 37357 37358 # Try to remove the string !STRIP! from our list. 37359 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 37360 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37361 # If it failed, the variable was not from the command line. Ignore it, 37362 # but warn the user (except for BASH, which is always set by the calling BASH). 37363 if test "xSTRIP" != xBASH; then 37364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 37365 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 37366 fi 37367 # Try to locate tool using the code snippet 37368 for ac_prog in strip 37369 do 37370 # Extract the first word of "$ac_prog", so it can be a program name with args. 37371 set dummy $ac_prog; ac_word=$2 37372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37373 $as_echo_n "checking for $ac_word... " >&6; } 37374 if ${ac_cv_path_STRIP+:} false; then : 37375 $as_echo_n "(cached) " >&6 37376 else 37377 case $STRIP in 37378 [\\/]* | ?:[\\/]*) 37379 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37380 ;; 37381 *) 37382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37383 for as_dir in $PATH 37384 do 37385 IFS=$as_save_IFS 37386 test -z "$as_dir" && as_dir=. 37387 for ac_exec_ext in '' $ac_executable_extensions; do 37388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37389 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37391 break 2 37392 fi 37393 done 37394 done 37395 IFS=$as_save_IFS 37396 37397 ;; 37398 esac 37399 fi 37400 STRIP=$ac_cv_path_STRIP 37401 if test -n "$STRIP"; then 37402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37403 $as_echo "$STRIP" >&6; } 37404 else 37405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37406 $as_echo "no" >&6; } 37407 fi 37408 37409 37410 test -n "$STRIP" && break 37411 done 37412 37413 else 37414 # If it succeeded, then it was overridden by the user. We will use it 37415 # for the tool. 37416 37417 # First remove it from the list of overridden variables, so we can test 37418 # for unknown variables in the end. 37419 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37420 37421 # Check if the provided tool contains a complete path. 37422 tool_specified="$STRIP" 37423 tool_basename="${tool_specified##*/}" 37424 if test "x$tool_basename" = "x$tool_specified"; then 37425 # A command without a complete path is provided, search $PATH. 37426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 37427 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 37428 # Extract the first word of "$tool_basename", so it can be a program name with args. 37429 set dummy $tool_basename; ac_word=$2 37430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37431 $as_echo_n "checking for $ac_word... " >&6; } 37432 if ${ac_cv_path_STRIP+:} false; then : 37433 $as_echo_n "(cached) " >&6 37434 else 37435 case $STRIP in 37436 [\\/]* | ?:[\\/]*) 37437 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 37438 ;; 37439 *) 37440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37441 for as_dir in $PATH 37442 do 37443 IFS=$as_save_IFS 37444 test -z "$as_dir" && as_dir=. 37445 for ac_exec_ext in '' $ac_executable_extensions; do 37446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37447 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 37448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37449 break 2 37450 fi 37451 done 37452 done 37453 IFS=$as_save_IFS 37454 37455 ;; 37456 esac 37457 fi 37458 STRIP=$ac_cv_path_STRIP 37459 if test -n "$STRIP"; then 37460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 37461 $as_echo "$STRIP" >&6; } 37462 else 37463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37464 $as_echo "no" >&6; } 37465 fi 37466 37467 37468 if test "x$STRIP" = x; then 37469 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37470 fi 37471 else 37472 # Otherwise we believe it is a complete path. Use it as it is. 37473 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 37474 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 37475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 37476 $as_echo_n "checking for STRIP... " >&6; } 37477 if test ! -x "$tool_specified"; then 37478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37479 $as_echo "not found" >&6; } 37480 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 37481 fi 37482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37483 $as_echo "$tool_specified" >&6; } 37484 fi 37485 fi 37486 fi 37487 37488 37489 37490 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37491 37492 # First separate the path from the arguments. This will split at the first 37493 # space. 37494 complete="$STRIP" 37495 path="${complete%% *}" 37496 tmp="$complete EOL" 37497 arguments="${tmp#* }" 37498 37499 # Input might be given as Windows format, start by converting to 37500 # unix format. 37501 new_path=`$CYGPATH -u "$path"` 37502 37503 # Now try to locate executable using which 37504 new_path=`$WHICH "$new_path" 2> /dev/null` 37505 # bat and cmd files are not always considered executable in cygwin causing which 37506 # to not find them 37507 if test "x$new_path" = x \ 37508 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37509 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37510 new_path=`$CYGPATH -u "$path"` 37511 fi 37512 if test "x$new_path" = x; then 37513 # Oops. Which didn't find the executable. 37514 # The splitting of arguments from the executable at a space might have been incorrect, 37515 # since paths with space are more likely in Windows. Give it another try with the whole 37516 # argument. 37517 path="$complete" 37518 arguments="EOL" 37519 new_path=`$CYGPATH -u "$path"` 37520 new_path=`$WHICH "$new_path" 2> /dev/null` 37521 # bat and cmd files are not always considered executable in cygwin causing which 37522 # to not find them 37523 if test "x$new_path" = x \ 37524 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37525 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37526 new_path=`$CYGPATH -u "$path"` 37527 fi 37528 if test "x$new_path" = x; then 37529 # It's still not found. Now this is an unrecoverable error. 37530 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37531 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37532 has_space=`$ECHO "$complete" | $GREP " "` 37533 if test "x$has_space" != x; then 37534 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37535 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37536 fi 37537 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37538 fi 37539 fi 37540 37541 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37542 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37543 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37544 # "foo.exe" is OK but "foo" is an error. 37545 # 37546 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37547 # It is also a way to make sure we got the proper file name for the real test later on. 37548 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37549 if test "x$test_shortpath" = x; then 37550 # Short path failed, file does not exist as specified. 37551 # Try adding .exe or .cmd 37552 if test -f "${new_path}.exe"; then 37553 input_to_shortpath="${new_path}.exe" 37554 elif test -f "${new_path}.cmd"; then 37555 input_to_shortpath="${new_path}.cmd" 37556 else 37557 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 37558 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 37559 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37560 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37561 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37562 fi 37563 else 37564 input_to_shortpath="$new_path" 37565 fi 37566 37567 # Call helper function which possibly converts this using DOS-style short mode. 37568 # If so, the updated path is stored in $new_path. 37569 new_path="$input_to_shortpath" 37570 37571 input_path="$input_to_shortpath" 37572 # Check if we need to convert this using DOS-style short mode. If the path 37573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37574 # take no chances and rewrite it. 37575 # Note: m4 eats our [], so we need to use [ and ] instead. 37576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37577 if test "x$has_forbidden_chars" != x; then 37578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37579 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37580 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37581 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37582 # Going to short mode and back again did indeed matter. Since short mode is 37583 # case insensitive, let's make it lowercase to improve readability. 37584 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37585 # Now convert it back to Unix-stile (cygpath) 37586 input_path=`$CYGPATH -u "$shortmode_path"` 37587 new_path="$input_path" 37588 fi 37589 fi 37590 37591 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37592 if test "x$test_cygdrive_prefix" = x; then 37593 # As a simple fix, exclude /usr/bin since it's not a real path. 37594 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37595 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37596 # a path prefixed by /cygdrive for fixpath to work. 37597 new_path="$CYGWIN_ROOT_PATH$input_path" 37598 fi 37599 fi 37600 37601 # remove trailing .exe if any 37602 new_path="${new_path/%.exe/}" 37603 37604 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37605 37606 # First separate the path from the arguments. This will split at the first 37607 # space. 37608 complete="$STRIP" 37609 path="${complete%% *}" 37610 tmp="$complete EOL" 37611 arguments="${tmp#* }" 37612 37613 # Input might be given as Windows format, start by converting to 37614 # unix format. 37615 new_path="$path" 37616 37617 windows_path="$new_path" 37618 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37619 unix_path=`$CYGPATH -u "$windows_path"` 37620 new_path="$unix_path" 37621 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37622 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37623 new_path="$unix_path" 37624 fi 37625 37626 37627 # Now try to locate executable using which 37628 new_path=`$WHICH "$new_path" 2> /dev/null` 37629 37630 if test "x$new_path" = x; then 37631 # Oops. Which didn't find the executable. 37632 # The splitting of arguments from the executable at a space might have been incorrect, 37633 # since paths with space are more likely in Windows. Give it another try with the whole 37634 # argument. 37635 path="$complete" 37636 arguments="EOL" 37637 new_path="$path" 37638 37639 windows_path="$new_path" 37640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37641 unix_path=`$CYGPATH -u "$windows_path"` 37642 new_path="$unix_path" 37643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37645 new_path="$unix_path" 37646 fi 37647 37648 37649 new_path=`$WHICH "$new_path" 2> /dev/null` 37650 37651 if test "x$new_path" = x; then 37652 # It's still not found. Now this is an unrecoverable error. 37653 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37654 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37655 has_space=`$ECHO "$complete" | $GREP " "` 37656 if test "x$has_space" != x; then 37657 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37658 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37659 fi 37660 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37661 fi 37662 fi 37663 37664 # Now new_path has a complete unix path to the binary 37665 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37666 # Keep paths in /bin as-is, but remove trailing .exe if any 37667 new_path="${new_path/%.exe/}" 37668 # Do not save /bin paths to all_fixpath_prefixes! 37669 else 37670 # Not in mixed or Windows style, start by that. 37671 new_path=`cmd //c echo $new_path` 37672 37673 input_path="$new_path" 37674 # Check if we need to convert this using DOS-style short mode. If the path 37675 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37676 # take no chances and rewrite it. 37677 # Note: m4 eats our [], so we need to use [ and ] instead. 37678 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37679 if test "x$has_forbidden_chars" != x; then 37680 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37681 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37682 fi 37683 37684 # Output is in $new_path 37685 37686 windows_path="$new_path" 37687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37688 unix_path=`$CYGPATH -u "$windows_path"` 37689 new_path="$unix_path" 37690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37692 new_path="$unix_path" 37693 fi 37694 37695 # remove trailing .exe if any 37696 new_path="${new_path/%.exe/}" 37697 37698 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37699 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37700 fi 37701 37702 else 37703 # We're on a posix platform. Hooray! :) 37704 # First separate the path from the arguments. This will split at the first 37705 # space. 37706 complete="$STRIP" 37707 path="${complete%% *}" 37708 tmp="$complete EOL" 37709 arguments="${tmp#* }" 37710 37711 # Cannot rely on the command "which" here since it doesn't always work. 37712 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37713 if test -z "$is_absolute_path"; then 37714 # Path to executable is not absolute. Find it. 37715 IFS_save="$IFS" 37716 IFS=: 37717 for p in $PATH; do 37718 if test -f "$p/$path" && test -x "$p/$path"; then 37719 new_path="$p/$path" 37720 break 37721 fi 37722 done 37723 IFS="$IFS_save" 37724 else 37725 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5 37726 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;} 37727 new_path="$path" 37728 fi 37729 37730 if test "x$new_path" = x; then 37731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37732 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37733 has_space=`$ECHO "$complete" | $GREP " "` 37734 if test "x$has_space" != x; then 37735 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37736 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37737 fi 37738 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37739 fi 37740 fi 37741 37742 # Now join together the path and the arguments once again 37743 if test "x$arguments" != xEOL; then 37744 new_complete="$new_path ${arguments% *}" 37745 else 37746 new_complete="$new_path" 37747 fi 37748 37749 if test "x$complete" != "x$new_complete"; then 37750 STRIP="$new_complete" 37751 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37752 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37753 fi 37754 37755 37756 37757 # Publish this variable in the help. 37758 37759 37760 if test "x$MCS" = x; then 37761 # The variable is not set by user, try to locate tool using the code snippet 37762 for ac_prog in mcs 37763 do 37764 # Extract the first word of "$ac_prog", so it can be a program name with args. 37765 set dummy $ac_prog; ac_word=$2 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37767 $as_echo_n "checking for $ac_word... " >&6; } 37768 if ${ac_cv_path_MCS+:} false; then : 37769 $as_echo_n "(cached) " >&6 37770 else 37771 case $MCS in 37772 [\\/]* | ?:[\\/]*) 37773 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 37774 ;; 37775 *) 37776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37777 for as_dir in $PATH 37778 do 37779 IFS=$as_save_IFS 37780 test -z "$as_dir" && as_dir=. 37781 for ac_exec_ext in '' $ac_executable_extensions; do 37782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37783 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 37784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37785 break 2 37786 fi 37787 done 37788 done 37789 IFS=$as_save_IFS 37790 37791 ;; 37792 esac 37793 fi 37794 MCS=$ac_cv_path_MCS 37795 if test -n "$MCS"; then 37796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 37797 $as_echo "$MCS" >&6; } 37798 else 37799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37800 $as_echo "no" >&6; } 37801 fi 37802 37803 37804 test -n "$MCS" && break 37805 done 37806 37807 else 37808 # The variable is set, but is it from the command line or the environment? 37809 37810 # Try to remove the string !MCS! from our list. 37811 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 37812 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37813 # If it failed, the variable was not from the command line. Ignore it, 37814 # but warn the user (except for BASH, which is always set by the calling BASH). 37815 if test "xMCS" != xBASH; then 37816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 37817 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 37818 fi 37819 # Try to locate tool using the code snippet 37820 for ac_prog in mcs 37821 do 37822 # Extract the first word of "$ac_prog", so it can be a program name with args. 37823 set dummy $ac_prog; ac_word=$2 37824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37825 $as_echo_n "checking for $ac_word... " >&6; } 37826 if ${ac_cv_path_MCS+:} false; then : 37827 $as_echo_n "(cached) " >&6 37828 else 37829 case $MCS in 37830 [\\/]* | ?:[\\/]*) 37831 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 37832 ;; 37833 *) 37834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37835 for as_dir in $PATH 37836 do 37837 IFS=$as_save_IFS 37838 test -z "$as_dir" && as_dir=. 37839 for ac_exec_ext in '' $ac_executable_extensions; do 37840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37841 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 37842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37843 break 2 37844 fi 37845 done 37846 done 37847 IFS=$as_save_IFS 37848 37849 ;; 37850 esac 37851 fi 37852 MCS=$ac_cv_path_MCS 37853 if test -n "$MCS"; then 37854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 37855 $as_echo "$MCS" >&6; } 37856 else 37857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37858 $as_echo "no" >&6; } 37859 fi 37860 37861 37862 test -n "$MCS" && break 37863 done 37864 37865 else 37866 # If it succeeded, then it was overridden by the user. We will use it 37867 # for the tool. 37868 37869 # First remove it from the list of overridden variables, so we can test 37870 # for unknown variables in the end. 37871 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37872 37873 # Check if the provided tool contains a complete path. 37874 tool_specified="$MCS" 37875 tool_basename="${tool_specified##*/}" 37876 if test "x$tool_basename" = "x$tool_specified"; then 37877 # A command without a complete path is provided, search $PATH. 37878 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 37879 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 37880 # Extract the first word of "$tool_basename", so it can be a program name with args. 37881 set dummy $tool_basename; ac_word=$2 37882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37883 $as_echo_n "checking for $ac_word... " >&6; } 37884 if ${ac_cv_path_MCS+:} false; then : 37885 $as_echo_n "(cached) " >&6 37886 else 37887 case $MCS in 37888 [\\/]* | ?:[\\/]*) 37889 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 37890 ;; 37891 *) 37892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37893 for as_dir in $PATH 37894 do 37895 IFS=$as_save_IFS 37896 test -z "$as_dir" && as_dir=. 37897 for ac_exec_ext in '' $ac_executable_extensions; do 37898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37899 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 37900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37901 break 2 37902 fi 37903 done 37904 done 37905 IFS=$as_save_IFS 37906 37907 ;; 37908 esac 37909 fi 37910 MCS=$ac_cv_path_MCS 37911 if test -n "$MCS"; then 37912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 37913 $as_echo "$MCS" >&6; } 37914 else 37915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37916 $as_echo "no" >&6; } 37917 fi 37918 37919 37920 if test "x$MCS" = x; then 37921 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37922 fi 37923 else 37924 # Otherwise we believe it is a complete path. Use it as it is. 37925 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 37926 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 37927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 37928 $as_echo_n "checking for MCS... " >&6; } 37929 if test ! -x "$tool_specified"; then 37930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37931 $as_echo "not found" >&6; } 37932 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 37933 fi 37934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37935 $as_echo "$tool_specified" >&6; } 37936 fi 37937 fi 37938 fi 37939 37940 37941 37942 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37943 37944 # First separate the path from the arguments. This will split at the first 37945 # space. 37946 complete="$MCS" 37947 path="${complete%% *}" 37948 tmp="$complete EOL" 37949 arguments="${tmp#* }" 37950 37951 # Input might be given as Windows format, start by converting to 37952 # unix format. 37953 new_path=`$CYGPATH -u "$path"` 37954 37955 # Now try to locate executable using which 37956 new_path=`$WHICH "$new_path" 2> /dev/null` 37957 # bat and cmd files are not always considered executable in cygwin causing which 37958 # to not find them 37959 if test "x$new_path" = x \ 37960 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37961 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37962 new_path=`$CYGPATH -u "$path"` 37963 fi 37964 if test "x$new_path" = x; then 37965 # Oops. Which didn't find the executable. 37966 # The splitting of arguments from the executable at a space might have been incorrect, 37967 # since paths with space are more likely in Windows. Give it another try with the whole 37968 # argument. 37969 path="$complete" 37970 arguments="EOL" 37971 new_path=`$CYGPATH -u "$path"` 37972 new_path=`$WHICH "$new_path" 2> /dev/null` 37973 # bat and cmd files are not always considered executable in cygwin causing which 37974 # to not find them 37975 if test "x$new_path" = x \ 37976 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37977 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37978 new_path=`$CYGPATH -u "$path"` 37979 fi 37980 if test "x$new_path" = x; then 37981 # It's still not found. Now this is an unrecoverable error. 37982 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 37983 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 37984 has_space=`$ECHO "$complete" | $GREP " "` 37985 if test "x$has_space" != x; then 37986 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37987 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37988 fi 37989 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 37990 fi 37991 fi 37992 37993 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37994 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37995 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37996 # "foo.exe" is OK but "foo" is an error. 37997 # 37998 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37999 # It is also a way to make sure we got the proper file name for the real test later on. 38000 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38001 if test "x$test_shortpath" = x; then 38002 # Short path failed, file does not exist as specified. 38003 # Try adding .exe or .cmd 38004 if test -f "${new_path}.exe"; then 38005 input_to_shortpath="${new_path}.exe" 38006 elif test -f "${new_path}.cmd"; then 38007 input_to_shortpath="${new_path}.cmd" 38008 else 38009 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 38010 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 38011 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38012 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38013 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 38014 fi 38015 else 38016 input_to_shortpath="$new_path" 38017 fi 38018 38019 # Call helper function which possibly converts this using DOS-style short mode. 38020 # If so, the updated path is stored in $new_path. 38021 new_path="$input_to_shortpath" 38022 38023 input_path="$input_to_shortpath" 38024 # Check if we need to convert this using DOS-style short mode. If the path 38025 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38026 # take no chances and rewrite it. 38027 # Note: m4 eats our [], so we need to use [ and ] instead. 38028 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38029 if test "x$has_forbidden_chars" != x; then 38030 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38031 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38032 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38033 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38034 # Going to short mode and back again did indeed matter. Since short mode is 38035 # case insensitive, let's make it lowercase to improve readability. 38036 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38037 # Now convert it back to Unix-stile (cygpath) 38038 input_path=`$CYGPATH -u "$shortmode_path"` 38039 new_path="$input_path" 38040 fi 38041 fi 38042 38043 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38044 if test "x$test_cygdrive_prefix" = x; then 38045 # As a simple fix, exclude /usr/bin since it's not a real path. 38046 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38047 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38048 # a path prefixed by /cygdrive for fixpath to work. 38049 new_path="$CYGWIN_ROOT_PATH$input_path" 38050 fi 38051 fi 38052 38053 # remove trailing .exe if any 38054 new_path="${new_path/%.exe/}" 38055 38056 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38057 38058 # First separate the path from the arguments. This will split at the first 38059 # space. 38060 complete="$MCS" 38061 path="${complete%% *}" 38062 tmp="$complete EOL" 38063 arguments="${tmp#* }" 38064 38065 # Input might be given as Windows format, start by converting to 38066 # unix format. 38067 new_path="$path" 38068 38069 windows_path="$new_path" 38070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38071 unix_path=`$CYGPATH -u "$windows_path"` 38072 new_path="$unix_path" 38073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38074 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38075 new_path="$unix_path" 38076 fi 38077 38078 38079 # Now try to locate executable using which 38080 new_path=`$WHICH "$new_path" 2> /dev/null` 38081 38082 if test "x$new_path" = x; then 38083 # Oops. Which didn't find the executable. 38084 # The splitting of arguments from the executable at a space might have been incorrect, 38085 # since paths with space are more likely in Windows. Give it another try with the whole 38086 # argument. 38087 path="$complete" 38088 arguments="EOL" 38089 new_path="$path" 38090 38091 windows_path="$new_path" 38092 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38093 unix_path=`$CYGPATH -u "$windows_path"` 38094 new_path="$unix_path" 38095 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38096 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38097 new_path="$unix_path" 38098 fi 38099 38100 38101 new_path=`$WHICH "$new_path" 2> /dev/null` 38102 38103 if test "x$new_path" = x; then 38104 # It's still not found. Now this is an unrecoverable error. 38105 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 38106 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 38107 has_space=`$ECHO "$complete" | $GREP " "` 38108 if test "x$has_space" != x; then 38109 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38110 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38111 fi 38112 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 38113 fi 38114 fi 38115 38116 # Now new_path has a complete unix path to the binary 38117 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38118 # Keep paths in /bin as-is, but remove trailing .exe if any 38119 new_path="${new_path/%.exe/}" 38120 # Do not save /bin paths to all_fixpath_prefixes! 38121 else 38122 # Not in mixed or Windows style, start by that. 38123 new_path=`cmd //c echo $new_path` 38124 38125 input_path="$new_path" 38126 # Check if we need to convert this using DOS-style short mode. If the path 38127 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38128 # take no chances and rewrite it. 38129 # Note: m4 eats our [], so we need to use [ and ] instead. 38130 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38131 if test "x$has_forbidden_chars" != x; then 38132 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38133 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38134 fi 38135 38136 # Output is in $new_path 38137 38138 windows_path="$new_path" 38139 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38140 unix_path=`$CYGPATH -u "$windows_path"` 38141 new_path="$unix_path" 38142 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38143 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38144 new_path="$unix_path" 38145 fi 38146 38147 # remove trailing .exe if any 38148 new_path="${new_path/%.exe/}" 38149 38150 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38151 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38152 fi 38153 38154 else 38155 # We're on a posix platform. Hooray! :) 38156 # First separate the path from the arguments. This will split at the first 38157 # space. 38158 complete="$MCS" 38159 path="${complete%% *}" 38160 tmp="$complete EOL" 38161 arguments="${tmp#* }" 38162 38163 # Cannot rely on the command "which" here since it doesn't always work. 38164 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38165 if test -z "$is_absolute_path"; then 38166 # Path to executable is not absolute. Find it. 38167 IFS_save="$IFS" 38168 IFS=: 38169 for p in $PATH; do 38170 if test -f "$p/$path" && test -x "$p/$path"; then 38171 new_path="$p/$path" 38172 break 38173 fi 38174 done 38175 IFS="$IFS_save" 38176 else 38177 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving MCS (as $path) failed, using $path directly." >&5 38178 $as_echo "$as_me: Resolving MCS (as $path) failed, using $path directly." >&6;} 38179 new_path="$path" 38180 fi 38181 38182 if test "x$new_path" = x; then 38183 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 38184 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 38185 has_space=`$ECHO "$complete" | $GREP " "` 38186 if test "x$has_space" != x; then 38187 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38188 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38189 fi 38190 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 38191 fi 38192 fi 38193 38194 # Now join together the path and the arguments once again 38195 if test "x$arguments" != xEOL; then 38196 new_complete="$new_path ${arguments% *}" 38197 else 38198 new_complete="$new_path" 38199 fi 38200 38201 if test "x$complete" != "x$new_complete"; then 38202 MCS="$new_complete" 38203 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 38204 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 38205 fi 38206 38207 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 38208 38209 38210 # Publish this variable in the help. 38211 38212 38213 if test "x$NM" = x; then 38214 # The variable is not set by user, try to locate tool using the code snippet 38215 if test -n "$ac_tool_prefix"; then 38216 for ac_prog in nm 38217 do 38218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38221 $as_echo_n "checking for $ac_word... " >&6; } 38222 if ${ac_cv_prog_NM+:} false; then : 38223 $as_echo_n "(cached) " >&6 38224 else 38225 if test -n "$NM"; then 38226 ac_cv_prog_NM="$NM" # Let the user override the test. 38227 else 38228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38229 for as_dir in $PATH 38230 do 38231 IFS=$as_save_IFS 38232 test -z "$as_dir" && as_dir=. 38233 for ac_exec_ext in '' $ac_executable_extensions; do 38234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38235 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 38236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38237 break 2 38238 fi 38239 done 38240 done 38241 IFS=$as_save_IFS 38242 38243 fi 38244 fi 38245 NM=$ac_cv_prog_NM 38246 if test -n "$NM"; then 38247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38248 $as_echo "$NM" >&6; } 38249 else 38250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38251 $as_echo "no" >&6; } 38252 fi 38253 38254 38255 test -n "$NM" && break 38256 done 38257 fi 38258 if test -z "$NM"; then 38259 ac_ct_NM=$NM 38260 for ac_prog in nm 38261 do 38262 # Extract the first word of "$ac_prog", so it can be a program name with args. 38263 set dummy $ac_prog; ac_word=$2 38264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38265 $as_echo_n "checking for $ac_word... " >&6; } 38266 if ${ac_cv_prog_ac_ct_NM+:} false; then : 38267 $as_echo_n "(cached) " >&6 38268 else 38269 if test -n "$ac_ct_NM"; then 38270 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 38271 else 38272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38273 for as_dir in $PATH 38274 do 38275 IFS=$as_save_IFS 38276 test -z "$as_dir" && as_dir=. 38277 for ac_exec_ext in '' $ac_executable_extensions; do 38278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38279 ac_cv_prog_ac_ct_NM="$ac_prog" 38280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38281 break 2 38282 fi 38283 done 38284 done 38285 IFS=$as_save_IFS 38286 38287 fi 38288 fi 38289 ac_ct_NM=$ac_cv_prog_ac_ct_NM 38290 if test -n "$ac_ct_NM"; then 38291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 38292 $as_echo "$ac_ct_NM" >&6; } 38293 else 38294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38295 $as_echo "no" >&6; } 38296 fi 38297 38298 38299 test -n "$ac_ct_NM" && break 38300 done 38301 38302 if test "x$ac_ct_NM" = x; then 38303 NM="" 38304 else 38305 case $cross_compiling:$ac_tool_warned in 38306 yes:) 38307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38308 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38309 ac_tool_warned=yes ;; 38310 esac 38311 NM=$ac_ct_NM 38312 fi 38313 fi 38314 38315 else 38316 # The variable is set, but is it from the command line or the environment? 38317 38318 # Try to remove the string !NM! from our list. 38319 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 38320 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38321 # If it failed, the variable was not from the command line. Ignore it, 38322 # but warn the user (except for BASH, which is always set by the calling BASH). 38323 if test "xNM" != xBASH; then 38324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 38325 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 38326 fi 38327 # Try to locate tool using the code snippet 38328 if test -n "$ac_tool_prefix"; then 38329 for ac_prog in nm 38330 do 38331 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38332 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38334 $as_echo_n "checking for $ac_word... " >&6; } 38335 if ${ac_cv_prog_NM+:} false; then : 38336 $as_echo_n "(cached) " >&6 38337 else 38338 if test -n "$NM"; then 38339 ac_cv_prog_NM="$NM" # Let the user override the test. 38340 else 38341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38342 for as_dir in $PATH 38343 do 38344 IFS=$as_save_IFS 38345 test -z "$as_dir" && as_dir=. 38346 for ac_exec_ext in '' $ac_executable_extensions; do 38347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38348 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 38349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38350 break 2 38351 fi 38352 done 38353 done 38354 IFS=$as_save_IFS 38355 38356 fi 38357 fi 38358 NM=$ac_cv_prog_NM 38359 if test -n "$NM"; then 38360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38361 $as_echo "$NM" >&6; } 38362 else 38363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38364 $as_echo "no" >&6; } 38365 fi 38366 38367 38368 test -n "$NM" && break 38369 done 38370 fi 38371 if test -z "$NM"; then 38372 ac_ct_NM=$NM 38373 for ac_prog in nm 38374 do 38375 # Extract the first word of "$ac_prog", so it can be a program name with args. 38376 set dummy $ac_prog; ac_word=$2 38377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38378 $as_echo_n "checking for $ac_word... " >&6; } 38379 if ${ac_cv_prog_ac_ct_NM+:} false; then : 38380 $as_echo_n "(cached) " >&6 38381 else 38382 if test -n "$ac_ct_NM"; then 38383 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 38384 else 38385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38386 for as_dir in $PATH 38387 do 38388 IFS=$as_save_IFS 38389 test -z "$as_dir" && as_dir=. 38390 for ac_exec_ext in '' $ac_executable_extensions; do 38391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38392 ac_cv_prog_ac_ct_NM="$ac_prog" 38393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38394 break 2 38395 fi 38396 done 38397 done 38398 IFS=$as_save_IFS 38399 38400 fi 38401 fi 38402 ac_ct_NM=$ac_cv_prog_ac_ct_NM 38403 if test -n "$ac_ct_NM"; then 38404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 38405 $as_echo "$ac_ct_NM" >&6; } 38406 else 38407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38408 $as_echo "no" >&6; } 38409 fi 38410 38411 38412 test -n "$ac_ct_NM" && break 38413 done 38414 38415 if test "x$ac_ct_NM" = x; then 38416 NM="" 38417 else 38418 case $cross_compiling:$ac_tool_warned in 38419 yes:) 38420 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38421 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38422 ac_tool_warned=yes ;; 38423 esac 38424 NM=$ac_ct_NM 38425 fi 38426 fi 38427 38428 else 38429 # If it succeeded, then it was overridden by the user. We will use it 38430 # for the tool. 38431 38432 # First remove it from the list of overridden variables, so we can test 38433 # for unknown variables in the end. 38434 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38435 38436 # Check if the provided tool contains a complete path. 38437 tool_specified="$NM" 38438 tool_basename="${tool_specified##*/}" 38439 if test "x$tool_basename" = "x$tool_specified"; then 38440 # A command without a complete path is provided, search $PATH. 38441 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 38442 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 38443 # Extract the first word of "$tool_basename", so it can be a program name with args. 38444 set dummy $tool_basename; ac_word=$2 38445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38446 $as_echo_n "checking for $ac_word... " >&6; } 38447 if ${ac_cv_path_NM+:} false; then : 38448 $as_echo_n "(cached) " >&6 38449 else 38450 case $NM in 38451 [\\/]* | ?:[\\/]*) 38452 ac_cv_path_NM="$NM" # Let the user override the test with a path. 38453 ;; 38454 *) 38455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38456 for as_dir in $PATH 38457 do 38458 IFS=$as_save_IFS 38459 test -z "$as_dir" && as_dir=. 38460 for ac_exec_ext in '' $ac_executable_extensions; do 38461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38462 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 38463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38464 break 2 38465 fi 38466 done 38467 done 38468 IFS=$as_save_IFS 38469 38470 ;; 38471 esac 38472 fi 38473 NM=$ac_cv_path_NM 38474 if test -n "$NM"; then 38475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 38476 $as_echo "$NM" >&6; } 38477 else 38478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38479 $as_echo "no" >&6; } 38480 fi 38481 38482 38483 if test "x$NM" = x; then 38484 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38485 fi 38486 else 38487 # Otherwise we believe it is a complete path. Use it as it is. 38488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 38489 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 38490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 38491 $as_echo_n "checking for NM... " >&6; } 38492 if test ! -x "$tool_specified"; then 38493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38494 $as_echo "not found" >&6; } 38495 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 38496 fi 38497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38498 $as_echo "$tool_specified" >&6; } 38499 fi 38500 fi 38501 fi 38502 38503 38504 38505 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38506 38507 # First separate the path from the arguments. This will split at the first 38508 # space. 38509 complete="$NM" 38510 path="${complete%% *}" 38511 tmp="$complete EOL" 38512 arguments="${tmp#* }" 38513 38514 # Input might be given as Windows format, start by converting to 38515 # unix format. 38516 new_path=`$CYGPATH -u "$path"` 38517 38518 # Now try to locate executable using which 38519 new_path=`$WHICH "$new_path" 2> /dev/null` 38520 # bat and cmd files are not always considered executable in cygwin causing which 38521 # to not find them 38522 if test "x$new_path" = x \ 38523 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38524 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38525 new_path=`$CYGPATH -u "$path"` 38526 fi 38527 if test "x$new_path" = x; then 38528 # Oops. Which didn't find the executable. 38529 # The splitting of arguments from the executable at a space might have been incorrect, 38530 # since paths with space are more likely in Windows. Give it another try with the whole 38531 # argument. 38532 path="$complete" 38533 arguments="EOL" 38534 new_path=`$CYGPATH -u "$path"` 38535 new_path=`$WHICH "$new_path" 2> /dev/null` 38536 # bat and cmd files are not always considered executable in cygwin causing which 38537 # to not find them 38538 if test "x$new_path" = x \ 38539 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38540 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38541 new_path=`$CYGPATH -u "$path"` 38542 fi 38543 if test "x$new_path" = x; then 38544 # It's still not found. Now this is an unrecoverable error. 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38546 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38547 has_space=`$ECHO "$complete" | $GREP " "` 38548 if test "x$has_space" != x; then 38549 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38550 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38551 fi 38552 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38553 fi 38554 fi 38555 38556 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38557 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38558 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38559 # "foo.exe" is OK but "foo" is an error. 38560 # 38561 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38562 # It is also a way to make sure we got the proper file name for the real test later on. 38563 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38564 if test "x$test_shortpath" = x; then 38565 # Short path failed, file does not exist as specified. 38566 # Try adding .exe or .cmd 38567 if test -f "${new_path}.exe"; then 38568 input_to_shortpath="${new_path}.exe" 38569 elif test -f "${new_path}.cmd"; then 38570 input_to_shortpath="${new_path}.cmd" 38571 else 38572 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 38573 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 38574 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38575 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38576 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38577 fi 38578 else 38579 input_to_shortpath="$new_path" 38580 fi 38581 38582 # Call helper function which possibly converts this using DOS-style short mode. 38583 # If so, the updated path is stored in $new_path. 38584 new_path="$input_to_shortpath" 38585 38586 input_path="$input_to_shortpath" 38587 # Check if we need to convert this using DOS-style short mode. If the path 38588 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38589 # take no chances and rewrite it. 38590 # Note: m4 eats our [], so we need to use [ and ] instead. 38591 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38592 if test "x$has_forbidden_chars" != x; then 38593 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38594 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38595 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38596 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38597 # Going to short mode and back again did indeed matter. Since short mode is 38598 # case insensitive, let's make it lowercase to improve readability. 38599 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38600 # Now convert it back to Unix-stile (cygpath) 38601 input_path=`$CYGPATH -u "$shortmode_path"` 38602 new_path="$input_path" 38603 fi 38604 fi 38605 38606 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38607 if test "x$test_cygdrive_prefix" = x; then 38608 # As a simple fix, exclude /usr/bin since it's not a real path. 38609 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38610 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38611 # a path prefixed by /cygdrive for fixpath to work. 38612 new_path="$CYGWIN_ROOT_PATH$input_path" 38613 fi 38614 fi 38615 38616 # remove trailing .exe if any 38617 new_path="${new_path/%.exe/}" 38618 38619 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38620 38621 # First separate the path from the arguments. This will split at the first 38622 # space. 38623 complete="$NM" 38624 path="${complete%% *}" 38625 tmp="$complete EOL" 38626 arguments="${tmp#* }" 38627 38628 # Input might be given as Windows format, start by converting to 38629 # unix format. 38630 new_path="$path" 38631 38632 windows_path="$new_path" 38633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38634 unix_path=`$CYGPATH -u "$windows_path"` 38635 new_path="$unix_path" 38636 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38637 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38638 new_path="$unix_path" 38639 fi 38640 38641 38642 # Now try to locate executable using which 38643 new_path=`$WHICH "$new_path" 2> /dev/null` 38644 38645 if test "x$new_path" = x; then 38646 # Oops. Which didn't find the executable. 38647 # The splitting of arguments from the executable at a space might have been incorrect, 38648 # since paths with space are more likely in Windows. Give it another try with the whole 38649 # argument. 38650 path="$complete" 38651 arguments="EOL" 38652 new_path="$path" 38653 38654 windows_path="$new_path" 38655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38656 unix_path=`$CYGPATH -u "$windows_path"` 38657 new_path="$unix_path" 38658 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38659 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38660 new_path="$unix_path" 38661 fi 38662 38663 38664 new_path=`$WHICH "$new_path" 2> /dev/null` 38665 38666 if test "x$new_path" = x; then 38667 # It's still not found. Now this is an unrecoverable error. 38668 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38669 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38670 has_space=`$ECHO "$complete" | $GREP " "` 38671 if test "x$has_space" != x; then 38672 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38673 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38674 fi 38675 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38676 fi 38677 fi 38678 38679 # Now new_path has a complete unix path to the binary 38680 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38681 # Keep paths in /bin as-is, but remove trailing .exe if any 38682 new_path="${new_path/%.exe/}" 38683 # Do not save /bin paths to all_fixpath_prefixes! 38684 else 38685 # Not in mixed or Windows style, start by that. 38686 new_path=`cmd //c echo $new_path` 38687 38688 input_path="$new_path" 38689 # Check if we need to convert this using DOS-style short mode. If the path 38690 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38691 # take no chances and rewrite it. 38692 # Note: m4 eats our [], so we need to use [ and ] instead. 38693 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38694 if test "x$has_forbidden_chars" != x; then 38695 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38696 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38697 fi 38698 38699 # Output is in $new_path 38700 38701 windows_path="$new_path" 38702 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38703 unix_path=`$CYGPATH -u "$windows_path"` 38704 new_path="$unix_path" 38705 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38706 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38707 new_path="$unix_path" 38708 fi 38709 38710 # remove trailing .exe if any 38711 new_path="${new_path/%.exe/}" 38712 38713 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38714 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38715 fi 38716 38717 else 38718 # We're on a posix platform. Hooray! :) 38719 # First separate the path from the arguments. This will split at the first 38720 # space. 38721 complete="$NM" 38722 path="${complete%% *}" 38723 tmp="$complete EOL" 38724 arguments="${tmp#* }" 38725 38726 # Cannot rely on the command "which" here since it doesn't always work. 38727 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38728 if test -z "$is_absolute_path"; then 38729 # Path to executable is not absolute. Find it. 38730 IFS_save="$IFS" 38731 IFS=: 38732 for p in $PATH; do 38733 if test -f "$p/$path" && test -x "$p/$path"; then 38734 new_path="$p/$path" 38735 break 38736 fi 38737 done 38738 IFS="$IFS_save" 38739 else 38740 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving NM (as $path) failed, using $path directly." >&5 38741 $as_echo "$as_me: Resolving NM (as $path) failed, using $path directly." >&6;} 38742 new_path="$path" 38743 fi 38744 38745 if test "x$new_path" = x; then 38746 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 38747 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 38748 has_space=`$ECHO "$complete" | $GREP " "` 38749 if test "x$has_space" != x; then 38750 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38751 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38752 fi 38753 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 38754 fi 38755 fi 38756 38757 # Now join together the path and the arguments once again 38758 if test "x$arguments" != xEOL; then 38759 new_complete="$new_path ${arguments% *}" 38760 else 38761 new_complete="$new_path" 38762 fi 38763 38764 if test "x$complete" != "x$new_complete"; then 38765 NM="$new_complete" 38766 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 38767 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 38768 fi 38769 38770 GNM="$NM" 38771 38772 38773 38774 # Publish this variable in the help. 38775 38776 38777 if test "x$STRIP" = x; then 38778 # The variable is not set by user, try to locate tool using the code snippet 38779 if test -n "$ac_tool_prefix"; then 38780 for ac_prog in strip 38781 do 38782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38785 $as_echo_n "checking for $ac_word... " >&6; } 38786 if ${ac_cv_prog_STRIP+:} false; then : 38787 $as_echo_n "(cached) " >&6 38788 else 38789 if test -n "$STRIP"; then 38790 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 38791 else 38792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38793 for as_dir in $PATH 38794 do 38795 IFS=$as_save_IFS 38796 test -z "$as_dir" && as_dir=. 38797 for ac_exec_ext in '' $ac_executable_extensions; do 38798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38799 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 38800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38801 break 2 38802 fi 38803 done 38804 done 38805 IFS=$as_save_IFS 38806 38807 fi 38808 fi 38809 STRIP=$ac_cv_prog_STRIP 38810 if test -n "$STRIP"; then 38811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38812 $as_echo "$STRIP" >&6; } 38813 else 38814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38815 $as_echo "no" >&6; } 38816 fi 38817 38818 38819 test -n "$STRIP" && break 38820 done 38821 fi 38822 if test -z "$STRIP"; then 38823 ac_ct_STRIP=$STRIP 38824 for ac_prog in strip 38825 do 38826 # Extract the first word of "$ac_prog", so it can be a program name with args. 38827 set dummy $ac_prog; ac_word=$2 38828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38829 $as_echo_n "checking for $ac_word... " >&6; } 38830 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 38831 $as_echo_n "(cached) " >&6 38832 else 38833 if test -n "$ac_ct_STRIP"; then 38834 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 38835 else 38836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38837 for as_dir in $PATH 38838 do 38839 IFS=$as_save_IFS 38840 test -z "$as_dir" && as_dir=. 38841 for ac_exec_ext in '' $ac_executable_extensions; do 38842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38843 ac_cv_prog_ac_ct_STRIP="$ac_prog" 38844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38845 break 2 38846 fi 38847 done 38848 done 38849 IFS=$as_save_IFS 38850 38851 fi 38852 fi 38853 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 38854 if test -n "$ac_ct_STRIP"; then 38855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 38856 $as_echo "$ac_ct_STRIP" >&6; } 38857 else 38858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38859 $as_echo "no" >&6; } 38860 fi 38861 38862 38863 test -n "$ac_ct_STRIP" && break 38864 done 38865 38866 if test "x$ac_ct_STRIP" = x; then 38867 STRIP="" 38868 else 38869 case $cross_compiling:$ac_tool_warned in 38870 yes:) 38871 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38872 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38873 ac_tool_warned=yes ;; 38874 esac 38875 STRIP=$ac_ct_STRIP 38876 fi 38877 fi 38878 38879 else 38880 # The variable is set, but is it from the command line or the environment? 38881 38882 # Try to remove the string !STRIP! from our list. 38883 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 38884 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38885 # If it failed, the variable was not from the command line. Ignore it, 38886 # but warn the user (except for BASH, which is always set by the calling BASH). 38887 if test "xSTRIP" != xBASH; then 38888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 38889 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 38890 fi 38891 # Try to locate tool using the code snippet 38892 if test -n "$ac_tool_prefix"; then 38893 for ac_prog in strip 38894 do 38895 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38896 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38898 $as_echo_n "checking for $ac_word... " >&6; } 38899 if ${ac_cv_prog_STRIP+:} false; then : 38900 $as_echo_n "(cached) " >&6 38901 else 38902 if test -n "$STRIP"; then 38903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 38904 else 38905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38906 for as_dir in $PATH 38907 do 38908 IFS=$as_save_IFS 38909 test -z "$as_dir" && as_dir=. 38910 for ac_exec_ext in '' $ac_executable_extensions; do 38911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38912 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 38913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38914 break 2 38915 fi 38916 done 38917 done 38918 IFS=$as_save_IFS 38919 38920 fi 38921 fi 38922 STRIP=$ac_cv_prog_STRIP 38923 if test -n "$STRIP"; then 38924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 38925 $as_echo "$STRIP" >&6; } 38926 else 38927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38928 $as_echo "no" >&6; } 38929 fi 38930 38931 38932 test -n "$STRIP" && break 38933 done 38934 fi 38935 if test -z "$STRIP"; then 38936 ac_ct_STRIP=$STRIP 38937 for ac_prog in strip 38938 do 38939 # Extract the first word of "$ac_prog", so it can be a program name with args. 38940 set dummy $ac_prog; ac_word=$2 38941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38942 $as_echo_n "checking for $ac_word... " >&6; } 38943 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 38944 $as_echo_n "(cached) " >&6 38945 else 38946 if test -n "$ac_ct_STRIP"; then 38947 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 38948 else 38949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38950 for as_dir in $PATH 38951 do 38952 IFS=$as_save_IFS 38953 test -z "$as_dir" && as_dir=. 38954 for ac_exec_ext in '' $ac_executable_extensions; do 38955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38956 ac_cv_prog_ac_ct_STRIP="$ac_prog" 38957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38958 break 2 38959 fi 38960 done 38961 done 38962 IFS=$as_save_IFS 38963 38964 fi 38965 fi 38966 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 38967 if test -n "$ac_ct_STRIP"; then 38968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 38969 $as_echo "$ac_ct_STRIP" >&6; } 38970 else 38971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38972 $as_echo "no" >&6; } 38973 fi 38974 38975 38976 test -n "$ac_ct_STRIP" && break 38977 done 38978 38979 if test "x$ac_ct_STRIP" = x; then 38980 STRIP="" 38981 else 38982 case $cross_compiling:$ac_tool_warned in 38983 yes:) 38984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38985 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38986 ac_tool_warned=yes ;; 38987 esac 38988 STRIP=$ac_ct_STRIP 38989 fi 38990 fi 38991 38992 else 38993 # If it succeeded, then it was overridden by the user. We will use it 38994 # for the tool. 38995 38996 # First remove it from the list of overridden variables, so we can test 38997 # for unknown variables in the end. 38998 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38999 39000 # Check if the provided tool contains a complete path. 39001 tool_specified="$STRIP" 39002 tool_basename="${tool_specified##*/}" 39003 if test "x$tool_basename" = "x$tool_specified"; then 39004 # A command without a complete path is provided, search $PATH. 39005 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 39006 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 39007 # Extract the first word of "$tool_basename", so it can be a program name with args. 39008 set dummy $tool_basename; ac_word=$2 39009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39010 $as_echo_n "checking for $ac_word... " >&6; } 39011 if ${ac_cv_path_STRIP+:} false; then : 39012 $as_echo_n "(cached) " >&6 39013 else 39014 case $STRIP in 39015 [\\/]* | ?:[\\/]*) 39016 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 39017 ;; 39018 *) 39019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39020 for as_dir in $PATH 39021 do 39022 IFS=$as_save_IFS 39023 test -z "$as_dir" && as_dir=. 39024 for ac_exec_ext in '' $ac_executable_extensions; do 39025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39026 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 39027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39028 break 2 39029 fi 39030 done 39031 done 39032 IFS=$as_save_IFS 39033 39034 ;; 39035 esac 39036 fi 39037 STRIP=$ac_cv_path_STRIP 39038 if test -n "$STRIP"; then 39039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 39040 $as_echo "$STRIP" >&6; } 39041 else 39042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39043 $as_echo "no" >&6; } 39044 fi 39045 39046 39047 if test "x$STRIP" = x; then 39048 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39049 fi 39050 else 39051 # Otherwise we believe it is a complete path. Use it as it is. 39052 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 39053 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 39054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 39055 $as_echo_n "checking for STRIP... " >&6; } 39056 if test ! -x "$tool_specified"; then 39057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39058 $as_echo "not found" >&6; } 39059 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 39060 fi 39061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39062 $as_echo "$tool_specified" >&6; } 39063 fi 39064 fi 39065 fi 39066 39067 39068 39069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39070 39071 # First separate the path from the arguments. This will split at the first 39072 # space. 39073 complete="$STRIP" 39074 path="${complete%% *}" 39075 tmp="$complete EOL" 39076 arguments="${tmp#* }" 39077 39078 # Input might be given as Windows format, start by converting to 39079 # unix format. 39080 new_path=`$CYGPATH -u "$path"` 39081 39082 # Now try to locate executable using which 39083 new_path=`$WHICH "$new_path" 2> /dev/null` 39084 # bat and cmd files are not always considered executable in cygwin causing which 39085 # to not find them 39086 if test "x$new_path" = x \ 39087 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39088 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39089 new_path=`$CYGPATH -u "$path"` 39090 fi 39091 if test "x$new_path" = x; then 39092 # Oops. Which didn't find the executable. 39093 # The splitting of arguments from the executable at a space might have been incorrect, 39094 # since paths with space are more likely in Windows. Give it another try with the whole 39095 # argument. 39096 path="$complete" 39097 arguments="EOL" 39098 new_path=`$CYGPATH -u "$path"` 39099 new_path=`$WHICH "$new_path" 2> /dev/null` 39100 # bat and cmd files are not always considered executable in cygwin causing which 39101 # to not find them 39102 if test "x$new_path" = x \ 39103 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39104 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39105 new_path=`$CYGPATH -u "$path"` 39106 fi 39107 if test "x$new_path" = x; then 39108 # It's still not found. Now this is an unrecoverable error. 39109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39110 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39111 has_space=`$ECHO "$complete" | $GREP " "` 39112 if test "x$has_space" != x; then 39113 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39114 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39115 fi 39116 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39117 fi 39118 fi 39119 39120 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39121 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39122 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39123 # "foo.exe" is OK but "foo" is an error. 39124 # 39125 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39126 # It is also a way to make sure we got the proper file name for the real test later on. 39127 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39128 if test "x$test_shortpath" = x; then 39129 # Short path failed, file does not exist as specified. 39130 # Try adding .exe or .cmd 39131 if test -f "${new_path}.exe"; then 39132 input_to_shortpath="${new_path}.exe" 39133 elif test -f "${new_path}.cmd"; then 39134 input_to_shortpath="${new_path}.cmd" 39135 else 39136 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 39137 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 39138 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39139 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39140 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39141 fi 39142 else 39143 input_to_shortpath="$new_path" 39144 fi 39145 39146 # Call helper function which possibly converts this using DOS-style short mode. 39147 # If so, the updated path is stored in $new_path. 39148 new_path="$input_to_shortpath" 39149 39150 input_path="$input_to_shortpath" 39151 # Check if we need to convert this using DOS-style short mode. If the path 39152 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39153 # take no chances and rewrite it. 39154 # Note: m4 eats our [], so we need to use [ and ] instead. 39155 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39156 if test "x$has_forbidden_chars" != x; then 39157 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39158 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39159 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39160 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39161 # Going to short mode and back again did indeed matter. Since short mode is 39162 # case insensitive, let's make it lowercase to improve readability. 39163 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39164 # Now convert it back to Unix-stile (cygpath) 39165 input_path=`$CYGPATH -u "$shortmode_path"` 39166 new_path="$input_path" 39167 fi 39168 fi 39169 39170 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39171 if test "x$test_cygdrive_prefix" = x; then 39172 # As a simple fix, exclude /usr/bin since it's not a real path. 39173 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39174 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39175 # a path prefixed by /cygdrive for fixpath to work. 39176 new_path="$CYGWIN_ROOT_PATH$input_path" 39177 fi 39178 fi 39179 39180 # remove trailing .exe if any 39181 new_path="${new_path/%.exe/}" 39182 39183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39184 39185 # First separate the path from the arguments. This will split at the first 39186 # space. 39187 complete="$STRIP" 39188 path="${complete%% *}" 39189 tmp="$complete EOL" 39190 arguments="${tmp#* }" 39191 39192 # Input might be given as Windows format, start by converting to 39193 # unix format. 39194 new_path="$path" 39195 39196 windows_path="$new_path" 39197 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39198 unix_path=`$CYGPATH -u "$windows_path"` 39199 new_path="$unix_path" 39200 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39201 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39202 new_path="$unix_path" 39203 fi 39204 39205 39206 # Now try to locate executable using which 39207 new_path=`$WHICH "$new_path" 2> /dev/null` 39208 39209 if test "x$new_path" = x; then 39210 # Oops. Which didn't find the executable. 39211 # The splitting of arguments from the executable at a space might have been incorrect, 39212 # since paths with space are more likely in Windows. Give it another try with the whole 39213 # argument. 39214 path="$complete" 39215 arguments="EOL" 39216 new_path="$path" 39217 39218 windows_path="$new_path" 39219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39220 unix_path=`$CYGPATH -u "$windows_path"` 39221 new_path="$unix_path" 39222 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39223 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39224 new_path="$unix_path" 39225 fi 39226 39227 39228 new_path=`$WHICH "$new_path" 2> /dev/null` 39229 39230 if test "x$new_path" = x; then 39231 # It's still not found. Now this is an unrecoverable error. 39232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39233 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39234 has_space=`$ECHO "$complete" | $GREP " "` 39235 if test "x$has_space" != x; then 39236 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39237 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39238 fi 39239 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39240 fi 39241 fi 39242 39243 # Now new_path has a complete unix path to the binary 39244 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39245 # Keep paths in /bin as-is, but remove trailing .exe if any 39246 new_path="${new_path/%.exe/}" 39247 # Do not save /bin paths to all_fixpath_prefixes! 39248 else 39249 # Not in mixed or Windows style, start by that. 39250 new_path=`cmd //c echo $new_path` 39251 39252 input_path="$new_path" 39253 # Check if we need to convert this using DOS-style short mode. If the path 39254 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39255 # take no chances and rewrite it. 39256 # Note: m4 eats our [], so we need to use [ and ] instead. 39257 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39258 if test "x$has_forbidden_chars" != x; then 39259 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39260 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39261 fi 39262 39263 # Output is in $new_path 39264 39265 windows_path="$new_path" 39266 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39267 unix_path=`$CYGPATH -u "$windows_path"` 39268 new_path="$unix_path" 39269 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39270 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39271 new_path="$unix_path" 39272 fi 39273 39274 # remove trailing .exe if any 39275 new_path="${new_path/%.exe/}" 39276 39277 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39278 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39279 fi 39280 39281 else 39282 # We're on a posix platform. Hooray! :) 39283 # First separate the path from the arguments. This will split at the first 39284 # space. 39285 complete="$STRIP" 39286 path="${complete%% *}" 39287 tmp="$complete EOL" 39288 arguments="${tmp#* }" 39289 39290 # Cannot rely on the command "which" here since it doesn't always work. 39291 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39292 if test -z "$is_absolute_path"; then 39293 # Path to executable is not absolute. Find it. 39294 IFS_save="$IFS" 39295 IFS=: 39296 for p in $PATH; do 39297 if test -f "$p/$path" && test -x "$p/$path"; then 39298 new_path="$p/$path" 39299 break 39300 fi 39301 done 39302 IFS="$IFS_save" 39303 else 39304 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving STRIP (as $path) failed, using $path directly." >&5 39305 $as_echo "$as_me: Resolving STRIP (as $path) failed, using $path directly." >&6;} 39306 new_path="$path" 39307 fi 39308 39309 if test "x$new_path" = x; then 39310 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 39311 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 39312 has_space=`$ECHO "$complete" | $GREP " "` 39313 if test "x$has_space" != x; then 39314 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39315 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39316 fi 39317 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 39318 fi 39319 fi 39320 39321 # Now join together the path and the arguments once again 39322 if test "x$arguments" != xEOL; then 39323 new_complete="$new_path ${arguments% *}" 39324 else 39325 new_complete="$new_path" 39326 fi 39327 39328 if test "x$complete" != "x$new_complete"; then 39329 STRIP="$new_complete" 39330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 39331 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 39332 fi 39333 39334 fi 39335 39336 # objcopy is used for moving debug symbols to separate files when 39337 # full debug symbols are enabled. 39338 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 39339 39340 39341 # Publish this variable in the help. 39342 39343 39344 if test "x$OBJCOPY" = x; then 39345 # The variable is not set by user, try to locate tool using the code snippet 39346 if test -n "$ac_tool_prefix"; then 39347 for ac_prog in gobjcopy objcopy 39348 do 39349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39350 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39352 $as_echo_n "checking for $ac_word... " >&6; } 39353 if ${ac_cv_prog_OBJCOPY+:} false; then : 39354 $as_echo_n "(cached) " >&6 39355 else 39356 if test -n "$OBJCOPY"; then 39357 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 39358 else 39359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39360 for as_dir in $PATH 39361 do 39362 IFS=$as_save_IFS 39363 test -z "$as_dir" && as_dir=. 39364 for ac_exec_ext in '' $ac_executable_extensions; do 39365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39366 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 39367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39368 break 2 39369 fi 39370 done 39371 done 39372 IFS=$as_save_IFS 39373 39374 fi 39375 fi 39376 OBJCOPY=$ac_cv_prog_OBJCOPY 39377 if test -n "$OBJCOPY"; then 39378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 39379 $as_echo "$OBJCOPY" >&6; } 39380 else 39381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39382 $as_echo "no" >&6; } 39383 fi 39384 39385 39386 test -n "$OBJCOPY" && break 39387 done 39388 fi 39389 if test -z "$OBJCOPY"; then 39390 ac_ct_OBJCOPY=$OBJCOPY 39391 for ac_prog in gobjcopy objcopy 39392 do 39393 # Extract the first word of "$ac_prog", so it can be a program name with args. 39394 set dummy $ac_prog; ac_word=$2 39395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39396 $as_echo_n "checking for $ac_word... " >&6; } 39397 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 39398 $as_echo_n "(cached) " >&6 39399 else 39400 if test -n "$ac_ct_OBJCOPY"; then 39401 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 39402 else 39403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39404 for as_dir in $PATH 39405 do 39406 IFS=$as_save_IFS 39407 test -z "$as_dir" && as_dir=. 39408 for ac_exec_ext in '' $ac_executable_extensions; do 39409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39410 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 39411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39412 break 2 39413 fi 39414 done 39415 done 39416 IFS=$as_save_IFS 39417 39418 fi 39419 fi 39420 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 39421 if test -n "$ac_ct_OBJCOPY"; then 39422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 39423 $as_echo "$ac_ct_OBJCOPY" >&6; } 39424 else 39425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39426 $as_echo "no" >&6; } 39427 fi 39428 39429 39430 test -n "$ac_ct_OBJCOPY" && break 39431 done 39432 39433 if test "x$ac_ct_OBJCOPY" = x; then 39434 OBJCOPY="" 39435 else 39436 case $cross_compiling:$ac_tool_warned in 39437 yes:) 39438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39440 ac_tool_warned=yes ;; 39441 esac 39442 OBJCOPY=$ac_ct_OBJCOPY 39443 fi 39444 fi 39445 39446 else 39447 # The variable is set, but is it from the command line or the environment? 39448 39449 # Try to remove the string !OBJCOPY! from our list. 39450 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 39451 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39452 # If it failed, the variable was not from the command line. Ignore it, 39453 # but warn the user (except for BASH, which is always set by the calling BASH). 39454 if test "xOBJCOPY" != xBASH; then 39455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 39456 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 39457 fi 39458 # Try to locate tool using the code snippet 39459 if test -n "$ac_tool_prefix"; then 39460 for ac_prog in gobjcopy objcopy 39461 do 39462 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39463 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39465 $as_echo_n "checking for $ac_word... " >&6; } 39466 if ${ac_cv_prog_OBJCOPY+:} false; then : 39467 $as_echo_n "(cached) " >&6 39468 else 39469 if test -n "$OBJCOPY"; then 39470 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 39471 else 39472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39473 for as_dir in $PATH 39474 do 39475 IFS=$as_save_IFS 39476 test -z "$as_dir" && as_dir=. 39477 for ac_exec_ext in '' $ac_executable_extensions; do 39478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39479 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 39480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39481 break 2 39482 fi 39483 done 39484 done 39485 IFS=$as_save_IFS 39486 39487 fi 39488 fi 39489 OBJCOPY=$ac_cv_prog_OBJCOPY 39490 if test -n "$OBJCOPY"; then 39491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 39492 $as_echo "$OBJCOPY" >&6; } 39493 else 39494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39495 $as_echo "no" >&6; } 39496 fi 39497 39498 39499 test -n "$OBJCOPY" && break 39500 done 39501 fi 39502 if test -z "$OBJCOPY"; then 39503 ac_ct_OBJCOPY=$OBJCOPY 39504 for ac_prog in gobjcopy objcopy 39505 do 39506 # Extract the first word of "$ac_prog", so it can be a program name with args. 39507 set dummy $ac_prog; ac_word=$2 39508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39509 $as_echo_n "checking for $ac_word... " >&6; } 39510 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 39511 $as_echo_n "(cached) " >&6 39512 else 39513 if test -n "$ac_ct_OBJCOPY"; then 39514 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 39515 else 39516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39517 for as_dir in $PATH 39518 do 39519 IFS=$as_save_IFS 39520 test -z "$as_dir" && as_dir=. 39521 for ac_exec_ext in '' $ac_executable_extensions; do 39522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39523 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 39524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39525 break 2 39526 fi 39527 done 39528 done 39529 IFS=$as_save_IFS 39530 39531 fi 39532 fi 39533 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 39534 if test -n "$ac_ct_OBJCOPY"; then 39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 39536 $as_echo "$ac_ct_OBJCOPY" >&6; } 39537 else 39538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39539 $as_echo "no" >&6; } 39540 fi 39541 39542 39543 test -n "$ac_ct_OBJCOPY" && break 39544 done 39545 39546 if test "x$ac_ct_OBJCOPY" = x; then 39547 OBJCOPY="" 39548 else 39549 case $cross_compiling:$ac_tool_warned in 39550 yes:) 39551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 39552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 39553 ac_tool_warned=yes ;; 39554 esac 39555 OBJCOPY=$ac_ct_OBJCOPY 39556 fi 39557 fi 39558 39559 else 39560 # If it succeeded, then it was overridden by the user. We will use it 39561 # for the tool. 39562 39563 # First remove it from the list of overridden variables, so we can test 39564 # for unknown variables in the end. 39565 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39566 39567 # Check if the provided tool contains a complete path. 39568 tool_specified="$OBJCOPY" 39569 tool_basename="${tool_specified##*/}" 39570 if test "x$tool_basename" = "x$tool_specified"; then 39571 # A command without a complete path is provided, search $PATH. 39572 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 39573 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 39574 # Extract the first word of "$tool_basename", so it can be a program name with args. 39575 set dummy $tool_basename; ac_word=$2 39576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39577 $as_echo_n "checking for $ac_word... " >&6; } 39578 if ${ac_cv_path_OBJCOPY+:} false; then : 39579 $as_echo_n "(cached) " >&6 39580 else 39581 case $OBJCOPY in 39582 [\\/]* | ?:[\\/]*) 39583 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 39584 ;; 39585 *) 39586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39587 for as_dir in $PATH 39588 do 39589 IFS=$as_save_IFS 39590 test -z "$as_dir" && as_dir=. 39591 for ac_exec_ext in '' $ac_executable_extensions; do 39592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39593 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 39594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39595 break 2 39596 fi 39597 done 39598 done 39599 IFS=$as_save_IFS 39600 39601 ;; 39602 esac 39603 fi 39604 OBJCOPY=$ac_cv_path_OBJCOPY 39605 if test -n "$OBJCOPY"; then 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 39607 $as_echo "$OBJCOPY" >&6; } 39608 else 39609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39610 $as_echo "no" >&6; } 39611 fi 39612 39613 39614 if test "x$OBJCOPY" = x; then 39615 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39616 fi 39617 else 39618 # Otherwise we believe it is a complete path. Use it as it is. 39619 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 39620 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 39621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 39622 $as_echo_n "checking for OBJCOPY... " >&6; } 39623 if test ! -x "$tool_specified"; then 39624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39625 $as_echo "not found" >&6; } 39626 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 39627 fi 39628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39629 $as_echo "$tool_specified" >&6; } 39630 fi 39631 fi 39632 fi 39633 39634 39635 # Only call fixup if objcopy was found. 39636 if test -n "$OBJCOPY"; then 39637 39638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39639 39640 # First separate the path from the arguments. This will split at the first 39641 # space. 39642 complete="$OBJCOPY" 39643 path="${complete%% *}" 39644 tmp="$complete EOL" 39645 arguments="${tmp#* }" 39646 39647 # Input might be given as Windows format, start by converting to 39648 # unix format. 39649 new_path=`$CYGPATH -u "$path"` 39650 39651 # Now try to locate executable using which 39652 new_path=`$WHICH "$new_path" 2> /dev/null` 39653 # bat and cmd files are not always considered executable in cygwin causing which 39654 # to not find them 39655 if test "x$new_path" = x \ 39656 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39657 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39658 new_path=`$CYGPATH -u "$path"` 39659 fi 39660 if test "x$new_path" = x; then 39661 # Oops. Which didn't find the executable. 39662 # The splitting of arguments from the executable at a space might have been incorrect, 39663 # since paths with space are more likely in Windows. Give it another try with the whole 39664 # argument. 39665 path="$complete" 39666 arguments="EOL" 39667 new_path=`$CYGPATH -u "$path"` 39668 new_path=`$WHICH "$new_path" 2> /dev/null` 39669 # bat and cmd files are not always considered executable in cygwin causing which 39670 # to not find them 39671 if test "x$new_path" = x \ 39672 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39673 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39674 new_path=`$CYGPATH -u "$path"` 39675 fi 39676 if test "x$new_path" = x; then 39677 # It's still not found. Now this is an unrecoverable error. 39678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 39679 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 39680 has_space=`$ECHO "$complete" | $GREP " "` 39681 if test "x$has_space" != x; then 39682 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39683 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39684 fi 39685 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39686 fi 39687 fi 39688 39689 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39690 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39691 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39692 # "foo.exe" is OK but "foo" is an error. 39693 # 39694 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39695 # It is also a way to make sure we got the proper file name for the real test later on. 39696 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39697 if test "x$test_shortpath" = x; then 39698 # Short path failed, file does not exist as specified. 39699 # Try adding .exe or .cmd 39700 if test -f "${new_path}.exe"; then 39701 input_to_shortpath="${new_path}.exe" 39702 elif test -f "${new_path}.cmd"; then 39703 input_to_shortpath="${new_path}.cmd" 39704 else 39705 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 39706 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 39707 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39708 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39709 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39710 fi 39711 else 39712 input_to_shortpath="$new_path" 39713 fi 39714 39715 # Call helper function which possibly converts this using DOS-style short mode. 39716 # If so, the updated path is stored in $new_path. 39717 new_path="$input_to_shortpath" 39718 39719 input_path="$input_to_shortpath" 39720 # Check if we need to convert this using DOS-style short mode. If the path 39721 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39722 # take no chances and rewrite it. 39723 # Note: m4 eats our [], so we need to use [ and ] instead. 39724 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39725 if test "x$has_forbidden_chars" != x; then 39726 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39727 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39728 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39729 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39730 # Going to short mode and back again did indeed matter. Since short mode is 39731 # case insensitive, let's make it lowercase to improve readability. 39732 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39733 # Now convert it back to Unix-stile (cygpath) 39734 input_path=`$CYGPATH -u "$shortmode_path"` 39735 new_path="$input_path" 39736 fi 39737 fi 39738 39739 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39740 if test "x$test_cygdrive_prefix" = x; then 39741 # As a simple fix, exclude /usr/bin since it's not a real path. 39742 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39743 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39744 # a path prefixed by /cygdrive for fixpath to work. 39745 new_path="$CYGWIN_ROOT_PATH$input_path" 39746 fi 39747 fi 39748 39749 # remove trailing .exe if any 39750 new_path="${new_path/%.exe/}" 39751 39752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39753 39754 # First separate the path from the arguments. This will split at the first 39755 # space. 39756 complete="$OBJCOPY" 39757 path="${complete%% *}" 39758 tmp="$complete EOL" 39759 arguments="${tmp#* }" 39760 39761 # Input might be given as Windows format, start by converting to 39762 # unix format. 39763 new_path="$path" 39764 39765 windows_path="$new_path" 39766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39767 unix_path=`$CYGPATH -u "$windows_path"` 39768 new_path="$unix_path" 39769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39771 new_path="$unix_path" 39772 fi 39773 39774 39775 # Now try to locate executable using which 39776 new_path=`$WHICH "$new_path" 2> /dev/null` 39777 39778 if test "x$new_path" = x; then 39779 # Oops. Which didn't find the executable. 39780 # The splitting of arguments from the executable at a space might have been incorrect, 39781 # since paths with space are more likely in Windows. Give it another try with the whole 39782 # argument. 39783 path="$complete" 39784 arguments="EOL" 39785 new_path="$path" 39786 39787 windows_path="$new_path" 39788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39789 unix_path=`$CYGPATH -u "$windows_path"` 39790 new_path="$unix_path" 39791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39793 new_path="$unix_path" 39794 fi 39795 39796 39797 new_path=`$WHICH "$new_path" 2> /dev/null` 39798 39799 if test "x$new_path" = x; then 39800 # It's still not found. Now this is an unrecoverable error. 39801 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 39802 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 39803 has_space=`$ECHO "$complete" | $GREP " "` 39804 if test "x$has_space" != x; then 39805 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39806 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39807 fi 39808 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39809 fi 39810 fi 39811 39812 # Now new_path has a complete unix path to the binary 39813 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39814 # Keep paths in /bin as-is, but remove trailing .exe if any 39815 new_path="${new_path/%.exe/}" 39816 # Do not save /bin paths to all_fixpath_prefixes! 39817 else 39818 # Not in mixed or Windows style, start by that. 39819 new_path=`cmd //c echo $new_path` 39820 39821 input_path="$new_path" 39822 # Check if we need to convert this using DOS-style short mode. If the path 39823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39824 # take no chances and rewrite it. 39825 # Note: m4 eats our [], so we need to use [ and ] instead. 39826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39827 if test "x$has_forbidden_chars" != x; then 39828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39829 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39830 fi 39831 39832 # Output is in $new_path 39833 39834 windows_path="$new_path" 39835 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39836 unix_path=`$CYGPATH -u "$windows_path"` 39837 new_path="$unix_path" 39838 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39839 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39840 new_path="$unix_path" 39841 fi 39842 39843 # remove trailing .exe if any 39844 new_path="${new_path/%.exe/}" 39845 39846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39848 fi 39849 39850 else 39851 # We're on a posix platform. Hooray! :) 39852 # First separate the path from the arguments. This will split at the first 39853 # space. 39854 complete="$OBJCOPY" 39855 path="${complete%% *}" 39856 tmp="$complete EOL" 39857 arguments="${tmp#* }" 39858 39859 # Cannot rely on the command "which" here since it doesn't always work. 39860 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39861 if test -z "$is_absolute_path"; then 39862 # Path to executable is not absolute. Find it. 39863 IFS_save="$IFS" 39864 IFS=: 39865 for p in $PATH; do 39866 if test -f "$p/$path" && test -x "$p/$path"; then 39867 new_path="$p/$path" 39868 break 39869 fi 39870 done 39871 IFS="$IFS_save" 39872 else 39873 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJCOPY (as $path) failed, using $path directly." >&5 39874 $as_echo "$as_me: Resolving OBJCOPY (as $path) failed, using $path directly." >&6;} 39875 new_path="$path" 39876 fi 39877 39878 if test "x$new_path" = x; then 39879 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 39880 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 39881 has_space=`$ECHO "$complete" | $GREP " "` 39882 if test "x$has_space" != x; then 39883 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39884 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39885 fi 39886 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 39887 fi 39888 fi 39889 39890 # Now join together the path and the arguments once again 39891 if test "x$arguments" != xEOL; then 39892 new_complete="$new_path ${arguments% *}" 39893 else 39894 new_complete="$new_path" 39895 fi 39896 39897 if test "x$complete" != "x$new_complete"; then 39898 OBJCOPY="$new_complete" 39899 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 39900 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 39901 fi 39902 39903 fi 39904 fi 39905 39906 39907 39908 # Publish this variable in the help. 39909 39910 39911 if test "x$OBJDUMP" = x; then 39912 # The variable is not set by user, try to locate tool using the code snippet 39913 if test -n "$ac_tool_prefix"; then 39914 for ac_prog in gobjdump objdump 39915 do 39916 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 39917 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 39918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39919 $as_echo_n "checking for $ac_word... " >&6; } 39920 if ${ac_cv_prog_OBJDUMP+:} false; then : 39921 $as_echo_n "(cached) " >&6 39922 else 39923 if test -n "$OBJDUMP"; then 39924 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 39925 else 39926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39927 for as_dir in $PATH 39928 do 39929 IFS=$as_save_IFS 39930 test -z "$as_dir" && as_dir=. 39931 for ac_exec_ext in '' $ac_executable_extensions; do 39932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39933 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 39934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39935 break 2 39936 fi 39937 done 39938 done 39939 IFS=$as_save_IFS 39940 39941 fi 39942 fi 39943 OBJDUMP=$ac_cv_prog_OBJDUMP 39944 if test -n "$OBJDUMP"; then 39945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 39946 $as_echo "$OBJDUMP" >&6; } 39947 else 39948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39949 $as_echo "no" >&6; } 39950 fi 39951 39952 39953 test -n "$OBJDUMP" && break 39954 done 39955 fi 39956 if test -z "$OBJDUMP"; then 39957 ac_ct_OBJDUMP=$OBJDUMP 39958 for ac_prog in gobjdump objdump 39959 do 39960 # Extract the first word of "$ac_prog", so it can be a program name with args. 39961 set dummy $ac_prog; ac_word=$2 39962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39963 $as_echo_n "checking for $ac_word... " >&6; } 39964 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 39965 $as_echo_n "(cached) " >&6 39966 else 39967 if test -n "$ac_ct_OBJDUMP"; then 39968 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 39969 else 39970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39971 for as_dir in $PATH 39972 do 39973 IFS=$as_save_IFS 39974 test -z "$as_dir" && as_dir=. 39975 for ac_exec_ext in '' $ac_executable_extensions; do 39976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39977 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 39978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39979 break 2 39980 fi 39981 done 39982 done 39983 IFS=$as_save_IFS 39984 39985 fi 39986 fi 39987 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 39988 if test -n "$ac_ct_OBJDUMP"; then 39989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 39990 $as_echo "$ac_ct_OBJDUMP" >&6; } 39991 else 39992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39993 $as_echo "no" >&6; } 39994 fi 39995 39996 39997 test -n "$ac_ct_OBJDUMP" && break 39998 done 39999 40000 if test "x$ac_ct_OBJDUMP" = x; then 40001 OBJDUMP="" 40002 else 40003 case $cross_compiling:$ac_tool_warned in 40004 yes:) 40005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40006 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40007 ac_tool_warned=yes ;; 40008 esac 40009 OBJDUMP=$ac_ct_OBJDUMP 40010 fi 40011 fi 40012 40013 else 40014 # The variable is set, but is it from the command line or the environment? 40015 40016 # Try to remove the string !OBJDUMP! from our list. 40017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 40018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40019 # If it failed, the variable was not from the command line. Ignore it, 40020 # but warn the user (except for BASH, which is always set by the calling BASH). 40021 if test "xOBJDUMP" != xBASH; then 40022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 40023 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 40024 fi 40025 # Try to locate tool using the code snippet 40026 if test -n "$ac_tool_prefix"; then 40027 for ac_prog in gobjdump objdump 40028 do 40029 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 40030 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 40031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40032 $as_echo_n "checking for $ac_word... " >&6; } 40033 if ${ac_cv_prog_OBJDUMP+:} false; then : 40034 $as_echo_n "(cached) " >&6 40035 else 40036 if test -n "$OBJDUMP"; then 40037 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 40038 else 40039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40040 for as_dir in $PATH 40041 do 40042 IFS=$as_save_IFS 40043 test -z "$as_dir" && as_dir=. 40044 for ac_exec_ext in '' $ac_executable_extensions; do 40045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40046 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 40047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40048 break 2 40049 fi 40050 done 40051 done 40052 IFS=$as_save_IFS 40053 40054 fi 40055 fi 40056 OBJDUMP=$ac_cv_prog_OBJDUMP 40057 if test -n "$OBJDUMP"; then 40058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 40059 $as_echo "$OBJDUMP" >&6; } 40060 else 40061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40062 $as_echo "no" >&6; } 40063 fi 40064 40065 40066 test -n "$OBJDUMP" && break 40067 done 40068 fi 40069 if test -z "$OBJDUMP"; then 40070 ac_ct_OBJDUMP=$OBJDUMP 40071 for ac_prog in gobjdump objdump 40072 do 40073 # Extract the first word of "$ac_prog", so it can be a program name with args. 40074 set dummy $ac_prog; ac_word=$2 40075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40076 $as_echo_n "checking for $ac_word... " >&6; } 40077 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 40078 $as_echo_n "(cached) " >&6 40079 else 40080 if test -n "$ac_ct_OBJDUMP"; then 40081 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 40082 else 40083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40084 for as_dir in $PATH 40085 do 40086 IFS=$as_save_IFS 40087 test -z "$as_dir" && as_dir=. 40088 for ac_exec_ext in '' $ac_executable_extensions; do 40089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40090 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 40091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40092 break 2 40093 fi 40094 done 40095 done 40096 IFS=$as_save_IFS 40097 40098 fi 40099 fi 40100 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 40101 if test -n "$ac_ct_OBJDUMP"; then 40102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 40103 $as_echo "$ac_ct_OBJDUMP" >&6; } 40104 else 40105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40106 $as_echo "no" >&6; } 40107 fi 40108 40109 40110 test -n "$ac_ct_OBJDUMP" && break 40111 done 40112 40113 if test "x$ac_ct_OBJDUMP" = x; then 40114 OBJDUMP="" 40115 else 40116 case $cross_compiling:$ac_tool_warned in 40117 yes:) 40118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 40119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 40120 ac_tool_warned=yes ;; 40121 esac 40122 OBJDUMP=$ac_ct_OBJDUMP 40123 fi 40124 fi 40125 40126 else 40127 # If it succeeded, then it was overridden by the user. We will use it 40128 # for the tool. 40129 40130 # First remove it from the list of overridden variables, so we can test 40131 # for unknown variables in the end. 40132 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40133 40134 # Check if the provided tool contains a complete path. 40135 tool_specified="$OBJDUMP" 40136 tool_basename="${tool_specified##*/}" 40137 if test "x$tool_basename" = "x$tool_specified"; then 40138 # A command without a complete path is provided, search $PATH. 40139 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 40140 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 40141 # Extract the first word of "$tool_basename", so it can be a program name with args. 40142 set dummy $tool_basename; ac_word=$2 40143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40144 $as_echo_n "checking for $ac_word... " >&6; } 40145 if ${ac_cv_path_OBJDUMP+:} false; then : 40146 $as_echo_n "(cached) " >&6 40147 else 40148 case $OBJDUMP in 40149 [\\/]* | ?:[\\/]*) 40150 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 40151 ;; 40152 *) 40153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40154 for as_dir in $PATH 40155 do 40156 IFS=$as_save_IFS 40157 test -z "$as_dir" && as_dir=. 40158 for ac_exec_ext in '' $ac_executable_extensions; do 40159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40160 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 40161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40162 break 2 40163 fi 40164 done 40165 done 40166 IFS=$as_save_IFS 40167 40168 ;; 40169 esac 40170 fi 40171 OBJDUMP=$ac_cv_path_OBJDUMP 40172 if test -n "$OBJDUMP"; then 40173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 40174 $as_echo "$OBJDUMP" >&6; } 40175 else 40176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40177 $as_echo "no" >&6; } 40178 fi 40179 40180 40181 if test "x$OBJDUMP" = x; then 40182 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40183 fi 40184 else 40185 # Otherwise we believe it is a complete path. Use it as it is. 40186 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 40187 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 40188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 40189 $as_echo_n "checking for OBJDUMP... " >&6; } 40190 if test ! -x "$tool_specified"; then 40191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40192 $as_echo "not found" >&6; } 40193 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 40194 fi 40195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40196 $as_echo "$tool_specified" >&6; } 40197 fi 40198 fi 40199 fi 40200 40201 40202 if test "x$OBJDUMP" != x; then 40203 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE bails if argument is missing. 40204 40205 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40206 40207 # First separate the path from the arguments. This will split at the first 40208 # space. 40209 complete="$OBJDUMP" 40210 path="${complete%% *}" 40211 tmp="$complete EOL" 40212 arguments="${tmp#* }" 40213 40214 # Input might be given as Windows format, start by converting to 40215 # unix format. 40216 new_path=`$CYGPATH -u "$path"` 40217 40218 # Now try to locate executable using which 40219 new_path=`$WHICH "$new_path" 2> /dev/null` 40220 # bat and cmd files are not always considered executable in cygwin causing which 40221 # to not find them 40222 if test "x$new_path" = x \ 40223 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40224 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40225 new_path=`$CYGPATH -u "$path"` 40226 fi 40227 if test "x$new_path" = x; then 40228 # Oops. Which didn't find the executable. 40229 # The splitting of arguments from the executable at a space might have been incorrect, 40230 # since paths with space are more likely in Windows. Give it another try with the whole 40231 # argument. 40232 path="$complete" 40233 arguments="EOL" 40234 new_path=`$CYGPATH -u "$path"` 40235 new_path=`$WHICH "$new_path" 2> /dev/null` 40236 # bat and cmd files are not always considered executable in cygwin causing which 40237 # to not find them 40238 if test "x$new_path" = x \ 40239 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40240 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40241 new_path=`$CYGPATH -u "$path"` 40242 fi 40243 if test "x$new_path" = x; then 40244 # It's still not found. Now this is an unrecoverable error. 40245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 40246 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 40247 has_space=`$ECHO "$complete" | $GREP " "` 40248 if test "x$has_space" != x; then 40249 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40250 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40251 fi 40252 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 40253 fi 40254 fi 40255 40256 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40257 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40258 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40259 # "foo.exe" is OK but "foo" is an error. 40260 # 40261 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40262 # It is also a way to make sure we got the proper file name for the real test later on. 40263 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40264 if test "x$test_shortpath" = x; then 40265 # Short path failed, file does not exist as specified. 40266 # Try adding .exe or .cmd 40267 if test -f "${new_path}.exe"; then 40268 input_to_shortpath="${new_path}.exe" 40269 elif test -f "${new_path}.cmd"; then 40270 input_to_shortpath="${new_path}.cmd" 40271 else 40272 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 40273 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 40274 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40275 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40276 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 40277 fi 40278 else 40279 input_to_shortpath="$new_path" 40280 fi 40281 40282 # Call helper function which possibly converts this using DOS-style short mode. 40283 # If so, the updated path is stored in $new_path. 40284 new_path="$input_to_shortpath" 40285 40286 input_path="$input_to_shortpath" 40287 # Check if we need to convert this using DOS-style short mode. If the path 40288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40289 # take no chances and rewrite it. 40290 # Note: m4 eats our [], so we need to use [ and ] instead. 40291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40292 if test "x$has_forbidden_chars" != x; then 40293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40294 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40295 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40296 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40297 # Going to short mode and back again did indeed matter. Since short mode is 40298 # case insensitive, let's make it lowercase to improve readability. 40299 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40300 # Now convert it back to Unix-stile (cygpath) 40301 input_path=`$CYGPATH -u "$shortmode_path"` 40302 new_path="$input_path" 40303 fi 40304 fi 40305 40306 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40307 if test "x$test_cygdrive_prefix" = x; then 40308 # As a simple fix, exclude /usr/bin since it's not a real path. 40309 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40310 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40311 # a path prefixed by /cygdrive for fixpath to work. 40312 new_path="$CYGWIN_ROOT_PATH$input_path" 40313 fi 40314 fi 40315 40316 # remove trailing .exe if any 40317 new_path="${new_path/%.exe/}" 40318 40319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40320 40321 # First separate the path from the arguments. This will split at the first 40322 # space. 40323 complete="$OBJDUMP" 40324 path="${complete%% *}" 40325 tmp="$complete EOL" 40326 arguments="${tmp#* }" 40327 40328 # Input might be given as Windows format, start by converting to 40329 # unix format. 40330 new_path="$path" 40331 40332 windows_path="$new_path" 40333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40334 unix_path=`$CYGPATH -u "$windows_path"` 40335 new_path="$unix_path" 40336 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40337 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40338 new_path="$unix_path" 40339 fi 40340 40341 40342 # Now try to locate executable using which 40343 new_path=`$WHICH "$new_path" 2> /dev/null` 40344 40345 if test "x$new_path" = x; then 40346 # Oops. Which didn't find the executable. 40347 # The splitting of arguments from the executable at a space might have been incorrect, 40348 # since paths with space are more likely in Windows. Give it another try with the whole 40349 # argument. 40350 path="$complete" 40351 arguments="EOL" 40352 new_path="$path" 40353 40354 windows_path="$new_path" 40355 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40356 unix_path=`$CYGPATH -u "$windows_path"` 40357 new_path="$unix_path" 40358 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40359 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40360 new_path="$unix_path" 40361 fi 40362 40363 40364 new_path=`$WHICH "$new_path" 2> /dev/null` 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 OBJDUMP, which resolves as \"$complete\", is not found." >&5 40369 $as_echo "$as_me: The path of OBJDUMP, 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 OBJDUMP" "$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 posix platform. Hooray! :) 40419 # First separate the path from the arguments. This will split at the first 40420 # space. 40421 complete="$OBJDUMP" 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 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving OBJDUMP (as $path) failed, using $path directly." >&5 40441 $as_echo "$as_me: Resolving OBJDUMP (as $path) failed, using $path directly." >&6;} 40442 new_path="$path" 40443 fi 40444 40445 if test "x$new_path" = x; then 40446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 40447 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 40448 has_space=`$ECHO "$complete" | $GREP " "` 40449 if test "x$has_space" != x; then 40450 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40451 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40452 fi 40453 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 40454 fi 40455 fi 40456 40457 # Now join together the path and the arguments once again 40458 if test "x$arguments" != xEOL; then 40459 new_complete="$new_path ${arguments% *}" 40460 else 40461 new_complete="$new_path" 40462 fi 40463 40464 if test "x$complete" != "x$new_complete"; then 40465 OBJDUMP="$new_complete" 40466 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 40467 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 40468 fi 40469 40470 fi 40471 40472 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 40473 40474 40475 # Publish this variable in the help. 40476 40477 40478 if test "x$LIPO" = x; then 40479 # The variable is not set by user, try to locate tool using the code snippet 40480 for ac_prog in lipo 40481 do 40482 # Extract the first word of "$ac_prog", so it can be a program name with args. 40483 set dummy $ac_prog; ac_word=$2 40484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40485 $as_echo_n "checking for $ac_word... " >&6; } 40486 if ${ac_cv_path_LIPO+:} false; then : 40487 $as_echo_n "(cached) " >&6 40488 else 40489 case $LIPO in 40490 [\\/]* | ?:[\\/]*) 40491 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 40492 ;; 40493 *) 40494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40495 for as_dir in $PATH 40496 do 40497 IFS=$as_save_IFS 40498 test -z "$as_dir" && as_dir=. 40499 for ac_exec_ext in '' $ac_executable_extensions; do 40500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40501 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 40502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40503 break 2 40504 fi 40505 done 40506 done 40507 IFS=$as_save_IFS 40508 40509 ;; 40510 esac 40511 fi 40512 LIPO=$ac_cv_path_LIPO 40513 if test -n "$LIPO"; then 40514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 40515 $as_echo "$LIPO" >&6; } 40516 else 40517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40518 $as_echo "no" >&6; } 40519 fi 40520 40521 40522 test -n "$LIPO" && break 40523 done 40524 40525 else 40526 # The variable is set, but is it from the command line or the environment? 40527 40528 # Try to remove the string !LIPO! from our list. 40529 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 40530 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40531 # If it failed, the variable was not from the command line. Ignore it, 40532 # but warn the user (except for BASH, which is always set by the calling BASH). 40533 if test "xLIPO" != xBASH; then 40534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 40535 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 40536 fi 40537 # Try to locate tool using the code snippet 40538 for ac_prog in lipo 40539 do 40540 # Extract the first word of "$ac_prog", so it can be a program name with args. 40541 set dummy $ac_prog; ac_word=$2 40542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40543 $as_echo_n "checking for $ac_word... " >&6; } 40544 if ${ac_cv_path_LIPO+:} false; then : 40545 $as_echo_n "(cached) " >&6 40546 else 40547 case $LIPO in 40548 [\\/]* | ?:[\\/]*) 40549 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 40550 ;; 40551 *) 40552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40553 for as_dir in $PATH 40554 do 40555 IFS=$as_save_IFS 40556 test -z "$as_dir" && as_dir=. 40557 for ac_exec_ext in '' $ac_executable_extensions; do 40558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40559 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 40560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40561 break 2 40562 fi 40563 done 40564 done 40565 IFS=$as_save_IFS 40566 40567 ;; 40568 esac 40569 fi 40570 LIPO=$ac_cv_path_LIPO 40571 if test -n "$LIPO"; then 40572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 40573 $as_echo "$LIPO" >&6; } 40574 else 40575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40576 $as_echo "no" >&6; } 40577 fi 40578 40579 40580 test -n "$LIPO" && break 40581 done 40582 40583 else 40584 # If it succeeded, then it was overridden by the user. We will use it 40585 # for the tool. 40586 40587 # First remove it from the list of overridden variables, so we can test 40588 # for unknown variables in the end. 40589 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40590 40591 # Check if the provided tool contains a complete path. 40592 tool_specified="$LIPO" 40593 tool_basename="${tool_specified##*/}" 40594 if test "x$tool_basename" = "x$tool_specified"; then 40595 # A command without a complete path is provided, search $PATH. 40596 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 40597 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 40598 # Extract the first word of "$tool_basename", so it can be a program name with args. 40599 set dummy $tool_basename; ac_word=$2 40600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40601 $as_echo_n "checking for $ac_word... " >&6; } 40602 if ${ac_cv_path_LIPO+:} false; then : 40603 $as_echo_n "(cached) " >&6 40604 else 40605 case $LIPO in 40606 [\\/]* | ?:[\\/]*) 40607 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 40608 ;; 40609 *) 40610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40611 for as_dir in $PATH 40612 do 40613 IFS=$as_save_IFS 40614 test -z "$as_dir" && as_dir=. 40615 for ac_exec_ext in '' $ac_executable_extensions; do 40616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40617 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 40618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40619 break 2 40620 fi 40621 done 40622 done 40623 IFS=$as_save_IFS 40624 40625 ;; 40626 esac 40627 fi 40628 LIPO=$ac_cv_path_LIPO 40629 if test -n "$LIPO"; then 40630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 40631 $as_echo "$LIPO" >&6; } 40632 else 40633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40634 $as_echo "no" >&6; } 40635 fi 40636 40637 40638 if test "x$LIPO" = x; then 40639 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40640 fi 40641 else 40642 # Otherwise we believe it is a complete path. Use it as it is. 40643 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 40644 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 40645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 40646 $as_echo_n "checking for LIPO... " >&6; } 40647 if test ! -x "$tool_specified"; then 40648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40649 $as_echo "not found" >&6; } 40650 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 40651 fi 40652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40653 $as_echo "$tool_specified" >&6; } 40654 fi 40655 fi 40656 fi 40657 40658 40659 40660 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40661 40662 # First separate the path from the arguments. This will split at the first 40663 # space. 40664 complete="$LIPO" 40665 path="${complete%% *}" 40666 tmp="$complete EOL" 40667 arguments="${tmp#* }" 40668 40669 # Input might be given as Windows format, start by converting to 40670 # unix format. 40671 new_path=`$CYGPATH -u "$path"` 40672 40673 # Now try to locate executable using which 40674 new_path=`$WHICH "$new_path" 2> /dev/null` 40675 # bat and cmd files are not always considered executable in cygwin causing which 40676 # to not find them 40677 if test "x$new_path" = x \ 40678 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40679 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40680 new_path=`$CYGPATH -u "$path"` 40681 fi 40682 if test "x$new_path" = x; then 40683 # Oops. Which didn't find the executable. 40684 # The splitting of arguments from the executable at a space might have been incorrect, 40685 # since paths with space are more likely in Windows. Give it another try with the whole 40686 # argument. 40687 path="$complete" 40688 arguments="EOL" 40689 new_path=`$CYGPATH -u "$path"` 40690 new_path=`$WHICH "$new_path" 2> /dev/null` 40691 # bat and cmd files are not always considered executable in cygwin causing which 40692 # to not find them 40693 if test "x$new_path" = x \ 40694 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 40695 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 40696 new_path=`$CYGPATH -u "$path"` 40697 fi 40698 if test "x$new_path" = x; then 40699 # It's still not found. Now this is an unrecoverable error. 40700 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 40701 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 40702 has_space=`$ECHO "$complete" | $GREP " "` 40703 if test "x$has_space" != x; then 40704 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40705 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40706 fi 40707 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 40708 fi 40709 fi 40710 40711 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40712 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40713 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40714 # "foo.exe" is OK but "foo" is an error. 40715 # 40716 # This test is therefore slightly more accurate than "test -f" to check for file presence. 40717 # It is also a way to make sure we got the proper file name for the real test later on. 40718 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40719 if test "x$test_shortpath" = x; then 40720 # Short path failed, file does not exist as specified. 40721 # Try adding .exe or .cmd 40722 if test -f "${new_path}.exe"; then 40723 input_to_shortpath="${new_path}.exe" 40724 elif test -f "${new_path}.cmd"; then 40725 input_to_shortpath="${new_path}.cmd" 40726 else 40727 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 40728 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 40729 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 40730 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 40731 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 40732 fi 40733 else 40734 input_to_shortpath="$new_path" 40735 fi 40736 40737 # Call helper function which possibly converts this using DOS-style short mode. 40738 # If so, the updated path is stored in $new_path. 40739 new_path="$input_to_shortpath" 40740 40741 input_path="$input_to_shortpath" 40742 # Check if we need to convert this using DOS-style short mode. If the path 40743 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40744 # take no chances and rewrite it. 40745 # Note: m4 eats our [], so we need to use [ and ] instead. 40746 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40747 if test "x$has_forbidden_chars" != x; then 40748 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40749 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40750 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40751 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40752 # Going to short mode and back again did indeed matter. Since short mode is 40753 # case insensitive, let's make it lowercase to improve readability. 40754 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40755 # Now convert it back to Unix-stile (cygpath) 40756 input_path=`$CYGPATH -u "$shortmode_path"` 40757 new_path="$input_path" 40758 fi 40759 fi 40760 40761 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40762 if test "x$test_cygdrive_prefix" = x; then 40763 # As a simple fix, exclude /usr/bin since it's not a real path. 40764 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 40765 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40766 # a path prefixed by /cygdrive for fixpath to work. 40767 new_path="$CYGWIN_ROOT_PATH$input_path" 40768 fi 40769 fi 40770 40771 # remove trailing .exe if any 40772 new_path="${new_path/%.exe/}" 40773 40774 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40775 40776 # First separate the path from the arguments. This will split at the first 40777 # space. 40778 complete="$LIPO" 40779 path="${complete%% *}" 40780 tmp="$complete EOL" 40781 arguments="${tmp#* }" 40782 40783 # Input might be given as Windows format, start by converting to 40784 # unix format. 40785 new_path="$path" 40786 40787 windows_path="$new_path" 40788 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40789 unix_path=`$CYGPATH -u "$windows_path"` 40790 new_path="$unix_path" 40791 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40792 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40793 new_path="$unix_path" 40794 fi 40795 40796 40797 # Now try to locate executable using which 40798 new_path=`$WHICH "$new_path" 2> /dev/null` 40799 40800 if test "x$new_path" = x; then 40801 # Oops. Which didn't find the executable. 40802 # The splitting of arguments from the executable at a space might have been incorrect, 40803 # since paths with space are more likely in Windows. Give it another try with the whole 40804 # argument. 40805 path="$complete" 40806 arguments="EOL" 40807 new_path="$path" 40808 40809 windows_path="$new_path" 40810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40811 unix_path=`$CYGPATH -u "$windows_path"` 40812 new_path="$unix_path" 40813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40815 new_path="$unix_path" 40816 fi 40817 40818 40819 new_path=`$WHICH "$new_path" 2> /dev/null` 40820 40821 if test "x$new_path" = x; then 40822 # It's still not found. Now this is an unrecoverable error. 40823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 40824 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 40825 has_space=`$ECHO "$complete" | $GREP " "` 40826 if test "x$has_space" != x; then 40827 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40828 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40829 fi 40830 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 40831 fi 40832 fi 40833 40834 # Now new_path has a complete unix path to the binary 40835 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40836 # Keep paths in /bin as-is, but remove trailing .exe if any 40837 new_path="${new_path/%.exe/}" 40838 # Do not save /bin paths to all_fixpath_prefixes! 40839 else 40840 # Not in mixed or Windows style, start by that. 40841 new_path=`cmd //c echo $new_path` 40842 40843 input_path="$new_path" 40844 # Check if we need to convert this using DOS-style short mode. If the path 40845 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40846 # take no chances and rewrite it. 40847 # Note: m4 eats our [], so we need to use [ and ] instead. 40848 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40849 if test "x$has_forbidden_chars" != x; then 40850 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40851 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40852 fi 40853 40854 # Output is in $new_path 40855 40856 windows_path="$new_path" 40857 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40858 unix_path=`$CYGPATH -u "$windows_path"` 40859 new_path="$unix_path" 40860 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40861 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40862 new_path="$unix_path" 40863 fi 40864 40865 # remove trailing .exe if any 40866 new_path="${new_path/%.exe/}" 40867 40868 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40869 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40870 fi 40871 40872 else 40873 # We're on a posix platform. Hooray! :) 40874 # First separate the path from the arguments. This will split at the first 40875 # space. 40876 complete="$LIPO" 40877 path="${complete%% *}" 40878 tmp="$complete EOL" 40879 arguments="${tmp#* }" 40880 40881 # Cannot rely on the command "which" here since it doesn't always work. 40882 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40883 if test -z "$is_absolute_path"; then 40884 # Path to executable is not absolute. Find it. 40885 IFS_save="$IFS" 40886 IFS=: 40887 for p in $PATH; do 40888 if test -f "$p/$path" && test -x "$p/$path"; then 40889 new_path="$p/$path" 40890 break 40891 fi 40892 done 40893 IFS="$IFS_save" 40894 else 40895 { $as_echo "$as_me:${as_lineno-$LINENO}: Resolving LIPO (as $path) failed, using $path directly." >&5 40896 $as_echo "$as_me: Resolving LIPO (as $path) failed, using $path directly." >&6;} 40897 new_path="$path" 40898 fi 40899 40900 if test "x$new_path" = x; then 40901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 40902 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 40903 has_space=`$ECHO "$complete" | $GREP " "` 40904 if test "x$has_space" != x; then 40905 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40906 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40907 fi 40908 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 40909 fi 40910 fi 40911 40912 # Now join together the path and the arguments once again 40913 if test "x$arguments" != xEOL; then 40914 new_complete="$new_path ${arguments% *}" 40915 else 40916 new_complete="$new_path" 40917 fi 40918 40919 if test "x$complete" != "x$new_complete"; then 40920 LIPO="$new_complete" 40921 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 40922 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 40923 fi 40924 40925 fi 40926 40927 40928 40929 # Restore old path without tools dir 40930 PATH="$OLD_PATH" 40931 40932 40933 # FIXME: Currently we must test this after paths but before flags. Fix! 40934 40935 # And we can test some aspects on the target using configure macros. 40936 40937 40938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40939 $as_echo_n "checking for ANSI C header files... " >&6; } 40940 if ${ac_cv_header_stdc+:} false; then : 40941 $as_echo_n "(cached) " >&6 40942 else 40943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40944 /* end confdefs.h. */ 40945 #include <stdlib.h> 40946 #include <stdarg.h> 40947 #include <string.h> 40948 #include <float.h> 40949 40950 int 40951 main () 40952 { 40953 40954 ; 40955 return 0; 40956 } 40957 _ACEOF 40958 if ac_fn_cxx_try_compile "$LINENO"; then : 40959 ac_cv_header_stdc=yes 40960 else 40961 ac_cv_header_stdc=no 40962 fi 40963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40964 40965 if test $ac_cv_header_stdc = yes; then 40966 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40968 /* end confdefs.h. */ 40969 #include <string.h> 40970 40971 _ACEOF 40972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40973 $EGREP "memchr" >/dev/null 2>&1; then : 40974 40975 else 40976 ac_cv_header_stdc=no 40977 fi 40978 rm -f conftest* 40979 40980 fi 40981 40982 if test $ac_cv_header_stdc = yes; then 40983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40985 /* end confdefs.h. */ 40986 #include <stdlib.h> 40987 40988 _ACEOF 40989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40990 $EGREP "free" >/dev/null 2>&1; then : 40991 40992 else 40993 ac_cv_header_stdc=no 40994 fi 40995 rm -f conftest* 40996 40997 fi 40998 40999 if test $ac_cv_header_stdc = yes; then 41000 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 41001 if test "$cross_compiling" = yes; then : 41002 : 41003 else 41004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41005 /* end confdefs.h. */ 41006 #include <ctype.h> 41007 #include <stdlib.h> 41008 #if ((' ' & 0x0FF) == 0x020) 41009 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 41010 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 41011 #else 41012 # define ISLOWER(c) \ 41013 (('a' <= (c) && (c) <= 'i') \ 41014 || ('j' <= (c) && (c) <= 'r') \ 41015 || ('s' <= (c) && (c) <= 'z')) 41016 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 41017 #endif 41018 41019 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 41020 int 41021 main () 41022 { 41023 int i; 41024 for (i = 0; i < 256; i++) 41025 if (XOR (islower (i), ISLOWER (i)) 41026 || toupper (i) != TOUPPER (i)) 41027 return 2; 41028 return 0; 41029 } 41030 _ACEOF 41031 if ac_fn_cxx_try_run "$LINENO"; then : 41032 41033 else 41034 ac_cv_header_stdc=no 41035 fi 41036 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41037 conftest.$ac_objext conftest.beam conftest.$ac_ext 41038 fi 41039 41040 fi 41041 fi 41042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 41043 $as_echo "$ac_cv_header_stdc" >&6; } 41044 if test $ac_cv_header_stdc = yes; then 41045 41046 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 41047 41048 fi 41049 41050 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 41051 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 41052 inttypes.h stdint.h unistd.h 41053 do : 41054 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41055 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 41056 " 41057 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41058 cat >>confdefs.h <<_ACEOF 41059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41060 _ACEOF 41061 41062 fi 41063 41064 done 41065 41066 41067 41068 ############################################################################### 41069 # 41070 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 41071 # (The JVM can use 32 or 64 bit Java pointers but that decision 41072 # is made at runtime.) 41073 # 41074 41075 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 41076 # Always specify -m flag on Solaris 41077 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 41078 41079 # When we add flags to the "official" CFLAGS etc, we need to 41080 # keep track of these additions in ADDED_CFLAGS etc. These 41081 # will later be checked to make sure only controlled additions 41082 # have been made to CFLAGS etc. 41083 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41084 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41085 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41086 41087 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41088 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41089 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41090 41091 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41092 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41093 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41094 41095 elif test "x$COMPILE_TYPE" = xreduced; then 41096 if test "x$OPENJDK_TARGET_OS" != xwindows; then 41097 # Specify -m if running reduced on other Posix platforms 41098 41099 # When we add flags to the "official" CFLAGS etc, we need to 41100 # keep track of these additions in ADDED_CFLAGS etc. These 41101 # will later be checked to make sure only controlled additions 41102 # have been made to CFLAGS etc. 41103 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41104 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41105 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41106 41107 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41108 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41109 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41110 41111 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41112 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41113 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41114 41115 fi 41116 fi 41117 41118 # Make compilation sanity check 41119 for ac_header in stdio.h 41120 do : 41121 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 41122 if test "x$ac_cv_header_stdio_h" = xyes; then : 41123 cat >>confdefs.h <<_ACEOF 41124 #define HAVE_STDIO_H 1 41125 _ACEOF 41126 41127 else 41128 41129 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 41130 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 41131 if test "x$COMPILE_TYPE" = xreduced; then 41132 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 41133 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 41134 elif test "x$COMPILE_TYPE" = xcross; then 41135 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 41136 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 41137 fi 41138 as_fn_error $? "Cannot continue." "$LINENO" 5 41139 41140 fi 41141 41142 done 41143 41144 41145 # The cast to long int works around a bug in the HP C Compiler 41146 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41147 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41148 # This bug is HP SR number 8606223364. 41149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41150 $as_echo_n "checking size of int *... " >&6; } 41151 if ${ac_cv_sizeof_int_p+:} false; then : 41152 $as_echo_n "(cached) " >&6 41153 else 41154 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41155 41156 else 41157 if test "$ac_cv_type_int_p" = yes; then 41158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41159 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41160 as_fn_error 77 "cannot compute sizeof (int *) 41161 See \`config.log' for more details" "$LINENO" 5; } 41162 else 41163 ac_cv_sizeof_int_p=0 41164 fi 41165 fi 41166 41167 fi 41168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41169 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41170 41171 41172 41173 cat >>confdefs.h <<_ACEOF 41174 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41175 _ACEOF 41176 41177 41178 41179 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 41180 if test "x$ac_cv_sizeof_int_p" = x; then 41181 # The test failed, lets stick to the assumed value. 41182 { $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 41183 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41184 else 41185 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41186 41187 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41188 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41189 # Let's try to implicitely set the compilers target architecture and retry the test 41190 { $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 41191 $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;} 41192 { $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 41193 $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;} 41194 41195 # When we add flags to the "official" CFLAGS etc, we need to 41196 # keep track of these additions in ADDED_CFLAGS etc. These 41197 # will later be checked to make sure only controlled additions 41198 # have been made to CFLAGS etc. 41199 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41200 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41201 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41202 41203 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41204 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41205 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41206 41207 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41208 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41209 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41210 41211 41212 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41213 unset ac_cv_sizeof_int_p 41214 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41215 cat >>confdefs.h <<_ACEOF 41216 #undef SIZEOF_INT_P 41217 _ACEOF 41218 41219 # The cast to long int works around a bug in the HP C Compiler 41220 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41221 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41222 # This bug is HP SR number 8606223364. 41223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41224 $as_echo_n "checking size of int *... " >&6; } 41225 if ${ac_cv_sizeof_int_p+:} false; then : 41226 $as_echo_n "(cached) " >&6 41227 else 41228 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41229 41230 else 41231 if test "$ac_cv_type_int_p" = yes; then 41232 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41234 as_fn_error 77 "cannot compute sizeof (int *) 41235 See \`config.log' for more details" "$LINENO" 5; } 41236 else 41237 ac_cv_sizeof_int_p=0 41238 fi 41239 fi 41240 41241 fi 41242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41243 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41244 41245 41246 41247 cat >>confdefs.h <<_ACEOF 41248 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41249 _ACEOF 41250 41251 41252 41253 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41254 41255 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41256 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 41257 fi 41258 fi 41259 fi 41260 41261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41262 $as_echo_n "checking for target address size... " >&6; } 41263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41264 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41265 41266 41267 ############################################################################### 41268 # 41269 # Is the target little of big endian? 41270 # 41271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41272 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41273 if ${ac_cv_c_bigendian+:} false; then : 41274 $as_echo_n "(cached) " >&6 41275 else 41276 ac_cv_c_bigendian=unknown 41277 # See if we're dealing with a universal compiler. 41278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41279 /* end confdefs.h. */ 41280 #ifndef __APPLE_CC__ 41281 not a universal capable compiler 41282 #endif 41283 typedef int dummy; 41284 41285 _ACEOF 41286 if ac_fn_cxx_try_compile "$LINENO"; then : 41287 41288 # Check for potential -arch flags. It is not universal unless 41289 # there are at least two -arch flags with different values. 41290 ac_arch= 41291 ac_prev= 41292 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41293 if test -n "$ac_prev"; then 41294 case $ac_word in 41295 i?86 | x86_64 | ppc | ppc64) 41296 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41297 ac_arch=$ac_word 41298 else 41299 ac_cv_c_bigendian=universal 41300 break 41301 fi 41302 ;; 41303 esac 41304 ac_prev= 41305 elif test "x$ac_word" = "x-arch"; then 41306 ac_prev=arch 41307 fi 41308 done 41309 fi 41310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41311 if test $ac_cv_c_bigendian = unknown; then 41312 # See if sys/param.h defines the BYTE_ORDER macro. 41313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41314 /* end confdefs.h. */ 41315 #include <sys/types.h> 41316 #include <sys/param.h> 41317 41318 int 41319 main () 41320 { 41321 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41322 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41323 && LITTLE_ENDIAN) 41324 bogus endian macros 41325 #endif 41326 41327 ; 41328 return 0; 41329 } 41330 _ACEOF 41331 if ac_fn_cxx_try_compile "$LINENO"; then : 41332 # It does; now see whether it defined to BIG_ENDIAN or not. 41333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41334 /* end confdefs.h. */ 41335 #include <sys/types.h> 41336 #include <sys/param.h> 41337 41338 int 41339 main () 41340 { 41341 #if BYTE_ORDER != BIG_ENDIAN 41342 not big endian 41343 #endif 41344 41345 ; 41346 return 0; 41347 } 41348 _ACEOF 41349 if ac_fn_cxx_try_compile "$LINENO"; then : 41350 ac_cv_c_bigendian=yes 41351 else 41352 ac_cv_c_bigendian=no 41353 fi 41354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41355 fi 41356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41357 fi 41358 if test $ac_cv_c_bigendian = unknown; then 41359 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41361 /* end confdefs.h. */ 41362 #include <limits.h> 41363 41364 int 41365 main () 41366 { 41367 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41368 bogus endian macros 41369 #endif 41370 41371 ; 41372 return 0; 41373 } 41374 _ACEOF 41375 if ac_fn_cxx_try_compile "$LINENO"; then : 41376 # It does; now see whether it defined to _BIG_ENDIAN or not. 41377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41378 /* end confdefs.h. */ 41379 #include <limits.h> 41380 41381 int 41382 main () 41383 { 41384 #ifndef _BIG_ENDIAN 41385 not big endian 41386 #endif 41387 41388 ; 41389 return 0; 41390 } 41391 _ACEOF 41392 if ac_fn_cxx_try_compile "$LINENO"; then : 41393 ac_cv_c_bigendian=yes 41394 else 41395 ac_cv_c_bigendian=no 41396 fi 41397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41398 fi 41399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41400 fi 41401 if test $ac_cv_c_bigendian = unknown; then 41402 # Compile a test program. 41403 if test "$cross_compiling" = yes; then : 41404 # Try to guess by grepping values from an object file. 41405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41406 /* end confdefs.h. */ 41407 short int ascii_mm[] = 41408 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41409 short int ascii_ii[] = 41410 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41411 int use_ascii (int i) { 41412 return ascii_mm[i] + ascii_ii[i]; 41413 } 41414 short int ebcdic_ii[] = 41415 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41416 short int ebcdic_mm[] = 41417 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41418 int use_ebcdic (int i) { 41419 return ebcdic_mm[i] + ebcdic_ii[i]; 41420 } 41421 extern int foo; 41422 41423 int 41424 main () 41425 { 41426 return use_ascii (foo) == use_ebcdic (foo); 41427 ; 41428 return 0; 41429 } 41430 _ACEOF 41431 if ac_fn_cxx_try_compile "$LINENO"; then : 41432 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41433 ac_cv_c_bigendian=yes 41434 fi 41435 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41436 if test "$ac_cv_c_bigendian" = unknown; then 41437 ac_cv_c_bigendian=no 41438 else 41439 # finding both strings is unlikely to happen, but who knows? 41440 ac_cv_c_bigendian=unknown 41441 fi 41442 fi 41443 fi 41444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41445 else 41446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41447 /* end confdefs.h. */ 41448 $ac_includes_default 41449 int 41450 main () 41451 { 41452 41453 /* Are we little or big endian? From Harbison&Steele. */ 41454 union 41455 { 41456 long int l; 41457 char c[sizeof (long int)]; 41458 } u; 41459 u.l = 1; 41460 return u.c[sizeof (long int) - 1] == 1; 41461 41462 ; 41463 return 0; 41464 } 41465 _ACEOF 41466 if ac_fn_cxx_try_run "$LINENO"; then : 41467 ac_cv_c_bigendian=no 41468 else 41469 ac_cv_c_bigendian=yes 41470 fi 41471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41472 conftest.$ac_objext conftest.beam conftest.$ac_ext 41473 fi 41474 41475 fi 41476 fi 41477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41478 $as_echo "$ac_cv_c_bigendian" >&6; } 41479 case $ac_cv_c_bigendian in #( 41480 yes) 41481 ENDIAN="big";; #( 41482 no) 41483 ENDIAN="little" ;; #( 41484 universal) 41485 ENDIAN="universal_endianness" 41486 ;; #( 41487 *) 41488 ENDIAN="unknown" ;; 41489 esac 41490 41491 41492 if test "x$ENDIAN" = xuniversal_endianness; then 41493 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41494 fi 41495 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41496 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 41497 fi 41498 41499 41500 # Configure flags for the tools 41501 41502 41503 ############################################################################### 41504 # 41505 # How to compile shared libraries. 41506 # 41507 41508 if test "x$GCC" = xyes; then 41509 COMPILER_NAME=gcc 41510 PICFLAG="-fPIC" 41511 LIBRARY_PREFIX=lib 41512 SHARED_LIBRARY='lib$1.so' 41513 STATIC_LIBRARY='lib$1.a' 41514 SHARED_LIBRARY_FLAGS="-shared" 41515 SHARED_LIBRARY_SUFFIX='.so' 41516 STATIC_LIBRARY_SUFFIX='.a' 41517 OBJ_SUFFIX='.o' 41518 EXE_SUFFIX='' 41519 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41520 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41521 C_FLAG_REORDER='' 41522 CXX_FLAG_REORDER='' 41523 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41524 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41525 LD="$CC" 41526 LDEXE="$CC" 41527 LDCXX="$CXX" 41528 LDEXECXX="$CXX" 41529 POST_STRIP_CMD="$STRIP -g" 41530 41531 # Linking is different on MacOSX 41532 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41533 # Might change in the future to clang. 41534 COMPILER_NAME=gcc 41535 SHARED_LIBRARY='lib$1.dylib' 41536 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41537 SHARED_LIBRARY_SUFFIX='.dylib' 41538 EXE_SUFFIX='' 41539 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41540 SET_SHARED_LIBRARY_MAPFILE='' 41541 SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41542 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 41543 POST_STRIP_CMD="$STRIP -S" 41544 fi 41545 else 41546 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41547 # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler 41548 COMPILER_NAME=ossc 41549 PICFLAG="-KPIC" 41550 LIBRARY_PREFIX=lib 41551 SHARED_LIBRARY='lib$1.so' 41552 STATIC_LIBRARY='lib$1.a' 41553 SHARED_LIBRARY_FLAGS="-G" 41554 SHARED_LIBRARY_SUFFIX='.so' 41555 STATIC_LIBRARY_SUFFIX='.a' 41556 OBJ_SUFFIX='.o' 41557 EXE_SUFFIX='' 41558 SET_SHARED_LIBRARY_NAME='' 41559 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41560 C_FLAG_REORDER='-xF' 41561 CXX_FLAG_REORDER='-xF' 41562 SET_SHARED_LIBRARY_ORIGIN='-R\$$$$ORIGIN$1' 41563 SET_EXECUTABLE_ORIGIN="$SET_SHARED_LIBRARY_ORIGIN" 41564 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41565 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41566 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41567 POST_STRIP_CMD="$STRIP -x" 41568 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 41569 fi 41570 if test "x$OPENJDK_TARGET_OS" = xaix; then 41571 COMPILER_NAME=xlc 41572 PICFLAG="-qpic=large" 41573 LIBRARY_PREFIX=lib 41574 SHARED_LIBRARY='lib$1.so' 41575 STATIC_LIBRARY='lib$1.a' 41576 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41577 SHARED_LIBRARY_SUFFIX='.so' 41578 STATIC_LIBRARY_SUFFIX='.a' 41579 OBJ_SUFFIX='.o' 41580 EXE_SUFFIX='' 41581 SET_SHARED_LIBRARY_NAME='' 41582 SET_SHARED_LIBRARY_MAPFILE='' 41583 C_FLAG_REORDER='' 41584 CXX_FLAG_REORDER='' 41585 SET_SHARED_LIBRARY_ORIGIN='' 41586 SET_EXECUTABLE_ORIGIN="" 41587 CFLAGS_JDK="" 41588 CXXFLAGS_JDK="" 41589 CFLAGS_JDKLIB_EXTRA='' 41590 POST_STRIP_CMD="$STRIP -X32_64" 41591 POST_MCS_CMD="" 41592 fi 41593 if test "x$OPENJDK_TARGET_OS" = xwindows; then 41594 # If it is not gcc, then assume it is the MS Visual Studio compiler 41595 COMPILER_NAME=cl 41596 PICFLAG="" 41597 LIBRARY_PREFIX= 41598 SHARED_LIBRARY='$1.dll' 41599 STATIC_LIBRARY='$1.lib' 41600 SHARED_LIBRARY_FLAGS="-LD" 41601 SHARED_LIBRARY_SUFFIX='.dll' 41602 STATIC_LIBRARY_SUFFIX='.lib' 41603 OBJ_SUFFIX='.obj' 41604 EXE_SUFFIX='.exe' 41605 SET_SHARED_LIBRARY_NAME='' 41606 SET_SHARED_LIBRARY_MAPFILE='' 41607 SET_SHARED_LIBRARY_ORIGIN='' 41608 SET_EXECUTABLE_ORIGIN='' 41609 fi 41610 fi 41611 41612 41613 41614 41615 41616 41617 41618 41619 41620 41621 41622 41623 41624 41625 41626 41627 41628 41629 41630 # The (cross) compiler is now configured, we can now test capabilities 41631 # of the target platform. 41632 41633 41634 41635 ############################################################################### 41636 # 41637 # Setup the opt flags for different compilers 41638 # and different operating systems. 41639 # 41640 41641 # 41642 # NOTE: check for -mstackrealign needs to be below potential addition of -m32 41643 # 41644 if test "x$OPENJDK_TARGET_CPU_BITS" = x32 && test "x$OPENJDK_TARGET_OS" = xmacosx; then 41645 # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned. 41646 # While waiting for a better solution, the current workaround is to use -mstackrealign. 41647 CFLAGS="$CFLAGS -mstackrealign" 41648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5 41649 $as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; } 41650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41651 /* end confdefs.h. */ 41652 int main() { return 0; } 41653 _ACEOF 41654 if ac_fn_cxx_try_link "$LINENO"; then : 41655 41656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41657 $as_echo "yes" >&6; } 41658 41659 else 41660 41661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41662 $as_echo "no" >&6; } 41663 as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5 41664 41665 41666 fi 41667 rm -f core conftest.err conftest.$ac_objext \ 41668 conftest$ac_exeext conftest.$ac_ext 41669 fi 41670 41671 C_FLAG_DEPS="-MMD -MF" 41672 CXX_FLAG_DEPS="-MMD -MF" 41673 41674 case $COMPILER_TYPE in 41675 CC ) 41676 case $COMPILER_NAME in 41677 gcc ) 41678 case $OPENJDK_TARGET_OS in 41679 macosx ) 41680 # On MacOSX we optimize for size, something 41681 # we should do for all platforms? 41682 C_O_FLAG_HI="-Os" 41683 C_O_FLAG_NORM="-Os" 41684 C_O_FLAG_NONE="" 41685 ;; 41686 *) 41687 C_O_FLAG_HI="-O3" 41688 C_O_FLAG_NORM="-O2" 41689 C_O_FLAG_NONE="-O0" 41690 ;; 41691 esac 41692 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41693 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41694 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41695 CFLAGS_DEBUG_SYMBOLS="-g" 41696 CXXFLAGS_DEBUG_SYMBOLS="-g" 41697 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41698 CFLAGS_DEBUG_SYMBOLS="-g1" 41699 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41700 fi 41701 ;; 41702 ossc ) 41703 # 41704 # Forte has different names for this with their C++ compiler... 41705 # 41706 C_FLAG_DEPS="-xMMD -xMF" 41707 CXX_FLAG_DEPS="-xMMD -xMF" 41708 41709 # Extra options used with HIGHEST 41710 # 41711 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 41712 # done with care, there are some assumptions below that need to 41713 # be understood about the use of pointers, and IEEE behavior. 41714 # 41715 # Use non-standard floating point mode (not IEEE 754) 41716 CC_HIGHEST="$CC_HIGHEST -fns" 41717 # Do some simplification of floating point arithmetic (not IEEE 754) 41718 CC_HIGHEST="$CC_HIGHEST -fsimple" 41719 # Use single precision floating point with 'float' 41720 CC_HIGHEST="$CC_HIGHEST -fsingle" 41721 # Assume memory references via basic pointer types do not alias 41722 # (Source with excessing pointer casting and data access with mixed 41723 # pointer types are not recommended) 41724 CC_HIGHEST="$CC_HIGHEST -xalias_level=basic" 41725 # Use intrinsic or inline versions for math/std functions 41726 # (If you expect perfect errno behavior, do not use this) 41727 CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all" 41728 # Loop data dependency optimizations (need -xO3 or higher) 41729 CC_HIGHEST="$CC_HIGHEST -xdepend" 41730 # Pointer parameters to functions do not overlap 41731 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 41732 # If you pass in multiple pointers to the same data, do not use this) 41733 CC_HIGHEST="$CC_HIGHEST -xrestrict" 41734 # Inline some library routines 41735 # (If you expect perfect errno behavior, do not use this) 41736 CC_HIGHEST="$CC_HIGHEST -xlibmil" 41737 # Use optimized math routines 41738 # (If you expect perfect errno behavior, do not use this) 41739 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 41740 #CC_HIGHEST="$CC_HIGHEST -xlibmopt" 41741 41742 if test "x$OPENJDK_TARGET_CPU" = xsparc; then 41743 CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 41744 CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 41745 fi 41746 41747 case $OPENJDK_TARGET_CPU_ARCH in 41748 x86) 41749 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 41750 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41751 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41752 C_O_FLAG_NONE="-xregs=no%frameptr" 41753 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41754 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41755 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41756 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41757 if test "x$OPENJDK_TARGET_CPU" = xx86; then 41758 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41759 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41760 fi 41761 ;; 41762 sparc) 41763 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41764 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41765 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41766 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41767 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41768 C_O_FLAG_NONE="" 41769 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41770 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41771 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41772 CXX_O_FLAG_NONE="" 41773 ;; 41774 esac 41775 41776 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41777 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41778 ;; 41779 xlc ) 41780 C_FLAG_DEPS="-qmakedep=gcc -MF" 41781 CXX_FLAG_DEPS="-qmakedep=gcc -MF" 41782 C_O_FLAG_HIGHEST="-O3" 41783 C_O_FLAG_HI="-O3 -qstrict" 41784 C_O_FLAG_NORM="-O2" 41785 C_O_FLAG_NONE="" 41786 CXX_O_FLAG_HIGHEST="-O3" 41787 CXX_O_FLAG_HI="-O3 -qstrict" 41788 CXX_O_FLAG_NORM="-O2" 41789 CXX_O_FLAG_NONE="" 41790 CFLAGS_DEBUG_SYMBOLS="-g" 41791 CXXFLAGS_DEBUG_SYMBOLS="-g" 41792 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41793 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41794 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41795 ;; 41796 esac 41797 ;; 41798 CL ) 41799 C_O_FLAG_HIGHEST="-O2" 41800 C_O_FLAG_HI="-O1" 41801 C_O_FLAG_NORM="-O1" 41802 C_O_FLAG_NONE="-Od" 41803 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41804 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41805 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41806 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41807 ;; 41808 esac 41809 41810 if test -z "$C_O_FLAG_HIGHEST"; then 41811 C_O_FLAG_HIGHEST="$C_O_FLAG_HI" 41812 fi 41813 41814 if test -z "$CXX_O_FLAG_HIGHEST"; then 41815 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI" 41816 fi 41817 41818 41819 41820 41821 41822 41823 41824 41825 41826 41827 41828 41829 41830 41831 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41833 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41834 fi 41835 41836 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41838 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41839 fi 41840 41841 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41843 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41844 fi 41845 41846 41847 # Check whether --with-extra-cflags was given. 41848 if test "${with_extra_cflags+set}" = set; then : 41849 withval=$with_extra_cflags; 41850 fi 41851 41852 41853 41854 # Check whether --with-extra-cxxflags was given. 41855 if test "${with_extra_cxxflags+set}" = set; then : 41856 withval=$with_extra_cxxflags; 41857 fi 41858 41859 41860 41861 # Check whether --with-extra-ldflags was given. 41862 if test "${with_extra_ldflags+set}" = set; then : 41863 withval=$with_extra_ldflags; 41864 fi 41865 41866 41867 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41868 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41869 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41870 41871 # Hotspot needs these set in their legacy form 41872 LEGACY_EXTRA_CFLAGS=$with_extra_cflags 41873 LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags 41874 LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags 41875 41876 41877 41878 41879 41880 ############################################################################### 41881 # 41882 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41883 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41884 # 41885 case $COMPILER_NAME in 41886 gcc ) 41887 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \ 41888 -pipe \ 41889 -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41890 case $OPENJDK_TARGET_CPU_ARCH in 41891 arm ) 41892 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41893 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41894 ;; 41895 ppc ) 41896 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41897 ;; 41898 * ) 41899 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41900 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41901 ;; 41902 esac 41903 ;; 41904 ossc ) 41905 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41906 case $OPENJDK_TARGET_CPU_ARCH in 41907 x86 ) 41908 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 41909 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 41910 ;; 41911 esac 41912 41913 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 41914 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 41915 41916 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 41917 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 41918 ;; 41919 xlc ) 41920 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41921 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41922 41923 LDFLAGS_JDK="$LDFLAGS_JDK" 41924 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK" 41925 ;; 41926 cl ) 41927 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 41928 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 41929 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 41930 -DWIN32 -DIAL" 41931 case $OPENJDK_TARGET_CPU in 41932 x86 ) 41933 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 41934 ;; 41935 x86_64 ) 41936 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 41937 ;; 41938 esac 41939 ;; 41940 esac 41941 41942 ############################################################################### 41943 41944 # Adjust flags according to debug level. 41945 case $DEBUG_LEVEL in 41946 fastdebug ) 41947 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41948 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41949 C_O_FLAG_HI="$C_O_FLAG_NORM" 41950 C_O_FLAG_NORM="$C_O_FLAG_NORM" 41951 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 41952 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 41953 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41954 ;; 41955 slowdebug ) 41956 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41957 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41958 C_O_FLAG_HI="$C_O_FLAG_NONE" 41959 C_O_FLAG_NORM="$C_O_FLAG_NONE" 41960 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 41961 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 41962 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41963 ;; 41964 esac 41965 41966 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 41967 41968 # The package path is used only on macosx? 41969 PACKAGE_PATH=/opt/local 41970 41971 41972 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 41973 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 41974 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 41975 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 41976 # Note: -Dmacro is the same as #define macro 1 41977 # -Dmacro= is the same as #define macro 41978 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41979 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 41980 else 41981 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 41982 fi 41983 else 41984 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 41985 fi 41986 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41987 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX" 41988 fi 41989 if test "x$OPENJDK_TARGET_OS" = xwindows; then 41990 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS" 41991 fi 41992 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41993 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS" 41994 fi 41995 if test "x$OPENJDK_TARGET_OS" = xaix; then 41996 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DAIX -DPPC64" 41997 fi 41998 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41999 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 42000 # Setting these parameters makes it an error to link to macosx APIs that are 42001 # newer than the given OS version and makes the linked binaries compatible even 42002 # if built on a newer version of the OS. 42003 # The expected format is X.Y.Z 42004 MACOSX_VERSION_MIN=10.7.0 42005 42006 # The macro takes the version with no dots, ex: 1070 42007 # Let the flags variables get resolved in make for easier override on make 42008 # command line. 42009 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42010 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 42011 fi 42012 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42013 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE" 42014 fi 42015 if test "x$DEBUG_LEVEL" = xrelease; then 42016 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 42017 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42018 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 42019 fi 42020 else 42021 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 42022 fi 42023 42024 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 42025 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 42026 42027 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 42028 -I${JDK_OUTPUTDIR}/include \ 42029 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 42030 -I${JDK_TOPDIR}/src/share/javavm/export \ 42031 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 42032 -I${JDK_TOPDIR}/src/share/native/common \ 42033 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 42034 42035 # The shared libraries are compiled using the picflag. 42036 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 42037 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 42038 42039 # Executable flags 42040 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 42041 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 42042 42043 # Now this is odd. The JDK native libraries have to link against libjvm.so 42044 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 42045 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 42046 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 42047 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 42048 # libraries will link to whatever is in memory. Yuck. 42049 # 42050 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 42051 if test "x$COMPILER_NAME" = xcl; then 42052 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 42053 if test "x$OPENJDK_TARGET_CPU" = xx86; then 42054 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 42055 fi 42056 # TODO: make -debug optional "--disable-full-debug-symbols" 42057 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 42058 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 42059 LDFLAGS_JDKLIB_SUFFIX="" 42060 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 42061 LDFLAGS_STACK_SIZE=1048576 42062 else 42063 LDFLAGS_STACK_SIZE=327680 42064 fi 42065 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 42066 else 42067 if test "x$COMPILER_NAME" = xgcc; then 42068 # If this is a --hash-style=gnu system, use --hash-style=both, why? 42069 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 42070 if test -n "$HAS_GNU_HASH"; then 42071 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 42072 fi 42073 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42074 # And since we now know that the linker is gnu, then add -z defs, to forbid 42075 # undefined symbols in object files. 42076 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 42077 if test "x$DEBUG_LEVEL" = "xrelease"; then 42078 # When building release libraries, tell the linker optimize them. 42079 # Should this be supplied to the OSS linker as well? 42080 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 42081 fi 42082 fi 42083 fi 42084 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 42085 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 42086 42087 # On some platforms (mac) the linker warns about non existing -L dirs. 42088 # Add server first if available. Linking aginst client does not always produce the same results. 42089 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 42090 # Default to server for other variants. 42091 if test "x$JVM_VARIANT_SERVER" = xtrue; then 42092 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42093 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 42094 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 42095 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 42096 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 42097 else 42098 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 42099 fi 42100 42101 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 42102 if test "x$COMPILER_NAME" = xossc; then 42103 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 42104 fi 42105 42106 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 42107 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42108 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 42109 fi 42110 fi 42111 42112 42113 42114 42115 42116 42117 42118 42119 42120 42121 42122 42123 42124 42125 42126 # Some Zero and Shark settings. 42127 # ZERO_ARCHFLAG tells the compiler which mode to build for 42128 case "${OPENJDK_TARGET_CPU}" in 42129 s390) 42130 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 42131 ;; 42132 *) 42133 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42134 esac 42135 42136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 42137 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 42138 supports=yes 42139 42140 saved_cflags="$CFLAGS" 42141 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 42142 ac_ext=c 42143 ac_cpp='$CPP $CPPFLAGS' 42144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42146 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42147 42148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42149 /* end confdefs.h. */ 42150 int i; 42151 _ACEOF 42152 if ac_fn_c_try_compile "$LINENO"; then : 42153 42154 else 42155 supports=no 42156 fi 42157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42158 ac_ext=cpp 42159 ac_cpp='$CXXCPP $CPPFLAGS' 42160 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42161 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42162 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42163 42164 CFLAGS="$saved_cflags" 42165 42166 saved_cxxflags="$CXXFLAGS" 42167 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 42168 ac_ext=cpp 42169 ac_cpp='$CXXCPP $CPPFLAGS' 42170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42173 42174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42175 /* end confdefs.h. */ 42176 int i; 42177 _ACEOF 42178 if ac_fn_cxx_try_compile "$LINENO"; then : 42179 42180 else 42181 supports=no 42182 fi 42183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42184 ac_ext=cpp 42185 ac_cpp='$CXXCPP $CPPFLAGS' 42186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42189 42190 CXXFLAGS="$saved_cxxflags" 42191 42192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42193 $as_echo "$supports" >&6; } 42194 if test "x$supports" = "xyes" ; then 42195 : 42196 else 42197 ZERO_ARCHFLAG="" 42198 fi 42199 42200 42201 42202 # Check that the compiler supports -mX (or -qX on AIX) flags 42203 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 42204 42205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 42206 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 42207 supports=yes 42208 42209 saved_cflags="$CFLAGS" 42210 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42211 ac_ext=c 42212 ac_cpp='$CPP $CPPFLAGS' 42213 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42214 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42215 ac_compiler_gnu=$ac_cv_c_compiler_gnu 42216 42217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42218 /* end confdefs.h. */ 42219 int i; 42220 _ACEOF 42221 if ac_fn_c_try_compile "$LINENO"; then : 42222 42223 else 42224 supports=no 42225 fi 42226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42227 ac_ext=cpp 42228 ac_cpp='$CXXCPP $CPPFLAGS' 42229 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42230 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42231 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42232 42233 CFLAGS="$saved_cflags" 42234 42235 saved_cxxflags="$CXXFLAGS" 42236 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 42237 ac_ext=cpp 42238 ac_cpp='$CXXCPP $CPPFLAGS' 42239 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42240 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42241 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42242 42243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42244 /* end confdefs.h. */ 42245 int i; 42246 _ACEOF 42247 if ac_fn_cxx_try_compile "$LINENO"; then : 42248 42249 else 42250 supports=no 42251 fi 42252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 42253 ac_ext=cpp 42254 ac_cpp='$CXXCPP $CPPFLAGS' 42255 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 42256 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 42257 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 42258 42259 CXXFLAGS="$saved_cxxflags" 42260 42261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 42262 $as_echo "$supports" >&6; } 42263 if test "x$supports" = "xyes" ; then 42264 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 42265 else 42266 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 42267 fi 42268 42269 42270 42271 42272 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed in executable.' 42273 USING_BROKEN_SUSE_LD=no 42274 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$GCC" = xyes; then 42275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 42276 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 42277 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 42278 echo "int main() { }" > main.c 42279 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 42280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42281 $as_echo "no" >&6; } 42282 USING_BROKEN_SUSE_LD=no 42283 else 42284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42285 $as_echo "yes" >&6; } 42286 USING_BROKEN_SUSE_LD=yes 42287 fi 42288 rm -rf version-script.map main.c a.out 42289 fi 42290 42291 42292 42293 # Setup debug symbols (need objcopy from the toolchain for that) 42294 42295 # 42296 # ENABLE_DEBUG_SYMBOLS 42297 # This must be done after the toolchain is setup, since we're looking at objcopy. 42298 # 42299 # Check whether --enable-debug-symbols was given. 42300 if test "${enable_debug_symbols+set}" = set; then : 42301 enableval=$enable_debug_symbols; 42302 fi 42303 42304 42305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42306 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42307 42308 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42309 # explicit enabling of enable-debug-symbols and can't find objcopy 42310 # this is an error 42311 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42312 fi 42313 42314 if test "x$enable_debug_symbols" = "xyes"; then 42315 ENABLE_DEBUG_SYMBOLS=true 42316 elif test "x$enable_debug_symbols" = "xno"; then 42317 ENABLE_DEBUG_SYMBOLS=false 42318 else 42319 # Default is on if objcopy is found 42320 if test "x$OBJCOPY" != x; then 42321 ENABLE_DEBUG_SYMBOLS=true 42322 # MacOS X and Windows don't use objcopy but default is on for those OSes 42323 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42324 ENABLE_DEBUG_SYMBOLS=true 42325 else 42326 ENABLE_DEBUG_SYMBOLS=false 42327 fi 42328 fi 42329 42330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42331 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42332 42333 # 42334 # ZIP_DEBUGINFO_FILES 42335 # 42336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42337 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42338 # Check whether --enable-zip-debug-info was given. 42339 if test "${enable_zip_debug_info+set}" = set; then : 42340 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42341 else 42342 enable_zip_debug_info="yes" 42343 fi 42344 42345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42346 $as_echo "${enable_zip_debug_info}" >&6; } 42347 42348 if test "x${enable_zip_debug_info}" = "xno"; then 42349 ZIP_DEBUGINFO_FILES=false 42350 else 42351 ZIP_DEBUGINFO_FILES=true 42352 fi 42353 42354 42355 42356 42357 42358 42359 42360 ############################################################################### 42361 # 42362 # Check dependencies for external and internal libraries. 42363 # 42364 ############################################################################### 42365 42366 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42367 42368 # When using cygwin or msys, we need a wrapper binary that renames 42369 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42370 # @files and rewrites these too! This wrapper binary is 42371 # called fixpath. 42372 FIXPATH= 42373 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42375 $as_echo_n "checking if fixpath can be created... " >&6; } 42376 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42377 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42378 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42379 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42380 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42381 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42382 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42383 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42384 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42385 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42386 42387 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42388 # @ was chosen as separator to minimize risk of other tools messing around with it 42389 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42390 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42391 42392 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42393 fi 42394 rm -f $OUTPUT_ROOT/fixpath* 42395 cd $OUTPUT_ROOT 42396 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42397 cd $CURDIR 42398 42399 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42401 $as_echo "no" >&6; } 42402 cat $OUTPUT_ROOT/fixpath1.log 42403 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42404 fi 42405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42406 $as_echo "yes" >&6; } 42407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42408 $as_echo_n "checking if fixpath.exe works... " >&6; } 42409 cd $OUTPUT_ROOT 42410 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42411 cd $CURDIR 42412 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42414 $as_echo "no" >&6; } 42415 cat $OUTPUT_ROOT/fixpath2.log 42416 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42417 fi 42418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42419 $as_echo "yes" >&6; } 42420 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42421 fi 42422 42423 42424 42425 42426 42427 42428 ############################################################################### 42429 # 42430 # OS specific settings that we never will need to probe. 42431 # 42432 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42434 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42435 PULSE_NOT_NEEDED=yes 42436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42437 $as_echo "pulse" >&6; } 42438 fi 42439 42440 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42442 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42443 ALSA_NOT_NEEDED=yes 42444 PULSE_NOT_NEEDED=yes 42445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42446 $as_echo "alsa pulse" >&6; } 42447 fi 42448 42449 if test "x$OPENJDK_TARGET_OS" = xaix; then 42450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42451 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42452 ALSA_NOT_NEEDED=yes 42453 PULSE_NOT_NEEDED=yes 42454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42455 $as_echo "alsa pulse" >&6; } 42456 fi 42457 42458 42459 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42461 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42462 CUPS_NOT_NEEDED=yes 42463 ALSA_NOT_NEEDED=yes 42464 PULSE_NOT_NEEDED=yes 42465 X11_NOT_NEEDED=yes 42466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42467 $as_echo "alsa cups pulse x11" >&6; } 42468 fi 42469 42470 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42472 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42473 ALSA_NOT_NEEDED=yes 42474 PULSE_NOT_NEEDED=yes 42475 X11_NOT_NEEDED=yes 42476 # If the java runtime framework is disabled, then we need X11. 42477 # This will be adjusted below. 42478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42479 $as_echo "alsa pulse x11" >&6; } 42480 fi 42481 42482 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42484 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42485 ALSA_NOT_NEEDED=yes 42486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42487 $as_echo "alsa" >&6; } 42488 fi 42489 42490 if test "x$OPENJDK" = "xfalse"; then 42491 FREETYPE_NOT_NEEDED=yes 42492 fi 42493 42494 if test "x$SUPPORT_HEADFUL" = xno; then 42495 X11_NOT_NEEDED=yes 42496 fi 42497 42498 ############################################################################### 42499 # 42500 # Check for MacOSX support for OpenJDK. 42501 # 42502 42503 42504 # Check whether --enable-macosx-runtime-support was given. 42505 if test "${enable_macosx_runtime_support+set}" = set; then : 42506 enableval=$enable_macosx_runtime_support; 42507 fi 42508 42509 if test "x$enable_macosx_runtime_support" != x; then 42510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42511 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42512 fi 42513 42514 42515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5 42516 $as_echo_n "checking for Mac OS X Java Framework... " >&6; } 42517 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 42518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5 42519 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; } 42520 else 42521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42522 $as_echo "no" >&6; } 42523 fi 42524 42525 42526 42527 ############################################################################### 42528 # 42529 # Check for X Windows 42530 # 42531 42532 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42533 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42534 # --x-libraries for the sysroot, if that seems to be correct. 42535 if test "x$SYS_ROOT" != "x/"; then 42536 if test "x$x_includes" = xNONE; then 42537 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then 42538 x_includes="$SYS_ROOT/usr/X11R6/include" 42539 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then 42540 x_includes="$SYS_ROOT/usr/include" 42541 fi 42542 fi 42543 if test "x$x_libraries" = xNONE; then 42544 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then 42545 x_libraries="$SYS_ROOT/usr/X11R6/lib" 42546 elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42547 x_libraries="$SYS_ROOT/usr/lib64" 42548 elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then 42549 x_libraries="$SYS_ROOT/usr/lib" 42550 fi 42551 fi 42552 fi 42553 42554 # Now let autoconf do it's magic 42555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42556 $as_echo_n "checking for X... " >&6; } 42557 42558 42559 # Check whether --with-x was given. 42560 if test "${with_x+set}" = set; then : 42561 withval=$with_x; 42562 fi 42563 42564 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42565 if test "x$with_x" = xno; then 42566 # The user explicitly disabled X. 42567 have_x=disabled 42568 else 42569 case $x_includes,$x_libraries in #( 42570 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42571 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42572 $as_echo_n "(cached) " >&6 42573 else 42574 # One or both of the vars are not set, and there is no cached value. 42575 ac_x_includes=no ac_x_libraries=no 42576 rm -f -r conftest.dir 42577 if mkdir conftest.dir; then 42578 cd conftest.dir 42579 cat >Imakefile <<'_ACEOF' 42580 incroot: 42581 @echo incroot='${INCROOT}' 42582 usrlibdir: 42583 @echo usrlibdir='${USRLIBDIR}' 42584 libdir: 42585 @echo libdir='${LIBDIR}' 42586 _ACEOF 42587 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42588 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42589 for ac_var in incroot usrlibdir libdir; do 42590 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42591 done 42592 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42593 for ac_extension in a so sl dylib la dll; do 42594 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42595 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42596 ac_im_usrlibdir=$ac_im_libdir; break 42597 fi 42598 done 42599 # Screen out bogus values from the imake configuration. They are 42600 # bogus both because they are the default anyway, and because 42601 # using them would break gcc on systems where it needs fixed includes. 42602 case $ac_im_incroot in 42603 /usr/include) ac_x_includes= ;; 42604 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42605 esac 42606 case $ac_im_usrlibdir in 42607 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42608 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42609 esac 42610 fi 42611 cd .. 42612 rm -f -r conftest.dir 42613 fi 42614 42615 # Standard set of common directories for X headers. 42616 # Check X11 before X11Rn because it is often a symlink to the current release. 42617 ac_x_header_dirs=' 42618 /usr/X11/include 42619 /usr/X11R7/include 42620 /usr/X11R6/include 42621 /usr/X11R5/include 42622 /usr/X11R4/include 42623 42624 /usr/include/X11 42625 /usr/include/X11R7 42626 /usr/include/X11R6 42627 /usr/include/X11R5 42628 /usr/include/X11R4 42629 42630 /usr/local/X11/include 42631 /usr/local/X11R7/include 42632 /usr/local/X11R6/include 42633 /usr/local/X11R5/include 42634 /usr/local/X11R4/include 42635 42636 /usr/local/include/X11 42637 /usr/local/include/X11R7 42638 /usr/local/include/X11R6 42639 /usr/local/include/X11R5 42640 /usr/local/include/X11R4 42641 42642 /usr/X386/include 42643 /usr/x386/include 42644 /usr/XFree86/include/X11 42645 42646 /usr/include 42647 /usr/local/include 42648 /usr/unsupported/include 42649 /usr/athena/include 42650 /usr/local/x11r5/include 42651 /usr/lpp/Xamples/include 42652 42653 /usr/openwin/include 42654 /usr/openwin/share/include' 42655 42656 if test "$ac_x_includes" = no; then 42657 # Guess where to find include files, by looking for Xlib.h. 42658 # First, try using that file with no special directory specified. 42659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42660 /* end confdefs.h. */ 42661 #include <X11/Xlib.h> 42662 _ACEOF 42663 if ac_fn_cxx_try_cpp "$LINENO"; then : 42664 # We can compile using X headers with no special include directory. 42665 ac_x_includes= 42666 else 42667 for ac_dir in $ac_x_header_dirs; do 42668 if test -r "$ac_dir/X11/Xlib.h"; then 42669 ac_x_includes=$ac_dir 42670 break 42671 fi 42672 done 42673 fi 42674 rm -f conftest.err conftest.i conftest.$ac_ext 42675 fi # $ac_x_includes = no 42676 42677 if test "$ac_x_libraries" = no; then 42678 # Check for the libraries. 42679 # See if we find them without any special options. 42680 # Don't add to $LIBS permanently. 42681 ac_save_LIBS=$LIBS 42682 LIBS="-lX11 $LIBS" 42683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42684 /* end confdefs.h. */ 42685 #include <X11/Xlib.h> 42686 int 42687 main () 42688 { 42689 XrmInitialize () 42690 ; 42691 return 0; 42692 } 42693 _ACEOF 42694 if ac_fn_cxx_try_link "$LINENO"; then : 42695 LIBS=$ac_save_LIBS 42696 # We can link X programs with no special library path. 42697 ac_x_libraries= 42698 else 42699 LIBS=$ac_save_LIBS 42700 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42701 do 42702 # Don't even attempt the hair of trying to link an X program! 42703 for ac_extension in a so sl dylib la dll; do 42704 if test -r "$ac_dir/libX11.$ac_extension"; then 42705 ac_x_libraries=$ac_dir 42706 break 2 42707 fi 42708 done 42709 done 42710 fi 42711 rm -f core conftest.err conftest.$ac_objext \ 42712 conftest$ac_exeext conftest.$ac_ext 42713 fi # $ac_x_libraries = no 42714 42715 case $ac_x_includes,$ac_x_libraries in #( 42716 no,* | *,no | *\'*) 42717 # Didn't find X, or a directory has "'" in its name. 42718 ac_cv_have_x="have_x=no";; #( 42719 *) 42720 # Record where we found X for the cache. 42721 ac_cv_have_x="have_x=yes\ 42722 ac_x_includes='$ac_x_includes'\ 42723 ac_x_libraries='$ac_x_libraries'" 42724 esac 42725 fi 42726 ;; #( 42727 *) have_x=yes;; 42728 esac 42729 eval "$ac_cv_have_x" 42730 fi # $with_x != no 42731 42732 if test "$have_x" != yes; then 42733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42734 $as_echo "$have_x" >&6; } 42735 no_x=yes 42736 else 42737 # If each of the values was on the command line, it overrides each guess. 42738 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42739 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42740 # Update the cache value to reflect the command line values. 42741 ac_cv_have_x="have_x=yes\ 42742 ac_x_includes='$x_includes'\ 42743 ac_x_libraries='$x_libraries'" 42744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42745 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42746 fi 42747 42748 if test "$no_x" = yes; then 42749 # Not all programs may use this symbol, but it does not hurt to define it. 42750 42751 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42752 42753 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42754 else 42755 if test -n "$x_includes"; then 42756 X_CFLAGS="$X_CFLAGS -I$x_includes" 42757 fi 42758 42759 # It would also be nice to do this for all -L options, not just this one. 42760 if test -n "$x_libraries"; then 42761 X_LIBS="$X_LIBS -L$x_libraries" 42762 # For Solaris; some versions of Sun CC require a space after -R and 42763 # others require no space. Words are not sufficient . . . . 42764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42765 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 42766 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 42767 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 42768 ac_cxx_werror_flag=yes 42769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42770 /* end confdefs.h. */ 42771 42772 int 42773 main () 42774 { 42775 42776 ; 42777 return 0; 42778 } 42779 _ACEOF 42780 if ac_fn_cxx_try_link "$LINENO"; then : 42781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42782 $as_echo "no" >&6; } 42783 X_LIBS="$X_LIBS -R$x_libraries" 42784 else 42785 LIBS="$ac_xsave_LIBS -R $x_libraries" 42786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42787 /* end confdefs.h. */ 42788 42789 int 42790 main () 42791 { 42792 42793 ; 42794 return 0; 42795 } 42796 _ACEOF 42797 if ac_fn_cxx_try_link "$LINENO"; then : 42798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42799 $as_echo "yes" >&6; } 42800 X_LIBS="$X_LIBS -R $x_libraries" 42801 else 42802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 42803 $as_echo "neither works" >&6; } 42804 fi 42805 rm -f core conftest.err conftest.$ac_objext \ 42806 conftest$ac_exeext conftest.$ac_ext 42807 fi 42808 rm -f core conftest.err conftest.$ac_objext \ 42809 conftest$ac_exeext conftest.$ac_ext 42810 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 42811 LIBS=$ac_xsave_LIBS 42812 fi 42813 42814 # Check for system-dependent libraries X programs must link with. 42815 # Do this before checking for the system-independent R6 libraries 42816 # (-lICE), since we may need -lsocket or whatever for X linking. 42817 42818 if test "$ISC" = yes; then 42819 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 42820 else 42821 # Martyn Johnson says this is needed for Ultrix, if the X 42822 # libraries were built with DECnet support. And Karl Berry says 42823 # the Alpha needs dnet_stub (dnet does not exist). 42824 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 42825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42826 /* end confdefs.h. */ 42827 42828 /* Override any GCC internal prototype to avoid an error. 42829 Use char because int might match the return type of a GCC 42830 builtin and then its argument prototype would still apply. */ 42831 #ifdef __cplusplus 42832 extern "C" 42833 #endif 42834 char XOpenDisplay (); 42835 int 42836 main () 42837 { 42838 return XOpenDisplay (); 42839 ; 42840 return 0; 42841 } 42842 _ACEOF 42843 if ac_fn_cxx_try_link "$LINENO"; then : 42844 42845 else 42846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 42847 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 42848 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 42849 $as_echo_n "(cached) " >&6 42850 else 42851 ac_check_lib_save_LIBS=$LIBS 42852 LIBS="-ldnet $LIBS" 42853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42854 /* end confdefs.h. */ 42855 42856 /* Override any GCC internal prototype to avoid an error. 42857 Use char because int might match the return type of a GCC 42858 builtin and then its argument prototype would still apply. */ 42859 #ifdef __cplusplus 42860 extern "C" 42861 #endif 42862 char dnet_ntoa (); 42863 int 42864 main () 42865 { 42866 return dnet_ntoa (); 42867 ; 42868 return 0; 42869 } 42870 _ACEOF 42871 if ac_fn_cxx_try_link "$LINENO"; then : 42872 ac_cv_lib_dnet_dnet_ntoa=yes 42873 else 42874 ac_cv_lib_dnet_dnet_ntoa=no 42875 fi 42876 rm -f core conftest.err conftest.$ac_objext \ 42877 conftest$ac_exeext conftest.$ac_ext 42878 LIBS=$ac_check_lib_save_LIBS 42879 fi 42880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 42881 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 42882 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 42883 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 42884 fi 42885 42886 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 42887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 42888 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 42889 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 42890 $as_echo_n "(cached) " >&6 42891 else 42892 ac_check_lib_save_LIBS=$LIBS 42893 LIBS="-ldnet_stub $LIBS" 42894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42895 /* end confdefs.h. */ 42896 42897 /* Override any GCC internal prototype to avoid an error. 42898 Use char because int might match the return type of a GCC 42899 builtin and then its argument prototype would still apply. */ 42900 #ifdef __cplusplus 42901 extern "C" 42902 #endif 42903 char dnet_ntoa (); 42904 int 42905 main () 42906 { 42907 return dnet_ntoa (); 42908 ; 42909 return 0; 42910 } 42911 _ACEOF 42912 if ac_fn_cxx_try_link "$LINENO"; then : 42913 ac_cv_lib_dnet_stub_dnet_ntoa=yes 42914 else 42915 ac_cv_lib_dnet_stub_dnet_ntoa=no 42916 fi 42917 rm -f core conftest.err conftest.$ac_objext \ 42918 conftest$ac_exeext conftest.$ac_ext 42919 LIBS=$ac_check_lib_save_LIBS 42920 fi 42921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 42922 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 42923 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 42924 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 42925 fi 42926 42927 fi 42928 fi 42929 rm -f core conftest.err conftest.$ac_objext \ 42930 conftest$ac_exeext conftest.$ac_ext 42931 LIBS="$ac_xsave_LIBS" 42932 42933 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 42934 # to get the SysV transport functions. 42935 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 42936 # needs -lnsl. 42937 # The nsl library prevents programs from opening the X display 42938 # on Irix 5.2, according to T.E. Dickey. 42939 # The functions gethostbyname, getservbyname, and inet_addr are 42940 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 42941 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 42942 if test "x$ac_cv_func_gethostbyname" = xyes; then : 42943 42944 fi 42945 42946 if test $ac_cv_func_gethostbyname = no; then 42947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 42948 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 42949 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 42950 $as_echo_n "(cached) " >&6 42951 else 42952 ac_check_lib_save_LIBS=$LIBS 42953 LIBS="-lnsl $LIBS" 42954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42955 /* end confdefs.h. */ 42956 42957 /* Override any GCC internal prototype to avoid an error. 42958 Use char because int might match the return type of a GCC 42959 builtin and then its argument prototype would still apply. */ 42960 #ifdef __cplusplus 42961 extern "C" 42962 #endif 42963 char gethostbyname (); 42964 int 42965 main () 42966 { 42967 return gethostbyname (); 42968 ; 42969 return 0; 42970 } 42971 _ACEOF 42972 if ac_fn_cxx_try_link "$LINENO"; then : 42973 ac_cv_lib_nsl_gethostbyname=yes 42974 else 42975 ac_cv_lib_nsl_gethostbyname=no 42976 fi 42977 rm -f core conftest.err conftest.$ac_objext \ 42978 conftest$ac_exeext conftest.$ac_ext 42979 LIBS=$ac_check_lib_save_LIBS 42980 fi 42981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 42982 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 42983 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 42984 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 42985 fi 42986 42987 if test $ac_cv_lib_nsl_gethostbyname = no; then 42988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 42989 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 42990 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 42991 $as_echo_n "(cached) " >&6 42992 else 42993 ac_check_lib_save_LIBS=$LIBS 42994 LIBS="-lbsd $LIBS" 42995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42996 /* end confdefs.h. */ 42997 42998 /* Override any GCC internal prototype to avoid an error. 42999 Use char because int might match the return type of a GCC 43000 builtin and then its argument prototype would still apply. */ 43001 #ifdef __cplusplus 43002 extern "C" 43003 #endif 43004 char gethostbyname (); 43005 int 43006 main () 43007 { 43008 return gethostbyname (); 43009 ; 43010 return 0; 43011 } 43012 _ACEOF 43013 if ac_fn_cxx_try_link "$LINENO"; then : 43014 ac_cv_lib_bsd_gethostbyname=yes 43015 else 43016 ac_cv_lib_bsd_gethostbyname=no 43017 fi 43018 rm -f core conftest.err conftest.$ac_objext \ 43019 conftest$ac_exeext conftest.$ac_ext 43020 LIBS=$ac_check_lib_save_LIBS 43021 fi 43022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 43023 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 43024 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 43025 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 43026 fi 43027 43028 fi 43029 fi 43030 43031 # lieder@skyler.mavd.honeywell.com says without -lsocket, 43032 # socket/setsockopt and other routines are undefined under SCO ODT 43033 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 43034 # on later versions), says Simon Leinen: it contains gethostby* 43035 # variants that don't use the name server (or something). -lsocket 43036 # must be given before -lnsl if both are needed. We assume that 43037 # if connect needs -lnsl, so does gethostbyname. 43038 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 43039 if test "x$ac_cv_func_connect" = xyes; then : 43040 43041 fi 43042 43043 if test $ac_cv_func_connect = no; then 43044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 43045 $as_echo_n "checking for connect in -lsocket... " >&6; } 43046 if ${ac_cv_lib_socket_connect+:} false; then : 43047 $as_echo_n "(cached) " >&6 43048 else 43049 ac_check_lib_save_LIBS=$LIBS 43050 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 43051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43052 /* end confdefs.h. */ 43053 43054 /* Override any GCC internal prototype to avoid an error. 43055 Use char because int might match the return type of a GCC 43056 builtin and then its argument prototype would still apply. */ 43057 #ifdef __cplusplus 43058 extern "C" 43059 #endif 43060 char connect (); 43061 int 43062 main () 43063 { 43064 return connect (); 43065 ; 43066 return 0; 43067 } 43068 _ACEOF 43069 if ac_fn_cxx_try_link "$LINENO"; then : 43070 ac_cv_lib_socket_connect=yes 43071 else 43072 ac_cv_lib_socket_connect=no 43073 fi 43074 rm -f core conftest.err conftest.$ac_objext \ 43075 conftest$ac_exeext conftest.$ac_ext 43076 LIBS=$ac_check_lib_save_LIBS 43077 fi 43078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 43079 $as_echo "$ac_cv_lib_socket_connect" >&6; } 43080 if test "x$ac_cv_lib_socket_connect" = xyes; then : 43081 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 43082 fi 43083 43084 fi 43085 43086 # Guillermo Gomez says -lposix is necessary on A/UX. 43087 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 43088 if test "x$ac_cv_func_remove" = xyes; then : 43089 43090 fi 43091 43092 if test $ac_cv_func_remove = no; then 43093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 43094 $as_echo_n "checking for remove in -lposix... " >&6; } 43095 if ${ac_cv_lib_posix_remove+:} false; then : 43096 $as_echo_n "(cached) " >&6 43097 else 43098 ac_check_lib_save_LIBS=$LIBS 43099 LIBS="-lposix $LIBS" 43100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43101 /* end confdefs.h. */ 43102 43103 /* Override any GCC internal prototype to avoid an error. 43104 Use char because int might match the return type of a GCC 43105 builtin and then its argument prototype would still apply. */ 43106 #ifdef __cplusplus 43107 extern "C" 43108 #endif 43109 char remove (); 43110 int 43111 main () 43112 { 43113 return remove (); 43114 ; 43115 return 0; 43116 } 43117 _ACEOF 43118 if ac_fn_cxx_try_link "$LINENO"; then : 43119 ac_cv_lib_posix_remove=yes 43120 else 43121 ac_cv_lib_posix_remove=no 43122 fi 43123 rm -f core conftest.err conftest.$ac_objext \ 43124 conftest$ac_exeext conftest.$ac_ext 43125 LIBS=$ac_check_lib_save_LIBS 43126 fi 43127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 43128 $as_echo "$ac_cv_lib_posix_remove" >&6; } 43129 if test "x$ac_cv_lib_posix_remove" = xyes; then : 43130 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 43131 fi 43132 43133 fi 43134 43135 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 43136 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 43137 if test "x$ac_cv_func_shmat" = xyes; then : 43138 43139 fi 43140 43141 if test $ac_cv_func_shmat = no; then 43142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 43143 $as_echo_n "checking for shmat in -lipc... " >&6; } 43144 if ${ac_cv_lib_ipc_shmat+:} false; then : 43145 $as_echo_n "(cached) " >&6 43146 else 43147 ac_check_lib_save_LIBS=$LIBS 43148 LIBS="-lipc $LIBS" 43149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43150 /* end confdefs.h. */ 43151 43152 /* Override any GCC internal prototype to avoid an error. 43153 Use char because int might match the return type of a GCC 43154 builtin and then its argument prototype would still apply. */ 43155 #ifdef __cplusplus 43156 extern "C" 43157 #endif 43158 char shmat (); 43159 int 43160 main () 43161 { 43162 return shmat (); 43163 ; 43164 return 0; 43165 } 43166 _ACEOF 43167 if ac_fn_cxx_try_link "$LINENO"; then : 43168 ac_cv_lib_ipc_shmat=yes 43169 else 43170 ac_cv_lib_ipc_shmat=no 43171 fi 43172 rm -f core conftest.err conftest.$ac_objext \ 43173 conftest$ac_exeext conftest.$ac_ext 43174 LIBS=$ac_check_lib_save_LIBS 43175 fi 43176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 43177 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 43178 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 43179 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 43180 fi 43181 43182 fi 43183 fi 43184 43185 # Check for libraries that X11R6 Xt/Xaw programs need. 43186 ac_save_LDFLAGS=$LDFLAGS 43187 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 43188 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 43189 # check for ICE first), but we must link in the order -lSM -lICE or 43190 # we get undefined symbols. So assume we have SM if we have ICE. 43191 # These have to be linked with before -lX11, unlike the other 43192 # libraries we check for below, so use a different variable. 43193 # John Interrante, Karl Berry 43194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 43195 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 43196 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 43197 $as_echo_n "(cached) " >&6 43198 else 43199 ac_check_lib_save_LIBS=$LIBS 43200 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 43201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 43202 /* end confdefs.h. */ 43203 43204 /* Override any GCC internal prototype to avoid an error. 43205 Use char because int might match the return type of a GCC 43206 builtin and then its argument prototype would still apply. */ 43207 #ifdef __cplusplus 43208 extern "C" 43209 #endif 43210 char IceConnectionNumber (); 43211 int 43212 main () 43213 { 43214 return IceConnectionNumber (); 43215 ; 43216 return 0; 43217 } 43218 _ACEOF 43219 if ac_fn_cxx_try_link "$LINENO"; then : 43220 ac_cv_lib_ICE_IceConnectionNumber=yes 43221 else 43222 ac_cv_lib_ICE_IceConnectionNumber=no 43223 fi 43224 rm -f core conftest.err conftest.$ac_objext \ 43225 conftest$ac_exeext conftest.$ac_ext 43226 LIBS=$ac_check_lib_save_LIBS 43227 fi 43228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 43229 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 43230 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 43231 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 43232 fi 43233 43234 LDFLAGS=$ac_save_LDFLAGS 43235 43236 fi 43237 43238 43239 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 43240 # this doesn't make sense so we remove it. 43241 if test "x$COMPILE_TYPE" = xcross; then 43242 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 43243 fi 43244 43245 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 43246 43247 # Print a helpful message on how to acquire the necessary build dependency. 43248 # x11 is the help tag: freetype, cups, pulse, alsa etc 43249 MISSING_DEPENDENCY=x11 43250 43251 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43252 cygwin_help $MISSING_DEPENDENCY 43253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43254 msys_help $MISSING_DEPENDENCY 43255 else 43256 PKGHANDLER_COMMAND= 43257 43258 case $PKGHANDLER in 43259 apt-get) 43260 apt_help $MISSING_DEPENDENCY ;; 43261 yum) 43262 yum_help $MISSING_DEPENDENCY ;; 43263 port) 43264 port_help $MISSING_DEPENDENCY ;; 43265 pkgutil) 43266 pkgutil_help $MISSING_DEPENDENCY ;; 43267 pkgadd) 43268 pkgadd_help $MISSING_DEPENDENCY ;; 43269 esac 43270 43271 if test "x$PKGHANDLER_COMMAND" != x; then 43272 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43273 fi 43274 fi 43275 43276 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 43277 fi 43278 43279 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 43280 OPENWIN_HOME="/usr/openwin" 43281 fi 43282 43283 43284 43285 # 43286 # Weird Sol10 something check...TODO change to try compile 43287 # 43288 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 43289 if test "`uname -r`" = "5.10"; then 43290 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 43291 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43292 fi 43293 fi 43294 fi 43295 43296 ac_ext=c 43297 ac_cpp='$CPP $CPPFLAGS' 43298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43300 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43301 43302 OLD_CFLAGS="$CFLAGS" 43303 CFLAGS="$CFLAGS $X_CFLAGS" 43304 43305 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43306 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43307 do : 43308 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43309 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43310 # include <X11/Xlib.h> 43311 # include <X11/Xutil.h> 43312 43313 43314 " 43315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43316 cat >>confdefs.h <<_ACEOF 43317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43318 _ACEOF 43319 X11_A_OK=yes 43320 else 43321 X11_A_OK=no; break 43322 fi 43323 43324 done 43325 43326 43327 CFLAGS="$OLD_CFLAGS" 43328 ac_ext=cpp 43329 ac_cpp='$CXXCPP $CPPFLAGS' 43330 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43331 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43332 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43333 43334 43335 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43336 43337 # Print a helpful message on how to acquire the necessary build dependency. 43338 # x11 is the help tag: freetype, cups, pulse, alsa etc 43339 MISSING_DEPENDENCY=x11 43340 43341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43342 cygwin_help $MISSING_DEPENDENCY 43343 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43344 msys_help $MISSING_DEPENDENCY 43345 else 43346 PKGHANDLER_COMMAND= 43347 43348 case $PKGHANDLER in 43349 apt-get) 43350 apt_help $MISSING_DEPENDENCY ;; 43351 yum) 43352 yum_help $MISSING_DEPENDENCY ;; 43353 port) 43354 port_help $MISSING_DEPENDENCY ;; 43355 pkgutil) 43356 pkgutil_help $MISSING_DEPENDENCY ;; 43357 pkgadd) 43358 pkgadd_help $MISSING_DEPENDENCY ;; 43359 esac 43360 43361 if test "x$PKGHANDLER_COMMAND" != x; then 43362 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43363 fi 43364 fi 43365 43366 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43367 fi 43368 43369 43370 43371 43372 43373 43374 ############################################################################### 43375 # 43376 # The common unix printing system cups is used to print from java. 43377 # 43378 43379 # Check whether --with-cups was given. 43380 if test "${with_cups+set}" = set; then : 43381 withval=$with_cups; 43382 fi 43383 43384 43385 # Check whether --with-cups-include was given. 43386 if test "${with_cups_include+set}" = set; then : 43387 withval=$with_cups_include; 43388 fi 43389 43390 43391 if test "x$CUPS_NOT_NEEDED" = xyes; then 43392 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43394 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43395 fi 43396 CUPS_CFLAGS= 43397 else 43398 CUPS_FOUND=no 43399 43400 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43401 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43402 fi 43403 43404 if test "x${with_cups}" != x; then 43405 CUPS_CFLAGS="-I${with_cups}/include" 43406 CUPS_FOUND=yes 43407 fi 43408 if test "x${with_cups_include}" != x; then 43409 CUPS_CFLAGS="-I${with_cups_include}" 43410 CUPS_FOUND=yes 43411 fi 43412 if test "x$CUPS_FOUND" = xno; then 43413 43414 43415 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43416 # Source the builddeps file again, to make sure it uses the latest variables! 43417 . $builddepsfile 43418 # Look for a target and build machine specific resource! 43419 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43420 if test "x$resource" = x; then 43421 # Ok, lets instead look for a target specific resource 43422 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43423 fi 43424 if test "x$resource" = x; then 43425 # Ok, lets instead look for a build specific resource 43426 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43427 fi 43428 if test "x$resource" = x; then 43429 # Ok, lets instead look for a generic resource 43430 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43431 resource=${builddep_cups} 43432 fi 43433 if test "x$resource" != x; then 43434 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43435 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43436 # If the resource in the builddeps.conf file is an existing directory, 43437 # for example /java/linux/cups 43438 if test -d ${resource}; then 43439 depdir=${resource} 43440 else 43441 43442 # cups is for example mymodule 43443 # $resource is for example libs/general/libmymod_1_2_3.zip 43444 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43445 # $with_builddeps_dir is for example /localhome/builddeps 43446 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43447 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43448 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43449 filename=`basename $resource` 43450 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43451 filebase=${filename%%.*} 43452 extension=${filename#*.} 43453 installdir=$with_builddeps_dir/$filebase 43454 if test ! -f $installdir/$filename.unpacked; then 43455 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43456 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43457 if test ! -d $installdir; then 43458 mkdir -p $installdir 43459 fi 43460 if test ! -d $installdir; then 43461 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43462 fi 43463 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43464 touch $tmpfile 43465 if test ! -f $tmpfile; then 43466 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43467 fi 43468 43469 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43470 # $tmpfile is the local file name for the downloaded file. 43471 VALID_TOOL=no 43472 if test "x$BDEPS_FTP" = xwget; then 43473 VALID_TOOL=yes 43474 wget -O $tmpfile $with_builddeps_server/$resource 43475 fi 43476 if test "x$BDEPS_FTP" = xlftp; then 43477 VALID_TOOL=yes 43478 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43479 fi 43480 if test "x$BDEPS_FTP" = xftp; then 43481 VALID_TOOL=yes 43482 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43483 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43484 FTPUSERPWD=${FTPSERVER%%@*} 43485 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43486 FTPUSER=${userpwd%%:*} 43487 FTPPWD=${userpwd#*@} 43488 FTPSERVER=${FTPSERVER#*@} 43489 else 43490 FTPUSER=ftp 43491 FTPPWD=ftp 43492 fi 43493 # the "pass" command does not work on some 43494 # ftp clients (read ftp.exe) but if it works, 43495 # passive mode is better! 43496 ( \ 43497 echo "user $FTPUSER $FTPPWD" ; \ 43498 echo "pass" ; \ 43499 echo "bin" ; \ 43500 echo "get $FTPPATH $tmpfile" ; \ 43501 ) | ftp -in $FTPSERVER 43502 fi 43503 if test "x$VALID_TOOL" != xyes; then 43504 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43505 fi 43506 43507 mv $tmpfile $installdir/$filename 43508 if test ! -s $installdir/$filename; then 43509 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43510 fi 43511 case "$extension" in 43512 zip) echo "Unzipping $installdir/$filename..." 43513 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43514 ;; 43515 tar.gz) echo "Untaring $installdir/$filename..." 43516 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43517 ;; 43518 tgz) echo "Untaring $installdir/$filename..." 43519 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43520 ;; 43521 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43522 ;; 43523 esac 43524 fi 43525 if test -f $installdir/$filename.unpacked; then 43526 depdir=$installdir 43527 fi 43528 43529 fi 43530 # Source the builddeps file again, because in the previous command, the depdir 43531 # was updated to point at the current build dependency install directory. 43532 . $builddepsfile 43533 # Now extract variables from the builddeps.conf files. 43534 theroot=${builddep_cups_ROOT} 43535 thecflags=${builddep_cups_CFLAGS} 43536 thelibs=${builddep_cups_LIBS} 43537 if test "x$depdir" = x; then 43538 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43539 fi 43540 CUPS=$depdir 43541 if test "x$theroot" != x; then 43542 CUPS="$theroot" 43543 fi 43544 if test "x$thecflags" != x; then 43545 CUPS_CFLAGS="$thecflags" 43546 fi 43547 if test "x$thelibs" != x; then 43548 CUPS_LIBS="$thelibs" 43549 fi 43550 CUPS_FOUND=yes 43551 43552 fi 43553 43554 fi 43555 43556 fi 43557 if test "x$CUPS_FOUND" = xno; then 43558 # Are the cups headers installed in the default /usr/include location? 43559 for ac_header in cups/cups.h cups/ppd.h 43560 do : 43561 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43562 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43563 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43564 cat >>confdefs.h <<_ACEOF 43565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43566 _ACEOF 43567 43568 CUPS_FOUND=yes 43569 CUPS_CFLAGS= 43570 DEFAULT_CUPS=yes 43571 43572 43573 fi 43574 43575 done 43576 43577 fi 43578 if test "x$CUPS_FOUND" = xno; then 43579 # Getting nervous now? Lets poke around for standard Solaris third-party 43580 # package installation locations. 43581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43582 $as_echo_n "checking for cups headers... " >&6; } 43583 if test -s /opt/sfw/cups/include/cups/cups.h; then 43584 # An SFW package seems to be installed! 43585 CUPS_FOUND=yes 43586 CUPS_CFLAGS="-I/opt/sfw/cups/include" 43587 elif test -s /opt/csw/include/cups/cups.h; then 43588 # A CSW package seems to be installed! 43589 CUPS_FOUND=yes 43590 CUPS_CFLAGS="-I/opt/csw/include" 43591 fi 43592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43593 $as_echo "$CUPS_FOUND" >&6; } 43594 fi 43595 if test "x$CUPS_FOUND" = xno; then 43596 43597 # Print a helpful message on how to acquire the necessary build dependency. 43598 # cups is the help tag: freetype, cups, pulse, alsa etc 43599 MISSING_DEPENDENCY=cups 43600 43601 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43602 cygwin_help $MISSING_DEPENDENCY 43603 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43604 msys_help $MISSING_DEPENDENCY 43605 else 43606 PKGHANDLER_COMMAND= 43607 43608 case $PKGHANDLER in 43609 apt-get) 43610 apt_help $MISSING_DEPENDENCY ;; 43611 yum) 43612 yum_help $MISSING_DEPENDENCY ;; 43613 port) 43614 port_help $MISSING_DEPENDENCY ;; 43615 pkgutil) 43616 pkgutil_help $MISSING_DEPENDENCY ;; 43617 pkgadd) 43618 pkgadd_help $MISSING_DEPENDENCY ;; 43619 esac 43620 43621 if test "x$PKGHANDLER_COMMAND" != x; then 43622 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43623 fi 43624 fi 43625 43626 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43627 fi 43628 fi 43629 43630 43631 43632 43633 43634 43635 ############################################################################### 43636 # 43637 # The ubiquitous freetype library is used to render fonts. 43638 # 43639 43640 # Check whether --with-freetype was given. 43641 if test "${with_freetype+set}" = set; then : 43642 withval=$with_freetype; 43643 fi 43644 43645 43646 # Check whether --with-freetype-include was given. 43647 if test "${with_freetype_include+set}" = set; then : 43648 withval=$with_freetype_include; 43649 fi 43650 43651 43652 # Check whether --with-freetype-lib was given. 43653 if test "${with_freetype_lib+set}" = set; then : 43654 withval=$with_freetype_lib; 43655 fi 43656 43657 # Check whether --enable-freetype-bundling was given. 43658 if test "${enable_freetype_bundling+set}" = set; then : 43659 enableval=$enable_freetype_bundling; 43660 fi 43661 43662 43663 FREETYPE_CFLAGS= 43664 FREETYPE_LIBS= 43665 FREETYPE_BUNDLE_LIB_PATH= 43666 43667 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43668 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43670 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43671 fi 43672 if test "x$enable_freetype_bundling" != x; then 43673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43674 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43675 fi 43676 else 43677 # freetype is needed to build; go get it! 43678 43679 BUNDLE_FREETYPE="$enable_freetype_bundling" 43680 43681 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43682 # User has specified settings 43683 43684 if test "x$BUNDLE_FREETYPE" = x; then 43685 # If not specified, default is to bundle freetype 43686 BUNDLE_FREETYPE=yes 43687 fi 43688 43689 if test "x$with_freetype" != x; then 43690 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 43691 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 43692 fi 43693 43694 # Allow --with-freetype-lib and --with-freetype-include to override 43695 if test "x$with_freetype_include" != x; then 43696 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 43697 fi 43698 if test "x$with_freetype_lib" != x; then 43699 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 43700 fi 43701 43702 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 43703 # Okay, we got it. Check that it works. 43704 43705 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43706 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43707 METHOD="--with-freetype" 43708 43709 # First check if the files exists. 43710 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43711 # We found an arbitrary include file. That's a good sign. 43712 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43713 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43714 FOUND_FREETYPE=yes 43715 43716 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43717 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43718 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43719 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43720 FOUND_FREETYPE=no 43721 else 43722 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43723 # On Windows, we will need both .lib and .dll file. 43724 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43725 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43726 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43727 FOUND_FREETYPE=no 43728 fi 43729 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 43730 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43731 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43732 fi 43733 fi 43734 fi 43735 43736 if test "x$FOUND_FREETYPE" = xyes; then 43737 43738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43739 43740 # Input might be given as Windows format, start by converting to 43741 # unix format. 43742 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43743 new_path=`$CYGPATH -u "$path"` 43744 43745 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43746 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43747 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43748 # "foo.exe" is OK but "foo" is an error. 43749 # 43750 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43751 # It is also a way to make sure we got the proper file name for the real test later on. 43752 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43753 if test "x$test_shortpath" = x; then 43754 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43755 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43756 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43757 fi 43758 43759 # Call helper function which possibly converts this using DOS-style short mode. 43760 # If so, the updated path is stored in $new_path. 43761 43762 input_path="$new_path" 43763 # Check if we need to convert this using DOS-style short mode. If the path 43764 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43765 # take no chances and rewrite it. 43766 # Note: m4 eats our [], so we need to use [ and ] instead. 43767 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43768 if test "x$has_forbidden_chars" != x; then 43769 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43770 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43771 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43772 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43773 # Going to short mode and back again did indeed matter. Since short mode is 43774 # case insensitive, let's make it lowercase to improve readability. 43775 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43776 # Now convert it back to Unix-stile (cygpath) 43777 input_path=`$CYGPATH -u "$shortmode_path"` 43778 new_path="$input_path" 43779 fi 43780 fi 43781 43782 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43783 if test "x$test_cygdrive_prefix" = x; then 43784 # As a simple fix, exclude /usr/bin since it's not a real path. 43785 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43786 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43787 # a path prefixed by /cygdrive for fixpath to work. 43788 new_path="$CYGWIN_ROOT_PATH$input_path" 43789 fi 43790 fi 43791 43792 43793 if test "x$path" != "x$new_path"; then 43794 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43795 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43796 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43797 fi 43798 43799 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43800 43801 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43802 has_colon=`$ECHO $path | $GREP ^.:` 43803 new_path="$path" 43804 if test "x$has_colon" = x; then 43805 # Not in mixed or Windows style, start by that. 43806 new_path=`cmd //c echo $path` 43807 fi 43808 43809 43810 input_path="$new_path" 43811 # Check if we need to convert this using DOS-style short mode. If the path 43812 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43813 # take no chances and rewrite it. 43814 # Note: m4 eats our [], so we need to use [ and ] instead. 43815 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43816 if test "x$has_forbidden_chars" != x; then 43817 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43818 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43819 fi 43820 43821 43822 windows_path="$new_path" 43823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43824 unix_path=`$CYGPATH -u "$windows_path"` 43825 new_path="$unix_path" 43826 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43827 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43828 new_path="$unix_path" 43829 fi 43830 43831 if test "x$path" != "x$new_path"; then 43832 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43833 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43834 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43835 fi 43836 43837 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43838 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43839 43840 else 43841 # We're on a posix platform. Hooray! :) 43842 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43843 has_space=`$ECHO "$path" | $GREP " "` 43844 if test "x$has_space" != x; then 43845 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43846 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43847 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43848 fi 43849 43850 # Use eval to expand a potential ~ 43851 eval path="$path" 43852 if test ! -f "$path" && test ! -d "$path"; then 43853 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43854 fi 43855 43856 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43857 fi 43858 43859 43860 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43861 43862 # Input might be given as Windows format, start by converting to 43863 # unix format. 43864 path="$POTENTIAL_FREETYPE_LIB_PATH" 43865 new_path=`$CYGPATH -u "$path"` 43866 43867 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43868 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43869 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43870 # "foo.exe" is OK but "foo" is an error. 43871 # 43872 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43873 # It is also a way to make sure we got the proper file name for the real test later on. 43874 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43875 if test "x$test_shortpath" = x; then 43876 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43877 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43878 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43879 fi 43880 43881 # Call helper function which possibly converts this using DOS-style short mode. 43882 # If so, the updated path is stored in $new_path. 43883 43884 input_path="$new_path" 43885 # Check if we need to convert this using DOS-style short mode. If the path 43886 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43887 # take no chances and rewrite it. 43888 # Note: m4 eats our [], so we need to use [ and ] instead. 43889 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43890 if test "x$has_forbidden_chars" != x; then 43891 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43892 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43893 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43894 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43895 # Going to short mode and back again did indeed matter. Since short mode is 43896 # case insensitive, let's make it lowercase to improve readability. 43897 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43898 # Now convert it back to Unix-stile (cygpath) 43899 input_path=`$CYGPATH -u "$shortmode_path"` 43900 new_path="$input_path" 43901 fi 43902 fi 43903 43904 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43905 if test "x$test_cygdrive_prefix" = x; then 43906 # As a simple fix, exclude /usr/bin since it's not a real path. 43907 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43908 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43909 # a path prefixed by /cygdrive for fixpath to work. 43910 new_path="$CYGWIN_ROOT_PATH$input_path" 43911 fi 43912 fi 43913 43914 43915 if test "x$path" != "x$new_path"; then 43916 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43917 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43918 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43919 fi 43920 43921 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43922 43923 path="$POTENTIAL_FREETYPE_LIB_PATH" 43924 has_colon=`$ECHO $path | $GREP ^.:` 43925 new_path="$path" 43926 if test "x$has_colon" = x; then 43927 # Not in mixed or Windows style, start by that. 43928 new_path=`cmd //c echo $path` 43929 fi 43930 43931 43932 input_path="$new_path" 43933 # Check if we need to convert this using DOS-style short mode. If the path 43934 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43935 # take no chances and rewrite it. 43936 # Note: m4 eats our [], so we need to use [ and ] instead. 43937 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43938 if test "x$has_forbidden_chars" != x; then 43939 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43940 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43941 fi 43942 43943 43944 windows_path="$new_path" 43945 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43946 unix_path=`$CYGPATH -u "$windows_path"` 43947 new_path="$unix_path" 43948 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43949 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43950 new_path="$unix_path" 43951 fi 43952 43953 if test "x$path" != "x$new_path"; then 43954 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43955 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43956 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43957 fi 43958 43959 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43960 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43961 43962 else 43963 # We're on a posix platform. Hooray! :) 43964 path="$POTENTIAL_FREETYPE_LIB_PATH" 43965 has_space=`$ECHO "$path" | $GREP " "` 43966 if test "x$has_space" != x; then 43967 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43968 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43969 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43970 fi 43971 43972 # Use eval to expand a potential ~ 43973 eval path="$path" 43974 if test ! -f "$path" && test ! -d "$path"; then 43975 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43976 fi 43977 43978 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43979 fi 43980 43981 43982 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43984 $as_echo_n "checking for freetype includes... " >&6; } 43985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43986 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43987 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43989 $as_echo_n "checking for freetype libraries... " >&6; } 43990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43991 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43992 fi 43993 43994 if test "x$FOUND_FREETYPE" != xyes; then 43995 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 43996 fi 43997 else 43998 # User specified only one of lib or include. This is an error. 43999 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 44000 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 44001 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 44002 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44003 else 44004 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 44005 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 44006 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 44007 fi 44008 fi 44009 else 44010 # User did not specify settings, but we need freetype. Try to locate it. 44011 44012 if test "x$BUNDLE_FREETYPE" = x; then 44013 # If not specified, default is to bundle freetype only on windows 44014 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44015 BUNDLE_FREETYPE=yes 44016 else 44017 BUNDLE_FREETYPE=no 44018 fi 44019 fi 44020 44021 if test "x$FOUND_FREETYPE" != xyes; then 44022 # Check builddeps 44023 44024 44025 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 44026 # Source the builddeps file again, to make sure it uses the latest variables! 44027 . $builddepsfile 44028 # Look for a target and build machine specific resource! 44029 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 44030 if test "x$resource" = x; then 44031 # Ok, lets instead look for a target specific resource 44032 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 44033 fi 44034 if test "x$resource" = x; then 44035 # Ok, lets instead look for a build specific resource 44036 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 44037 fi 44038 if test "x$resource" = x; then 44039 # Ok, lets instead look for a generic resource 44040 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 44041 resource=${builddep_freetype2} 44042 fi 44043 if test "x$resource" != x; then 44044 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 44045 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 44046 # If the resource in the builddeps.conf file is an existing directory, 44047 # for example /java/linux/cups 44048 if test -d ${resource}; then 44049 depdir=${resource} 44050 else 44051 44052 # freetype2 is for example mymodule 44053 # $resource is for example libs/general/libmymod_1_2_3.zip 44054 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 44055 # $with_builddeps_dir is for example /localhome/builddeps 44056 # depdir is the name of the variable into which we store the depdir, eg MYMOD 44057 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 44058 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 44059 filename=`basename $resource` 44060 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 44061 filebase=${filename%%.*} 44062 extension=${filename#*.} 44063 installdir=$with_builddeps_dir/$filebase 44064 if test ! -f $installdir/$filename.unpacked; then 44065 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 44066 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 44067 if test ! -d $installdir; then 44068 mkdir -p $installdir 44069 fi 44070 if test ! -d $installdir; then 44071 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 44072 fi 44073 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 44074 touch $tmpfile 44075 if test ! -f $tmpfile; then 44076 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 44077 fi 44078 44079 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 44080 # $tmpfile is the local file name for the downloaded file. 44081 VALID_TOOL=no 44082 if test "x$BDEPS_FTP" = xwget; then 44083 VALID_TOOL=yes 44084 wget -O $tmpfile $with_builddeps_server/$resource 44085 fi 44086 if test "x$BDEPS_FTP" = xlftp; then 44087 VALID_TOOL=yes 44088 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 44089 fi 44090 if test "x$BDEPS_FTP" = xftp; then 44091 VALID_TOOL=yes 44092 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 44093 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 44094 FTPUSERPWD=${FTPSERVER%%@*} 44095 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 44096 FTPUSER=${userpwd%%:*} 44097 FTPPWD=${userpwd#*@} 44098 FTPSERVER=${FTPSERVER#*@} 44099 else 44100 FTPUSER=ftp 44101 FTPPWD=ftp 44102 fi 44103 # the "pass" command does not work on some 44104 # ftp clients (read ftp.exe) but if it works, 44105 # passive mode is better! 44106 ( \ 44107 echo "user $FTPUSER $FTPPWD" ; \ 44108 echo "pass" ; \ 44109 echo "bin" ; \ 44110 echo "get $FTPPATH $tmpfile" ; \ 44111 ) | ftp -in $FTPSERVER 44112 fi 44113 if test "x$VALID_TOOL" != xyes; then 44114 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 44115 fi 44116 44117 mv $tmpfile $installdir/$filename 44118 if test ! -s $installdir/$filename; then 44119 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 44120 fi 44121 case "$extension" in 44122 zip) echo "Unzipping $installdir/$filename..." 44123 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 44124 ;; 44125 tar.gz) echo "Untaring $installdir/$filename..." 44126 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44127 ;; 44128 tgz) echo "Untaring $installdir/$filename..." 44129 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 44130 ;; 44131 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 44132 ;; 44133 esac 44134 fi 44135 if test -f $installdir/$filename.unpacked; then 44136 depdir=$installdir 44137 fi 44138 44139 fi 44140 # Source the builddeps file again, because in the previous command, the depdir 44141 # was updated to point at the current build dependency install directory. 44142 . $builddepsfile 44143 # Now extract variables from the builddeps.conf files. 44144 theroot=${builddep_freetype2_ROOT} 44145 thecflags=${builddep_freetype2_CFLAGS} 44146 thelibs=${builddep_freetype2_LIBS} 44147 if test "x$depdir" = x; then 44148 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 44149 fi 44150 FREETYPE=$depdir 44151 if test "x$theroot" != x; then 44152 FREETYPE="$theroot" 44153 fi 44154 if test "x$thecflags" != x; then 44155 FREETYPE_CFLAGS="$thecflags" 44156 fi 44157 if test "x$thelibs" != x; then 44158 FREETYPE_LIBS="$thelibs" 44159 fi 44160 FOUND_FREETYPE=yes 44161 else FOUND_FREETYPE=no 44162 44163 fi 44164 else FOUND_FREETYPE=no 44165 44166 fi 44167 44168 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44169 if test "x$FOUND_FREETYPE" = xyes; then 44170 if test "x$BUNDLE_FREETYPE" = xyes; then 44171 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 44172 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 44173 FOUND_FREETYPE=no 44174 else 44175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44176 $as_echo_n "checking for freetype... " >&6; } 44177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 44178 $as_echo "yes (using builddeps)" >&6; } 44179 fi 44180 fi 44181 fi 44182 44183 if test "x$FOUND_FREETYPE" != xyes; then 44184 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 44185 if test "x$PKG_CONFIG" != x; then 44186 44187 pkg_failed=no 44188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 44189 $as_echo_n "checking for FREETYPE... " >&6; } 44190 44191 if test -n "$FREETYPE_CFLAGS"; then 44192 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 44193 elif test -n "$PKG_CONFIG"; then 44194 if test -n "$PKG_CONFIG" && \ 44195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44196 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44197 ac_status=$? 44198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44199 test $ac_status = 0; }; then 44200 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 44201 else 44202 pkg_failed=yes 44203 fi 44204 else 44205 pkg_failed=untried 44206 fi 44207 if test -n "$FREETYPE_LIBS"; then 44208 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 44209 elif test -n "$PKG_CONFIG"; then 44210 if test -n "$PKG_CONFIG" && \ 44211 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 44212 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 44213 ac_status=$? 44214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 44215 test $ac_status = 0; }; then 44216 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 44217 else 44218 pkg_failed=yes 44219 fi 44220 else 44221 pkg_failed=untried 44222 fi 44223 44224 44225 44226 if test $pkg_failed = yes; then 44227 44228 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 44229 _pkg_short_errors_supported=yes 44230 else 44231 _pkg_short_errors_supported=no 44232 fi 44233 if test $_pkg_short_errors_supported = yes; then 44234 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 44235 else 44236 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 44237 fi 44238 # Put the nasty error message in config.log where it belongs 44239 echo "$FREETYPE_PKG_ERRORS" >&5 44240 44241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 44242 $as_echo "no" >&6; } 44243 FOUND_FREETYPE=no 44244 elif test $pkg_failed = untried; then 44245 FOUND_FREETYPE=no 44246 else 44247 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 44248 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 44249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 44250 $as_echo "yes" >&6; } 44251 FOUND_FREETYPE=yes 44252 fi 44253 if test "x$FOUND_FREETYPE" = xyes; then 44254 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 44255 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 44256 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 44257 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 44258 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 44259 fi 44260 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 44261 if test "x$BUNDLE_FREETYPE" = xyes; then 44262 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 44263 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 44264 FOUND_FREETYPE=no 44265 else 44266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 44267 $as_echo_n "checking for freetype... " >&6; } 44268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 44269 $as_echo "yes (using pkg-config)" >&6; } 44270 fi 44271 fi 44272 fi 44273 fi 44274 44275 if test "x$FOUND_FREETYPE" != xyes; then 44276 # Check in well-known locations 44277 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44278 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 44279 44280 windows_path="$FREETYPE_BASE_DIR" 44281 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44282 unix_path=`$CYGPATH -u "$windows_path"` 44283 FREETYPE_BASE_DIR="$unix_path" 44284 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44285 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44286 FREETYPE_BASE_DIR="$unix_path" 44287 fi 44288 44289 44290 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44291 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44292 METHOD="well-known location" 44293 44294 # First check if the files exists. 44295 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44296 # We found an arbitrary include file. That's a good sign. 44297 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44298 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44299 FOUND_FREETYPE=yes 44300 44301 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44302 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44303 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44304 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44305 FOUND_FREETYPE=no 44306 else 44307 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44308 # On Windows, we will need both .lib and .dll file. 44309 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44310 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44311 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44312 FOUND_FREETYPE=no 44313 fi 44314 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44315 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44316 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44317 fi 44318 fi 44319 fi 44320 44321 if test "x$FOUND_FREETYPE" = xyes; then 44322 44323 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44324 44325 # Input might be given as Windows format, start by converting to 44326 # unix format. 44327 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44328 new_path=`$CYGPATH -u "$path"` 44329 44330 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44331 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44332 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44333 # "foo.exe" is OK but "foo" is an error. 44334 # 44335 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44336 # It is also a way to make sure we got the proper file name for the real test later on. 44337 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44338 if test "x$test_shortpath" = x; then 44339 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44340 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44341 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44342 fi 44343 44344 # Call helper function which possibly converts this using DOS-style short mode. 44345 # If so, the updated path is stored in $new_path. 44346 44347 input_path="$new_path" 44348 # Check if we need to convert this using DOS-style short mode. If the path 44349 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44350 # take no chances and rewrite it. 44351 # Note: m4 eats our [], so we need to use [ and ] instead. 44352 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44353 if test "x$has_forbidden_chars" != x; then 44354 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44355 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44356 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44357 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44358 # Going to short mode and back again did indeed matter. Since short mode is 44359 # case insensitive, let's make it lowercase to improve readability. 44360 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44361 # Now convert it back to Unix-stile (cygpath) 44362 input_path=`$CYGPATH -u "$shortmode_path"` 44363 new_path="$input_path" 44364 fi 44365 fi 44366 44367 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44368 if test "x$test_cygdrive_prefix" = x; then 44369 # As a simple fix, exclude /usr/bin since it's not a real path. 44370 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44371 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44372 # a path prefixed by /cygdrive for fixpath to work. 44373 new_path="$CYGWIN_ROOT_PATH$input_path" 44374 fi 44375 fi 44376 44377 44378 if test "x$path" != "x$new_path"; then 44379 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44380 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44381 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44382 fi 44383 44384 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44385 44386 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44387 has_colon=`$ECHO $path | $GREP ^.:` 44388 new_path="$path" 44389 if test "x$has_colon" = x; then 44390 # Not in mixed or Windows style, start by that. 44391 new_path=`cmd //c echo $path` 44392 fi 44393 44394 44395 input_path="$new_path" 44396 # Check if we need to convert this using DOS-style short mode. If the path 44397 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44398 # take no chances and rewrite it. 44399 # Note: m4 eats our [], so we need to use [ and ] instead. 44400 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44401 if test "x$has_forbidden_chars" != x; then 44402 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44403 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44404 fi 44405 44406 44407 windows_path="$new_path" 44408 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44409 unix_path=`$CYGPATH -u "$windows_path"` 44410 new_path="$unix_path" 44411 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44412 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44413 new_path="$unix_path" 44414 fi 44415 44416 if test "x$path" != "x$new_path"; then 44417 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44418 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44419 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44420 fi 44421 44422 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44423 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44424 44425 else 44426 # We're on a posix platform. Hooray! :) 44427 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44428 has_space=`$ECHO "$path" | $GREP " "` 44429 if test "x$has_space" != x; then 44430 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44431 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44432 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44433 fi 44434 44435 # Use eval to expand a potential ~ 44436 eval path="$path" 44437 if test ! -f "$path" && test ! -d "$path"; then 44438 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44439 fi 44440 44441 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44442 fi 44443 44444 44445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44446 44447 # Input might be given as Windows format, start by converting to 44448 # unix format. 44449 path="$POTENTIAL_FREETYPE_LIB_PATH" 44450 new_path=`$CYGPATH -u "$path"` 44451 44452 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44453 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44454 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44455 # "foo.exe" is OK but "foo" is an error. 44456 # 44457 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44458 # It is also a way to make sure we got the proper file name for the real test later on. 44459 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44460 if test "x$test_shortpath" = x; then 44461 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44462 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44463 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44464 fi 44465 44466 # Call helper function which possibly converts this using DOS-style short mode. 44467 # If so, the updated path is stored in $new_path. 44468 44469 input_path="$new_path" 44470 # Check if we need to convert this using DOS-style short mode. If the path 44471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44472 # take no chances and rewrite it. 44473 # Note: m4 eats our [], so we need to use [ and ] instead. 44474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44475 if test "x$has_forbidden_chars" != x; then 44476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44480 # Going to short mode and back again did indeed matter. Since short mode is 44481 # case insensitive, let's make it lowercase to improve readability. 44482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44483 # Now convert it back to Unix-stile (cygpath) 44484 input_path=`$CYGPATH -u "$shortmode_path"` 44485 new_path="$input_path" 44486 fi 44487 fi 44488 44489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44490 if test "x$test_cygdrive_prefix" = x; then 44491 # As a simple fix, exclude /usr/bin since it's not a real path. 44492 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44494 # a path prefixed by /cygdrive for fixpath to work. 44495 new_path="$CYGWIN_ROOT_PATH$input_path" 44496 fi 44497 fi 44498 44499 44500 if test "x$path" != "x$new_path"; then 44501 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44502 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44503 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44504 fi 44505 44506 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44507 44508 path="$POTENTIAL_FREETYPE_LIB_PATH" 44509 has_colon=`$ECHO $path | $GREP ^.:` 44510 new_path="$path" 44511 if test "x$has_colon" = x; then 44512 # Not in mixed or Windows style, start by that. 44513 new_path=`cmd //c echo $path` 44514 fi 44515 44516 44517 input_path="$new_path" 44518 # Check if we need to convert this using DOS-style short mode. If the path 44519 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44520 # take no chances and rewrite it. 44521 # Note: m4 eats our [], so we need to use [ and ] instead. 44522 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44523 if test "x$has_forbidden_chars" != x; then 44524 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44525 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44526 fi 44527 44528 44529 windows_path="$new_path" 44530 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44531 unix_path=`$CYGPATH -u "$windows_path"` 44532 new_path="$unix_path" 44533 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44534 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44535 new_path="$unix_path" 44536 fi 44537 44538 if test "x$path" != "x$new_path"; then 44539 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44540 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44541 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44542 fi 44543 44544 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44545 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44546 44547 else 44548 # We're on a posix platform. Hooray! :) 44549 path="$POTENTIAL_FREETYPE_LIB_PATH" 44550 has_space=`$ECHO "$path" | $GREP " "` 44551 if test "x$has_space" != x; then 44552 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44553 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44554 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44555 fi 44556 44557 # Use eval to expand a potential ~ 44558 eval path="$path" 44559 if test ! -f "$path" && test ! -d "$path"; then 44560 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44561 fi 44562 44563 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44564 fi 44565 44566 44567 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44569 $as_echo_n "checking for freetype includes... " >&6; } 44570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44571 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44572 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44574 $as_echo_n "checking for freetype libraries... " >&6; } 44575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44576 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44577 fi 44578 44579 if test "x$FOUND_FREETYPE" != xyes; then 44580 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 44581 44582 windows_path="$FREETYPE_BASE_DIR" 44583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44584 unix_path=`$CYGPATH -u "$windows_path"` 44585 FREETYPE_BASE_DIR="$unix_path" 44586 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44587 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44588 FREETYPE_BASE_DIR="$unix_path" 44589 fi 44590 44591 44592 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44593 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44594 METHOD="well-known location" 44595 44596 # First check if the files exists. 44597 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44598 # We found an arbitrary include file. That's a good sign. 44599 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44600 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44601 FOUND_FREETYPE=yes 44602 44603 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44604 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44605 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44606 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44607 FOUND_FREETYPE=no 44608 else 44609 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44610 # On Windows, we will need both .lib and .dll file. 44611 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44612 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44613 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44614 FOUND_FREETYPE=no 44615 fi 44616 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44617 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44618 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44619 fi 44620 fi 44621 fi 44622 44623 if test "x$FOUND_FREETYPE" = xyes; then 44624 44625 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44626 44627 # Input might be given as Windows format, start by converting to 44628 # unix format. 44629 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44630 new_path=`$CYGPATH -u "$path"` 44631 44632 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44633 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44634 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44635 # "foo.exe" is OK but "foo" is an error. 44636 # 44637 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44638 # It is also a way to make sure we got the proper file name for the real test later on. 44639 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44640 if test "x$test_shortpath" = x; then 44641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44642 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44643 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44644 fi 44645 44646 # Call helper function which possibly converts this using DOS-style short mode. 44647 # If so, the updated path is stored in $new_path. 44648 44649 input_path="$new_path" 44650 # Check if we need to convert this using DOS-style short mode. If the path 44651 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44652 # take no chances and rewrite it. 44653 # Note: m4 eats our [], so we need to use [ and ] instead. 44654 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44655 if test "x$has_forbidden_chars" != x; then 44656 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44657 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44658 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44659 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44660 # Going to short mode and back again did indeed matter. Since short mode is 44661 # case insensitive, let's make it lowercase to improve readability. 44662 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44663 # Now convert it back to Unix-stile (cygpath) 44664 input_path=`$CYGPATH -u "$shortmode_path"` 44665 new_path="$input_path" 44666 fi 44667 fi 44668 44669 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44670 if test "x$test_cygdrive_prefix" = x; then 44671 # As a simple fix, exclude /usr/bin since it's not a real path. 44672 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44673 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44674 # a path prefixed by /cygdrive for fixpath to work. 44675 new_path="$CYGWIN_ROOT_PATH$input_path" 44676 fi 44677 fi 44678 44679 44680 if test "x$path" != "x$new_path"; then 44681 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44682 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44683 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44684 fi 44685 44686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44687 44688 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44689 has_colon=`$ECHO $path | $GREP ^.:` 44690 new_path="$path" 44691 if test "x$has_colon" = x; then 44692 # Not in mixed or Windows style, start by that. 44693 new_path=`cmd //c echo $path` 44694 fi 44695 44696 44697 input_path="$new_path" 44698 # Check if we need to convert this using DOS-style short mode. If the path 44699 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44700 # take no chances and rewrite it. 44701 # Note: m4 eats our [], so we need to use [ and ] instead. 44702 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44703 if test "x$has_forbidden_chars" != x; then 44704 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44705 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44706 fi 44707 44708 44709 windows_path="$new_path" 44710 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44711 unix_path=`$CYGPATH -u "$windows_path"` 44712 new_path="$unix_path" 44713 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44714 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44715 new_path="$unix_path" 44716 fi 44717 44718 if test "x$path" != "x$new_path"; then 44719 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44720 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44721 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44722 fi 44723 44724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44726 44727 else 44728 # We're on a posix platform. Hooray! :) 44729 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44730 has_space=`$ECHO "$path" | $GREP " "` 44731 if test "x$has_space" != x; then 44732 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44733 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44734 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44735 fi 44736 44737 # Use eval to expand a potential ~ 44738 eval path="$path" 44739 if test ! -f "$path" && test ! -d "$path"; then 44740 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44741 fi 44742 44743 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44744 fi 44745 44746 44747 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44748 44749 # Input might be given as Windows format, start by converting to 44750 # unix format. 44751 path="$POTENTIAL_FREETYPE_LIB_PATH" 44752 new_path=`$CYGPATH -u "$path"` 44753 44754 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44755 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44756 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44757 # "foo.exe" is OK but "foo" is an error. 44758 # 44759 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44760 # It is also a way to make sure we got the proper file name for the real test later on. 44761 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44762 if test "x$test_shortpath" = x; then 44763 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44764 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44765 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44766 fi 44767 44768 # Call helper function which possibly converts this using DOS-style short mode. 44769 # If so, the updated path is stored in $new_path. 44770 44771 input_path="$new_path" 44772 # Check if we need to convert this using DOS-style short mode. If the path 44773 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44774 # take no chances and rewrite it. 44775 # Note: m4 eats our [], so we need to use [ and ] instead. 44776 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44777 if test "x$has_forbidden_chars" != x; then 44778 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44779 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44780 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44781 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44782 # Going to short mode and back again did indeed matter. Since short mode is 44783 # case insensitive, let's make it lowercase to improve readability. 44784 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44785 # Now convert it back to Unix-stile (cygpath) 44786 input_path=`$CYGPATH -u "$shortmode_path"` 44787 new_path="$input_path" 44788 fi 44789 fi 44790 44791 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44792 if test "x$test_cygdrive_prefix" = x; then 44793 # As a simple fix, exclude /usr/bin since it's not a real path. 44794 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44795 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44796 # a path prefixed by /cygdrive for fixpath to work. 44797 new_path="$CYGWIN_ROOT_PATH$input_path" 44798 fi 44799 fi 44800 44801 44802 if test "x$path" != "x$new_path"; then 44803 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44804 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44805 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44806 fi 44807 44808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44809 44810 path="$POTENTIAL_FREETYPE_LIB_PATH" 44811 has_colon=`$ECHO $path | $GREP ^.:` 44812 new_path="$path" 44813 if test "x$has_colon" = x; then 44814 # Not in mixed or Windows style, start by that. 44815 new_path=`cmd //c echo $path` 44816 fi 44817 44818 44819 input_path="$new_path" 44820 # Check if we need to convert this using DOS-style short mode. If the path 44821 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44822 # take no chances and rewrite it. 44823 # Note: m4 eats our [], so we need to use [ and ] instead. 44824 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44825 if test "x$has_forbidden_chars" != x; then 44826 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44827 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44828 fi 44829 44830 44831 windows_path="$new_path" 44832 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44833 unix_path=`$CYGPATH -u "$windows_path"` 44834 new_path="$unix_path" 44835 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44836 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44837 new_path="$unix_path" 44838 fi 44839 44840 if test "x$path" != "x$new_path"; then 44841 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44842 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44843 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44844 fi 44845 44846 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44847 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44848 44849 else 44850 # We're on a posix platform. Hooray! :) 44851 path="$POTENTIAL_FREETYPE_LIB_PATH" 44852 has_space=`$ECHO "$path" | $GREP " "` 44853 if test "x$has_space" != x; then 44854 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44855 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44856 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44857 fi 44858 44859 # Use eval to expand a potential ~ 44860 eval path="$path" 44861 if test ! -f "$path" && test ! -d "$path"; then 44862 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44863 fi 44864 44865 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44866 fi 44867 44868 44869 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44871 $as_echo_n "checking for freetype includes... " >&6; } 44872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44873 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44874 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44876 $as_echo_n "checking for freetype libraries... " >&6; } 44877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44878 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44879 fi 44880 44881 fi 44882 else 44883 if test "x$SYS_ROOT" = "x/"; then 44884 FREETYPE_ROOT= 44885 else 44886 FREETYPE_ROOT="$SYS_ROOT" 44887 fi 44888 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 44889 44890 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44891 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44892 METHOD="well-known location" 44893 44894 # First check if the files exists. 44895 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44896 # We found an arbitrary include file. That's a good sign. 44897 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44898 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44899 FOUND_FREETYPE=yes 44900 44901 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44902 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44903 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44904 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44905 FOUND_FREETYPE=no 44906 else 44907 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44908 # On Windows, we will need both .lib and .dll file. 44909 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44910 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44911 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44912 FOUND_FREETYPE=no 44913 fi 44914 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 44915 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44916 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44917 fi 44918 fi 44919 fi 44920 44921 if test "x$FOUND_FREETYPE" = xyes; then 44922 44923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44924 44925 # Input might be given as Windows format, start by converting to 44926 # unix format. 44927 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44928 new_path=`$CYGPATH -u "$path"` 44929 44930 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44931 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44932 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44933 # "foo.exe" is OK but "foo" is an error. 44934 # 44935 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44936 # It is also a way to make sure we got the proper file name for the real test later on. 44937 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44938 if test "x$test_shortpath" = x; then 44939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44940 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44941 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44942 fi 44943 44944 # Call helper function which possibly converts this using DOS-style short mode. 44945 # If so, the updated path is stored in $new_path. 44946 44947 input_path="$new_path" 44948 # Check if we need to convert this using DOS-style short mode. If the path 44949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44950 # take no chances and rewrite it. 44951 # Note: m4 eats our [], so we need to use [ and ] instead. 44952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44953 if test "x$has_forbidden_chars" != x; then 44954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44958 # Going to short mode and back again did indeed matter. Since short mode is 44959 # case insensitive, let's make it lowercase to improve readability. 44960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44961 # Now convert it back to Unix-stile (cygpath) 44962 input_path=`$CYGPATH -u "$shortmode_path"` 44963 new_path="$input_path" 44964 fi 44965 fi 44966 44967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44968 if test "x$test_cygdrive_prefix" = x; then 44969 # As a simple fix, exclude /usr/bin since it's not a real path. 44970 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44972 # a path prefixed by /cygdrive for fixpath to work. 44973 new_path="$CYGWIN_ROOT_PATH$input_path" 44974 fi 44975 fi 44976 44977 44978 if test "x$path" != "x$new_path"; then 44979 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44981 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44982 fi 44983 44984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44985 44986 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44987 has_colon=`$ECHO $path | $GREP ^.:` 44988 new_path="$path" 44989 if test "x$has_colon" = x; then 44990 # Not in mixed or Windows style, start by that. 44991 new_path=`cmd //c echo $path` 44992 fi 44993 44994 44995 input_path="$new_path" 44996 # Check if we need to convert this using DOS-style short mode. If the path 44997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44998 # take no chances and rewrite it. 44999 # Note: m4 eats our [], so we need to use [ and ] instead. 45000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45001 if test "x$has_forbidden_chars" != x; then 45002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45004 fi 45005 45006 45007 windows_path="$new_path" 45008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45009 unix_path=`$CYGPATH -u "$windows_path"` 45010 new_path="$unix_path" 45011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45013 new_path="$unix_path" 45014 fi 45015 45016 if test "x$path" != "x$new_path"; then 45017 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45019 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45020 fi 45021 45022 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45023 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45024 45025 else 45026 # We're on a posix platform. Hooray! :) 45027 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45028 has_space=`$ECHO "$path" | $GREP " "` 45029 if test "x$has_space" != x; then 45030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45031 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45032 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45033 fi 45034 45035 # Use eval to expand a potential ~ 45036 eval path="$path" 45037 if test ! -f "$path" && test ! -d "$path"; then 45038 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45039 fi 45040 45041 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45042 fi 45043 45044 45045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45046 45047 # Input might be given as Windows format, start by converting to 45048 # unix format. 45049 path="$POTENTIAL_FREETYPE_LIB_PATH" 45050 new_path=`$CYGPATH -u "$path"` 45051 45052 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45053 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45054 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45055 # "foo.exe" is OK but "foo" is an error. 45056 # 45057 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45058 # It is also a way to make sure we got the proper file name for the real test later on. 45059 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45060 if test "x$test_shortpath" = x; then 45061 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45062 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45063 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45064 fi 45065 45066 # Call helper function which possibly converts this using DOS-style short mode. 45067 # If so, the updated path is stored in $new_path. 45068 45069 input_path="$new_path" 45070 # Check if we need to convert this using DOS-style short mode. If the path 45071 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45072 # take no chances and rewrite it. 45073 # Note: m4 eats our [], so we need to use [ and ] instead. 45074 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45075 if test "x$has_forbidden_chars" != x; then 45076 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45077 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45078 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45079 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45080 # Going to short mode and back again did indeed matter. Since short mode is 45081 # case insensitive, let's make it lowercase to improve readability. 45082 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45083 # Now convert it back to Unix-stile (cygpath) 45084 input_path=`$CYGPATH -u "$shortmode_path"` 45085 new_path="$input_path" 45086 fi 45087 fi 45088 45089 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45090 if test "x$test_cygdrive_prefix" = x; then 45091 # As a simple fix, exclude /usr/bin since it's not a real path. 45092 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45093 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45094 # a path prefixed by /cygdrive for fixpath to work. 45095 new_path="$CYGWIN_ROOT_PATH$input_path" 45096 fi 45097 fi 45098 45099 45100 if test "x$path" != "x$new_path"; then 45101 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45102 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45103 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45104 fi 45105 45106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45107 45108 path="$POTENTIAL_FREETYPE_LIB_PATH" 45109 has_colon=`$ECHO $path | $GREP ^.:` 45110 new_path="$path" 45111 if test "x$has_colon" = x; then 45112 # Not in mixed or Windows style, start by that. 45113 new_path=`cmd //c echo $path` 45114 fi 45115 45116 45117 input_path="$new_path" 45118 # Check if we need to convert this using DOS-style short mode. If the path 45119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45120 # take no chances and rewrite it. 45121 # Note: m4 eats our [], so we need to use [ and ] instead. 45122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45123 if test "x$has_forbidden_chars" != x; then 45124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45125 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45126 fi 45127 45128 45129 windows_path="$new_path" 45130 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45131 unix_path=`$CYGPATH -u "$windows_path"` 45132 new_path="$unix_path" 45133 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45134 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45135 new_path="$unix_path" 45136 fi 45137 45138 if test "x$path" != "x$new_path"; then 45139 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45140 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45141 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45142 fi 45143 45144 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45145 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45146 45147 else 45148 # We're on a posix platform. Hooray! :) 45149 path="$POTENTIAL_FREETYPE_LIB_PATH" 45150 has_space=`$ECHO "$path" | $GREP " "` 45151 if test "x$has_space" != x; then 45152 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45153 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45154 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45155 fi 45156 45157 # Use eval to expand a potential ~ 45158 eval path="$path" 45159 if test ! -f "$path" && test ! -d "$path"; then 45160 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45161 fi 45162 45163 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45164 fi 45165 45166 45167 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45169 $as_echo_n "checking for freetype includes... " >&6; } 45170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45171 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45172 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45174 $as_echo_n "checking for freetype libraries... " >&6; } 45175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45176 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45177 fi 45178 45179 45180 if test "x$FOUND_FREETYPE" != xyes; then 45181 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11" 45182 45183 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45184 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 45185 METHOD="well-known location" 45186 45187 # First check if the files exists. 45188 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45189 # We found an arbitrary include file. That's a good sign. 45190 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45191 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45192 FOUND_FREETYPE=yes 45193 45194 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45195 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45196 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45197 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45198 FOUND_FREETYPE=no 45199 else 45200 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45201 # On Windows, we will need both .lib and .dll file. 45202 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45203 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45204 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45205 FOUND_FREETYPE=no 45206 fi 45207 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45208 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45209 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45210 fi 45211 fi 45212 fi 45213 45214 if test "x$FOUND_FREETYPE" = xyes; then 45215 45216 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45217 45218 # Input might be given as Windows format, start by converting to 45219 # unix format. 45220 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45221 new_path=`$CYGPATH -u "$path"` 45222 45223 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45224 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45225 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45226 # "foo.exe" is OK but "foo" is an error. 45227 # 45228 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45229 # It is also a way to make sure we got the proper file name for the real test later on. 45230 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45231 if test "x$test_shortpath" = x; then 45232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45233 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45234 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45235 fi 45236 45237 # Call helper function which possibly converts this using DOS-style short mode. 45238 # If so, the updated path is stored in $new_path. 45239 45240 input_path="$new_path" 45241 # Check if we need to convert this using DOS-style short mode. If the path 45242 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45243 # take no chances and rewrite it. 45244 # Note: m4 eats our [], so we need to use [ and ] instead. 45245 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45246 if test "x$has_forbidden_chars" != x; then 45247 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45248 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45249 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45250 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45251 # Going to short mode and back again did indeed matter. Since short mode is 45252 # case insensitive, let's make it lowercase to improve readability. 45253 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45254 # Now convert it back to Unix-stile (cygpath) 45255 input_path=`$CYGPATH -u "$shortmode_path"` 45256 new_path="$input_path" 45257 fi 45258 fi 45259 45260 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45261 if test "x$test_cygdrive_prefix" = x; then 45262 # As a simple fix, exclude /usr/bin since it's not a real path. 45263 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45264 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45265 # a path prefixed by /cygdrive for fixpath to work. 45266 new_path="$CYGWIN_ROOT_PATH$input_path" 45267 fi 45268 fi 45269 45270 45271 if test "x$path" != "x$new_path"; then 45272 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45273 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45274 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45275 fi 45276 45277 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45278 45279 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45280 has_colon=`$ECHO $path | $GREP ^.:` 45281 new_path="$path" 45282 if test "x$has_colon" = x; then 45283 # Not in mixed or Windows style, start by that. 45284 new_path=`cmd //c echo $path` 45285 fi 45286 45287 45288 input_path="$new_path" 45289 # Check if we need to convert this using DOS-style short mode. If the path 45290 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45291 # take no chances and rewrite it. 45292 # Note: m4 eats our [], so we need to use [ and ] instead. 45293 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45294 if test "x$has_forbidden_chars" != x; then 45295 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45296 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45297 fi 45298 45299 45300 windows_path="$new_path" 45301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45302 unix_path=`$CYGPATH -u "$windows_path"` 45303 new_path="$unix_path" 45304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45306 new_path="$unix_path" 45307 fi 45308 45309 if test "x$path" != "x$new_path"; then 45310 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45312 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45313 fi 45314 45315 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45316 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45317 45318 else 45319 # We're on a posix platform. Hooray! :) 45320 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45321 has_space=`$ECHO "$path" | $GREP " "` 45322 if test "x$has_space" != x; then 45323 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45324 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45325 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45326 fi 45327 45328 # Use eval to expand a potential ~ 45329 eval path="$path" 45330 if test ! -f "$path" && test ! -d "$path"; then 45331 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45332 fi 45333 45334 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45335 fi 45336 45337 45338 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45339 45340 # Input might be given as Windows format, start by converting to 45341 # unix format. 45342 path="$POTENTIAL_FREETYPE_LIB_PATH" 45343 new_path=`$CYGPATH -u "$path"` 45344 45345 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45346 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45347 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45348 # "foo.exe" is OK but "foo" is an error. 45349 # 45350 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45351 # It is also a way to make sure we got the proper file name for the real test later on. 45352 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45353 if test "x$test_shortpath" = x; then 45354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45355 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45356 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45357 fi 45358 45359 # Call helper function which possibly converts this using DOS-style short mode. 45360 # If so, the updated path is stored in $new_path. 45361 45362 input_path="$new_path" 45363 # Check if we need to convert this using DOS-style short mode. If the path 45364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45365 # take no chances and rewrite it. 45366 # Note: m4 eats our [], so we need to use [ and ] instead. 45367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45368 if test "x$has_forbidden_chars" != x; then 45369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45370 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45371 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45372 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45373 # Going to short mode and back again did indeed matter. Since short mode is 45374 # case insensitive, let's make it lowercase to improve readability. 45375 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45376 # Now convert it back to Unix-stile (cygpath) 45377 input_path=`$CYGPATH -u "$shortmode_path"` 45378 new_path="$input_path" 45379 fi 45380 fi 45381 45382 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45383 if test "x$test_cygdrive_prefix" = x; then 45384 # As a simple fix, exclude /usr/bin since it's not a real path. 45385 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45386 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45387 # a path prefixed by /cygdrive for fixpath to work. 45388 new_path="$CYGWIN_ROOT_PATH$input_path" 45389 fi 45390 fi 45391 45392 45393 if test "x$path" != "x$new_path"; then 45394 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45395 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45396 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45397 fi 45398 45399 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45400 45401 path="$POTENTIAL_FREETYPE_LIB_PATH" 45402 has_colon=`$ECHO $path | $GREP ^.:` 45403 new_path="$path" 45404 if test "x$has_colon" = x; then 45405 # Not in mixed or Windows style, start by that. 45406 new_path=`cmd //c echo $path` 45407 fi 45408 45409 45410 input_path="$new_path" 45411 # Check if we need to convert this using DOS-style short mode. If the path 45412 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45413 # take no chances and rewrite it. 45414 # Note: m4 eats our [], so we need to use [ and ] instead. 45415 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45416 if test "x$has_forbidden_chars" != x; then 45417 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45418 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45419 fi 45420 45421 45422 windows_path="$new_path" 45423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45424 unix_path=`$CYGPATH -u "$windows_path"` 45425 new_path="$unix_path" 45426 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45427 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45428 new_path="$unix_path" 45429 fi 45430 45431 if test "x$path" != "x$new_path"; then 45432 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45433 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45434 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45435 fi 45436 45437 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45438 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45439 45440 else 45441 # We're on a posix platform. Hooray! :) 45442 path="$POTENTIAL_FREETYPE_LIB_PATH" 45443 has_space=`$ECHO "$path" | $GREP " "` 45444 if test "x$has_space" != x; then 45445 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45446 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45447 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45448 fi 45449 45450 # Use eval to expand a potential ~ 45451 eval path="$path" 45452 if test ! -f "$path" && test ! -d "$path"; then 45453 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45454 fi 45455 45456 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45457 fi 45458 45459 45460 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45462 $as_echo_n "checking for freetype includes... " >&6; } 45463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45464 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45465 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45467 $as_echo_n "checking for freetype libraries... " >&6; } 45468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45469 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45470 fi 45471 45472 fi 45473 45474 if test "x$FOUND_FREETYPE" != xyes; then 45475 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 45476 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 45477 45478 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45479 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 45480 METHOD="well-known location" 45481 45482 # First check if the files exists. 45483 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45484 # We found an arbitrary include file. That's a good sign. 45485 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45486 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45487 FOUND_FREETYPE=yes 45488 45489 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45490 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45491 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45492 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45493 FOUND_FREETYPE=no 45494 else 45495 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45496 # On Windows, we will need both .lib and .dll file. 45497 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45498 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45499 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45500 FOUND_FREETYPE=no 45501 fi 45502 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45503 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45504 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45505 fi 45506 fi 45507 fi 45508 45509 if test "x$FOUND_FREETYPE" = xyes; then 45510 45511 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45512 45513 # Input might be given as Windows format, start by converting to 45514 # unix format. 45515 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45516 new_path=`$CYGPATH -u "$path"` 45517 45518 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45519 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45520 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45521 # "foo.exe" is OK but "foo" is an error. 45522 # 45523 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45524 # It is also a way to make sure we got the proper file name for the real test later on. 45525 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45526 if test "x$test_shortpath" = x; then 45527 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45528 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45529 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45530 fi 45531 45532 # Call helper function which possibly converts this using DOS-style short mode. 45533 # If so, the updated path is stored in $new_path. 45534 45535 input_path="$new_path" 45536 # Check if we need to convert this using DOS-style short mode. If the path 45537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45538 # take no chances and rewrite it. 45539 # Note: m4 eats our [], so we need to use [ and ] instead. 45540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45541 if test "x$has_forbidden_chars" != x; then 45542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45543 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45544 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45545 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45546 # Going to short mode and back again did indeed matter. Since short mode is 45547 # case insensitive, let's make it lowercase to improve readability. 45548 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45549 # Now convert it back to Unix-stile (cygpath) 45550 input_path=`$CYGPATH -u "$shortmode_path"` 45551 new_path="$input_path" 45552 fi 45553 fi 45554 45555 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45556 if test "x$test_cygdrive_prefix" = x; then 45557 # As a simple fix, exclude /usr/bin since it's not a real path. 45558 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45559 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45560 # a path prefixed by /cygdrive for fixpath to work. 45561 new_path="$CYGWIN_ROOT_PATH$input_path" 45562 fi 45563 fi 45564 45565 45566 if test "x$path" != "x$new_path"; then 45567 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45568 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45569 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45570 fi 45571 45572 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45573 45574 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45575 has_colon=`$ECHO $path | $GREP ^.:` 45576 new_path="$path" 45577 if test "x$has_colon" = x; then 45578 # Not in mixed or Windows style, start by that. 45579 new_path=`cmd //c echo $path` 45580 fi 45581 45582 45583 input_path="$new_path" 45584 # Check if we need to convert this using DOS-style short mode. If the path 45585 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45586 # take no chances and rewrite it. 45587 # Note: m4 eats our [], so we need to use [ and ] instead. 45588 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45589 if test "x$has_forbidden_chars" != x; then 45590 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45591 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45592 fi 45593 45594 45595 windows_path="$new_path" 45596 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45597 unix_path=`$CYGPATH -u "$windows_path"` 45598 new_path="$unix_path" 45599 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45600 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45601 new_path="$unix_path" 45602 fi 45603 45604 if test "x$path" != "x$new_path"; then 45605 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45606 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45607 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45608 fi 45609 45610 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45611 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45612 45613 else 45614 # We're on a posix platform. Hooray! :) 45615 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45616 has_space=`$ECHO "$path" | $GREP " "` 45617 if test "x$has_space" != x; then 45618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45619 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45620 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45621 fi 45622 45623 # Use eval to expand a potential ~ 45624 eval path="$path" 45625 if test ! -f "$path" && test ! -d "$path"; then 45626 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45627 fi 45628 45629 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45630 fi 45631 45632 45633 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45634 45635 # Input might be given as Windows format, start by converting to 45636 # unix format. 45637 path="$POTENTIAL_FREETYPE_LIB_PATH" 45638 new_path=`$CYGPATH -u "$path"` 45639 45640 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45641 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45642 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45643 # "foo.exe" is OK but "foo" is an error. 45644 # 45645 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45646 # It is also a way to make sure we got the proper file name for the real test later on. 45647 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45648 if test "x$test_shortpath" = x; then 45649 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45650 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45651 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45652 fi 45653 45654 # Call helper function which possibly converts this using DOS-style short mode. 45655 # If so, the updated path is stored in $new_path. 45656 45657 input_path="$new_path" 45658 # Check if we need to convert this using DOS-style short mode. If the path 45659 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45660 # take no chances and rewrite it. 45661 # Note: m4 eats our [], so we need to use [ and ] instead. 45662 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45663 if test "x$has_forbidden_chars" != x; then 45664 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45665 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45666 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45667 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45668 # Going to short mode and back again did indeed matter. Since short mode is 45669 # case insensitive, let's make it lowercase to improve readability. 45670 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45671 # Now convert it back to Unix-stile (cygpath) 45672 input_path=`$CYGPATH -u "$shortmode_path"` 45673 new_path="$input_path" 45674 fi 45675 fi 45676 45677 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45678 if test "x$test_cygdrive_prefix" = x; then 45679 # As a simple fix, exclude /usr/bin since it's not a real path. 45680 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45681 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45682 # a path prefixed by /cygdrive for fixpath to work. 45683 new_path="$CYGWIN_ROOT_PATH$input_path" 45684 fi 45685 fi 45686 45687 45688 if test "x$path" != "x$new_path"; then 45689 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45690 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45691 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45692 fi 45693 45694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45695 45696 path="$POTENTIAL_FREETYPE_LIB_PATH" 45697 has_colon=`$ECHO $path | $GREP ^.:` 45698 new_path="$path" 45699 if test "x$has_colon" = x; then 45700 # Not in mixed or Windows style, start by that. 45701 new_path=`cmd //c echo $path` 45702 fi 45703 45704 45705 input_path="$new_path" 45706 # Check if we need to convert this using DOS-style short mode. If the path 45707 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45708 # take no chances and rewrite it. 45709 # Note: m4 eats our [], so we need to use [ and ] instead. 45710 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45711 if test "x$has_forbidden_chars" != x; then 45712 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45713 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45714 fi 45715 45716 45717 windows_path="$new_path" 45718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45719 unix_path=`$CYGPATH -u "$windows_path"` 45720 new_path="$unix_path" 45721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45723 new_path="$unix_path" 45724 fi 45725 45726 if test "x$path" != "x$new_path"; then 45727 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45728 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45729 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45730 fi 45731 45732 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45733 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45734 45735 else 45736 # We're on a posix platform. Hooray! :) 45737 path="$POTENTIAL_FREETYPE_LIB_PATH" 45738 has_space=`$ECHO "$path" | $GREP " "` 45739 if test "x$has_space" != x; then 45740 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45741 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45742 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45743 fi 45744 45745 # Use eval to expand a potential ~ 45746 eval path="$path" 45747 if test ! -f "$path" && test ! -d "$path"; then 45748 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45749 fi 45750 45751 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45752 fi 45753 45754 45755 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45757 $as_echo_n "checking for freetype includes... " >&6; } 45758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45759 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45760 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45762 $as_echo_n "checking for freetype libraries... " >&6; } 45763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45764 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45765 fi 45766 45767 else 45768 45769 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45770 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 45771 METHOD="well-known location" 45772 45773 # First check if the files exists. 45774 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45775 # We found an arbitrary include file. That's a good sign. 45776 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45777 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45778 FOUND_FREETYPE=yes 45779 45780 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45781 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45782 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45783 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45784 FOUND_FREETYPE=no 45785 else 45786 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45787 # On Windows, we will need both .lib and .dll file. 45788 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45789 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45790 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45791 FOUND_FREETYPE=no 45792 fi 45793 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 45794 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45795 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45796 fi 45797 fi 45798 fi 45799 45800 if test "x$FOUND_FREETYPE" = xyes; then 45801 45802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45803 45804 # Input might be given as Windows format, start by converting to 45805 # unix format. 45806 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45807 new_path=`$CYGPATH -u "$path"` 45808 45809 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45810 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45811 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45812 # "foo.exe" is OK but "foo" is an error. 45813 # 45814 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45815 # It is also a way to make sure we got the proper file name for the real test later on. 45816 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45817 if test "x$test_shortpath" = x; then 45818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45819 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45820 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45821 fi 45822 45823 # Call helper function which possibly converts this using DOS-style short mode. 45824 # If so, the updated path is stored in $new_path. 45825 45826 input_path="$new_path" 45827 # Check if we need to convert this using DOS-style short mode. If the path 45828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45829 # take no chances and rewrite it. 45830 # Note: m4 eats our [], so we need to use [ and ] instead. 45831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45832 if test "x$has_forbidden_chars" != x; then 45833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45834 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45835 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45836 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45837 # Going to short mode and back again did indeed matter. Since short mode is 45838 # case insensitive, let's make it lowercase to improve readability. 45839 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45840 # Now convert it back to Unix-stile (cygpath) 45841 input_path=`$CYGPATH -u "$shortmode_path"` 45842 new_path="$input_path" 45843 fi 45844 fi 45845 45846 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45847 if test "x$test_cygdrive_prefix" = x; then 45848 # As a simple fix, exclude /usr/bin since it's not a real path. 45849 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45850 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45851 # a path prefixed by /cygdrive for fixpath to work. 45852 new_path="$CYGWIN_ROOT_PATH$input_path" 45853 fi 45854 fi 45855 45856 45857 if test "x$path" != "x$new_path"; then 45858 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45860 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45861 fi 45862 45863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45864 45865 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45866 has_colon=`$ECHO $path | $GREP ^.:` 45867 new_path="$path" 45868 if test "x$has_colon" = x; then 45869 # Not in mixed or Windows style, start by that. 45870 new_path=`cmd //c echo $path` 45871 fi 45872 45873 45874 input_path="$new_path" 45875 # Check if we need to convert this using DOS-style short mode. If the path 45876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45877 # take no chances and rewrite it. 45878 # Note: m4 eats our [], so we need to use [ and ] instead. 45879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45880 if test "x$has_forbidden_chars" != x; then 45881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45882 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45883 fi 45884 45885 45886 windows_path="$new_path" 45887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45888 unix_path=`$CYGPATH -u "$windows_path"` 45889 new_path="$unix_path" 45890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45892 new_path="$unix_path" 45893 fi 45894 45895 if test "x$path" != "x$new_path"; then 45896 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45897 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45898 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45899 fi 45900 45901 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45902 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45903 45904 else 45905 # We're on a posix platform. Hooray! :) 45906 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45907 has_space=`$ECHO "$path" | $GREP " "` 45908 if test "x$has_space" != x; then 45909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45910 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45911 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45912 fi 45913 45914 # Use eval to expand a potential ~ 45915 eval path="$path" 45916 if test ! -f "$path" && test ! -d "$path"; then 45917 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45918 fi 45919 45920 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45921 fi 45922 45923 45924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45925 45926 # Input might be given as Windows format, start by converting to 45927 # unix format. 45928 path="$POTENTIAL_FREETYPE_LIB_PATH" 45929 new_path=`$CYGPATH -u "$path"` 45930 45931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45934 # "foo.exe" is OK but "foo" is an error. 45935 # 45936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45937 # It is also a way to make sure we got the proper file name for the real test later on. 45938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45939 if test "x$test_shortpath" = x; then 45940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45942 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45943 fi 45944 45945 # Call helper function which possibly converts this using DOS-style short mode. 45946 # If so, the updated path is stored in $new_path. 45947 45948 input_path="$new_path" 45949 # Check if we need to convert this using DOS-style short mode. If the path 45950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45951 # take no chances and rewrite it. 45952 # Note: m4 eats our [], so we need to use [ and ] instead. 45953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45954 if test "x$has_forbidden_chars" != x; then 45955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45959 # Going to short mode and back again did indeed matter. Since short mode is 45960 # case insensitive, let's make it lowercase to improve readability. 45961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45962 # Now convert it back to Unix-stile (cygpath) 45963 input_path=`$CYGPATH -u "$shortmode_path"` 45964 new_path="$input_path" 45965 fi 45966 fi 45967 45968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45969 if test "x$test_cygdrive_prefix" = x; then 45970 # As a simple fix, exclude /usr/bin since it's not a real path. 45971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45973 # a path prefixed by /cygdrive for fixpath to work. 45974 new_path="$CYGWIN_ROOT_PATH$input_path" 45975 fi 45976 fi 45977 45978 45979 if test "x$path" != "x$new_path"; then 45980 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45983 fi 45984 45985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45986 45987 path="$POTENTIAL_FREETYPE_LIB_PATH" 45988 has_colon=`$ECHO $path | $GREP ^.:` 45989 new_path="$path" 45990 if test "x$has_colon" = x; then 45991 # Not in mixed or Windows style, start by that. 45992 new_path=`cmd //c echo $path` 45993 fi 45994 45995 45996 input_path="$new_path" 45997 # Check if we need to convert this using DOS-style short mode. If the path 45998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45999 # take no chances and rewrite it. 46000 # Note: m4 eats our [], so we need to use [ and ] instead. 46001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46002 if test "x$has_forbidden_chars" != x; then 46003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46005 fi 46006 46007 46008 windows_path="$new_path" 46009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46010 unix_path=`$CYGPATH -u "$windows_path"` 46011 new_path="$unix_path" 46012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46014 new_path="$unix_path" 46015 fi 46016 46017 if test "x$path" != "x$new_path"; then 46018 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46020 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46021 fi 46022 46023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46025 46026 else 46027 # We're on a posix platform. Hooray! :) 46028 path="$POTENTIAL_FREETYPE_LIB_PATH" 46029 has_space=`$ECHO "$path" | $GREP " "` 46030 if test "x$has_space" != x; then 46031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46034 fi 46035 46036 # Use eval to expand a potential ~ 46037 eval path="$path" 46038 if test ! -f "$path" && test ! -d "$path"; then 46039 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46040 fi 46041 46042 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46043 fi 46044 46045 46046 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46048 $as_echo_n "checking for freetype includes... " >&6; } 46049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46050 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46051 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46053 $as_echo_n "checking for freetype libraries... " >&6; } 46054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46055 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46056 fi 46057 46058 if test "x$FOUND_FREETYPE" != xyes; then 46059 46060 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 46061 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 46062 METHOD="well-known location" 46063 46064 # First check if the files exists. 46065 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 46066 # We found an arbitrary include file. That's a good sign. 46067 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 46068 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 46069 FOUND_FREETYPE=yes 46070 46071 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 46072 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 46073 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 46074 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 46075 FOUND_FREETYPE=no 46076 else 46077 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46078 # On Windows, we will need both .lib and .dll file. 46079 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 46080 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 46081 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 46082 FOUND_FREETYPE=no 46083 fi 46084 elif test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64 && test -s "$POTENTIAL_FREETYPE_LIB_PATH/amd64/$FREETYPE_LIB_NAME"; then 46085 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 46086 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 46087 fi 46088 fi 46089 fi 46090 46091 if test "x$FOUND_FREETYPE" = xyes; then 46092 46093 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46094 46095 # Input might be given as Windows format, start by converting to 46096 # unix format. 46097 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46098 new_path=`$CYGPATH -u "$path"` 46099 46100 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46101 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46102 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46103 # "foo.exe" is OK but "foo" is an error. 46104 # 46105 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46106 # It is also a way to make sure we got the proper file name for the real test later on. 46107 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46108 if test "x$test_shortpath" = x; then 46109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46110 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46111 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 46112 fi 46113 46114 # Call helper function which possibly converts this using DOS-style short mode. 46115 # If so, the updated path is stored in $new_path. 46116 46117 input_path="$new_path" 46118 # Check if we need to convert this using DOS-style short mode. If the path 46119 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46120 # take no chances and rewrite it. 46121 # Note: m4 eats our [], so we need to use [ and ] instead. 46122 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46123 if test "x$has_forbidden_chars" != x; then 46124 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46125 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46126 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46127 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46128 # Going to short mode and back again did indeed matter. Since short mode is 46129 # case insensitive, let's make it lowercase to improve readability. 46130 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46131 # Now convert it back to Unix-stile (cygpath) 46132 input_path=`$CYGPATH -u "$shortmode_path"` 46133 new_path="$input_path" 46134 fi 46135 fi 46136 46137 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46138 if test "x$test_cygdrive_prefix" = x; then 46139 # As a simple fix, exclude /usr/bin since it's not a real path. 46140 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46141 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46142 # a path prefixed by /cygdrive for fixpath to work. 46143 new_path="$CYGWIN_ROOT_PATH$input_path" 46144 fi 46145 fi 46146 46147 46148 if test "x$path" != "x$new_path"; then 46149 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46151 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46152 fi 46153 46154 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46155 46156 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46157 has_colon=`$ECHO $path | $GREP ^.:` 46158 new_path="$path" 46159 if test "x$has_colon" = x; then 46160 # Not in mixed or Windows style, start by that. 46161 new_path=`cmd //c echo $path` 46162 fi 46163 46164 46165 input_path="$new_path" 46166 # Check if we need to convert this using DOS-style short mode. If the path 46167 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46168 # take no chances and rewrite it. 46169 # Note: m4 eats our [], so we need to use [ and ] instead. 46170 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46171 if test "x$has_forbidden_chars" != x; then 46172 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46173 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46174 fi 46175 46176 46177 windows_path="$new_path" 46178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46179 unix_path=`$CYGPATH -u "$windows_path"` 46180 new_path="$unix_path" 46181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46183 new_path="$unix_path" 46184 fi 46185 46186 if test "x$path" != "x$new_path"; then 46187 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 46188 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46189 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46190 fi 46191 46192 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46193 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46194 46195 else 46196 # We're on a posix platform. Hooray! :) 46197 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46198 has_space=`$ECHO "$path" | $GREP " "` 46199 if test "x$has_space" != x; then 46200 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46201 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46202 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46203 fi 46204 46205 # Use eval to expand a potential ~ 46206 eval path="$path" 46207 if test ! -f "$path" && test ! -d "$path"; then 46208 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46209 fi 46210 46211 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46212 fi 46213 46214 46215 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46216 46217 # Input might be given as Windows format, start by converting to 46218 # unix format. 46219 path="$POTENTIAL_FREETYPE_LIB_PATH" 46220 new_path=`$CYGPATH -u "$path"` 46221 46222 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46223 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46224 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46225 # "foo.exe" is OK but "foo" is an error. 46226 # 46227 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46228 # It is also a way to make sure we got the proper file name for the real test later on. 46229 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46230 if test "x$test_shortpath" = x; then 46231 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46232 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46233 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 46234 fi 46235 46236 # Call helper function which possibly converts this using DOS-style short mode. 46237 # If so, the updated path is stored in $new_path. 46238 46239 input_path="$new_path" 46240 # Check if we need to convert this using DOS-style short mode. If the path 46241 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46242 # take no chances and rewrite it. 46243 # Note: m4 eats our [], so we need to use [ and ] instead. 46244 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46245 if test "x$has_forbidden_chars" != x; then 46246 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46247 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46248 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46249 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46250 # Going to short mode and back again did indeed matter. Since short mode is 46251 # case insensitive, let's make it lowercase to improve readability. 46252 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46253 # Now convert it back to Unix-stile (cygpath) 46254 input_path=`$CYGPATH -u "$shortmode_path"` 46255 new_path="$input_path" 46256 fi 46257 fi 46258 46259 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46260 if test "x$test_cygdrive_prefix" = x; then 46261 # As a simple fix, exclude /usr/bin since it's not a real path. 46262 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46263 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46264 # a path prefixed by /cygdrive for fixpath to work. 46265 new_path="$CYGWIN_ROOT_PATH$input_path" 46266 fi 46267 fi 46268 46269 46270 if test "x$path" != "x$new_path"; then 46271 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46272 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46273 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46274 fi 46275 46276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46277 46278 path="$POTENTIAL_FREETYPE_LIB_PATH" 46279 has_colon=`$ECHO $path | $GREP ^.:` 46280 new_path="$path" 46281 if test "x$has_colon" = x; then 46282 # Not in mixed or Windows style, start by that. 46283 new_path=`cmd //c echo $path` 46284 fi 46285 46286 46287 input_path="$new_path" 46288 # Check if we need to convert this using DOS-style short mode. If the path 46289 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46290 # take no chances and rewrite it. 46291 # Note: m4 eats our [], so we need to use [ and ] instead. 46292 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46293 if test "x$has_forbidden_chars" != x; then 46294 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46295 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46296 fi 46297 46298 46299 windows_path="$new_path" 46300 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46301 unix_path=`$CYGPATH -u "$windows_path"` 46302 new_path="$unix_path" 46303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46304 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46305 new_path="$unix_path" 46306 fi 46307 46308 if test "x$path" != "x$new_path"; then 46309 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46311 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46312 fi 46313 46314 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46315 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46316 46317 else 46318 # We're on a posix platform. Hooray! :) 46319 path="$POTENTIAL_FREETYPE_LIB_PATH" 46320 has_space=`$ECHO "$path" | $GREP " "` 46321 if test "x$has_space" != x; then 46322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46323 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46324 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46325 fi 46326 46327 # Use eval to expand a potential ~ 46328 eval path="$path" 46329 if test ! -f "$path" && test ! -d "$path"; then 46330 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46331 fi 46332 46333 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46334 fi 46335 46336 46337 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46339 $as_echo_n "checking for freetype includes... " >&6; } 46340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46341 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46342 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46344 $as_echo_n "checking for freetype libraries... " >&6; } 46345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46346 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46347 fi 46348 46349 fi 46350 fi 46351 fi 46352 fi 46353 fi # end check in well-known locations 46354 46355 if test "x$FOUND_FREETYPE" != xyes; then 46356 46357 # Print a helpful message on how to acquire the necessary build dependency. 46358 # freetype is the help tag: freetype, cups, pulse, alsa etc 46359 MISSING_DEPENDENCY=freetype 46360 46361 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46362 cygwin_help $MISSING_DEPENDENCY 46363 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46364 msys_help $MISSING_DEPENDENCY 46365 else 46366 PKGHANDLER_COMMAND= 46367 46368 case $PKGHANDLER in 46369 apt-get) 46370 apt_help $MISSING_DEPENDENCY ;; 46371 yum) 46372 yum_help $MISSING_DEPENDENCY ;; 46373 port) 46374 port_help $MISSING_DEPENDENCY ;; 46375 pkgutil) 46376 pkgutil_help $MISSING_DEPENDENCY ;; 46377 pkgadd) 46378 pkgadd_help $MISSING_DEPENDENCY ;; 46379 esac 46380 46381 if test "x$PKGHANDLER_COMMAND" != x; then 46382 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46383 fi 46384 fi 46385 46386 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 46387 fi 46388 fi # end user specified settings 46389 46390 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 46391 if test "x$FREETYPE_CFLAGS" = x; then 46392 46393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46394 46395 # Input might be given as Windows format, start by converting to 46396 # unix format. 46397 path="$FREETYPE_INCLUDE_PATH" 46398 new_path=`$CYGPATH -u "$path"` 46399 46400 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46401 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46402 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46403 # "foo.exe" is OK but "foo" is an error. 46404 # 46405 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46406 # It is also a way to make sure we got the proper file name for the real test later on. 46407 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46408 if test "x$test_shortpath" = x; then 46409 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46410 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46411 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 46412 fi 46413 46414 # Call helper function which possibly converts this using DOS-style short mode. 46415 # If so, the updated path is stored in $new_path. 46416 46417 input_path="$new_path" 46418 # Check if we need to convert this using DOS-style short mode. If the path 46419 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46420 # take no chances and rewrite it. 46421 # Note: m4 eats our [], so we need to use [ and ] instead. 46422 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46423 if test "x$has_forbidden_chars" != x; then 46424 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46425 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46426 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46427 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46428 # Going to short mode and back again did indeed matter. Since short mode is 46429 # case insensitive, let's make it lowercase to improve readability. 46430 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46431 # Now convert it back to Unix-stile (cygpath) 46432 input_path=`$CYGPATH -u "$shortmode_path"` 46433 new_path="$input_path" 46434 fi 46435 fi 46436 46437 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46438 if test "x$test_cygdrive_prefix" = x; then 46439 # As a simple fix, exclude /usr/bin since it's not a real path. 46440 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46441 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46442 # a path prefixed by /cygdrive for fixpath to work. 46443 new_path="$CYGWIN_ROOT_PATH$input_path" 46444 fi 46445 fi 46446 46447 46448 if test "x$path" != "x$new_path"; then 46449 FREETYPE_INCLUDE_PATH="$new_path" 46450 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46451 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46452 fi 46453 46454 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46455 46456 path="$FREETYPE_INCLUDE_PATH" 46457 has_colon=`$ECHO $path | $GREP ^.:` 46458 new_path="$path" 46459 if test "x$has_colon" = x; then 46460 # Not in mixed or Windows style, start by that. 46461 new_path=`cmd //c echo $path` 46462 fi 46463 46464 46465 input_path="$new_path" 46466 # Check if we need to convert this using DOS-style short mode. If the path 46467 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46468 # take no chances and rewrite it. 46469 # Note: m4 eats our [], so we need to use [ and ] instead. 46470 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46471 if test "x$has_forbidden_chars" != x; then 46472 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46473 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46474 fi 46475 46476 46477 windows_path="$new_path" 46478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46479 unix_path=`$CYGPATH -u "$windows_path"` 46480 new_path="$unix_path" 46481 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46482 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46483 new_path="$unix_path" 46484 fi 46485 46486 if test "x$path" != "x$new_path"; then 46487 FREETYPE_INCLUDE_PATH="$new_path" 46488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46489 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46490 fi 46491 46492 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46493 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46494 46495 else 46496 # We're on a posix platform. Hooray! :) 46497 path="$FREETYPE_INCLUDE_PATH" 46498 has_space=`$ECHO "$path" | $GREP " "` 46499 if test "x$has_space" != x; then 46500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46501 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46502 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46503 fi 46504 46505 # Use eval to expand a potential ~ 46506 eval path="$path" 46507 if test ! -f "$path" && test ! -d "$path"; then 46508 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46509 fi 46510 46511 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46512 fi 46513 46514 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 46515 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 46516 else 46517 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 46518 fi 46519 fi 46520 46521 if test "x$FREETYPE_LIBS" = x; then 46522 46523 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46524 46525 # Input might be given as Windows format, start by converting to 46526 # unix format. 46527 path="$FREETYPE_LIB_PATH" 46528 new_path=`$CYGPATH -u "$path"` 46529 46530 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46531 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46532 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46533 # "foo.exe" is OK but "foo" is an error. 46534 # 46535 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46536 # It is also a way to make sure we got the proper file name for the real test later on. 46537 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46538 if test "x$test_shortpath" = x; then 46539 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46540 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46541 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 46542 fi 46543 46544 # Call helper function which possibly converts this using DOS-style short mode. 46545 # If so, the updated path is stored in $new_path. 46546 46547 input_path="$new_path" 46548 # Check if we need to convert this using DOS-style short mode. If the path 46549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46550 # take no chances and rewrite it. 46551 # Note: m4 eats our [], so we need to use [ and ] instead. 46552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46553 if test "x$has_forbidden_chars" != x; then 46554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46555 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46556 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46557 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46558 # Going to short mode and back again did indeed matter. Since short mode is 46559 # case insensitive, let's make it lowercase to improve readability. 46560 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46561 # Now convert it back to Unix-stile (cygpath) 46562 input_path=`$CYGPATH -u "$shortmode_path"` 46563 new_path="$input_path" 46564 fi 46565 fi 46566 46567 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46568 if test "x$test_cygdrive_prefix" = x; then 46569 # As a simple fix, exclude /usr/bin since it's not a real path. 46570 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46571 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46572 # a path prefixed by /cygdrive for fixpath to work. 46573 new_path="$CYGWIN_ROOT_PATH$input_path" 46574 fi 46575 fi 46576 46577 46578 if test "x$path" != "x$new_path"; then 46579 FREETYPE_LIB_PATH="$new_path" 46580 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46581 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46582 fi 46583 46584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46585 46586 path="$FREETYPE_LIB_PATH" 46587 has_colon=`$ECHO $path | $GREP ^.:` 46588 new_path="$path" 46589 if test "x$has_colon" = x; then 46590 # Not in mixed or Windows style, start by that. 46591 new_path=`cmd //c echo $path` 46592 fi 46593 46594 46595 input_path="$new_path" 46596 # Check if we need to convert this using DOS-style short mode. If the path 46597 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46598 # take no chances and rewrite it. 46599 # Note: m4 eats our [], so we need to use [ and ] instead. 46600 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46601 if test "x$has_forbidden_chars" != x; then 46602 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46603 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46604 fi 46605 46606 46607 windows_path="$new_path" 46608 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46609 unix_path=`$CYGPATH -u "$windows_path"` 46610 new_path="$unix_path" 46611 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46612 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46613 new_path="$unix_path" 46614 fi 46615 46616 if test "x$path" != "x$new_path"; then 46617 FREETYPE_LIB_PATH="$new_path" 46618 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46619 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46620 fi 46621 46622 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46623 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46624 46625 else 46626 # We're on a posix platform. Hooray! :) 46627 path="$FREETYPE_LIB_PATH" 46628 has_space=`$ECHO "$path" | $GREP " "` 46629 if test "x$has_space" != x; then 46630 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46631 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46632 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46633 fi 46634 46635 # Use eval to expand a potential ~ 46636 eval path="$path" 46637 if test ! -f "$path" && test ! -d "$path"; then 46638 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46639 fi 46640 46641 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46642 fi 46643 46644 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46645 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 46646 else 46647 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 46648 fi 46649 fi 46650 46651 # Try to compile it 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 46653 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 46654 ac_ext=cpp 46655 ac_cpp='$CXXCPP $CPPFLAGS' 46656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46659 46660 PREV_CXXCFLAGS="$CXXFLAGS" 46661 PREV_LIBS="$LIBS" 46662 PREV_CXX="$CXX" 46663 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 46664 LIBS="$LIBS $FREETYPE_LIBS" 46665 CXX="$FIXPATH $CXX" 46666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46667 /* end confdefs.h. */ 46668 46669 #include<ft2build.h> 46670 #include FT_FREETYPE_H 46671 int main () { 46672 FT_Init_FreeType(NULL); 46673 return 0; 46674 } 46675 46676 _ACEOF 46677 if ac_fn_cxx_try_link "$LINENO"; then : 46678 46679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46680 $as_echo "yes" >&6; } 46681 46682 else 46683 46684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46685 $as_echo "no" >&6; } 46686 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 46687 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 46688 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 46689 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 46690 46691 46692 # Print a helpful message on how to acquire the necessary build dependency. 46693 # freetype is the help tag: freetype, cups, pulse, alsa etc 46694 MISSING_DEPENDENCY=freetype 46695 46696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46697 cygwin_help $MISSING_DEPENDENCY 46698 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46699 msys_help $MISSING_DEPENDENCY 46700 else 46701 PKGHANDLER_COMMAND= 46702 46703 case $PKGHANDLER in 46704 apt-get) 46705 apt_help $MISSING_DEPENDENCY ;; 46706 yum) 46707 yum_help $MISSING_DEPENDENCY ;; 46708 port) 46709 port_help $MISSING_DEPENDENCY ;; 46710 pkgutil) 46711 pkgutil_help $MISSING_DEPENDENCY ;; 46712 pkgadd) 46713 pkgadd_help $MISSING_DEPENDENCY ;; 46714 esac 46715 46716 if test "x$PKGHANDLER_COMMAND" != x; then 46717 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46718 fi 46719 fi 46720 46721 46722 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 46723 46724 46725 fi 46726 rm -f core conftest.err conftest.$ac_objext \ 46727 conftest$ac_exeext conftest.$ac_ext 46728 CXXCFLAGS="$PREV_CXXFLAGS" 46729 LIBS="$PREV_LIBS" 46730 CXX="$PREV_CXX" 46731 ac_ext=cpp 46732 ac_cpp='$CXXCPP $CPPFLAGS' 46733 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46734 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46735 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46736 46737 46738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 46739 $as_echo_n "checking if we should bundle freetype... " >&6; } 46740 if test "x$BUNDLE_FREETYPE" = xyes; then 46741 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 46742 fi 46743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 46744 $as_echo "$BUNDLE_FREETYPE" >&6; } 46745 46746 fi # end freetype needed 46747 46748 46749 46750 46751 46752 46753 46754 ############################################################################### 46755 # 46756 # Check for alsa headers and libraries. Used on Linux/GNU systems. 46757 # 46758 46759 # Check whether --with-alsa was given. 46760 if test "${with_alsa+set}" = set; then : 46761 withval=$with_alsa; 46762 fi 46763 46764 46765 # Check whether --with-alsa-include was given. 46766 if test "${with_alsa_include+set}" = set; then : 46767 withval=$with_alsa_include; 46768 fi 46769 46770 46771 # Check whether --with-alsa-lib was given. 46772 if test "${with_alsa_lib+set}" = set; then : 46773 withval=$with_alsa_lib; 46774 fi 46775 46776 46777 if test "x$ALSA_NOT_NEEDED" = xyes; then 46778 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 46779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 46780 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 46781 fi 46782 ALSA_CFLAGS= 46783 ALSA_LIBS= 46784 else 46785 ALSA_FOUND=no 46786 46787 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 46788 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 46789 fi 46790 46791 if test "x${with_alsa}" != x; then 46792 ALSA_LIBS="-L${with_alsa}/lib -lasound" 46793 ALSA_CFLAGS="-I${with_alsa}/include" 46794 ALSA_FOUND=yes 46795 fi 46796 if test "x${with_alsa_include}" != x; then 46797 ALSA_CFLAGS="-I${with_alsa_include}" 46798 ALSA_FOUND=yes 46799 fi 46800 if test "x${with_alsa_lib}" != x; then 46801 ALSA_LIBS="-L${with_alsa_lib} -lasound" 46802 ALSA_FOUND=yes 46803 fi 46804 if test "x$ALSA_FOUND" = xno; then 46805 46806 46807 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 46808 # Source the builddeps file again, to make sure it uses the latest variables! 46809 . $builddepsfile 46810 # Look for a target and build machine specific resource! 46811 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 46812 if test "x$resource" = x; then 46813 # Ok, lets instead look for a target specific resource 46814 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 46815 fi 46816 if test "x$resource" = x; then 46817 # Ok, lets instead look for a build specific resource 46818 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 46819 fi 46820 if test "x$resource" = x; then 46821 # Ok, lets instead look for a generic resource 46822 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 46823 resource=${builddep_alsa} 46824 fi 46825 if test "x$resource" != x; then 46826 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 46827 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 46828 # If the resource in the builddeps.conf file is an existing directory, 46829 # for example /java/linux/cups 46830 if test -d ${resource}; then 46831 depdir=${resource} 46832 else 46833 46834 # alsa is for example mymodule 46835 # $resource is for example libs/general/libmymod_1_2_3.zip 46836 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 46837 # $with_builddeps_dir is for example /localhome/builddeps 46838 # depdir is the name of the variable into which we store the depdir, eg MYMOD 46839 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 46840 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 46841 filename=`basename $resource` 46842 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 46843 filebase=${filename%%.*} 46844 extension=${filename#*.} 46845 installdir=$with_builddeps_dir/$filebase 46846 if test ! -f $installdir/$filename.unpacked; then 46847 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 46848 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 46849 if test ! -d $installdir; then 46850 mkdir -p $installdir 46851 fi 46852 if test ! -d $installdir; then 46853 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 46854 fi 46855 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 46856 touch $tmpfile 46857 if test ! -f $tmpfile; then 46858 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 46859 fi 46860 46861 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 46862 # $tmpfile is the local file name for the downloaded file. 46863 VALID_TOOL=no 46864 if test "x$BDEPS_FTP" = xwget; then 46865 VALID_TOOL=yes 46866 wget -O $tmpfile $with_builddeps_server/$resource 46867 fi 46868 if test "x$BDEPS_FTP" = xlftp; then 46869 VALID_TOOL=yes 46870 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 46871 fi 46872 if test "x$BDEPS_FTP" = xftp; then 46873 VALID_TOOL=yes 46874 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 46875 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 46876 FTPUSERPWD=${FTPSERVER%%@*} 46877 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 46878 FTPUSER=${userpwd%%:*} 46879 FTPPWD=${userpwd#*@} 46880 FTPSERVER=${FTPSERVER#*@} 46881 else 46882 FTPUSER=ftp 46883 FTPPWD=ftp 46884 fi 46885 # the "pass" command does not work on some 46886 # ftp clients (read ftp.exe) but if it works, 46887 # passive mode is better! 46888 ( \ 46889 echo "user $FTPUSER $FTPPWD" ; \ 46890 echo "pass" ; \ 46891 echo "bin" ; \ 46892 echo "get $FTPPATH $tmpfile" ; \ 46893 ) | ftp -in $FTPSERVER 46894 fi 46895 if test "x$VALID_TOOL" != xyes; then 46896 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 46897 fi 46898 46899 mv $tmpfile $installdir/$filename 46900 if test ! -s $installdir/$filename; then 46901 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 46902 fi 46903 case "$extension" in 46904 zip) echo "Unzipping $installdir/$filename..." 46905 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 46906 ;; 46907 tar.gz) echo "Untaring $installdir/$filename..." 46908 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46909 ;; 46910 tgz) echo "Untaring $installdir/$filename..." 46911 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46912 ;; 46913 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 46914 ;; 46915 esac 46916 fi 46917 if test -f $installdir/$filename.unpacked; then 46918 depdir=$installdir 46919 fi 46920 46921 fi 46922 # Source the builddeps file again, because in the previous command, the depdir 46923 # was updated to point at the current build dependency install directory. 46924 . $builddepsfile 46925 # Now extract variables from the builddeps.conf files. 46926 theroot=${builddep_alsa_ROOT} 46927 thecflags=${builddep_alsa_CFLAGS} 46928 thelibs=${builddep_alsa_LIBS} 46929 if test "x$depdir" = x; then 46930 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 46931 fi 46932 ALSA=$depdir 46933 if test "x$theroot" != x; then 46934 ALSA="$theroot" 46935 fi 46936 if test "x$thecflags" != x; then 46937 ALSA_CFLAGS="$thecflags" 46938 fi 46939 if test "x$thelibs" != x; then 46940 ALSA_LIBS="$thelibs" 46941 fi 46942 ALSA_FOUND=yes 46943 else ALSA_FOUND=no 46944 46945 fi 46946 else ALSA_FOUND=no 46947 46948 fi 46949 46950 fi 46951 if test "x$ALSA_FOUND" = xno; then 46952 46953 pkg_failed=no 46954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 46955 $as_echo_n "checking for ALSA... " >&6; } 46956 46957 if test -n "$ALSA_CFLAGS"; then 46958 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 46959 elif test -n "$PKG_CONFIG"; then 46960 if test -n "$PKG_CONFIG" && \ 46961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46962 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46963 ac_status=$? 46964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46965 test $ac_status = 0; }; then 46966 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 46967 else 46968 pkg_failed=yes 46969 fi 46970 else 46971 pkg_failed=untried 46972 fi 46973 if test -n "$ALSA_LIBS"; then 46974 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 46975 elif test -n "$PKG_CONFIG"; then 46976 if test -n "$PKG_CONFIG" && \ 46977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46978 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46979 ac_status=$? 46980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46981 test $ac_status = 0; }; then 46982 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 46983 else 46984 pkg_failed=yes 46985 fi 46986 else 46987 pkg_failed=untried 46988 fi 46989 46990 46991 46992 if test $pkg_failed = yes; then 46993 46994 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 46995 _pkg_short_errors_supported=yes 46996 else 46997 _pkg_short_errors_supported=no 46998 fi 46999 if test $_pkg_short_errors_supported = yes; then 47000 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 47001 else 47002 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 47003 fi 47004 # Put the nasty error message in config.log where it belongs 47005 echo "$ALSA_PKG_ERRORS" >&5 47006 47007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47008 $as_echo "no" >&6; } 47009 ALSA_FOUND=no 47010 elif test $pkg_failed = untried; then 47011 ALSA_FOUND=no 47012 else 47013 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 47014 ALSA_LIBS=$pkg_cv_ALSA_LIBS 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47016 $as_echo "yes" >&6; } 47017 ALSA_FOUND=yes 47018 fi 47019 fi 47020 if test "x$ALSA_FOUND" = xno; then 47021 for ac_header in alsa/asoundlib.h 47022 do : 47023 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 47024 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 47025 cat >>confdefs.h <<_ACEOF 47026 #define HAVE_ALSA_ASOUNDLIB_H 1 47027 _ACEOF 47028 47029 ALSA_FOUND=yes 47030 ALSA_CFLAGS=-Iignoreme 47031 ALSA_LIBS=-lasound 47032 DEFAULT_ALSA=yes 47033 47034 else 47035 ALSA_FOUND=no 47036 fi 47037 47038 done 47039 47040 fi 47041 if test "x$ALSA_FOUND" = xno; then 47042 47043 # Print a helpful message on how to acquire the necessary build dependency. 47044 # alsa is the help tag: freetype, cups, pulse, alsa etc 47045 MISSING_DEPENDENCY=alsa 47046 47047 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47048 cygwin_help $MISSING_DEPENDENCY 47049 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47050 msys_help $MISSING_DEPENDENCY 47051 else 47052 PKGHANDLER_COMMAND= 47053 47054 case $PKGHANDLER in 47055 apt-get) 47056 apt_help $MISSING_DEPENDENCY ;; 47057 yum) 47058 yum_help $MISSING_DEPENDENCY ;; 47059 port) 47060 port_help $MISSING_DEPENDENCY ;; 47061 pkgutil) 47062 pkgutil_help $MISSING_DEPENDENCY ;; 47063 pkgadd) 47064 pkgadd_help $MISSING_DEPENDENCY ;; 47065 esac 47066 47067 if test "x$PKGHANDLER_COMMAND" != x; then 47068 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 47069 fi 47070 fi 47071 47072 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 47073 fi 47074 fi 47075 47076 47077 47078 47079 47080 47081 ############################################################################### 47082 # 47083 # Check for the jpeg library 47084 # 47085 47086 USE_EXTERNAL_LIBJPEG=true 47087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 47088 $as_echo_n "checking for main in -ljpeg... " >&6; } 47089 if ${ac_cv_lib_jpeg_main+:} false; then : 47090 $as_echo_n "(cached) " >&6 47091 else 47092 ac_check_lib_save_LIBS=$LIBS 47093 LIBS="-ljpeg $LIBS" 47094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47095 /* end confdefs.h. */ 47096 47097 47098 int 47099 main () 47100 { 47101 return main (); 47102 ; 47103 return 0; 47104 } 47105 _ACEOF 47106 if ac_fn_cxx_try_link "$LINENO"; then : 47107 ac_cv_lib_jpeg_main=yes 47108 else 47109 ac_cv_lib_jpeg_main=no 47110 fi 47111 rm -f core conftest.err conftest.$ac_objext \ 47112 conftest$ac_exeext conftest.$ac_ext 47113 LIBS=$ac_check_lib_save_LIBS 47114 fi 47115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 47116 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 47117 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 47118 cat >>confdefs.h <<_ACEOF 47119 #define HAVE_LIBJPEG 1 47120 _ACEOF 47121 47122 LIBS="-ljpeg $LIBS" 47123 47124 else 47125 USE_EXTERNAL_LIBJPEG=false 47126 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 47127 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 47128 47129 fi 47130 47131 47132 47133 ############################################################################### 47134 # 47135 # Check for the gif library 47136 # 47137 47138 47139 # Check whether --with-giflib was given. 47140 if test "${with_giflib+set}" = set; then : 47141 withval=$with_giflib; 47142 fi 47143 47144 47145 47146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 47147 $as_echo_n "checking for which giflib to use... " >&6; } 47148 47149 # default is bundled 47150 DEFAULT_GIFLIB=bundled 47151 47152 # 47153 # if user didn't specify, use DEFAULT_GIFLIB 47154 # 47155 if test "x${with_giflib}" = "x"; then 47156 with_giflib=${DEFAULT_GIFLIB} 47157 fi 47158 47159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 47160 $as_echo "${with_giflib}" >&6; } 47161 47162 if test "x${with_giflib}" = "xbundled"; then 47163 USE_EXTERNAL_LIBGIF=false 47164 elif test "x${with_giflib}" = "xsystem"; then 47165 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 47166 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 47167 47168 else 47169 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 47170 fi 47171 47172 47173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 47174 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 47175 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 47176 $as_echo_n "(cached) " >&6 47177 else 47178 ac_check_lib_save_LIBS=$LIBS 47179 LIBS="-lgif $LIBS" 47180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47181 /* end confdefs.h. */ 47182 47183 /* Override any GCC internal prototype to avoid an error. 47184 Use char because int might match the return type of a GCC 47185 builtin and then its argument prototype would still apply. */ 47186 #ifdef __cplusplus 47187 extern "C" 47188 #endif 47189 char DGifGetCode (); 47190 int 47191 main () 47192 { 47193 return DGifGetCode (); 47194 ; 47195 return 0; 47196 } 47197 _ACEOF 47198 if ac_fn_cxx_try_link "$LINENO"; then : 47199 ac_cv_lib_gif_DGifGetCode=yes 47200 else 47201 ac_cv_lib_gif_DGifGetCode=no 47202 fi 47203 rm -f core conftest.err conftest.$ac_objext \ 47204 conftest$ac_exeext conftest.$ac_ext 47205 LIBS=$ac_check_lib_save_LIBS 47206 fi 47207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 47208 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 47209 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 47210 cat >>confdefs.h <<_ACEOF 47211 #define HAVE_LIBGIF 1 47212 _ACEOF 47213 47214 LIBS="-lgif $LIBS" 47215 47216 else 47217 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 47218 fi 47219 47220 47221 USE_EXTERNAL_LIBGIF=true 47222 else 47223 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 47224 fi 47225 47226 47227 ############################################################################### 47228 # 47229 # Check for the png library 47230 # 47231 47232 47233 # Check whether --with-libpng was given. 47234 if test "${with_libpng+set}" = set; then : 47235 withval=$with_libpng; 47236 fi 47237 47238 47239 47240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 47241 $as_echo_n "checking for which libpng to use... " >&6; } 47242 47243 # default is bundled 47244 DEFAULT_LIBPNG=bundled 47245 47246 # 47247 # if user didn't specify, use DEFAULT_LIBPNG 47248 # 47249 if test "x${with_libpng}" = "x"; then 47250 with_libpng=${DEFAULT_LIBPNG} 47251 fi 47252 47253 if test "x${with_libpng}" = "xbundled"; then 47254 USE_EXTERNAL_LIBPNG=false 47255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47256 $as_echo "bundled" >&6; } 47257 elif test "x${with_libpng}" = "xsystem"; then 47258 47259 pkg_failed=no 47260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 47261 $as_echo_n "checking for PNG... " >&6; } 47262 47263 if test -n "$PNG_CFLAGS"; then 47264 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 47265 elif test -n "$PKG_CONFIG"; then 47266 if test -n "$PKG_CONFIG" && \ 47267 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47268 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47269 ac_status=$? 47270 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47271 test $ac_status = 0; }; then 47272 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 47273 else 47274 pkg_failed=yes 47275 fi 47276 else 47277 pkg_failed=untried 47278 fi 47279 if test -n "$PNG_LIBS"; then 47280 pkg_cv_PNG_LIBS="$PNG_LIBS" 47281 elif test -n "$PKG_CONFIG"; then 47282 if test -n "$PKG_CONFIG" && \ 47283 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47284 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47285 ac_status=$? 47286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47287 test $ac_status = 0; }; then 47288 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 47289 else 47290 pkg_failed=yes 47291 fi 47292 else 47293 pkg_failed=untried 47294 fi 47295 47296 47297 47298 if test $pkg_failed = yes; then 47299 47300 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47301 _pkg_short_errors_supported=yes 47302 else 47303 _pkg_short_errors_supported=no 47304 fi 47305 if test $_pkg_short_errors_supported = yes; then 47306 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 47307 else 47308 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 47309 fi 47310 # Put the nasty error message in config.log where it belongs 47311 echo "$PNG_PKG_ERRORS" >&5 47312 47313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47314 $as_echo "no" >&6; } 47315 LIBPNG_FOUND=no 47316 elif test $pkg_failed = untried; then 47317 LIBPNG_FOUND=no 47318 else 47319 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 47320 PNG_LIBS=$pkg_cv_PNG_LIBS 47321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47322 $as_echo "yes" >&6; } 47323 LIBPNG_FOUND=yes 47324 fi 47325 if test "x${LIBPNG_FOUND}" = "xyes"; then 47326 USE_EXTERNAL_LIBPNG=true 47327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47328 $as_echo "system" >&6; } 47329 else 47330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47331 $as_echo "system not found" >&6; } 47332 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 47333 fi 47334 else 47335 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 47336 fi 47337 47338 47339 ############################################################################### 47340 # 47341 # Check for the zlib library 47342 # 47343 47344 47345 # Check whether --with-zlib was given. 47346 if test "${with_zlib+set}" = set; then : 47347 withval=$with_zlib; 47348 fi 47349 47350 47351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 47352 $as_echo_n "checking for compress in -lz... " >&6; } 47353 if ${ac_cv_lib_z_compress+:} false; then : 47354 $as_echo_n "(cached) " >&6 47355 else 47356 ac_check_lib_save_LIBS=$LIBS 47357 LIBS="-lz $LIBS" 47358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47359 /* end confdefs.h. */ 47360 47361 /* Override any GCC internal prototype to avoid an error. 47362 Use char because int might match the return type of a GCC 47363 builtin and then its argument prototype would still apply. */ 47364 #ifdef __cplusplus 47365 extern "C" 47366 #endif 47367 char compress (); 47368 int 47369 main () 47370 { 47371 return compress (); 47372 ; 47373 return 0; 47374 } 47375 _ACEOF 47376 if ac_fn_cxx_try_link "$LINENO"; then : 47377 ac_cv_lib_z_compress=yes 47378 else 47379 ac_cv_lib_z_compress=no 47380 fi 47381 rm -f core conftest.err conftest.$ac_objext \ 47382 conftest$ac_exeext conftest.$ac_ext 47383 LIBS=$ac_check_lib_save_LIBS 47384 fi 47385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 47386 $as_echo "$ac_cv_lib_z_compress" >&6; } 47387 if test "x$ac_cv_lib_z_compress" = xyes; then : 47388 ZLIB_FOUND=yes 47389 else 47390 ZLIB_FOUND=no 47391 fi 47392 47393 47394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 47395 $as_echo_n "checking for which zlib to use... " >&6; } 47396 47397 DEFAULT_ZLIB=bundled 47398 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47399 # 47400 # On macosx default is system...on others default is 47401 # 47402 DEFAULT_ZLIB=system 47403 fi 47404 47405 if test "x${ZLIB_FOUND}" != "xyes"; then 47406 # 47407 # If we don't find any system...set default to bundled 47408 # 47409 DEFAULT_ZLIB=bundled 47410 fi 47411 47412 # 47413 # If user didn't specify, use DEFAULT_ZLIB 47414 # 47415 if test "x${with_zlib}" = "x"; then 47416 with_zlib=${DEFAULT_ZLIB} 47417 fi 47418 47419 if test "x${with_zlib}" = "xbundled"; then 47420 USE_EXTERNAL_LIBZ=false 47421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47422 $as_echo "bundled" >&6; } 47423 elif test "x${with_zlib}" = "xsystem"; then 47424 if test "x${ZLIB_FOUND}" = "xyes"; then 47425 USE_EXTERNAL_LIBZ=true 47426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47427 $as_echo "system" >&6; } 47428 else 47429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47430 $as_echo "system not found" >&6; } 47431 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 47432 fi 47433 else 47434 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 47435 fi 47436 47437 47438 47439 ############################################################################### 47440 LIBZIP_CAN_USE_MMAP=true 47441 47442 47443 47444 ############################################################################### 47445 # 47446 # Check if altzone exists in time.h 47447 # 47448 47449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47450 /* end confdefs.h. */ 47451 #include <time.h> 47452 int 47453 main () 47454 { 47455 return (int)altzone; 47456 ; 47457 return 0; 47458 } 47459 _ACEOF 47460 if ac_fn_cxx_try_link "$LINENO"; then : 47461 has_altzone=yes 47462 else 47463 has_altzone=no 47464 fi 47465 rm -f core conftest.err conftest.$ac_objext \ 47466 conftest$ac_exeext conftest.$ac_ext 47467 if test "x$has_altzone" = xyes; then 47468 47469 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 47470 47471 fi 47472 47473 ############################################################################### 47474 # 47475 # Check the maths library 47476 # 47477 47478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 47479 $as_echo_n "checking for cos in -lm... " >&6; } 47480 if ${ac_cv_lib_m_cos+:} false; then : 47481 $as_echo_n "(cached) " >&6 47482 else 47483 ac_check_lib_save_LIBS=$LIBS 47484 LIBS="-lm $LIBS" 47485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47486 /* end confdefs.h. */ 47487 47488 /* Override any GCC internal prototype to avoid an error. 47489 Use char because int might match the return type of a GCC 47490 builtin and then its argument prototype would still apply. */ 47491 #ifdef __cplusplus 47492 extern "C" 47493 #endif 47494 char cos (); 47495 int 47496 main () 47497 { 47498 return cos (); 47499 ; 47500 return 0; 47501 } 47502 _ACEOF 47503 if ac_fn_cxx_try_link "$LINENO"; then : 47504 ac_cv_lib_m_cos=yes 47505 else 47506 ac_cv_lib_m_cos=no 47507 fi 47508 rm -f core conftest.err conftest.$ac_objext \ 47509 conftest$ac_exeext conftest.$ac_ext 47510 LIBS=$ac_check_lib_save_LIBS 47511 fi 47512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 47513 $as_echo "$ac_cv_lib_m_cos" >&6; } 47514 if test "x$ac_cv_lib_m_cos" = xyes; then : 47515 cat >>confdefs.h <<_ACEOF 47516 #define HAVE_LIBM 1 47517 _ACEOF 47518 47519 LIBS="-lm $LIBS" 47520 47521 else 47522 47523 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 47524 $as_echo "$as_me: Maths library was not found" >&6;} 47525 47526 47527 fi 47528 47529 47530 47531 ############################################################################### 47532 # 47533 # Check for libdl.so 47534 47535 save_LIBS="$LIBS" 47536 LIBS="" 47537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 47538 $as_echo_n "checking for dlopen in -ldl... " >&6; } 47539 if ${ac_cv_lib_dl_dlopen+:} false; then : 47540 $as_echo_n "(cached) " >&6 47541 else 47542 ac_check_lib_save_LIBS=$LIBS 47543 LIBS="-ldl $LIBS" 47544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47545 /* end confdefs.h. */ 47546 47547 /* Override any GCC internal prototype to avoid an error. 47548 Use char because int might match the return type of a GCC 47549 builtin and then its argument prototype would still apply. */ 47550 #ifdef __cplusplus 47551 extern "C" 47552 #endif 47553 char dlopen (); 47554 int 47555 main () 47556 { 47557 return dlopen (); 47558 ; 47559 return 0; 47560 } 47561 _ACEOF 47562 if ac_fn_cxx_try_link "$LINENO"; then : 47563 ac_cv_lib_dl_dlopen=yes 47564 else 47565 ac_cv_lib_dl_dlopen=no 47566 fi 47567 rm -f core conftest.err conftest.$ac_objext \ 47568 conftest$ac_exeext conftest.$ac_ext 47569 LIBS=$ac_check_lib_save_LIBS 47570 fi 47571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 47572 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 47573 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 47574 cat >>confdefs.h <<_ACEOF 47575 #define HAVE_LIBDL 1 47576 _ACEOF 47577 47578 LIBS="-ldl $LIBS" 47579 47580 fi 47581 47582 LIBDL="$LIBS" 47583 47584 LIBS="$save_LIBS" 47585 47586 47587 ############################################################################### 47588 # 47589 # statically link libstdc++ before C++ ABI is stablized on Linux unless 47590 # dynamic build is configured on command line. 47591 # 47592 47593 # Check whether --with-stdc++lib was given. 47594 if test "${with_stdc__lib+set}" = set; then : 47595 withval=$with_stdc__lib; 47596 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 47597 && test "x$with_stdc__lib" != xdefault; then 47598 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 47599 fi 47600 47601 else 47602 with_stdc__lib=default 47603 47604 fi 47605 47606 47607 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47608 # Test if -lstdc++ works. 47609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 47610 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 47611 ac_ext=cpp 47612 ac_cpp='$CXXCPP $CPPFLAGS' 47613 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47614 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47615 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47616 47617 OLD_CXXFLAGS="$CXXFLAGS" 47618 CXXFLAGS="$CXXFLAGS -lstdc++" 47619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47620 /* end confdefs.h. */ 47621 47622 int 47623 main () 47624 { 47625 return 0; 47626 ; 47627 return 0; 47628 } 47629 _ACEOF 47630 if ac_fn_cxx_try_link "$LINENO"; then : 47631 has_dynamic_libstdcxx=yes 47632 else 47633 has_dynamic_libstdcxx=no 47634 fi 47635 rm -f core conftest.err conftest.$ac_objext \ 47636 conftest$ac_exeext conftest.$ac_ext 47637 CXXFLAGS="$OLD_CXXFLAGS" 47638 ac_ext=cpp 47639 ac_cpp='$CXXCPP $CPPFLAGS' 47640 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47641 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47642 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47643 47644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 47645 $as_echo "$has_dynamic_libstdcxx" >&6; } 47646 47647 # Test if stdc++ can be linked statically. 47648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 47649 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 47650 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 47651 ac_ext=cpp 47652 ac_cpp='$CXXCPP $CPPFLAGS' 47653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47656 47657 OLD_LIBS="$LIBS" 47658 OLD_CXX="$CXX" 47659 LIBS="$STATIC_STDCXX_FLAGS" 47660 CXX="$CC" 47661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47662 /* end confdefs.h. */ 47663 47664 int 47665 main () 47666 { 47667 return 0; 47668 ; 47669 return 0; 47670 } 47671 _ACEOF 47672 if ac_fn_cxx_try_link "$LINENO"; then : 47673 has_static_libstdcxx=yes 47674 else 47675 has_static_libstdcxx=no 47676 fi 47677 rm -f core conftest.err conftest.$ac_objext \ 47678 conftest$ac_exeext conftest.$ac_ext 47679 LIBS="$OLD_LIBS" 47680 CXX="$OLD_CXX" 47681 ac_ext=cpp 47682 ac_cpp='$CXXCPP $CPPFLAGS' 47683 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47684 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47685 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47686 47687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 47688 $as_echo "$has_static_libstdcxx" >&6; } 47689 47690 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 47691 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 47692 fi 47693 47694 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 47695 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 47696 fi 47697 47698 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 47699 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 47700 fi 47701 47702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 47703 $as_echo_n "checking how to link with libstdc++... " >&6; } 47704 # If dynamic was requested, it's available since it would fail above otherwise. 47705 # If dynamic wasn't requested, go with static unless it isn't available. 47706 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47707 LIBCXX="$LIBCXX -lstdc++" 47708 LDCXX="$CXX" 47709 STATIC_CXX_SETTING="STATIC_CXX=false" 47710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 47711 $as_echo "dynamic" >&6; } 47712 else 47713 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 47714 LDCXX="$CC" 47715 STATIC_CXX_SETTING="STATIC_CXX=true" 47716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 47717 $as_echo "static" >&6; } 47718 fi 47719 fi 47720 47721 47722 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47723 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 47724 47725 pkg_failed=no 47726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 47727 $as_echo_n "checking for LIBFFI... " >&6; } 47728 47729 if test -n "$LIBFFI_CFLAGS"; then 47730 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 47731 elif test -n "$PKG_CONFIG"; then 47732 if test -n "$PKG_CONFIG" && \ 47733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47734 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47735 ac_status=$? 47736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47737 test $ac_status = 0; }; then 47738 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 47739 else 47740 pkg_failed=yes 47741 fi 47742 else 47743 pkg_failed=untried 47744 fi 47745 if test -n "$LIBFFI_LIBS"; then 47746 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 47747 elif test -n "$PKG_CONFIG"; then 47748 if test -n "$PKG_CONFIG" && \ 47749 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47750 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47751 ac_status=$? 47752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47753 test $ac_status = 0; }; then 47754 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 47755 else 47756 pkg_failed=yes 47757 fi 47758 else 47759 pkg_failed=untried 47760 fi 47761 47762 47763 47764 if test $pkg_failed = yes; then 47765 47766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47767 _pkg_short_errors_supported=yes 47768 else 47769 _pkg_short_errors_supported=no 47770 fi 47771 if test $_pkg_short_errors_supported = yes; then 47772 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 47773 else 47774 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 47775 fi 47776 # Put the nasty error message in config.log where it belongs 47777 echo "$LIBFFI_PKG_ERRORS" >&5 47778 47779 as_fn_error $? "Package requirements (libffi) were not met: 47780 47781 $LIBFFI_PKG_ERRORS 47782 47783 Consider adjusting the PKG_CONFIG_PATH environment variable if you 47784 installed software in a non-standard prefix. 47785 47786 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47787 and LIBFFI_LIBS to avoid the need to call pkg-config. 47788 See the pkg-config man page for more details. 47789 " "$LINENO" 5 47790 elif test $pkg_failed = untried; then 47791 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47792 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47793 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 47794 is in your PATH or set the PKG_CONFIG environment variable to the full 47795 path to pkg-config. 47796 47797 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47798 and LIBFFI_LIBS to avoid the need to call pkg-config. 47799 See the pkg-config man page for more details. 47800 47801 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 47802 See \`config.log' for more details" "$LINENO" 5; } 47803 else 47804 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 47805 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 47806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47807 $as_echo "yes" >&6; } 47808 : 47809 fi 47810 47811 fi 47812 47813 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47814 # Extract the first word of "llvm-config", so it can be a program name with args. 47815 set dummy llvm-config; ac_word=$2 47816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47817 $as_echo_n "checking for $ac_word... " >&6; } 47818 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 47819 $as_echo_n "(cached) " >&6 47820 else 47821 if test -n "$LLVM_CONFIG"; then 47822 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 47823 else 47824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47825 for as_dir in $PATH 47826 do 47827 IFS=$as_save_IFS 47828 test -z "$as_dir" && as_dir=. 47829 for ac_exec_ext in '' $ac_executable_extensions; do 47830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47831 ac_cv_prog_LLVM_CONFIG="llvm-config" 47832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47833 break 2 47834 fi 47835 done 47836 done 47837 IFS=$as_save_IFS 47838 47839 fi 47840 fi 47841 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 47842 if test -n "$LLVM_CONFIG"; then 47843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 47844 $as_echo "$LLVM_CONFIG" >&6; } 47845 else 47846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47847 $as_echo "no" >&6; } 47848 fi 47849 47850 47851 47852 if test "x$LLVM_CONFIG" != xllvm-config; then 47853 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 47854 fi 47855 47856 llvm_components="jit mcjit engine nativecodegen native" 47857 unset LLVM_CFLAGS 47858 for flag in $("$LLVM_CONFIG" --cxxflags); do 47859 if echo "${flag}" | grep -q '^-[ID]'; then 47860 if test "${flag}" != "-D_DEBUG" ; then 47861 if test "${LLVM_CFLAGS}" != "" ; then 47862 LLVM_CFLAGS="${LLVM_CFLAGS} " 47863 fi 47864 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 47865 fi 47866 fi 47867 done 47868 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 47869 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 47870 47871 unset LLVM_LDFLAGS 47872 for flag in $("${LLVM_CONFIG}" --ldflags); do 47873 if echo "${flag}" | grep -q '^-L'; then 47874 if test "${LLVM_LDFLAGS}" != ""; then 47875 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 47876 fi 47877 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 47878 fi 47879 done 47880 47881 unset LLVM_LIBS 47882 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 47883 if echo "${flag}" | grep -q '^-l'; then 47884 if test "${LLVM_LIBS}" != ""; then 47885 LLVM_LIBS="${LLVM_LIBS} " 47886 fi 47887 LLVM_LIBS="${LLVM_LIBS}${flag}" 47888 fi 47889 done 47890 47891 47892 47893 47894 fi 47895 47896 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 47897 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$LIBCXX" = x; then 47898 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 47899 fi 47900 47901 # TODO better (platform agnostic) test 47902 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then 47903 LIBCXX="-lstdc++" 47904 fi 47905 47906 47907 47908 47909 47910 ############################################################################### 47911 # 47912 # We need to do some final tweaking, when everything else is done. 47913 # 47914 ############################################################################### 47915 47916 47917 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 47918 47919 47920 # The name of the Service Agent jar. 47921 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 47922 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 47923 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 47924 fi 47925 47926 47927 47928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 47929 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 47930 47931 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 47932 ENABLE_INTREE_EC=yes 47933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47934 $as_echo "yes" >&6; } 47935 else 47936 ENABLE_INTREE_EC=no 47937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47938 $as_echo "no" >&6; } 47939 fi 47940 47941 47942 47943 47944 ############################################################################### 47945 # 47946 # Configure parts of the build that only affect the build performance, 47947 # not the result. 47948 # 47949 ############################################################################### 47950 47951 47952 # How many cores do we have on this build system? 47953 47954 # Check whether --with-num-cores was given. 47955 if test "${with_num_cores+set}" = set; then : 47956 withval=$with_num_cores; 47957 fi 47958 47959 if test "x$with_num_cores" = x; then 47960 # The number of cores were not specified, try to probe them. 47961 47962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 47963 $as_echo_n "checking for number of cores... " >&6; } 47964 NUM_CORES=1 47965 FOUND_CORES=no 47966 47967 if test -f /proc/cpuinfo; then 47968 # Looks like a Linux (or cygwin) system 47969 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 47970 FOUND_CORES=yes 47971 elif test -x /usr/sbin/psrinfo; then 47972 # Looks like a Solaris system 47973 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 47974 FOUND_CORES=yes 47975 elif test -x /usr/sbin/system_profiler; then 47976 # Looks like a MacOSX system 47977 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 47978 FOUND_CORES=yes 47979 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 47980 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 47981 FOUND_CORES=yes 47982 elif test -n "$NUMBER_OF_PROCESSORS"; then 47983 # On windows, look in the env 47984 NUM_CORES=$NUMBER_OF_PROCESSORS 47985 FOUND_CORES=yes 47986 fi 47987 47988 if test "x$FOUND_CORES" = xyes; then 47989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 47990 $as_echo "$NUM_CORES" >&6; } 47991 else 47992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 47993 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 47994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 47995 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 47996 fi 47997 47998 else 47999 NUM_CORES=$with_num_cores 48000 fi 48001 48002 48003 48004 # How much memory do we have on this build system? 48005 48006 # Check whether --with-memory-size was given. 48007 if test "${with_memory_size+set}" = set; then : 48008 withval=$with_memory_size; 48009 fi 48010 48011 if test "x$with_memory_size" = x; then 48012 # The memory size was not specified, try to probe it. 48013 48014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 48015 $as_echo_n "checking for memory size... " >&6; } 48016 # Default to 1024 MB 48017 MEMORY_SIZE=1024 48018 FOUND_MEM=no 48019 48020 if test -f /proc/meminfo; then 48021 # Looks like a Linux (or cygwin) system 48022 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 48023 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 48024 FOUND_MEM=yes 48025 elif test -x /usr/sbin/prtconf; then 48026 # Looks like a Solaris or AIX system 48027 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 48028 FOUND_MEM=yes 48029 elif test -x /usr/sbin/system_profiler; then 48030 # Looks like a MacOSX system 48031 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 48032 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 48033 FOUND_MEM=yes 48034 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 48035 # Windows, but without cygwin 48036 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 48037 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 48038 FOUND_MEM=yes 48039 fi 48040 48041 if test "x$FOUND_MEM" = xyes; then 48042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 48043 $as_echo "$MEMORY_SIZE MB" >&6; } 48044 else 48045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 48046 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 48047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 48048 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 48049 fi 48050 48051 else 48052 MEMORY_SIZE=$with_memory_size 48053 fi 48054 48055 48056 48057 # Provide a decent default number of parallel jobs for make depending on 48058 # number of cores, amount of memory and machine architecture. 48059 48060 # Check whether --with-jobs was given. 48061 if test "${with_jobs+set}" = set; then : 48062 withval=$with_jobs; 48063 fi 48064 48065 if test "x$with_jobs" = x; then 48066 # Number of jobs was not specified, calculate. 48067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 48068 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 48069 # Approximate memory in GB, rounding up a bit. 48070 memory_gb=`expr $MEMORY_SIZE / 1100` 48071 # Pick the lowest of memory in gb and number of cores. 48072 if test "$memory_gb" -lt "$NUM_CORES"; then 48073 JOBS="$memory_gb" 48074 else 48075 JOBS="$NUM_CORES" 48076 # On bigger machines, leave some room for other processes to run 48077 if test "$JOBS" -gt "4"; then 48078 JOBS=`expr $JOBS '*' 90 / 100` 48079 fi 48080 fi 48081 # Cap number of jobs to 16 48082 if test "$JOBS" -gt "16"; then 48083 JOBS=16 48084 fi 48085 if test "$JOBS" -eq "0"; then 48086 JOBS=1 48087 fi 48088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 48089 $as_echo "$JOBS" >&6; } 48090 else 48091 JOBS=$with_jobs 48092 fi 48093 48094 48095 48096 # Setup smart javac (after cores and memory have been setup) 48097 48098 48099 # Check whether --with-sjavac-server-java was given. 48100 if test "${with_sjavac_server_java+set}" = set; then : 48101 withval=$with_sjavac_server_java; 48102 fi 48103 48104 48105 if test "x$with_sjavac_server_java" != x; then 48106 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 48107 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 48108 if test "x$FOUND_VERSION" = x; then 48109 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 48110 fi 48111 else 48112 SJAVAC_SERVER_JAVA="" 48113 # Hotspot specific options. 48114 48115 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 48116 $ECHO "Command: $JAVA -verbosegc -version" >&5 48117 OUTPUT=`$JAVA -verbosegc -version 2>&1` 48118 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48119 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48120 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48121 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 48122 JVM_ARG_OK=true 48123 else 48124 $ECHO "Arg failed:" >&5 48125 $ECHO "$OUTPUT" >&5 48126 JVM_ARG_OK=false 48127 fi 48128 48129 # JRockit specific options. 48130 48131 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 48132 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 48133 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 48134 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48135 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48136 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48137 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 48138 JVM_ARG_OK=true 48139 else 48140 $ECHO "Arg failed:" >&5 48141 $ECHO "$OUTPUT" >&5 48142 JVM_ARG_OK=false 48143 fi 48144 48145 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 48146 fi 48147 48148 48149 if test "$MEMORY_SIZE" -gt "2500"; then 48150 48151 $ECHO "Check if jvm arg is ok: -d64" >&5 48152 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 48153 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 48154 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48155 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48156 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48157 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 48158 JVM_ARG_OK=true 48159 else 48160 $ECHO "Arg failed:" >&5 48161 $ECHO "$OUTPUT" >&5 48162 JVM_ARG_OK=false 48163 fi 48164 48165 if test "$JVM_ARG_OK" = true; then 48166 JVM_64BIT=true 48167 JVM_ARG_OK=false 48168 fi 48169 fi 48170 48171 if test "$JVM_64BIT" = true; then 48172 if test "$MEMORY_SIZE" -gt "17000"; then 48173 48174 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 48175 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 48176 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 48177 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48178 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48179 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48180 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 48181 JVM_ARG_OK=true 48182 else 48183 $ECHO "Arg failed:" >&5 48184 $ECHO "$OUTPUT" >&5 48185 JVM_ARG_OK=false 48186 fi 48187 48188 fi 48189 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 48190 48191 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 48192 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 48193 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 48194 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48195 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48196 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48197 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 48198 JVM_ARG_OK=true 48199 else 48200 $ECHO "Arg failed:" >&5 48201 $ECHO "$OUTPUT" >&5 48202 JVM_ARG_OK=false 48203 fi 48204 48205 fi 48206 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 48207 48208 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 48209 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 48210 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 48211 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48212 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48213 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48214 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 48215 JVM_ARG_OK=true 48216 else 48217 $ECHO "Arg failed:" >&5 48218 $ECHO "$OUTPUT" >&5 48219 JVM_ARG_OK=false 48220 fi 48221 48222 fi 48223 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 48224 48225 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 48226 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 48227 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 48228 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48229 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48230 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48231 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 48232 JVM_ARG_OK=true 48233 else 48234 $ECHO "Arg failed:" >&5 48235 $ECHO "$OUTPUT" >&5 48236 JVM_ARG_OK=false 48237 fi 48238 48239 fi 48240 fi 48241 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 48242 48243 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 48244 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 48245 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 48246 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48247 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48248 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48249 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 48250 JVM_ARG_OK=true 48251 else 48252 $ECHO "Arg failed:" >&5 48253 $ECHO "$OUTPUT" >&5 48254 JVM_ARG_OK=false 48255 fi 48256 48257 fi 48258 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 48259 48260 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 48261 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 48262 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 48263 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48264 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48265 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48266 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 48267 JVM_ARG_OK=true 48268 else 48269 $ECHO "Arg failed:" >&5 48270 $ECHO "$OUTPUT" >&5 48271 JVM_ARG_OK=false 48272 fi 48273 48274 fi 48275 if test "$JVM_ARG_OK" = false; then 48276 48277 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 48278 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 48279 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 48280 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48281 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48282 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48283 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 48284 JVM_ARG_OK=true 48285 else 48286 $ECHO "Arg failed:" >&5 48287 $ECHO "$OUTPUT" >&5 48288 JVM_ARG_OK=false 48289 fi 48290 48291 fi 48292 48293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 48294 $as_echo_n "checking whether to use sjavac... " >&6; } 48295 # Check whether --enable-sjavac was given. 48296 if test "${enable_sjavac+set}" = set; then : 48297 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 48298 else 48299 ENABLE_SJAVAC='no' 48300 fi 48301 48302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 48303 $as_echo "$ENABLE_SJAVAC" >&6; } 48304 48305 48306 if test "x$ENABLE_SJAVAC" = xyes; then 48307 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 48308 else 48309 SJAVAC_SERVER_DIR= 48310 fi 48311 48312 48313 48314 # Can the C/C++ compiler use precompiled headers? 48315 48316 48317 ############################################################################### 48318 # 48319 # Can the C/C++ compiler use precompiled headers? 48320 # 48321 # Check whether --enable-precompiled-headers was given. 48322 if test "${enable_precompiled_headers+set}" = set; then : 48323 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 48324 else 48325 ENABLE_PRECOMPH=yes 48326 fi 48327 48328 48329 USE_PRECOMPILED_HEADER=1 48330 if test "x$ENABLE_PRECOMPH" = xno; then 48331 USE_PRECOMPILED_HEADER=0 48332 fi 48333 48334 if test "x$ENABLE_PRECOMPH" = xyes; then 48335 # Check that the compiler actually supports precomp headers. 48336 if test "x$GCC" = xyes; then 48337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 48338 $as_echo_n "checking that precompiled headers work... " >&6; } 48339 echo "int alfa();" > conftest.h 48340 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 48341 if test ! -f conftest.hpp.gch; then 48342 USE_PRECOMPILED_HEADER=0 48343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48344 $as_echo "no" >&6; } 48345 else 48346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48347 $as_echo "yes" >&6; } 48348 fi 48349 rm -f conftest.h conftest.hpp.gch 48350 fi 48351 fi 48352 48353 48354 48355 48356 # Setup use of ccache, if available 48357 48358 # Check whether --enable-ccache was given. 48359 if test "${enable_ccache+set}" = set; then : 48360 enableval=$enable_ccache; 48361 fi 48362 48363 48364 CCACHE= 48365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 48366 $as_echo_n "checking is ccache enabled... " >&6; } 48367 ENABLE_CCACHE=$enable_ccache 48368 if test "x$enable_ccache" = xyes; then 48369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48370 $as_echo "yes" >&6; } 48371 OLD_PATH="$PATH" 48372 if test "x$TOOLS_DIR" != x; then 48373 PATH=$TOOLS_DIR:$PATH 48374 fi 48375 48376 48377 48378 # Publish this variable in the help. 48379 48380 48381 if test "x$CCACHE" = x; then 48382 # The variable is not set by user, try to locate tool using the code snippet 48383 for ac_prog in ccache 48384 do 48385 # Extract the first word of "$ac_prog", so it can be a program name with args. 48386 set dummy $ac_prog; ac_word=$2 48387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48388 $as_echo_n "checking for $ac_word... " >&6; } 48389 if ${ac_cv_path_CCACHE+:} false; then : 48390 $as_echo_n "(cached) " >&6 48391 else 48392 case $CCACHE in 48393 [\\/]* | ?:[\\/]*) 48394 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48395 ;; 48396 *) 48397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48398 for as_dir in $PATH 48399 do 48400 IFS=$as_save_IFS 48401 test -z "$as_dir" && as_dir=. 48402 for ac_exec_ext in '' $ac_executable_extensions; do 48403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48404 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48406 break 2 48407 fi 48408 done 48409 done 48410 IFS=$as_save_IFS 48411 48412 ;; 48413 esac 48414 fi 48415 CCACHE=$ac_cv_path_CCACHE 48416 if test -n "$CCACHE"; then 48417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48418 $as_echo "$CCACHE" >&6; } 48419 else 48420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48421 $as_echo "no" >&6; } 48422 fi 48423 48424 48425 test -n "$CCACHE" && break 48426 done 48427 48428 else 48429 # The variable is set, but is it from the command line or the environment? 48430 48431 # Try to remove the string !CCACHE! from our list. 48432 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 48433 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48434 # If it failed, the variable was not from the command line. Ignore it, 48435 # but warn the user (except for BASH, which is always set by the calling BASH). 48436 if test "xCCACHE" != xBASH; then 48437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 48438 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 48439 fi 48440 # Try to locate tool using the code snippet 48441 for ac_prog in ccache 48442 do 48443 # Extract the first word of "$ac_prog", so it can be a program name with args. 48444 set dummy $ac_prog; ac_word=$2 48445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48446 $as_echo_n "checking for $ac_word... " >&6; } 48447 if ${ac_cv_path_CCACHE+:} false; then : 48448 $as_echo_n "(cached) " >&6 48449 else 48450 case $CCACHE in 48451 [\\/]* | ?:[\\/]*) 48452 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48453 ;; 48454 *) 48455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48456 for as_dir in $PATH 48457 do 48458 IFS=$as_save_IFS 48459 test -z "$as_dir" && as_dir=. 48460 for ac_exec_ext in '' $ac_executable_extensions; do 48461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48462 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48464 break 2 48465 fi 48466 done 48467 done 48468 IFS=$as_save_IFS 48469 48470 ;; 48471 esac 48472 fi 48473 CCACHE=$ac_cv_path_CCACHE 48474 if test -n "$CCACHE"; then 48475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48476 $as_echo "$CCACHE" >&6; } 48477 else 48478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48479 $as_echo "no" >&6; } 48480 fi 48481 48482 48483 test -n "$CCACHE" && break 48484 done 48485 48486 else 48487 # If it succeeded, then it was overridden by the user. We will use it 48488 # for the tool. 48489 48490 # First remove it from the list of overridden variables, so we can test 48491 # for unknown variables in the end. 48492 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48493 48494 # Check if the provided tool contains a complete path. 48495 tool_specified="$CCACHE" 48496 tool_basename="${tool_specified##*/}" 48497 if test "x$tool_basename" = "x$tool_specified"; then 48498 # A command without a complete path is provided, search $PATH. 48499 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 48500 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 48501 # Extract the first word of "$tool_basename", so it can be a program name with args. 48502 set dummy $tool_basename; ac_word=$2 48503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48504 $as_echo_n "checking for $ac_word... " >&6; } 48505 if ${ac_cv_path_CCACHE+:} false; then : 48506 $as_echo_n "(cached) " >&6 48507 else 48508 case $CCACHE in 48509 [\\/]* | ?:[\\/]*) 48510 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48511 ;; 48512 *) 48513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48514 for as_dir in $PATH 48515 do 48516 IFS=$as_save_IFS 48517 test -z "$as_dir" && as_dir=. 48518 for ac_exec_ext in '' $ac_executable_extensions; do 48519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48520 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48522 break 2 48523 fi 48524 done 48525 done 48526 IFS=$as_save_IFS 48527 48528 ;; 48529 esac 48530 fi 48531 CCACHE=$ac_cv_path_CCACHE 48532 if test -n "$CCACHE"; then 48533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48534 $as_echo "$CCACHE" >&6; } 48535 else 48536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48537 $as_echo "no" >&6; } 48538 fi 48539 48540 48541 if test "x$CCACHE" = x; then 48542 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48543 fi 48544 else 48545 # Otherwise we believe it is a complete path. Use it as it is. 48546 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 48547 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 48548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 48549 $as_echo_n "checking for CCACHE... " >&6; } 48550 if test ! -x "$tool_specified"; then 48551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48552 $as_echo "not found" >&6; } 48553 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 48554 fi 48555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48556 $as_echo "$tool_specified" >&6; } 48557 fi 48558 fi 48559 fi 48560 48561 48562 48563 if test "x$CCACHE" = x; then 48564 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 48565 fi 48566 48567 48568 CCACHE_STATUS="enabled" 48569 PATH="$OLD_PATH" 48570 elif test "x$enable_ccache" = xno; then 48571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 48572 $as_echo "no, explicitly disabled" >&6; } 48573 elif test "x$enable_ccache" = x; then 48574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48575 $as_echo "no" >&6; } 48576 else 48577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 48578 $as_echo "unknown" >&6; } 48579 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 48580 fi 48581 48582 48583 48584 # Check whether --with-ccache-dir was given. 48585 if test "${with_ccache_dir+set}" = set; then : 48586 withval=$with_ccache_dir; 48587 fi 48588 48589 48590 if test "x$with_ccache_dir" != x; then 48591 # When using a non home ccache directory, assume the use is to share ccache files 48592 # with other users. Thus change the umask. 48593 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 48594 if test "x$CCACHE" = x; then 48595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 48596 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 48597 fi 48598 fi 48599 48600 if test "x$CCACHE" != x; then 48601 48602 if test "x$CCACHE" != x; then 48603 # Only use ccache if it is 3.1.4 or later, which supports 48604 # precompiled headers. 48605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 48606 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 48607 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 48608 if test "x$HAS_GOOD_CCACHE" = x; then 48609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 48610 $as_echo "no, disabling ccache" >&6; } 48611 CCACHE= 48612 CCACHE_STATUS="disabled" 48613 else 48614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48615 $as_echo "yes" >&6; } 48616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 48617 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 48618 PUSHED_FLAGS="$CXXFLAGS" 48619 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 48620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48621 /* end confdefs.h. */ 48622 48623 int 48624 main () 48625 { 48626 48627 ; 48628 return 0; 48629 } 48630 _ACEOF 48631 if ac_fn_cxx_try_compile "$LINENO"; then : 48632 CC_KNOWS_CCACHE_TRICK=yes 48633 else 48634 CC_KNOWS_CCACHE_TRICK=no 48635 fi 48636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48637 CXXFLAGS="$PUSHED_FLAGS" 48638 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 48639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48640 $as_echo "yes" >&6; } 48641 else 48642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 48643 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 48644 CCACHE= 48645 CCACHE_STATUS="disabled" 48646 fi 48647 fi 48648 fi 48649 48650 if test "x$CCACHE" != x; then 48651 CCACHE_SLOPPINESS=time_macros 48652 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 48653 CCACHE_FLAGS=-fpch-preprocess 48654 48655 if test "x$SET_CCACHE_DIR" != x; then 48656 mkdir -p $CCACHE_DIR > /dev/null 2>&1 48657 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 48658 fi 48659 fi 48660 48661 fi 48662 48663 48664 ############################################################################### 48665 # 48666 # And now the finish... 48667 # 48668 ############################################################################### 48669 48670 # Check for some common pitfalls 48671 48672 if test x"$OPENJDK_BUILD_OS" = xwindows; then 48673 file_to_test="$SRC_ROOT/LICENSE" 48674 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 48675 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 48676 fi 48677 fi 48678 48679 48680 # Did user specify any unknown variables? 48681 48682 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 48683 # Replace the separating ! with spaces before presenting for end user. 48684 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 48685 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 48686 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 48687 fi 48688 48689 48690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 48691 $as_echo_n "checking if build directory is on local disk... " >&6; } 48692 48693 # df -l lists only local disks; if the given directory is not found then 48694 # a non-zero exit code is given 48695 if test "x$DF" = x; then 48696 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48697 # msys does not have df; use Windows "net use" instead. 48698 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 48699 if test "x$IS_NETWORK_DISK" = x; then 48700 OUTPUT_DIR_IS_LOCAL="yes" 48701 else 48702 OUTPUT_DIR_IS_LOCAL="no" 48703 fi 48704 else 48705 # No df here, say it's local 48706 OUTPUT_DIR_IS_LOCAL="yes" 48707 fi 48708 else 48709 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 48710 OUTPUT_DIR_IS_LOCAL="yes" 48711 else 48712 OUTPUT_DIR_IS_LOCAL="no" 48713 fi 48714 fi 48715 48716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 48717 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 48718 48719 48720 48721 # Check if the user has any old-style ALT_ variables set. 48722 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 48723 48724 # Before generating output files, test if they exist. If they do, this is a reconfigure. 48725 # Since we can't properly handle the dependencies for this, warn the user about the situation 48726 if test -e $OUTPUT_ROOT/spec.gmk; then 48727 IS_RECONFIGURE=yes 48728 else 48729 IS_RECONFIGURE=no 48730 fi 48731 48732 48733 # At the end, call the custom hook. (Dummy macro if no custom sources available) 48734 48735 48736 # We're messing a bit with internal autoconf variables to put the config.status 48737 # in the output directory instead of the current directory. 48738 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 48739 48740 # Create the actual output files. Now the main work of configure is done. 48741 cat >confcache <<\_ACEOF 48742 # This file is a shell script that caches the results of configure 48743 # tests run on this system so they can be shared between configure 48744 # scripts and configure runs, see configure's option --config-cache. 48745 # It is not useful on other systems. If it contains results you don't 48746 # want to keep, you may remove or edit it. 48747 # 48748 # config.status only pays attention to the cache file if you give it 48749 # the --recheck option to rerun configure. 48750 # 48751 # `ac_cv_env_foo' variables (set or unset) will be overridden when 48752 # loading this file, other *unset* `ac_cv_foo' will be assigned the 48753 # following values. 48754 48755 _ACEOF 48756 48757 # The following way of writing the cache mishandles newlines in values, 48758 # but we know of no workaround that is simple, portable, and efficient. 48759 # So, we kill variables containing newlines. 48760 # Ultrix sh set writes to stderr and can't be redirected directly, 48761 # and sets the high bit in the cache file unless we assign to the vars. 48762 ( 48763 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 48764 eval ac_val=\$$ac_var 48765 case $ac_val in #( 48766 *${as_nl}*) 48767 case $ac_var in #( 48768 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 48769 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 48770 esac 48771 case $ac_var in #( 48772 _ | IFS | as_nl) ;; #( 48773 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 48774 *) { eval $ac_var=; unset $ac_var;} ;; 48775 esac ;; 48776 esac 48777 done 48778 48779 (set) 2>&1 | 48780 case $as_nl`(ac_space=' '; set) 2>&1` in #( 48781 *${as_nl}ac_space=\ *) 48782 # `set' does not quote correctly, so add quotes: double-quote 48783 # substitution turns \\\\ into \\, and sed turns \\ into \. 48784 sed -n \ 48785 "s/'/'\\\\''/g; 48786 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 48787 ;; #( 48788 *) 48789 # `set' quotes correctly as required by POSIX, so do not add quotes. 48790 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 48791 ;; 48792 esac | 48793 sort 48794 ) | 48795 sed ' 48796 /^ac_cv_env_/b end 48797 t clear 48798 :clear 48799 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 48800 t end 48801 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 48802 :end' >>confcache 48803 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 48804 if test -w "$cache_file"; then 48805 if test "x$cache_file" != "x/dev/null"; then 48806 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 48807 $as_echo "$as_me: updating cache $cache_file" >&6;} 48808 if test ! -f "$cache_file" || test -h "$cache_file"; then 48809 cat confcache >"$cache_file" 48810 else 48811 case $cache_file in #( 48812 */* | ?:*) 48813 mv -f confcache "$cache_file"$$ && 48814 mv -f "$cache_file"$$ "$cache_file" ;; #( 48815 *) 48816 mv -f confcache "$cache_file" ;; 48817 esac 48818 fi 48819 fi 48820 else 48821 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 48822 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 48823 fi 48824 fi 48825 rm -f confcache 48826 48827 test "x$prefix" = xNONE && prefix=$ac_default_prefix 48828 # Let make expand exec_prefix. 48829 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 48830 48831 DEFS=-DHAVE_CONFIG_H 48832 48833 ac_libobjs= 48834 ac_ltlibobjs= 48835 U= 48836 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 48837 # 1. Remove the extension, and $U if already installed. 48838 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 48839 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 48840 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 48841 # will be set to the directory where LIBOBJS objects are built. 48842 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 48843 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 48844 done 48845 LIBOBJS=$ac_libobjs 48846 48847 LTLIBOBJS=$ac_ltlibobjs 48848 48849 48850 48851 : "${CONFIG_STATUS=./config.status}" 48852 ac_write_fail=0 48853 ac_clean_files_save=$ac_clean_files 48854 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 48855 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 48856 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 48857 as_write_fail=0 48858 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 48859 #! $SHELL 48860 # Generated by $as_me. 48861 # Run this file to recreate the current configuration. 48862 # Compiler output produced by configure, useful for debugging 48863 # configure, is in config.log if it exists. 48864 48865 debug=false 48866 ac_cs_recheck=false 48867 ac_cs_silent=false 48868 48869 SHELL=\${CONFIG_SHELL-$SHELL} 48870 export SHELL 48871 _ASEOF 48872 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 48873 ## -------------------- ## 48874 ## M4sh Initialization. ## 48875 ## -------------------- ## 48876 48877 # Be more Bourne compatible 48878 DUALCASE=1; export DUALCASE # for MKS sh 48879 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 48880 emulate sh 48881 NULLCMD=: 48882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 48883 # is contrary to our usage. Disable this feature. 48884 alias -g '${1+"$@"}'='"$@"' 48885 setopt NO_GLOB_SUBST 48886 else 48887 case `(set -o) 2>/dev/null` in #( 48888 *posix*) : 48889 set -o posix ;; #( 48890 *) : 48891 ;; 48892 esac 48893 fi 48894 48895 48896 as_nl=' 48897 ' 48898 export as_nl 48899 # Printing a long string crashes Solaris 7 /usr/bin/printf. 48900 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 48901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48902 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 48903 # Prefer a ksh shell builtin over an external printf program on Solaris, 48904 # but without wasting forks for bash or zsh. 48905 if test -z "$BASH_VERSION$ZSH_VERSION" \ 48906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 48907 as_echo='print -r --' 48908 as_echo_n='print -rn --' 48909 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48910 as_echo='printf %s\n' 48911 as_echo_n='printf %s' 48912 else 48913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 48914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 48915 as_echo_n='/usr/ucb/echo -n' 48916 else 48917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 48918 as_echo_n_body='eval 48919 arg=$1; 48920 case $arg in #( 48921 *"$as_nl"*) 48922 expr "X$arg" : "X\\(.*\\)$as_nl"; 48923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 48924 esac; 48925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 48926 ' 48927 export as_echo_n_body 48928 as_echo_n='sh -c $as_echo_n_body as_echo' 48929 fi 48930 export as_echo_body 48931 as_echo='sh -c $as_echo_body as_echo' 48932 fi 48933 48934 # The user is always right. 48935 if test "${PATH_SEPARATOR+set}" != set; then 48936 PATH_SEPARATOR=: 48937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 48938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 48939 PATH_SEPARATOR=';' 48940 } 48941 fi 48942 48943 48944 # IFS 48945 # We need space, tab and new line, in precisely that order. Quoting is 48946 # there to prevent editors from complaining about space-tab. 48947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 48948 # splitting by setting IFS to empty value.) 48949 IFS=" "" $as_nl" 48950 48951 # Find who we are. Look in the path if we contain no directory separator. 48952 as_myself= 48953 case $0 in #(( 48954 *[\\/]* ) as_myself=$0 ;; 48955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48956 for as_dir in $PATH 48957 do 48958 IFS=$as_save_IFS 48959 test -z "$as_dir" && as_dir=. 48960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 48961 done 48962 IFS=$as_save_IFS 48963 48964 ;; 48965 esac 48966 # We did not find ourselves, most probably we were run as `sh COMMAND' 48967 # in which case we are not to be found in the path. 48968 if test "x$as_myself" = x; then 48969 as_myself=$0 48970 fi 48971 if test ! -f "$as_myself"; then 48972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 48973 exit 1 48974 fi 48975 48976 # Unset variables that we do not need and which cause bugs (e.g. in 48977 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 48978 # suppresses any "Segmentation fault" message there. '((' could 48979 # trigger a bug in pdksh 5.2.14. 48980 for as_var in BASH_ENV ENV MAIL MAILPATH 48981 do eval test x\${$as_var+set} = xset \ 48982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 48983 done 48984 PS1='$ ' 48985 PS2='> ' 48986 PS4='+ ' 48987 48988 # NLS nuisances. 48989 LC_ALL=C 48990 export LC_ALL 48991 LANGUAGE=C 48992 export LANGUAGE 48993 48994 # CDPATH. 48995 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 48996 48997 48998 # as_fn_error STATUS ERROR [LINENO LOG_FD] 48999 # ---------------------------------------- 49000 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 49001 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 49002 # script with STATUS, using 1 if that was 0. 49003 as_fn_error () 49004 { 49005 as_status=$1; test $as_status -eq 0 && as_status=1 49006 if test "$4"; then 49007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 49008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 49009 fi 49010 $as_echo "$as_me: error: $2" >&2 49011 as_fn_exit $as_status 49012 } # as_fn_error 49013 49014 49015 # as_fn_set_status STATUS 49016 # ----------------------- 49017 # Set $? to STATUS, without forking. 49018 as_fn_set_status () 49019 { 49020 return $1 49021 } # as_fn_set_status 49022 49023 # as_fn_exit STATUS 49024 # ----------------- 49025 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 49026 as_fn_exit () 49027 { 49028 set +e 49029 as_fn_set_status $1 49030 exit $1 49031 } # as_fn_exit 49032 49033 # as_fn_unset VAR 49034 # --------------- 49035 # Portably unset VAR. 49036 as_fn_unset () 49037 { 49038 { eval $1=; unset $1;} 49039 } 49040 as_unset=as_fn_unset 49041 # as_fn_append VAR VALUE 49042 # ---------------------- 49043 # Append the text in VALUE to the end of the definition contained in VAR. Take 49044 # advantage of any shell optimizations that allow amortized linear growth over 49045 # repeated appends, instead of the typical quadratic growth present in naive 49046 # implementations. 49047 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 49048 eval 'as_fn_append () 49049 { 49050 eval $1+=\$2 49051 }' 49052 else 49053 as_fn_append () 49054 { 49055 eval $1=\$$1\$2 49056 } 49057 fi # as_fn_append 49058 49059 # as_fn_arith ARG... 49060 # ------------------ 49061 # Perform arithmetic evaluation on the ARGs, and store the result in the 49062 # global $as_val. Take advantage of shells that can avoid forks. The arguments 49063 # must be portable across $(()) and expr. 49064 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 49065 eval 'as_fn_arith () 49066 { 49067 as_val=$(( $* )) 49068 }' 49069 else 49070 as_fn_arith () 49071 { 49072 as_val=`expr "$@" || test $? -eq 1` 49073 } 49074 fi # as_fn_arith 49075 49076 49077 if expr a : '\(a\)' >/dev/null 2>&1 && 49078 test "X`expr 00001 : '.*\(...\)'`" = X001; then 49079 as_expr=expr 49080 else 49081 as_expr=false 49082 fi 49083 49084 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 49085 as_basename=basename 49086 else 49087 as_basename=false 49088 fi 49089 49090 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 49091 as_dirname=dirname 49092 else 49093 as_dirname=false 49094 fi 49095 49096 as_me=`$as_basename -- "$0" || 49097 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 49098 X"$0" : 'X\(//\)$' \| \ 49099 X"$0" : 'X\(/\)' \| . 2>/dev/null || 49100 $as_echo X/"$0" | 49101 sed '/^.*\/\([^/][^/]*\)\/*$/{ 49102 s//\1/ 49103 q 49104 } 49105 /^X\/\(\/\/\)$/{ 49106 s//\1/ 49107 q 49108 } 49109 /^X\/\(\/\).*/{ 49110 s//\1/ 49111 q 49112 } 49113 s/.*/./; q'` 49114 49115 # Avoid depending upon Character Ranges. 49116 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 49117 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 49118 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 49119 as_cr_digits='0123456789' 49120 as_cr_alnum=$as_cr_Letters$as_cr_digits 49121 49122 ECHO_C= ECHO_N= ECHO_T= 49123 case `echo -n x` in #((((( 49124 -n*) 49125 case `echo 'xy\c'` in 49126 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49127 xy) ECHO_C='\c';; 49128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 49129 ECHO_T=' ';; 49130 esac;; 49131 *) 49132 ECHO_N='-n';; 49133 esac 49134 49135 rm -f conf$$ conf$$.exe conf$$.file 49136 if test -d conf$$.dir; then 49137 rm -f conf$$.dir/conf$$.file 49138 else 49139 rm -f conf$$.dir 49140 mkdir conf$$.dir 2>/dev/null 49141 fi 49142 if (echo >conf$$.file) 2>/dev/null; then 49143 if ln -s conf$$.file conf$$ 2>/dev/null; then 49144 as_ln_s='ln -s' 49145 # ... but there are two gotchas: 49146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 49147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 49148 # In both cases, we have to default to `cp -pR'. 49149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 49150 as_ln_s='cp -pR' 49151 elif ln conf$$.file conf$$ 2>/dev/null; then 49152 as_ln_s=ln 49153 else 49154 as_ln_s='cp -pR' 49155 fi 49156 else 49157 as_ln_s='cp -pR' 49158 fi 49159 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 49160 rmdir conf$$.dir 2>/dev/null 49161 49162 49163 # as_fn_mkdir_p 49164 # ------------- 49165 # Create "$as_dir" as a directory, including parents if necessary. 49166 as_fn_mkdir_p () 49167 { 49168 49169 case $as_dir in #( 49170 -*) as_dir=./$as_dir;; 49171 esac 49172 test -d "$as_dir" || eval $as_mkdir_p || { 49173 as_dirs= 49174 while :; do 49175 case $as_dir in #( 49176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 49177 *) as_qdir=$as_dir;; 49178 esac 49179 as_dirs="'$as_qdir' $as_dirs" 49180 as_dir=`$as_dirname -- "$as_dir" || 49181 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49182 X"$as_dir" : 'X\(//\)[^/]' \| \ 49183 X"$as_dir" : 'X\(//\)$' \| \ 49184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 49185 $as_echo X"$as_dir" | 49186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49187 s//\1/ 49188 q 49189 } 49190 /^X\(\/\/\)[^/].*/{ 49191 s//\1/ 49192 q 49193 } 49194 /^X\(\/\/\)$/{ 49195 s//\1/ 49196 q 49197 } 49198 /^X\(\/\).*/{ 49199 s//\1/ 49200 q 49201 } 49202 s/.*/./; q'` 49203 test -d "$as_dir" && break 49204 done 49205 test -z "$as_dirs" || eval "mkdir $as_dirs" 49206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 49207 49208 49209 } # as_fn_mkdir_p 49210 if mkdir -p . 2>/dev/null; then 49211 as_mkdir_p='mkdir -p "$as_dir"' 49212 else 49213 test -d ./-p && rmdir ./-p 49214 as_mkdir_p=false 49215 fi 49216 49217 49218 # as_fn_executable_p FILE 49219 # ----------------------- 49220 # Test if FILE is an executable regular file. 49221 as_fn_executable_p () 49222 { 49223 test -f "$1" && test -x "$1" 49224 } # as_fn_executable_p 49225 as_test_x='test -x' 49226 as_executable_p=as_fn_executable_p 49227 49228 # Sed expression to map a string onto a valid CPP name. 49229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 49230 49231 # Sed expression to map a string onto a valid variable name. 49232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 49233 49234 49235 exec 6>&1 49236 ## ----------------------------------- ## 49237 ## Main body of $CONFIG_STATUS script. ## 49238 ## ----------------------------------- ## 49239 _ASEOF 49240 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 49241 49242 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49243 # Save the log message, to keep $0 and so on meaningful, and to 49244 # report actual input values of CONFIG_FILES etc. instead of their 49245 # values after options handling. 49246 ac_log=" 49247 This file was extended by OpenJDK $as_me jdk8, which was 49248 generated by GNU Autoconf 2.69. Invocation command line was 49249 49250 CONFIG_FILES = $CONFIG_FILES 49251 CONFIG_HEADERS = $CONFIG_HEADERS 49252 CONFIG_LINKS = $CONFIG_LINKS 49253 CONFIG_COMMANDS = $CONFIG_COMMANDS 49254 $ $0 $@ 49255 49256 on `(hostname || uname -n) 2>/dev/null | sed 1q` 49257 " 49258 49259 _ACEOF 49260 49261 case $ac_config_files in *" 49262 "*) set x $ac_config_files; shift; ac_config_files=$*;; 49263 esac 49264 49265 case $ac_config_headers in *" 49266 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 49267 esac 49268 49269 49270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49271 # Files that config.status was made for. 49272 config_files="$ac_config_files" 49273 config_headers="$ac_config_headers" 49274 49275 _ACEOF 49276 49277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49278 ac_cs_usage="\ 49279 \`$as_me' instantiates files and other configuration actions 49280 from templates according to the current configuration. Unless the files 49281 and actions are specified as TAGs, all are instantiated by default. 49282 49283 Usage: $0 [OPTION]... [TAG]... 49284 49285 -h, --help print this help, then exit 49286 -V, --version print version number and configuration settings, then exit 49287 --config print configuration, then exit 49288 -q, --quiet, --silent 49289 do not print progress messages 49290 -d, --debug don't remove temporary files 49291 --recheck update $as_me by reconfiguring in the same conditions 49292 --file=FILE[:TEMPLATE] 49293 instantiate the configuration file FILE 49294 --header=FILE[:TEMPLATE] 49295 instantiate the configuration header FILE 49296 49297 Configuration files: 49298 $config_files 49299 49300 Configuration headers: 49301 $config_headers 49302 49303 Report bugs to <build-dev@openjdk.java.net>. 49304 OpenJDK home page: <http://openjdk.java.net>." 49305 49306 _ACEOF 49307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49308 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 49309 ac_cs_version="\\ 49310 OpenJDK config.status jdk8 49311 configured by $0, generated by GNU Autoconf 2.69, 49312 with options \\"\$ac_cs_config\\" 49313 49314 Copyright (C) 2012 Free Software Foundation, Inc. 49315 This config.status script is free software; the Free Software Foundation 49316 gives unlimited permission to copy, distribute and modify it." 49317 49318 ac_pwd='$ac_pwd' 49319 srcdir='$srcdir' 49320 AWK='$AWK' 49321 test -n "\$AWK" || AWK=awk 49322 _ACEOF 49323 49324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49325 # The default lists apply if the user does not specify any file. 49326 ac_need_defaults=: 49327 while test $# != 0 49328 do 49329 case $1 in 49330 --*=?*) 49331 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49332 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 49333 ac_shift=: 49334 ;; 49335 --*=) 49336 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49337 ac_optarg= 49338 ac_shift=: 49339 ;; 49340 *) 49341 ac_option=$1 49342 ac_optarg=$2 49343 ac_shift=shift 49344 ;; 49345 esac 49346 49347 case $ac_option in 49348 # Handling of the options. 49349 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 49350 ac_cs_recheck=: ;; 49351 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 49352 $as_echo "$ac_cs_version"; exit ;; 49353 --config | --confi | --conf | --con | --co | --c ) 49354 $as_echo "$ac_cs_config"; exit ;; 49355 --debug | --debu | --deb | --de | --d | -d ) 49356 debug=: ;; 49357 --file | --fil | --fi | --f ) 49358 $ac_shift 49359 case $ac_optarg in 49360 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49361 '') as_fn_error $? "missing file argument" ;; 49362 esac 49363 as_fn_append CONFIG_FILES " '$ac_optarg'" 49364 ac_need_defaults=false;; 49365 --header | --heade | --head | --hea ) 49366 $ac_shift 49367 case $ac_optarg in 49368 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49369 esac 49370 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 49371 ac_need_defaults=false;; 49372 --he | --h) 49373 # Conflict between --help and --header 49374 as_fn_error $? "ambiguous option: \`$1' 49375 Try \`$0 --help' for more information.";; 49376 --help | --hel | -h ) 49377 $as_echo "$ac_cs_usage"; exit ;; 49378 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 49379 | -silent | --silent | --silen | --sile | --sil | --si | --s) 49380 ac_cs_silent=: ;; 49381 49382 # This is an error. 49383 -*) as_fn_error $? "unrecognized option: \`$1' 49384 Try \`$0 --help' for more information." ;; 49385 49386 *) as_fn_append ac_config_targets " $1" 49387 ac_need_defaults=false ;; 49388 49389 esac 49390 shift 49391 done 49392 49393 ac_configure_extra_args= 49394 49395 if $ac_cs_silent; then 49396 exec 6>/dev/null 49397 ac_configure_extra_args="$ac_configure_extra_args --silent" 49398 fi 49399 49400 _ACEOF 49401 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49402 if \$ac_cs_recheck; then 49403 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 49404 shift 49405 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 49406 CONFIG_SHELL='$SHELL' 49407 export CONFIG_SHELL 49408 exec "\$@" 49409 fi 49410 49411 _ACEOF 49412 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49413 exec 5>>config.log 49414 { 49415 echo 49416 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 49417 ## Running $as_me. ## 49418 _ASBOX 49419 $as_echo "$ac_log" 49420 } >&5 49421 49422 _ACEOF 49423 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49424 _ACEOF 49425 49426 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49427 49428 # Handling of arguments. 49429 for ac_config_target in $ac_config_targets 49430 do 49431 case $ac_config_target in 49432 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 49433 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 49434 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 49435 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 49436 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 49437 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 49438 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 49439 49440 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 49441 esac 49442 done 49443 49444 49445 # If the user did not use the arguments to specify the items to instantiate, 49446 # then the envvar interface is used. Set only those that are not. 49447 # We use the long form for the default assignment because of an extremely 49448 # bizarre bug on SunOS 4.1.3. 49449 if $ac_need_defaults; then 49450 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 49451 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 49452 fi 49453 49454 # Have a temporary directory for convenience. Make it in the build tree 49455 # simply because there is no reason against having it here, and in addition, 49456 # creating and moving files from /tmp can sometimes cause problems. 49457 # Hook for its removal unless debugging. 49458 # Note that there is a small window in which the directory will not be cleaned: 49459 # after its creation but before its name has been assigned to `$tmp'. 49460 $debug || 49461 { 49462 tmp= ac_tmp= 49463 trap 'exit_status=$? 49464 : "${ac_tmp:=$tmp}" 49465 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 49466 ' 0 49467 trap 'as_fn_exit 1' 1 2 13 15 49468 } 49469 # Create a (secure) tmp directory for tmp files. 49470 49471 { 49472 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 49473 test -d "$tmp" 49474 } || 49475 { 49476 tmp=./conf$$-$RANDOM 49477 (umask 077 && mkdir "$tmp") 49478 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 49479 ac_tmp=$tmp 49480 49481 # Set up the scripts for CONFIG_FILES section. 49482 # No need to generate them if there are no CONFIG_FILES. 49483 # This happens for instance with `./config.status config.h'. 49484 if test -n "$CONFIG_FILES"; then 49485 49486 49487 ac_cr=`echo X | tr X '\015'` 49488 # On cygwin, bash can eat \r inside `` if the user requested igncr. 49489 # But we know of no other shell where ac_cr would be empty at this 49490 # point, so we can use a bashism as a fallback. 49491 if test "x$ac_cr" = x; then 49492 eval ac_cr=\$\'\\r\' 49493 fi 49494 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 49495 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 49496 ac_cs_awk_cr='\\r' 49497 else 49498 ac_cs_awk_cr=$ac_cr 49499 fi 49500 49501 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 49502 _ACEOF 49503 49504 49505 { 49506 echo "cat >conf$$subs.awk <<_ACEOF" && 49507 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 49508 echo "_ACEOF" 49509 } >conf$$subs.sh || 49510 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49511 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 49512 ac_delim='%!_!# ' 49513 for ac_last_try in false false false false false :; do 49514 . ./conf$$subs.sh || 49515 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49516 49517 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 49518 if test $ac_delim_n = $ac_delim_num; then 49519 break 49520 elif $ac_last_try; then 49521 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49522 else 49523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 49524 fi 49525 done 49526 rm -f conf$$subs.sh 49527 49528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49529 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 49530 _ACEOF 49531 sed -n ' 49532 h 49533 s/^/S["/; s/!.*/"]=/ 49534 p 49535 g 49536 s/^[^!]*!// 49537 :repl 49538 t repl 49539 s/'"$ac_delim"'$// 49540 t delim 49541 :nl 49542 h 49543 s/\(.\{148\}\)..*/\1/ 49544 t more1 49545 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 49546 p 49547 n 49548 b repl 49549 :more1 49550 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 49551 p 49552 g 49553 s/.\{148\}// 49554 t nl 49555 :delim 49556 h 49557 s/\(.\{148\}\)..*/\1/ 49558 t more2 49559 s/["\\]/\\&/g; s/^/"/; s/$/"/ 49560 p 49561 b 49562 :more2 49563 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 49564 p 49565 g 49566 s/.\{148\}// 49567 t delim 49568 ' <conf$$subs.awk | sed ' 49569 /^[^""]/{ 49570 N 49571 s/\n// 49572 } 49573 ' >>$CONFIG_STATUS || ac_write_fail=1 49574 rm -f conf$$subs.awk 49575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49576 _ACAWK 49577 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 49578 for (key in S) S_is_set[key] = 1 49579 FS = "" 49580 49581 } 49582 { 49583 line = $ 0 49584 nfields = split(line, field, "@") 49585 substed = 0 49586 len = length(field[1]) 49587 for (i = 2; i < nfields; i++) { 49588 key = field[i] 49589 keylen = length(key) 49590 if (S_is_set[key]) { 49591 value = S[key] 49592 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 49593 len += length(value) + length(field[++i]) 49594 substed = 1 49595 } else 49596 len += 1 + keylen 49597 } 49598 49599 print line 49600 } 49601 49602 _ACAWK 49603 _ACEOF 49604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49605 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 49606 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 49607 else 49608 cat 49609 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 49610 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 49611 _ACEOF 49612 49613 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 49614 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 49615 # trailing colons and then remove the whole line if VPATH becomes empty 49616 # (actually we leave an empty line to preserve line numbers). 49617 if test "x$srcdir" = x.; then 49618 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 49619 h 49620 s/// 49621 s/^/:/ 49622 s/[ ]*$/:/ 49623 s/:\$(srcdir):/:/g 49624 s/:\${srcdir}:/:/g 49625 s/:@srcdir@:/:/g 49626 s/^:*// 49627 s/:*$// 49628 x 49629 s/\(=[ ]*\).*/\1/ 49630 G 49631 s/\n// 49632 s/^[^=]*=[ ]*$// 49633 }' 49634 fi 49635 49636 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49637 fi # test -n "$CONFIG_FILES" 49638 49639 # Set up the scripts for CONFIG_HEADERS section. 49640 # No need to generate them if there are no CONFIG_HEADERS. 49641 # This happens for instance with `./config.status Makefile'. 49642 if test -n "$CONFIG_HEADERS"; then 49643 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 49644 BEGIN { 49645 _ACEOF 49646 49647 # Transform confdefs.h into an awk script `defines.awk', embedded as 49648 # here-document in config.status, that substitutes the proper values into 49649 # config.h.in to produce config.h. 49650 49651 # Create a delimiter string that does not exist in confdefs.h, to ease 49652 # handling of long lines. 49653 ac_delim='%!_!# ' 49654 for ac_last_try in false false :; do 49655 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 49656 if test -z "$ac_tt"; then 49657 break 49658 elif $ac_last_try; then 49659 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 49660 else 49661 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 49662 fi 49663 done 49664 49665 # For the awk script, D is an array of macro values keyed by name, 49666 # likewise P contains macro parameters if any. Preserve backslash 49667 # newline sequences. 49668 49669 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 49670 sed -n ' 49671 s/.\{148\}/&'"$ac_delim"'/g 49672 t rset 49673 :rset 49674 s/^[ ]*#[ ]*define[ ][ ]*/ / 49675 t def 49676 d 49677 :def 49678 s/\\$// 49679 t bsnl 49680 s/["\\]/\\&/g 49681 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 49682 D["\1"]=" \3"/p 49683 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 49684 d 49685 :bsnl 49686 s/["\\]/\\&/g 49687 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 49688 D["\1"]=" \3\\\\\\n"\\/p 49689 t cont 49690 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 49691 t cont 49692 d 49693 :cont 49694 n 49695 s/.\{148\}/&'"$ac_delim"'/g 49696 t clear 49697 :clear 49698 s/\\$// 49699 t bsnlc 49700 s/["\\]/\\&/g; s/^/"/; s/$/"/p 49701 d 49702 :bsnlc 49703 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 49704 b cont 49705 ' <confdefs.h | sed ' 49706 s/'"$ac_delim"'/"\\\ 49707 "/g' >>$CONFIG_STATUS || ac_write_fail=1 49708 49709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49710 for (key in D) D_is_set[key] = 1 49711 FS = "" 49712 } 49713 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 49714 line = \$ 0 49715 split(line, arg, " ") 49716 if (arg[1] == "#") { 49717 defundef = arg[2] 49718 mac1 = arg[3] 49719 } else { 49720 defundef = substr(arg[1], 2) 49721 mac1 = arg[2] 49722 } 49723 split(mac1, mac2, "(") #) 49724 macro = mac2[1] 49725 prefix = substr(line, 1, index(line, defundef) - 1) 49726 if (D_is_set[macro]) { 49727 # Preserve the white space surrounding the "#". 49728 print prefix "define", macro P[macro] D[macro] 49729 next 49730 } else { 49731 # Replace #undef with comments. This is necessary, for example, 49732 # in the case of _POSIX_SOURCE, which is predefined and required 49733 # on some systems where configure will not decide to define it. 49734 if (defundef == "undef") { 49735 print "/*", prefix defundef, macro, "*/" 49736 next 49737 } 49738 } 49739 } 49740 { print } 49741 _ACAWK 49742 _ACEOF 49743 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49744 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 49745 fi # test -n "$CONFIG_HEADERS" 49746 49747 49748 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 49749 shift 49750 for ac_tag 49751 do 49752 case $ac_tag in 49753 :[FHLC]) ac_mode=$ac_tag; continue;; 49754 esac 49755 case $ac_mode$ac_tag in 49756 :[FHL]*:*);; 49757 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 49758 :[FH]-) ac_tag=-:-;; 49759 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 49760 esac 49761 ac_save_IFS=$IFS 49762 IFS=: 49763 set x $ac_tag 49764 IFS=$ac_save_IFS 49765 shift 49766 ac_file=$1 49767 shift 49768 49769 case $ac_mode in 49770 :L) ac_source=$1;; 49771 :[FH]) 49772 ac_file_inputs= 49773 for ac_f 49774 do 49775 case $ac_f in 49776 -) ac_f="$ac_tmp/stdin";; 49777 *) # Look for the file first in the build tree, then in the source tree 49778 # (if the path is not absolute). The absolute path cannot be DOS-style, 49779 # because $ac_f cannot contain `:'. 49780 test -f "$ac_f" || 49781 case $ac_f in 49782 [\\/$]*) false;; 49783 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 49784 esac || 49785 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 49786 esac 49787 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 49788 as_fn_append ac_file_inputs " '$ac_f'" 49789 done 49790 49791 # Let's still pretend it is `configure' which instantiates (i.e., don't 49792 # use $as_me), people would be surprised to read: 49793 # /* config.h. Generated by config.status. */ 49794 configure_input='Generated from '` 49795 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 49796 `' by configure.' 49797 if test x"$ac_file" != x-; then 49798 configure_input="$ac_file. $configure_input" 49799 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 49800 $as_echo "$as_me: creating $ac_file" >&6;} 49801 fi 49802 # Neutralize special characters interpreted by sed in replacement strings. 49803 case $configure_input in #( 49804 *\&* | *\|* | *\\* ) 49805 ac_sed_conf_input=`$as_echo "$configure_input" | 49806 sed 's/[\\\\&|]/\\\\&/g'`;; #( 49807 *) ac_sed_conf_input=$configure_input;; 49808 esac 49809 49810 case $ac_tag in 49811 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 49812 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 49813 esac 49814 ;; 49815 esac 49816 49817 ac_dir=`$as_dirname -- "$ac_file" || 49818 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49819 X"$ac_file" : 'X\(//\)[^/]' \| \ 49820 X"$ac_file" : 'X\(//\)$' \| \ 49821 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 49822 $as_echo X"$ac_file" | 49823 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49824 s//\1/ 49825 q 49826 } 49827 /^X\(\/\/\)[^/].*/{ 49828 s//\1/ 49829 q 49830 } 49831 /^X\(\/\/\)$/{ 49832 s//\1/ 49833 q 49834 } 49835 /^X\(\/\).*/{ 49836 s//\1/ 49837 q 49838 } 49839 s/.*/./; q'` 49840 as_dir="$ac_dir"; as_fn_mkdir_p 49841 ac_builddir=. 49842 49843 case "$ac_dir" in 49844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 49845 *) 49846 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 49847 # A ".." for each directory in $ac_dir_suffix. 49848 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 49849 case $ac_top_builddir_sub in 49850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 49851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 49852 esac ;; 49853 esac 49854 ac_abs_top_builddir=$ac_pwd 49855 ac_abs_builddir=$ac_pwd$ac_dir_suffix 49856 # for backward compatibility: 49857 ac_top_builddir=$ac_top_build_prefix 49858 49859 case $srcdir in 49860 .) # We are building in place. 49861 ac_srcdir=. 49862 ac_top_srcdir=$ac_top_builddir_sub 49863 ac_abs_top_srcdir=$ac_pwd ;; 49864 [\\/]* | ?:[\\/]* ) # Absolute name. 49865 ac_srcdir=$srcdir$ac_dir_suffix; 49866 ac_top_srcdir=$srcdir 49867 ac_abs_top_srcdir=$srcdir ;; 49868 *) # Relative name. 49869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 49870 ac_top_srcdir=$ac_top_build_prefix$srcdir 49871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 49872 esac 49873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 49874 49875 49876 case $ac_mode in 49877 :F) 49878 # 49879 # CONFIG_FILE 49880 # 49881 49882 _ACEOF 49883 49884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49885 # If the template does not know about datarootdir, expand it. 49886 # FIXME: This hack should be removed a few years after 2.60. 49887 ac_datarootdir_hack=; ac_datarootdir_seen= 49888 ac_sed_dataroot=' 49889 /datarootdir/ { 49890 p 49891 q 49892 } 49893 /@datadir@/p 49894 /@docdir@/p 49895 /@infodir@/p 49896 /@localedir@/p 49897 /@mandir@/p' 49898 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 49899 *datarootdir*) ac_datarootdir_seen=yes;; 49900 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 49901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 49902 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 49903 _ACEOF 49904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49905 ac_datarootdir_hack=' 49906 s&@datadir@&$datadir&g 49907 s&@docdir@&$docdir&g 49908 s&@infodir@&$infodir&g 49909 s&@localedir@&$localedir&g 49910 s&@mandir@&$mandir&g 49911 s&\\\${datarootdir}&$datarootdir&g' ;; 49912 esac 49913 _ACEOF 49914 49915 # Neutralize VPATH when `$srcdir' = `.'. 49916 # Shell code in configure.ac might set extrasub. 49917 # FIXME: do we really want to maintain this feature? 49918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49919 ac_sed_extra="$ac_vpsub 49920 $extrasub 49921 _ACEOF 49922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49923 :t 49924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 49925 s|@configure_input@|$ac_sed_conf_input|;t t 49926 s&@top_builddir@&$ac_top_builddir_sub&;t t 49927 s&@top_build_prefix@&$ac_top_build_prefix&;t t 49928 s&@srcdir@&$ac_srcdir&;t t 49929 s&@abs_srcdir@&$ac_abs_srcdir&;t t 49930 s&@top_srcdir@&$ac_top_srcdir&;t t 49931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 49932 s&@builddir@&$ac_builddir&;t t 49933 s&@abs_builddir@&$ac_abs_builddir&;t t 49934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 49935 $ac_datarootdir_hack 49936 " 49937 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 49938 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49939 49940 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 49941 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 49942 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 49943 "$ac_tmp/out"`; test -z "$ac_out"; } && 49944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 49945 which seems to be undefined. Please make sure it is defined" >&5 49946 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 49947 which seems to be undefined. Please make sure it is defined" >&2;} 49948 49949 rm -f "$ac_tmp/stdin" 49950 case $ac_file in 49951 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 49952 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 49953 esac \ 49954 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49955 ;; 49956 :H) 49957 # 49958 # CONFIG_HEADER 49959 # 49960 if test x"$ac_file" != x-; then 49961 { 49962 $as_echo "/* $configure_input */" \ 49963 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 49964 } >"$ac_tmp/config.h" \ 49965 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49966 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 49967 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 49968 $as_echo "$as_me: $ac_file is unchanged" >&6;} 49969 else 49970 rm -f "$ac_file" 49971 mv "$ac_tmp/config.h" "$ac_file" \ 49972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 49973 fi 49974 else 49975 $as_echo "/* $configure_input */" \ 49976 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 49977 || as_fn_error $? "could not create -" "$LINENO" 5 49978 fi 49979 ;; 49980 49981 49982 esac 49983 49984 done # for ac_tag 49985 49986 49987 as_fn_exit 0 49988 _ACEOF 49989 ac_clean_files=$ac_clean_files_save 49990 49991 test $ac_write_fail = 0 || 49992 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 49993 49994 49995 # configure is writing to config.log, and then calls config.status. 49996 # config.status does its own redirection, appending to config.log. 49997 # Unfortunately, on DOS this fails, as config.log is still kept open 49998 # by configure, so config.status won't be able to write to it; its 49999 # output is simply discarded. So we exec the FD to /dev/null, 50000 # effectively closing config.log, so it can be properly (re)opened and 50001 # appended to by config.status. When coming back to configure, we 50002 # need to make the FD available again. 50003 if test "$no_create" != yes; then 50004 ac_cs_success=: 50005 ac_config_status_args= 50006 test "$silent" = yes && 50007 ac_config_status_args="$ac_config_status_args --quiet" 50008 exec 5>/dev/null 50009 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 50010 exec 5>>config.log 50011 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 50012 # would make configure fail if this is the last instruction. 50013 $ac_cs_success || as_fn_exit 1 50014 fi 50015 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 50016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 50017 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 50018 fi 50019 50020 50021 # Try to move the config.log file to the output directory. 50022 if test -e ./config.log; then 50023 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 50024 fi 50025 50026 # Make the compare script executable 50027 $CHMOD +x $OUTPUT_ROOT/compare.sh 50028 50029 # Finally output some useful information to the user 50030 50031 # Finally output some useful information to the user 50032 50033 printf "\n" 50034 printf "====================================================\n" 50035 printf "A new configuration has been successfully created in\n" 50036 printf "$OUTPUT_ROOT\n" 50037 if test "x$CONFIGURE_COMMAND_LINE" != x; then 50038 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 50039 else 50040 printf "using default settings.\n" 50041 fi 50042 50043 printf "\n" 50044 printf "Configuration summary:\n" 50045 printf "* Debug level: $DEBUG_LEVEL\n" 50046 printf "* JDK variant: $JDK_VARIANT\n" 50047 printf "* JVM variants: $with_jvm_variants\n" 50048 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 50049 50050 printf "\n" 50051 printf "Tools summary:\n" 50052 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 50053 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 50054 fi 50055 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 50056 printf "* C Compiler: $CC_VENDOR version $CC_VERSION (at $CC)\n" 50057 printf "* C++ Compiler: $CXX_VENDOR version $CXX_VERSION (at $CXX)\n" 50058 50059 printf "\n" 50060 printf "Build performance summary:\n" 50061 printf "* Cores to use: $JOBS\n" 50062 printf "* Memory limit: $MEMORY_SIZE MB\n" 50063 if test "x$CCACHE_STATUS" != "x"; then 50064 printf "* ccache status: $CCACHE_STATUS\n" 50065 fi 50066 printf "\n" 50067 50068 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 50069 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 50070 printf "will result in longer build times.\n" 50071 printf "\n" 50072 fi 50073 50074 if test "x$FOUND_ALT_VARIABLES" != "x"; then 50075 printf "WARNING: You have old-style ALT_ environment variables set.\n" 50076 printf "These are not respected, and will be ignored. It is recommended\n" 50077 printf "that you clean your environment. The following variables are set:\n" 50078 printf "$FOUND_ALT_VARIABLES\n" 50079 printf "\n" 50080 fi 50081 50082 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 50083 printf "WARNING: Your build output directory is not on a local disk.\n" 50084 printf "This will severely degrade build performance!\n" 50085 printf "It is recommended that you create an output directory on a local disk,\n" 50086 printf "and run the configure script again from that directory.\n" 50087 printf "\n" 50088 fi 50089 50090 if test "x$IS_RECONFIGURE" = "xyes"; then 50091 printf "WARNING: The result of this configuration has overridden an older\n" 50092 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 50093 printf "proper build. Failure to do so might result in strange build problems.\n" 50094 printf "\n" 50095 fi 50096