1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk9. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk9' 590 PACKAGE_STRING='OpenJDK jdk9' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 MSVCR_DLL 644 LIBCXX 645 LLVM_LIBS 646 LLVM_LDFLAGS 647 LLVM_CFLAGS 648 LLVM_CONFIG 649 LIBFFI_LIBS 650 LIBFFI_CFLAGS 651 STATIC_CXX_SETTING 652 LIBDL 653 LIBM 654 LIBZIP_CAN_USE_MMAP 655 USE_EXTERNAL_LIBZ 656 USE_EXTERNAL_LIBPNG 657 PNG_LIBS 658 PNG_CFLAGS 659 USE_EXTERNAL_LCMS 660 LCMS_LIBS 661 LCMS_CFLAGS 662 USE_EXTERNAL_LIBGIF 663 USE_EXTERNAL_LIBJPEG 664 ALSA_LIBS 665 ALSA_CFLAGS 666 FREETYPE_BUNDLE_LIB_PATH 667 FREETYPE_LIBS 668 FREETYPE_CFLAGS 669 CUPS_CFLAGS 670 OPENWIN_HOME 671 X_EXTRA_LIBS 672 X_LIBS 673 X_PRE_LIBS 674 X_CFLAGS 675 XMKMF 676 FIXPATH 677 ZIP_DEBUGINFO_FILES 678 ENABLE_DEBUG_SYMBOLS 679 COMPILER_SUPPORTS_TARGET_BITS_FLAG 680 ZERO_ARCHFLAG 681 LDFLAGS_CXX_JDK 682 LDFLAGS_JDKEXE_SUFFIX 683 LDFLAGS_JDKLIB_SUFFIX 684 LDFLAGS_JDKEXE 685 LDFLAGS_JDKLIB 686 CXXFLAGS_JDKEXE 687 CXXFLAGS_JDKLIB 688 CFLAGS_JDKEXE 689 CFLAGS_JDKLIB 690 MACOSX_VERSION_MIN 691 LEGACY_EXTRA_LDFLAGS 692 LEGACY_EXTRA_CXXFLAGS 693 LEGACY_EXTRA_CFLAGS 694 CXX_O_FLAG_NONE 695 CXX_O_FLAG_NORM 696 CXX_O_FLAG_HI 697 CXX_O_FLAG_HIGHEST 698 C_O_FLAG_NONE 699 C_O_FLAG_NORM 700 C_O_FLAG_HI 701 C_O_FLAG_HIGHEST 702 CXXFLAGS_DEBUG_SYMBOLS 703 CFLAGS_DEBUG_SYMBOLS 704 CXX_FLAG_DEPS 705 C_FLAG_DEPS 706 SET_SHARED_LIBRARY_MAPFILE 707 SET_SHARED_LIBRARY_NAME 708 SET_SHARED_LIBRARY_ORIGIN 709 SET_EXECUTABLE_ORIGIN 710 SHARED_LIBRARY_FLAGS 711 CXX_FLAG_REORDER 712 C_FLAG_REORDER 713 RC_FLAGS 714 AR_OUT_OPTION 715 LD_OUT_OPTION 716 EXE_OUT_OPTION 717 CC_OUT_OPTION 718 POST_MCS_CMD 719 POST_STRIP_CMD 720 ARFLAGS 721 COMPILER_TARGET_BITS_FLAG 722 JT_HOME 723 JTREGEXE 724 USING_BROKEN_SUSE_LD 725 PACKAGE_PATH 726 LDEXECXX 727 LDEXE 728 USE_CLANG 729 HOTSPOT_LD 730 HOTSPOT_CXX 731 HOTSPOT_RC 732 HOTSPOT_MT 733 BUILD_LD 734 BUILD_CXX 735 BUILD_CC 736 ac_ct_OBJDUMP 737 OBJDUMP 738 ac_ct_OBJCOPY 739 OBJCOPY 740 ac_ct_NM 741 ac_ct_STRIP 742 MCS 743 GNM 744 NM 745 STRIP 746 DUMPBIN 747 RC 748 MT 749 LIPO 750 ac_ct_OBJC 751 OBJCFLAGS 752 OBJC 753 ac_ct_AR 754 AR 755 AS 756 LDCXX 757 LD 758 CXXCPP 759 CPP 760 ac_ct_CXX 761 CXXFLAGS 762 CXX 763 ac_ct_PROPER_COMPILER_CXX 764 PROPER_COMPILER_CXX 765 TOOLS_DIR_CXX 766 POTENTIAL_CXX 767 OBJEXT 768 EXEEXT 769 ac_ct_CC 770 CPPFLAGS 771 LDFLAGS 772 CFLAGS 773 CC 774 ac_ct_PROPER_COMPILER_CC 775 PROPER_COMPILER_CC 776 TOOLS_DIR_CC 777 POTENTIAL_CC 778 VS_PATH 779 VS_LIB 780 VS_INCLUDE 781 CYGWIN_LINK 782 EXE_SUFFIX 783 OBJ_SUFFIX 784 STATIC_LIBRARY 785 SHARED_LIBRARY 786 STATIC_LIBRARY_SUFFIX 787 SHARED_LIBRARY_SUFFIX 788 LIBRARY_PREFIX 789 TOOLCHAIN_TYPE 790 BUILD_HOTSPOT 791 HOTSPOT_DIST 792 BUILD_OUTPUT 793 OVERRIDE_SRC_ROOT 794 ADD_SRC_ROOT 795 JDK_TOPDIR 796 NASHORN_TOPDIR 797 HOTSPOT_TOPDIR 798 JAXWS_TOPDIR 799 JAXP_TOPDIR 800 CORBA_TOPDIR 801 LANGTOOLS_TOPDIR 802 JAVA_FLAGS_SMALL 803 JAVA_FLAGS_BIG 804 JAVA_FLAGS 805 JAVAC_FLAGS 806 BOOT_JDK_SOURCETARGET 807 JARSIGNER 808 NATIVE2ASCII 809 JAR 810 JAVAH 811 JAVAC 812 JAVA 813 BOOT_JDK 814 BOOT_TOOLSJAR 815 BOOT_RTJAR 816 JAVA_CHECK 817 JAVAC_CHECK 818 COOKED_BUILD_NUMBER 819 JDK_VERSION 820 COPYRIGHT_YEAR 821 MACOSX_BUNDLE_ID_BASE 822 MACOSX_BUNDLE_NAME_BASE 823 COMPANY_NAME 824 JDK_RC_PLATFORM_NAME 825 PRODUCT_SUFFIX 826 PRODUCT_NAME 827 LAUNCHER_NAME 828 MILESTONE 829 JDK_BUILD_NUMBER 830 JDK_UPDATE_VERSION 831 JDK_MICRO_VERSION 832 JDK_MINOR_VERSION 833 JDK_MAJOR_VERSION 834 USER_RELEASE_SUFFIX 835 COMPRESS_JARS 836 RMICONNECTOR_IIOP 837 UNLIMITED_CRYPTO 838 CACERTS_FILE 839 TEST_IN_BUILD 840 BUILD_HEADLESS 841 SUPPORT_HEADFUL 842 SUPPORT_HEADLESS 843 BDEPS_FTP 844 BDEPS_UNZIP 845 OS_VERSION_MICRO 846 OS_VERSION_MINOR 847 OS_VERSION_MAJOR 848 PKG_CONFIG 849 CODESIGN 850 XATTR 851 DSYMUTIL 852 IS_GNU_TIME 853 TIME 854 STAT 855 HG 856 READELF 857 OTOOL 858 LDD 859 ZIP 860 UNZIP 861 FIND_DELETE 862 MAKE 863 CHECK_TOOLSDIR_MAKE 864 CHECK_TOOLSDIR_GMAKE 865 CHECK_MAKE 866 CHECK_GMAKE 867 PKGHANDLER 868 OUTPUT_ROOT 869 CONF_NAME 870 SPEC 871 BUILD_VARIANT_RELEASE 872 DEBUG_CLASSFILES 873 FASTDEBUG 874 VARIANT 875 DEBUG_LEVEL 876 MACOSX_UNIVERSAL 877 INCLUDE_SA 878 JVM_VARIANT_CORE 879 JVM_VARIANT_ZEROSHARK 880 JVM_VARIANT_ZERO 881 JVM_VARIANT_KERNEL 882 JVM_VARIANT_MINIMAL1 883 JVM_VARIANT_CLIENT 884 JVM_VARIANT_SERVER 885 JVM_VARIANTS 886 JVM_INTERPRETER 887 JDK_VARIANT 888 SET_OPENJDK 889 BUILD_LOG_WRAPPER 890 BUILD_LOG_PREVIOUS 891 BUILD_LOG 892 SYS_ROOT 893 TOPDIR 894 PATH_SEP 895 ZERO_ARCHDEF 896 DEFINE_CROSS_COMPILE_ARCH 897 LP64 898 OPENJDK_TARGET_OS_EXPORT_DIR 899 OPENJDK_TARGET_OS_API_DIR 900 OPENJDK_TARGET_CPU_JLI_CFLAGS 901 OPENJDK_TARGET_CPU_OSARCH 902 OPENJDK_TARGET_CPU_ISADIR 903 OPENJDK_TARGET_CPU_LIBDIR 904 OPENJDK_TARGET_CPU_LEGACY_LIB 905 OPENJDK_TARGET_CPU_LEGACY 906 REQUIRED_OS_VERSION 907 REQUIRED_OS_NAME 908 COMPILE_TYPE 909 OPENJDK_TARGET_CPU_ENDIAN 910 OPENJDK_TARGET_CPU_BITS 911 OPENJDK_TARGET_CPU_ARCH 912 OPENJDK_TARGET_CPU 913 OPENJDK_TARGET_OS_API 914 OPENJDK_TARGET_OS 915 OPENJDK_BUILD_CPU_ENDIAN 916 OPENJDK_BUILD_CPU_BITS 917 OPENJDK_BUILD_CPU_ARCH 918 OPENJDK_BUILD_CPU 919 OPENJDK_BUILD_OS_API 920 OPENJDK_BUILD_OS 921 OPENJDK_BUILD_AUTOCONF_NAME 922 OPENJDK_TARGET_AUTOCONF_NAME 923 target_os 924 target_vendor 925 target_cpu 926 target 927 host_os 928 host_vendor 929 host_cpu 930 host 931 build_os 932 build_vendor 933 build_cpu 934 build 935 SETFILE 936 DF 937 READLINK 938 CYGPATH 939 SED 940 FGREP 941 EGREP 942 GREP 943 AWK 944 XARGS 945 WHICH 946 WC 947 UNIQ 948 UNAME 949 TR 950 TOUCH 951 TEE 952 TAR 953 TAIL 954 SORT 955 SH 956 RM 957 PRINTF 958 NAWK 959 MV 960 MKTEMP 961 MKDIR 962 LS 963 LN 964 HEAD 965 FIND 966 FILE 967 EXPR 968 ECHO 969 DIRNAME 970 DIFF 971 DATE 972 CUT 973 CPIO 974 CP 975 COMM 976 CMP 977 CHMOD 978 CAT 979 BASH 980 BASENAME 981 DATE_WHEN_CONFIGURED 982 CONFIGURE_COMMAND_LINE 983 target_alias 984 host_alias 985 build_alias 986 LIBS 987 ECHO_T 988 ECHO_N 989 ECHO_C 990 DEFS 991 mandir 992 localedir 993 libdir 994 psdir 995 pdfdir 996 dvidir 997 htmldir 998 infodir 999 docdir 1000 oldincludedir 1001 includedir 1002 localstatedir 1003 sharedstatedir 1004 sysconfdir 1005 datadir 1006 datarootdir 1007 libexecdir 1008 sbindir 1009 bindir 1010 program_transform_name 1011 prefix 1012 exec_prefix 1013 PACKAGE_URL 1014 PACKAGE_BUGREPORT 1015 PACKAGE_STRING 1016 PACKAGE_VERSION 1017 PACKAGE_TARNAME 1018 PACKAGE_NAME 1019 PATH_SEPARATOR 1020 SHELL' 1021 ac_subst_files='' 1022 ac_user_opts=' 1023 enable_option_checking 1024 with_target_bits 1025 with_sys_root 1026 with_tools_dir 1027 with_devkit 1028 enable_openjdk_only 1029 with_custom_make_dir 1030 with_jdk_variant 1031 with_jvm_interpreter 1032 with_jvm_variants 1033 enable_debug 1034 with_debug_level 1035 with_conf_name 1036 with_builddeps_conf 1037 with_builddeps_server 1038 with_builddeps_dir 1039 with_builddeps_group 1040 enable_headful 1041 enable_hotspot_test_in_build 1042 with_cacerts_file 1043 enable_unlimited_crypto 1044 enable_rmiconnector_iiop 1045 with_milestone 1046 with_update_version 1047 with_user_release_suffix 1048 with_build_number 1049 with_boot_jdk 1050 with_boot_jdk_jvmargs 1051 with_add_source_root 1052 with_override_source_root 1053 with_adds_and_overrides 1054 with_override_langtools 1055 with_override_corba 1056 with_override_jaxp 1057 with_override_jaxws 1058 with_override_hotspot 1059 with_override_nashorn 1060 with_override_jdk 1061 with_import_hotspot 1062 with_toolchain_type 1063 with_jtreg 1064 with_extra_cflags 1065 with_extra_cxxflags 1066 with_extra_ldflags 1067 enable_debug_symbols 1068 enable_zip_debug_info 1069 enable_macosx_runtime_support 1070 with_x 1071 with_cups 1072 with_cups_include 1073 with_freetype 1074 with_freetype_include 1075 with_freetype_lib 1076 enable_freetype_bundling 1077 with_alsa 1078 with_alsa_include 1079 with_alsa_lib 1080 with_giflib 1081 with_lcms 1082 with_libpng 1083 with_zlib 1084 with_stdc__lib 1085 with_msvcr_dll 1086 with_dxsdk 1087 with_dxsdk_lib 1088 with_dxsdk_include 1089 with_num_cores 1090 with_memory_size 1091 with_jobs 1092 with_sjavac_server_java 1093 enable_sjavac 1094 enable_precompiled_headers 1095 enable_ccache 1096 with_ccache_dir 1097 ' 1098 ac_precious_vars='build_alias 1099 host_alias 1100 target_alias 1101 BASENAME 1102 BASH 1103 CAT 1104 CHMOD 1105 CMP 1106 COMM 1107 CP 1108 CPIO 1109 CUT 1110 DATE 1111 DIFF 1112 DIRNAME 1113 ECHO 1114 EXPR 1115 FILE 1116 FIND 1117 HEAD 1118 LN 1119 LS 1120 MKDIR 1121 MKTEMP 1122 MV 1123 NAWK 1124 PRINTF 1125 RM 1126 SH 1127 SORT 1128 TAIL 1129 TAR 1130 TEE 1131 TOUCH 1132 TR 1133 UNAME 1134 UNIQ 1135 WC 1136 WHICH 1137 XARGS 1138 AWK 1139 GREP 1140 EGREP 1141 FGREP 1142 SED 1143 CYGPATH 1144 READLINK 1145 DF 1146 SETFILE 1147 UNZIP 1148 ZIP 1149 LDD 1150 OTOOL 1151 READELF 1152 HG 1153 STAT 1154 TIME 1155 DSYMUTIL 1156 XATTR 1157 CODESIGN 1158 PKG_CONFIG 1159 JAVA 1160 JAVAC 1161 JAVAH 1162 JAR 1163 NATIVE2ASCII 1164 JARSIGNER 1165 CC 1166 CFLAGS 1167 LDFLAGS 1168 LIBS 1169 CPPFLAGS 1170 CXX 1171 CXXFLAGS 1172 CCC 1173 CPP 1174 CXXCPP 1175 AS 1176 AR 1177 OBJC 1178 OBJCFLAGS 1179 LIPO 1180 STRIP 1181 NM 1182 GNM 1183 MCS 1184 OBJCOPY 1185 OBJDUMP 1186 BUILD_CC 1187 BUILD_CXX 1188 BUILD_LD 1189 JTREGEXE 1190 XMKMF 1191 FREETYPE_CFLAGS 1192 FREETYPE_LIBS 1193 ALSA_CFLAGS 1194 ALSA_LIBS 1195 LCMS_CFLAGS 1196 LCMS_LIBS 1197 PNG_CFLAGS 1198 PNG_LIBS 1199 LIBFFI_CFLAGS 1200 LIBFFI_LIBS 1201 CCACHE' 1202 1203 1204 # Initialize some variables set by options. 1205 ac_init_help= 1206 ac_init_version=false 1207 ac_unrecognized_opts= 1208 ac_unrecognized_sep= 1209 # The variables have the same names as the options, with 1210 # dashes changed to underlines. 1211 cache_file=/dev/null 1212 exec_prefix=NONE 1213 no_create= 1214 no_recursion= 1215 prefix=NONE 1216 program_prefix=NONE 1217 program_suffix=NONE 1218 program_transform_name=s,x,x, 1219 silent= 1220 site= 1221 srcdir= 1222 verbose= 1223 x_includes=NONE 1224 x_libraries=NONE 1225 1226 # Installation directory options. 1227 # These are left unexpanded so users can "make install exec_prefix=/foo" 1228 # and all the variables that are supposed to be based on exec_prefix 1229 # by default will actually change. 1230 # Use braces instead of parens because sh, perl, etc. also accept them. 1231 # (The list follows the same order as the GNU Coding Standards.) 1232 bindir='${exec_prefix}/bin' 1233 sbindir='${exec_prefix}/sbin' 1234 libexecdir='${exec_prefix}/libexec' 1235 datarootdir='${prefix}/share' 1236 datadir='${datarootdir}' 1237 sysconfdir='${prefix}/etc' 1238 sharedstatedir='${prefix}/com' 1239 localstatedir='${prefix}/var' 1240 includedir='${prefix}/include' 1241 oldincludedir='/usr/include' 1242 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1243 infodir='${datarootdir}/info' 1244 htmldir='${docdir}' 1245 dvidir='${docdir}' 1246 pdfdir='${docdir}' 1247 psdir='${docdir}' 1248 libdir='${exec_prefix}/lib' 1249 localedir='${datarootdir}/locale' 1250 mandir='${datarootdir}/man' 1251 1252 ac_prev= 1253 ac_dashdash= 1254 for ac_option 1255 do 1256 # If the previous option needs an argument, assign it. 1257 if test -n "$ac_prev"; then 1258 eval $ac_prev=\$ac_option 1259 ac_prev= 1260 continue 1261 fi 1262 1263 case $ac_option in 1264 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1265 *=) ac_optarg= ;; 1266 *) ac_optarg=yes ;; 1267 esac 1268 1269 # Accept the important Cygnus configure options, so we can diagnose typos. 1270 1271 case $ac_dashdash$ac_option in 1272 --) 1273 ac_dashdash=yes ;; 1274 1275 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1276 ac_prev=bindir ;; 1277 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1278 bindir=$ac_optarg ;; 1279 1280 -build | --build | --buil | --bui | --bu) 1281 ac_prev=build_alias ;; 1282 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1283 build_alias=$ac_optarg ;; 1284 1285 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1286 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1287 ac_prev=cache_file ;; 1288 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1289 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1290 cache_file=$ac_optarg ;; 1291 1292 --config-cache | -C) 1293 cache_file=config.cache ;; 1294 1295 -datadir | --datadir | --datadi | --datad) 1296 ac_prev=datadir ;; 1297 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1298 datadir=$ac_optarg ;; 1299 1300 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1301 | --dataroo | --dataro | --datar) 1302 ac_prev=datarootdir ;; 1303 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1304 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1305 datarootdir=$ac_optarg ;; 1306 1307 -disable-* | --disable-*) 1308 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1309 # Reject names that are not valid shell variable names. 1310 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1311 as_fn_error $? "invalid feature name: $ac_useropt" 1312 ac_useropt_orig=$ac_useropt 1313 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1314 case $ac_user_opts in 1315 *" 1316 "enable_$ac_useropt" 1317 "*) ;; 1318 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1319 ac_unrecognized_sep=', ';; 1320 esac 1321 eval enable_$ac_useropt=no ;; 1322 1323 -docdir | --docdir | --docdi | --doc | --do) 1324 ac_prev=docdir ;; 1325 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1326 docdir=$ac_optarg ;; 1327 1328 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1329 ac_prev=dvidir ;; 1330 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1331 dvidir=$ac_optarg ;; 1332 1333 -enable-* | --enable-*) 1334 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1335 # Reject names that are not valid shell variable names. 1336 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1337 as_fn_error $? "invalid feature name: $ac_useropt" 1338 ac_useropt_orig=$ac_useropt 1339 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1340 case $ac_user_opts in 1341 *" 1342 "enable_$ac_useropt" 1343 "*) ;; 1344 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1345 ac_unrecognized_sep=', ';; 1346 esac 1347 eval enable_$ac_useropt=\$ac_optarg ;; 1348 1349 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1350 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1351 | --exec | --exe | --ex) 1352 ac_prev=exec_prefix ;; 1353 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1354 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1355 | --exec=* | --exe=* | --ex=*) 1356 exec_prefix=$ac_optarg ;; 1357 1358 -gas | --gas | --ga | --g) 1359 # Obsolete; use --with-gas. 1360 with_gas=yes ;; 1361 1362 -help | --help | --hel | --he | -h) 1363 ac_init_help=long ;; 1364 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1365 ac_init_help=recursive ;; 1366 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1367 ac_init_help=short ;; 1368 1369 -host | --host | --hos | --ho) 1370 ac_prev=host_alias ;; 1371 -host=* | --host=* | --hos=* | --ho=*) 1372 host_alias=$ac_optarg ;; 1373 1374 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1375 ac_prev=htmldir ;; 1376 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1377 | --ht=*) 1378 htmldir=$ac_optarg ;; 1379 1380 -includedir | --includedir | --includedi | --included | --include \ 1381 | --includ | --inclu | --incl | --inc) 1382 ac_prev=includedir ;; 1383 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1384 | --includ=* | --inclu=* | --incl=* | --inc=*) 1385 includedir=$ac_optarg ;; 1386 1387 -infodir | --infodir | --infodi | --infod | --info | --inf) 1388 ac_prev=infodir ;; 1389 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1390 infodir=$ac_optarg ;; 1391 1392 -libdir | --libdir | --libdi | --libd) 1393 ac_prev=libdir ;; 1394 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1395 libdir=$ac_optarg ;; 1396 1397 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1398 | --libexe | --libex | --libe) 1399 ac_prev=libexecdir ;; 1400 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1401 | --libexe=* | --libex=* | --libe=*) 1402 libexecdir=$ac_optarg ;; 1403 1404 -localedir | --localedir | --localedi | --localed | --locale) 1405 ac_prev=localedir ;; 1406 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1407 localedir=$ac_optarg ;; 1408 1409 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1410 | --localstate | --localstat | --localsta | --localst | --locals) 1411 ac_prev=localstatedir ;; 1412 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1413 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1414 localstatedir=$ac_optarg ;; 1415 1416 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1417 ac_prev=mandir ;; 1418 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1419 mandir=$ac_optarg ;; 1420 1421 -nfp | --nfp | --nf) 1422 # Obsolete; use --without-fp. 1423 with_fp=no ;; 1424 1425 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1426 | --no-cr | --no-c | -n) 1427 no_create=yes ;; 1428 1429 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1430 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1431 no_recursion=yes ;; 1432 1433 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1434 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1435 | --oldin | --oldi | --old | --ol | --o) 1436 ac_prev=oldincludedir ;; 1437 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1438 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1439 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1440 oldincludedir=$ac_optarg ;; 1441 1442 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1443 ac_prev=prefix ;; 1444 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1445 prefix=$ac_optarg ;; 1446 1447 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1448 | --program-pre | --program-pr | --program-p) 1449 ac_prev=program_prefix ;; 1450 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1451 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1452 program_prefix=$ac_optarg ;; 1453 1454 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1455 | --program-suf | --program-su | --program-s) 1456 ac_prev=program_suffix ;; 1457 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1458 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1459 program_suffix=$ac_optarg ;; 1460 1461 -program-transform-name | --program-transform-name \ 1462 | --program-transform-nam | --program-transform-na \ 1463 | --program-transform-n | --program-transform- \ 1464 | --program-transform | --program-transfor \ 1465 | --program-transfo | --program-transf \ 1466 | --program-trans | --program-tran \ 1467 | --progr-tra | --program-tr | --program-t) 1468 ac_prev=program_transform_name ;; 1469 -program-transform-name=* | --program-transform-name=* \ 1470 | --program-transform-nam=* | --program-transform-na=* \ 1471 | --program-transform-n=* | --program-transform-=* \ 1472 | --program-transform=* | --program-transfor=* \ 1473 | --program-transfo=* | --program-transf=* \ 1474 | --program-trans=* | --program-tran=* \ 1475 | --progr-tra=* | --program-tr=* | --program-t=*) 1476 program_transform_name=$ac_optarg ;; 1477 1478 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1479 ac_prev=pdfdir ;; 1480 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1481 pdfdir=$ac_optarg ;; 1482 1483 -psdir | --psdir | --psdi | --psd | --ps) 1484 ac_prev=psdir ;; 1485 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1486 psdir=$ac_optarg ;; 1487 1488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1489 | -silent | --silent | --silen | --sile | --sil) 1490 silent=yes ;; 1491 1492 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1493 ac_prev=sbindir ;; 1494 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1495 | --sbi=* | --sb=*) 1496 sbindir=$ac_optarg ;; 1497 1498 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1499 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1500 | --sharedst | --shareds | --shared | --share | --shar \ 1501 | --sha | --sh) 1502 ac_prev=sharedstatedir ;; 1503 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1504 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1505 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1506 | --sha=* | --sh=*) 1507 sharedstatedir=$ac_optarg ;; 1508 1509 -site | --site | --sit) 1510 ac_prev=site ;; 1511 -site=* | --site=* | --sit=*) 1512 site=$ac_optarg ;; 1513 1514 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1515 ac_prev=srcdir ;; 1516 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1517 srcdir=$ac_optarg ;; 1518 1519 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1520 | --syscon | --sysco | --sysc | --sys | --sy) 1521 ac_prev=sysconfdir ;; 1522 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1523 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1524 sysconfdir=$ac_optarg ;; 1525 1526 -target | --target | --targe | --targ | --tar | --ta | --t) 1527 ac_prev=target_alias ;; 1528 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1529 target_alias=$ac_optarg ;; 1530 1531 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1532 verbose=yes ;; 1533 1534 -version | --version | --versio | --versi | --vers | -V) 1535 ac_init_version=: ;; 1536 1537 -with-* | --with-*) 1538 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1539 # Reject names that are not valid shell variable names. 1540 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1541 as_fn_error $? "invalid package name: $ac_useropt" 1542 ac_useropt_orig=$ac_useropt 1543 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1544 case $ac_user_opts in 1545 *" 1546 "with_$ac_useropt" 1547 "*) ;; 1548 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1549 ac_unrecognized_sep=', ';; 1550 esac 1551 eval with_$ac_useropt=\$ac_optarg ;; 1552 1553 -without-* | --without-*) 1554 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1555 # Reject names that are not valid shell variable names. 1556 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1557 as_fn_error $? "invalid package name: $ac_useropt" 1558 ac_useropt_orig=$ac_useropt 1559 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1560 case $ac_user_opts in 1561 *" 1562 "with_$ac_useropt" 1563 "*) ;; 1564 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1565 ac_unrecognized_sep=', ';; 1566 esac 1567 eval with_$ac_useropt=no ;; 1568 1569 --x) 1570 # Obsolete; use --with-x. 1571 with_x=yes ;; 1572 1573 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1574 | --x-incl | --x-inc | --x-in | --x-i) 1575 ac_prev=x_includes ;; 1576 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1577 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1578 x_includes=$ac_optarg ;; 1579 1580 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1581 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1582 ac_prev=x_libraries ;; 1583 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1584 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1585 x_libraries=$ac_optarg ;; 1586 1587 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1588 Try \`$0 --help' for more information" 1589 ;; 1590 1591 *=*) 1592 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1593 # Reject names that are not valid shell variable names. 1594 case $ac_envvar in #( 1595 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1596 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1597 esac 1598 eval $ac_envvar=\$ac_optarg 1599 export $ac_envvar ;; 1600 1601 *) 1602 # FIXME: should be removed in autoconf 3.0. 1603 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1604 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1605 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1606 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1607 ;; 1608 1609 esac 1610 done 1611 1612 if test -n "$ac_prev"; then 1613 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1614 as_fn_error $? "missing argument to $ac_option" 1615 fi 1616 1617 if test -n "$ac_unrecognized_opts"; then 1618 case $enable_option_checking in 1619 no) ;; 1620 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1621 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1622 esac 1623 fi 1624 1625 # Check all directory arguments for consistency. 1626 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1627 datadir sysconfdir sharedstatedir localstatedir includedir \ 1628 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1629 libdir localedir mandir 1630 do 1631 eval ac_val=\$$ac_var 1632 # Remove trailing slashes. 1633 case $ac_val in 1634 */ ) 1635 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1636 eval $ac_var=\$ac_val;; 1637 esac 1638 # Be sure to have absolute directory names. 1639 case $ac_val in 1640 [\\/$]* | ?:[\\/]* ) continue;; 1641 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1642 esac 1643 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1644 done 1645 1646 # There might be people who depend on the old broken behavior: `$host' 1647 # used to hold the argument of --host etc. 1648 # FIXME: To remove some day. 1649 build=$build_alias 1650 host=$host_alias 1651 target=$target_alias 1652 1653 # FIXME: To remove some day. 1654 if test "x$host_alias" != x; then 1655 if test "x$build_alias" = x; then 1656 cross_compiling=maybe 1657 elif test "x$build_alias" != "x$host_alias"; then 1658 cross_compiling=yes 1659 fi 1660 fi 1661 1662 ac_tool_prefix= 1663 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1664 1665 test "$silent" = yes && exec 6>/dev/null 1666 1667 1668 ac_pwd=`pwd` && test -n "$ac_pwd" && 1669 ac_ls_di=`ls -di .` && 1670 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1671 as_fn_error $? "working directory cannot be determined" 1672 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1673 as_fn_error $? "pwd does not report name of working directory" 1674 1675 1676 # Find the source files, if location was not specified. 1677 if test -z "$srcdir"; then 1678 ac_srcdir_defaulted=yes 1679 # Try the directory containing this script, then the parent directory. 1680 ac_confdir=`$as_dirname -- "$as_myself" || 1681 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1682 X"$as_myself" : 'X\(//\)[^/]' \| \ 1683 X"$as_myself" : 'X\(//\)$' \| \ 1684 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1685 $as_echo X"$as_myself" | 1686 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1687 s//\1/ 1688 q 1689 } 1690 /^X\(\/\/\)[^/].*/{ 1691 s//\1/ 1692 q 1693 } 1694 /^X\(\/\/\)$/{ 1695 s//\1/ 1696 q 1697 } 1698 /^X\(\/\).*/{ 1699 s//\1/ 1700 q 1701 } 1702 s/.*/./; q'` 1703 srcdir=$ac_confdir 1704 if test ! -r "$srcdir/$ac_unique_file"; then 1705 srcdir=.. 1706 fi 1707 else 1708 ac_srcdir_defaulted=no 1709 fi 1710 if test ! -r "$srcdir/$ac_unique_file"; then 1711 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1712 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1713 fi 1714 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1715 ac_abs_confdir=`( 1716 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1717 pwd)` 1718 # When building in place, set srcdir=. 1719 if test "$ac_abs_confdir" = "$ac_pwd"; then 1720 srcdir=. 1721 fi 1722 # Remove unnecessary trailing slashes from srcdir. 1723 # Double slashes in file names in object file debugging info 1724 # mess up M-x gdb in Emacs. 1725 case $srcdir in 1726 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1727 esac 1728 for ac_var in $ac_precious_vars; do 1729 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1730 eval ac_env_${ac_var}_value=\$${ac_var} 1731 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1732 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1733 done 1734 1735 # 1736 # Report the --help message. 1737 # 1738 if test "$ac_init_help" = "long"; then 1739 # Omit some internal or obsolete options to make the list less imposing. 1740 # This message is too long to be a string in the A/UX 3.1 sh. 1741 cat <<_ACEOF 1742 \`configure' configures OpenJDK jdk9 to adapt to many kinds of systems. 1743 1744 Usage: $0 [OPTION]... [VAR=VALUE]... 1745 1746 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1747 VAR=VALUE. See below for descriptions of some of the useful variables. 1748 1749 Defaults for the options are specified in brackets. 1750 1751 Configuration: 1752 -h, --help display this help and exit 1753 --help=short display options specific to this package 1754 --help=recursive display the short help of all the included packages 1755 -V, --version display version information and exit 1756 -q, --quiet, --silent do not print \`checking ...' messages 1757 --cache-file=FILE cache test results in FILE [disabled] 1758 -C, --config-cache alias for \`--cache-file=config.cache' 1759 -n, --no-create do not create output files 1760 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1761 1762 Installation directories: 1763 --prefix=PREFIX install architecture-independent files in PREFIX 1764 [$ac_default_prefix] 1765 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1766 [PREFIX] 1767 1768 By default, \`make install' will install all the files in 1769 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1770 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1771 for instance \`--prefix=\$HOME'. 1772 1773 For better control, use the options below. 1774 1775 Fine tuning of the installation directories: 1776 --bindir=DIR user executables [EPREFIX/bin] 1777 --sbindir=DIR system admin executables [EPREFIX/sbin] 1778 --libexecdir=DIR program executables [EPREFIX/libexec] 1779 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1780 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1781 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1782 --libdir=DIR object code libraries [EPREFIX/lib] 1783 --includedir=DIR C header files [PREFIX/include] 1784 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1785 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1786 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1787 --infodir=DIR info documentation [DATAROOTDIR/info] 1788 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1789 --mandir=DIR man documentation [DATAROOTDIR/man] 1790 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1791 --htmldir=DIR html documentation [DOCDIR] 1792 --dvidir=DIR dvi documentation [DOCDIR] 1793 --pdfdir=DIR pdf documentation [DOCDIR] 1794 --psdir=DIR ps documentation [DOCDIR] 1795 _ACEOF 1796 1797 cat <<\_ACEOF 1798 1799 X features: 1800 --x-includes=DIR X include files are in DIR 1801 --x-libraries=DIR X library files are in DIR 1802 1803 System types: 1804 --build=BUILD configure for building on BUILD [guessed] 1805 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1806 --target=TARGET configure for building compilers for TARGET [HOST] 1807 _ACEOF 1808 fi 1809 1810 if test -n "$ac_init_help"; then 1811 case $ac_init_help in 1812 short | recursive ) echo "Configuration of OpenJDK jdk9:";; 1813 esac 1814 cat <<\_ACEOF 1815 1816 Optional Features: 1817 --disable-option-checking ignore unrecognized --enable/--with options 1818 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1819 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1820 --enable-openjdk-only suppress building custom source even if present 1821 [disabled] 1822 --enable-debug set the debug level to fastdebug (shorthand for 1823 --with-debug-level=fastdebug) [disabled] 1824 --disable-headful disable building headful support (graphical UI 1825 support) [enabled] 1826 --enable-hotspot-test-in-build 1827 run the Queens test after Hotspot build [disabled] 1828 --enable-unlimited-crypto 1829 Enable unlimited crypto policy [disabled] 1830 --enable-rmiconnector-iiop 1831 enable the JMX RMIConnector iiop transport 1832 [disabled] 1833 --disable-debug-symbols disable generation of debug symbols [enabled] 1834 --disable-zip-debug-info 1835 disable zipping of debug-info files [enabled] 1836 --enable-macosx-runtime-support 1837 Deprecated. Option is kept for backwards 1838 compatibility and is ignored 1839 --disable-freetype-bundling 1840 disable bundling of the freetype library with the 1841 build result [enabled on Windows or when using 1842 --with-freetype, disabled otherwise] 1843 --enable-sjavac use sjavac to do fast incremental compiles 1844 [disabled] 1845 --disable-precompiled-headers 1846 disable using precompiled headers when compiling C++ 1847 [enabled] 1848 --enable-ccache enable using ccache to speed up recompilations 1849 [disabled] 1850 1851 Optional Packages: 1852 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1853 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1854 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1855 support it), e.g. --with-target-bits=32 [guessed] 1856 --with-sys-root pass this sys-root to the compilers and tools (for 1857 cross-compiling) 1858 --with-tools-dir search this directory for compilers and tools (for 1859 cross-compiling) 1860 --with-devkit use this directory as base for tools-dir and 1861 sys-root (for cross-compiling) 1862 --with-custom-make-dir Deprecated. Option is kept for backwards 1863 compatibility and is ignored 1864 --with-jdk-variant JDK variant to build (normal) [normal] 1865 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1866 --with-jvm-variants JVM variants (separated by commas) to build (server, 1867 client, minimal1, kernel, zero, zeroshark, core) 1868 [server] 1869 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1870 [release] 1871 --with-conf-name use this as the name of the configuration [generated 1872 from important configuration options] 1873 --with-builddeps-conf use this configuration file for the builddeps 1874 --with-builddeps-server download and use build dependencies from this server 1875 url 1876 --with-builddeps-dir store downloaded build dependencies here 1877 [/localhome/builddeps] 1878 --with-builddeps-group chgrp the downloaded build dependencies to this 1879 group 1880 --with-cacerts-file specify alternative cacerts file 1881 --with-milestone Set milestone value for build [internal] 1882 --with-update-version Set update version value for build [b00] 1883 --with-user-release-suffix 1884 Add a custom string to the version string if build 1885 number is not set.[username_builddateb00] 1886 --with-build-number Set build number value for build [b00] 1887 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1888 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all java 1889 invocations of boot JDK, overriding the default 1890 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1891 -enableassertions" 1892 --with-add-source-root for each and every source directory, look in this 1893 additional source root for the same directory; if it 1894 exists and have files in it, include it in the build 1895 --with-override-source-root 1896 for each and every source directory, look in this 1897 override source root for the same directory; if it 1898 exists, use that directory instead and ignore the 1899 directory in the original source root 1900 --with-adds-and-overrides 1901 use the subdirs 'adds' and 'overrides' in the 1902 specified directory as add-source-root and 1903 override-source-root 1904 --with-override-langtools 1905 use this langtools dir for the build 1906 --with-override-corba use this corba dir for the build 1907 --with-override-jaxp use this jaxp dir for the build 1908 --with-override-jaxws use this jaxws dir for the build 1909 --with-override-hotspot use this hotspot dir for the build 1910 --with-override-nashorn use this nashorn dir for the build 1911 --with-override-jdk use this jdk dir for the build 1912 --with-import-hotspot import hotspot binaries from this jdk image or 1913 hotspot build dist dir instead of building from 1914 source 1915 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1916 to show possible values [platform dependent] 1917 --with-jtreg Regression Test Harness [probed] 1918 --with-extra-cflags extra flags to be used when compiling jdk c-files 1919 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1920 --with-extra-ldflags extra flags to be used when linking jdk 1921 --with-x use the X Window System 1922 --with-cups specify prefix directory for the cups package 1923 (expecting the headers under PATH/include) 1924 --with-cups-include specify directory for the cups include files 1925 --with-freetype specify prefix directory for the freetype package 1926 (expecting the libraries under PATH/lib and the 1927 headers under PATH/include) 1928 --with-freetype-include specify directory for the freetype include files 1929 --with-freetype-lib specify directory for the freetype library 1930 --with-alsa specify prefix directory for the alsa package 1931 (expecting the libraries under PATH/lib and the 1932 headers under PATH/include) 1933 --with-alsa-include specify directory for the alsa include files 1934 --with-alsa-lib specify directory for the alsa library 1935 --with-giflib use giflib from build system or OpenJDK source 1936 (system, bundled) [bundled] 1937 --with-lcms use lcms2 from build system or OpenJDK source 1938 (system, bundled) [bundled] 1939 --with-libpng use libpng from build system or OpenJDK source 1940 (system, bundled) [bundled] 1941 --with-zlib use zlib from build system or OpenJDK source 1942 (system, bundled) [bundled] 1943 --with-stdc++lib=<static>,<dynamic>,<default> 1944 force linking of the C++ runtime on Linux to either 1945 static or dynamic, default is static with dynamic as 1946 fallback 1947 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1948 only) [probed] 1949 --with-dxsdk Deprecated. Option is kept for backwards 1950 compatibility and is ignored 1951 --with-dxsdk-lib Deprecated. Option is kept for backwards 1952 compatibility and is ignored 1953 --with-dxsdk-include Deprecated. Option is kept for backwards 1954 compatibility and is ignored 1955 --with-num-cores number of cores in the build system, e.g. 1956 --with-num-cores=8 [probed] 1957 --with-memory-size memory (in MB) available in the build system, e.g. 1958 --with-memory-size=1024 [probed] 1959 --with-jobs number of parallel jobs to let make run [calculated 1960 based on cores and memory] 1961 --with-sjavac-server-java 1962 use this java binary for running the sjavac 1963 background server [Boot JDK java] 1964 --with-ccache-dir where to store ccache files [~/.ccache] 1965 1966 Some influential environment variables: 1967 BASENAME Override default value for BASENAME 1968 BASH Override default value for BASH 1969 CAT Override default value for CAT 1970 CHMOD Override default value for CHMOD 1971 CMP Override default value for CMP 1972 COMM Override default value for COMM 1973 CP Override default value for CP 1974 CPIO Override default value for CPIO 1975 CUT Override default value for CUT 1976 DATE Override default value for DATE 1977 DIFF Override default value for DIFF 1978 DIRNAME Override default value for DIRNAME 1979 ECHO Override default value for ECHO 1980 EXPR Override default value for EXPR 1981 FILE Override default value for FILE 1982 FIND Override default value for FIND 1983 HEAD Override default value for HEAD 1984 LN Override default value for LN 1985 LS Override default value for LS 1986 MKDIR Override default value for MKDIR 1987 MKTEMP Override default value for MKTEMP 1988 MV Override default value for MV 1989 NAWK Override default value for NAWK 1990 PRINTF Override default value for PRINTF 1991 RM Override default value for RM 1992 SH Override default value for SH 1993 SORT Override default value for SORT 1994 TAIL Override default value for TAIL 1995 TAR Override default value for TAR 1996 TEE Override default value for TEE 1997 TOUCH Override default value for TOUCH 1998 TR Override default value for TR 1999 UNAME Override default value for UNAME 2000 UNIQ Override default value for UNIQ 2001 WC Override default value for WC 2002 WHICH Override default value for WHICH 2003 XARGS Override default value for XARGS 2004 AWK Override default value for AWK 2005 GREP Override default value for GREP 2006 EGREP Override default value for EGREP 2007 FGREP Override default value for FGREP 2008 SED Override default value for SED 2009 CYGPATH Override default value for CYGPATH 2010 READLINK Override default value for READLINK 2011 DF Override default value for DF 2012 SETFILE Override default value for SETFILE 2013 UNZIP Override default value for UNZIP 2014 ZIP Override default value for ZIP 2015 LDD Override default value for LDD 2016 OTOOL Override default value for OTOOL 2017 READELF Override default value for READELF 2018 HG Override default value for HG 2019 STAT Override default value for STAT 2020 TIME Override default value for TIME 2021 DSYMUTIL Override default value for DSYMUTIL 2022 XATTR Override default value for XATTR 2023 CODESIGN Override default value for CODESIGN 2024 PKG_CONFIG path to pkg-config utility 2025 JAVA Override default value for JAVA 2026 JAVAC Override default value for JAVAC 2027 JAVAH Override default value for JAVAH 2028 JAR Override default value for JAR 2029 NATIVE2ASCII 2030 Override default value for NATIVE2ASCII 2031 JARSIGNER Override default value for JARSIGNER 2032 CC C compiler command 2033 CFLAGS C compiler flags 2034 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2035 nonstandard directory <lib dir> 2036 LIBS libraries to pass to the linker, e.g. -l<library> 2037 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2038 you have headers in a nonstandard directory <include dir> 2039 CXX C++ compiler command 2040 CXXFLAGS C++ compiler flags 2041 CPP C preprocessor 2042 CXXCPP C++ preprocessor 2043 AS Override default value for AS 2044 AR Override default value for AR 2045 OBJC Objective C compiler command 2046 OBJCFLAGS Objective C compiler flags 2047 LIPO Override default value for LIPO 2048 STRIP Override default value for STRIP 2049 NM Override default value for NM 2050 GNM Override default value for GNM 2051 MCS Override default value for MCS 2052 OBJCOPY Override default value for OBJCOPY 2053 OBJDUMP Override default value for OBJDUMP 2054 BUILD_CC Override default value for BUILD_CC 2055 BUILD_CXX Override default value for BUILD_CXX 2056 BUILD_LD Override default value for BUILD_LD 2057 JTREGEXE Override default value for JTREGEXE 2058 XMKMF Path to xmkmf, Makefile generator for X Window System 2059 FREETYPE_CFLAGS 2060 C compiler flags for FREETYPE, overriding pkg-config 2061 FREETYPE_LIBS 2062 linker flags for FREETYPE, overriding pkg-config 2063 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2064 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2065 LCMS_CFLAGS C compiler flags for LCMS, overriding pkg-config 2066 LCMS_LIBS linker flags for LCMS, overriding pkg-config 2067 PNG_CFLAGS C compiler flags for PNG, overriding pkg-config 2068 PNG_LIBS linker flags for PNG, overriding pkg-config 2069 LIBFFI_CFLAGS 2070 C compiler flags for LIBFFI, overriding pkg-config 2071 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2072 CCACHE Override default value for CCACHE 2073 2074 Use these variables to override the choices made by `configure' or to help 2075 it to find libraries and programs with nonstandard names/locations. 2076 2077 Report bugs to <build-dev@openjdk.java.net>. 2078 OpenJDK home page: <http://openjdk.java.net>. 2079 _ACEOF 2080 ac_status=$? 2081 fi 2082 2083 if test "$ac_init_help" = "recursive"; then 2084 # If there are subdirs, report their specific --help. 2085 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2086 test -d "$ac_dir" || 2087 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2088 continue 2089 ac_builddir=. 2090 2091 case "$ac_dir" in 2092 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2093 *) 2094 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2095 # A ".." for each directory in $ac_dir_suffix. 2096 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2097 case $ac_top_builddir_sub in 2098 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2099 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2100 esac ;; 2101 esac 2102 ac_abs_top_builddir=$ac_pwd 2103 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2104 # for backward compatibility: 2105 ac_top_builddir=$ac_top_build_prefix 2106 2107 case $srcdir in 2108 .) # We are building in place. 2109 ac_srcdir=. 2110 ac_top_srcdir=$ac_top_builddir_sub 2111 ac_abs_top_srcdir=$ac_pwd ;; 2112 [\\/]* | ?:[\\/]* ) # Absolute name. 2113 ac_srcdir=$srcdir$ac_dir_suffix; 2114 ac_top_srcdir=$srcdir 2115 ac_abs_top_srcdir=$srcdir ;; 2116 *) # Relative name. 2117 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2118 ac_top_srcdir=$ac_top_build_prefix$srcdir 2119 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2120 esac 2121 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2122 2123 cd "$ac_dir" || { ac_status=$?; continue; } 2124 # Check for guested configure. 2125 if test -f "$ac_srcdir/configure.gnu"; then 2126 echo && 2127 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2128 elif test -f "$ac_srcdir/configure"; then 2129 echo && 2130 $SHELL "$ac_srcdir/configure" --help=recursive 2131 else 2132 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2133 fi || ac_status=$? 2134 cd "$ac_pwd" || { ac_status=$?; break; } 2135 done 2136 fi 2137 2138 test -n "$ac_init_help" && exit $ac_status 2139 if $ac_init_version; then 2140 cat <<\_ACEOF 2141 OpenJDK configure jdk9 2142 generated by GNU Autoconf 2.69 2143 2144 Copyright (C) 2012 Free Software Foundation, Inc. 2145 This configure script is free software; the Free Software Foundation 2146 gives unlimited permission to copy, distribute and modify it. 2147 _ACEOF 2148 exit 2149 fi 2150 2151 ## ------------------------ ## 2152 ## Autoconf initialization. ## 2153 ## ------------------------ ## 2154 2155 # ac_fn_c_try_compile LINENO 2156 # -------------------------- 2157 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2158 ac_fn_c_try_compile () 2159 { 2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2161 rm -f conftest.$ac_objext 2162 if { { ac_try="$ac_compile" 2163 case "(($ac_try" in 2164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2165 *) ac_try_echo=$ac_try;; 2166 esac 2167 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2168 $as_echo "$ac_try_echo"; } >&5 2169 (eval "$ac_compile") 2>conftest.err 2170 ac_status=$? 2171 if test -s conftest.err; then 2172 grep -v '^ *+' conftest.err >conftest.er1 2173 cat conftest.er1 >&5 2174 mv -f conftest.er1 conftest.err 2175 fi 2176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2177 test $ac_status = 0; } && { 2178 test -z "$ac_c_werror_flag" || 2179 test ! -s conftest.err 2180 } && test -s conftest.$ac_objext; then : 2181 ac_retval=0 2182 else 2183 $as_echo "$as_me: failed program was:" >&5 2184 sed 's/^/| /' conftest.$ac_ext >&5 2185 2186 ac_retval=1 2187 fi 2188 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2189 as_fn_set_status $ac_retval 2190 2191 } # ac_fn_c_try_compile 2192 2193 # ac_fn_cxx_try_compile LINENO 2194 # ---------------------------- 2195 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2196 ac_fn_cxx_try_compile () 2197 { 2198 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2199 rm -f conftest.$ac_objext 2200 if { { ac_try="$ac_compile" 2201 case "(($ac_try" in 2202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2203 *) ac_try_echo=$ac_try;; 2204 esac 2205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2206 $as_echo "$ac_try_echo"; } >&5 2207 (eval "$ac_compile") 2>conftest.err 2208 ac_status=$? 2209 if test -s conftest.err; then 2210 grep -v '^ *+' conftest.err >conftest.er1 2211 cat conftest.er1 >&5 2212 mv -f conftest.er1 conftest.err 2213 fi 2214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2215 test $ac_status = 0; } && { 2216 test -z "$ac_cxx_werror_flag" || 2217 test ! -s conftest.err 2218 } && test -s conftest.$ac_objext; then : 2219 ac_retval=0 2220 else 2221 $as_echo "$as_me: failed program was:" >&5 2222 sed 's/^/| /' conftest.$ac_ext >&5 2223 2224 ac_retval=1 2225 fi 2226 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2227 as_fn_set_status $ac_retval 2228 2229 } # ac_fn_cxx_try_compile 2230 2231 # ac_fn_c_try_cpp LINENO 2232 # ---------------------- 2233 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2234 ac_fn_c_try_cpp () 2235 { 2236 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2237 if { { ac_try="$ac_cpp conftest.$ac_ext" 2238 case "(($ac_try" in 2239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2240 *) ac_try_echo=$ac_try;; 2241 esac 2242 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2243 $as_echo "$ac_try_echo"; } >&5 2244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2245 ac_status=$? 2246 if test -s conftest.err; then 2247 grep -v '^ *+' conftest.err >conftest.er1 2248 cat conftest.er1 >&5 2249 mv -f conftest.er1 conftest.err 2250 fi 2251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2252 test $ac_status = 0; } > conftest.i && { 2253 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2254 test ! -s conftest.err 2255 }; then : 2256 ac_retval=0 2257 else 2258 $as_echo "$as_me: failed program was:" >&5 2259 sed 's/^/| /' conftest.$ac_ext >&5 2260 2261 ac_retval=1 2262 fi 2263 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2264 as_fn_set_status $ac_retval 2265 2266 } # ac_fn_c_try_cpp 2267 2268 # ac_fn_cxx_try_cpp LINENO 2269 # ------------------------ 2270 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2271 ac_fn_cxx_try_cpp () 2272 { 2273 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2274 if { { ac_try="$ac_cpp conftest.$ac_ext" 2275 case "(($ac_try" in 2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2277 *) ac_try_echo=$ac_try;; 2278 esac 2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2280 $as_echo "$ac_try_echo"; } >&5 2281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2282 ac_status=$? 2283 if test -s conftest.err; then 2284 grep -v '^ *+' conftest.err >conftest.er1 2285 cat conftest.er1 >&5 2286 mv -f conftest.er1 conftest.err 2287 fi 2288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2289 test $ac_status = 0; } > conftest.i && { 2290 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2291 test ! -s conftest.err 2292 }; then : 2293 ac_retval=0 2294 else 2295 $as_echo "$as_me: failed program was:" >&5 2296 sed 's/^/| /' conftest.$ac_ext >&5 2297 2298 ac_retval=1 2299 fi 2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2301 as_fn_set_status $ac_retval 2302 2303 } # ac_fn_cxx_try_cpp 2304 2305 # ac_fn_objc_try_compile LINENO 2306 # ----------------------------- 2307 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2308 ac_fn_objc_try_compile () 2309 { 2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2311 rm -f conftest.$ac_objext 2312 if { { ac_try="$ac_compile" 2313 case "(($ac_try" in 2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2315 *) ac_try_echo=$ac_try;; 2316 esac 2317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2318 $as_echo "$ac_try_echo"; } >&5 2319 (eval "$ac_compile") 2>conftest.err 2320 ac_status=$? 2321 if test -s conftest.err; then 2322 grep -v '^ *+' conftest.err >conftest.er1 2323 cat conftest.er1 >&5 2324 mv -f conftest.er1 conftest.err 2325 fi 2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2327 test $ac_status = 0; } && { 2328 test -z "$ac_objc_werror_flag" || 2329 test ! -s conftest.err 2330 } && test -s conftest.$ac_objext; then : 2331 ac_retval=0 2332 else 2333 $as_echo "$as_me: failed program was:" >&5 2334 sed 's/^/| /' conftest.$ac_ext >&5 2335 2336 ac_retval=1 2337 fi 2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2339 as_fn_set_status $ac_retval 2340 2341 } # ac_fn_objc_try_compile 2342 2343 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2344 # --------------------------------------------------------- 2345 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2346 # the include files in INCLUDES and setting the cache variable VAR 2347 # accordingly. 2348 ac_fn_cxx_check_header_mongrel () 2349 { 2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2351 if eval \${$3+:} false; then : 2352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2353 $as_echo_n "checking for $2... " >&6; } 2354 if eval \${$3+:} false; then : 2355 $as_echo_n "(cached) " >&6 2356 fi 2357 eval ac_res=\$$3 2358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2359 $as_echo "$ac_res" >&6; } 2360 else 2361 # Is the header compilable? 2362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2363 $as_echo_n "checking $2 usability... " >&6; } 2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2365 /* end confdefs.h. */ 2366 $4 2367 #include <$2> 2368 _ACEOF 2369 if ac_fn_cxx_try_compile "$LINENO"; then : 2370 ac_header_compiler=yes 2371 else 2372 ac_header_compiler=no 2373 fi 2374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2376 $as_echo "$ac_header_compiler" >&6; } 2377 2378 # Is the header present? 2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2380 $as_echo_n "checking $2 presence... " >&6; } 2381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2382 /* end confdefs.h. */ 2383 #include <$2> 2384 _ACEOF 2385 if ac_fn_cxx_try_cpp "$LINENO"; then : 2386 ac_header_preproc=yes 2387 else 2388 ac_header_preproc=no 2389 fi 2390 rm -f conftest.err conftest.i conftest.$ac_ext 2391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2392 $as_echo "$ac_header_preproc" >&6; } 2393 2394 # So? What about this header? 2395 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2396 yes:no: ) 2397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2398 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2400 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2401 ;; 2402 no:yes:* ) 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2404 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2406 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2408 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2410 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2412 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2413 ( $as_echo "## ----------------------------------------- ## 2414 ## Report this to build-dev@openjdk.java.net ## 2415 ## ----------------------------------------- ##" 2416 ) | sed "s/^/$as_me: WARNING: /" >&2 2417 ;; 2418 esac 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2420 $as_echo_n "checking for $2... " >&6; } 2421 if eval \${$3+:} false; then : 2422 $as_echo_n "(cached) " >&6 2423 else 2424 eval "$3=\$ac_header_compiler" 2425 fi 2426 eval ac_res=\$$3 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2428 $as_echo "$ac_res" >&6; } 2429 fi 2430 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2431 2432 } # ac_fn_cxx_check_header_mongrel 2433 2434 # ac_fn_cxx_try_run LINENO 2435 # ------------------------ 2436 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2437 # that executables *can* be run. 2438 ac_fn_cxx_try_run () 2439 { 2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2441 if { { ac_try="$ac_link" 2442 case "(($ac_try" in 2443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2444 *) ac_try_echo=$ac_try;; 2445 esac 2446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2447 $as_echo "$ac_try_echo"; } >&5 2448 (eval "$ac_link") 2>&5 2449 ac_status=$? 2450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2451 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2452 { { case "(($ac_try" in 2453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2454 *) ac_try_echo=$ac_try;; 2455 esac 2456 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2457 $as_echo "$ac_try_echo"; } >&5 2458 (eval "$ac_try") 2>&5 2459 ac_status=$? 2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2461 test $ac_status = 0; }; }; then : 2462 ac_retval=0 2463 else 2464 $as_echo "$as_me: program exited with status $ac_status" >&5 2465 $as_echo "$as_me: failed program was:" >&5 2466 sed 's/^/| /' conftest.$ac_ext >&5 2467 2468 ac_retval=$ac_status 2469 fi 2470 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2471 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2472 as_fn_set_status $ac_retval 2473 2474 } # ac_fn_cxx_try_run 2475 2476 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2477 # --------------------------------------------------------- 2478 # Tests whether HEADER exists and can be compiled using the include files in 2479 # INCLUDES, setting the cache variable VAR accordingly. 2480 ac_fn_cxx_check_header_compile () 2481 { 2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2484 $as_echo_n "checking for $2... " >&6; } 2485 if eval \${$3+:} false; then : 2486 $as_echo_n "(cached) " >&6 2487 else 2488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2489 /* end confdefs.h. */ 2490 $4 2491 #include <$2> 2492 _ACEOF 2493 if ac_fn_cxx_try_compile "$LINENO"; then : 2494 eval "$3=yes" 2495 else 2496 eval "$3=no" 2497 fi 2498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2499 fi 2500 eval ac_res=\$$3 2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2502 $as_echo "$ac_res" >&6; } 2503 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2504 2505 } # ac_fn_cxx_check_header_compile 2506 2507 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2508 # ---------------------------------------------- 2509 # Tries to find the compile-time value of EXPR in a program that includes 2510 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2511 # computed 2512 ac_fn_cxx_compute_int () 2513 { 2514 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2515 if test "$cross_compiling" = yes; then 2516 # Depending upon the size, compute the lo and hi bounds. 2517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2518 /* end confdefs.h. */ 2519 $4 2520 int 2521 main () 2522 { 2523 static int test_array [1 - 2 * !(($2) >= 0)]; 2524 test_array [0] = 0; 2525 return test_array [0]; 2526 2527 ; 2528 return 0; 2529 } 2530 _ACEOF 2531 if ac_fn_cxx_try_compile "$LINENO"; then : 2532 ac_lo=0 ac_mid=0 2533 while :; do 2534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2535 /* end confdefs.h. */ 2536 $4 2537 int 2538 main () 2539 { 2540 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2541 test_array [0] = 0; 2542 return test_array [0]; 2543 2544 ; 2545 return 0; 2546 } 2547 _ACEOF 2548 if ac_fn_cxx_try_compile "$LINENO"; then : 2549 ac_hi=$ac_mid; break 2550 else 2551 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2552 if test $ac_lo -le $ac_mid; then 2553 ac_lo= ac_hi= 2554 break 2555 fi 2556 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2557 fi 2558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2559 done 2560 else 2561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2562 /* end confdefs.h. */ 2563 $4 2564 int 2565 main () 2566 { 2567 static int test_array [1 - 2 * !(($2) < 0)]; 2568 test_array [0] = 0; 2569 return test_array [0]; 2570 2571 ; 2572 return 0; 2573 } 2574 _ACEOF 2575 if ac_fn_cxx_try_compile "$LINENO"; then : 2576 ac_hi=-1 ac_mid=-1 2577 while :; do 2578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2579 /* end confdefs.h. */ 2580 $4 2581 int 2582 main () 2583 { 2584 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2585 test_array [0] = 0; 2586 return test_array [0]; 2587 2588 ; 2589 return 0; 2590 } 2591 _ACEOF 2592 if ac_fn_cxx_try_compile "$LINENO"; then : 2593 ac_lo=$ac_mid; break 2594 else 2595 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2596 if test $ac_mid -le $ac_hi; then 2597 ac_lo= ac_hi= 2598 break 2599 fi 2600 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2601 fi 2602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2603 done 2604 else 2605 ac_lo= ac_hi= 2606 fi 2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2608 fi 2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2610 # Binary search between lo and hi bounds. 2611 while test "x$ac_lo" != "x$ac_hi"; do 2612 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2614 /* end confdefs.h. */ 2615 $4 2616 int 2617 main () 2618 { 2619 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2620 test_array [0] = 0; 2621 return test_array [0]; 2622 2623 ; 2624 return 0; 2625 } 2626 _ACEOF 2627 if ac_fn_cxx_try_compile "$LINENO"; then : 2628 ac_hi=$ac_mid 2629 else 2630 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2631 fi 2632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2633 done 2634 case $ac_lo in #(( 2635 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2636 '') ac_retval=1 ;; 2637 esac 2638 else 2639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2640 /* end confdefs.h. */ 2641 $4 2642 static long int longval () { return $2; } 2643 static unsigned long int ulongval () { return $2; } 2644 #include <stdio.h> 2645 #include <stdlib.h> 2646 int 2647 main () 2648 { 2649 2650 FILE *f = fopen ("conftest.val", "w"); 2651 if (! f) 2652 return 1; 2653 if (($2) < 0) 2654 { 2655 long int i = longval (); 2656 if (i != ($2)) 2657 return 1; 2658 fprintf (f, "%ld", i); 2659 } 2660 else 2661 { 2662 unsigned long int i = ulongval (); 2663 if (i != ($2)) 2664 return 1; 2665 fprintf (f, "%lu", i); 2666 } 2667 /* Do not output a trailing newline, as this causes \r\n confusion 2668 on some platforms. */ 2669 return ferror (f) || fclose (f) != 0; 2670 2671 ; 2672 return 0; 2673 } 2674 _ACEOF 2675 if ac_fn_cxx_try_run "$LINENO"; then : 2676 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2677 else 2678 ac_retval=1 2679 fi 2680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2681 conftest.$ac_objext conftest.beam conftest.$ac_ext 2682 rm -f conftest.val 2683 2684 fi 2685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2686 as_fn_set_status $ac_retval 2687 2688 } # ac_fn_cxx_compute_int 2689 2690 # ac_fn_cxx_try_link LINENO 2691 # ------------------------- 2692 # Try to link conftest.$ac_ext, and return whether this succeeded. 2693 ac_fn_cxx_try_link () 2694 { 2695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2696 rm -f conftest.$ac_objext conftest$ac_exeext 2697 if { { ac_try="$ac_link" 2698 case "(($ac_try" in 2699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2700 *) ac_try_echo=$ac_try;; 2701 esac 2702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2703 $as_echo "$ac_try_echo"; } >&5 2704 (eval "$ac_link") 2>conftest.err 2705 ac_status=$? 2706 if test -s conftest.err; then 2707 grep -v '^ *+' conftest.err >conftest.er1 2708 cat conftest.er1 >&5 2709 mv -f conftest.er1 conftest.err 2710 fi 2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2712 test $ac_status = 0; } && { 2713 test -z "$ac_cxx_werror_flag" || 2714 test ! -s conftest.err 2715 } && test -s conftest$ac_exeext && { 2716 test "$cross_compiling" = yes || 2717 test -x conftest$ac_exeext 2718 }; then : 2719 ac_retval=0 2720 else 2721 $as_echo "$as_me: failed program was:" >&5 2722 sed 's/^/| /' conftest.$ac_ext >&5 2723 2724 ac_retval=1 2725 fi 2726 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2727 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2728 # interfere with the next link command; also delete a directory that is 2729 # left behind by Apple's compiler. We do this before executing the actions. 2730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2732 as_fn_set_status $ac_retval 2733 2734 } # ac_fn_cxx_try_link 2735 2736 # ac_fn_cxx_check_func LINENO FUNC VAR 2737 # ------------------------------------ 2738 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2739 ac_fn_cxx_check_func () 2740 { 2741 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2743 $as_echo_n "checking for $2... " >&6; } 2744 if eval \${$3+:} false; then : 2745 $as_echo_n "(cached) " >&6 2746 else 2747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2748 /* end confdefs.h. */ 2749 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2750 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2751 #define $2 innocuous_$2 2752 2753 /* System header to define __stub macros and hopefully few prototypes, 2754 which can conflict with char $2 (); below. 2755 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2756 <limits.h> exists even on freestanding compilers. */ 2757 2758 #ifdef __STDC__ 2759 # include <limits.h> 2760 #else 2761 # include <assert.h> 2762 #endif 2763 2764 #undef $2 2765 2766 /* Override any GCC internal prototype to avoid an error. 2767 Use char because int might match the return type of a GCC 2768 builtin and then its argument prototype would still apply. */ 2769 #ifdef __cplusplus 2770 extern "C" 2771 #endif 2772 char $2 (); 2773 /* The GNU C library defines this for functions which it implements 2774 to always fail with ENOSYS. Some functions are actually named 2775 something starting with __ and the normal name is an alias. */ 2776 #if defined __stub_$2 || defined __stub___$2 2777 choke me 2778 #endif 2779 2780 int 2781 main () 2782 { 2783 return $2 (); 2784 ; 2785 return 0; 2786 } 2787 _ACEOF 2788 if ac_fn_cxx_try_link "$LINENO"; then : 2789 eval "$3=yes" 2790 else 2791 eval "$3=no" 2792 fi 2793 rm -f core conftest.err conftest.$ac_objext \ 2794 conftest$ac_exeext conftest.$ac_ext 2795 fi 2796 eval ac_res=\$$3 2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2798 $as_echo "$ac_res" >&6; } 2799 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2800 2801 } # ac_fn_cxx_check_func 2802 2803 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2804 # ------------------------------------------------------- 2805 # Tests whether HEADER exists and can be compiled using the include files in 2806 # INCLUDES, setting the cache variable VAR accordingly. 2807 ac_fn_c_check_header_compile () 2808 { 2809 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2811 $as_echo_n "checking for $2... " >&6; } 2812 if eval \${$3+:} false; then : 2813 $as_echo_n "(cached) " >&6 2814 else 2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2816 /* end confdefs.h. */ 2817 $4 2818 #include <$2> 2819 _ACEOF 2820 if ac_fn_c_try_compile "$LINENO"; then : 2821 eval "$3=yes" 2822 else 2823 eval "$3=no" 2824 fi 2825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2826 fi 2827 eval ac_res=\$$3 2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2829 $as_echo "$ac_res" >&6; } 2830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2831 2832 } # ac_fn_c_check_header_compile 2833 cat >config.log <<_ACEOF 2834 This file contains any messages produced by compilers while 2835 running configure, to aid debugging if configure makes a mistake. 2836 2837 It was created by OpenJDK $as_me jdk9, which was 2838 generated by GNU Autoconf 2.69. Invocation command line was 2839 2840 $ $0 $@ 2841 2842 _ACEOF 2843 exec 5>>config.log 2844 { 2845 cat <<_ASUNAME 2846 ## --------- ## 2847 ## Platform. ## 2848 ## --------- ## 2849 2850 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2851 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2852 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2853 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2854 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2855 2856 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2857 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2858 2859 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2860 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2861 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2862 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2863 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2864 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2865 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2866 2867 _ASUNAME 2868 2869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2870 for as_dir in $PATH 2871 do 2872 IFS=$as_save_IFS 2873 test -z "$as_dir" && as_dir=. 2874 $as_echo "PATH: $as_dir" 2875 done 2876 IFS=$as_save_IFS 2877 2878 } >&5 2879 2880 cat >&5 <<_ACEOF 2881 2882 2883 ## ----------- ## 2884 ## Core tests. ## 2885 ## ----------- ## 2886 2887 _ACEOF 2888 2889 2890 # Keep a trace of the command line. 2891 # Strip out --no-create and --no-recursion so they do not pile up. 2892 # Strip out --silent because we don't want to record it for future runs. 2893 # Also quote any args containing shell meta-characters. 2894 # Make two passes to allow for proper duplicate-argument suppression. 2895 ac_configure_args= 2896 ac_configure_args0= 2897 ac_configure_args1= 2898 ac_must_keep_next=false 2899 for ac_pass in 1 2 2900 do 2901 for ac_arg 2902 do 2903 case $ac_arg in 2904 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2905 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2906 | -silent | --silent | --silen | --sile | --sil) 2907 continue ;; 2908 *\'*) 2909 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2910 esac 2911 case $ac_pass in 2912 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2913 2) 2914 as_fn_append ac_configure_args1 " '$ac_arg'" 2915 if test $ac_must_keep_next = true; then 2916 ac_must_keep_next=false # Got value, back to normal. 2917 else 2918 case $ac_arg in 2919 *=* | --config-cache | -C | -disable-* | --disable-* \ 2920 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2921 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2922 | -with-* | --with-* | -without-* | --without-* | --x) 2923 case "$ac_configure_args0 " in 2924 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2925 esac 2926 ;; 2927 -* ) ac_must_keep_next=true ;; 2928 esac 2929 fi 2930 as_fn_append ac_configure_args " '$ac_arg'" 2931 ;; 2932 esac 2933 done 2934 done 2935 { ac_configure_args0=; unset ac_configure_args0;} 2936 { ac_configure_args1=; unset ac_configure_args1;} 2937 2938 # When interrupted or exit'd, cleanup temporary files, and complete 2939 # config.log. We remove comments because anyway the quotes in there 2940 # would cause problems or look ugly. 2941 # WARNING: Use '\'' to represent an apostrophe within the trap. 2942 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2943 trap 'exit_status=$? 2944 # Save into config.log some information that might help in debugging. 2945 { 2946 echo 2947 2948 $as_echo "## ---------------- ## 2949 ## Cache variables. ## 2950 ## ---------------- ##" 2951 echo 2952 # The following way of writing the cache mishandles newlines in values, 2953 ( 2954 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2955 eval ac_val=\$$ac_var 2956 case $ac_val in #( 2957 *${as_nl}*) 2958 case $ac_var in #( 2959 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2960 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2961 esac 2962 case $ac_var in #( 2963 _ | IFS | as_nl) ;; #( 2964 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2965 *) { eval $ac_var=; unset $ac_var;} ;; 2966 esac ;; 2967 esac 2968 done 2969 (set) 2>&1 | 2970 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2971 *${as_nl}ac_space=\ *) 2972 sed -n \ 2973 "s/'\''/'\''\\\\'\'''\''/g; 2974 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2975 ;; #( 2976 *) 2977 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2978 ;; 2979 esac | 2980 sort 2981 ) 2982 echo 2983 2984 $as_echo "## ----------------- ## 2985 ## Output variables. ## 2986 ## ----------------- ##" 2987 echo 2988 for ac_var in $ac_subst_vars 2989 do 2990 eval ac_val=\$$ac_var 2991 case $ac_val in 2992 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2993 esac 2994 $as_echo "$ac_var='\''$ac_val'\''" 2995 done | sort 2996 echo 2997 2998 if test -n "$ac_subst_files"; then 2999 $as_echo "## ------------------- ## 3000 ## File substitutions. ## 3001 ## ------------------- ##" 3002 echo 3003 for ac_var in $ac_subst_files 3004 do 3005 eval ac_val=\$$ac_var 3006 case $ac_val in 3007 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 3008 esac 3009 $as_echo "$ac_var='\''$ac_val'\''" 3010 done | sort 3011 echo 3012 fi 3013 3014 if test -s confdefs.h; then 3015 $as_echo "## ----------- ## 3016 ## confdefs.h. ## 3017 ## ----------- ##" 3018 echo 3019 cat confdefs.h 3020 echo 3021 fi 3022 test "$ac_signal" != 0 && 3023 $as_echo "$as_me: caught signal $ac_signal" 3024 $as_echo "$as_me: exit $exit_status" 3025 } >&5 3026 rm -f core *.core core.conftest.* && 3027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 3028 exit $exit_status 3029 ' 0 3030 for ac_signal in 1 2 13 15; do 3031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3032 done 3033 ac_signal=0 3034 3035 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3036 rm -f -r conftest* confdefs.h 3037 3038 $as_echo "/* confdefs.h */" > confdefs.h 3039 3040 # Predefined preprocessor variables. 3041 3042 cat >>confdefs.h <<_ACEOF 3043 #define PACKAGE_NAME "$PACKAGE_NAME" 3044 _ACEOF 3045 3046 cat >>confdefs.h <<_ACEOF 3047 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3048 _ACEOF 3049 3050 cat >>confdefs.h <<_ACEOF 3051 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3052 _ACEOF 3053 3054 cat >>confdefs.h <<_ACEOF 3055 #define PACKAGE_STRING "$PACKAGE_STRING" 3056 _ACEOF 3057 3058 cat >>confdefs.h <<_ACEOF 3059 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3060 _ACEOF 3061 3062 cat >>confdefs.h <<_ACEOF 3063 #define PACKAGE_URL "$PACKAGE_URL" 3064 _ACEOF 3065 3066 3067 # Let the site file select an alternate cache file if it wants to. 3068 # Prefer an explicitly selected file to automatically selected ones. 3069 ac_site_file1=NONE 3070 ac_site_file2=NONE 3071 if test -n "$CONFIG_SITE"; then 3072 # We do not want a PATH search for config.site. 3073 case $CONFIG_SITE in #(( 3074 -*) ac_site_file1=./$CONFIG_SITE;; 3075 */*) ac_site_file1=$CONFIG_SITE;; 3076 *) ac_site_file1=./$CONFIG_SITE;; 3077 esac 3078 elif test "x$prefix" != xNONE; then 3079 ac_site_file1=$prefix/share/config.site 3080 ac_site_file2=$prefix/etc/config.site 3081 else 3082 ac_site_file1=$ac_default_prefix/share/config.site 3083 ac_site_file2=$ac_default_prefix/etc/config.site 3084 fi 3085 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3086 do 3087 test "x$ac_site_file" = xNONE && continue 3088 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3089 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3090 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3091 sed 's/^/| /' "$ac_site_file" >&5 3092 . "$ac_site_file" \ 3093 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3095 as_fn_error $? "failed to load site script $ac_site_file 3096 See \`config.log' for more details" "$LINENO" 5; } 3097 fi 3098 done 3099 3100 if test -r "$cache_file"; then 3101 # Some versions of bash will fail to source /dev/null (special files 3102 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3103 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3104 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3105 $as_echo "$as_me: loading cache $cache_file" >&6;} 3106 case $cache_file in 3107 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3108 *) . "./$cache_file";; 3109 esac 3110 fi 3111 else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3113 $as_echo "$as_me: creating cache $cache_file" >&6;} 3114 >$cache_file 3115 fi 3116 3117 # Check that the precious variables saved in the cache have kept the same 3118 # value. 3119 ac_cache_corrupted=false 3120 for ac_var in $ac_precious_vars; do 3121 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3122 eval ac_new_set=\$ac_env_${ac_var}_set 3123 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3124 eval ac_new_val=\$ac_env_${ac_var}_value 3125 case $ac_old_set,$ac_new_set in 3126 set,) 3127 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3128 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3129 ac_cache_corrupted=: ;; 3130 ,set) 3131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3132 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3133 ac_cache_corrupted=: ;; 3134 ,);; 3135 *) 3136 if test "x$ac_old_val" != "x$ac_new_val"; then 3137 # differences in whitespace do not lead to failure. 3138 ac_old_val_w=`echo x $ac_old_val` 3139 ac_new_val_w=`echo x $ac_new_val` 3140 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3141 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3142 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3143 ac_cache_corrupted=: 3144 else 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3146 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3147 eval $ac_var=\$ac_old_val 3148 fi 3149 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3150 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3151 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3152 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3153 fi;; 3154 esac 3155 # Pass precious variables to config.status. 3156 if test "$ac_new_set" = set; then 3157 case $ac_new_val in 3158 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3159 *) ac_arg=$ac_var=$ac_new_val ;; 3160 esac 3161 case " $ac_configure_args " in 3162 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3163 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3164 esac 3165 fi 3166 done 3167 if $ac_cache_corrupted; then 3168 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3169 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3170 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3171 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3172 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3173 fi 3174 ## -------------------- ## 3175 ## Main body of script. ## 3176 ## -------------------- ## 3177 3178 ac_ext=c 3179 ac_cpp='$CPP $CPPFLAGS' 3180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3182 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3183 3184 3185 3186 ac_aux_dir= 3187 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3188 if test -f "$ac_dir/install-sh"; then 3189 ac_aux_dir=$ac_dir 3190 ac_install_sh="$ac_aux_dir/install-sh -c" 3191 break 3192 elif test -f "$ac_dir/install.sh"; then 3193 ac_aux_dir=$ac_dir 3194 ac_install_sh="$ac_aux_dir/install.sh -c" 3195 break 3196 elif test -f "$ac_dir/shtool"; then 3197 ac_aux_dir=$ac_dir 3198 ac_install_sh="$ac_aux_dir/shtool install -c" 3199 break 3200 fi 3201 done 3202 if test -z "$ac_aux_dir"; then 3203 as_fn_error $? "cannot find install-sh, install.sh, or shtool in $TOPDIR/common/autoconf/build-aux \"$srcdir\"/$TOPDIR/common/autoconf/build-aux" "$LINENO" 5 3204 fi 3205 3206 # These three variables are undocumented and unsupported, 3207 # and are intended to be withdrawn in a future Autoconf release. 3208 # They can cause serious problems if a builder's source tree is in a directory 3209 # whose full name contains unusual characters. 3210 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3211 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3212 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3213 3214 3215 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3216 3217 # 3218 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3219 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3220 # 3221 # This code is free software; you can redistribute it and/or modify it 3222 # under the terms of the GNU General Public License version 2 only, as 3223 # published by the Free Software Foundation. Oracle designates this 3224 # particular file as subject to the "Classpath" exception as provided 3225 # by Oracle in the LICENSE file that accompanied this code. 3226 # 3227 # This code is distributed in the hope that it will be useful, but WITHOUT 3228 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3229 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3230 # version 2 for more details (a copy is included in the LICENSE file that 3231 # accompanied this code). 3232 # 3233 # You should have received a copy of the GNU General Public License version 3234 # 2 along with this work; if not, write to the Free Software Foundation, 3235 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3236 # 3237 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3238 # or visit www.oracle.com if you need additional information or have any 3239 # questions. 3240 # 3241 3242 # 3243 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3244 # 3245 # This program is free software; you can redistribute it and/or modify 3246 # it under the terms of the GNU General Public License as published by 3247 # the Free Software Foundation; either version 2 of the License, or 3248 # (at your option) any later version. 3249 # 3250 # This program is distributed in the hope that it will be useful, but 3251 # WITHOUT ANY WARRANTY; without even the implied warranty of 3252 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3253 # General Public License for more details. 3254 # 3255 # You should have received a copy of the GNU General Public License 3256 # along with this program; if not, write to the Free Software 3257 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3258 # 3259 # As a special exception to the GNU General Public License, if you 3260 # distribute this file as part of a program that contains a 3261 # configuration script generated by Autoconf, you may include it under 3262 # the same distribution terms that you use for the rest of that program. 3263 3264 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3265 # ---------------------------------- 3266 # PKG_PROG_PKG_CONFIG 3267 3268 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3269 # 3270 # Check to see whether a particular set of modules exists. Similar 3271 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3272 # 3273 # 3274 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3275 # this or PKG_CHECK_MODULES is called, or make sure to call 3276 # PKG_CHECK_EXISTS manually 3277 # -------------------------------------------------------------- 3278 3279 3280 3281 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3282 # --------------------------------------------- 3283 # _PKG_CONFIG 3284 3285 # _PKG_SHORT_ERRORS_SUPPORTED 3286 # ----------------------------- 3287 # _PKG_SHORT_ERRORS_SUPPORTED 3288 3289 3290 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3291 # [ACTION-IF-NOT-FOUND]) 3292 # 3293 # 3294 # Note that if there is a possibility the first call to 3295 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3296 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3297 # 3298 # 3299 # -------------------------------------------------------------- 3300 # PKG_CHECK_MODULES 3301 3302 3303 # Include these first... 3304 # 3305 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3306 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3307 # 3308 # This code is free software; you can redistribute it and/or modify it 3309 # under the terms of the GNU General Public License version 2 only, as 3310 # published by the Free Software Foundation. Oracle designates this 3311 # particular file as subject to the "Classpath" exception as provided 3312 # by Oracle in the LICENSE file that accompanied this code. 3313 # 3314 # This code is distributed in the hope that it will be useful, but WITHOUT 3315 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3316 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3317 # version 2 for more details (a copy is included in the LICENSE file that 3318 # accompanied this code). 3319 # 3320 # You should have received a copy of the GNU General Public License version 3321 # 2 along with this work; if not, write to the Free Software Foundation, 3322 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3323 # 3324 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3325 # or visit www.oracle.com if you need additional information or have any 3326 # questions. 3327 # 3328 3329 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3330 # If so, then append $1 to $2 \ 3331 # Also set JVM_ARG_OK to true/false depending on outcome. 3332 3333 3334 # Appends a string to a path variable, only adding the : when needed. 3335 3336 3337 # This will make sure the given variable points to a full and proper 3338 # path. This means: 3339 # 1) There will be no spaces in the path. On posix platforms, 3340 # spaces in the path will result in an error. On Windows, 3341 # the path will be rewritten using short-style to be space-free. 3342 # 2) The path will be absolute, and it will be in unix-style (on 3343 # cygwin). 3344 # $1: The name of the variable to fix 3345 3346 3347 # This will make sure the given variable points to a executable 3348 # with a full and proper path. This means: 3349 # 1) There will be no spaces in the path. On posix platforms, 3350 # spaces in the path will result in an error. On Windows, 3351 # the path will be rewritten using short-style to be space-free. 3352 # 2) The path will be absolute, and it will be in unix-style (on 3353 # cygwin). 3354 # Any arguments given to the executable is preserved. 3355 # If the input variable does not have a directory specification, then 3356 # it need to be in the PATH. 3357 # $1: The name of the variable to fix 3358 3359 3360 3361 3362 # Register a --with argument but mark it as deprecated 3363 # $1: The name of the with argument to deprecate, not including --with- 3364 3365 3366 # Register a --enable argument but mark it as deprecated 3367 # $1: The name of the with argument to deprecate, not including --enable- 3368 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3369 3370 3371 3372 3373 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3374 # $1: variable to check 3375 3376 3377 # Check that there are no unprocessed overridden variables left. 3378 # If so, they are an incorrect argument and we will exit with an error. 3379 3380 3381 # Setup a tool for the given variable. If correctly specified by the user, 3382 # use that value, otherwise search for the tool using the supplied code snippet. 3383 # $1: variable to set 3384 # $2: code snippet to call to look for the tool 3385 3386 3387 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3388 # $1: variable to set 3389 # $2: executable name (or list of names) to look for 3390 3391 3392 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3393 # $1: variable to set 3394 # $2: executable name (or list of names) to look for 3395 3396 3397 # Like BASIC_PATH_PROGS but fails if no tool was found. 3398 # $1: variable to set 3399 # $2: executable name (or list of names) to look for 3400 3401 3402 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3403 # $1: variable to set 3404 # $2: autoconf macro to call to look for the special tool 3405 3406 3407 # Setup the most fundamental tools that relies on not much else to set up, 3408 # but is used by much of the early bootstrap code. 3409 3410 3411 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3412 3413 3414 3415 3416 3417 3418 3419 #%%% Simple tools %%% 3420 3421 # Check if we have found a usable version of make 3422 # $1: the path to a potential make binary (or empty) 3423 # $2: the description on how we found this 3424 3425 3426 # Goes looking for a usable version of GNU make. 3427 3428 3429 3430 3431 3432 3433 # Check if build directory is on local disk. If not possible to determine, 3434 # we prefer to claim it's local. 3435 # Argument 1: directory to test 3436 # Argument 2: what to do if it is on local disk 3437 # Argument 3: what to do otherwise (remote disk or failure) 3438 3439 3440 # Check that source files have basic read permissions set. This might 3441 # not be the case in cygwin in certain conditions. 3442 3443 3444 3445 3446 # 3447 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3448 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3449 # 3450 # This code is free software; you can redistribute it and/or modify it 3451 # under the terms of the GNU General Public License version 2 only, as 3452 # published by the Free Software Foundation. Oracle designates this 3453 # particular file as subject to the "Classpath" exception as provided 3454 # by Oracle in the LICENSE file that accompanied this code. 3455 # 3456 # This code is distributed in the hope that it will be useful, but WITHOUT 3457 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3458 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3459 # version 2 for more details (a copy is included in the LICENSE file that 3460 # accompanied this code). 3461 # 3462 # You should have received a copy of the GNU General Public License version 3463 # 2 along with this work; if not, write to the Free Software Foundation, 3464 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3465 # 3466 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3467 # or visit www.oracle.com if you need additional information or have any 3468 # questions. 3469 # 3470 3471 3472 3473 3474 3475 # Helper function which possibly converts a path using DOS-style short mode. 3476 # If so, the updated path is stored in $new_path. 3477 # $1: The path to check 3478 3479 3480 # Helper function which possibly converts a path using DOS-style short mode. 3481 # If so, the updated path is stored in $new_path. 3482 # $1: The path to check 3483 3484 3485 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3486 # and could probably be heavily simplified. However, all changes in this 3487 # area tend to need lot of testing in different scenarios, and in lack of 3488 # proper unit testing, cleaning this up has not been deemed worth the effort 3489 # at the moment. 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3500 3501 3502 3503 3504 # 3505 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3506 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3507 # 3508 # This code is free software; you can redistribute it and/or modify it 3509 # under the terms of the GNU General Public License version 2 only, as 3510 # published by the Free Software Foundation. Oracle designates this 3511 # particular file as subject to the "Classpath" exception as provided 3512 # by Oracle in the LICENSE file that accompanied this code. 3513 # 3514 # This code is distributed in the hope that it will be useful, but WITHOUT 3515 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3516 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3517 # version 2 for more details (a copy is included in the LICENSE file that 3518 # accompanied this code). 3519 # 3520 # You should have received a copy of the GNU General Public License version 3521 # 2 along with this work; if not, write to the Free Software Foundation, 3522 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3523 # 3524 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3525 # or visit www.oracle.com if you need additional information or have any 3526 # questions. 3527 # 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 # ... then the rest 3540 # 3541 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3542 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3543 # 3544 # This code is free software; you can redistribute it and/or modify it 3545 # under the terms of the GNU General Public License version 2 only, as 3546 # published by the Free Software Foundation. Oracle designates this 3547 # particular file as subject to the "Classpath" exception as provided 3548 # by Oracle in the LICENSE file that accompanied this code. 3549 # 3550 # This code is distributed in the hope that it will be useful, but WITHOUT 3551 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3552 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3553 # version 2 for more details (a copy is included in the LICENSE file that 3554 # accompanied this code). 3555 # 3556 # You should have received a copy of the GNU General Public License version 3557 # 2 along with this work; if not, write to the Free Software Foundation, 3558 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3559 # 3560 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3561 # or visit www.oracle.com if you need additional information or have any 3562 # questions. 3563 # 3564 3565 ######################################################################## 3566 # This file handles detection of the Boot JDK. The Boot JDK detection 3567 # process has been developed as a response to solve a complex real-world 3568 # problem. Initially, it was simple, but it has grown as platform after 3569 # platform, idiosyncracy after idiosyncracy has been supported. 3570 # 3571 # The basic idea is this: 3572 # 1) You need an acceptable *) JDK to use as a Boot JDK 3573 # 2) There are several ways to locate a JDK, that are mostly platform 3574 # dependent **) 3575 # 3) You can have multiple JDKs installed 3576 # 4) If possible, configure should try to dig out an acceptable JDK 3577 # automatically, without having to resort to command-line options 3578 # 3579 # *) acceptable means e.g. JDK7 for building JDK8, a complete JDK (with 3580 # javac) and not a JRE, etc. 3581 # 3582 # **) On Windows we typically use a well-known path. 3583 # On MacOSX we typically use the tool java_home. 3584 # On Linux we typically find javac in the $PATH, and then follow a 3585 # chain of symlinks that often ends up in a real JDK. 3586 # 3587 # This leads to the code where we check in different ways to locate a 3588 # JDK, and if one is found, check if it is acceptable. If not, we print 3589 # our reasons for rejecting it (useful when debugging non-working 3590 # configure situations) and continue checking the next one. 3591 ######################################################################## 3592 3593 # Execute the check given as argument, and verify the result 3594 # If the Boot JDK was previously found, do nothing 3595 # $1 A command line (typically autoconf macro) to execute 3596 3597 3598 # Test: Is bootjdk explicitely set by command line arguments? 3599 3600 3601 # Test: Is bootjdk available from builddeps? 3602 3603 3604 # Test: Is $JAVA_HOME set? 3605 3606 3607 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3608 3609 3610 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3611 # $1: Argument to the java_home binary (optional) 3612 3613 3614 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 3615 3616 3617 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3618 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3619 # $1 = Path to directory containing jdk installations. 3620 # $2 = String to append to the found JDK directory to get the proper JDK home 3621 3622 3623 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3624 # environmental variable as base for where to look. 3625 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3626 3627 3628 # Test: Is there a JDK installed in default, well-known locations? 3629 3630 3631 # Check that a command-line tool in the Boot JDK is correct 3632 # $1 = name of variable to assign 3633 # $2 = name of binary 3634 3635 3636 ############################################################################### 3637 # 3638 # We need a Boot JDK to bootstrap the build. 3639 # 3640 3641 3642 3643 3644 3645 # 3646 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3647 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3648 # 3649 # This code is free software; you can redistribute it and/or modify it 3650 # under the terms of the GNU General Public License version 2 only, as 3651 # published by the Free Software Foundation. Oracle designates this 3652 # particular file as subject to the "Classpath" exception as provided 3653 # by Oracle in the LICENSE file that accompanied this code. 3654 # 3655 # This code is distributed in the hope that it will be useful, but WITHOUT 3656 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3657 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3658 # version 2 for more details (a copy is included in the LICENSE file that 3659 # accompanied this code). 3660 # 3661 # You should have received a copy of the GNU General Public License version 3662 # 2 along with this work; if not, write to the Free Software Foundation, 3663 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3664 # 3665 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3666 # or visit www.oracle.com if you need additional information or have any 3667 # questions. 3668 # 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 # 3690 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3691 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3692 # 3693 # This code is free software; you can redistribute it and/or modify it 3694 # under the terms of the GNU General Public License version 2 only, as 3695 # published by the Free Software Foundation. Oracle designates this 3696 # particular file as subject to the "Classpath" exception as provided 3697 # by Oracle in the LICENSE file that accompanied this code. 3698 # 3699 # This code is distributed in the hope that it will be useful, but WITHOUT 3700 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3701 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3702 # version 2 for more details (a copy is included in the LICENSE file that 3703 # accompanied this code). 3704 # 3705 # You should have received a copy of the GNU General Public License version 3706 # 2 along with this work; if not, write to the Free Software Foundation, 3707 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3708 # 3709 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3710 # or visit www.oracle.com if you need additional information or have any 3711 # questions. 3712 # 3713 3714 3715 3716 3717 3718 # Documentation on common flags used for solstudio in HIGHEST. 3719 # 3720 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3721 # done with care, there are some assumptions below that need to 3722 # be understood about the use of pointers, and IEEE behavior. 3723 # 3724 # -fns: Use non-standard floating point mode (not IEEE 754) 3725 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3726 # -fsingle: Use single precision floating point with 'float' 3727 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3728 # (Source with excessing pointer casting and data access with mixed 3729 # pointer types are not recommended) 3730 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3731 # (If you expect perfect errno behavior, do not use this) 3732 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3733 # -xrestrict: Pointer parameters to functions do not overlap 3734 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3735 # If you pass in multiple pointers to the same data, do not use this) 3736 # -xlibmil: Inline some library routines 3737 # (If you expect perfect errno behavior, do not use this) 3738 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3739 # (If you expect perfect errno behavior, do not use this) 3740 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3741 3742 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3743 # Bug? 3744 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3745 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3746 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3747 #fi 3748 3749 3750 3751 3752 3753 3754 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3755 # [RUN-IF-FALSE]) 3756 # ------------------------------------------------------------ 3757 # Check that the c and c++ compilers support an argument 3758 3759 3760 3761 3762 # 3763 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3764 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3765 # 3766 # This code is free software; you can redistribute it and/or modify it 3767 # under the terms of the GNU General Public License version 2 only, as 3768 # published by the Free Software Foundation. Oracle designates this 3769 # particular file as subject to the "Classpath" exception as provided 3770 # by Oracle in the LICENSE file that accompanied this code. 3771 # 3772 # This code is distributed in the hope that it will be useful, but WITHOUT 3773 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3774 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3775 # version 2 for more details (a copy is included in the LICENSE file that 3776 # accompanied this code). 3777 # 3778 # You should have received a copy of the GNU General Public License version 3779 # 2 along with this work; if not, write to the Free Software Foundation, 3780 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3781 # 3782 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3783 # or visit www.oracle.com if you need additional information or have any 3784 # questions. 3785 # 3786 3787 3788 3789 3790 3791 cygwin_help() { 3792 case $1 in 3793 unzip) 3794 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3795 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3796 ;; 3797 zip) 3798 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3799 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3800 ;; 3801 make) 3802 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3803 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3804 ;; 3805 freetype) 3806 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3807 HELP_MSG="To install freetype, run: 3808 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3809 chmod +x /tmp/freetype-setup.exe 3810 /tmp/freetype-setup.exe 3811 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3812 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3813 else 3814 HELP_MSG="You need to build a 64-bit version of freetype. 3815 This is not readily available. 3816 You can find source code and build instructions on 3817 http://www.freetype.org/ 3818 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3819 fi 3820 ;; 3821 esac 3822 } 3823 3824 msys_help() { 3825 PKGHANDLER_COMMAND="" 3826 } 3827 3828 apt_help() { 3829 case $1 in 3830 devkit) 3831 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3832 openjdk) 3833 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3834 alsa) 3835 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3836 cups) 3837 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3838 freetype) 3839 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3840 pulse) 3841 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3842 x11) 3843 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3844 ccache) 3845 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3846 esac 3847 } 3848 3849 yum_help() { 3850 case $1 in 3851 devkit) 3852 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3853 openjdk) 3854 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3855 alsa) 3856 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3857 cups) 3858 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3859 freetype) 3860 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3861 pulse) 3862 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3863 x11) 3864 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3865 ccache) 3866 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3867 esac 3868 } 3869 3870 port_help() { 3871 PKGHANDLER_COMMAND="" 3872 } 3873 3874 pkgutil_help() { 3875 PKGHANDLER_COMMAND="" 3876 } 3877 3878 pkgadd_help() { 3879 PKGHANDLER_COMMAND="" 3880 } 3881 3882 # This function will check if we're called from the "configure" wrapper while 3883 # printing --help. If so, we will print out additional information that can 3884 # only be extracted within the autoconf script, and then exit. This must be 3885 # called at the very beginning in configure.ac. 3886 3887 3888 3889 3890 # 3891 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3892 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3893 # 3894 # This code is free software; you can redistribute it and/or modify it 3895 # under the terms of the GNU General Public License version 2 only, as 3896 # published by the Free Software Foundation. Oracle designates this 3897 # particular file as subject to the "Classpath" exception as provided 3898 # by Oracle in the LICENSE file that accompanied this code. 3899 # 3900 # This code is distributed in the hope that it will be useful, but WITHOUT 3901 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3902 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3903 # version 2 for more details (a copy is included in the LICENSE file that 3904 # accompanied this code). 3905 # 3906 # You should have received a copy of the GNU General Public License version 3907 # 2 along with this work; if not, write to the Free Software Foundation, 3908 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3909 # 3910 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3911 # or visit www.oracle.com if you need additional information or have any 3912 # questions. 3913 # 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 ############################################################################### 3925 # 3926 # Should we build only OpenJDK even if closed sources are present? 3927 # 3928 3929 3930 3931 3932 ############################################################################### 3933 # 3934 # Setup version numbers 3935 # 3936 3937 3938 3939 3940 3941 3942 # 3943 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 3944 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3945 # 3946 # This code is free software; you can redistribute it and/or modify it 3947 # under the terms of the GNU General Public License version 2 only, as 3948 # published by the Free Software Foundation. Oracle designates this 3949 # particular file as subject to the "Classpath" exception as provided 3950 # by Oracle in the LICENSE file that accompanied this code. 3951 # 3952 # This code is distributed in the hope that it will be useful, but WITHOUT 3953 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3954 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3955 # version 2 for more details (a copy is included in the LICENSE file that 3956 # accompanied this code). 3957 # 3958 # You should have received a copy of the GNU General Public License version 3959 # 2 along with this work; if not, write to the Free Software Foundation, 3960 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3961 # 3962 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3963 # or visit www.oracle.com if you need additional information or have any 3964 # questions. 3965 # 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 # 3986 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3987 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3988 # 3989 # This code is free software; you can redistribute it and/or modify it 3990 # under the terms of the GNU General Public License version 2 only, as 3991 # published by the Free Software Foundation. Oracle designates this 3992 # particular file as subject to the "Classpath" exception as provided 3993 # by Oracle in the LICENSE file that accompanied this code. 3994 # 3995 # This code is distributed in the hope that it will be useful, but WITHOUT 3996 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3997 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3998 # version 2 for more details (a copy is included in the LICENSE file that 3999 # accompanied this code). 4000 # 4001 # You should have received a copy of the GNU General Public License version 4002 # 2 along with this work; if not, write to the Free Software Foundation, 4003 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4004 # 4005 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4006 # or visit www.oracle.com if you need additional information or have any 4007 # questions. 4008 # 4009 4010 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4011 # Converts autoconf style CPU name to OpenJDK style, into 4012 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 4013 4014 4015 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 4016 # Converts autoconf style OS name to OpenJDK style, into 4017 # VAR_OS and VAR_OS_API. 4018 4019 4020 # Expects $host_os $host_cpu $build_os and $build_cpu 4021 # and $with_target_bits to have been setup! 4022 # 4023 # Translate the standard triplet(quadruplet) definition 4024 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 4025 # OPENJDK_BUILD_OS, etc. 4026 4027 4028 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 4029 # accordingly. Must be done after setting up build and target system, but before 4030 # doing anything else with these values. 4031 4032 4033 # Setup the legacy variables, for controlling the old makefiles. 4034 # 4035 4036 4037 4038 4039 #%%% Build and target systems %%% 4040 4041 4042 4043 4044 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4045 # Add -mX to various FLAGS variables. 4046 4047 4048 4049 4050 4051 4052 # 4053 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4054 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4055 # 4056 # This code is free software; you can redistribute it and/or modify it 4057 # under the terms of the GNU General Public License version 2 only, as 4058 # published by the Free Software Foundation. Oracle designates this 4059 # particular file as subject to the "Classpath" exception as provided 4060 # by Oracle in the LICENSE file that accompanied this code. 4061 # 4062 # This code is distributed in the hope that it will be useful, but WITHOUT 4063 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4064 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4065 # version 2 for more details (a copy is included in the LICENSE file that 4066 # accompanied this code). 4067 # 4068 # You should have received a copy of the GNU General Public License version 4069 # 2 along with this work; if not, write to the Free Software Foundation, 4070 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4071 # 4072 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4073 # or visit www.oracle.com if you need additional information or have any 4074 # questions. 4075 # 4076 4077 4078 4079 4080 4081 4082 4083 4084 # 4085 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved. 4086 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4087 # 4088 # This code is free software; you can redistribute it and/or modify it 4089 # under the terms of the GNU General Public License version 2 only, as 4090 # published by the Free Software Foundation. Oracle designates this 4091 # particular file as subject to the "Classpath" exception as provided 4092 # by Oracle in the LICENSE file that accompanied this code. 4093 # 4094 # This code is distributed in the hope that it will be useful, but WITHOUT 4095 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4096 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4097 # version 2 for more details (a copy is included in the LICENSE file that 4098 # accompanied this code). 4099 # 4100 # You should have received a copy of the GNU General Public License version 4101 # 2 along with this work; if not, write to the Free Software Foundation, 4102 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4103 # 4104 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4105 # or visit www.oracle.com if you need additional information or have any 4106 # questions. 4107 # 4108 4109 ######################################################################## 4110 # This file is responsible for detecting, verifying and setting up the 4111 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4112 # proper paths to the binaries, but it will not setup any flags. 4113 # 4114 # The binaries used is determined by the toolchain type, which is the family of 4115 # compilers and related tools that are used. 4116 ######################################################################## 4117 4118 4119 # All valid toolchains, regardless of platform (used by help.m4) 4120 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4121 4122 # These toolchains are valid on different platforms 4123 VALID_TOOLCHAINS_linux="gcc clang" 4124 VALID_TOOLCHAINS_solaris="solstudio" 4125 VALID_TOOLCHAINS_macosx="gcc clang" 4126 VALID_TOOLCHAINS_aix="xlc" 4127 VALID_TOOLCHAINS_windows="microsoft" 4128 4129 # Toolchain descriptions 4130 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4131 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4132 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4133 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4134 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4135 4136 # Setup a number of variables describing how native output files are 4137 # named on this platform/toolchain. 4138 4139 4140 # Determine which toolchain type to use, and make sure it is valid for this 4141 # platform. Setup various information about the selected toolchain. 4142 4143 4144 # Before we start detecting the toolchain executables, we might need some 4145 # special setup, e.g. additional paths etc. 4146 4147 4148 # Restore path, etc 4149 4150 4151 # Check if a compiler is of the toolchain type we expect, and save the version 4152 # information from it. If the compiler does not match the expected type, 4153 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4154 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4155 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4156 # 4157 # $1 = compiler to test (CC or CXX) 4158 # $2 = human readable name of compiler (C or C++) 4159 4160 4161 # Try to locate the given C or C++ compiler in the path, or otherwise. 4162 # 4163 # $1 = compiler to test (CC or CXX) 4164 # $2 = human readable name of compiler (C or C++) 4165 # $3 = list of compiler names to search for 4166 4167 4168 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4169 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4170 # archiver (AR). Verify that the compilers are correct according to the 4171 # toolchain type. 4172 4173 4174 # Setup additional tools that is considered a part of the toolchain, but not the 4175 # core part. Many of these are highly platform-specific and do not exist, 4176 # and/or are not needed on all platforms. 4177 4178 4179 # Setup the build tools (i.e, the compiler and linker used to build programs 4180 # that should be run on the build platform, not the target platform, as a build 4181 # helper). Since the non-cross-compile case uses the normal, target compilers 4182 # for this, we can only do this after these have been setup. 4183 4184 4185 # Setup legacy variables that are still needed as alternative ways to refer to 4186 # parts of the toolchain. 4187 4188 4189 # Do some additional checks on the detected tools. 4190 4191 4192 # Setup the JTReg Regression Test Harness. 4193 4194 4195 # 4196 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4197 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4198 # 4199 # This code is free software; you can redistribute it and/or modify it 4200 # under the terms of the GNU General Public License version 2 only, as 4201 # published by the Free Software Foundation. Oracle designates this 4202 # particular file as subject to the "Classpath" exception as provided 4203 # by Oracle in the LICENSE file that accompanied this code. 4204 # 4205 # This code is distributed in the hope that it will be useful, but WITHOUT 4206 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4207 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4208 # version 2 for more details (a copy is included in the LICENSE file that 4209 # accompanied this code). 4210 # 4211 # You should have received a copy of the GNU General Public License version 4212 # 2 along with this work; if not, write to the Free Software Foundation, 4213 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4214 # 4215 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4216 # or visit www.oracle.com if you need additional information or have any 4217 # questions. 4218 # 4219 4220 4221 4222 4223 4224 4225 4226 # Check if the VS env variables were setup prior to running configure. 4227 # If not, then find vcvarsall.bat and run it automatically, and integrate 4228 # the set env variables into the spec file. 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 # This line needs to be here, verbatim, after all includes and the dummy hook 4240 # definitions. It is replaced with custom functionality when building 4241 # custom sources. 4242 #CUSTOM_AUTOCONF_INCLUDE 4243 4244 # Do not change or remove the following line, it is needed for consistency checks: 4245 DATE_WHEN_GENERATED=1395265893 4246 4247 ############################################################################### 4248 # 4249 # Initialization / Boot-strapping 4250 # 4251 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4252 # thus it jumps back and forth, each time gaining something needed later on. 4253 # 4254 ############################################################################### 4255 4256 # If we are requested to print additional help, do that and then exit. 4257 # This must be the very first call. 4258 4259 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4260 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4261 $PRINTF "Which are valid to use depends on the build platform.\n" 4262 for toolchain in $VALID_TOOLCHAINS_all; do 4263 # Use indirect variable referencing 4264 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4265 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4266 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4267 done 4268 4269 # And now exit directly 4270 exit 0 4271 fi 4272 4273 4274 # Basic initialization that must happen first of all in the normal process. 4275 4276 # Save the original command line. This is passed to us by the wrapper configure script. 4277 4278 DATE_WHEN_CONFIGURED=`LANG=C date` 4279 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4281 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4282 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4283 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4284 4285 4286 # Start with tools that do not need have cross compilation support 4287 # and can be expected to be found in the default PATH. These tools are 4288 # used by configure. Nor are these tools expected to be found in the 4289 # devkit from the builddeps server either, since they are 4290 # needed to download the devkit. 4291 4292 # First are all the simple required tools. 4293 4294 4295 4296 # Publish this variable in the help. 4297 4298 4299 if test "x$BASENAME" = x; then 4300 # The variable is not set by user, try to locate tool using the code snippet 4301 for ac_prog in basename 4302 do 4303 # Extract the first word of "$ac_prog", so it can be a program name with args. 4304 set dummy $ac_prog; ac_word=$2 4305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4306 $as_echo_n "checking for $ac_word... " >&6; } 4307 if ${ac_cv_path_BASENAME+:} false; then : 4308 $as_echo_n "(cached) " >&6 4309 else 4310 case $BASENAME in 4311 [\\/]* | ?:[\\/]*) 4312 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4313 ;; 4314 *) 4315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4316 for as_dir in $PATH 4317 do 4318 IFS=$as_save_IFS 4319 test -z "$as_dir" && as_dir=. 4320 for ac_exec_ext in '' $ac_executable_extensions; do 4321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4322 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4324 break 2 4325 fi 4326 done 4327 done 4328 IFS=$as_save_IFS 4329 4330 ;; 4331 esac 4332 fi 4333 BASENAME=$ac_cv_path_BASENAME 4334 if test -n "$BASENAME"; then 4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4336 $as_echo "$BASENAME" >&6; } 4337 else 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4339 $as_echo "no" >&6; } 4340 fi 4341 4342 4343 test -n "$BASENAME" && break 4344 done 4345 4346 else 4347 # The variable is set, but is it from the command line or the environment? 4348 4349 # Try to remove the string !BASENAME! from our list. 4350 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4351 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4352 # If it failed, the variable was not from the command line. Ignore it, 4353 # but warn the user (except for BASH, which is always set by the calling BASH). 4354 if test "xBASENAME" != xBASH; then 4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4356 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4357 fi 4358 # Try to locate tool using the code snippet 4359 for ac_prog in basename 4360 do 4361 # Extract the first word of "$ac_prog", so it can be a program name with args. 4362 set dummy $ac_prog; ac_word=$2 4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4364 $as_echo_n "checking for $ac_word... " >&6; } 4365 if ${ac_cv_path_BASENAME+:} false; then : 4366 $as_echo_n "(cached) " >&6 4367 else 4368 case $BASENAME in 4369 [\\/]* | ?:[\\/]*) 4370 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4371 ;; 4372 *) 4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4374 for as_dir in $PATH 4375 do 4376 IFS=$as_save_IFS 4377 test -z "$as_dir" && as_dir=. 4378 for ac_exec_ext in '' $ac_executable_extensions; do 4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4380 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4382 break 2 4383 fi 4384 done 4385 done 4386 IFS=$as_save_IFS 4387 4388 ;; 4389 esac 4390 fi 4391 BASENAME=$ac_cv_path_BASENAME 4392 if test -n "$BASENAME"; then 4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4394 $as_echo "$BASENAME" >&6; } 4395 else 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4397 $as_echo "no" >&6; } 4398 fi 4399 4400 4401 test -n "$BASENAME" && break 4402 done 4403 4404 else 4405 # If it succeeded, then it was overridden by the user. We will use it 4406 # for the tool. 4407 4408 # First remove it from the list of overridden variables, so we can test 4409 # for unknown variables in the end. 4410 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4411 4412 # Check if the provided tool contains a complete path. 4413 tool_specified="$BASENAME" 4414 tool_basename="${tool_specified##*/}" 4415 if test "x$tool_basename" = "x$tool_specified"; then 4416 # A command without a complete path is provided, search $PATH. 4417 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4418 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4419 # Extract the first word of "$tool_basename", so it can be a program name with args. 4420 set dummy $tool_basename; ac_word=$2 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4422 $as_echo_n "checking for $ac_word... " >&6; } 4423 if ${ac_cv_path_BASENAME+:} false; then : 4424 $as_echo_n "(cached) " >&6 4425 else 4426 case $BASENAME in 4427 [\\/]* | ?:[\\/]*) 4428 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4429 ;; 4430 *) 4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432 for as_dir in $PATH 4433 do 4434 IFS=$as_save_IFS 4435 test -z "$as_dir" && as_dir=. 4436 for ac_exec_ext in '' $ac_executable_extensions; do 4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4438 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4440 break 2 4441 fi 4442 done 4443 done 4444 IFS=$as_save_IFS 4445 4446 ;; 4447 esac 4448 fi 4449 BASENAME=$ac_cv_path_BASENAME 4450 if test -n "$BASENAME"; then 4451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4452 $as_echo "$BASENAME" >&6; } 4453 else 4454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4455 $as_echo "no" >&6; } 4456 fi 4457 4458 4459 if test "x$BASENAME" = x; then 4460 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4461 fi 4462 else 4463 # Otherwise we believe it is a complete path. Use it as it is. 4464 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4465 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4467 $as_echo_n "checking for BASENAME... " >&6; } 4468 if test ! -x "$tool_specified"; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4470 $as_echo "not found" >&6; } 4471 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4472 fi 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4474 $as_echo "$tool_specified" >&6; } 4475 fi 4476 fi 4477 fi 4478 4479 4480 4481 if test "x$BASENAME" = x; then 4482 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4483 fi 4484 4485 4486 4487 4488 4489 # Publish this variable in the help. 4490 4491 4492 if test "x$BASH" = x; then 4493 # The variable is not set by user, try to locate tool using the code snippet 4494 for ac_prog in bash 4495 do 4496 # Extract the first word of "$ac_prog", so it can be a program name with args. 4497 set dummy $ac_prog; ac_word=$2 4498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4499 $as_echo_n "checking for $ac_word... " >&6; } 4500 if ${ac_cv_path_BASH+:} false; then : 4501 $as_echo_n "(cached) " >&6 4502 else 4503 case $BASH in 4504 [\\/]* | ?:[\\/]*) 4505 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4506 ;; 4507 *) 4508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4509 for as_dir in $PATH 4510 do 4511 IFS=$as_save_IFS 4512 test -z "$as_dir" && as_dir=. 4513 for ac_exec_ext in '' $ac_executable_extensions; do 4514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4515 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4517 break 2 4518 fi 4519 done 4520 done 4521 IFS=$as_save_IFS 4522 4523 ;; 4524 esac 4525 fi 4526 BASH=$ac_cv_path_BASH 4527 if test -n "$BASH"; then 4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4529 $as_echo "$BASH" >&6; } 4530 else 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4532 $as_echo "no" >&6; } 4533 fi 4534 4535 4536 test -n "$BASH" && break 4537 done 4538 4539 else 4540 # The variable is set, but is it from the command line or the environment? 4541 4542 # Try to remove the string !BASH! from our list. 4543 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4544 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4545 # If it failed, the variable was not from the command line. Ignore it, 4546 # but warn the user (except for BASH, which is always set by the calling BASH). 4547 if test "xBASH" != xBASH; then 4548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4549 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4550 fi 4551 # Try to locate tool using the code snippet 4552 for ac_prog in bash 4553 do 4554 # Extract the first word of "$ac_prog", so it can be a program name with args. 4555 set dummy $ac_prog; ac_word=$2 4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4557 $as_echo_n "checking for $ac_word... " >&6; } 4558 if ${ac_cv_path_BASH+:} false; then : 4559 $as_echo_n "(cached) " >&6 4560 else 4561 case $BASH in 4562 [\\/]* | ?:[\\/]*) 4563 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4564 ;; 4565 *) 4566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4567 for as_dir in $PATH 4568 do 4569 IFS=$as_save_IFS 4570 test -z "$as_dir" && as_dir=. 4571 for ac_exec_ext in '' $ac_executable_extensions; do 4572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4573 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4575 break 2 4576 fi 4577 done 4578 done 4579 IFS=$as_save_IFS 4580 4581 ;; 4582 esac 4583 fi 4584 BASH=$ac_cv_path_BASH 4585 if test -n "$BASH"; then 4586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4587 $as_echo "$BASH" >&6; } 4588 else 4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4590 $as_echo "no" >&6; } 4591 fi 4592 4593 4594 test -n "$BASH" && break 4595 done 4596 4597 else 4598 # If it succeeded, then it was overridden by the user. We will use it 4599 # for the tool. 4600 4601 # First remove it from the list of overridden variables, so we can test 4602 # for unknown variables in the end. 4603 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4604 4605 # Check if the provided tool contains a complete path. 4606 tool_specified="$BASH" 4607 tool_basename="${tool_specified##*/}" 4608 if test "x$tool_basename" = "x$tool_specified"; then 4609 # A command without a complete path is provided, search $PATH. 4610 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4611 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4612 # Extract the first word of "$tool_basename", so it can be a program name with args. 4613 set dummy $tool_basename; ac_word=$2 4614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4615 $as_echo_n "checking for $ac_word... " >&6; } 4616 if ${ac_cv_path_BASH+:} false; then : 4617 $as_echo_n "(cached) " >&6 4618 else 4619 case $BASH in 4620 [\\/]* | ?:[\\/]*) 4621 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4622 ;; 4623 *) 4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4625 for as_dir in $PATH 4626 do 4627 IFS=$as_save_IFS 4628 test -z "$as_dir" && as_dir=. 4629 for ac_exec_ext in '' $ac_executable_extensions; do 4630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4631 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4633 break 2 4634 fi 4635 done 4636 done 4637 IFS=$as_save_IFS 4638 4639 ;; 4640 esac 4641 fi 4642 BASH=$ac_cv_path_BASH 4643 if test -n "$BASH"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4645 $as_echo "$BASH" >&6; } 4646 else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648 $as_echo "no" >&6; } 4649 fi 4650 4651 4652 if test "x$BASH" = x; then 4653 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4654 fi 4655 else 4656 # Otherwise we believe it is a complete path. Use it as it is. 4657 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4658 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4660 $as_echo_n "checking for BASH... " >&6; } 4661 if test ! -x "$tool_specified"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4663 $as_echo "not found" >&6; } 4664 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4665 fi 4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4667 $as_echo "$tool_specified" >&6; } 4668 fi 4669 fi 4670 fi 4671 4672 4673 4674 if test "x$BASH" = x; then 4675 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4676 fi 4677 4678 4679 4680 4681 4682 # Publish this variable in the help. 4683 4684 4685 if test "x$CAT" = x; then 4686 # The variable is not set by user, try to locate tool using the code snippet 4687 for ac_prog in cat 4688 do 4689 # Extract the first word of "$ac_prog", so it can be a program name with args. 4690 set dummy $ac_prog; ac_word=$2 4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4692 $as_echo_n "checking for $ac_word... " >&6; } 4693 if ${ac_cv_path_CAT+:} false; then : 4694 $as_echo_n "(cached) " >&6 4695 else 4696 case $CAT in 4697 [\\/]* | ?:[\\/]*) 4698 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4699 ;; 4700 *) 4701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4702 for as_dir in $PATH 4703 do 4704 IFS=$as_save_IFS 4705 test -z "$as_dir" && as_dir=. 4706 for ac_exec_ext in '' $ac_executable_extensions; do 4707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4708 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4710 break 2 4711 fi 4712 done 4713 done 4714 IFS=$as_save_IFS 4715 4716 ;; 4717 esac 4718 fi 4719 CAT=$ac_cv_path_CAT 4720 if test -n "$CAT"; then 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4722 $as_echo "$CAT" >&6; } 4723 else 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4725 $as_echo "no" >&6; } 4726 fi 4727 4728 4729 test -n "$CAT" && break 4730 done 4731 4732 else 4733 # The variable is set, but is it from the command line or the environment? 4734 4735 # Try to remove the string !CAT! from our list. 4736 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4737 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4738 # If it failed, the variable was not from the command line. Ignore it, 4739 # but warn the user (except for BASH, which is always set by the calling BASH). 4740 if test "xCAT" != xBASH; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4742 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4743 fi 4744 # Try to locate tool using the code snippet 4745 for ac_prog in cat 4746 do 4747 # Extract the first word of "$ac_prog", so it can be a program name with args. 4748 set dummy $ac_prog; ac_word=$2 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4750 $as_echo_n "checking for $ac_word... " >&6; } 4751 if ${ac_cv_path_CAT+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753 else 4754 case $CAT in 4755 [\\/]* | ?:[\\/]*) 4756 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4757 ;; 4758 *) 4759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4760 for as_dir in $PATH 4761 do 4762 IFS=$as_save_IFS 4763 test -z "$as_dir" && as_dir=. 4764 for ac_exec_ext in '' $ac_executable_extensions; do 4765 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4766 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4768 break 2 4769 fi 4770 done 4771 done 4772 IFS=$as_save_IFS 4773 4774 ;; 4775 esac 4776 fi 4777 CAT=$ac_cv_path_CAT 4778 if test -n "$CAT"; then 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4780 $as_echo "$CAT" >&6; } 4781 else 4782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4783 $as_echo "no" >&6; } 4784 fi 4785 4786 4787 test -n "$CAT" && break 4788 done 4789 4790 else 4791 # If it succeeded, then it was overridden by the user. We will use it 4792 # for the tool. 4793 4794 # First remove it from the list of overridden variables, so we can test 4795 # for unknown variables in the end. 4796 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4797 4798 # Check if the provided tool contains a complete path. 4799 tool_specified="$CAT" 4800 tool_basename="${tool_specified##*/}" 4801 if test "x$tool_basename" = "x$tool_specified"; then 4802 # A command without a complete path is provided, search $PATH. 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4804 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4805 # Extract the first word of "$tool_basename", so it can be a program name with args. 4806 set dummy $tool_basename; ac_word=$2 4807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808 $as_echo_n "checking for $ac_word... " >&6; } 4809 if ${ac_cv_path_CAT+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811 else 4812 case $CAT in 4813 [\\/]* | ?:[\\/]*) 4814 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4815 ;; 4816 *) 4817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4818 for as_dir in $PATH 4819 do 4820 IFS=$as_save_IFS 4821 test -z "$as_dir" && as_dir=. 4822 for ac_exec_ext in '' $ac_executable_extensions; do 4823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4824 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4826 break 2 4827 fi 4828 done 4829 done 4830 IFS=$as_save_IFS 4831 4832 ;; 4833 esac 4834 fi 4835 CAT=$ac_cv_path_CAT 4836 if test -n "$CAT"; then 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4838 $as_echo "$CAT" >&6; } 4839 else 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4841 $as_echo "no" >&6; } 4842 fi 4843 4844 4845 if test "x$CAT" = x; then 4846 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4847 fi 4848 else 4849 # Otherwise we believe it is a complete path. Use it as it is. 4850 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4851 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4853 $as_echo_n "checking for CAT... " >&6; } 4854 if test ! -x "$tool_specified"; then 4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4856 $as_echo "not found" >&6; } 4857 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4858 fi 4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4860 $as_echo "$tool_specified" >&6; } 4861 fi 4862 fi 4863 fi 4864 4865 4866 4867 if test "x$CAT" = x; then 4868 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4869 fi 4870 4871 4872 4873 4874 4875 # Publish this variable in the help. 4876 4877 4878 if test "x$CHMOD" = x; then 4879 # The variable is not set by user, try to locate tool using the code snippet 4880 for ac_prog in chmod 4881 do 4882 # Extract the first word of "$ac_prog", so it can be a program name with args. 4883 set dummy $ac_prog; ac_word=$2 4884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4885 $as_echo_n "checking for $ac_word... " >&6; } 4886 if ${ac_cv_path_CHMOD+:} false; then : 4887 $as_echo_n "(cached) " >&6 4888 else 4889 case $CHMOD in 4890 [\\/]* | ?:[\\/]*) 4891 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4892 ;; 4893 *) 4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4895 for as_dir in $PATH 4896 do 4897 IFS=$as_save_IFS 4898 test -z "$as_dir" && as_dir=. 4899 for ac_exec_ext in '' $ac_executable_extensions; do 4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4901 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4903 break 2 4904 fi 4905 done 4906 done 4907 IFS=$as_save_IFS 4908 4909 ;; 4910 esac 4911 fi 4912 CHMOD=$ac_cv_path_CHMOD 4913 if test -n "$CHMOD"; then 4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4915 $as_echo "$CHMOD" >&6; } 4916 else 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4918 $as_echo "no" >&6; } 4919 fi 4920 4921 4922 test -n "$CHMOD" && break 4923 done 4924 4925 else 4926 # The variable is set, but is it from the command line or the environment? 4927 4928 # Try to remove the string !CHMOD! from our list. 4929 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4930 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4931 # If it failed, the variable was not from the command line. Ignore it, 4932 # but warn the user (except for BASH, which is always set by the calling BASH). 4933 if test "xCHMOD" != xBASH; then 4934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4935 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4936 fi 4937 # Try to locate tool using the code snippet 4938 for ac_prog in chmod 4939 do 4940 # Extract the first word of "$ac_prog", so it can be a program name with args. 4941 set dummy $ac_prog; ac_word=$2 4942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4943 $as_echo_n "checking for $ac_word... " >&6; } 4944 if ${ac_cv_path_CHMOD+:} false; then : 4945 $as_echo_n "(cached) " >&6 4946 else 4947 case $CHMOD in 4948 [\\/]* | ?:[\\/]*) 4949 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4950 ;; 4951 *) 4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4953 for as_dir in $PATH 4954 do 4955 IFS=$as_save_IFS 4956 test -z "$as_dir" && as_dir=. 4957 for ac_exec_ext in '' $ac_executable_extensions; do 4958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4959 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4961 break 2 4962 fi 4963 done 4964 done 4965 IFS=$as_save_IFS 4966 4967 ;; 4968 esac 4969 fi 4970 CHMOD=$ac_cv_path_CHMOD 4971 if test -n "$CHMOD"; then 4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4973 $as_echo "$CHMOD" >&6; } 4974 else 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4976 $as_echo "no" >&6; } 4977 fi 4978 4979 4980 test -n "$CHMOD" && break 4981 done 4982 4983 else 4984 # If it succeeded, then it was overridden by the user. We will use it 4985 # for the tool. 4986 4987 # First remove it from the list of overridden variables, so we can test 4988 # for unknown variables in the end. 4989 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4990 4991 # Check if the provided tool contains a complete path. 4992 tool_specified="$CHMOD" 4993 tool_basename="${tool_specified##*/}" 4994 if test "x$tool_basename" = "x$tool_specified"; then 4995 # A command without a complete path is provided, search $PATH. 4996 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4997 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4998 # Extract the first word of "$tool_basename", so it can be a program name with args. 4999 set dummy $tool_basename; ac_word=$2 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5001 $as_echo_n "checking for $ac_word... " >&6; } 5002 if ${ac_cv_path_CHMOD+:} false; then : 5003 $as_echo_n "(cached) " >&6 5004 else 5005 case $CHMOD in 5006 [\\/]* | ?:[\\/]*) 5007 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 5008 ;; 5009 *) 5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5011 for as_dir in $PATH 5012 do 5013 IFS=$as_save_IFS 5014 test -z "$as_dir" && as_dir=. 5015 for ac_exec_ext in '' $ac_executable_extensions; do 5016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5017 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5019 break 2 5020 fi 5021 done 5022 done 5023 IFS=$as_save_IFS 5024 5025 ;; 5026 esac 5027 fi 5028 CHMOD=$ac_cv_path_CHMOD 5029 if test -n "$CHMOD"; then 5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5031 $as_echo "$CHMOD" >&6; } 5032 else 5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5034 $as_echo "no" >&6; } 5035 fi 5036 5037 5038 if test "x$CHMOD" = x; then 5039 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5040 fi 5041 else 5042 # Otherwise we believe it is a complete path. Use it as it is. 5043 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5044 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5046 $as_echo_n "checking for CHMOD... " >&6; } 5047 if test ! -x "$tool_specified"; then 5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5049 $as_echo "not found" >&6; } 5050 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5051 fi 5052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5053 $as_echo "$tool_specified" >&6; } 5054 fi 5055 fi 5056 fi 5057 5058 5059 5060 if test "x$CHMOD" = x; then 5061 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5062 fi 5063 5064 5065 5066 5067 5068 # Publish this variable in the help. 5069 5070 5071 if test "x$CMP" = x; then 5072 # The variable is not set by user, try to locate tool using the code snippet 5073 for ac_prog in cmp 5074 do 5075 # Extract the first word of "$ac_prog", so it can be a program name with args. 5076 set dummy $ac_prog; ac_word=$2 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5078 $as_echo_n "checking for $ac_word... " >&6; } 5079 if ${ac_cv_path_CMP+:} false; then : 5080 $as_echo_n "(cached) " >&6 5081 else 5082 case $CMP in 5083 [\\/]* | ?:[\\/]*) 5084 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5085 ;; 5086 *) 5087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5088 for as_dir in $PATH 5089 do 5090 IFS=$as_save_IFS 5091 test -z "$as_dir" && as_dir=. 5092 for ac_exec_ext in '' $ac_executable_extensions; do 5093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5094 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5096 break 2 5097 fi 5098 done 5099 done 5100 IFS=$as_save_IFS 5101 5102 ;; 5103 esac 5104 fi 5105 CMP=$ac_cv_path_CMP 5106 if test -n "$CMP"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5108 $as_echo "$CMP" >&6; } 5109 else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111 $as_echo "no" >&6; } 5112 fi 5113 5114 5115 test -n "$CMP" && break 5116 done 5117 5118 else 5119 # The variable is set, but is it from the command line or the environment? 5120 5121 # Try to remove the string !CMP! from our list. 5122 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5123 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5124 # If it failed, the variable was not from the command line. Ignore it, 5125 # but warn the user (except for BASH, which is always set by the calling BASH). 5126 if test "xCMP" != xBASH; then 5127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5128 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5129 fi 5130 # Try to locate tool using the code snippet 5131 for ac_prog in cmp 5132 do 5133 # Extract the first word of "$ac_prog", so it can be a program name with args. 5134 set dummy $ac_prog; ac_word=$2 5135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5136 $as_echo_n "checking for $ac_word... " >&6; } 5137 if ${ac_cv_path_CMP+:} false; then : 5138 $as_echo_n "(cached) " >&6 5139 else 5140 case $CMP in 5141 [\\/]* | ?:[\\/]*) 5142 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5143 ;; 5144 *) 5145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5146 for as_dir in $PATH 5147 do 5148 IFS=$as_save_IFS 5149 test -z "$as_dir" && as_dir=. 5150 for ac_exec_ext in '' $ac_executable_extensions; do 5151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5152 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5154 break 2 5155 fi 5156 done 5157 done 5158 IFS=$as_save_IFS 5159 5160 ;; 5161 esac 5162 fi 5163 CMP=$ac_cv_path_CMP 5164 if test -n "$CMP"; then 5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5166 $as_echo "$CMP" >&6; } 5167 else 5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5169 $as_echo "no" >&6; } 5170 fi 5171 5172 5173 test -n "$CMP" && break 5174 done 5175 5176 else 5177 # If it succeeded, then it was overridden by the user. We will use it 5178 # for the tool. 5179 5180 # First remove it from the list of overridden variables, so we can test 5181 # for unknown variables in the end. 5182 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5183 5184 # Check if the provided tool contains a complete path. 5185 tool_specified="$CMP" 5186 tool_basename="${tool_specified##*/}" 5187 if test "x$tool_basename" = "x$tool_specified"; then 5188 # A command without a complete path is provided, search $PATH. 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5190 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5191 # Extract the first word of "$tool_basename", so it can be a program name with args. 5192 set dummy $tool_basename; ac_word=$2 5193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5194 $as_echo_n "checking for $ac_word... " >&6; } 5195 if ${ac_cv_path_CMP+:} false; then : 5196 $as_echo_n "(cached) " >&6 5197 else 5198 case $CMP in 5199 [\\/]* | ?:[\\/]*) 5200 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5201 ;; 5202 *) 5203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5204 for as_dir in $PATH 5205 do 5206 IFS=$as_save_IFS 5207 test -z "$as_dir" && as_dir=. 5208 for ac_exec_ext in '' $ac_executable_extensions; do 5209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5210 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5212 break 2 5213 fi 5214 done 5215 done 5216 IFS=$as_save_IFS 5217 5218 ;; 5219 esac 5220 fi 5221 CMP=$ac_cv_path_CMP 5222 if test -n "$CMP"; then 5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5224 $as_echo "$CMP" >&6; } 5225 else 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5227 $as_echo "no" >&6; } 5228 fi 5229 5230 5231 if test "x$CMP" = x; then 5232 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5233 fi 5234 else 5235 # Otherwise we believe it is a complete path. Use it as it is. 5236 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5237 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5239 $as_echo_n "checking for CMP... " >&6; } 5240 if test ! -x "$tool_specified"; then 5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5242 $as_echo "not found" >&6; } 5243 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5244 fi 5245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5246 $as_echo "$tool_specified" >&6; } 5247 fi 5248 fi 5249 fi 5250 5251 5252 5253 if test "x$CMP" = x; then 5254 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5255 fi 5256 5257 5258 5259 5260 5261 # Publish this variable in the help. 5262 5263 5264 if test "x$COMM" = x; then 5265 # The variable is not set by user, try to locate tool using the code snippet 5266 for ac_prog in comm 5267 do 5268 # Extract the first word of "$ac_prog", so it can be a program name with args. 5269 set dummy $ac_prog; ac_word=$2 5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5271 $as_echo_n "checking for $ac_word... " >&6; } 5272 if ${ac_cv_path_COMM+:} false; then : 5273 $as_echo_n "(cached) " >&6 5274 else 5275 case $COMM in 5276 [\\/]* | ?:[\\/]*) 5277 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5278 ;; 5279 *) 5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5281 for as_dir in $PATH 5282 do 5283 IFS=$as_save_IFS 5284 test -z "$as_dir" && as_dir=. 5285 for ac_exec_ext in '' $ac_executable_extensions; do 5286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5287 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5289 break 2 5290 fi 5291 done 5292 done 5293 IFS=$as_save_IFS 5294 5295 ;; 5296 esac 5297 fi 5298 COMM=$ac_cv_path_COMM 5299 if test -n "$COMM"; then 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5301 $as_echo "$COMM" >&6; } 5302 else 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5304 $as_echo "no" >&6; } 5305 fi 5306 5307 5308 test -n "$COMM" && break 5309 done 5310 5311 else 5312 # The variable is set, but is it from the command line or the environment? 5313 5314 # Try to remove the string !COMM! from our list. 5315 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5316 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5317 # If it failed, the variable was not from the command line. Ignore it, 5318 # but warn the user (except for BASH, which is always set by the calling BASH). 5319 if test "xCOMM" != xBASH; then 5320 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5321 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5322 fi 5323 # Try to locate tool using the code snippet 5324 for ac_prog in comm 5325 do 5326 # Extract the first word of "$ac_prog", so it can be a program name with args. 5327 set dummy $ac_prog; ac_word=$2 5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5329 $as_echo_n "checking for $ac_word... " >&6; } 5330 if ${ac_cv_path_COMM+:} false; then : 5331 $as_echo_n "(cached) " >&6 5332 else 5333 case $COMM in 5334 [\\/]* | ?:[\\/]*) 5335 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5336 ;; 5337 *) 5338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5339 for as_dir in $PATH 5340 do 5341 IFS=$as_save_IFS 5342 test -z "$as_dir" && as_dir=. 5343 for ac_exec_ext in '' $ac_executable_extensions; do 5344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5345 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5347 break 2 5348 fi 5349 done 5350 done 5351 IFS=$as_save_IFS 5352 5353 ;; 5354 esac 5355 fi 5356 COMM=$ac_cv_path_COMM 5357 if test -n "$COMM"; then 5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5359 $as_echo "$COMM" >&6; } 5360 else 5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5362 $as_echo "no" >&6; } 5363 fi 5364 5365 5366 test -n "$COMM" && break 5367 done 5368 5369 else 5370 # If it succeeded, then it was overridden by the user. We will use it 5371 # for the tool. 5372 5373 # First remove it from the list of overridden variables, so we can test 5374 # for unknown variables in the end. 5375 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5376 5377 # Check if the provided tool contains a complete path. 5378 tool_specified="$COMM" 5379 tool_basename="${tool_specified##*/}" 5380 if test "x$tool_basename" = "x$tool_specified"; then 5381 # A command without a complete path is provided, search $PATH. 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5383 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5384 # Extract the first word of "$tool_basename", so it can be a program name with args. 5385 set dummy $tool_basename; ac_word=$2 5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5387 $as_echo_n "checking for $ac_word... " >&6; } 5388 if ${ac_cv_path_COMM+:} false; then : 5389 $as_echo_n "(cached) " >&6 5390 else 5391 case $COMM in 5392 [\\/]* | ?:[\\/]*) 5393 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5394 ;; 5395 *) 5396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5397 for as_dir in $PATH 5398 do 5399 IFS=$as_save_IFS 5400 test -z "$as_dir" && as_dir=. 5401 for ac_exec_ext in '' $ac_executable_extensions; do 5402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5403 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5405 break 2 5406 fi 5407 done 5408 done 5409 IFS=$as_save_IFS 5410 5411 ;; 5412 esac 5413 fi 5414 COMM=$ac_cv_path_COMM 5415 if test -n "$COMM"; then 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5417 $as_echo "$COMM" >&6; } 5418 else 5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5420 $as_echo "no" >&6; } 5421 fi 5422 5423 5424 if test "x$COMM" = x; then 5425 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5426 fi 5427 else 5428 # Otherwise we believe it is a complete path. Use it as it is. 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5430 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5432 $as_echo_n "checking for COMM... " >&6; } 5433 if test ! -x "$tool_specified"; then 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5435 $as_echo "not found" >&6; } 5436 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5437 fi 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5439 $as_echo "$tool_specified" >&6; } 5440 fi 5441 fi 5442 fi 5443 5444 5445 5446 if test "x$COMM" = x; then 5447 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5448 fi 5449 5450 5451 5452 5453 5454 # Publish this variable in the help. 5455 5456 5457 if test "x$CP" = x; then 5458 # The variable is not set by user, try to locate tool using the code snippet 5459 for ac_prog in cp 5460 do 5461 # Extract the first word of "$ac_prog", so it can be a program name with args. 5462 set dummy $ac_prog; ac_word=$2 5463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5464 $as_echo_n "checking for $ac_word... " >&6; } 5465 if ${ac_cv_path_CP+:} false; then : 5466 $as_echo_n "(cached) " >&6 5467 else 5468 case $CP in 5469 [\\/]* | ?:[\\/]*) 5470 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5471 ;; 5472 *) 5473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5474 for as_dir in $PATH 5475 do 5476 IFS=$as_save_IFS 5477 test -z "$as_dir" && as_dir=. 5478 for ac_exec_ext in '' $ac_executable_extensions; do 5479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5480 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5482 break 2 5483 fi 5484 done 5485 done 5486 IFS=$as_save_IFS 5487 5488 ;; 5489 esac 5490 fi 5491 CP=$ac_cv_path_CP 5492 if test -n "$CP"; then 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5494 $as_echo "$CP" >&6; } 5495 else 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5497 $as_echo "no" >&6; } 5498 fi 5499 5500 5501 test -n "$CP" && break 5502 done 5503 5504 else 5505 # The variable is set, but is it from the command line or the environment? 5506 5507 # Try to remove the string !CP! from our list. 5508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5510 # If it failed, the variable was not from the command line. Ignore it, 5511 # but warn the user (except for BASH, which is always set by the calling BASH). 5512 if test "xCP" != xBASH; then 5513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5514 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5515 fi 5516 # Try to locate tool using the code snippet 5517 for ac_prog in cp 5518 do 5519 # Extract the first word of "$ac_prog", so it can be a program name with args. 5520 set dummy $ac_prog; ac_word=$2 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5522 $as_echo_n "checking for $ac_word... " >&6; } 5523 if ${ac_cv_path_CP+:} false; then : 5524 $as_echo_n "(cached) " >&6 5525 else 5526 case $CP in 5527 [\\/]* | ?:[\\/]*) 5528 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5529 ;; 5530 *) 5531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5532 for as_dir in $PATH 5533 do 5534 IFS=$as_save_IFS 5535 test -z "$as_dir" && as_dir=. 5536 for ac_exec_ext in '' $ac_executable_extensions; do 5537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5538 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5540 break 2 5541 fi 5542 done 5543 done 5544 IFS=$as_save_IFS 5545 5546 ;; 5547 esac 5548 fi 5549 CP=$ac_cv_path_CP 5550 if test -n "$CP"; then 5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5552 $as_echo "$CP" >&6; } 5553 else 5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5555 $as_echo "no" >&6; } 5556 fi 5557 5558 5559 test -n "$CP" && break 5560 done 5561 5562 else 5563 # If it succeeded, then it was overridden by the user. We will use it 5564 # for the tool. 5565 5566 # First remove it from the list of overridden variables, so we can test 5567 # for unknown variables in the end. 5568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5569 5570 # Check if the provided tool contains a complete path. 5571 tool_specified="$CP" 5572 tool_basename="${tool_specified##*/}" 5573 if test "x$tool_basename" = "x$tool_specified"; then 5574 # A command without a complete path is provided, search $PATH. 5575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5576 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5577 # Extract the first word of "$tool_basename", so it can be a program name with args. 5578 set dummy $tool_basename; ac_word=$2 5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580 $as_echo_n "checking for $ac_word... " >&6; } 5581 if ${ac_cv_path_CP+:} false; then : 5582 $as_echo_n "(cached) " >&6 5583 else 5584 case $CP in 5585 [\\/]* | ?:[\\/]*) 5586 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5587 ;; 5588 *) 5589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5590 for as_dir in $PATH 5591 do 5592 IFS=$as_save_IFS 5593 test -z "$as_dir" && as_dir=. 5594 for ac_exec_ext in '' $ac_executable_extensions; do 5595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5596 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 break 2 5599 fi 5600 done 5601 done 5602 IFS=$as_save_IFS 5603 5604 ;; 5605 esac 5606 fi 5607 CP=$ac_cv_path_CP 5608 if test -n "$CP"; then 5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5610 $as_echo "$CP" >&6; } 5611 else 5612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 $as_echo "no" >&6; } 5614 fi 5615 5616 5617 if test "x$CP" = x; then 5618 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5619 fi 5620 else 5621 # Otherwise we believe it is a complete path. Use it as it is. 5622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5623 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5625 $as_echo_n "checking for CP... " >&6; } 5626 if test ! -x "$tool_specified"; then 5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5628 $as_echo "not found" >&6; } 5629 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5630 fi 5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5632 $as_echo "$tool_specified" >&6; } 5633 fi 5634 fi 5635 fi 5636 5637 5638 5639 if test "x$CP" = x; then 5640 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5641 fi 5642 5643 5644 5645 5646 5647 # Publish this variable in the help. 5648 5649 5650 if test "x$CPIO" = x; then 5651 # The variable is not set by user, try to locate tool using the code snippet 5652 for ac_prog in cpio 5653 do 5654 # Extract the first word of "$ac_prog", so it can be a program name with args. 5655 set dummy $ac_prog; ac_word=$2 5656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5657 $as_echo_n "checking for $ac_word... " >&6; } 5658 if ${ac_cv_path_CPIO+:} false; then : 5659 $as_echo_n "(cached) " >&6 5660 else 5661 case $CPIO in 5662 [\\/]* | ?:[\\/]*) 5663 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5664 ;; 5665 *) 5666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5667 for as_dir in $PATH 5668 do 5669 IFS=$as_save_IFS 5670 test -z "$as_dir" && as_dir=. 5671 for ac_exec_ext in '' $ac_executable_extensions; do 5672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5673 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5675 break 2 5676 fi 5677 done 5678 done 5679 IFS=$as_save_IFS 5680 5681 ;; 5682 esac 5683 fi 5684 CPIO=$ac_cv_path_CPIO 5685 if test -n "$CPIO"; then 5686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5687 $as_echo "$CPIO" >&6; } 5688 else 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5690 $as_echo "no" >&6; } 5691 fi 5692 5693 5694 test -n "$CPIO" && break 5695 done 5696 5697 else 5698 # The variable is set, but is it from the command line or the environment? 5699 5700 # Try to remove the string !CPIO! from our list. 5701 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5702 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5703 # If it failed, the variable was not from the command line. Ignore it, 5704 # but warn the user (except for BASH, which is always set by the calling BASH). 5705 if test "xCPIO" != xBASH; then 5706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5707 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5708 fi 5709 # Try to locate tool using the code snippet 5710 for ac_prog in cpio 5711 do 5712 # Extract the first word of "$ac_prog", so it can be a program name with args. 5713 set dummy $ac_prog; ac_word=$2 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5715 $as_echo_n "checking for $ac_word... " >&6; } 5716 if ${ac_cv_path_CPIO+:} false; then : 5717 $as_echo_n "(cached) " >&6 5718 else 5719 case $CPIO in 5720 [\\/]* | ?:[\\/]*) 5721 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5722 ;; 5723 *) 5724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5725 for as_dir in $PATH 5726 do 5727 IFS=$as_save_IFS 5728 test -z "$as_dir" && as_dir=. 5729 for ac_exec_ext in '' $ac_executable_extensions; do 5730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5731 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5733 break 2 5734 fi 5735 done 5736 done 5737 IFS=$as_save_IFS 5738 5739 ;; 5740 esac 5741 fi 5742 CPIO=$ac_cv_path_CPIO 5743 if test -n "$CPIO"; then 5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5745 $as_echo "$CPIO" >&6; } 5746 else 5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5748 $as_echo "no" >&6; } 5749 fi 5750 5751 5752 test -n "$CPIO" && break 5753 done 5754 5755 else 5756 # If it succeeded, then it was overridden by the user. We will use it 5757 # for the tool. 5758 5759 # First remove it from the list of overridden variables, so we can test 5760 # for unknown variables in the end. 5761 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5762 5763 # Check if the provided tool contains a complete path. 5764 tool_specified="$CPIO" 5765 tool_basename="${tool_specified##*/}" 5766 if test "x$tool_basename" = "x$tool_specified"; then 5767 # A command without a complete path is provided, search $PATH. 5768 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5769 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5770 # Extract the first word of "$tool_basename", so it can be a program name with args. 5771 set dummy $tool_basename; ac_word=$2 5772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5773 $as_echo_n "checking for $ac_word... " >&6; } 5774 if ${ac_cv_path_CPIO+:} false; then : 5775 $as_echo_n "(cached) " >&6 5776 else 5777 case $CPIO in 5778 [\\/]* | ?:[\\/]*) 5779 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5780 ;; 5781 *) 5782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5783 for as_dir in $PATH 5784 do 5785 IFS=$as_save_IFS 5786 test -z "$as_dir" && as_dir=. 5787 for ac_exec_ext in '' $ac_executable_extensions; do 5788 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5789 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5791 break 2 5792 fi 5793 done 5794 done 5795 IFS=$as_save_IFS 5796 5797 ;; 5798 esac 5799 fi 5800 CPIO=$ac_cv_path_CPIO 5801 if test -n "$CPIO"; then 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5803 $as_echo "$CPIO" >&6; } 5804 else 5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5806 $as_echo "no" >&6; } 5807 fi 5808 5809 5810 if test "x$CPIO" = x; then 5811 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5812 fi 5813 else 5814 # Otherwise we believe it is a complete path. Use it as it is. 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5816 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5818 $as_echo_n "checking for CPIO... " >&6; } 5819 if test ! -x "$tool_specified"; then 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5821 $as_echo "not found" >&6; } 5822 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5823 fi 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5825 $as_echo "$tool_specified" >&6; } 5826 fi 5827 fi 5828 fi 5829 5830 5831 5832 if test "x$CPIO" = x; then 5833 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5834 fi 5835 5836 5837 5838 5839 5840 # Publish this variable in the help. 5841 5842 5843 if test "x$CUT" = x; then 5844 # The variable is not set by user, try to locate tool using the code snippet 5845 for ac_prog in cut 5846 do 5847 # Extract the first word of "$ac_prog", so it can be a program name with args. 5848 set dummy $ac_prog; ac_word=$2 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5850 $as_echo_n "checking for $ac_word... " >&6; } 5851 if ${ac_cv_path_CUT+:} false; then : 5852 $as_echo_n "(cached) " >&6 5853 else 5854 case $CUT in 5855 [\\/]* | ?:[\\/]*) 5856 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5857 ;; 5858 *) 5859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5860 for as_dir in $PATH 5861 do 5862 IFS=$as_save_IFS 5863 test -z "$as_dir" && as_dir=. 5864 for ac_exec_ext in '' $ac_executable_extensions; do 5865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5866 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5868 break 2 5869 fi 5870 done 5871 done 5872 IFS=$as_save_IFS 5873 5874 ;; 5875 esac 5876 fi 5877 CUT=$ac_cv_path_CUT 5878 if test -n "$CUT"; then 5879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5880 $as_echo "$CUT" >&6; } 5881 else 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5883 $as_echo "no" >&6; } 5884 fi 5885 5886 5887 test -n "$CUT" && break 5888 done 5889 5890 else 5891 # The variable is set, but is it from the command line or the environment? 5892 5893 # Try to remove the string !CUT! from our list. 5894 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5895 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5896 # If it failed, the variable was not from the command line. Ignore it, 5897 # but warn the user (except for BASH, which is always set by the calling BASH). 5898 if test "xCUT" != xBASH; then 5899 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5900 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5901 fi 5902 # Try to locate tool using the code snippet 5903 for ac_prog in cut 5904 do 5905 # Extract the first word of "$ac_prog", so it can be a program name with args. 5906 set dummy $ac_prog; ac_word=$2 5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5908 $as_echo_n "checking for $ac_word... " >&6; } 5909 if ${ac_cv_path_CUT+:} false; then : 5910 $as_echo_n "(cached) " >&6 5911 else 5912 case $CUT in 5913 [\\/]* | ?:[\\/]*) 5914 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5915 ;; 5916 *) 5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5918 for as_dir in $PATH 5919 do 5920 IFS=$as_save_IFS 5921 test -z "$as_dir" && as_dir=. 5922 for ac_exec_ext in '' $ac_executable_extensions; do 5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5924 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5926 break 2 5927 fi 5928 done 5929 done 5930 IFS=$as_save_IFS 5931 5932 ;; 5933 esac 5934 fi 5935 CUT=$ac_cv_path_CUT 5936 if test -n "$CUT"; then 5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5938 $as_echo "$CUT" >&6; } 5939 else 5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5941 $as_echo "no" >&6; } 5942 fi 5943 5944 5945 test -n "$CUT" && break 5946 done 5947 5948 else 5949 # If it succeeded, then it was overridden by the user. We will use it 5950 # for the tool. 5951 5952 # First remove it from the list of overridden variables, so we can test 5953 # for unknown variables in the end. 5954 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5955 5956 # Check if the provided tool contains a complete path. 5957 tool_specified="$CUT" 5958 tool_basename="${tool_specified##*/}" 5959 if test "x$tool_basename" = "x$tool_specified"; then 5960 # A command without a complete path is provided, search $PATH. 5961 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5962 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5963 # Extract the first word of "$tool_basename", so it can be a program name with args. 5964 set dummy $tool_basename; ac_word=$2 5965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5966 $as_echo_n "checking for $ac_word... " >&6; } 5967 if ${ac_cv_path_CUT+:} false; then : 5968 $as_echo_n "(cached) " >&6 5969 else 5970 case $CUT in 5971 [\\/]* | ?:[\\/]*) 5972 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5973 ;; 5974 *) 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5976 for as_dir in $PATH 5977 do 5978 IFS=$as_save_IFS 5979 test -z "$as_dir" && as_dir=. 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5982 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5984 break 2 5985 fi 5986 done 5987 done 5988 IFS=$as_save_IFS 5989 5990 ;; 5991 esac 5992 fi 5993 CUT=$ac_cv_path_CUT 5994 if test -n "$CUT"; then 5995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5996 $as_echo "$CUT" >&6; } 5997 else 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5999 $as_echo "no" >&6; } 6000 fi 6001 6002 6003 if test "x$CUT" = x; then 6004 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6005 fi 6006 else 6007 # Otherwise we believe it is a complete path. Use it as it is. 6008 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 6009 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 6011 $as_echo_n "checking for CUT... " >&6; } 6012 if test ! -x "$tool_specified"; then 6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6014 $as_echo "not found" >&6; } 6015 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 6016 fi 6017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6018 $as_echo "$tool_specified" >&6; } 6019 fi 6020 fi 6021 fi 6022 6023 6024 6025 if test "x$CUT" = x; then 6026 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6027 fi 6028 6029 6030 6031 6032 6033 # Publish this variable in the help. 6034 6035 6036 if test "x$DATE" = x; then 6037 # The variable is not set by user, try to locate tool using the code snippet 6038 for ac_prog in date 6039 do 6040 # Extract the first word of "$ac_prog", so it can be a program name with args. 6041 set dummy $ac_prog; ac_word=$2 6042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6043 $as_echo_n "checking for $ac_word... " >&6; } 6044 if ${ac_cv_path_DATE+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046 else 6047 case $DATE in 6048 [\\/]* | ?:[\\/]*) 6049 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6050 ;; 6051 *) 6052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6053 for as_dir in $PATH 6054 do 6055 IFS=$as_save_IFS 6056 test -z "$as_dir" && as_dir=. 6057 for ac_exec_ext in '' $ac_executable_extensions; do 6058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6059 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6061 break 2 6062 fi 6063 done 6064 done 6065 IFS=$as_save_IFS 6066 6067 ;; 6068 esac 6069 fi 6070 DATE=$ac_cv_path_DATE 6071 if test -n "$DATE"; then 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6073 $as_echo "$DATE" >&6; } 6074 else 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6076 $as_echo "no" >&6; } 6077 fi 6078 6079 6080 test -n "$DATE" && break 6081 done 6082 6083 else 6084 # The variable is set, but is it from the command line or the environment? 6085 6086 # Try to remove the string !DATE! from our list. 6087 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6088 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6089 # If it failed, the variable was not from the command line. Ignore it, 6090 # but warn the user (except for BASH, which is always set by the calling BASH). 6091 if test "xDATE" != xBASH; then 6092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6093 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6094 fi 6095 # Try to locate tool using the code snippet 6096 for ac_prog in date 6097 do 6098 # Extract the first word of "$ac_prog", so it can be a program name with args. 6099 set dummy $ac_prog; ac_word=$2 6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6101 $as_echo_n "checking for $ac_word... " >&6; } 6102 if ${ac_cv_path_DATE+:} false; then : 6103 $as_echo_n "(cached) " >&6 6104 else 6105 case $DATE in 6106 [\\/]* | ?:[\\/]*) 6107 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6108 ;; 6109 *) 6110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6111 for as_dir in $PATH 6112 do 6113 IFS=$as_save_IFS 6114 test -z "$as_dir" && as_dir=. 6115 for ac_exec_ext in '' $ac_executable_extensions; do 6116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6117 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6119 break 2 6120 fi 6121 done 6122 done 6123 IFS=$as_save_IFS 6124 6125 ;; 6126 esac 6127 fi 6128 DATE=$ac_cv_path_DATE 6129 if test -n "$DATE"; then 6130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6131 $as_echo "$DATE" >&6; } 6132 else 6133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6134 $as_echo "no" >&6; } 6135 fi 6136 6137 6138 test -n "$DATE" && break 6139 done 6140 6141 else 6142 # If it succeeded, then it was overridden by the user. We will use it 6143 # for the tool. 6144 6145 # First remove it from the list of overridden variables, so we can test 6146 # for unknown variables in the end. 6147 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6148 6149 # Check if the provided tool contains a complete path. 6150 tool_specified="$DATE" 6151 tool_basename="${tool_specified##*/}" 6152 if test "x$tool_basename" = "x$tool_specified"; then 6153 # A command without a complete path is provided, search $PATH. 6154 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6155 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6156 # Extract the first word of "$tool_basename", so it can be a program name with args. 6157 set dummy $tool_basename; ac_word=$2 6158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6159 $as_echo_n "checking for $ac_word... " >&6; } 6160 if ${ac_cv_path_DATE+:} false; then : 6161 $as_echo_n "(cached) " >&6 6162 else 6163 case $DATE in 6164 [\\/]* | ?:[\\/]*) 6165 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6166 ;; 6167 *) 6168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6169 for as_dir in $PATH 6170 do 6171 IFS=$as_save_IFS 6172 test -z "$as_dir" && as_dir=. 6173 for ac_exec_ext in '' $ac_executable_extensions; do 6174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6175 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6177 break 2 6178 fi 6179 done 6180 done 6181 IFS=$as_save_IFS 6182 6183 ;; 6184 esac 6185 fi 6186 DATE=$ac_cv_path_DATE 6187 if test -n "$DATE"; then 6188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6189 $as_echo "$DATE" >&6; } 6190 else 6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6192 $as_echo "no" >&6; } 6193 fi 6194 6195 6196 if test "x$DATE" = x; then 6197 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6198 fi 6199 else 6200 # Otherwise we believe it is a complete path. Use it as it is. 6201 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6202 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6204 $as_echo_n "checking for DATE... " >&6; } 6205 if test ! -x "$tool_specified"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6207 $as_echo "not found" >&6; } 6208 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6209 fi 6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6211 $as_echo "$tool_specified" >&6; } 6212 fi 6213 fi 6214 fi 6215 6216 6217 6218 if test "x$DATE" = x; then 6219 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6220 fi 6221 6222 6223 6224 6225 6226 # Publish this variable in the help. 6227 6228 6229 if test "x$DIFF" = x; then 6230 # The variable is not set by user, try to locate tool using the code snippet 6231 for ac_prog in gdiff diff 6232 do 6233 # Extract the first word of "$ac_prog", so it can be a program name with args. 6234 set dummy $ac_prog; ac_word=$2 6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6236 $as_echo_n "checking for $ac_word... " >&6; } 6237 if ${ac_cv_path_DIFF+:} false; then : 6238 $as_echo_n "(cached) " >&6 6239 else 6240 case $DIFF in 6241 [\\/]* | ?:[\\/]*) 6242 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6243 ;; 6244 *) 6245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6246 for as_dir in $PATH 6247 do 6248 IFS=$as_save_IFS 6249 test -z "$as_dir" && as_dir=. 6250 for ac_exec_ext in '' $ac_executable_extensions; do 6251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6252 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6254 break 2 6255 fi 6256 done 6257 done 6258 IFS=$as_save_IFS 6259 6260 ;; 6261 esac 6262 fi 6263 DIFF=$ac_cv_path_DIFF 6264 if test -n "$DIFF"; then 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6266 $as_echo "$DIFF" >&6; } 6267 else 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6269 $as_echo "no" >&6; } 6270 fi 6271 6272 6273 test -n "$DIFF" && break 6274 done 6275 6276 else 6277 # The variable is set, but is it from the command line or the environment? 6278 6279 # Try to remove the string !DIFF! from our list. 6280 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6281 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6282 # If it failed, the variable was not from the command line. Ignore it, 6283 # but warn the user (except for BASH, which is always set by the calling BASH). 6284 if test "xDIFF" != xBASH; then 6285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6286 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6287 fi 6288 # Try to locate tool using the code snippet 6289 for ac_prog in gdiff diff 6290 do 6291 # Extract the first word of "$ac_prog", so it can be a program name with args. 6292 set dummy $ac_prog; ac_word=$2 6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6294 $as_echo_n "checking for $ac_word... " >&6; } 6295 if ${ac_cv_path_DIFF+:} false; then : 6296 $as_echo_n "(cached) " >&6 6297 else 6298 case $DIFF in 6299 [\\/]* | ?:[\\/]*) 6300 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6301 ;; 6302 *) 6303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6304 for as_dir in $PATH 6305 do 6306 IFS=$as_save_IFS 6307 test -z "$as_dir" && as_dir=. 6308 for ac_exec_ext in '' $ac_executable_extensions; do 6309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6310 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6312 break 2 6313 fi 6314 done 6315 done 6316 IFS=$as_save_IFS 6317 6318 ;; 6319 esac 6320 fi 6321 DIFF=$ac_cv_path_DIFF 6322 if test -n "$DIFF"; then 6323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6324 $as_echo "$DIFF" >&6; } 6325 else 6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6327 $as_echo "no" >&6; } 6328 fi 6329 6330 6331 test -n "$DIFF" && break 6332 done 6333 6334 else 6335 # If it succeeded, then it was overridden by the user. We will use it 6336 # for the tool. 6337 6338 # First remove it from the list of overridden variables, so we can test 6339 # for unknown variables in the end. 6340 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6341 6342 # Check if the provided tool contains a complete path. 6343 tool_specified="$DIFF" 6344 tool_basename="${tool_specified##*/}" 6345 if test "x$tool_basename" = "x$tool_specified"; then 6346 # A command without a complete path is provided, search $PATH. 6347 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6348 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6349 # Extract the first word of "$tool_basename", so it can be a program name with args. 6350 set dummy $tool_basename; ac_word=$2 6351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6352 $as_echo_n "checking for $ac_word... " >&6; } 6353 if ${ac_cv_path_DIFF+:} false; then : 6354 $as_echo_n "(cached) " >&6 6355 else 6356 case $DIFF in 6357 [\\/]* | ?:[\\/]*) 6358 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6359 ;; 6360 *) 6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6362 for as_dir in $PATH 6363 do 6364 IFS=$as_save_IFS 6365 test -z "$as_dir" && as_dir=. 6366 for ac_exec_ext in '' $ac_executable_extensions; do 6367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6368 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6370 break 2 6371 fi 6372 done 6373 done 6374 IFS=$as_save_IFS 6375 6376 ;; 6377 esac 6378 fi 6379 DIFF=$ac_cv_path_DIFF 6380 if test -n "$DIFF"; then 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6382 $as_echo "$DIFF" >&6; } 6383 else 6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6385 $as_echo "no" >&6; } 6386 fi 6387 6388 6389 if test "x$DIFF" = x; then 6390 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6391 fi 6392 else 6393 # Otherwise we believe it is a complete path. Use it as it is. 6394 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6395 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6397 $as_echo_n "checking for DIFF... " >&6; } 6398 if test ! -x "$tool_specified"; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6400 $as_echo "not found" >&6; } 6401 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6402 fi 6403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6404 $as_echo "$tool_specified" >&6; } 6405 fi 6406 fi 6407 fi 6408 6409 6410 6411 if test "x$DIFF" = x; then 6412 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6413 fi 6414 6415 6416 6417 6418 6419 # Publish this variable in the help. 6420 6421 6422 if test "x$DIRNAME" = x; then 6423 # The variable is not set by user, try to locate tool using the code snippet 6424 for ac_prog in dirname 6425 do 6426 # Extract the first word of "$ac_prog", so it can be a program name with args. 6427 set dummy $ac_prog; ac_word=$2 6428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6429 $as_echo_n "checking for $ac_word... " >&6; } 6430 if ${ac_cv_path_DIRNAME+:} false; then : 6431 $as_echo_n "(cached) " >&6 6432 else 6433 case $DIRNAME in 6434 [\\/]* | ?:[\\/]*) 6435 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6436 ;; 6437 *) 6438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6439 for as_dir in $PATH 6440 do 6441 IFS=$as_save_IFS 6442 test -z "$as_dir" && as_dir=. 6443 for ac_exec_ext in '' $ac_executable_extensions; do 6444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6445 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6447 break 2 6448 fi 6449 done 6450 done 6451 IFS=$as_save_IFS 6452 6453 ;; 6454 esac 6455 fi 6456 DIRNAME=$ac_cv_path_DIRNAME 6457 if test -n "$DIRNAME"; then 6458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6459 $as_echo "$DIRNAME" >&6; } 6460 else 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6462 $as_echo "no" >&6; } 6463 fi 6464 6465 6466 test -n "$DIRNAME" && break 6467 done 6468 6469 else 6470 # The variable is set, but is it from the command line or the environment? 6471 6472 # Try to remove the string !DIRNAME! from our list. 6473 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6474 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6475 # If it failed, the variable was not from the command line. Ignore it, 6476 # but warn the user (except for BASH, which is always set by the calling BASH). 6477 if test "xDIRNAME" != xBASH; then 6478 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6479 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6480 fi 6481 # Try to locate tool using the code snippet 6482 for ac_prog in dirname 6483 do 6484 # Extract the first word of "$ac_prog", so it can be a program name with args. 6485 set dummy $ac_prog; ac_word=$2 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6487 $as_echo_n "checking for $ac_word... " >&6; } 6488 if ${ac_cv_path_DIRNAME+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490 else 6491 case $DIRNAME in 6492 [\\/]* | ?:[\\/]*) 6493 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6494 ;; 6495 *) 6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6497 for as_dir in $PATH 6498 do 6499 IFS=$as_save_IFS 6500 test -z "$as_dir" && as_dir=. 6501 for ac_exec_ext in '' $ac_executable_extensions; do 6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6503 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6505 break 2 6506 fi 6507 done 6508 done 6509 IFS=$as_save_IFS 6510 6511 ;; 6512 esac 6513 fi 6514 DIRNAME=$ac_cv_path_DIRNAME 6515 if test -n "$DIRNAME"; then 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6517 $as_echo "$DIRNAME" >&6; } 6518 else 6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6520 $as_echo "no" >&6; } 6521 fi 6522 6523 6524 test -n "$DIRNAME" && break 6525 done 6526 6527 else 6528 # If it succeeded, then it was overridden by the user. We will use it 6529 # for the tool. 6530 6531 # First remove it from the list of overridden variables, so we can test 6532 # for unknown variables in the end. 6533 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6534 6535 # Check if the provided tool contains a complete path. 6536 tool_specified="$DIRNAME" 6537 tool_basename="${tool_specified##*/}" 6538 if test "x$tool_basename" = "x$tool_specified"; then 6539 # A command without a complete path is provided, search $PATH. 6540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6541 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6542 # Extract the first word of "$tool_basename", so it can be a program name with args. 6543 set dummy $tool_basename; ac_word=$2 6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6545 $as_echo_n "checking for $ac_word... " >&6; } 6546 if ${ac_cv_path_DIRNAME+:} false; then : 6547 $as_echo_n "(cached) " >&6 6548 else 6549 case $DIRNAME in 6550 [\\/]* | ?:[\\/]*) 6551 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6552 ;; 6553 *) 6554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6555 for as_dir in $PATH 6556 do 6557 IFS=$as_save_IFS 6558 test -z "$as_dir" && as_dir=. 6559 for ac_exec_ext in '' $ac_executable_extensions; do 6560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6561 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6563 break 2 6564 fi 6565 done 6566 done 6567 IFS=$as_save_IFS 6568 6569 ;; 6570 esac 6571 fi 6572 DIRNAME=$ac_cv_path_DIRNAME 6573 if test -n "$DIRNAME"; then 6574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6575 $as_echo "$DIRNAME" >&6; } 6576 else 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6578 $as_echo "no" >&6; } 6579 fi 6580 6581 6582 if test "x$DIRNAME" = x; then 6583 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6584 fi 6585 else 6586 # Otherwise we believe it is a complete path. Use it as it is. 6587 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6588 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6590 $as_echo_n "checking for DIRNAME... " >&6; } 6591 if test ! -x "$tool_specified"; then 6592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6593 $as_echo "not found" >&6; } 6594 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6595 fi 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6597 $as_echo "$tool_specified" >&6; } 6598 fi 6599 fi 6600 fi 6601 6602 6603 6604 if test "x$DIRNAME" = x; then 6605 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6606 fi 6607 6608 6609 6610 6611 6612 # Publish this variable in the help. 6613 6614 6615 if test "x$ECHO" = x; then 6616 # The variable is not set by user, try to locate tool using the code snippet 6617 for ac_prog in echo 6618 do 6619 # Extract the first word of "$ac_prog", so it can be a program name with args. 6620 set dummy $ac_prog; ac_word=$2 6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6622 $as_echo_n "checking for $ac_word... " >&6; } 6623 if ${ac_cv_path_ECHO+:} false; then : 6624 $as_echo_n "(cached) " >&6 6625 else 6626 case $ECHO in 6627 [\\/]* | ?:[\\/]*) 6628 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6629 ;; 6630 *) 6631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6632 for as_dir in $PATH 6633 do 6634 IFS=$as_save_IFS 6635 test -z "$as_dir" && as_dir=. 6636 for ac_exec_ext in '' $ac_executable_extensions; do 6637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6638 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6640 break 2 6641 fi 6642 done 6643 done 6644 IFS=$as_save_IFS 6645 6646 ;; 6647 esac 6648 fi 6649 ECHO=$ac_cv_path_ECHO 6650 if test -n "$ECHO"; then 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6652 $as_echo "$ECHO" >&6; } 6653 else 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6655 $as_echo "no" >&6; } 6656 fi 6657 6658 6659 test -n "$ECHO" && break 6660 done 6661 6662 else 6663 # The variable is set, but is it from the command line or the environment? 6664 6665 # Try to remove the string !ECHO! from our list. 6666 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6667 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6668 # If it failed, the variable was not from the command line. Ignore it, 6669 # but warn the user (except for BASH, which is always set by the calling BASH). 6670 if test "xECHO" != xBASH; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6672 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6673 fi 6674 # Try to locate tool using the code snippet 6675 for ac_prog in echo 6676 do 6677 # Extract the first word of "$ac_prog", so it can be a program name with args. 6678 set dummy $ac_prog; ac_word=$2 6679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6680 $as_echo_n "checking for $ac_word... " >&6; } 6681 if ${ac_cv_path_ECHO+:} false; then : 6682 $as_echo_n "(cached) " >&6 6683 else 6684 case $ECHO in 6685 [\\/]* | ?:[\\/]*) 6686 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6687 ;; 6688 *) 6689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6690 for as_dir in $PATH 6691 do 6692 IFS=$as_save_IFS 6693 test -z "$as_dir" && as_dir=. 6694 for ac_exec_ext in '' $ac_executable_extensions; do 6695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6696 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6698 break 2 6699 fi 6700 done 6701 done 6702 IFS=$as_save_IFS 6703 6704 ;; 6705 esac 6706 fi 6707 ECHO=$ac_cv_path_ECHO 6708 if test -n "$ECHO"; then 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6710 $as_echo "$ECHO" >&6; } 6711 else 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6713 $as_echo "no" >&6; } 6714 fi 6715 6716 6717 test -n "$ECHO" && break 6718 done 6719 6720 else 6721 # If it succeeded, then it was overridden by the user. We will use it 6722 # for the tool. 6723 6724 # First remove it from the list of overridden variables, so we can test 6725 # for unknown variables in the end. 6726 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6727 6728 # Check if the provided tool contains a complete path. 6729 tool_specified="$ECHO" 6730 tool_basename="${tool_specified##*/}" 6731 if test "x$tool_basename" = "x$tool_specified"; then 6732 # A command without a complete path is provided, search $PATH. 6733 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6734 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6735 # Extract the first word of "$tool_basename", so it can be a program name with args. 6736 set dummy $tool_basename; ac_word=$2 6737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6738 $as_echo_n "checking for $ac_word... " >&6; } 6739 if ${ac_cv_path_ECHO+:} false; then : 6740 $as_echo_n "(cached) " >&6 6741 else 6742 case $ECHO in 6743 [\\/]* | ?:[\\/]*) 6744 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6745 ;; 6746 *) 6747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6748 for as_dir in $PATH 6749 do 6750 IFS=$as_save_IFS 6751 test -z "$as_dir" && as_dir=. 6752 for ac_exec_ext in '' $ac_executable_extensions; do 6753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6754 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6756 break 2 6757 fi 6758 done 6759 done 6760 IFS=$as_save_IFS 6761 6762 ;; 6763 esac 6764 fi 6765 ECHO=$ac_cv_path_ECHO 6766 if test -n "$ECHO"; then 6767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6768 $as_echo "$ECHO" >&6; } 6769 else 6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6771 $as_echo "no" >&6; } 6772 fi 6773 6774 6775 if test "x$ECHO" = x; then 6776 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6777 fi 6778 else 6779 # Otherwise we believe it is a complete path. Use it as it is. 6780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6781 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6783 $as_echo_n "checking for ECHO... " >&6; } 6784 if test ! -x "$tool_specified"; then 6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6786 $as_echo "not found" >&6; } 6787 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6788 fi 6789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6790 $as_echo "$tool_specified" >&6; } 6791 fi 6792 fi 6793 fi 6794 6795 6796 6797 if test "x$ECHO" = x; then 6798 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6799 fi 6800 6801 6802 6803 6804 6805 # Publish this variable in the help. 6806 6807 6808 if test "x$EXPR" = x; then 6809 # The variable is not set by user, try to locate tool using the code snippet 6810 for ac_prog in expr 6811 do 6812 # Extract the first word of "$ac_prog", so it can be a program name with args. 6813 set dummy $ac_prog; ac_word=$2 6814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6815 $as_echo_n "checking for $ac_word... " >&6; } 6816 if ${ac_cv_path_EXPR+:} false; then : 6817 $as_echo_n "(cached) " >&6 6818 else 6819 case $EXPR in 6820 [\\/]* | ?:[\\/]*) 6821 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6822 ;; 6823 *) 6824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6825 for as_dir in $PATH 6826 do 6827 IFS=$as_save_IFS 6828 test -z "$as_dir" && as_dir=. 6829 for ac_exec_ext in '' $ac_executable_extensions; do 6830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6831 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6833 break 2 6834 fi 6835 done 6836 done 6837 IFS=$as_save_IFS 6838 6839 ;; 6840 esac 6841 fi 6842 EXPR=$ac_cv_path_EXPR 6843 if test -n "$EXPR"; then 6844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6845 $as_echo "$EXPR" >&6; } 6846 else 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6848 $as_echo "no" >&6; } 6849 fi 6850 6851 6852 test -n "$EXPR" && break 6853 done 6854 6855 else 6856 # The variable is set, but is it from the command line or the environment? 6857 6858 # Try to remove the string !EXPR! from our list. 6859 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6860 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6861 # If it failed, the variable was not from the command line. Ignore it, 6862 # but warn the user (except for BASH, which is always set by the calling BASH). 6863 if test "xEXPR" != xBASH; then 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6865 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6866 fi 6867 # Try to locate tool using the code snippet 6868 for ac_prog in expr 6869 do 6870 # Extract the first word of "$ac_prog", so it can be a program name with args. 6871 set dummy $ac_prog; ac_word=$2 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6873 $as_echo_n "checking for $ac_word... " >&6; } 6874 if ${ac_cv_path_EXPR+:} false; then : 6875 $as_echo_n "(cached) " >&6 6876 else 6877 case $EXPR in 6878 [\\/]* | ?:[\\/]*) 6879 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6880 ;; 6881 *) 6882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6883 for as_dir in $PATH 6884 do 6885 IFS=$as_save_IFS 6886 test -z "$as_dir" && as_dir=. 6887 for ac_exec_ext in '' $ac_executable_extensions; do 6888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6889 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6891 break 2 6892 fi 6893 done 6894 done 6895 IFS=$as_save_IFS 6896 6897 ;; 6898 esac 6899 fi 6900 EXPR=$ac_cv_path_EXPR 6901 if test -n "$EXPR"; then 6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6903 $as_echo "$EXPR" >&6; } 6904 else 6905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6906 $as_echo "no" >&6; } 6907 fi 6908 6909 6910 test -n "$EXPR" && break 6911 done 6912 6913 else 6914 # If it succeeded, then it was overridden by the user. We will use it 6915 # for the tool. 6916 6917 # First remove it from the list of overridden variables, so we can test 6918 # for unknown variables in the end. 6919 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6920 6921 # Check if the provided tool contains a complete path. 6922 tool_specified="$EXPR" 6923 tool_basename="${tool_specified##*/}" 6924 if test "x$tool_basename" = "x$tool_specified"; then 6925 # A command without a complete path is provided, search $PATH. 6926 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6927 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6928 # Extract the first word of "$tool_basename", so it can be a program name with args. 6929 set dummy $tool_basename; ac_word=$2 6930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6931 $as_echo_n "checking for $ac_word... " >&6; } 6932 if ${ac_cv_path_EXPR+:} false; then : 6933 $as_echo_n "(cached) " >&6 6934 else 6935 case $EXPR in 6936 [\\/]* | ?:[\\/]*) 6937 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6938 ;; 6939 *) 6940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6941 for as_dir in $PATH 6942 do 6943 IFS=$as_save_IFS 6944 test -z "$as_dir" && as_dir=. 6945 for ac_exec_ext in '' $ac_executable_extensions; do 6946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6947 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6949 break 2 6950 fi 6951 done 6952 done 6953 IFS=$as_save_IFS 6954 6955 ;; 6956 esac 6957 fi 6958 EXPR=$ac_cv_path_EXPR 6959 if test -n "$EXPR"; then 6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6961 $as_echo "$EXPR" >&6; } 6962 else 6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6964 $as_echo "no" >&6; } 6965 fi 6966 6967 6968 if test "x$EXPR" = x; then 6969 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6970 fi 6971 else 6972 # Otherwise we believe it is a complete path. Use it as it is. 6973 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6974 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6976 $as_echo_n "checking for EXPR... " >&6; } 6977 if test ! -x "$tool_specified"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6979 $as_echo "not found" >&6; } 6980 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6981 fi 6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6983 $as_echo "$tool_specified" >&6; } 6984 fi 6985 fi 6986 fi 6987 6988 6989 6990 if test "x$EXPR" = x; then 6991 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6992 fi 6993 6994 6995 6996 6997 6998 # Publish this variable in the help. 6999 7000 7001 if test "x$FILE" = x; then 7002 # The variable is not set by user, try to locate tool using the code snippet 7003 for ac_prog in file 7004 do 7005 # Extract the first word of "$ac_prog", so it can be a program name with args. 7006 set dummy $ac_prog; ac_word=$2 7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7008 $as_echo_n "checking for $ac_word... " >&6; } 7009 if ${ac_cv_path_FILE+:} false; then : 7010 $as_echo_n "(cached) " >&6 7011 else 7012 case $FILE in 7013 [\\/]* | ?:[\\/]*) 7014 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7015 ;; 7016 *) 7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7018 for as_dir in $PATH 7019 do 7020 IFS=$as_save_IFS 7021 test -z "$as_dir" && as_dir=. 7022 for ac_exec_ext in '' $ac_executable_extensions; do 7023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7024 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7026 break 2 7027 fi 7028 done 7029 done 7030 IFS=$as_save_IFS 7031 7032 ;; 7033 esac 7034 fi 7035 FILE=$ac_cv_path_FILE 7036 if test -n "$FILE"; then 7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7038 $as_echo "$FILE" >&6; } 7039 else 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7041 $as_echo "no" >&6; } 7042 fi 7043 7044 7045 test -n "$FILE" && break 7046 done 7047 7048 else 7049 # The variable is set, but is it from the command line or the environment? 7050 7051 # Try to remove the string !FILE! from our list. 7052 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7053 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7054 # If it failed, the variable was not from the command line. Ignore it, 7055 # but warn the user (except for BASH, which is always set by the calling BASH). 7056 if test "xFILE" != xBASH; then 7057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7058 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7059 fi 7060 # Try to locate tool using the code snippet 7061 for ac_prog in file 7062 do 7063 # Extract the first word of "$ac_prog", so it can be a program name with args. 7064 set dummy $ac_prog; ac_word=$2 7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7066 $as_echo_n "checking for $ac_word... " >&6; } 7067 if ${ac_cv_path_FILE+:} false; then : 7068 $as_echo_n "(cached) " >&6 7069 else 7070 case $FILE in 7071 [\\/]* | ?:[\\/]*) 7072 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7073 ;; 7074 *) 7075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7076 for as_dir in $PATH 7077 do 7078 IFS=$as_save_IFS 7079 test -z "$as_dir" && as_dir=. 7080 for ac_exec_ext in '' $ac_executable_extensions; do 7081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7082 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7084 break 2 7085 fi 7086 done 7087 done 7088 IFS=$as_save_IFS 7089 7090 ;; 7091 esac 7092 fi 7093 FILE=$ac_cv_path_FILE 7094 if test -n "$FILE"; then 7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7096 $as_echo "$FILE" >&6; } 7097 else 7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7099 $as_echo "no" >&6; } 7100 fi 7101 7102 7103 test -n "$FILE" && break 7104 done 7105 7106 else 7107 # If it succeeded, then it was overridden by the user. We will use it 7108 # for the tool. 7109 7110 # First remove it from the list of overridden variables, so we can test 7111 # for unknown variables in the end. 7112 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7113 7114 # Check if the provided tool contains a complete path. 7115 tool_specified="$FILE" 7116 tool_basename="${tool_specified##*/}" 7117 if test "x$tool_basename" = "x$tool_specified"; then 7118 # A command without a complete path is provided, search $PATH. 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7120 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7121 # Extract the first word of "$tool_basename", so it can be a program name with args. 7122 set dummy $tool_basename; ac_word=$2 7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7124 $as_echo_n "checking for $ac_word... " >&6; } 7125 if ${ac_cv_path_FILE+:} false; then : 7126 $as_echo_n "(cached) " >&6 7127 else 7128 case $FILE in 7129 [\\/]* | ?:[\\/]*) 7130 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7131 ;; 7132 *) 7133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7134 for as_dir in $PATH 7135 do 7136 IFS=$as_save_IFS 7137 test -z "$as_dir" && as_dir=. 7138 for ac_exec_ext in '' $ac_executable_extensions; do 7139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7140 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7142 break 2 7143 fi 7144 done 7145 done 7146 IFS=$as_save_IFS 7147 7148 ;; 7149 esac 7150 fi 7151 FILE=$ac_cv_path_FILE 7152 if test -n "$FILE"; then 7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7154 $as_echo "$FILE" >&6; } 7155 else 7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7157 $as_echo "no" >&6; } 7158 fi 7159 7160 7161 if test "x$FILE" = x; then 7162 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7163 fi 7164 else 7165 # Otherwise we believe it is a complete path. Use it as it is. 7166 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7167 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7169 $as_echo_n "checking for FILE... " >&6; } 7170 if test ! -x "$tool_specified"; then 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7172 $as_echo "not found" >&6; } 7173 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7174 fi 7175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7176 $as_echo "$tool_specified" >&6; } 7177 fi 7178 fi 7179 fi 7180 7181 7182 7183 if test "x$FILE" = x; then 7184 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7185 fi 7186 7187 7188 7189 7190 7191 # Publish this variable in the help. 7192 7193 7194 if test "x$FIND" = x; then 7195 # The variable is not set by user, try to locate tool using the code snippet 7196 for ac_prog in find 7197 do 7198 # Extract the first word of "$ac_prog", so it can be a program name with args. 7199 set dummy $ac_prog; ac_word=$2 7200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7201 $as_echo_n "checking for $ac_word... " >&6; } 7202 if ${ac_cv_path_FIND+:} false; then : 7203 $as_echo_n "(cached) " >&6 7204 else 7205 case $FIND in 7206 [\\/]* | ?:[\\/]*) 7207 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7208 ;; 7209 *) 7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7211 for as_dir in $PATH 7212 do 7213 IFS=$as_save_IFS 7214 test -z "$as_dir" && as_dir=. 7215 for ac_exec_ext in '' $ac_executable_extensions; do 7216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7217 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7219 break 2 7220 fi 7221 done 7222 done 7223 IFS=$as_save_IFS 7224 7225 ;; 7226 esac 7227 fi 7228 FIND=$ac_cv_path_FIND 7229 if test -n "$FIND"; then 7230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7231 $as_echo "$FIND" >&6; } 7232 else 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7234 $as_echo "no" >&6; } 7235 fi 7236 7237 7238 test -n "$FIND" && break 7239 done 7240 7241 else 7242 # The variable is set, but is it from the command line or the environment? 7243 7244 # Try to remove the string !FIND! from our list. 7245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7247 # If it failed, the variable was not from the command line. Ignore it, 7248 # but warn the user (except for BASH, which is always set by the calling BASH). 7249 if test "xFIND" != xBASH; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7251 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7252 fi 7253 # Try to locate tool using the code snippet 7254 for ac_prog in find 7255 do 7256 # Extract the first word of "$ac_prog", so it can be a program name with args. 7257 set dummy $ac_prog; ac_word=$2 7258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7259 $as_echo_n "checking for $ac_word... " >&6; } 7260 if ${ac_cv_path_FIND+:} false; then : 7261 $as_echo_n "(cached) " >&6 7262 else 7263 case $FIND in 7264 [\\/]* | ?:[\\/]*) 7265 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7266 ;; 7267 *) 7268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7269 for as_dir in $PATH 7270 do 7271 IFS=$as_save_IFS 7272 test -z "$as_dir" && as_dir=. 7273 for ac_exec_ext in '' $ac_executable_extensions; do 7274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7275 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7277 break 2 7278 fi 7279 done 7280 done 7281 IFS=$as_save_IFS 7282 7283 ;; 7284 esac 7285 fi 7286 FIND=$ac_cv_path_FIND 7287 if test -n "$FIND"; then 7288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7289 $as_echo "$FIND" >&6; } 7290 else 7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7292 $as_echo "no" >&6; } 7293 fi 7294 7295 7296 test -n "$FIND" && break 7297 done 7298 7299 else 7300 # If it succeeded, then it was overridden by the user. We will use it 7301 # for the tool. 7302 7303 # First remove it from the list of overridden variables, so we can test 7304 # for unknown variables in the end. 7305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7306 7307 # Check if the provided tool contains a complete path. 7308 tool_specified="$FIND" 7309 tool_basename="${tool_specified##*/}" 7310 if test "x$tool_basename" = "x$tool_specified"; then 7311 # A command without a complete path is provided, search $PATH. 7312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7313 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7314 # Extract the first word of "$tool_basename", so it can be a program name with args. 7315 set dummy $tool_basename; ac_word=$2 7316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7317 $as_echo_n "checking for $ac_word... " >&6; } 7318 if ${ac_cv_path_FIND+:} false; then : 7319 $as_echo_n "(cached) " >&6 7320 else 7321 case $FIND in 7322 [\\/]* | ?:[\\/]*) 7323 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7324 ;; 7325 *) 7326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7327 for as_dir in $PATH 7328 do 7329 IFS=$as_save_IFS 7330 test -z "$as_dir" && as_dir=. 7331 for ac_exec_ext in '' $ac_executable_extensions; do 7332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7333 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7335 break 2 7336 fi 7337 done 7338 done 7339 IFS=$as_save_IFS 7340 7341 ;; 7342 esac 7343 fi 7344 FIND=$ac_cv_path_FIND 7345 if test -n "$FIND"; then 7346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7347 $as_echo "$FIND" >&6; } 7348 else 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7350 $as_echo "no" >&6; } 7351 fi 7352 7353 7354 if test "x$FIND" = x; then 7355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7356 fi 7357 else 7358 # Otherwise we believe it is a complete path. Use it as it is. 7359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7360 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7362 $as_echo_n "checking for FIND... " >&6; } 7363 if test ! -x "$tool_specified"; then 7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7365 $as_echo "not found" >&6; } 7366 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7367 fi 7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7369 $as_echo "$tool_specified" >&6; } 7370 fi 7371 fi 7372 fi 7373 7374 7375 7376 if test "x$FIND" = x; then 7377 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7378 fi 7379 7380 7381 7382 7383 7384 # Publish this variable in the help. 7385 7386 7387 if test "x$HEAD" = x; then 7388 # The variable is not set by user, try to locate tool using the code snippet 7389 for ac_prog in head 7390 do 7391 # Extract the first word of "$ac_prog", so it can be a program name with args. 7392 set dummy $ac_prog; ac_word=$2 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7394 $as_echo_n "checking for $ac_word... " >&6; } 7395 if ${ac_cv_path_HEAD+:} false; then : 7396 $as_echo_n "(cached) " >&6 7397 else 7398 case $HEAD in 7399 [\\/]* | ?:[\\/]*) 7400 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7401 ;; 7402 *) 7403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7404 for as_dir in $PATH 7405 do 7406 IFS=$as_save_IFS 7407 test -z "$as_dir" && as_dir=. 7408 for ac_exec_ext in '' $ac_executable_extensions; do 7409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7410 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7412 break 2 7413 fi 7414 done 7415 done 7416 IFS=$as_save_IFS 7417 7418 ;; 7419 esac 7420 fi 7421 HEAD=$ac_cv_path_HEAD 7422 if test -n "$HEAD"; then 7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7424 $as_echo "$HEAD" >&6; } 7425 else 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7427 $as_echo "no" >&6; } 7428 fi 7429 7430 7431 test -n "$HEAD" && break 7432 done 7433 7434 else 7435 # The variable is set, but is it from the command line or the environment? 7436 7437 # Try to remove the string !HEAD! from our list. 7438 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7439 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7440 # If it failed, the variable was not from the command line. Ignore it, 7441 # but warn the user (except for BASH, which is always set by the calling BASH). 7442 if test "xHEAD" != xBASH; then 7443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7444 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7445 fi 7446 # Try to locate tool using the code snippet 7447 for ac_prog in head 7448 do 7449 # Extract the first word of "$ac_prog", so it can be a program name with args. 7450 set dummy $ac_prog; ac_word=$2 7451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7452 $as_echo_n "checking for $ac_word... " >&6; } 7453 if ${ac_cv_path_HEAD+:} false; then : 7454 $as_echo_n "(cached) " >&6 7455 else 7456 case $HEAD in 7457 [\\/]* | ?:[\\/]*) 7458 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7459 ;; 7460 *) 7461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7462 for as_dir in $PATH 7463 do 7464 IFS=$as_save_IFS 7465 test -z "$as_dir" && as_dir=. 7466 for ac_exec_ext in '' $ac_executable_extensions; do 7467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7468 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7470 break 2 7471 fi 7472 done 7473 done 7474 IFS=$as_save_IFS 7475 7476 ;; 7477 esac 7478 fi 7479 HEAD=$ac_cv_path_HEAD 7480 if test -n "$HEAD"; then 7481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7482 $as_echo "$HEAD" >&6; } 7483 else 7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7485 $as_echo "no" >&6; } 7486 fi 7487 7488 7489 test -n "$HEAD" && break 7490 done 7491 7492 else 7493 # If it succeeded, then it was overridden by the user. We will use it 7494 # for the tool. 7495 7496 # First remove it from the list of overridden variables, so we can test 7497 # for unknown variables in the end. 7498 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7499 7500 # Check if the provided tool contains a complete path. 7501 tool_specified="$HEAD" 7502 tool_basename="${tool_specified##*/}" 7503 if test "x$tool_basename" = "x$tool_specified"; then 7504 # A command without a complete path is provided, search $PATH. 7505 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7506 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7507 # Extract the first word of "$tool_basename", so it can be a program name with args. 7508 set dummy $tool_basename; ac_word=$2 7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7510 $as_echo_n "checking for $ac_word... " >&6; } 7511 if ${ac_cv_path_HEAD+:} false; then : 7512 $as_echo_n "(cached) " >&6 7513 else 7514 case $HEAD in 7515 [\\/]* | ?:[\\/]*) 7516 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7517 ;; 7518 *) 7519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7520 for as_dir in $PATH 7521 do 7522 IFS=$as_save_IFS 7523 test -z "$as_dir" && as_dir=. 7524 for ac_exec_ext in '' $ac_executable_extensions; do 7525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7526 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7528 break 2 7529 fi 7530 done 7531 done 7532 IFS=$as_save_IFS 7533 7534 ;; 7535 esac 7536 fi 7537 HEAD=$ac_cv_path_HEAD 7538 if test -n "$HEAD"; then 7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7540 $as_echo "$HEAD" >&6; } 7541 else 7542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7543 $as_echo "no" >&6; } 7544 fi 7545 7546 7547 if test "x$HEAD" = x; then 7548 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7549 fi 7550 else 7551 # Otherwise we believe it is a complete path. Use it as it is. 7552 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7553 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7555 $as_echo_n "checking for HEAD... " >&6; } 7556 if test ! -x "$tool_specified"; then 7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7558 $as_echo "not found" >&6; } 7559 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7560 fi 7561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7562 $as_echo "$tool_specified" >&6; } 7563 fi 7564 fi 7565 fi 7566 7567 7568 7569 if test "x$HEAD" = x; then 7570 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7571 fi 7572 7573 7574 7575 7576 7577 # Publish this variable in the help. 7578 7579 7580 if test "x$LN" = x; then 7581 # The variable is not set by user, try to locate tool using the code snippet 7582 for ac_prog in ln 7583 do 7584 # Extract the first word of "$ac_prog", so it can be a program name with args. 7585 set dummy $ac_prog; ac_word=$2 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7587 $as_echo_n "checking for $ac_word... " >&6; } 7588 if ${ac_cv_path_LN+:} false; then : 7589 $as_echo_n "(cached) " >&6 7590 else 7591 case $LN in 7592 [\\/]* | ?:[\\/]*) 7593 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7594 ;; 7595 *) 7596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7597 for as_dir in $PATH 7598 do 7599 IFS=$as_save_IFS 7600 test -z "$as_dir" && as_dir=. 7601 for ac_exec_ext in '' $ac_executable_extensions; do 7602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7603 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7605 break 2 7606 fi 7607 done 7608 done 7609 IFS=$as_save_IFS 7610 7611 ;; 7612 esac 7613 fi 7614 LN=$ac_cv_path_LN 7615 if test -n "$LN"; then 7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7617 $as_echo "$LN" >&6; } 7618 else 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7620 $as_echo "no" >&6; } 7621 fi 7622 7623 7624 test -n "$LN" && break 7625 done 7626 7627 else 7628 # The variable is set, but is it from the command line or the environment? 7629 7630 # Try to remove the string !LN! from our list. 7631 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7632 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7633 # If it failed, the variable was not from the command line. Ignore it, 7634 # but warn the user (except for BASH, which is always set by the calling BASH). 7635 if test "xLN" != xBASH; then 7636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7637 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7638 fi 7639 # Try to locate tool using the code snippet 7640 for ac_prog in ln 7641 do 7642 # Extract the first word of "$ac_prog", so it can be a program name with args. 7643 set dummy $ac_prog; ac_word=$2 7644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7645 $as_echo_n "checking for $ac_word... " >&6; } 7646 if ${ac_cv_path_LN+:} false; then : 7647 $as_echo_n "(cached) " >&6 7648 else 7649 case $LN in 7650 [\\/]* | ?:[\\/]*) 7651 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7652 ;; 7653 *) 7654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7655 for as_dir in $PATH 7656 do 7657 IFS=$as_save_IFS 7658 test -z "$as_dir" && as_dir=. 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7661 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7663 break 2 7664 fi 7665 done 7666 done 7667 IFS=$as_save_IFS 7668 7669 ;; 7670 esac 7671 fi 7672 LN=$ac_cv_path_LN 7673 if test -n "$LN"; then 7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7675 $as_echo "$LN" >&6; } 7676 else 7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7678 $as_echo "no" >&6; } 7679 fi 7680 7681 7682 test -n "$LN" && break 7683 done 7684 7685 else 7686 # If it succeeded, then it was overridden by the user. We will use it 7687 # for the tool. 7688 7689 # First remove it from the list of overridden variables, so we can test 7690 # for unknown variables in the end. 7691 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7692 7693 # Check if the provided tool contains a complete path. 7694 tool_specified="$LN" 7695 tool_basename="${tool_specified##*/}" 7696 if test "x$tool_basename" = "x$tool_specified"; then 7697 # A command without a complete path is provided, search $PATH. 7698 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7699 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7700 # Extract the first word of "$tool_basename", so it can be a program name with args. 7701 set dummy $tool_basename; ac_word=$2 7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7703 $as_echo_n "checking for $ac_word... " >&6; } 7704 if ${ac_cv_path_LN+:} false; then : 7705 $as_echo_n "(cached) " >&6 7706 else 7707 case $LN in 7708 [\\/]* | ?:[\\/]*) 7709 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7710 ;; 7711 *) 7712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7713 for as_dir in $PATH 7714 do 7715 IFS=$as_save_IFS 7716 test -z "$as_dir" && as_dir=. 7717 for ac_exec_ext in '' $ac_executable_extensions; do 7718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7719 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7721 break 2 7722 fi 7723 done 7724 done 7725 IFS=$as_save_IFS 7726 7727 ;; 7728 esac 7729 fi 7730 LN=$ac_cv_path_LN 7731 if test -n "$LN"; then 7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7733 $as_echo "$LN" >&6; } 7734 else 7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7736 $as_echo "no" >&6; } 7737 fi 7738 7739 7740 if test "x$LN" = x; then 7741 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7742 fi 7743 else 7744 # Otherwise we believe it is a complete path. Use it as it is. 7745 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7746 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7748 $as_echo_n "checking for LN... " >&6; } 7749 if test ! -x "$tool_specified"; then 7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7751 $as_echo "not found" >&6; } 7752 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7753 fi 7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7755 $as_echo "$tool_specified" >&6; } 7756 fi 7757 fi 7758 fi 7759 7760 7761 7762 if test "x$LN" = x; then 7763 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7764 fi 7765 7766 7767 7768 7769 7770 # Publish this variable in the help. 7771 7772 7773 if test "x$LS" = x; then 7774 # The variable is not set by user, try to locate tool using the code snippet 7775 for ac_prog in ls 7776 do 7777 # Extract the first word of "$ac_prog", so it can be a program name with args. 7778 set dummy $ac_prog; ac_word=$2 7779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7780 $as_echo_n "checking for $ac_word... " >&6; } 7781 if ${ac_cv_path_LS+:} false; then : 7782 $as_echo_n "(cached) " >&6 7783 else 7784 case $LS in 7785 [\\/]* | ?:[\\/]*) 7786 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7787 ;; 7788 *) 7789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7790 for as_dir in $PATH 7791 do 7792 IFS=$as_save_IFS 7793 test -z "$as_dir" && as_dir=. 7794 for ac_exec_ext in '' $ac_executable_extensions; do 7795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7796 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7798 break 2 7799 fi 7800 done 7801 done 7802 IFS=$as_save_IFS 7803 7804 ;; 7805 esac 7806 fi 7807 LS=$ac_cv_path_LS 7808 if test -n "$LS"; then 7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7810 $as_echo "$LS" >&6; } 7811 else 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7813 $as_echo "no" >&6; } 7814 fi 7815 7816 7817 test -n "$LS" && break 7818 done 7819 7820 else 7821 # The variable is set, but is it from the command line or the environment? 7822 7823 # Try to remove the string !LS! from our list. 7824 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7825 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7826 # If it failed, the variable was not from the command line. Ignore it, 7827 # but warn the user (except for BASH, which is always set by the calling BASH). 7828 if test "xLS" != xBASH; then 7829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7830 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7831 fi 7832 # Try to locate tool using the code snippet 7833 for ac_prog in ls 7834 do 7835 # Extract the first word of "$ac_prog", so it can be a program name with args. 7836 set dummy $ac_prog; ac_word=$2 7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7838 $as_echo_n "checking for $ac_word... " >&6; } 7839 if ${ac_cv_path_LS+:} false; then : 7840 $as_echo_n "(cached) " >&6 7841 else 7842 case $LS in 7843 [\\/]* | ?:[\\/]*) 7844 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7845 ;; 7846 *) 7847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7848 for as_dir in $PATH 7849 do 7850 IFS=$as_save_IFS 7851 test -z "$as_dir" && as_dir=. 7852 for ac_exec_ext in '' $ac_executable_extensions; do 7853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7854 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7856 break 2 7857 fi 7858 done 7859 done 7860 IFS=$as_save_IFS 7861 7862 ;; 7863 esac 7864 fi 7865 LS=$ac_cv_path_LS 7866 if test -n "$LS"; then 7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7868 $as_echo "$LS" >&6; } 7869 else 7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7871 $as_echo "no" >&6; } 7872 fi 7873 7874 7875 test -n "$LS" && break 7876 done 7877 7878 else 7879 # If it succeeded, then it was overridden by the user. We will use it 7880 # for the tool. 7881 7882 # First remove it from the list of overridden variables, so we can test 7883 # for unknown variables in the end. 7884 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7885 7886 # Check if the provided tool contains a complete path. 7887 tool_specified="$LS" 7888 tool_basename="${tool_specified##*/}" 7889 if test "x$tool_basename" = "x$tool_specified"; then 7890 # A command without a complete path is provided, search $PATH. 7891 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7892 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7893 # Extract the first word of "$tool_basename", so it can be a program name with args. 7894 set dummy $tool_basename; ac_word=$2 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7896 $as_echo_n "checking for $ac_word... " >&6; } 7897 if ${ac_cv_path_LS+:} false; then : 7898 $as_echo_n "(cached) " >&6 7899 else 7900 case $LS in 7901 [\\/]* | ?:[\\/]*) 7902 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7903 ;; 7904 *) 7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7906 for as_dir in $PATH 7907 do 7908 IFS=$as_save_IFS 7909 test -z "$as_dir" && as_dir=. 7910 for ac_exec_ext in '' $ac_executable_extensions; do 7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7912 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7914 break 2 7915 fi 7916 done 7917 done 7918 IFS=$as_save_IFS 7919 7920 ;; 7921 esac 7922 fi 7923 LS=$ac_cv_path_LS 7924 if test -n "$LS"; then 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7926 $as_echo "$LS" >&6; } 7927 else 7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7929 $as_echo "no" >&6; } 7930 fi 7931 7932 7933 if test "x$LS" = x; then 7934 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7935 fi 7936 else 7937 # Otherwise we believe it is a complete path. Use it as it is. 7938 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7939 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7941 $as_echo_n "checking for LS... " >&6; } 7942 if test ! -x "$tool_specified"; then 7943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7944 $as_echo "not found" >&6; } 7945 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7946 fi 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7948 $as_echo "$tool_specified" >&6; } 7949 fi 7950 fi 7951 fi 7952 7953 7954 7955 if test "x$LS" = x; then 7956 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7957 fi 7958 7959 7960 7961 7962 7963 # Publish this variable in the help. 7964 7965 7966 if test "x$MKDIR" = x; then 7967 # The variable is not set by user, try to locate tool using the code snippet 7968 for ac_prog in mkdir 7969 do 7970 # Extract the first word of "$ac_prog", so it can be a program name with args. 7971 set dummy $ac_prog; ac_word=$2 7972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7973 $as_echo_n "checking for $ac_word... " >&6; } 7974 if ${ac_cv_path_MKDIR+:} false; then : 7975 $as_echo_n "(cached) " >&6 7976 else 7977 case $MKDIR in 7978 [\\/]* | ?:[\\/]*) 7979 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7980 ;; 7981 *) 7982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7983 for as_dir in $PATH 7984 do 7985 IFS=$as_save_IFS 7986 test -z "$as_dir" && as_dir=. 7987 for ac_exec_ext in '' $ac_executable_extensions; do 7988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7989 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7991 break 2 7992 fi 7993 done 7994 done 7995 IFS=$as_save_IFS 7996 7997 ;; 7998 esac 7999 fi 8000 MKDIR=$ac_cv_path_MKDIR 8001 if test -n "$MKDIR"; then 8002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8003 $as_echo "$MKDIR" >&6; } 8004 else 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8006 $as_echo "no" >&6; } 8007 fi 8008 8009 8010 test -n "$MKDIR" && break 8011 done 8012 8013 else 8014 # The variable is set, but is it from the command line or the environment? 8015 8016 # Try to remove the string !MKDIR! from our list. 8017 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8018 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8019 # If it failed, the variable was not from the command line. Ignore it, 8020 # but warn the user (except for BASH, which is always set by the calling BASH). 8021 if test "xMKDIR" != xBASH; then 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8023 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8024 fi 8025 # Try to locate tool using the code snippet 8026 for ac_prog in mkdir 8027 do 8028 # Extract the first word of "$ac_prog", so it can be a program name with args. 8029 set dummy $ac_prog; ac_word=$2 8030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8031 $as_echo_n "checking for $ac_word... " >&6; } 8032 if ${ac_cv_path_MKDIR+:} false; then : 8033 $as_echo_n "(cached) " >&6 8034 else 8035 case $MKDIR in 8036 [\\/]* | ?:[\\/]*) 8037 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8038 ;; 8039 *) 8040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8041 for as_dir in $PATH 8042 do 8043 IFS=$as_save_IFS 8044 test -z "$as_dir" && as_dir=. 8045 for ac_exec_ext in '' $ac_executable_extensions; do 8046 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8047 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8048 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8049 break 2 8050 fi 8051 done 8052 done 8053 IFS=$as_save_IFS 8054 8055 ;; 8056 esac 8057 fi 8058 MKDIR=$ac_cv_path_MKDIR 8059 if test -n "$MKDIR"; then 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8061 $as_echo "$MKDIR" >&6; } 8062 else 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8064 $as_echo "no" >&6; } 8065 fi 8066 8067 8068 test -n "$MKDIR" && break 8069 done 8070 8071 else 8072 # If it succeeded, then it was overridden by the user. We will use it 8073 # for the tool. 8074 8075 # First remove it from the list of overridden variables, so we can test 8076 # for unknown variables in the end. 8077 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8078 8079 # Check if the provided tool contains a complete path. 8080 tool_specified="$MKDIR" 8081 tool_basename="${tool_specified##*/}" 8082 if test "x$tool_basename" = "x$tool_specified"; then 8083 # A command without a complete path is provided, search $PATH. 8084 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8085 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8086 # Extract the first word of "$tool_basename", so it can be a program name with args. 8087 set dummy $tool_basename; ac_word=$2 8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8089 $as_echo_n "checking for $ac_word... " >&6; } 8090 if ${ac_cv_path_MKDIR+:} false; then : 8091 $as_echo_n "(cached) " >&6 8092 else 8093 case $MKDIR in 8094 [\\/]* | ?:[\\/]*) 8095 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8096 ;; 8097 *) 8098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8099 for as_dir in $PATH 8100 do 8101 IFS=$as_save_IFS 8102 test -z "$as_dir" && as_dir=. 8103 for ac_exec_ext in '' $ac_executable_extensions; do 8104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8105 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8107 break 2 8108 fi 8109 done 8110 done 8111 IFS=$as_save_IFS 8112 8113 ;; 8114 esac 8115 fi 8116 MKDIR=$ac_cv_path_MKDIR 8117 if test -n "$MKDIR"; then 8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8119 $as_echo "$MKDIR" >&6; } 8120 else 8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8122 $as_echo "no" >&6; } 8123 fi 8124 8125 8126 if test "x$MKDIR" = x; then 8127 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8128 fi 8129 else 8130 # Otherwise we believe it is a complete path. Use it as it is. 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8132 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8134 $as_echo_n "checking for MKDIR... " >&6; } 8135 if test ! -x "$tool_specified"; then 8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8137 $as_echo "not found" >&6; } 8138 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8139 fi 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8141 $as_echo "$tool_specified" >&6; } 8142 fi 8143 fi 8144 fi 8145 8146 8147 8148 if test "x$MKDIR" = x; then 8149 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8150 fi 8151 8152 8153 8154 8155 8156 # Publish this variable in the help. 8157 8158 8159 if test "x$MKTEMP" = x; then 8160 # The variable is not set by user, try to locate tool using the code snippet 8161 for ac_prog in mktemp 8162 do 8163 # Extract the first word of "$ac_prog", so it can be a program name with args. 8164 set dummy $ac_prog; ac_word=$2 8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8166 $as_echo_n "checking for $ac_word... " >&6; } 8167 if ${ac_cv_path_MKTEMP+:} false; then : 8168 $as_echo_n "(cached) " >&6 8169 else 8170 case $MKTEMP in 8171 [\\/]* | ?:[\\/]*) 8172 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8173 ;; 8174 *) 8175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8176 for as_dir in $PATH 8177 do 8178 IFS=$as_save_IFS 8179 test -z "$as_dir" && as_dir=. 8180 for ac_exec_ext in '' $ac_executable_extensions; do 8181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8182 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8183 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8184 break 2 8185 fi 8186 done 8187 done 8188 IFS=$as_save_IFS 8189 8190 ;; 8191 esac 8192 fi 8193 MKTEMP=$ac_cv_path_MKTEMP 8194 if test -n "$MKTEMP"; then 8195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8196 $as_echo "$MKTEMP" >&6; } 8197 else 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8199 $as_echo "no" >&6; } 8200 fi 8201 8202 8203 test -n "$MKTEMP" && break 8204 done 8205 8206 else 8207 # The variable is set, but is it from the command line or the environment? 8208 8209 # Try to remove the string !MKTEMP! from our list. 8210 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8211 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8212 # If it failed, the variable was not from the command line. Ignore it, 8213 # but warn the user (except for BASH, which is always set by the calling BASH). 8214 if test "xMKTEMP" != xBASH; then 8215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8216 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8217 fi 8218 # Try to locate tool using the code snippet 8219 for ac_prog in mktemp 8220 do 8221 # Extract the first word of "$ac_prog", so it can be a program name with args. 8222 set dummy $ac_prog; ac_word=$2 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8224 $as_echo_n "checking for $ac_word... " >&6; } 8225 if ${ac_cv_path_MKTEMP+:} false; then : 8226 $as_echo_n "(cached) " >&6 8227 else 8228 case $MKTEMP in 8229 [\\/]* | ?:[\\/]*) 8230 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8231 ;; 8232 *) 8233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234 for as_dir in $PATH 8235 do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8240 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244 done 8245 done 8246 IFS=$as_save_IFS 8247 8248 ;; 8249 esac 8250 fi 8251 MKTEMP=$ac_cv_path_MKTEMP 8252 if test -n "$MKTEMP"; then 8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8254 $as_echo "$MKTEMP" >&6; } 8255 else 8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8257 $as_echo "no" >&6; } 8258 fi 8259 8260 8261 test -n "$MKTEMP" && break 8262 done 8263 8264 else 8265 # If it succeeded, then it was overridden by the user. We will use it 8266 # for the tool. 8267 8268 # First remove it from the list of overridden variables, so we can test 8269 # for unknown variables in the end. 8270 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8271 8272 # Check if the provided tool contains a complete path. 8273 tool_specified="$MKTEMP" 8274 tool_basename="${tool_specified##*/}" 8275 if test "x$tool_basename" = "x$tool_specified"; then 8276 # A command without a complete path is provided, search $PATH. 8277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8278 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8279 # Extract the first word of "$tool_basename", so it can be a program name with args. 8280 set dummy $tool_basename; ac_word=$2 8281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8282 $as_echo_n "checking for $ac_word... " >&6; } 8283 if ${ac_cv_path_MKTEMP+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285 else 8286 case $MKTEMP in 8287 [\\/]* | ?:[\\/]*) 8288 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8289 ;; 8290 *) 8291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8292 for as_dir in $PATH 8293 do 8294 IFS=$as_save_IFS 8295 test -z "$as_dir" && as_dir=. 8296 for ac_exec_ext in '' $ac_executable_extensions; do 8297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8298 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8300 break 2 8301 fi 8302 done 8303 done 8304 IFS=$as_save_IFS 8305 8306 ;; 8307 esac 8308 fi 8309 MKTEMP=$ac_cv_path_MKTEMP 8310 if test -n "$MKTEMP"; then 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8312 $as_echo "$MKTEMP" >&6; } 8313 else 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8315 $as_echo "no" >&6; } 8316 fi 8317 8318 8319 if test "x$MKTEMP" = x; then 8320 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8321 fi 8322 else 8323 # Otherwise we believe it is a complete path. Use it as it is. 8324 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8325 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8327 $as_echo_n "checking for MKTEMP... " >&6; } 8328 if test ! -x "$tool_specified"; then 8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8330 $as_echo "not found" >&6; } 8331 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8332 fi 8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8334 $as_echo "$tool_specified" >&6; } 8335 fi 8336 fi 8337 fi 8338 8339 8340 8341 if test "x$MKTEMP" = x; then 8342 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8343 fi 8344 8345 8346 8347 8348 8349 # Publish this variable in the help. 8350 8351 8352 if test "x$MV" = x; then 8353 # The variable is not set by user, try to locate tool using the code snippet 8354 for ac_prog in mv 8355 do 8356 # Extract the first word of "$ac_prog", so it can be a program name with args. 8357 set dummy $ac_prog; ac_word=$2 8358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8359 $as_echo_n "checking for $ac_word... " >&6; } 8360 if ${ac_cv_path_MV+:} false; then : 8361 $as_echo_n "(cached) " >&6 8362 else 8363 case $MV in 8364 [\\/]* | ?:[\\/]*) 8365 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8366 ;; 8367 *) 8368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8369 for as_dir in $PATH 8370 do 8371 IFS=$as_save_IFS 8372 test -z "$as_dir" && as_dir=. 8373 for ac_exec_ext in '' $ac_executable_extensions; do 8374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8375 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8377 break 2 8378 fi 8379 done 8380 done 8381 IFS=$as_save_IFS 8382 8383 ;; 8384 esac 8385 fi 8386 MV=$ac_cv_path_MV 8387 if test -n "$MV"; then 8388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8389 $as_echo "$MV" >&6; } 8390 else 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8392 $as_echo "no" >&6; } 8393 fi 8394 8395 8396 test -n "$MV" && break 8397 done 8398 8399 else 8400 # The variable is set, but is it from the command line or the environment? 8401 8402 # Try to remove the string !MV! from our list. 8403 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8404 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8405 # If it failed, the variable was not from the command line. Ignore it, 8406 # but warn the user (except for BASH, which is always set by the calling BASH). 8407 if test "xMV" != xBASH; then 8408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8409 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8410 fi 8411 # Try to locate tool using the code snippet 8412 for ac_prog in mv 8413 do 8414 # Extract the first word of "$ac_prog", so it can be a program name with args. 8415 set dummy $ac_prog; ac_word=$2 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8417 $as_echo_n "checking for $ac_word... " >&6; } 8418 if ${ac_cv_path_MV+:} false; then : 8419 $as_echo_n "(cached) " >&6 8420 else 8421 case $MV in 8422 [\\/]* | ?:[\\/]*) 8423 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8424 ;; 8425 *) 8426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8427 for as_dir in $PATH 8428 do 8429 IFS=$as_save_IFS 8430 test -z "$as_dir" && as_dir=. 8431 for ac_exec_ext in '' $ac_executable_extensions; do 8432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8433 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8435 break 2 8436 fi 8437 done 8438 done 8439 IFS=$as_save_IFS 8440 8441 ;; 8442 esac 8443 fi 8444 MV=$ac_cv_path_MV 8445 if test -n "$MV"; then 8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8447 $as_echo "$MV" >&6; } 8448 else 8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8450 $as_echo "no" >&6; } 8451 fi 8452 8453 8454 test -n "$MV" && break 8455 done 8456 8457 else 8458 # If it succeeded, then it was overridden by the user. We will use it 8459 # for the tool. 8460 8461 # First remove it from the list of overridden variables, so we can test 8462 # for unknown variables in the end. 8463 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8464 8465 # Check if the provided tool contains a complete path. 8466 tool_specified="$MV" 8467 tool_basename="${tool_specified##*/}" 8468 if test "x$tool_basename" = "x$tool_specified"; then 8469 # A command without a complete path is provided, search $PATH. 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8471 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8472 # Extract the first word of "$tool_basename", so it can be a program name with args. 8473 set dummy $tool_basename; ac_word=$2 8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8475 $as_echo_n "checking for $ac_word... " >&6; } 8476 if ${ac_cv_path_MV+:} false; then : 8477 $as_echo_n "(cached) " >&6 8478 else 8479 case $MV in 8480 [\\/]* | ?:[\\/]*) 8481 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8482 ;; 8483 *) 8484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8485 for as_dir in $PATH 8486 do 8487 IFS=$as_save_IFS 8488 test -z "$as_dir" && as_dir=. 8489 for ac_exec_ext in '' $ac_executable_extensions; do 8490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8491 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8493 break 2 8494 fi 8495 done 8496 done 8497 IFS=$as_save_IFS 8498 8499 ;; 8500 esac 8501 fi 8502 MV=$ac_cv_path_MV 8503 if test -n "$MV"; then 8504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8505 $as_echo "$MV" >&6; } 8506 else 8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8508 $as_echo "no" >&6; } 8509 fi 8510 8511 8512 if test "x$MV" = x; then 8513 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8514 fi 8515 else 8516 # Otherwise we believe it is a complete path. Use it as it is. 8517 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8518 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8520 $as_echo_n "checking for MV... " >&6; } 8521 if test ! -x "$tool_specified"; then 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8523 $as_echo "not found" >&6; } 8524 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8525 fi 8526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8527 $as_echo "$tool_specified" >&6; } 8528 fi 8529 fi 8530 fi 8531 8532 8533 8534 if test "x$MV" = x; then 8535 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8536 fi 8537 8538 8539 8540 8541 8542 # Publish this variable in the help. 8543 8544 8545 if test "x$NAWK" = x; then 8546 # The variable is not set by user, try to locate tool using the code snippet 8547 for ac_prog in nawk gawk awk 8548 do 8549 # Extract the first word of "$ac_prog", so it can be a program name with args. 8550 set dummy $ac_prog; ac_word=$2 8551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8552 $as_echo_n "checking for $ac_word... " >&6; } 8553 if ${ac_cv_path_NAWK+:} false; then : 8554 $as_echo_n "(cached) " >&6 8555 else 8556 case $NAWK in 8557 [\\/]* | ?:[\\/]*) 8558 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8559 ;; 8560 *) 8561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8562 for as_dir in $PATH 8563 do 8564 IFS=$as_save_IFS 8565 test -z "$as_dir" && as_dir=. 8566 for ac_exec_ext in '' $ac_executable_extensions; do 8567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8568 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8570 break 2 8571 fi 8572 done 8573 done 8574 IFS=$as_save_IFS 8575 8576 ;; 8577 esac 8578 fi 8579 NAWK=$ac_cv_path_NAWK 8580 if test -n "$NAWK"; then 8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8582 $as_echo "$NAWK" >&6; } 8583 else 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8585 $as_echo "no" >&6; } 8586 fi 8587 8588 8589 test -n "$NAWK" && break 8590 done 8591 8592 else 8593 # The variable is set, but is it from the command line or the environment? 8594 8595 # Try to remove the string !NAWK! from our list. 8596 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8597 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8598 # If it failed, the variable was not from the command line. Ignore it, 8599 # but warn the user (except for BASH, which is always set by the calling BASH). 8600 if test "xNAWK" != xBASH; then 8601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8602 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8603 fi 8604 # Try to locate tool using the code snippet 8605 for ac_prog in nawk gawk awk 8606 do 8607 # Extract the first word of "$ac_prog", so it can be a program name with args. 8608 set dummy $ac_prog; ac_word=$2 8609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8610 $as_echo_n "checking for $ac_word... " >&6; } 8611 if ${ac_cv_path_NAWK+:} false; then : 8612 $as_echo_n "(cached) " >&6 8613 else 8614 case $NAWK in 8615 [\\/]* | ?:[\\/]*) 8616 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8617 ;; 8618 *) 8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8620 for as_dir in $PATH 8621 do 8622 IFS=$as_save_IFS 8623 test -z "$as_dir" && as_dir=. 8624 for ac_exec_ext in '' $ac_executable_extensions; do 8625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8626 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8628 break 2 8629 fi 8630 done 8631 done 8632 IFS=$as_save_IFS 8633 8634 ;; 8635 esac 8636 fi 8637 NAWK=$ac_cv_path_NAWK 8638 if test -n "$NAWK"; then 8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8640 $as_echo "$NAWK" >&6; } 8641 else 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8643 $as_echo "no" >&6; } 8644 fi 8645 8646 8647 test -n "$NAWK" && break 8648 done 8649 8650 else 8651 # If it succeeded, then it was overridden by the user. We will use it 8652 # for the tool. 8653 8654 # First remove it from the list of overridden variables, so we can test 8655 # for unknown variables in the end. 8656 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8657 8658 # Check if the provided tool contains a complete path. 8659 tool_specified="$NAWK" 8660 tool_basename="${tool_specified##*/}" 8661 if test "x$tool_basename" = "x$tool_specified"; then 8662 # A command without a complete path is provided, search $PATH. 8663 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8664 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8665 # Extract the first word of "$tool_basename", so it can be a program name with args. 8666 set dummy $tool_basename; ac_word=$2 8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8668 $as_echo_n "checking for $ac_word... " >&6; } 8669 if ${ac_cv_path_NAWK+:} false; then : 8670 $as_echo_n "(cached) " >&6 8671 else 8672 case $NAWK in 8673 [\\/]* | ?:[\\/]*) 8674 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8675 ;; 8676 *) 8677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8678 for as_dir in $PATH 8679 do 8680 IFS=$as_save_IFS 8681 test -z "$as_dir" && as_dir=. 8682 for ac_exec_ext in '' $ac_executable_extensions; do 8683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8684 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8686 break 2 8687 fi 8688 done 8689 done 8690 IFS=$as_save_IFS 8691 8692 ;; 8693 esac 8694 fi 8695 NAWK=$ac_cv_path_NAWK 8696 if test -n "$NAWK"; then 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8698 $as_echo "$NAWK" >&6; } 8699 else 8700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8701 $as_echo "no" >&6; } 8702 fi 8703 8704 8705 if test "x$NAWK" = x; then 8706 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8707 fi 8708 else 8709 # Otherwise we believe it is a complete path. Use it as it is. 8710 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8711 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8713 $as_echo_n "checking for NAWK... " >&6; } 8714 if test ! -x "$tool_specified"; then 8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8716 $as_echo "not found" >&6; } 8717 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8718 fi 8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8720 $as_echo "$tool_specified" >&6; } 8721 fi 8722 fi 8723 fi 8724 8725 8726 8727 if test "x$NAWK" = x; then 8728 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8729 fi 8730 8731 8732 8733 8734 8735 # Publish this variable in the help. 8736 8737 8738 if test "x$PRINTF" = x; then 8739 # The variable is not set by user, try to locate tool using the code snippet 8740 for ac_prog in printf 8741 do 8742 # Extract the first word of "$ac_prog", so it can be a program name with args. 8743 set dummy $ac_prog; ac_word=$2 8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8745 $as_echo_n "checking for $ac_word... " >&6; } 8746 if ${ac_cv_path_PRINTF+:} false; then : 8747 $as_echo_n "(cached) " >&6 8748 else 8749 case $PRINTF in 8750 [\\/]* | ?:[\\/]*) 8751 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8752 ;; 8753 *) 8754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8755 for as_dir in $PATH 8756 do 8757 IFS=$as_save_IFS 8758 test -z "$as_dir" && as_dir=. 8759 for ac_exec_ext in '' $ac_executable_extensions; do 8760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8761 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8763 break 2 8764 fi 8765 done 8766 done 8767 IFS=$as_save_IFS 8768 8769 ;; 8770 esac 8771 fi 8772 PRINTF=$ac_cv_path_PRINTF 8773 if test -n "$PRINTF"; then 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8775 $as_echo "$PRINTF" >&6; } 8776 else 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8778 $as_echo "no" >&6; } 8779 fi 8780 8781 8782 test -n "$PRINTF" && break 8783 done 8784 8785 else 8786 # The variable is set, but is it from the command line or the environment? 8787 8788 # Try to remove the string !PRINTF! from our list. 8789 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8790 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8791 # If it failed, the variable was not from the command line. Ignore it, 8792 # but warn the user (except for BASH, which is always set by the calling BASH). 8793 if test "xPRINTF" != xBASH; then 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8795 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8796 fi 8797 # Try to locate tool using the code snippet 8798 for ac_prog in printf 8799 do 8800 # Extract the first word of "$ac_prog", so it can be a program name with args. 8801 set dummy $ac_prog; ac_word=$2 8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8803 $as_echo_n "checking for $ac_word... " >&6; } 8804 if ${ac_cv_path_PRINTF+:} false; then : 8805 $as_echo_n "(cached) " >&6 8806 else 8807 case $PRINTF in 8808 [\\/]* | ?:[\\/]*) 8809 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8810 ;; 8811 *) 8812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8813 for as_dir in $PATH 8814 do 8815 IFS=$as_save_IFS 8816 test -z "$as_dir" && as_dir=. 8817 for ac_exec_ext in '' $ac_executable_extensions; do 8818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8819 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8821 break 2 8822 fi 8823 done 8824 done 8825 IFS=$as_save_IFS 8826 8827 ;; 8828 esac 8829 fi 8830 PRINTF=$ac_cv_path_PRINTF 8831 if test -n "$PRINTF"; then 8832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8833 $as_echo "$PRINTF" >&6; } 8834 else 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8836 $as_echo "no" >&6; } 8837 fi 8838 8839 8840 test -n "$PRINTF" && break 8841 done 8842 8843 else 8844 # If it succeeded, then it was overridden by the user. We will use it 8845 # for the tool. 8846 8847 # First remove it from the list of overridden variables, so we can test 8848 # for unknown variables in the end. 8849 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8850 8851 # Check if the provided tool contains a complete path. 8852 tool_specified="$PRINTF" 8853 tool_basename="${tool_specified##*/}" 8854 if test "x$tool_basename" = "x$tool_specified"; then 8855 # A command without a complete path is provided, search $PATH. 8856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8857 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8858 # Extract the first word of "$tool_basename", so it can be a program name with args. 8859 set dummy $tool_basename; ac_word=$2 8860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8861 $as_echo_n "checking for $ac_word... " >&6; } 8862 if ${ac_cv_path_PRINTF+:} false; then : 8863 $as_echo_n "(cached) " >&6 8864 else 8865 case $PRINTF in 8866 [\\/]* | ?:[\\/]*) 8867 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8868 ;; 8869 *) 8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8871 for as_dir in $PATH 8872 do 8873 IFS=$as_save_IFS 8874 test -z "$as_dir" && as_dir=. 8875 for ac_exec_ext in '' $ac_executable_extensions; do 8876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8877 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8879 break 2 8880 fi 8881 done 8882 done 8883 IFS=$as_save_IFS 8884 8885 ;; 8886 esac 8887 fi 8888 PRINTF=$ac_cv_path_PRINTF 8889 if test -n "$PRINTF"; then 8890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8891 $as_echo "$PRINTF" >&6; } 8892 else 8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8894 $as_echo "no" >&6; } 8895 fi 8896 8897 8898 if test "x$PRINTF" = x; then 8899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8900 fi 8901 else 8902 # Otherwise we believe it is a complete path. Use it as it is. 8903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8904 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8906 $as_echo_n "checking for PRINTF... " >&6; } 8907 if test ! -x "$tool_specified"; then 8908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8909 $as_echo "not found" >&6; } 8910 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8911 fi 8912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8913 $as_echo "$tool_specified" >&6; } 8914 fi 8915 fi 8916 fi 8917 8918 8919 8920 if test "x$PRINTF" = x; then 8921 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8922 fi 8923 8924 8925 8926 8927 8928 # Publish this variable in the help. 8929 8930 8931 if test "x$RM" = x; then 8932 # The variable is not set by user, try to locate tool using the code snippet 8933 for ac_prog in rm 8934 do 8935 # Extract the first word of "$ac_prog", so it can be a program name with args. 8936 set dummy $ac_prog; ac_word=$2 8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8938 $as_echo_n "checking for $ac_word... " >&6; } 8939 if ${ac_cv_path_RM+:} false; then : 8940 $as_echo_n "(cached) " >&6 8941 else 8942 case $RM in 8943 [\\/]* | ?:[\\/]*) 8944 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8945 ;; 8946 *) 8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8948 for as_dir in $PATH 8949 do 8950 IFS=$as_save_IFS 8951 test -z "$as_dir" && as_dir=. 8952 for ac_exec_ext in '' $ac_executable_extensions; do 8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8954 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8956 break 2 8957 fi 8958 done 8959 done 8960 IFS=$as_save_IFS 8961 8962 ;; 8963 esac 8964 fi 8965 RM=$ac_cv_path_RM 8966 if test -n "$RM"; then 8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8968 $as_echo "$RM" >&6; } 8969 else 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8971 $as_echo "no" >&6; } 8972 fi 8973 8974 8975 test -n "$RM" && break 8976 done 8977 8978 else 8979 # The variable is set, but is it from the command line or the environment? 8980 8981 # Try to remove the string !RM! from our list. 8982 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8983 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8984 # If it failed, the variable was not from the command line. Ignore it, 8985 # but warn the user (except for BASH, which is always set by the calling BASH). 8986 if test "xRM" != xBASH; then 8987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8988 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8989 fi 8990 # Try to locate tool using the code snippet 8991 for ac_prog in rm 8992 do 8993 # Extract the first word of "$ac_prog", so it can be a program name with args. 8994 set dummy $ac_prog; ac_word=$2 8995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8996 $as_echo_n "checking for $ac_word... " >&6; } 8997 if ${ac_cv_path_RM+:} false; then : 8998 $as_echo_n "(cached) " >&6 8999 else 9000 case $RM in 9001 [\\/]* | ?:[\\/]*) 9002 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9003 ;; 9004 *) 9005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9006 for as_dir in $PATH 9007 do 9008 IFS=$as_save_IFS 9009 test -z "$as_dir" && as_dir=. 9010 for ac_exec_ext in '' $ac_executable_extensions; do 9011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9012 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9014 break 2 9015 fi 9016 done 9017 done 9018 IFS=$as_save_IFS 9019 9020 ;; 9021 esac 9022 fi 9023 RM=$ac_cv_path_RM 9024 if test -n "$RM"; then 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9026 $as_echo "$RM" >&6; } 9027 else 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9029 $as_echo "no" >&6; } 9030 fi 9031 9032 9033 test -n "$RM" && break 9034 done 9035 9036 else 9037 # If it succeeded, then it was overridden by the user. We will use it 9038 # for the tool. 9039 9040 # First remove it from the list of overridden variables, so we can test 9041 # for unknown variables in the end. 9042 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9043 9044 # Check if the provided tool contains a complete path. 9045 tool_specified="$RM" 9046 tool_basename="${tool_specified##*/}" 9047 if test "x$tool_basename" = "x$tool_specified"; then 9048 # A command without a complete path is provided, search $PATH. 9049 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9050 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9051 # Extract the first word of "$tool_basename", so it can be a program name with args. 9052 set dummy $tool_basename; ac_word=$2 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9054 $as_echo_n "checking for $ac_word... " >&6; } 9055 if ${ac_cv_path_RM+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057 else 9058 case $RM in 9059 [\\/]* | ?:[\\/]*) 9060 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9061 ;; 9062 *) 9063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9064 for as_dir in $PATH 9065 do 9066 IFS=$as_save_IFS 9067 test -z "$as_dir" && as_dir=. 9068 for ac_exec_ext in '' $ac_executable_extensions; do 9069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9070 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9072 break 2 9073 fi 9074 done 9075 done 9076 IFS=$as_save_IFS 9077 9078 ;; 9079 esac 9080 fi 9081 RM=$ac_cv_path_RM 9082 if test -n "$RM"; then 9083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9084 $as_echo "$RM" >&6; } 9085 else 9086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9087 $as_echo "no" >&6; } 9088 fi 9089 9090 9091 if test "x$RM" = x; then 9092 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9093 fi 9094 else 9095 # Otherwise we believe it is a complete path. Use it as it is. 9096 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9097 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9099 $as_echo_n "checking for RM... " >&6; } 9100 if test ! -x "$tool_specified"; then 9101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9102 $as_echo "not found" >&6; } 9103 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9104 fi 9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9106 $as_echo "$tool_specified" >&6; } 9107 fi 9108 fi 9109 fi 9110 9111 9112 9113 if test "x$RM" = x; then 9114 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9115 fi 9116 9117 9118 9119 9120 9121 # Publish this variable in the help. 9122 9123 9124 if test "x$SH" = x; then 9125 # The variable is not set by user, try to locate tool using the code snippet 9126 for ac_prog in sh 9127 do 9128 # Extract the first word of "$ac_prog", so it can be a program name with args. 9129 set dummy $ac_prog; ac_word=$2 9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9131 $as_echo_n "checking for $ac_word... " >&6; } 9132 if ${ac_cv_path_SH+:} false; then : 9133 $as_echo_n "(cached) " >&6 9134 else 9135 case $SH in 9136 [\\/]* | ?:[\\/]*) 9137 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9138 ;; 9139 *) 9140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9141 for as_dir in $PATH 9142 do 9143 IFS=$as_save_IFS 9144 test -z "$as_dir" && as_dir=. 9145 for ac_exec_ext in '' $ac_executable_extensions; do 9146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9147 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9149 break 2 9150 fi 9151 done 9152 done 9153 IFS=$as_save_IFS 9154 9155 ;; 9156 esac 9157 fi 9158 SH=$ac_cv_path_SH 9159 if test -n "$SH"; then 9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9161 $as_echo "$SH" >&6; } 9162 else 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9164 $as_echo "no" >&6; } 9165 fi 9166 9167 9168 test -n "$SH" && break 9169 done 9170 9171 else 9172 # The variable is set, but is it from the command line or the environment? 9173 9174 # Try to remove the string !SH! from our list. 9175 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9176 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9177 # If it failed, the variable was not from the command line. Ignore it, 9178 # but warn the user (except for BASH, which is always set by the calling BASH). 9179 if test "xSH" != xBASH; then 9180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9181 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9182 fi 9183 # Try to locate tool using the code snippet 9184 for ac_prog in sh 9185 do 9186 # Extract the first word of "$ac_prog", so it can be a program name with args. 9187 set dummy $ac_prog; ac_word=$2 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9189 $as_echo_n "checking for $ac_word... " >&6; } 9190 if ${ac_cv_path_SH+:} false; then : 9191 $as_echo_n "(cached) " >&6 9192 else 9193 case $SH in 9194 [\\/]* | ?:[\\/]*) 9195 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9196 ;; 9197 *) 9198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9199 for as_dir in $PATH 9200 do 9201 IFS=$as_save_IFS 9202 test -z "$as_dir" && as_dir=. 9203 for ac_exec_ext in '' $ac_executable_extensions; do 9204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9205 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9207 break 2 9208 fi 9209 done 9210 done 9211 IFS=$as_save_IFS 9212 9213 ;; 9214 esac 9215 fi 9216 SH=$ac_cv_path_SH 9217 if test -n "$SH"; then 9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9219 $as_echo "$SH" >&6; } 9220 else 9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9222 $as_echo "no" >&6; } 9223 fi 9224 9225 9226 test -n "$SH" && break 9227 done 9228 9229 else 9230 # If it succeeded, then it was overridden by the user. We will use it 9231 # for the tool. 9232 9233 # First remove it from the list of overridden variables, so we can test 9234 # for unknown variables in the end. 9235 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9236 9237 # Check if the provided tool contains a complete path. 9238 tool_specified="$SH" 9239 tool_basename="${tool_specified##*/}" 9240 if test "x$tool_basename" = "x$tool_specified"; then 9241 # A command without a complete path is provided, search $PATH. 9242 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9243 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9244 # Extract the first word of "$tool_basename", so it can be a program name with args. 9245 set dummy $tool_basename; ac_word=$2 9246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9247 $as_echo_n "checking for $ac_word... " >&6; } 9248 if ${ac_cv_path_SH+:} false; then : 9249 $as_echo_n "(cached) " >&6 9250 else 9251 case $SH in 9252 [\\/]* | ?:[\\/]*) 9253 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9254 ;; 9255 *) 9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9257 for as_dir in $PATH 9258 do 9259 IFS=$as_save_IFS 9260 test -z "$as_dir" && as_dir=. 9261 for ac_exec_ext in '' $ac_executable_extensions; do 9262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9263 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9265 break 2 9266 fi 9267 done 9268 done 9269 IFS=$as_save_IFS 9270 9271 ;; 9272 esac 9273 fi 9274 SH=$ac_cv_path_SH 9275 if test -n "$SH"; then 9276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9277 $as_echo "$SH" >&6; } 9278 else 9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9280 $as_echo "no" >&6; } 9281 fi 9282 9283 9284 if test "x$SH" = x; then 9285 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9286 fi 9287 else 9288 # Otherwise we believe it is a complete path. Use it as it is. 9289 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9290 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9292 $as_echo_n "checking for SH... " >&6; } 9293 if test ! -x "$tool_specified"; then 9294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9295 $as_echo "not found" >&6; } 9296 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9297 fi 9298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9299 $as_echo "$tool_specified" >&6; } 9300 fi 9301 fi 9302 fi 9303 9304 9305 9306 if test "x$SH" = x; then 9307 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9308 fi 9309 9310 9311 9312 9313 9314 # Publish this variable in the help. 9315 9316 9317 if test "x$SORT" = x; then 9318 # The variable is not set by user, try to locate tool using the code snippet 9319 for ac_prog in sort 9320 do 9321 # Extract the first word of "$ac_prog", so it can be a program name with args. 9322 set dummy $ac_prog; ac_word=$2 9323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9324 $as_echo_n "checking for $ac_word... " >&6; } 9325 if ${ac_cv_path_SORT+:} false; then : 9326 $as_echo_n "(cached) " >&6 9327 else 9328 case $SORT in 9329 [\\/]* | ?:[\\/]*) 9330 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9331 ;; 9332 *) 9333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9334 for as_dir in $PATH 9335 do 9336 IFS=$as_save_IFS 9337 test -z "$as_dir" && as_dir=. 9338 for ac_exec_ext in '' $ac_executable_extensions; do 9339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9340 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9342 break 2 9343 fi 9344 done 9345 done 9346 IFS=$as_save_IFS 9347 9348 ;; 9349 esac 9350 fi 9351 SORT=$ac_cv_path_SORT 9352 if test -n "$SORT"; then 9353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9354 $as_echo "$SORT" >&6; } 9355 else 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9357 $as_echo "no" >&6; } 9358 fi 9359 9360 9361 test -n "$SORT" && break 9362 done 9363 9364 else 9365 # The variable is set, but is it from the command line or the environment? 9366 9367 # Try to remove the string !SORT! from our list. 9368 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9369 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9370 # If it failed, the variable was not from the command line. Ignore it, 9371 # but warn the user (except for BASH, which is always set by the calling BASH). 9372 if test "xSORT" != xBASH; then 9373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9374 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9375 fi 9376 # Try to locate tool using the code snippet 9377 for ac_prog in sort 9378 do 9379 # Extract the first word of "$ac_prog", so it can be a program name with args. 9380 set dummy $ac_prog; ac_word=$2 9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9382 $as_echo_n "checking for $ac_word... " >&6; } 9383 if ${ac_cv_path_SORT+:} false; then : 9384 $as_echo_n "(cached) " >&6 9385 else 9386 case $SORT in 9387 [\\/]* | ?:[\\/]*) 9388 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9389 ;; 9390 *) 9391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9392 for as_dir in $PATH 9393 do 9394 IFS=$as_save_IFS 9395 test -z "$as_dir" && as_dir=. 9396 for ac_exec_ext in '' $ac_executable_extensions; do 9397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9398 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9400 break 2 9401 fi 9402 done 9403 done 9404 IFS=$as_save_IFS 9405 9406 ;; 9407 esac 9408 fi 9409 SORT=$ac_cv_path_SORT 9410 if test -n "$SORT"; then 9411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9412 $as_echo "$SORT" >&6; } 9413 else 9414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9415 $as_echo "no" >&6; } 9416 fi 9417 9418 9419 test -n "$SORT" && break 9420 done 9421 9422 else 9423 # If it succeeded, then it was overridden by the user. We will use it 9424 # for the tool. 9425 9426 # First remove it from the list of overridden variables, so we can test 9427 # for unknown variables in the end. 9428 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9429 9430 # Check if the provided tool contains a complete path. 9431 tool_specified="$SORT" 9432 tool_basename="${tool_specified##*/}" 9433 if test "x$tool_basename" = "x$tool_specified"; then 9434 # A command without a complete path is provided, search $PATH. 9435 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9436 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9437 # Extract the first word of "$tool_basename", so it can be a program name with args. 9438 set dummy $tool_basename; ac_word=$2 9439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9440 $as_echo_n "checking for $ac_word... " >&6; } 9441 if ${ac_cv_path_SORT+:} false; then : 9442 $as_echo_n "(cached) " >&6 9443 else 9444 case $SORT in 9445 [\\/]* | ?:[\\/]*) 9446 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9447 ;; 9448 *) 9449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9450 for as_dir in $PATH 9451 do 9452 IFS=$as_save_IFS 9453 test -z "$as_dir" && as_dir=. 9454 for ac_exec_ext in '' $ac_executable_extensions; do 9455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9456 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9458 break 2 9459 fi 9460 done 9461 done 9462 IFS=$as_save_IFS 9463 9464 ;; 9465 esac 9466 fi 9467 SORT=$ac_cv_path_SORT 9468 if test -n "$SORT"; then 9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9470 $as_echo "$SORT" >&6; } 9471 else 9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9473 $as_echo "no" >&6; } 9474 fi 9475 9476 9477 if test "x$SORT" = x; then 9478 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9479 fi 9480 else 9481 # Otherwise we believe it is a complete path. Use it as it is. 9482 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9483 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9485 $as_echo_n "checking for SORT... " >&6; } 9486 if test ! -x "$tool_specified"; then 9487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9488 $as_echo "not found" >&6; } 9489 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9490 fi 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9492 $as_echo "$tool_specified" >&6; } 9493 fi 9494 fi 9495 fi 9496 9497 9498 9499 if test "x$SORT" = x; then 9500 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9501 fi 9502 9503 9504 9505 9506 9507 # Publish this variable in the help. 9508 9509 9510 if test "x$TAIL" = x; then 9511 # The variable is not set by user, try to locate tool using the code snippet 9512 for ac_prog in tail 9513 do 9514 # Extract the first word of "$ac_prog", so it can be a program name with args. 9515 set dummy $ac_prog; ac_word=$2 9516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9517 $as_echo_n "checking for $ac_word... " >&6; } 9518 if ${ac_cv_path_TAIL+:} false; then : 9519 $as_echo_n "(cached) " >&6 9520 else 9521 case $TAIL in 9522 [\\/]* | ?:[\\/]*) 9523 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9524 ;; 9525 *) 9526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9527 for as_dir in $PATH 9528 do 9529 IFS=$as_save_IFS 9530 test -z "$as_dir" && as_dir=. 9531 for ac_exec_ext in '' $ac_executable_extensions; do 9532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9533 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9535 break 2 9536 fi 9537 done 9538 done 9539 IFS=$as_save_IFS 9540 9541 ;; 9542 esac 9543 fi 9544 TAIL=$ac_cv_path_TAIL 9545 if test -n "$TAIL"; then 9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9547 $as_echo "$TAIL" >&6; } 9548 else 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9550 $as_echo "no" >&6; } 9551 fi 9552 9553 9554 test -n "$TAIL" && break 9555 done 9556 9557 else 9558 # The variable is set, but is it from the command line or the environment? 9559 9560 # Try to remove the string !TAIL! from our list. 9561 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9562 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9563 # If it failed, the variable was not from the command line. Ignore it, 9564 # but warn the user (except for BASH, which is always set by the calling BASH). 9565 if test "xTAIL" != xBASH; then 9566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9567 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9568 fi 9569 # Try to locate tool using the code snippet 9570 for ac_prog in tail 9571 do 9572 # Extract the first word of "$ac_prog", so it can be a program name with args. 9573 set dummy $ac_prog; ac_word=$2 9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9575 $as_echo_n "checking for $ac_word... " >&6; } 9576 if ${ac_cv_path_TAIL+:} false; then : 9577 $as_echo_n "(cached) " >&6 9578 else 9579 case $TAIL in 9580 [\\/]* | ?:[\\/]*) 9581 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9582 ;; 9583 *) 9584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9585 for as_dir in $PATH 9586 do 9587 IFS=$as_save_IFS 9588 test -z "$as_dir" && as_dir=. 9589 for ac_exec_ext in '' $ac_executable_extensions; do 9590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9591 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9593 break 2 9594 fi 9595 done 9596 done 9597 IFS=$as_save_IFS 9598 9599 ;; 9600 esac 9601 fi 9602 TAIL=$ac_cv_path_TAIL 9603 if test -n "$TAIL"; then 9604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9605 $as_echo "$TAIL" >&6; } 9606 else 9607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9608 $as_echo "no" >&6; } 9609 fi 9610 9611 9612 test -n "$TAIL" && break 9613 done 9614 9615 else 9616 # If it succeeded, then it was overridden by the user. We will use it 9617 # for the tool. 9618 9619 # First remove it from the list of overridden variables, so we can test 9620 # for unknown variables in the end. 9621 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9622 9623 # Check if the provided tool contains a complete path. 9624 tool_specified="$TAIL" 9625 tool_basename="${tool_specified##*/}" 9626 if test "x$tool_basename" = "x$tool_specified"; then 9627 # A command without a complete path is provided, search $PATH. 9628 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9629 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9630 # Extract the first word of "$tool_basename", so it can be a program name with args. 9631 set dummy $tool_basename; ac_word=$2 9632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9633 $as_echo_n "checking for $ac_word... " >&6; } 9634 if ${ac_cv_path_TAIL+:} false; then : 9635 $as_echo_n "(cached) " >&6 9636 else 9637 case $TAIL in 9638 [\\/]* | ?:[\\/]*) 9639 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9640 ;; 9641 *) 9642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9643 for as_dir in $PATH 9644 do 9645 IFS=$as_save_IFS 9646 test -z "$as_dir" && as_dir=. 9647 for ac_exec_ext in '' $ac_executable_extensions; do 9648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9649 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9651 break 2 9652 fi 9653 done 9654 done 9655 IFS=$as_save_IFS 9656 9657 ;; 9658 esac 9659 fi 9660 TAIL=$ac_cv_path_TAIL 9661 if test -n "$TAIL"; then 9662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9663 $as_echo "$TAIL" >&6; } 9664 else 9665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9666 $as_echo "no" >&6; } 9667 fi 9668 9669 9670 if test "x$TAIL" = x; then 9671 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9672 fi 9673 else 9674 # Otherwise we believe it is a complete path. Use it as it is. 9675 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9676 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9678 $as_echo_n "checking for TAIL... " >&6; } 9679 if test ! -x "$tool_specified"; then 9680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9681 $as_echo "not found" >&6; } 9682 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9683 fi 9684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9685 $as_echo "$tool_specified" >&6; } 9686 fi 9687 fi 9688 fi 9689 9690 9691 9692 if test "x$TAIL" = x; then 9693 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9694 fi 9695 9696 9697 9698 9699 9700 # Publish this variable in the help. 9701 9702 9703 if test "x$TAR" = x; then 9704 # The variable is not set by user, try to locate tool using the code snippet 9705 for ac_prog in tar 9706 do 9707 # Extract the first word of "$ac_prog", so it can be a program name with args. 9708 set dummy $ac_prog; ac_word=$2 9709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9710 $as_echo_n "checking for $ac_word... " >&6; } 9711 if ${ac_cv_path_TAR+:} false; then : 9712 $as_echo_n "(cached) " >&6 9713 else 9714 case $TAR in 9715 [\\/]* | ?:[\\/]*) 9716 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9717 ;; 9718 *) 9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9720 for as_dir in $PATH 9721 do 9722 IFS=$as_save_IFS 9723 test -z "$as_dir" && as_dir=. 9724 for ac_exec_ext in '' $ac_executable_extensions; do 9725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9726 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9728 break 2 9729 fi 9730 done 9731 done 9732 IFS=$as_save_IFS 9733 9734 ;; 9735 esac 9736 fi 9737 TAR=$ac_cv_path_TAR 9738 if test -n "$TAR"; then 9739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9740 $as_echo "$TAR" >&6; } 9741 else 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9743 $as_echo "no" >&6; } 9744 fi 9745 9746 9747 test -n "$TAR" && break 9748 done 9749 9750 else 9751 # The variable is set, but is it from the command line or the environment? 9752 9753 # Try to remove the string !TAR! from our list. 9754 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9755 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9756 # If it failed, the variable was not from the command line. Ignore it, 9757 # but warn the user (except for BASH, which is always set by the calling BASH). 9758 if test "xTAR" != xBASH; then 9759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9760 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9761 fi 9762 # Try to locate tool using the code snippet 9763 for ac_prog in tar 9764 do 9765 # Extract the first word of "$ac_prog", so it can be a program name with args. 9766 set dummy $ac_prog; ac_word=$2 9767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9768 $as_echo_n "checking for $ac_word... " >&6; } 9769 if ${ac_cv_path_TAR+:} false; then : 9770 $as_echo_n "(cached) " >&6 9771 else 9772 case $TAR in 9773 [\\/]* | ?:[\\/]*) 9774 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9775 ;; 9776 *) 9777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9778 for as_dir in $PATH 9779 do 9780 IFS=$as_save_IFS 9781 test -z "$as_dir" && as_dir=. 9782 for ac_exec_ext in '' $ac_executable_extensions; do 9783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9784 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9786 break 2 9787 fi 9788 done 9789 done 9790 IFS=$as_save_IFS 9791 9792 ;; 9793 esac 9794 fi 9795 TAR=$ac_cv_path_TAR 9796 if test -n "$TAR"; then 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9798 $as_echo "$TAR" >&6; } 9799 else 9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9801 $as_echo "no" >&6; } 9802 fi 9803 9804 9805 test -n "$TAR" && break 9806 done 9807 9808 else 9809 # If it succeeded, then it was overridden by the user. We will use it 9810 # for the tool. 9811 9812 # First remove it from the list of overridden variables, so we can test 9813 # for unknown variables in the end. 9814 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9815 9816 # Check if the provided tool contains a complete path. 9817 tool_specified="$TAR" 9818 tool_basename="${tool_specified##*/}" 9819 if test "x$tool_basename" = "x$tool_specified"; then 9820 # A command without a complete path is provided, search $PATH. 9821 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9822 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9823 # Extract the first word of "$tool_basename", so it can be a program name with args. 9824 set dummy $tool_basename; ac_word=$2 9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9826 $as_echo_n "checking for $ac_word... " >&6; } 9827 if ${ac_cv_path_TAR+:} false; then : 9828 $as_echo_n "(cached) " >&6 9829 else 9830 case $TAR in 9831 [\\/]* | ?:[\\/]*) 9832 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9833 ;; 9834 *) 9835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9836 for as_dir in $PATH 9837 do 9838 IFS=$as_save_IFS 9839 test -z "$as_dir" && as_dir=. 9840 for ac_exec_ext in '' $ac_executable_extensions; do 9841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9842 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9844 break 2 9845 fi 9846 done 9847 done 9848 IFS=$as_save_IFS 9849 9850 ;; 9851 esac 9852 fi 9853 TAR=$ac_cv_path_TAR 9854 if test -n "$TAR"; then 9855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9856 $as_echo "$TAR" >&6; } 9857 else 9858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9859 $as_echo "no" >&6; } 9860 fi 9861 9862 9863 if test "x$TAR" = x; then 9864 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9865 fi 9866 else 9867 # Otherwise we believe it is a complete path. Use it as it is. 9868 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9869 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9871 $as_echo_n "checking for TAR... " >&6; } 9872 if test ! -x "$tool_specified"; then 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9874 $as_echo "not found" >&6; } 9875 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9876 fi 9877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9878 $as_echo "$tool_specified" >&6; } 9879 fi 9880 fi 9881 fi 9882 9883 9884 9885 if test "x$TAR" = x; then 9886 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9887 fi 9888 9889 9890 9891 9892 9893 # Publish this variable in the help. 9894 9895 9896 if test "x$TEE" = x; then 9897 # The variable is not set by user, try to locate tool using the code snippet 9898 for ac_prog in tee 9899 do 9900 # Extract the first word of "$ac_prog", so it can be a program name with args. 9901 set dummy $ac_prog; ac_word=$2 9902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9903 $as_echo_n "checking for $ac_word... " >&6; } 9904 if ${ac_cv_path_TEE+:} false; then : 9905 $as_echo_n "(cached) " >&6 9906 else 9907 case $TEE in 9908 [\\/]* | ?:[\\/]*) 9909 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9910 ;; 9911 *) 9912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9913 for as_dir in $PATH 9914 do 9915 IFS=$as_save_IFS 9916 test -z "$as_dir" && as_dir=. 9917 for ac_exec_ext in '' $ac_executable_extensions; do 9918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9919 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9921 break 2 9922 fi 9923 done 9924 done 9925 IFS=$as_save_IFS 9926 9927 ;; 9928 esac 9929 fi 9930 TEE=$ac_cv_path_TEE 9931 if test -n "$TEE"; then 9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9933 $as_echo "$TEE" >&6; } 9934 else 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9936 $as_echo "no" >&6; } 9937 fi 9938 9939 9940 test -n "$TEE" && break 9941 done 9942 9943 else 9944 # The variable is set, but is it from the command line or the environment? 9945 9946 # Try to remove the string !TEE! from our list. 9947 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9948 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9949 # If it failed, the variable was not from the command line. Ignore it, 9950 # but warn the user (except for BASH, which is always set by the calling BASH). 9951 if test "xTEE" != xBASH; then 9952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9953 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9954 fi 9955 # Try to locate tool using the code snippet 9956 for ac_prog in tee 9957 do 9958 # Extract the first word of "$ac_prog", so it can be a program name with args. 9959 set dummy $ac_prog; ac_word=$2 9960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9961 $as_echo_n "checking for $ac_word... " >&6; } 9962 if ${ac_cv_path_TEE+:} false; then : 9963 $as_echo_n "(cached) " >&6 9964 else 9965 case $TEE in 9966 [\\/]* | ?:[\\/]*) 9967 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9968 ;; 9969 *) 9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9971 for as_dir in $PATH 9972 do 9973 IFS=$as_save_IFS 9974 test -z "$as_dir" && as_dir=. 9975 for ac_exec_ext in '' $ac_executable_extensions; do 9976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9977 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9979 break 2 9980 fi 9981 done 9982 done 9983 IFS=$as_save_IFS 9984 9985 ;; 9986 esac 9987 fi 9988 TEE=$ac_cv_path_TEE 9989 if test -n "$TEE"; then 9990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9991 $as_echo "$TEE" >&6; } 9992 else 9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9994 $as_echo "no" >&6; } 9995 fi 9996 9997 9998 test -n "$TEE" && break 9999 done 10000 10001 else 10002 # If it succeeded, then it was overridden by the user. We will use it 10003 # for the tool. 10004 10005 # First remove it from the list of overridden variables, so we can test 10006 # for unknown variables in the end. 10007 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10008 10009 # Check if the provided tool contains a complete path. 10010 tool_specified="$TEE" 10011 tool_basename="${tool_specified##*/}" 10012 if test "x$tool_basename" = "x$tool_specified"; then 10013 # A command without a complete path is provided, search $PATH. 10014 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 10015 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 10016 # Extract the first word of "$tool_basename", so it can be a program name with args. 10017 set dummy $tool_basename; ac_word=$2 10018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10019 $as_echo_n "checking for $ac_word... " >&6; } 10020 if ${ac_cv_path_TEE+:} false; then : 10021 $as_echo_n "(cached) " >&6 10022 else 10023 case $TEE in 10024 [\\/]* | ?:[\\/]*) 10025 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10026 ;; 10027 *) 10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10029 for as_dir in $PATH 10030 do 10031 IFS=$as_save_IFS 10032 test -z "$as_dir" && as_dir=. 10033 for ac_exec_ext in '' $ac_executable_extensions; do 10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10035 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10037 break 2 10038 fi 10039 done 10040 done 10041 IFS=$as_save_IFS 10042 10043 ;; 10044 esac 10045 fi 10046 TEE=$ac_cv_path_TEE 10047 if test -n "$TEE"; then 10048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10049 $as_echo "$TEE" >&6; } 10050 else 10051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10052 $as_echo "no" >&6; } 10053 fi 10054 10055 10056 if test "x$TEE" = x; then 10057 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10058 fi 10059 else 10060 # Otherwise we believe it is a complete path. Use it as it is. 10061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10062 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10064 $as_echo_n "checking for TEE... " >&6; } 10065 if test ! -x "$tool_specified"; then 10066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10067 $as_echo "not found" >&6; } 10068 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10069 fi 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10071 $as_echo "$tool_specified" >&6; } 10072 fi 10073 fi 10074 fi 10075 10076 10077 10078 if test "x$TEE" = x; then 10079 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10080 fi 10081 10082 10083 10084 10085 10086 # Publish this variable in the help. 10087 10088 10089 if test "x$TOUCH" = x; then 10090 # The variable is not set by user, try to locate tool using the code snippet 10091 for ac_prog in touch 10092 do 10093 # Extract the first word of "$ac_prog", so it can be a program name with args. 10094 set dummy $ac_prog; ac_word=$2 10095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10096 $as_echo_n "checking for $ac_word... " >&6; } 10097 if ${ac_cv_path_TOUCH+:} false; then : 10098 $as_echo_n "(cached) " >&6 10099 else 10100 case $TOUCH in 10101 [\\/]* | ?:[\\/]*) 10102 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10103 ;; 10104 *) 10105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10106 for as_dir in $PATH 10107 do 10108 IFS=$as_save_IFS 10109 test -z "$as_dir" && as_dir=. 10110 for ac_exec_ext in '' $ac_executable_extensions; do 10111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10112 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10114 break 2 10115 fi 10116 done 10117 done 10118 IFS=$as_save_IFS 10119 10120 ;; 10121 esac 10122 fi 10123 TOUCH=$ac_cv_path_TOUCH 10124 if test -n "$TOUCH"; then 10125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10126 $as_echo "$TOUCH" >&6; } 10127 else 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10129 $as_echo "no" >&6; } 10130 fi 10131 10132 10133 test -n "$TOUCH" && break 10134 done 10135 10136 else 10137 # The variable is set, but is it from the command line or the environment? 10138 10139 # Try to remove the string !TOUCH! from our list. 10140 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10141 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10142 # If it failed, the variable was not from the command line. Ignore it, 10143 # but warn the user (except for BASH, which is always set by the calling BASH). 10144 if test "xTOUCH" != xBASH; then 10145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10146 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10147 fi 10148 # Try to locate tool using the code snippet 10149 for ac_prog in touch 10150 do 10151 # Extract the first word of "$ac_prog", so it can be a program name with args. 10152 set dummy $ac_prog; ac_word=$2 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10154 $as_echo_n "checking for $ac_word... " >&6; } 10155 if ${ac_cv_path_TOUCH+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157 else 10158 case $TOUCH in 10159 [\\/]* | ?:[\\/]*) 10160 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10161 ;; 10162 *) 10163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10164 for as_dir in $PATH 10165 do 10166 IFS=$as_save_IFS 10167 test -z "$as_dir" && as_dir=. 10168 for ac_exec_ext in '' $ac_executable_extensions; do 10169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10170 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10172 break 2 10173 fi 10174 done 10175 done 10176 IFS=$as_save_IFS 10177 10178 ;; 10179 esac 10180 fi 10181 TOUCH=$ac_cv_path_TOUCH 10182 if test -n "$TOUCH"; then 10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10184 $as_echo "$TOUCH" >&6; } 10185 else 10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10187 $as_echo "no" >&6; } 10188 fi 10189 10190 10191 test -n "$TOUCH" && break 10192 done 10193 10194 else 10195 # If it succeeded, then it was overridden by the user. We will use it 10196 # for the tool. 10197 10198 # First remove it from the list of overridden variables, so we can test 10199 # for unknown variables in the end. 10200 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10201 10202 # Check if the provided tool contains a complete path. 10203 tool_specified="$TOUCH" 10204 tool_basename="${tool_specified##*/}" 10205 if test "x$tool_basename" = "x$tool_specified"; then 10206 # A command without a complete path is provided, search $PATH. 10207 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10208 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10209 # Extract the first word of "$tool_basename", so it can be a program name with args. 10210 set dummy $tool_basename; ac_word=$2 10211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10212 $as_echo_n "checking for $ac_word... " >&6; } 10213 if ${ac_cv_path_TOUCH+:} false; then : 10214 $as_echo_n "(cached) " >&6 10215 else 10216 case $TOUCH in 10217 [\\/]* | ?:[\\/]*) 10218 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10219 ;; 10220 *) 10221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10222 for as_dir in $PATH 10223 do 10224 IFS=$as_save_IFS 10225 test -z "$as_dir" && as_dir=. 10226 for ac_exec_ext in '' $ac_executable_extensions; do 10227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10228 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10230 break 2 10231 fi 10232 done 10233 done 10234 IFS=$as_save_IFS 10235 10236 ;; 10237 esac 10238 fi 10239 TOUCH=$ac_cv_path_TOUCH 10240 if test -n "$TOUCH"; then 10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10242 $as_echo "$TOUCH" >&6; } 10243 else 10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10245 $as_echo "no" >&6; } 10246 fi 10247 10248 10249 if test "x$TOUCH" = x; then 10250 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10251 fi 10252 else 10253 # Otherwise we believe it is a complete path. Use it as it is. 10254 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10255 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10257 $as_echo_n "checking for TOUCH... " >&6; } 10258 if test ! -x "$tool_specified"; then 10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10260 $as_echo "not found" >&6; } 10261 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10262 fi 10263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10264 $as_echo "$tool_specified" >&6; } 10265 fi 10266 fi 10267 fi 10268 10269 10270 10271 if test "x$TOUCH" = x; then 10272 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10273 fi 10274 10275 10276 10277 10278 10279 # Publish this variable in the help. 10280 10281 10282 if test "x$TR" = x; then 10283 # The variable is not set by user, try to locate tool using the code snippet 10284 for ac_prog in tr 10285 do 10286 # Extract the first word of "$ac_prog", so it can be a program name with args. 10287 set dummy $ac_prog; ac_word=$2 10288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10289 $as_echo_n "checking for $ac_word... " >&6; } 10290 if ${ac_cv_path_TR+:} false; then : 10291 $as_echo_n "(cached) " >&6 10292 else 10293 case $TR in 10294 [\\/]* | ?:[\\/]*) 10295 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10296 ;; 10297 *) 10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10299 for as_dir in $PATH 10300 do 10301 IFS=$as_save_IFS 10302 test -z "$as_dir" && as_dir=. 10303 for ac_exec_ext in '' $ac_executable_extensions; do 10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10305 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10307 break 2 10308 fi 10309 done 10310 done 10311 IFS=$as_save_IFS 10312 10313 ;; 10314 esac 10315 fi 10316 TR=$ac_cv_path_TR 10317 if test -n "$TR"; then 10318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10319 $as_echo "$TR" >&6; } 10320 else 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10322 $as_echo "no" >&6; } 10323 fi 10324 10325 10326 test -n "$TR" && break 10327 done 10328 10329 else 10330 # The variable is set, but is it from the command line or the environment? 10331 10332 # Try to remove the string !TR! from our list. 10333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10335 # If it failed, the variable was not from the command line. Ignore it, 10336 # but warn the user (except for BASH, which is always set by the calling BASH). 10337 if test "xTR" != xBASH; then 10338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10339 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10340 fi 10341 # Try to locate tool using the code snippet 10342 for ac_prog in tr 10343 do 10344 # Extract the first word of "$ac_prog", so it can be a program name with args. 10345 set dummy $ac_prog; ac_word=$2 10346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10347 $as_echo_n "checking for $ac_word... " >&6; } 10348 if ${ac_cv_path_TR+:} false; then : 10349 $as_echo_n "(cached) " >&6 10350 else 10351 case $TR in 10352 [\\/]* | ?:[\\/]*) 10353 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10354 ;; 10355 *) 10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10357 for as_dir in $PATH 10358 do 10359 IFS=$as_save_IFS 10360 test -z "$as_dir" && as_dir=. 10361 for ac_exec_ext in '' $ac_executable_extensions; do 10362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10363 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10365 break 2 10366 fi 10367 done 10368 done 10369 IFS=$as_save_IFS 10370 10371 ;; 10372 esac 10373 fi 10374 TR=$ac_cv_path_TR 10375 if test -n "$TR"; then 10376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10377 $as_echo "$TR" >&6; } 10378 else 10379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10380 $as_echo "no" >&6; } 10381 fi 10382 10383 10384 test -n "$TR" && break 10385 done 10386 10387 else 10388 # If it succeeded, then it was overridden by the user. We will use it 10389 # for the tool. 10390 10391 # First remove it from the list of overridden variables, so we can test 10392 # for unknown variables in the end. 10393 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10394 10395 # Check if the provided tool contains a complete path. 10396 tool_specified="$TR" 10397 tool_basename="${tool_specified##*/}" 10398 if test "x$tool_basename" = "x$tool_specified"; then 10399 # A command without a complete path is provided, search $PATH. 10400 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10401 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10402 # Extract the first word of "$tool_basename", so it can be a program name with args. 10403 set dummy $tool_basename; ac_word=$2 10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10405 $as_echo_n "checking for $ac_word... " >&6; } 10406 if ${ac_cv_path_TR+:} false; then : 10407 $as_echo_n "(cached) " >&6 10408 else 10409 case $TR in 10410 [\\/]* | ?:[\\/]*) 10411 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10412 ;; 10413 *) 10414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10415 for as_dir in $PATH 10416 do 10417 IFS=$as_save_IFS 10418 test -z "$as_dir" && as_dir=. 10419 for ac_exec_ext in '' $ac_executable_extensions; do 10420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10421 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10423 break 2 10424 fi 10425 done 10426 done 10427 IFS=$as_save_IFS 10428 10429 ;; 10430 esac 10431 fi 10432 TR=$ac_cv_path_TR 10433 if test -n "$TR"; then 10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10435 $as_echo "$TR" >&6; } 10436 else 10437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10438 $as_echo "no" >&6; } 10439 fi 10440 10441 10442 if test "x$TR" = x; then 10443 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10444 fi 10445 else 10446 # Otherwise we believe it is a complete path. Use it as it is. 10447 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10448 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10450 $as_echo_n "checking for TR... " >&6; } 10451 if test ! -x "$tool_specified"; then 10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10453 $as_echo "not found" >&6; } 10454 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10455 fi 10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10457 $as_echo "$tool_specified" >&6; } 10458 fi 10459 fi 10460 fi 10461 10462 10463 10464 if test "x$TR" = x; then 10465 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10466 fi 10467 10468 10469 10470 10471 10472 # Publish this variable in the help. 10473 10474 10475 if test "x$UNAME" = x; then 10476 # The variable is not set by user, try to locate tool using the code snippet 10477 for ac_prog in uname 10478 do 10479 # Extract the first word of "$ac_prog", so it can be a program name with args. 10480 set dummy $ac_prog; ac_word=$2 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10482 $as_echo_n "checking for $ac_word... " >&6; } 10483 if ${ac_cv_path_UNAME+:} false; then : 10484 $as_echo_n "(cached) " >&6 10485 else 10486 case $UNAME in 10487 [\\/]* | ?:[\\/]*) 10488 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10489 ;; 10490 *) 10491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10492 for as_dir in $PATH 10493 do 10494 IFS=$as_save_IFS 10495 test -z "$as_dir" && as_dir=. 10496 for ac_exec_ext in '' $ac_executable_extensions; do 10497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10498 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10500 break 2 10501 fi 10502 done 10503 done 10504 IFS=$as_save_IFS 10505 10506 ;; 10507 esac 10508 fi 10509 UNAME=$ac_cv_path_UNAME 10510 if test -n "$UNAME"; then 10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10512 $as_echo "$UNAME" >&6; } 10513 else 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10515 $as_echo "no" >&6; } 10516 fi 10517 10518 10519 test -n "$UNAME" && break 10520 done 10521 10522 else 10523 # The variable is set, but is it from the command line or the environment? 10524 10525 # Try to remove the string !UNAME! from our list. 10526 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10527 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10528 # If it failed, the variable was not from the command line. Ignore it, 10529 # but warn the user (except for BASH, which is always set by the calling BASH). 10530 if test "xUNAME" != xBASH; then 10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10532 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10533 fi 10534 # Try to locate tool using the code snippet 10535 for ac_prog in uname 10536 do 10537 # Extract the first word of "$ac_prog", so it can be a program name with args. 10538 set dummy $ac_prog; ac_word=$2 10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10540 $as_echo_n "checking for $ac_word... " >&6; } 10541 if ${ac_cv_path_UNAME+:} false; then : 10542 $as_echo_n "(cached) " >&6 10543 else 10544 case $UNAME in 10545 [\\/]* | ?:[\\/]*) 10546 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10547 ;; 10548 *) 10549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10550 for as_dir in $PATH 10551 do 10552 IFS=$as_save_IFS 10553 test -z "$as_dir" && as_dir=. 10554 for ac_exec_ext in '' $ac_executable_extensions; do 10555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10556 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10558 break 2 10559 fi 10560 done 10561 done 10562 IFS=$as_save_IFS 10563 10564 ;; 10565 esac 10566 fi 10567 UNAME=$ac_cv_path_UNAME 10568 if test -n "$UNAME"; then 10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10570 $as_echo "$UNAME" >&6; } 10571 else 10572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10573 $as_echo "no" >&6; } 10574 fi 10575 10576 10577 test -n "$UNAME" && break 10578 done 10579 10580 else 10581 # If it succeeded, then it was overridden by the user. We will use it 10582 # for the tool. 10583 10584 # First remove it from the list of overridden variables, so we can test 10585 # for unknown variables in the end. 10586 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10587 10588 # Check if the provided tool contains a complete path. 10589 tool_specified="$UNAME" 10590 tool_basename="${tool_specified##*/}" 10591 if test "x$tool_basename" = "x$tool_specified"; then 10592 # A command without a complete path is provided, search $PATH. 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10594 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10595 # Extract the first word of "$tool_basename", so it can be a program name with args. 10596 set dummy $tool_basename; ac_word=$2 10597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10598 $as_echo_n "checking for $ac_word... " >&6; } 10599 if ${ac_cv_path_UNAME+:} false; then : 10600 $as_echo_n "(cached) " >&6 10601 else 10602 case $UNAME in 10603 [\\/]* | ?:[\\/]*) 10604 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10605 ;; 10606 *) 10607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10608 for as_dir in $PATH 10609 do 10610 IFS=$as_save_IFS 10611 test -z "$as_dir" && as_dir=. 10612 for ac_exec_ext in '' $ac_executable_extensions; do 10613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10614 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10616 break 2 10617 fi 10618 done 10619 done 10620 IFS=$as_save_IFS 10621 10622 ;; 10623 esac 10624 fi 10625 UNAME=$ac_cv_path_UNAME 10626 if test -n "$UNAME"; then 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10628 $as_echo "$UNAME" >&6; } 10629 else 10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10631 $as_echo "no" >&6; } 10632 fi 10633 10634 10635 if test "x$UNAME" = x; then 10636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10637 fi 10638 else 10639 # Otherwise we believe it is a complete path. Use it as it is. 10640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10641 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10643 $as_echo_n "checking for UNAME... " >&6; } 10644 if test ! -x "$tool_specified"; then 10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10646 $as_echo "not found" >&6; } 10647 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10648 fi 10649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10650 $as_echo "$tool_specified" >&6; } 10651 fi 10652 fi 10653 fi 10654 10655 10656 10657 if test "x$UNAME" = x; then 10658 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10659 fi 10660 10661 10662 10663 10664 10665 # Publish this variable in the help. 10666 10667 10668 if test "x$UNIQ" = x; then 10669 # The variable is not set by user, try to locate tool using the code snippet 10670 for ac_prog in uniq 10671 do 10672 # Extract the first word of "$ac_prog", so it can be a program name with args. 10673 set dummy $ac_prog; ac_word=$2 10674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10675 $as_echo_n "checking for $ac_word... " >&6; } 10676 if ${ac_cv_path_UNIQ+:} false; then : 10677 $as_echo_n "(cached) " >&6 10678 else 10679 case $UNIQ in 10680 [\\/]* | ?:[\\/]*) 10681 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10682 ;; 10683 *) 10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10685 for as_dir in $PATH 10686 do 10687 IFS=$as_save_IFS 10688 test -z "$as_dir" && as_dir=. 10689 for ac_exec_ext in '' $ac_executable_extensions; do 10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10691 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10693 break 2 10694 fi 10695 done 10696 done 10697 IFS=$as_save_IFS 10698 10699 ;; 10700 esac 10701 fi 10702 UNIQ=$ac_cv_path_UNIQ 10703 if test -n "$UNIQ"; then 10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10705 $as_echo "$UNIQ" >&6; } 10706 else 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10708 $as_echo "no" >&6; } 10709 fi 10710 10711 10712 test -n "$UNIQ" && break 10713 done 10714 10715 else 10716 # The variable is set, but is it from the command line or the environment? 10717 10718 # Try to remove the string !UNIQ! from our list. 10719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10721 # If it failed, the variable was not from the command line. Ignore it, 10722 # but warn the user (except for BASH, which is always set by the calling BASH). 10723 if test "xUNIQ" != xBASH; then 10724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10725 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10726 fi 10727 # Try to locate tool using the code snippet 10728 for ac_prog in uniq 10729 do 10730 # Extract the first word of "$ac_prog", so it can be a program name with args. 10731 set dummy $ac_prog; ac_word=$2 10732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10733 $as_echo_n "checking for $ac_word... " >&6; } 10734 if ${ac_cv_path_UNIQ+:} false; then : 10735 $as_echo_n "(cached) " >&6 10736 else 10737 case $UNIQ in 10738 [\\/]* | ?:[\\/]*) 10739 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10740 ;; 10741 *) 10742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10743 for as_dir in $PATH 10744 do 10745 IFS=$as_save_IFS 10746 test -z "$as_dir" && as_dir=. 10747 for ac_exec_ext in '' $ac_executable_extensions; do 10748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10749 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10751 break 2 10752 fi 10753 done 10754 done 10755 IFS=$as_save_IFS 10756 10757 ;; 10758 esac 10759 fi 10760 UNIQ=$ac_cv_path_UNIQ 10761 if test -n "$UNIQ"; then 10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10763 $as_echo "$UNIQ" >&6; } 10764 else 10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10766 $as_echo "no" >&6; } 10767 fi 10768 10769 10770 test -n "$UNIQ" && break 10771 done 10772 10773 else 10774 # If it succeeded, then it was overridden by the user. We will use it 10775 # for the tool. 10776 10777 # First remove it from the list of overridden variables, so we can test 10778 # for unknown variables in the end. 10779 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10780 10781 # Check if the provided tool contains a complete path. 10782 tool_specified="$UNIQ" 10783 tool_basename="${tool_specified##*/}" 10784 if test "x$tool_basename" = "x$tool_specified"; then 10785 # A command without a complete path is provided, search $PATH. 10786 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10787 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10788 # Extract the first word of "$tool_basename", so it can be a program name with args. 10789 set dummy $tool_basename; ac_word=$2 10790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10791 $as_echo_n "checking for $ac_word... " >&6; } 10792 if ${ac_cv_path_UNIQ+:} false; then : 10793 $as_echo_n "(cached) " >&6 10794 else 10795 case $UNIQ in 10796 [\\/]* | ?:[\\/]*) 10797 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10798 ;; 10799 *) 10800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10801 for as_dir in $PATH 10802 do 10803 IFS=$as_save_IFS 10804 test -z "$as_dir" && as_dir=. 10805 for ac_exec_ext in '' $ac_executable_extensions; do 10806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10807 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10809 break 2 10810 fi 10811 done 10812 done 10813 IFS=$as_save_IFS 10814 10815 ;; 10816 esac 10817 fi 10818 UNIQ=$ac_cv_path_UNIQ 10819 if test -n "$UNIQ"; then 10820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10821 $as_echo "$UNIQ" >&6; } 10822 else 10823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10824 $as_echo "no" >&6; } 10825 fi 10826 10827 10828 if test "x$UNIQ" = x; then 10829 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10830 fi 10831 else 10832 # Otherwise we believe it is a complete path. Use it as it is. 10833 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10834 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10836 $as_echo_n "checking for UNIQ... " >&6; } 10837 if test ! -x "$tool_specified"; then 10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10839 $as_echo "not found" >&6; } 10840 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10841 fi 10842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10843 $as_echo "$tool_specified" >&6; } 10844 fi 10845 fi 10846 fi 10847 10848 10849 10850 if test "x$UNIQ" = x; then 10851 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10852 fi 10853 10854 10855 10856 10857 10858 # Publish this variable in the help. 10859 10860 10861 if test "x$WC" = x; then 10862 # The variable is not set by user, try to locate tool using the code snippet 10863 for ac_prog in wc 10864 do 10865 # Extract the first word of "$ac_prog", so it can be a program name with args. 10866 set dummy $ac_prog; ac_word=$2 10867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10868 $as_echo_n "checking for $ac_word... " >&6; } 10869 if ${ac_cv_path_WC+:} false; then : 10870 $as_echo_n "(cached) " >&6 10871 else 10872 case $WC in 10873 [\\/]* | ?:[\\/]*) 10874 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10875 ;; 10876 *) 10877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10878 for as_dir in $PATH 10879 do 10880 IFS=$as_save_IFS 10881 test -z "$as_dir" && as_dir=. 10882 for ac_exec_ext in '' $ac_executable_extensions; do 10883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10884 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10886 break 2 10887 fi 10888 done 10889 done 10890 IFS=$as_save_IFS 10891 10892 ;; 10893 esac 10894 fi 10895 WC=$ac_cv_path_WC 10896 if test -n "$WC"; then 10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10898 $as_echo "$WC" >&6; } 10899 else 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10901 $as_echo "no" >&6; } 10902 fi 10903 10904 10905 test -n "$WC" && break 10906 done 10907 10908 else 10909 # The variable is set, but is it from the command line or the environment? 10910 10911 # Try to remove the string !WC! from our list. 10912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10914 # If it failed, the variable was not from the command line. Ignore it, 10915 # but warn the user (except for BASH, which is always set by the calling BASH). 10916 if test "xWC" != xBASH; then 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10918 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10919 fi 10920 # Try to locate tool using the code snippet 10921 for ac_prog in wc 10922 do 10923 # Extract the first word of "$ac_prog", so it can be a program name with args. 10924 set dummy $ac_prog; ac_word=$2 10925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10926 $as_echo_n "checking for $ac_word... " >&6; } 10927 if ${ac_cv_path_WC+:} false; then : 10928 $as_echo_n "(cached) " >&6 10929 else 10930 case $WC in 10931 [\\/]* | ?:[\\/]*) 10932 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10933 ;; 10934 *) 10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10936 for as_dir in $PATH 10937 do 10938 IFS=$as_save_IFS 10939 test -z "$as_dir" && as_dir=. 10940 for ac_exec_ext in '' $ac_executable_extensions; do 10941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10942 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10944 break 2 10945 fi 10946 done 10947 done 10948 IFS=$as_save_IFS 10949 10950 ;; 10951 esac 10952 fi 10953 WC=$ac_cv_path_WC 10954 if test -n "$WC"; then 10955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10956 $as_echo "$WC" >&6; } 10957 else 10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10959 $as_echo "no" >&6; } 10960 fi 10961 10962 10963 test -n "$WC" && break 10964 done 10965 10966 else 10967 # If it succeeded, then it was overridden by the user. We will use it 10968 # for the tool. 10969 10970 # First remove it from the list of overridden variables, so we can test 10971 # for unknown variables in the end. 10972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10973 10974 # Check if the provided tool contains a complete path. 10975 tool_specified="$WC" 10976 tool_basename="${tool_specified##*/}" 10977 if test "x$tool_basename" = "x$tool_specified"; then 10978 # A command without a complete path is provided, search $PATH. 10979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10980 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10981 # Extract the first word of "$tool_basename", so it can be a program name with args. 10982 set dummy $tool_basename; ac_word=$2 10983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10984 $as_echo_n "checking for $ac_word... " >&6; } 10985 if ${ac_cv_path_WC+:} false; then : 10986 $as_echo_n "(cached) " >&6 10987 else 10988 case $WC in 10989 [\\/]* | ?:[\\/]*) 10990 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10991 ;; 10992 *) 10993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10994 for as_dir in $PATH 10995 do 10996 IFS=$as_save_IFS 10997 test -z "$as_dir" && as_dir=. 10998 for ac_exec_ext in '' $ac_executable_extensions; do 10999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11000 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11002 break 2 11003 fi 11004 done 11005 done 11006 IFS=$as_save_IFS 11007 11008 ;; 11009 esac 11010 fi 11011 WC=$ac_cv_path_WC 11012 if test -n "$WC"; then 11013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 11014 $as_echo "$WC" >&6; } 11015 else 11016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11017 $as_echo "no" >&6; } 11018 fi 11019 11020 11021 if test "x$WC" = x; then 11022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11023 fi 11024 else 11025 # Otherwise we believe it is a complete path. Use it as it is. 11026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11027 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11029 $as_echo_n "checking for WC... " >&6; } 11030 if test ! -x "$tool_specified"; then 11031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11032 $as_echo "not found" >&6; } 11033 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11034 fi 11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11036 $as_echo "$tool_specified" >&6; } 11037 fi 11038 fi 11039 fi 11040 11041 11042 11043 if test "x$WC" = x; then 11044 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11045 fi 11046 11047 11048 11049 11050 11051 # Publish this variable in the help. 11052 11053 11054 if test "x$WHICH" = x; then 11055 # The variable is not set by user, try to locate tool using the code snippet 11056 for ac_prog in which 11057 do 11058 # Extract the first word of "$ac_prog", so it can be a program name with args. 11059 set dummy $ac_prog; ac_word=$2 11060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11061 $as_echo_n "checking for $ac_word... " >&6; } 11062 if ${ac_cv_path_WHICH+:} false; then : 11063 $as_echo_n "(cached) " >&6 11064 else 11065 case $WHICH in 11066 [\\/]* | ?:[\\/]*) 11067 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11068 ;; 11069 *) 11070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11071 for as_dir in $PATH 11072 do 11073 IFS=$as_save_IFS 11074 test -z "$as_dir" && as_dir=. 11075 for ac_exec_ext in '' $ac_executable_extensions; do 11076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11077 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11079 break 2 11080 fi 11081 done 11082 done 11083 IFS=$as_save_IFS 11084 11085 ;; 11086 esac 11087 fi 11088 WHICH=$ac_cv_path_WHICH 11089 if test -n "$WHICH"; then 11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11091 $as_echo "$WHICH" >&6; } 11092 else 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11094 $as_echo "no" >&6; } 11095 fi 11096 11097 11098 test -n "$WHICH" && break 11099 done 11100 11101 else 11102 # The variable is set, but is it from the command line or the environment? 11103 11104 # Try to remove the string !WHICH! from our list. 11105 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11106 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11107 # If it failed, the variable was not from the command line. Ignore it, 11108 # but warn the user (except for BASH, which is always set by the calling BASH). 11109 if test "xWHICH" != xBASH; then 11110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11111 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11112 fi 11113 # Try to locate tool using the code snippet 11114 for ac_prog in which 11115 do 11116 # Extract the first word of "$ac_prog", so it can be a program name with args. 11117 set dummy $ac_prog; ac_word=$2 11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11119 $as_echo_n "checking for $ac_word... " >&6; } 11120 if ${ac_cv_path_WHICH+:} false; then : 11121 $as_echo_n "(cached) " >&6 11122 else 11123 case $WHICH in 11124 [\\/]* | ?:[\\/]*) 11125 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11126 ;; 11127 *) 11128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11129 for as_dir in $PATH 11130 do 11131 IFS=$as_save_IFS 11132 test -z "$as_dir" && as_dir=. 11133 for ac_exec_ext in '' $ac_executable_extensions; do 11134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11135 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11137 break 2 11138 fi 11139 done 11140 done 11141 IFS=$as_save_IFS 11142 11143 ;; 11144 esac 11145 fi 11146 WHICH=$ac_cv_path_WHICH 11147 if test -n "$WHICH"; then 11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11149 $as_echo "$WHICH" >&6; } 11150 else 11151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11152 $as_echo "no" >&6; } 11153 fi 11154 11155 11156 test -n "$WHICH" && break 11157 done 11158 11159 else 11160 # If it succeeded, then it was overridden by the user. We will use it 11161 # for the tool. 11162 11163 # First remove it from the list of overridden variables, so we can test 11164 # for unknown variables in the end. 11165 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11166 11167 # Check if the provided tool contains a complete path. 11168 tool_specified="$WHICH" 11169 tool_basename="${tool_specified##*/}" 11170 if test "x$tool_basename" = "x$tool_specified"; then 11171 # A command without a complete path is provided, search $PATH. 11172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11173 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11174 # Extract the first word of "$tool_basename", so it can be a program name with args. 11175 set dummy $tool_basename; ac_word=$2 11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11177 $as_echo_n "checking for $ac_word... " >&6; } 11178 if ${ac_cv_path_WHICH+:} false; then : 11179 $as_echo_n "(cached) " >&6 11180 else 11181 case $WHICH in 11182 [\\/]* | ?:[\\/]*) 11183 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11184 ;; 11185 *) 11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11187 for as_dir in $PATH 11188 do 11189 IFS=$as_save_IFS 11190 test -z "$as_dir" && as_dir=. 11191 for ac_exec_ext in '' $ac_executable_extensions; do 11192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11193 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11195 break 2 11196 fi 11197 done 11198 done 11199 IFS=$as_save_IFS 11200 11201 ;; 11202 esac 11203 fi 11204 WHICH=$ac_cv_path_WHICH 11205 if test -n "$WHICH"; then 11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11207 $as_echo "$WHICH" >&6; } 11208 else 11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11210 $as_echo "no" >&6; } 11211 fi 11212 11213 11214 if test "x$WHICH" = x; then 11215 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11216 fi 11217 else 11218 # Otherwise we believe it is a complete path. Use it as it is. 11219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11220 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11222 $as_echo_n "checking for WHICH... " >&6; } 11223 if test ! -x "$tool_specified"; then 11224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11225 $as_echo "not found" >&6; } 11226 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11227 fi 11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11229 $as_echo "$tool_specified" >&6; } 11230 fi 11231 fi 11232 fi 11233 11234 11235 11236 if test "x$WHICH" = x; then 11237 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11238 fi 11239 11240 11241 11242 11243 11244 # Publish this variable in the help. 11245 11246 11247 if test "x$XARGS" = x; then 11248 # The variable is not set by user, try to locate tool using the code snippet 11249 for ac_prog in xargs 11250 do 11251 # Extract the first word of "$ac_prog", so it can be a program name with args. 11252 set dummy $ac_prog; ac_word=$2 11253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11254 $as_echo_n "checking for $ac_word... " >&6; } 11255 if ${ac_cv_path_XARGS+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257 else 11258 case $XARGS in 11259 [\\/]* | ?:[\\/]*) 11260 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11261 ;; 11262 *) 11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11264 for as_dir in $PATH 11265 do 11266 IFS=$as_save_IFS 11267 test -z "$as_dir" && as_dir=. 11268 for ac_exec_ext in '' $ac_executable_extensions; do 11269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11270 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11272 break 2 11273 fi 11274 done 11275 done 11276 IFS=$as_save_IFS 11277 11278 ;; 11279 esac 11280 fi 11281 XARGS=$ac_cv_path_XARGS 11282 if test -n "$XARGS"; then 11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11284 $as_echo "$XARGS" >&6; } 11285 else 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11287 $as_echo "no" >&6; } 11288 fi 11289 11290 11291 test -n "$XARGS" && break 11292 done 11293 11294 else 11295 # The variable is set, but is it from the command line or the environment? 11296 11297 # Try to remove the string !XARGS! from our list. 11298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11300 # If it failed, the variable was not from the command line. Ignore it, 11301 # but warn the user (except for BASH, which is always set by the calling BASH). 11302 if test "xXARGS" != xBASH; then 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11304 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11305 fi 11306 # Try to locate tool using the code snippet 11307 for ac_prog in xargs 11308 do 11309 # Extract the first word of "$ac_prog", so it can be a program name with args. 11310 set dummy $ac_prog; ac_word=$2 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11312 $as_echo_n "checking for $ac_word... " >&6; } 11313 if ${ac_cv_path_XARGS+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315 else 11316 case $XARGS in 11317 [\\/]* | ?:[\\/]*) 11318 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11319 ;; 11320 *) 11321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11322 for as_dir in $PATH 11323 do 11324 IFS=$as_save_IFS 11325 test -z "$as_dir" && as_dir=. 11326 for ac_exec_ext in '' $ac_executable_extensions; do 11327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11328 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11330 break 2 11331 fi 11332 done 11333 done 11334 IFS=$as_save_IFS 11335 11336 ;; 11337 esac 11338 fi 11339 XARGS=$ac_cv_path_XARGS 11340 if test -n "$XARGS"; then 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11342 $as_echo "$XARGS" >&6; } 11343 else 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11345 $as_echo "no" >&6; } 11346 fi 11347 11348 11349 test -n "$XARGS" && break 11350 done 11351 11352 else 11353 # If it succeeded, then it was overridden by the user. We will use it 11354 # for the tool. 11355 11356 # First remove it from the list of overridden variables, so we can test 11357 # for unknown variables in the end. 11358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11359 11360 # Check if the provided tool contains a complete path. 11361 tool_specified="$XARGS" 11362 tool_basename="${tool_specified##*/}" 11363 if test "x$tool_basename" = "x$tool_specified"; then 11364 # A command without a complete path is provided, search $PATH. 11365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11366 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11367 # Extract the first word of "$tool_basename", so it can be a program name with args. 11368 set dummy $tool_basename; ac_word=$2 11369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11370 $as_echo_n "checking for $ac_word... " >&6; } 11371 if ${ac_cv_path_XARGS+:} false; then : 11372 $as_echo_n "(cached) " >&6 11373 else 11374 case $XARGS in 11375 [\\/]* | ?:[\\/]*) 11376 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11377 ;; 11378 *) 11379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11380 for as_dir in $PATH 11381 do 11382 IFS=$as_save_IFS 11383 test -z "$as_dir" && as_dir=. 11384 for ac_exec_ext in '' $ac_executable_extensions; do 11385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11386 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11388 break 2 11389 fi 11390 done 11391 done 11392 IFS=$as_save_IFS 11393 11394 ;; 11395 esac 11396 fi 11397 XARGS=$ac_cv_path_XARGS 11398 if test -n "$XARGS"; then 11399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11400 $as_echo "$XARGS" >&6; } 11401 else 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11403 $as_echo "no" >&6; } 11404 fi 11405 11406 11407 if test "x$XARGS" = x; then 11408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11409 fi 11410 else 11411 # Otherwise we believe it is a complete path. Use it as it is. 11412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11413 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11415 $as_echo_n "checking for XARGS... " >&6; } 11416 if test ! -x "$tool_specified"; then 11417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11418 $as_echo "not found" >&6; } 11419 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11420 fi 11421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11422 $as_echo "$tool_specified" >&6; } 11423 fi 11424 fi 11425 fi 11426 11427 11428 11429 if test "x$XARGS" = x; then 11430 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11431 fi 11432 11433 11434 11435 # Then required tools that require some special treatment. 11436 11437 11438 # Publish this variable in the help. 11439 11440 11441 if test "x$AWK" = x; then 11442 # The variable is not set by user, try to locate tool using the code snippet 11443 for ac_prog in gawk mawk nawk awk 11444 do 11445 # Extract the first word of "$ac_prog", so it can be a program name with args. 11446 set dummy $ac_prog; ac_word=$2 11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11448 $as_echo_n "checking for $ac_word... " >&6; } 11449 if ${ac_cv_prog_AWK+:} false; then : 11450 $as_echo_n "(cached) " >&6 11451 else 11452 if test -n "$AWK"; then 11453 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11454 else 11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11456 for as_dir in $PATH 11457 do 11458 IFS=$as_save_IFS 11459 test -z "$as_dir" && as_dir=. 11460 for ac_exec_ext in '' $ac_executable_extensions; do 11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11462 ac_cv_prog_AWK="$ac_prog" 11463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11464 break 2 11465 fi 11466 done 11467 done 11468 IFS=$as_save_IFS 11469 11470 fi 11471 fi 11472 AWK=$ac_cv_prog_AWK 11473 if test -n "$AWK"; then 11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11475 $as_echo "$AWK" >&6; } 11476 else 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11478 $as_echo "no" >&6; } 11479 fi 11480 11481 11482 test -n "$AWK" && break 11483 done 11484 11485 else 11486 # The variable is set, but is it from the command line or the environment? 11487 11488 # Try to remove the string !AWK! from our list. 11489 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11490 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11491 # If it failed, the variable was not from the command line. Ignore it, 11492 # but warn the user (except for BASH, which is always set by the calling BASH). 11493 if test "xAWK" != xBASH; then 11494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11495 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11496 fi 11497 # Try to locate tool using the code snippet 11498 for ac_prog in gawk mawk nawk awk 11499 do 11500 # Extract the first word of "$ac_prog", so it can be a program name with args. 11501 set dummy $ac_prog; ac_word=$2 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11503 $as_echo_n "checking for $ac_word... " >&6; } 11504 if ${ac_cv_prog_AWK+:} false; then : 11505 $as_echo_n "(cached) " >&6 11506 else 11507 if test -n "$AWK"; then 11508 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11509 else 11510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11511 for as_dir in $PATH 11512 do 11513 IFS=$as_save_IFS 11514 test -z "$as_dir" && as_dir=. 11515 for ac_exec_ext in '' $ac_executable_extensions; do 11516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11517 ac_cv_prog_AWK="$ac_prog" 11518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11519 break 2 11520 fi 11521 done 11522 done 11523 IFS=$as_save_IFS 11524 11525 fi 11526 fi 11527 AWK=$ac_cv_prog_AWK 11528 if test -n "$AWK"; then 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11530 $as_echo "$AWK" >&6; } 11531 else 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11533 $as_echo "no" >&6; } 11534 fi 11535 11536 11537 test -n "$AWK" && break 11538 done 11539 11540 else 11541 # If it succeeded, then it was overridden by the user. We will use it 11542 # for the tool. 11543 11544 # First remove it from the list of overridden variables, so we can test 11545 # for unknown variables in the end. 11546 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11547 11548 # Check if the provided tool contains a complete path. 11549 tool_specified="$AWK" 11550 tool_basename="${tool_specified##*/}" 11551 if test "x$tool_basename" = "x$tool_specified"; then 11552 # A command without a complete path is provided, search $PATH. 11553 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11554 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11555 # Extract the first word of "$tool_basename", so it can be a program name with args. 11556 set dummy $tool_basename; ac_word=$2 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11558 $as_echo_n "checking for $ac_word... " >&6; } 11559 if ${ac_cv_path_AWK+:} false; then : 11560 $as_echo_n "(cached) " >&6 11561 else 11562 case $AWK in 11563 [\\/]* | ?:[\\/]*) 11564 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11565 ;; 11566 *) 11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11568 for as_dir in $PATH 11569 do 11570 IFS=$as_save_IFS 11571 test -z "$as_dir" && as_dir=. 11572 for ac_exec_ext in '' $ac_executable_extensions; do 11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11574 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11576 break 2 11577 fi 11578 done 11579 done 11580 IFS=$as_save_IFS 11581 11582 ;; 11583 esac 11584 fi 11585 AWK=$ac_cv_path_AWK 11586 if test -n "$AWK"; then 11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11588 $as_echo "$AWK" >&6; } 11589 else 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11591 $as_echo "no" >&6; } 11592 fi 11593 11594 11595 if test "x$AWK" = x; then 11596 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11597 fi 11598 else 11599 # Otherwise we believe it is a complete path. Use it as it is. 11600 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11601 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11603 $as_echo_n "checking for AWK... " >&6; } 11604 if test ! -x "$tool_specified"; then 11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11606 $as_echo "not found" >&6; } 11607 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11608 fi 11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11610 $as_echo "$tool_specified" >&6; } 11611 fi 11612 fi 11613 fi 11614 11615 11616 if test "x$AWK" = x; then 11617 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11618 fi 11619 11620 11621 11622 11623 # Publish this variable in the help. 11624 11625 11626 if test "x$GREP" = x; then 11627 # The variable is not set by user, try to locate tool using the code snippet 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11629 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11630 if ${ac_cv_path_GREP+:} false; then : 11631 $as_echo_n "(cached) " >&6 11632 else 11633 if test -z "$GREP"; then 11634 ac_path_GREP_found=false 11635 # Loop through the user's path and test for each of PROGNAME-LIST 11636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11637 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11638 do 11639 IFS=$as_save_IFS 11640 test -z "$as_dir" && as_dir=. 11641 for ac_prog in grep ggrep; do 11642 for ac_exec_ext in '' $ac_executable_extensions; do 11643 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11644 as_fn_executable_p "$ac_path_GREP" || continue 11645 # Check for GNU ac_path_GREP and select it if it is found. 11646 # Check for GNU $ac_path_GREP 11647 case `"$ac_path_GREP" --version 2>&1` in 11648 *GNU*) 11649 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11650 *) 11651 ac_count=0 11652 $as_echo_n 0123456789 >"conftest.in" 11653 while : 11654 do 11655 cat "conftest.in" "conftest.in" >"conftest.tmp" 11656 mv "conftest.tmp" "conftest.in" 11657 cp "conftest.in" "conftest.nl" 11658 $as_echo 'GREP' >> "conftest.nl" 11659 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11660 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11661 as_fn_arith $ac_count + 1 && ac_count=$as_val 11662 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11663 # Best one so far, save it but keep looking for a better one 11664 ac_cv_path_GREP="$ac_path_GREP" 11665 ac_path_GREP_max=$ac_count 11666 fi 11667 # 10*(2^10) chars as input seems more than enough 11668 test $ac_count -gt 10 && break 11669 done 11670 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11671 esac 11672 11673 $ac_path_GREP_found && break 3 11674 done 11675 done 11676 done 11677 IFS=$as_save_IFS 11678 if test -z "$ac_cv_path_GREP"; then 11679 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11680 fi 11681 else 11682 ac_cv_path_GREP=$GREP 11683 fi 11684 11685 fi 11686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11687 $as_echo "$ac_cv_path_GREP" >&6; } 11688 GREP="$ac_cv_path_GREP" 11689 11690 11691 else 11692 # The variable is set, but is it from the command line or the environment? 11693 11694 # Try to remove the string !GREP! from our list. 11695 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11696 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11697 # If it failed, the variable was not from the command line. Ignore it, 11698 # but warn the user (except for BASH, which is always set by the calling BASH). 11699 if test "xGREP" != xBASH; then 11700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11701 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11702 fi 11703 # Try to locate tool using the code snippet 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11705 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11706 if ${ac_cv_path_GREP+:} false; then : 11707 $as_echo_n "(cached) " >&6 11708 else 11709 if test -z "$GREP"; then 11710 ac_path_GREP_found=false 11711 # Loop through the user's path and test for each of PROGNAME-LIST 11712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11713 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11714 do 11715 IFS=$as_save_IFS 11716 test -z "$as_dir" && as_dir=. 11717 for ac_prog in grep ggrep; do 11718 for ac_exec_ext in '' $ac_executable_extensions; do 11719 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11720 as_fn_executable_p "$ac_path_GREP" || continue 11721 # Check for GNU ac_path_GREP and select it if it is found. 11722 # Check for GNU $ac_path_GREP 11723 case `"$ac_path_GREP" --version 2>&1` in 11724 *GNU*) 11725 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11726 *) 11727 ac_count=0 11728 $as_echo_n 0123456789 >"conftest.in" 11729 while : 11730 do 11731 cat "conftest.in" "conftest.in" >"conftest.tmp" 11732 mv "conftest.tmp" "conftest.in" 11733 cp "conftest.in" "conftest.nl" 11734 $as_echo 'GREP' >> "conftest.nl" 11735 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11736 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11737 as_fn_arith $ac_count + 1 && ac_count=$as_val 11738 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11739 # Best one so far, save it but keep looking for a better one 11740 ac_cv_path_GREP="$ac_path_GREP" 11741 ac_path_GREP_max=$ac_count 11742 fi 11743 # 10*(2^10) chars as input seems more than enough 11744 test $ac_count -gt 10 && break 11745 done 11746 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11747 esac 11748 11749 $ac_path_GREP_found && break 3 11750 done 11751 done 11752 done 11753 IFS=$as_save_IFS 11754 if test -z "$ac_cv_path_GREP"; then 11755 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11756 fi 11757 else 11758 ac_cv_path_GREP=$GREP 11759 fi 11760 11761 fi 11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11763 $as_echo "$ac_cv_path_GREP" >&6; } 11764 GREP="$ac_cv_path_GREP" 11765 11766 11767 else 11768 # If it succeeded, then it was overridden by the user. We will use it 11769 # for the tool. 11770 11771 # First remove it from the list of overridden variables, so we can test 11772 # for unknown variables in the end. 11773 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11774 11775 # Check if the provided tool contains a complete path. 11776 tool_specified="$GREP" 11777 tool_basename="${tool_specified##*/}" 11778 if test "x$tool_basename" = "x$tool_specified"; then 11779 # A command without a complete path is provided, search $PATH. 11780 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11781 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11782 # Extract the first word of "$tool_basename", so it can be a program name with args. 11783 set dummy $tool_basename; ac_word=$2 11784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11785 $as_echo_n "checking for $ac_word... " >&6; } 11786 if ${ac_cv_path_GREP+:} false; then : 11787 $as_echo_n "(cached) " >&6 11788 else 11789 case $GREP in 11790 [\\/]* | ?:[\\/]*) 11791 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11792 ;; 11793 *) 11794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11795 for as_dir in $PATH 11796 do 11797 IFS=$as_save_IFS 11798 test -z "$as_dir" && as_dir=. 11799 for ac_exec_ext in '' $ac_executable_extensions; do 11800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11801 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11803 break 2 11804 fi 11805 done 11806 done 11807 IFS=$as_save_IFS 11808 11809 ;; 11810 esac 11811 fi 11812 GREP=$ac_cv_path_GREP 11813 if test -n "$GREP"; then 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11815 $as_echo "$GREP" >&6; } 11816 else 11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11818 $as_echo "no" >&6; } 11819 fi 11820 11821 11822 if test "x$GREP" = x; then 11823 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11824 fi 11825 else 11826 # Otherwise we believe it is a complete path. Use it as it is. 11827 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11828 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11830 $as_echo_n "checking for GREP... " >&6; } 11831 if test ! -x "$tool_specified"; then 11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11833 $as_echo "not found" >&6; } 11834 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11835 fi 11836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11837 $as_echo "$tool_specified" >&6; } 11838 fi 11839 fi 11840 fi 11841 11842 11843 if test "x$GREP" = x; then 11844 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11845 fi 11846 11847 11848 11849 11850 # Publish this variable in the help. 11851 11852 11853 if test "x$EGREP" = x; then 11854 # The variable is not set by user, try to locate tool using the code snippet 11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11856 $as_echo_n "checking for egrep... " >&6; } 11857 if ${ac_cv_path_EGREP+:} false; then : 11858 $as_echo_n "(cached) " >&6 11859 else 11860 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11861 then ac_cv_path_EGREP="$GREP -E" 11862 else 11863 if test -z "$EGREP"; then 11864 ac_path_EGREP_found=false 11865 # Loop through the user's path and test for each of PROGNAME-LIST 11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11867 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11868 do 11869 IFS=$as_save_IFS 11870 test -z "$as_dir" && as_dir=. 11871 for ac_prog in egrep; do 11872 for ac_exec_ext in '' $ac_executable_extensions; do 11873 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11874 as_fn_executable_p "$ac_path_EGREP" || continue 11875 # Check for GNU ac_path_EGREP and select it if it is found. 11876 # Check for GNU $ac_path_EGREP 11877 case `"$ac_path_EGREP" --version 2>&1` in 11878 *GNU*) 11879 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11880 *) 11881 ac_count=0 11882 $as_echo_n 0123456789 >"conftest.in" 11883 while : 11884 do 11885 cat "conftest.in" "conftest.in" >"conftest.tmp" 11886 mv "conftest.tmp" "conftest.in" 11887 cp "conftest.in" "conftest.nl" 11888 $as_echo 'EGREP' >> "conftest.nl" 11889 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11890 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11891 as_fn_arith $ac_count + 1 && ac_count=$as_val 11892 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11893 # Best one so far, save it but keep looking for a better one 11894 ac_cv_path_EGREP="$ac_path_EGREP" 11895 ac_path_EGREP_max=$ac_count 11896 fi 11897 # 10*(2^10) chars as input seems more than enough 11898 test $ac_count -gt 10 && break 11899 done 11900 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11901 esac 11902 11903 $ac_path_EGREP_found && break 3 11904 done 11905 done 11906 done 11907 IFS=$as_save_IFS 11908 if test -z "$ac_cv_path_EGREP"; then 11909 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11910 fi 11911 else 11912 ac_cv_path_EGREP=$EGREP 11913 fi 11914 11915 fi 11916 fi 11917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11918 $as_echo "$ac_cv_path_EGREP" >&6; } 11919 EGREP="$ac_cv_path_EGREP" 11920 11921 11922 else 11923 # The variable is set, but is it from the command line or the environment? 11924 11925 # Try to remove the string !EGREP! from our list. 11926 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11927 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11928 # If it failed, the variable was not from the command line. Ignore it, 11929 # but warn the user (except for BASH, which is always set by the calling BASH). 11930 if test "xEGREP" != xBASH; then 11931 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11932 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11933 fi 11934 # Try to locate tool using the code snippet 11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11936 $as_echo_n "checking for egrep... " >&6; } 11937 if ${ac_cv_path_EGREP+:} false; then : 11938 $as_echo_n "(cached) " >&6 11939 else 11940 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11941 then ac_cv_path_EGREP="$GREP -E" 11942 else 11943 if test -z "$EGREP"; then 11944 ac_path_EGREP_found=false 11945 # Loop through the user's path and test for each of PROGNAME-LIST 11946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11947 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11948 do 11949 IFS=$as_save_IFS 11950 test -z "$as_dir" && as_dir=. 11951 for ac_prog in egrep; do 11952 for ac_exec_ext in '' $ac_executable_extensions; do 11953 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11954 as_fn_executable_p "$ac_path_EGREP" || continue 11955 # Check for GNU ac_path_EGREP and select it if it is found. 11956 # Check for GNU $ac_path_EGREP 11957 case `"$ac_path_EGREP" --version 2>&1` in 11958 *GNU*) 11959 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11960 *) 11961 ac_count=0 11962 $as_echo_n 0123456789 >"conftest.in" 11963 while : 11964 do 11965 cat "conftest.in" "conftest.in" >"conftest.tmp" 11966 mv "conftest.tmp" "conftest.in" 11967 cp "conftest.in" "conftest.nl" 11968 $as_echo 'EGREP' >> "conftest.nl" 11969 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11970 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11971 as_fn_arith $ac_count + 1 && ac_count=$as_val 11972 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11973 # Best one so far, save it but keep looking for a better one 11974 ac_cv_path_EGREP="$ac_path_EGREP" 11975 ac_path_EGREP_max=$ac_count 11976 fi 11977 # 10*(2^10) chars as input seems more than enough 11978 test $ac_count -gt 10 && break 11979 done 11980 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11981 esac 11982 11983 $ac_path_EGREP_found && break 3 11984 done 11985 done 11986 done 11987 IFS=$as_save_IFS 11988 if test -z "$ac_cv_path_EGREP"; then 11989 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11990 fi 11991 else 11992 ac_cv_path_EGREP=$EGREP 11993 fi 11994 11995 fi 11996 fi 11997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11998 $as_echo "$ac_cv_path_EGREP" >&6; } 11999 EGREP="$ac_cv_path_EGREP" 12000 12001 12002 else 12003 # If it succeeded, then it was overridden by the user. We will use it 12004 # for the tool. 12005 12006 # First remove it from the list of overridden variables, so we can test 12007 # for unknown variables in the end. 12008 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12009 12010 # Check if the provided tool contains a complete path. 12011 tool_specified="$EGREP" 12012 tool_basename="${tool_specified##*/}" 12013 if test "x$tool_basename" = "x$tool_specified"; then 12014 # A command without a complete path is provided, search $PATH. 12015 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 12016 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12017 # Extract the first word of "$tool_basename", so it can be a program name with args. 12018 set dummy $tool_basename; ac_word=$2 12019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12020 $as_echo_n "checking for $ac_word... " >&6; } 12021 if ${ac_cv_path_EGREP+:} false; then : 12022 $as_echo_n "(cached) " >&6 12023 else 12024 case $EGREP in 12025 [\\/]* | ?:[\\/]*) 12026 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12027 ;; 12028 *) 12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12030 for as_dir in $PATH 12031 do 12032 IFS=$as_save_IFS 12033 test -z "$as_dir" && as_dir=. 12034 for ac_exec_ext in '' $ac_executable_extensions; do 12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12036 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12038 break 2 12039 fi 12040 done 12041 done 12042 IFS=$as_save_IFS 12043 12044 ;; 12045 esac 12046 fi 12047 EGREP=$ac_cv_path_EGREP 12048 if test -n "$EGREP"; then 12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12050 $as_echo "$EGREP" >&6; } 12051 else 12052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12053 $as_echo "no" >&6; } 12054 fi 12055 12056 12057 if test "x$EGREP" = x; then 12058 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12059 fi 12060 else 12061 # Otherwise we believe it is a complete path. Use it as it is. 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12063 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12065 $as_echo_n "checking for EGREP... " >&6; } 12066 if test ! -x "$tool_specified"; then 12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12068 $as_echo "not found" >&6; } 12069 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12070 fi 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12072 $as_echo "$tool_specified" >&6; } 12073 fi 12074 fi 12075 fi 12076 12077 12078 if test "x$EGREP" = x; then 12079 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12080 fi 12081 12082 12083 12084 12085 # Publish this variable in the help. 12086 12087 12088 if test "x$FGREP" = x; then 12089 # The variable is not set by user, try to locate tool using the code snippet 12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12091 $as_echo_n "checking for fgrep... " >&6; } 12092 if ${ac_cv_path_FGREP+:} false; then : 12093 $as_echo_n "(cached) " >&6 12094 else 12095 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12096 then ac_cv_path_FGREP="$GREP -F" 12097 else 12098 if test -z "$FGREP"; then 12099 ac_path_FGREP_found=false 12100 # Loop through the user's path and test for each of PROGNAME-LIST 12101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12102 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12103 do 12104 IFS=$as_save_IFS 12105 test -z "$as_dir" && as_dir=. 12106 for ac_prog in fgrep; do 12107 for ac_exec_ext in '' $ac_executable_extensions; do 12108 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12109 as_fn_executable_p "$ac_path_FGREP" || continue 12110 # Check for GNU ac_path_FGREP and select it if it is found. 12111 # Check for GNU $ac_path_FGREP 12112 case `"$ac_path_FGREP" --version 2>&1` in 12113 *GNU*) 12114 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12115 *) 12116 ac_count=0 12117 $as_echo_n 0123456789 >"conftest.in" 12118 while : 12119 do 12120 cat "conftest.in" "conftest.in" >"conftest.tmp" 12121 mv "conftest.tmp" "conftest.in" 12122 cp "conftest.in" "conftest.nl" 12123 $as_echo 'FGREP' >> "conftest.nl" 12124 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12126 as_fn_arith $ac_count + 1 && ac_count=$as_val 12127 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12128 # Best one so far, save it but keep looking for a better one 12129 ac_cv_path_FGREP="$ac_path_FGREP" 12130 ac_path_FGREP_max=$ac_count 12131 fi 12132 # 10*(2^10) chars as input seems more than enough 12133 test $ac_count -gt 10 && break 12134 done 12135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12136 esac 12137 12138 $ac_path_FGREP_found && break 3 12139 done 12140 done 12141 done 12142 IFS=$as_save_IFS 12143 if test -z "$ac_cv_path_FGREP"; then 12144 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12145 fi 12146 else 12147 ac_cv_path_FGREP=$FGREP 12148 fi 12149 12150 fi 12151 fi 12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12153 $as_echo "$ac_cv_path_FGREP" >&6; } 12154 FGREP="$ac_cv_path_FGREP" 12155 12156 12157 else 12158 # The variable is set, but is it from the command line or the environment? 12159 12160 # Try to remove the string !FGREP! from our list. 12161 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12162 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12163 # If it failed, the variable was not from the command line. Ignore it, 12164 # but warn the user (except for BASH, which is always set by the calling BASH). 12165 if test "xFGREP" != xBASH; then 12166 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12167 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12168 fi 12169 # Try to locate tool using the code snippet 12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12171 $as_echo_n "checking for fgrep... " >&6; } 12172 if ${ac_cv_path_FGREP+:} false; then : 12173 $as_echo_n "(cached) " >&6 12174 else 12175 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12176 then ac_cv_path_FGREP="$GREP -F" 12177 else 12178 if test -z "$FGREP"; then 12179 ac_path_FGREP_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$PATH_SEPARATOR/usr/xpg4/bin 12183 do 12184 IFS=$as_save_IFS 12185 test -z "$as_dir" && as_dir=. 12186 for ac_prog in fgrep; do 12187 for ac_exec_ext in '' $ac_executable_extensions; do 12188 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12189 as_fn_executable_p "$ac_path_FGREP" || continue 12190 # Check for GNU ac_path_FGREP and select it if it is found. 12191 # Check for GNU $ac_path_FGREP 12192 case `"$ac_path_FGREP" --version 2>&1` in 12193 *GNU*) 12194 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_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 'FGREP' >> "conftest.nl" 12204 "$ac_path_FGREP" FGREP < "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_FGREP_max-0}; then 12208 # Best one so far, save it but keep looking for a better one 12209 ac_cv_path_FGREP="$ac_path_FGREP" 12210 ac_path_FGREP_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_FGREP_found && break 3 12219 done 12220 done 12221 done 12222 IFS=$as_save_IFS 12223 if test -z "$ac_cv_path_FGREP"; then 12224 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12225 fi 12226 else 12227 ac_cv_path_FGREP=$FGREP 12228 fi 12229 12230 fi 12231 fi 12232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12233 $as_echo "$ac_cv_path_FGREP" >&6; } 12234 FGREP="$ac_cv_path_FGREP" 12235 12236 12237 else 12238 # If it succeeded, then it was overridden by the user. We will use it 12239 # for the tool. 12240 12241 # First remove it from the list of overridden variables, so we can test 12242 # for unknown variables in the end. 12243 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12244 12245 # Check if the provided tool contains a complete path. 12246 tool_specified="$FGREP" 12247 tool_basename="${tool_specified##*/}" 12248 if test "x$tool_basename" = "x$tool_specified"; then 12249 # A command without a complete path is provided, search $PATH. 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12251 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12252 # Extract the first word of "$tool_basename", so it can be a program name with args. 12253 set dummy $tool_basename; ac_word=$2 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12255 $as_echo_n "checking for $ac_word... " >&6; } 12256 if ${ac_cv_path_FGREP+:} false; then : 12257 $as_echo_n "(cached) " >&6 12258 else 12259 case $FGREP in 12260 [\\/]* | ?:[\\/]*) 12261 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12262 ;; 12263 *) 12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12265 for as_dir in $PATH 12266 do 12267 IFS=$as_save_IFS 12268 test -z "$as_dir" && as_dir=. 12269 for ac_exec_ext in '' $ac_executable_extensions; do 12270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12271 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12273 break 2 12274 fi 12275 done 12276 done 12277 IFS=$as_save_IFS 12278 12279 ;; 12280 esac 12281 fi 12282 FGREP=$ac_cv_path_FGREP 12283 if test -n "$FGREP"; then 12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12285 $as_echo "$FGREP" >&6; } 12286 else 12287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12288 $as_echo "no" >&6; } 12289 fi 12290 12291 12292 if test "x$FGREP" = x; then 12293 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12294 fi 12295 else 12296 # Otherwise we believe it is a complete path. Use it as it is. 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12298 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12300 $as_echo_n "checking for FGREP... " >&6; } 12301 if test ! -x "$tool_specified"; then 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12303 $as_echo "not found" >&6; } 12304 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12305 fi 12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12307 $as_echo "$tool_specified" >&6; } 12308 fi 12309 fi 12310 fi 12311 12312 12313 if test "x$FGREP" = x; then 12314 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12315 fi 12316 12317 12318 12319 12320 # Publish this variable in the help. 12321 12322 12323 if test "x$SED" = x; then 12324 # The variable is not set by user, try to locate tool using the code snippet 12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12326 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12327 if ${ac_cv_path_SED+:} false; then : 12328 $as_echo_n "(cached) " >&6 12329 else 12330 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12331 for ac_i in 1 2 3 4 5 6 7; do 12332 ac_script="$ac_script$as_nl$ac_script" 12333 done 12334 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12335 { ac_script=; unset ac_script;} 12336 if test -z "$SED"; then 12337 ac_path_SED_found=false 12338 # Loop through the user's path and test for each of PROGNAME-LIST 12339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12340 for as_dir in $PATH 12341 do 12342 IFS=$as_save_IFS 12343 test -z "$as_dir" && as_dir=. 12344 for ac_prog in sed gsed; do 12345 for ac_exec_ext in '' $ac_executable_extensions; do 12346 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12347 as_fn_executable_p "$ac_path_SED" || continue 12348 # Check for GNU ac_path_SED and select it if it is found. 12349 # Check for GNU $ac_path_SED 12350 case `"$ac_path_SED" --version 2>&1` in 12351 *GNU*) 12352 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12353 *) 12354 ac_count=0 12355 $as_echo_n 0123456789 >"conftest.in" 12356 while : 12357 do 12358 cat "conftest.in" "conftest.in" >"conftest.tmp" 12359 mv "conftest.tmp" "conftest.in" 12360 cp "conftest.in" "conftest.nl" 12361 $as_echo '' >> "conftest.nl" 12362 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12364 as_fn_arith $ac_count + 1 && ac_count=$as_val 12365 if test $ac_count -gt ${ac_path_SED_max-0}; then 12366 # Best one so far, save it but keep looking for a better one 12367 ac_cv_path_SED="$ac_path_SED" 12368 ac_path_SED_max=$ac_count 12369 fi 12370 # 10*(2^10) chars as input seems more than enough 12371 test $ac_count -gt 10 && break 12372 done 12373 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12374 esac 12375 12376 $ac_path_SED_found && break 3 12377 done 12378 done 12379 done 12380 IFS=$as_save_IFS 12381 if test -z "$ac_cv_path_SED"; then 12382 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12383 fi 12384 else 12385 ac_cv_path_SED=$SED 12386 fi 12387 12388 fi 12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12390 $as_echo "$ac_cv_path_SED" >&6; } 12391 SED="$ac_cv_path_SED" 12392 rm -f conftest.sed 12393 12394 else 12395 # The variable is set, but is it from the command line or the environment? 12396 12397 # Try to remove the string !SED! from our list. 12398 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12399 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12400 # If it failed, the variable was not from the command line. Ignore it, 12401 # but warn the user (except for BASH, which is always set by the calling BASH). 12402 if test "xSED" != xBASH; then 12403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12404 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12405 fi 12406 # Try to locate tool using the code snippet 12407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12408 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12409 if ${ac_cv_path_SED+:} false; then : 12410 $as_echo_n "(cached) " >&6 12411 else 12412 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12413 for ac_i in 1 2 3 4 5 6 7; do 12414 ac_script="$ac_script$as_nl$ac_script" 12415 done 12416 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12417 { ac_script=; unset ac_script;} 12418 if test -z "$SED"; then 12419 ac_path_SED_found=false 12420 # Loop through the user's path and test for each of PROGNAME-LIST 12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12422 for as_dir in $PATH 12423 do 12424 IFS=$as_save_IFS 12425 test -z "$as_dir" && as_dir=. 12426 for ac_prog in sed gsed; do 12427 for ac_exec_ext in '' $ac_executable_extensions; do 12428 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12429 as_fn_executable_p "$ac_path_SED" || continue 12430 # Check for GNU ac_path_SED and select it if it is found. 12431 # Check for GNU $ac_path_SED 12432 case `"$ac_path_SED" --version 2>&1` in 12433 *GNU*) 12434 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12435 *) 12436 ac_count=0 12437 $as_echo_n 0123456789 >"conftest.in" 12438 while : 12439 do 12440 cat "conftest.in" "conftest.in" >"conftest.tmp" 12441 mv "conftest.tmp" "conftest.in" 12442 cp "conftest.in" "conftest.nl" 12443 $as_echo '' >> "conftest.nl" 12444 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12446 as_fn_arith $ac_count + 1 && ac_count=$as_val 12447 if test $ac_count -gt ${ac_path_SED_max-0}; then 12448 # Best one so far, save it but keep looking for a better one 12449 ac_cv_path_SED="$ac_path_SED" 12450 ac_path_SED_max=$ac_count 12451 fi 12452 # 10*(2^10) chars as input seems more than enough 12453 test $ac_count -gt 10 && break 12454 done 12455 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12456 esac 12457 12458 $ac_path_SED_found && break 3 12459 done 12460 done 12461 done 12462 IFS=$as_save_IFS 12463 if test -z "$ac_cv_path_SED"; then 12464 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12465 fi 12466 else 12467 ac_cv_path_SED=$SED 12468 fi 12469 12470 fi 12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12472 $as_echo "$ac_cv_path_SED" >&6; } 12473 SED="$ac_cv_path_SED" 12474 rm -f conftest.sed 12475 12476 else 12477 # If it succeeded, then it was overridden by the user. We will use it 12478 # for the tool. 12479 12480 # First remove it from the list of overridden variables, so we can test 12481 # for unknown variables in the end. 12482 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12483 12484 # Check if the provided tool contains a complete path. 12485 tool_specified="$SED" 12486 tool_basename="${tool_specified##*/}" 12487 if test "x$tool_basename" = "x$tool_specified"; then 12488 # A command without a complete path is provided, search $PATH. 12489 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12490 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12491 # Extract the first word of "$tool_basename", so it can be a program name with args. 12492 set dummy $tool_basename; ac_word=$2 12493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12494 $as_echo_n "checking for $ac_word... " >&6; } 12495 if ${ac_cv_path_SED+:} false; then : 12496 $as_echo_n "(cached) " >&6 12497 else 12498 case $SED in 12499 [\\/]* | ?:[\\/]*) 12500 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12501 ;; 12502 *) 12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12504 for as_dir in $PATH 12505 do 12506 IFS=$as_save_IFS 12507 test -z "$as_dir" && as_dir=. 12508 for ac_exec_ext in '' $ac_executable_extensions; do 12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12510 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12512 break 2 12513 fi 12514 done 12515 done 12516 IFS=$as_save_IFS 12517 12518 ;; 12519 esac 12520 fi 12521 SED=$ac_cv_path_SED 12522 if test -n "$SED"; then 12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12524 $as_echo "$SED" >&6; } 12525 else 12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12527 $as_echo "no" >&6; } 12528 fi 12529 12530 12531 if test "x$SED" = x; then 12532 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12533 fi 12534 else 12535 # Otherwise we believe it is a complete path. Use it as it is. 12536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12537 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12539 $as_echo_n "checking for SED... " >&6; } 12540 if test ! -x "$tool_specified"; then 12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12542 $as_echo "not found" >&6; } 12543 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12544 fi 12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12546 $as_echo "$tool_specified" >&6; } 12547 fi 12548 fi 12549 fi 12550 12551 12552 if test "x$SED" = x; then 12553 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12554 fi 12555 12556 12557 12558 # Always force rm. 12559 RM="$RM -f" 12560 12561 # pwd behaves differently on various platforms and some don't support the -L flag. 12562 # Always use the bash builtin pwd to get uniform behavior. 12563 THEPWDCMD=pwd 12564 12565 # These are not required on all platforms 12566 12567 12568 # Publish this variable in the help. 12569 12570 12571 if test "x$CYGPATH" = x; then 12572 # The variable is not set by user, try to locate tool using the code snippet 12573 for ac_prog in cygpath 12574 do 12575 # Extract the first word of "$ac_prog", so it can be a program name with args. 12576 set dummy $ac_prog; ac_word=$2 12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12578 $as_echo_n "checking for $ac_word... " >&6; } 12579 if ${ac_cv_path_CYGPATH+:} false; then : 12580 $as_echo_n "(cached) " >&6 12581 else 12582 case $CYGPATH in 12583 [\\/]* | ?:[\\/]*) 12584 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12585 ;; 12586 *) 12587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12588 for as_dir in $PATH 12589 do 12590 IFS=$as_save_IFS 12591 test -z "$as_dir" && as_dir=. 12592 for ac_exec_ext in '' $ac_executable_extensions; do 12593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12594 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12596 break 2 12597 fi 12598 done 12599 done 12600 IFS=$as_save_IFS 12601 12602 ;; 12603 esac 12604 fi 12605 CYGPATH=$ac_cv_path_CYGPATH 12606 if test -n "$CYGPATH"; then 12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12608 $as_echo "$CYGPATH" >&6; } 12609 else 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12611 $as_echo "no" >&6; } 12612 fi 12613 12614 12615 test -n "$CYGPATH" && break 12616 done 12617 12618 else 12619 # The variable is set, but is it from the command line or the environment? 12620 12621 # Try to remove the string !CYGPATH! from our list. 12622 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12623 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12624 # If it failed, the variable was not from the command line. Ignore it, 12625 # but warn the user (except for BASH, which is always set by the calling BASH). 12626 if test "xCYGPATH" != xBASH; then 12627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12628 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12629 fi 12630 # Try to locate tool using the code snippet 12631 for ac_prog in cygpath 12632 do 12633 # Extract the first word of "$ac_prog", so it can be a program name with args. 12634 set dummy $ac_prog; ac_word=$2 12635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12636 $as_echo_n "checking for $ac_word... " >&6; } 12637 if ${ac_cv_path_CYGPATH+:} false; then : 12638 $as_echo_n "(cached) " >&6 12639 else 12640 case $CYGPATH in 12641 [\\/]* | ?:[\\/]*) 12642 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12643 ;; 12644 *) 12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12646 for as_dir in $PATH 12647 do 12648 IFS=$as_save_IFS 12649 test -z "$as_dir" && as_dir=. 12650 for ac_exec_ext in '' $ac_executable_extensions; do 12651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12652 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12654 break 2 12655 fi 12656 done 12657 done 12658 IFS=$as_save_IFS 12659 12660 ;; 12661 esac 12662 fi 12663 CYGPATH=$ac_cv_path_CYGPATH 12664 if test -n "$CYGPATH"; then 12665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12666 $as_echo "$CYGPATH" >&6; } 12667 else 12668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12669 $as_echo "no" >&6; } 12670 fi 12671 12672 12673 test -n "$CYGPATH" && break 12674 done 12675 12676 else 12677 # If it succeeded, then it was overridden by the user. We will use it 12678 # for the tool. 12679 12680 # First remove it from the list of overridden variables, so we can test 12681 # for unknown variables in the end. 12682 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12683 12684 # Check if the provided tool contains a complete path. 12685 tool_specified="$CYGPATH" 12686 tool_basename="${tool_specified##*/}" 12687 if test "x$tool_basename" = "x$tool_specified"; then 12688 # A command without a complete path is provided, search $PATH. 12689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12690 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12691 # Extract the first word of "$tool_basename", so it can be a program name with args. 12692 set dummy $tool_basename; ac_word=$2 12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12694 $as_echo_n "checking for $ac_word... " >&6; } 12695 if ${ac_cv_path_CYGPATH+:} false; then : 12696 $as_echo_n "(cached) " >&6 12697 else 12698 case $CYGPATH in 12699 [\\/]* | ?:[\\/]*) 12700 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12701 ;; 12702 *) 12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12704 for as_dir in $PATH 12705 do 12706 IFS=$as_save_IFS 12707 test -z "$as_dir" && as_dir=. 12708 for ac_exec_ext in '' $ac_executable_extensions; do 12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12710 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12712 break 2 12713 fi 12714 done 12715 done 12716 IFS=$as_save_IFS 12717 12718 ;; 12719 esac 12720 fi 12721 CYGPATH=$ac_cv_path_CYGPATH 12722 if test -n "$CYGPATH"; then 12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12724 $as_echo "$CYGPATH" >&6; } 12725 else 12726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12727 $as_echo "no" >&6; } 12728 fi 12729 12730 12731 if test "x$CYGPATH" = x; then 12732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12733 fi 12734 else 12735 # Otherwise we believe it is a complete path. Use it as it is. 12736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12737 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12739 $as_echo_n "checking for CYGPATH... " >&6; } 12740 if test ! -x "$tool_specified"; then 12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12742 $as_echo "not found" >&6; } 12743 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12744 fi 12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12746 $as_echo "$tool_specified" >&6; } 12747 fi 12748 fi 12749 fi 12750 12751 12752 12753 12754 # Publish this variable in the help. 12755 12756 12757 if test "x$READLINK" = x; then 12758 # The variable is not set by user, try to locate tool using the code snippet 12759 for ac_prog in greadlink readlink 12760 do 12761 # Extract the first word of "$ac_prog", so it can be a program name with args. 12762 set dummy $ac_prog; ac_word=$2 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12764 $as_echo_n "checking for $ac_word... " >&6; } 12765 if ${ac_cv_path_READLINK+:} false; then : 12766 $as_echo_n "(cached) " >&6 12767 else 12768 case $READLINK in 12769 [\\/]* | ?:[\\/]*) 12770 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12771 ;; 12772 *) 12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12774 for as_dir in $PATH 12775 do 12776 IFS=$as_save_IFS 12777 test -z "$as_dir" && as_dir=. 12778 for ac_exec_ext in '' $ac_executable_extensions; do 12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12780 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12782 break 2 12783 fi 12784 done 12785 done 12786 IFS=$as_save_IFS 12787 12788 ;; 12789 esac 12790 fi 12791 READLINK=$ac_cv_path_READLINK 12792 if test -n "$READLINK"; then 12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12794 $as_echo "$READLINK" >&6; } 12795 else 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12797 $as_echo "no" >&6; } 12798 fi 12799 12800 12801 test -n "$READLINK" && break 12802 done 12803 12804 else 12805 # The variable is set, but is it from the command line or the environment? 12806 12807 # Try to remove the string !READLINK! from our list. 12808 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12809 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12810 # If it failed, the variable was not from the command line. Ignore it, 12811 # but warn the user (except for BASH, which is always set by the calling BASH). 12812 if test "xREADLINK" != xBASH; then 12813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12814 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12815 fi 12816 # Try to locate tool using the code snippet 12817 for ac_prog in greadlink readlink 12818 do 12819 # Extract the first word of "$ac_prog", so it can be a program name with args. 12820 set dummy $ac_prog; ac_word=$2 12821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12822 $as_echo_n "checking for $ac_word... " >&6; } 12823 if ${ac_cv_path_READLINK+:} false; then : 12824 $as_echo_n "(cached) " >&6 12825 else 12826 case $READLINK in 12827 [\\/]* | ?:[\\/]*) 12828 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12829 ;; 12830 *) 12831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12832 for as_dir in $PATH 12833 do 12834 IFS=$as_save_IFS 12835 test -z "$as_dir" && as_dir=. 12836 for ac_exec_ext in '' $ac_executable_extensions; do 12837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12838 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12840 break 2 12841 fi 12842 done 12843 done 12844 IFS=$as_save_IFS 12845 12846 ;; 12847 esac 12848 fi 12849 READLINK=$ac_cv_path_READLINK 12850 if test -n "$READLINK"; then 12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12852 $as_echo "$READLINK" >&6; } 12853 else 12854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12855 $as_echo "no" >&6; } 12856 fi 12857 12858 12859 test -n "$READLINK" && break 12860 done 12861 12862 else 12863 # If it succeeded, then it was overridden by the user. We will use it 12864 # for the tool. 12865 12866 # First remove it from the list of overridden variables, so we can test 12867 # for unknown variables in the end. 12868 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12869 12870 # Check if the provided tool contains a complete path. 12871 tool_specified="$READLINK" 12872 tool_basename="${tool_specified##*/}" 12873 if test "x$tool_basename" = "x$tool_specified"; then 12874 # A command without a complete path is provided, search $PATH. 12875 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12876 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12877 # Extract the first word of "$tool_basename", so it can be a program name with args. 12878 set dummy $tool_basename; ac_word=$2 12879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12880 $as_echo_n "checking for $ac_word... " >&6; } 12881 if ${ac_cv_path_READLINK+:} false; then : 12882 $as_echo_n "(cached) " >&6 12883 else 12884 case $READLINK in 12885 [\\/]* | ?:[\\/]*) 12886 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12887 ;; 12888 *) 12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12890 for as_dir in $PATH 12891 do 12892 IFS=$as_save_IFS 12893 test -z "$as_dir" && as_dir=. 12894 for ac_exec_ext in '' $ac_executable_extensions; do 12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12896 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12898 break 2 12899 fi 12900 done 12901 done 12902 IFS=$as_save_IFS 12903 12904 ;; 12905 esac 12906 fi 12907 READLINK=$ac_cv_path_READLINK 12908 if test -n "$READLINK"; then 12909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12910 $as_echo "$READLINK" >&6; } 12911 else 12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12913 $as_echo "no" >&6; } 12914 fi 12915 12916 12917 if test "x$READLINK" = x; then 12918 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12919 fi 12920 else 12921 # Otherwise we believe it is a complete path. Use it as it is. 12922 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12923 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12925 $as_echo_n "checking for READLINK... " >&6; } 12926 if test ! -x "$tool_specified"; then 12927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12928 $as_echo "not found" >&6; } 12929 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12930 fi 12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12932 $as_echo "$tool_specified" >&6; } 12933 fi 12934 fi 12935 fi 12936 12937 12938 12939 12940 # Publish this variable in the help. 12941 12942 12943 if test "x$DF" = x; then 12944 # The variable is not set by user, try to locate tool using the code snippet 12945 for ac_prog in df 12946 do 12947 # Extract the first word of "$ac_prog", so it can be a program name with args. 12948 set dummy $ac_prog; ac_word=$2 12949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12950 $as_echo_n "checking for $ac_word... " >&6; } 12951 if ${ac_cv_path_DF+:} false; then : 12952 $as_echo_n "(cached) " >&6 12953 else 12954 case $DF in 12955 [\\/]* | ?:[\\/]*) 12956 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12957 ;; 12958 *) 12959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12960 for as_dir in $PATH 12961 do 12962 IFS=$as_save_IFS 12963 test -z "$as_dir" && as_dir=. 12964 for ac_exec_ext in '' $ac_executable_extensions; do 12965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12966 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12968 break 2 12969 fi 12970 done 12971 done 12972 IFS=$as_save_IFS 12973 12974 ;; 12975 esac 12976 fi 12977 DF=$ac_cv_path_DF 12978 if test -n "$DF"; then 12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12980 $as_echo "$DF" >&6; } 12981 else 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12983 $as_echo "no" >&6; } 12984 fi 12985 12986 12987 test -n "$DF" && break 12988 done 12989 12990 else 12991 # The variable is set, but is it from the command line or the environment? 12992 12993 # Try to remove the string !DF! from our list. 12994 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12995 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12996 # If it failed, the variable was not from the command line. Ignore it, 12997 # but warn the user (except for BASH, which is always set by the calling BASH). 12998 if test "xDF" != xBASH; then 12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 13000 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 13001 fi 13002 # Try to locate tool using the code snippet 13003 for ac_prog in df 13004 do 13005 # Extract the first word of "$ac_prog", so it can be a program name with args. 13006 set dummy $ac_prog; ac_word=$2 13007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13008 $as_echo_n "checking for $ac_word... " >&6; } 13009 if ${ac_cv_path_DF+:} false; then : 13010 $as_echo_n "(cached) " >&6 13011 else 13012 case $DF in 13013 [\\/]* | ?:[\\/]*) 13014 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13015 ;; 13016 *) 13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13018 for as_dir in $PATH 13019 do 13020 IFS=$as_save_IFS 13021 test -z "$as_dir" && as_dir=. 13022 for ac_exec_ext in '' $ac_executable_extensions; do 13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13024 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13026 break 2 13027 fi 13028 done 13029 done 13030 IFS=$as_save_IFS 13031 13032 ;; 13033 esac 13034 fi 13035 DF=$ac_cv_path_DF 13036 if test -n "$DF"; then 13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13038 $as_echo "$DF" >&6; } 13039 else 13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13041 $as_echo "no" >&6; } 13042 fi 13043 13044 13045 test -n "$DF" && break 13046 done 13047 13048 else 13049 # If it succeeded, then it was overridden by the user. We will use it 13050 # for the tool. 13051 13052 # First remove it from the list of overridden variables, so we can test 13053 # for unknown variables in the end. 13054 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13055 13056 # Check if the provided tool contains a complete path. 13057 tool_specified="$DF" 13058 tool_basename="${tool_specified##*/}" 13059 if test "x$tool_basename" = "x$tool_specified"; then 13060 # A command without a complete path is provided, search $PATH. 13061 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13062 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13063 # Extract the first word of "$tool_basename", so it can be a program name with args. 13064 set dummy $tool_basename; ac_word=$2 13065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13066 $as_echo_n "checking for $ac_word... " >&6; } 13067 if ${ac_cv_path_DF+:} false; then : 13068 $as_echo_n "(cached) " >&6 13069 else 13070 case $DF in 13071 [\\/]* | ?:[\\/]*) 13072 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13073 ;; 13074 *) 13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13076 for as_dir in $PATH 13077 do 13078 IFS=$as_save_IFS 13079 test -z "$as_dir" && as_dir=. 13080 for ac_exec_ext in '' $ac_executable_extensions; do 13081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13082 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13084 break 2 13085 fi 13086 done 13087 done 13088 IFS=$as_save_IFS 13089 13090 ;; 13091 esac 13092 fi 13093 DF=$ac_cv_path_DF 13094 if test -n "$DF"; then 13095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13096 $as_echo "$DF" >&6; } 13097 else 13098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13099 $as_echo "no" >&6; } 13100 fi 13101 13102 13103 if test "x$DF" = x; then 13104 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13105 fi 13106 else 13107 # Otherwise we believe it is a complete path. Use it as it is. 13108 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13109 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13111 $as_echo_n "checking for DF... " >&6; } 13112 if test ! -x "$tool_specified"; then 13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13114 $as_echo "not found" >&6; } 13115 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13116 fi 13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13118 $as_echo "$tool_specified" >&6; } 13119 fi 13120 fi 13121 fi 13122 13123 13124 13125 13126 # Publish this variable in the help. 13127 13128 13129 if test "x$SETFILE" = x; then 13130 # The variable is not set by user, try to locate tool using the code snippet 13131 for ac_prog in SetFile 13132 do 13133 # Extract the first word of "$ac_prog", so it can be a program name with args. 13134 set dummy $ac_prog; ac_word=$2 13135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13136 $as_echo_n "checking for $ac_word... " >&6; } 13137 if ${ac_cv_path_SETFILE+:} false; then : 13138 $as_echo_n "(cached) " >&6 13139 else 13140 case $SETFILE in 13141 [\\/]* | ?:[\\/]*) 13142 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13143 ;; 13144 *) 13145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13146 for as_dir in $PATH 13147 do 13148 IFS=$as_save_IFS 13149 test -z "$as_dir" && as_dir=. 13150 for ac_exec_ext in '' $ac_executable_extensions; do 13151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13152 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13154 break 2 13155 fi 13156 done 13157 done 13158 IFS=$as_save_IFS 13159 13160 ;; 13161 esac 13162 fi 13163 SETFILE=$ac_cv_path_SETFILE 13164 if test -n "$SETFILE"; then 13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13166 $as_echo "$SETFILE" >&6; } 13167 else 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13169 $as_echo "no" >&6; } 13170 fi 13171 13172 13173 test -n "$SETFILE" && break 13174 done 13175 13176 else 13177 # The variable is set, but is it from the command line or the environment? 13178 13179 # Try to remove the string !SETFILE! from our list. 13180 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13181 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13182 # If it failed, the variable was not from the command line. Ignore it, 13183 # but warn the user (except for BASH, which is always set by the calling BASH). 13184 if test "xSETFILE" != xBASH; then 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13186 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13187 fi 13188 # Try to locate tool using the code snippet 13189 for ac_prog in SetFile 13190 do 13191 # Extract the first word of "$ac_prog", so it can be a program name with args. 13192 set dummy $ac_prog; ac_word=$2 13193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13194 $as_echo_n "checking for $ac_word... " >&6; } 13195 if ${ac_cv_path_SETFILE+:} false; then : 13196 $as_echo_n "(cached) " >&6 13197 else 13198 case $SETFILE in 13199 [\\/]* | ?:[\\/]*) 13200 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13201 ;; 13202 *) 13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13204 for as_dir in $PATH 13205 do 13206 IFS=$as_save_IFS 13207 test -z "$as_dir" && as_dir=. 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13210 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214 done 13215 done 13216 IFS=$as_save_IFS 13217 13218 ;; 13219 esac 13220 fi 13221 SETFILE=$ac_cv_path_SETFILE 13222 if test -n "$SETFILE"; then 13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13224 $as_echo "$SETFILE" >&6; } 13225 else 13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13227 $as_echo "no" >&6; } 13228 fi 13229 13230 13231 test -n "$SETFILE" && break 13232 done 13233 13234 else 13235 # If it succeeded, then it was overridden by the user. We will use it 13236 # for the tool. 13237 13238 # First remove it from the list of overridden variables, so we can test 13239 # for unknown variables in the end. 13240 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13241 13242 # Check if the provided tool contains a complete path. 13243 tool_specified="$SETFILE" 13244 tool_basename="${tool_specified##*/}" 13245 if test "x$tool_basename" = "x$tool_specified"; then 13246 # A command without a complete path is provided, search $PATH. 13247 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13248 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13249 # Extract the first word of "$tool_basename", so it can be a program name with args. 13250 set dummy $tool_basename; ac_word=$2 13251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13252 $as_echo_n "checking for $ac_word... " >&6; } 13253 if ${ac_cv_path_SETFILE+:} false; then : 13254 $as_echo_n "(cached) " >&6 13255 else 13256 case $SETFILE in 13257 [\\/]* | ?:[\\/]*) 13258 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13259 ;; 13260 *) 13261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13262 for as_dir in $PATH 13263 do 13264 IFS=$as_save_IFS 13265 test -z "$as_dir" && as_dir=. 13266 for ac_exec_ext in '' $ac_executable_extensions; do 13267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13268 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13270 break 2 13271 fi 13272 done 13273 done 13274 IFS=$as_save_IFS 13275 13276 ;; 13277 esac 13278 fi 13279 SETFILE=$ac_cv_path_SETFILE 13280 if test -n "$SETFILE"; then 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13282 $as_echo "$SETFILE" >&6; } 13283 else 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13285 $as_echo "no" >&6; } 13286 fi 13287 13288 13289 if test "x$SETFILE" = x; then 13290 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13291 fi 13292 else 13293 # Otherwise we believe it is a complete path. Use it as it is. 13294 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13295 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13297 $as_echo_n "checking for SETFILE... " >&6; } 13298 if test ! -x "$tool_specified"; then 13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13300 $as_echo "not found" >&6; } 13301 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13302 fi 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13304 $as_echo "$tool_specified" >&6; } 13305 fi 13306 fi 13307 fi 13308 13309 13310 13311 13312 # Now we can determine OpenJDK build and target platforms. This is required to 13313 # have early on. 13314 # Make sure we can run config.sub. 13315 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13316 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13317 13318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13319 $as_echo_n "checking build system type... " >&6; } 13320 if ${ac_cv_build+:} false; then : 13321 $as_echo_n "(cached) " >&6 13322 else 13323 ac_build_alias=$build_alias 13324 test "x$ac_build_alias" = x && 13325 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13326 test "x$ac_build_alias" = x && 13327 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13328 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13329 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13330 13331 fi 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13333 $as_echo "$ac_cv_build" >&6; } 13334 case $ac_cv_build in 13335 *-*-*) ;; 13336 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13337 esac 13338 build=$ac_cv_build 13339 ac_save_IFS=$IFS; IFS='-' 13340 set x $ac_cv_build 13341 shift 13342 build_cpu=$1 13343 build_vendor=$2 13344 shift; shift 13345 # Remember, the first character of IFS is used to create $*, 13346 # except with old shells: 13347 build_os=$* 13348 IFS=$ac_save_IFS 13349 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13350 13351 13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13353 $as_echo_n "checking host system type... " >&6; } 13354 if ${ac_cv_host+:} false; then : 13355 $as_echo_n "(cached) " >&6 13356 else 13357 if test "x$host_alias" = x; then 13358 ac_cv_host=$ac_cv_build 13359 else 13360 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13361 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13362 fi 13363 13364 fi 13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13366 $as_echo "$ac_cv_host" >&6; } 13367 case $ac_cv_host in 13368 *-*-*) ;; 13369 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13370 esac 13371 host=$ac_cv_host 13372 ac_save_IFS=$IFS; IFS='-' 13373 set x $ac_cv_host 13374 shift 13375 host_cpu=$1 13376 host_vendor=$2 13377 shift; shift 13378 # Remember, the first character of IFS is used to create $*, 13379 # except with old shells: 13380 host_os=$* 13381 IFS=$ac_save_IFS 13382 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13383 13384 13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13386 $as_echo_n "checking target system type... " >&6; } 13387 if ${ac_cv_target+:} false; then : 13388 $as_echo_n "(cached) " >&6 13389 else 13390 if test "x$target_alias" = x; then 13391 ac_cv_target=$ac_cv_host 13392 else 13393 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13394 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13395 fi 13396 13397 fi 13398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13399 $as_echo "$ac_cv_target" >&6; } 13400 case $ac_cv_target in 13401 *-*-*) ;; 13402 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13403 esac 13404 target=$ac_cv_target 13405 ac_save_IFS=$IFS; IFS='-' 13406 set x $ac_cv_target 13407 shift 13408 target_cpu=$1 13409 target_vendor=$2 13410 shift; shift 13411 # Remember, the first character of IFS is used to create $*, 13412 # except with old shells: 13413 target_os=$* 13414 IFS=$ac_save_IFS 13415 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13416 13417 13418 # The aliases save the names the user supplied, while $host etc. 13419 # will get canonicalized. 13420 test -n "$target_alias" && 13421 test "$program_prefix$program_suffix$program_transform_name" = \ 13422 NONENONEs,x,x, && 13423 program_prefix=${target_alias}- 13424 13425 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13426 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13427 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13428 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13429 # to use the configure naming style. 13430 13431 13432 13433 13434 13435 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13436 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13437 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13438 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13439 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13440 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13441 13442 13443 13444 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13445 13446 case "$build_os" in 13447 *linux*) 13448 VAR_OS=linux 13449 VAR_OS_API=posix 13450 VAR_OS_ENV=linux 13451 ;; 13452 *solaris*) 13453 VAR_OS=solaris 13454 VAR_OS_API=posix 13455 VAR_OS_ENV=solaris 13456 ;; 13457 *darwin*) 13458 VAR_OS=macosx 13459 VAR_OS_API=posix 13460 VAR_OS_ENV=macosx 13461 ;; 13462 *bsd*) 13463 VAR_OS=bsd 13464 VAR_OS_API=posix 13465 VAR_OS_ENV=bsd 13466 ;; 13467 *cygwin*) 13468 VAR_OS=windows 13469 VAR_OS_API=winapi 13470 VAR_OS_ENV=windows.cygwin 13471 ;; 13472 *mingw*) 13473 VAR_OS=windows 13474 VAR_OS_API=winapi 13475 VAR_OS_ENV=windows.msys 13476 ;; 13477 *aix*) 13478 VAR_OS=aix 13479 VAR_OS_API=posix 13480 VAR_OS_ENV=aix 13481 ;; 13482 *) 13483 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13484 ;; 13485 esac 13486 13487 13488 # First argument is the cpu name from the trip/quad 13489 case "$build_cpu" in 13490 x86_64) 13491 VAR_CPU=x86_64 13492 VAR_CPU_ARCH=x86 13493 VAR_CPU_BITS=64 13494 VAR_CPU_ENDIAN=little 13495 ;; 13496 i?86) 13497 VAR_CPU=x86 13498 VAR_CPU_ARCH=x86 13499 VAR_CPU_BITS=32 13500 VAR_CPU_ENDIAN=little 13501 ;; 13502 arm*) 13503 VAR_CPU=arm 13504 VAR_CPU_ARCH=arm 13505 VAR_CPU_BITS=32 13506 VAR_CPU_ENDIAN=little 13507 ;; 13508 powerpc) 13509 VAR_CPU=ppc 13510 VAR_CPU_ARCH=ppc 13511 VAR_CPU_BITS=32 13512 VAR_CPU_ENDIAN=big 13513 ;; 13514 powerpc64) 13515 VAR_CPU=ppc64 13516 VAR_CPU_ARCH=ppc 13517 VAR_CPU_BITS=64 13518 VAR_CPU_ENDIAN=big 13519 ;; 13520 s390) 13521 VAR_CPU=s390 13522 VAR_CPU_ARCH=s390 13523 VAR_CPU_BITS=32 13524 VAR_CPU_ENDIAN=big 13525 ;; 13526 s390x) 13527 VAR_CPU=s390x 13528 VAR_CPU_ARCH=s390 13529 VAR_CPU_BITS=64 13530 VAR_CPU_ENDIAN=big 13531 ;; 13532 sparc) 13533 VAR_CPU=sparc 13534 VAR_CPU_ARCH=sparc 13535 VAR_CPU_BITS=32 13536 VAR_CPU_ENDIAN=big 13537 ;; 13538 sparcv9) 13539 VAR_CPU=sparcv9 13540 VAR_CPU_ARCH=sparc 13541 VAR_CPU_BITS=64 13542 VAR_CPU_ENDIAN=big 13543 ;; 13544 *) 13545 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13546 ;; 13547 esac 13548 13549 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13550 OPENJDK_BUILD_OS="$VAR_OS" 13551 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13552 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13553 OPENJDK_BUILD_CPU="$VAR_CPU" 13554 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13555 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13556 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13557 13558 13559 13560 13561 13562 13563 13564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13565 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13567 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13568 13569 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13570 13571 case "$host_os" in 13572 *linux*) 13573 VAR_OS=linux 13574 VAR_OS_API=posix 13575 VAR_OS_ENV=linux 13576 ;; 13577 *solaris*) 13578 VAR_OS=solaris 13579 VAR_OS_API=posix 13580 VAR_OS_ENV=solaris 13581 ;; 13582 *darwin*) 13583 VAR_OS=macosx 13584 VAR_OS_API=posix 13585 VAR_OS_ENV=macosx 13586 ;; 13587 *bsd*) 13588 VAR_OS=bsd 13589 VAR_OS_API=posix 13590 VAR_OS_ENV=bsd 13591 ;; 13592 *cygwin*) 13593 VAR_OS=windows 13594 VAR_OS_API=winapi 13595 VAR_OS_ENV=windows.cygwin 13596 ;; 13597 *mingw*) 13598 VAR_OS=windows 13599 VAR_OS_API=winapi 13600 VAR_OS_ENV=windows.msys 13601 ;; 13602 *aix*) 13603 VAR_OS=aix 13604 VAR_OS_API=posix 13605 VAR_OS_ENV=aix 13606 ;; 13607 *) 13608 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13609 ;; 13610 esac 13611 13612 13613 # First argument is the cpu name from the trip/quad 13614 case "$host_cpu" in 13615 x86_64) 13616 VAR_CPU=x86_64 13617 VAR_CPU_ARCH=x86 13618 VAR_CPU_BITS=64 13619 VAR_CPU_ENDIAN=little 13620 ;; 13621 i?86) 13622 VAR_CPU=x86 13623 VAR_CPU_ARCH=x86 13624 VAR_CPU_BITS=32 13625 VAR_CPU_ENDIAN=little 13626 ;; 13627 arm*) 13628 VAR_CPU=arm 13629 VAR_CPU_ARCH=arm 13630 VAR_CPU_BITS=32 13631 VAR_CPU_ENDIAN=little 13632 ;; 13633 powerpc) 13634 VAR_CPU=ppc 13635 VAR_CPU_ARCH=ppc 13636 VAR_CPU_BITS=32 13637 VAR_CPU_ENDIAN=big 13638 ;; 13639 powerpc64) 13640 VAR_CPU=ppc64 13641 VAR_CPU_ARCH=ppc 13642 VAR_CPU_BITS=64 13643 VAR_CPU_ENDIAN=big 13644 ;; 13645 s390) 13646 VAR_CPU=s390 13647 VAR_CPU_ARCH=s390 13648 VAR_CPU_BITS=32 13649 VAR_CPU_ENDIAN=big 13650 ;; 13651 s390x) 13652 VAR_CPU=s390x 13653 VAR_CPU_ARCH=s390 13654 VAR_CPU_BITS=64 13655 VAR_CPU_ENDIAN=big 13656 ;; 13657 sparc) 13658 VAR_CPU=sparc 13659 VAR_CPU_ARCH=sparc 13660 VAR_CPU_BITS=32 13661 VAR_CPU_ENDIAN=big 13662 ;; 13663 sparcv9) 13664 VAR_CPU=sparcv9 13665 VAR_CPU_ARCH=sparc 13666 VAR_CPU_BITS=64 13667 VAR_CPU_ENDIAN=big 13668 ;; 13669 *) 13670 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13671 ;; 13672 esac 13673 13674 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13675 OPENJDK_TARGET_OS="$VAR_OS" 13676 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13677 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13678 OPENJDK_TARGET_CPU="$VAR_CPU" 13679 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13680 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13681 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13682 13683 13684 13685 13686 13687 13688 13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13690 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13692 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13693 13694 13695 13696 # Check whether --with-target-bits was given. 13697 if test "${with_target_bits+set}" = set; then : 13698 withval=$with_target_bits; 13699 fi 13700 13701 13702 # We have three types of compiles: 13703 # native == normal compilation, target system == build system 13704 # cross == traditional cross compilation, target system != build system; special toolchain needed 13705 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13706 # 13707 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13708 # We're doing a proper cross-compilation 13709 COMPILE_TYPE="cross" 13710 else 13711 COMPILE_TYPE="native" 13712 fi 13713 13714 if test "x$with_target_bits" != x; then 13715 if test "x$COMPILE_TYPE" = "xcross"; then 13716 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13717 fi 13718 13719 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13720 # A reduced build is requested 13721 COMPILE_TYPE="reduced" 13722 OPENJDK_TARGET_CPU_BITS=32 13723 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13724 OPENJDK_TARGET_CPU=x86 13725 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13726 OPENJDK_TARGET_CPU=sparc 13727 else 13728 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13729 fi 13730 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13731 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 13732 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13733 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13734 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13735 else 13736 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13737 fi 13738 fi 13739 13740 13741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13742 $as_echo_n "checking compilation type... " >&6; } 13743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13744 $as_echo "$COMPILE_TYPE" >&6; } 13745 13746 13747 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13748 REQUIRED_OS_NAME=SunOS 13749 REQUIRED_OS_VERSION=5.10 13750 fi 13751 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13752 REQUIRED_OS_NAME=Linux 13753 REQUIRED_OS_VERSION=2.6 13754 fi 13755 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13756 REQUIRED_OS_NAME=Windows 13757 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13758 REQUIRED_OS_VERSION=5.2 13759 else 13760 REQUIRED_OS_VERSION=5.1 13761 fi 13762 fi 13763 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13764 REQUIRED_OS_NAME=Darwin 13765 REQUIRED_OS_VERSION=11.2 13766 fi 13767 13768 13769 13770 13771 13772 # Also store the legacy naming of the cpu. 13773 # Ie i586 and amd64 instead of x86 and x86_64 13774 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13775 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13776 OPENJDK_TARGET_CPU_LEGACY="i586" 13777 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13778 # On all platforms except MacOSX replace x86_64 with amd64. 13779 OPENJDK_TARGET_CPU_LEGACY="amd64" 13780 fi 13781 13782 13783 # And the second legacy naming of the cpu. 13784 # Ie i386 and amd64 instead of x86 and x86_64. 13785 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13786 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13787 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13788 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13789 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13790 fi 13791 13792 13793 # This is the name of the cpu (but using i386 and amd64 instead of 13794 # x86 and x86_64, respectively), preceeded by a /, to be used when 13795 # locating libraries. On macosx, it's empty, though. 13796 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13797 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13798 OPENJDK_TARGET_CPU_LIBDIR="" 13799 fi 13800 13801 13802 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13803 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13804 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13805 OPENJDK_TARGET_CPU_ISADIR="" 13806 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13807 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13808 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13809 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13810 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13811 fi 13812 fi 13813 13814 13815 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13816 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13817 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13818 # On linux only, we replace x86 with i386. 13819 OPENJDK_TARGET_CPU_OSARCH="i386" 13820 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13821 # On all platforms except macosx, we replace x86_64 with amd64. 13822 OPENJDK_TARGET_CPU_OSARCH="amd64" 13823 fi 13824 13825 13826 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13827 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13828 OPENJDK_TARGET_CPU_JLI="i386" 13829 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13830 # On all platforms except macosx, we replace x86_64 with amd64. 13831 OPENJDK_TARGET_CPU_JLI="amd64" 13832 fi 13833 # Now setup the -D flags for building libjli. 13834 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13835 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13836 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13837 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13838 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13839 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13840 fi 13841 fi 13842 13843 13844 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13845 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13846 OPENJDK_TARGET_OS_API_DIR="solaris" 13847 fi 13848 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13849 OPENJDK_TARGET_OS_API_DIR="windows" 13850 fi 13851 13852 13853 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13854 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13855 else 13856 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13857 fi 13858 13859 13860 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13861 A_LP64="LP64:=" 13862 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13863 # unpack200.exe 13864 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13865 ADD_LP64="-D_LP64=1" 13866 fi 13867 fi 13868 LP64=$A_LP64 13869 13870 13871 if test "x$COMPILE_TYPE" = "xcross"; then 13872 # FIXME: ... or should this include reduced builds..? 13873 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13874 else 13875 DEFINE_CROSS_COMPILE_ARCH="" 13876 fi 13877 13878 13879 # ZERO_ARCHDEF is used to enable architecture-specific code 13880 case "${OPENJDK_TARGET_CPU}" in 13881 ppc*) ZERO_ARCHDEF=PPC ;; 13882 s390*) ZERO_ARCHDEF=S390 ;; 13883 sparc*) ZERO_ARCHDEF=SPARC ;; 13884 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13885 x86) ZERO_ARCHDEF=IA32 ;; 13886 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13887 esac 13888 13889 13890 13891 13892 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13893 13894 # Save the current directory this script was started from 13895 CURDIR="$PWD" 13896 13897 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13898 PATH_SEP=";" 13899 13900 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13901 if test $SRC_ROOT_LENGTH -gt 100; then 13902 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13903 fi 13904 13905 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13907 $as_echo_n "checking cygwin release... " >&6; } 13908 CYGWIN_VERSION=`$UNAME -r` 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13910 $as_echo "$CYGWIN_VERSION" >&6; } 13911 WINDOWS_ENV_VENDOR='cygwin' 13912 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13913 13914 CYGWIN_VERSION_OK=`$ECHO $CYGWIN_VERSION | $GREP ^1.7.` 13915 if test "x$CYGWIN_VERSION_OK" = x; then 13916 { $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 13917 $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;} 13918 as_fn_error $? "Cannot continue" "$LINENO" 5 13919 fi 13920 if test "x$CYGPATH" = x; then 13921 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13922 fi 13923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13924 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13925 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13926 cygwin_winpath_root=`cd / ; cmd /c cd | grep ".*"` 13927 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13928 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13930 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13931 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13932 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13933 if test "x$test_cygdrive_prefix" = x; then 13934 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13935 fi 13936 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13938 $as_echo_n "checking msys release... " >&6; } 13939 MSYS_VERSION=`$UNAME -r` 13940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13941 $as_echo "$MSYS_VERSION" >&6; } 13942 13943 WINDOWS_ENV_VENDOR='msys' 13944 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13945 13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13947 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13948 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13949 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13950 13951 windows_path="$MSYS_ROOT_PATH" 13952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13953 unix_path=`$CYGPATH -u "$windows_path"` 13954 MSYS_ROOT_PATH="$unix_path" 13955 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13956 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13957 MSYS_ROOT_PATH="$unix_path" 13958 fi 13959 13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13961 $as_echo "$MSYS_ROOT_PATH" >&6; } 13962 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13963 else 13964 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13965 fi 13966 13967 # Test if windows or unix (cygwin/msys) find is first in path. 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13969 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13970 FIND_BINARY_OUTPUT=`find --version 2>&1` 13971 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13973 $as_echo "unix style" >&6; } 13974 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13976 $as_echo "Windows" >&6; } 13977 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13978 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13979 { $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 13980 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13981 as_fn_error $? "Cannot continue" "$LINENO" 5 13982 else 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13984 $as_echo "unknown" >&6; } 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 13986 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 13987 fi 13988 13989 else 13990 PATH_SEP=":" 13991 fi 13992 13993 13994 # We get the top-level directory from the supporting wrappers. 13995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 13996 $as_echo_n "checking for top-level directory... " >&6; } 13997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 13998 $as_echo "$TOPDIR" >&6; } 13999 14000 14001 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14002 14003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14004 14005 # Input might be given as Windows format, start by converting to 14006 # unix format. 14007 path="$CURDIR" 14008 new_path=`$CYGPATH -u "$path"` 14009 14010 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14011 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14012 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14013 # "foo.exe" is OK but "foo" is an error. 14014 # 14015 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14016 # It is also a way to make sure we got the proper file name for the real test later on. 14017 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14018 if test "x$test_shortpath" = x; then 14019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14020 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14021 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14022 fi 14023 14024 # Call helper function which possibly converts this using DOS-style short mode. 14025 # If so, the updated path is stored in $new_path. 14026 14027 input_path="$new_path" 14028 # Check if we need to convert this using DOS-style short mode. If the path 14029 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14030 # take no chances and rewrite it. 14031 # Note: m4 eats our [], so we need to use [ and ] instead. 14032 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14033 if test "x$has_forbidden_chars" != x; then 14034 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14035 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14036 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14037 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14038 # Going to short mode and back again did indeed matter. Since short mode is 14039 # case insensitive, let's make it lowercase to improve readability. 14040 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14041 # Now convert it back to Unix-stile (cygpath) 14042 input_path=`$CYGPATH -u "$shortmode_path"` 14043 new_path="$input_path" 14044 fi 14045 fi 14046 14047 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14048 if test "x$test_cygdrive_prefix" = x; then 14049 # As a simple fix, exclude /usr/bin since it's not a real path. 14050 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14051 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14052 # a path prefixed by /cygdrive for fixpath to work. 14053 new_path="$CYGWIN_ROOT_PATH$input_path" 14054 fi 14055 fi 14056 14057 14058 if test "x$path" != "x$new_path"; then 14059 CURDIR="$new_path" 14060 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14061 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14062 fi 14063 14064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14065 14066 path="$CURDIR" 14067 has_colon=`$ECHO $path | $GREP ^.:` 14068 new_path="$path" 14069 if test "x$has_colon" = x; then 14070 # Not in mixed or Windows style, start by that. 14071 new_path=`cmd //c echo $path` 14072 fi 14073 14074 14075 input_path="$new_path" 14076 # Check if we need to convert this using DOS-style short mode. If the path 14077 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14078 # take no chances and rewrite it. 14079 # Note: m4 eats our [], so we need to use [ and ] instead. 14080 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14081 if test "x$has_forbidden_chars" != x; then 14082 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14083 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14084 fi 14085 14086 14087 windows_path="$new_path" 14088 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14089 unix_path=`$CYGPATH -u "$windows_path"` 14090 new_path="$unix_path" 14091 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14092 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14093 new_path="$unix_path" 14094 fi 14095 14096 if test "x$path" != "x$new_path"; then 14097 CURDIR="$new_path" 14098 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14099 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14100 fi 14101 14102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14104 14105 else 14106 # We're on a posix platform. Hooray! :) 14107 path="$CURDIR" 14108 has_space=`$ECHO "$path" | $GREP " "` 14109 if test "x$has_space" != x; then 14110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14111 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14112 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14113 fi 14114 14115 # Use eval to expand a potential ~ 14116 eval path="$path" 14117 if test ! -f "$path" && test ! -d "$path"; then 14118 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14119 fi 14120 14121 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14122 fi 14123 14124 14125 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14126 14127 # Input might be given as Windows format, start by converting to 14128 # unix format. 14129 path="$TOPDIR" 14130 new_path=`$CYGPATH -u "$path"` 14131 14132 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14133 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14134 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14135 # "foo.exe" is OK but "foo" is an error. 14136 # 14137 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14138 # It is also a way to make sure we got the proper file name for the real test later on. 14139 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14140 if test "x$test_shortpath" = x; then 14141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14142 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14143 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14144 fi 14145 14146 # Call helper function which possibly converts this using DOS-style short mode. 14147 # If so, the updated path is stored in $new_path. 14148 14149 input_path="$new_path" 14150 # Check if we need to convert this using DOS-style short mode. If the path 14151 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14152 # take no chances and rewrite it. 14153 # Note: m4 eats our [], so we need to use [ and ] instead. 14154 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14155 if test "x$has_forbidden_chars" != x; then 14156 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14157 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14158 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14159 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14160 # Going to short mode and back again did indeed matter. Since short mode is 14161 # case insensitive, let's make it lowercase to improve readability. 14162 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14163 # Now convert it back to Unix-stile (cygpath) 14164 input_path=`$CYGPATH -u "$shortmode_path"` 14165 new_path="$input_path" 14166 fi 14167 fi 14168 14169 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14170 if test "x$test_cygdrive_prefix" = x; then 14171 # As a simple fix, exclude /usr/bin since it's not a real path. 14172 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14173 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14174 # a path prefixed by /cygdrive for fixpath to work. 14175 new_path="$CYGWIN_ROOT_PATH$input_path" 14176 fi 14177 fi 14178 14179 14180 if test "x$path" != "x$new_path"; then 14181 TOPDIR="$new_path" 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14183 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14184 fi 14185 14186 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14187 14188 path="$TOPDIR" 14189 has_colon=`$ECHO $path | $GREP ^.:` 14190 new_path="$path" 14191 if test "x$has_colon" = x; then 14192 # Not in mixed or Windows style, start by that. 14193 new_path=`cmd //c echo $path` 14194 fi 14195 14196 14197 input_path="$new_path" 14198 # Check if we need to convert this using DOS-style short mode. If the path 14199 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14200 # take no chances and rewrite it. 14201 # Note: m4 eats our [], so we need to use [ and ] instead. 14202 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14203 if test "x$has_forbidden_chars" != x; then 14204 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14205 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14206 fi 14207 14208 14209 windows_path="$new_path" 14210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14211 unix_path=`$CYGPATH -u "$windows_path"` 14212 new_path="$unix_path" 14213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14215 new_path="$unix_path" 14216 fi 14217 14218 if test "x$path" != "x$new_path"; then 14219 TOPDIR="$new_path" 14220 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14221 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14222 fi 14223 14224 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14225 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14226 14227 else 14228 # We're on a posix platform. Hooray! :) 14229 path="$TOPDIR" 14230 has_space=`$ECHO "$path" | $GREP " "` 14231 if test "x$has_space" != x; then 14232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14233 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14234 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14235 fi 14236 14237 # Use eval to expand a potential ~ 14238 eval path="$path" 14239 if test ! -f "$path" && test ! -d "$path"; then 14240 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14241 fi 14242 14243 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14244 fi 14245 14246 # SRC_ROOT is a traditional alias for TOPDIR. 14247 SRC_ROOT=$TOPDIR 14248 14249 # Locate the directory of this script. 14250 AUTOCONF_DIR=$TOPDIR/common/autoconf 14251 14252 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14253 # Add extra search paths on solaris for utilities like ar and as etc... 14254 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14255 fi 14256 14257 # You can force the sys-root if the sys-root encoded into the cross compiler tools 14258 # is not correct. 14259 14260 # Check whether --with-sys-root was given. 14261 if test "${with_sys_root+set}" = set; then : 14262 withval=$with_sys_root; 14263 fi 14264 14265 14266 if test "x$with_sys_root" != x; then 14267 SYS_ROOT=$with_sys_root 14268 else 14269 SYS_ROOT=/ 14270 fi 14271 14272 14273 14274 # Check whether --with-tools-dir was given. 14275 if test "${with_tools_dir+set}" = set; then : 14276 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir 14277 14278 fi 14279 14280 14281 14282 # Check whether --with-devkit was given. 14283 if test "${with_devkit+set}" = set; then : 14284 withval=$with_devkit; 14285 if test "x$with_sys_root" != x; then 14286 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5 14287 fi 14288 14289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14290 14291 # Input might be given as Windows format, start by converting to 14292 # unix format. 14293 path="$with_devkit" 14294 new_path=`$CYGPATH -u "$path"` 14295 14296 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14297 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14298 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14299 # "foo.exe" is OK but "foo" is an error. 14300 # 14301 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14302 # It is also a way to make sure we got the proper file name for the real test later on. 14303 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14304 if test "x$test_shortpath" = x; then 14305 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14306 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14307 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14308 fi 14309 14310 # Call helper function which possibly converts this using DOS-style short mode. 14311 # If so, the updated path is stored in $new_path. 14312 14313 input_path="$new_path" 14314 # Check if we need to convert this using DOS-style short mode. If the path 14315 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14316 # take no chances and rewrite it. 14317 # Note: m4 eats our [], so we need to use [ and ] instead. 14318 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14319 if test "x$has_forbidden_chars" != x; then 14320 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14321 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14322 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14323 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14324 # Going to short mode and back again did indeed matter. Since short mode is 14325 # case insensitive, let's make it lowercase to improve readability. 14326 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14327 # Now convert it back to Unix-stile (cygpath) 14328 input_path=`$CYGPATH -u "$shortmode_path"` 14329 new_path="$input_path" 14330 fi 14331 fi 14332 14333 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14334 if test "x$test_cygdrive_prefix" = x; then 14335 # As a simple fix, exclude /usr/bin since it's not a real path. 14336 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14337 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14338 # a path prefixed by /cygdrive for fixpath to work. 14339 new_path="$CYGWIN_ROOT_PATH$input_path" 14340 fi 14341 fi 14342 14343 14344 if test "x$path" != "x$new_path"; then 14345 with_devkit="$new_path" 14346 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14347 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14348 fi 14349 14350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14351 14352 path="$with_devkit" 14353 has_colon=`$ECHO $path | $GREP ^.:` 14354 new_path="$path" 14355 if test "x$has_colon" = x; then 14356 # Not in mixed or Windows style, start by that. 14357 new_path=`cmd //c echo $path` 14358 fi 14359 14360 14361 input_path="$new_path" 14362 # Check if we need to convert this using DOS-style short mode. If the path 14363 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14364 # take no chances and rewrite it. 14365 # Note: m4 eats our [], so we need to use [ and ] instead. 14366 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14367 if test "x$has_forbidden_chars" != x; then 14368 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14369 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14370 fi 14371 14372 14373 windows_path="$new_path" 14374 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14375 unix_path=`$CYGPATH -u "$windows_path"` 14376 new_path="$unix_path" 14377 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14378 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14379 new_path="$unix_path" 14380 fi 14381 14382 if test "x$path" != "x$new_path"; then 14383 with_devkit="$new_path" 14384 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14385 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14386 fi 14387 14388 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14389 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14390 14391 else 14392 # We're on a posix platform. Hooray! :) 14393 path="$with_devkit" 14394 has_space=`$ECHO "$path" | $GREP " "` 14395 if test "x$has_space" != x; then 14396 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14397 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14398 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14399 fi 14400 14401 # Use eval to expand a potential ~ 14402 eval path="$path" 14403 if test ! -f "$path" && test ! -d "$path"; then 14404 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14405 fi 14406 14407 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14408 fi 14409 14410 14411 if test "x$TOOLS_DIR" = x; then 14412 TOOLS_DIR="$with_devkit/bin" 14413 else 14414 TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin" 14415 fi 14416 14417 if test -d "$with_devkit/$host_alias/libc"; then 14418 SYS_ROOT=$with_devkit/$host_alias/libc 14419 elif test -d "$with_devkit/$host/sys-root"; then 14420 SYS_ROOT=$with_devkit/$host/sys-root 14421 fi 14422 14423 fi 14424 14425 14426 14427 # Setup default logging of stdout and stderr to build.log in the output root. 14428 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14429 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14430 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14431 14432 14433 14434 14435 14436 # Check if it's a pure open build or if custom sources are to be used. 14437 14438 # Check whether --enable-openjdk-only was given. 14439 if test "${enable_openjdk_only+set}" = set; then : 14440 enableval=$enable_openjdk_only; 14441 else 14442 enable_openjdk_only="no" 14443 fi 14444 14445 14446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14447 $as_echo_n "checking for presence of closed sources... " >&6; } 14448 if test -d "$SRC_ROOT/jdk/src/closed"; then 14449 CLOSED_SOURCE_PRESENT=yes 14450 else 14451 CLOSED_SOURCE_PRESENT=no 14452 fi 14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14454 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14455 14456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14457 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14458 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14460 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14461 14462 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14463 OPENJDK=true 14464 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14466 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14467 fi 14468 else 14469 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14470 OPENJDK=true 14471 else 14472 OPENJDK=false 14473 fi 14474 fi 14475 14476 if test "x$OPENJDK" = "xtrue"; then 14477 SET_OPENJDK="OPENJDK=true" 14478 fi 14479 14480 14481 14482 # custom-make-dir is deprecated. Please use your custom-hook.m4 to override 14483 # the IncludeCustomExtension macro. 14484 14485 14486 # Check whether --with-custom-make-dir was given. 14487 if test "${with_custom_make_dir+set}" = set; then : 14488 withval=$with_custom_make_dir; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&5 14489 $as_echo "$as_me: WARNING: Option --with-custom-make-dir is deprecated and will be ignored." >&2;} 14490 fi 14491 14492 14493 14494 14495 # These are needed to be able to create a configuration name (and thus the output directory) 14496 14497 ############################################################################### 14498 # 14499 # Check which variant of the JDK that we want to build. 14500 # Currently we have: 14501 # normal: standard edition 14502 # but the custom make system may add other variants 14503 # 14504 # Effectively the JDK variant gives a name to a specific set of 14505 # modules to compile into the JDK. In the future, these modules 14506 # might even be Jigsaw modules. 14507 # 14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14509 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14510 14511 # Check whether --with-jdk-variant was given. 14512 if test "${with_jdk_variant+set}" = set; then : 14513 withval=$with_jdk_variant; 14514 fi 14515 14516 14517 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14518 JDK_VARIANT="normal" 14519 else 14520 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14521 fi 14522 14523 14524 14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14526 $as_echo "$JDK_VARIANT" >&6; } 14527 14528 14529 ############################################################################### 14530 # 14531 # Check which interpreter of the JVM we want to build. 14532 # Currently we have: 14533 # template: Template interpreter (the default) 14534 # cpp : C++ interpreter 14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14536 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14537 14538 # Check whether --with-jvm-interpreter was given. 14539 if test "${with_jvm_interpreter+set}" = set; then : 14540 withval=$with_jvm_interpreter; 14541 fi 14542 14543 14544 if test "x$with_jvm_interpreter" = x; then 14545 with_jvm_interpreter="template" 14546 fi 14547 14548 JVM_INTERPRETER="$with_jvm_interpreter" 14549 14550 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14551 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14552 fi 14553 14554 14555 14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14557 $as_echo "$with_jvm_interpreter" >&6; } 14558 14559 14560 14561 ############################################################################### 14562 # 14563 # Check which variants of the JVM that we want to build. 14564 # Currently we have: 14565 # server: normal interpreter and a tiered C1/C2 compiler 14566 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14567 # minimal1: reduced form of client with optional VM services and features stripped out 14568 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14569 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14570 # zero: no machine code interpreter, no compiler 14571 # zeroshark: zero interpreter and shark/llvm compiler backend 14572 # core: interpreter only, no compiler (only works on some platforms) 14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14574 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14575 14576 # Check whether --with-jvm-variants was given. 14577 if test "${with_jvm_variants+set}" = set; then : 14578 withval=$with_jvm_variants; 14579 fi 14580 14581 14582 if test "x$with_jvm_variants" = x; then 14583 with_jvm_variants="server" 14584 fi 14585 14586 JVM_VARIANTS=",$with_jvm_variants," 14587 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,//'` 14588 14589 if test "x$TEST_VARIANTS" != "x,"; then 14590 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14591 fi 14592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14593 $as_echo "$with_jvm_variants" >&6; } 14594 14595 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14596 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14597 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14598 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14599 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14600 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14601 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14602 14603 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14604 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14605 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14606 fi 14607 fi 14608 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14609 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14610 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14611 fi 14612 fi 14613 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14614 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14615 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14616 fi 14617 fi 14618 14619 # Replace the commas with AND for use in the build directory name. 14620 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14621 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/'` 14622 if test "x$COUNT_VARIANTS" != "x,1"; then 14623 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14624 else 14625 BUILDING_MULTIPLE_JVM_VARIANTS=no 14626 fi 14627 14628 14629 14630 14631 14632 14633 14634 14635 14636 14637 INCLUDE_SA=true 14638 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14639 INCLUDE_SA=false 14640 fi 14641 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14642 INCLUDE_SA=false 14643 fi 14644 if test "x$VAR_CPU" = xppc64 ; then 14645 INCLUDE_SA=false 14646 fi 14647 14648 14649 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14650 MACOSX_UNIVERSAL="true" 14651 fi 14652 14653 14654 14655 14656 ############################################################################### 14657 # 14658 # Set the debug level 14659 # release: no debug information, all optimizations, no asserts. 14660 # fastdebug: debug information (-g), all optimizations, all asserts 14661 # slowdebug: debug information (-g), no optimizations, all asserts 14662 # 14663 DEBUG_LEVEL="release" 14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14665 $as_echo_n "checking which debug level to use... " >&6; } 14666 # Check whether --enable-debug was given. 14667 if test "${enable_debug+set}" = set; then : 14668 enableval=$enable_debug; 14669 ENABLE_DEBUG="${enableval}" 14670 DEBUG_LEVEL="fastdebug" 14671 14672 else 14673 ENABLE_DEBUG="no" 14674 fi 14675 14676 14677 14678 # Check whether --with-debug-level was given. 14679 if test "${with_debug_level+set}" = set; then : 14680 withval=$with_debug_level; 14681 DEBUG_LEVEL="${withval}" 14682 if test "x$ENABLE_DEBUG" = xyes; then 14683 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14684 fi 14685 14686 fi 14687 14688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14689 $as_echo "$DEBUG_LEVEL" >&6; } 14690 14691 if test "x$DEBUG_LEVEL" != xrelease && \ 14692 test "x$DEBUG_LEVEL" != xfastdebug && \ 14693 test "x$DEBUG_LEVEL" != xslowdebug; then 14694 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14695 fi 14696 14697 14698 ############################################################################### 14699 # 14700 # Setup legacy vars/targets and new vars to deal with different debug levels. 14701 # 14702 14703 case $DEBUG_LEVEL in 14704 release ) 14705 VARIANT="OPT" 14706 FASTDEBUG="false" 14707 DEBUG_CLASSFILES="false" 14708 BUILD_VARIANT_RELEASE="" 14709 HOTSPOT_DEBUG_LEVEL="product" 14710 HOTSPOT_EXPORT="product" 14711 ;; 14712 fastdebug ) 14713 VARIANT="DBG" 14714 FASTDEBUG="true" 14715 DEBUG_CLASSFILES="true" 14716 BUILD_VARIANT_RELEASE="-fastdebug" 14717 HOTSPOT_DEBUG_LEVEL="fastdebug" 14718 HOTSPOT_EXPORT="fastdebug" 14719 ;; 14720 slowdebug ) 14721 VARIANT="DBG" 14722 FASTDEBUG="false" 14723 DEBUG_CLASSFILES="true" 14724 BUILD_VARIANT_RELEASE="-debug" 14725 HOTSPOT_DEBUG_LEVEL="jvmg" 14726 HOTSPOT_EXPORT="debug" 14727 ;; 14728 esac 14729 14730 ##### 14731 # Generate the legacy makefile targets for hotspot. 14732 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14733 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14734 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14735 # But until then ... 14736 HOTSPOT_TARGET="" 14737 14738 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14739 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14740 fi 14741 14742 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14743 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14744 fi 14745 14746 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14747 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14748 fi 14749 14750 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14751 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14752 fi 14753 14754 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14755 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14756 fi 14757 14758 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14759 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14760 fi 14761 14762 if test "x$JVM_VARIANT_CORE" = xtrue; then 14763 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14764 fi 14765 14766 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14767 14768 # On Macosx universal binaries are produced, but they only contain 14769 # 64 bit intel. This invalidates control of which jvms are built 14770 # from configure, but only server is valid anyway. Fix this 14771 # when hotspot makefiles are rewritten. 14772 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14773 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14774 fi 14775 14776 ##### 14777 14778 14779 14780 14781 14782 14783 14784 14785 # With basic setup done, call the custom early hook. 14786 14787 14788 # To properly create a configuration name, we need to have the OpenJDK target 14789 # and options (variants and debug level) parsed. 14790 14791 14792 14793 # Check whether --with-conf-name was given. 14794 if test "${with_conf_name+set}" = set; then : 14795 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14796 fi 14797 14798 14799 # Test from where we are running configure, in or outside of src root. 14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 14801 $as_echo_n "checking where to store configuration... " >&6; } 14802 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14803 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14804 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14805 # We are running configure from the src root. 14806 # Create a default ./build/target-variant-debuglevel output root. 14807 if test "x${CONF_NAME}" = x; then 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 14809 $as_echo "in default location" >&6; } 14810 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14811 else 14812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 14813 $as_echo "in build directory with custom name" >&6; } 14814 fi 14815 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14816 $MKDIR -p "$OUTPUT_ROOT" 14817 if test ! -d "$OUTPUT_ROOT"; then 14818 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14819 fi 14820 else 14821 # We are running configure from outside of the src dir. 14822 # Then use the current directory as output dir! 14823 # If configuration is situated in normal build directory, just use the build 14824 # directory name as configuration name, otherwise use the complete path. 14825 if test "x${CONF_NAME}" = x; then 14826 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14827 fi 14828 OUTPUT_ROOT="$CURDIR" 14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 14830 $as_echo "in current directory" >&6; } 14831 14832 # WARNING: This might be a bad thing to do. You need to be sure you want to 14833 # have a configuration in this directory. Do some sanity checks! 14834 14835 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14836 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14837 # other files 14838 files_present=`$LS $OUTPUT_ROOT` 14839 # Configure has already touched config.log and confdefs.h in the current dir when this check 14840 # is performed. 14841 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14842 | $TR -d '\n'` 14843 if test "x$filtered_files" != x; then 14844 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14845 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14846 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14847 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14848 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14849 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14851 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14853 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14855 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14857 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14858 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14859 fi 14860 fi 14861 fi 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14863 $as_echo_n "checking what configuration name to use... " >&6; } 14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 14865 $as_echo "$CONF_NAME" >&6; } 14866 14867 14868 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14869 14870 # Input might be given as Windows format, start by converting to 14871 # unix format. 14872 path="$OUTPUT_ROOT" 14873 new_path=`$CYGPATH -u "$path"` 14874 14875 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14876 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14877 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14878 # "foo.exe" is OK but "foo" is an error. 14879 # 14880 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14881 # It is also a way to make sure we got the proper file name for the real test later on. 14882 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14883 if test "x$test_shortpath" = x; then 14884 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14885 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14886 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 14887 fi 14888 14889 # Call helper function which possibly converts this using DOS-style short mode. 14890 # If so, the updated path is stored in $new_path. 14891 14892 input_path="$new_path" 14893 # Check if we need to convert this using DOS-style short mode. If the path 14894 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14895 # take no chances and rewrite it. 14896 # Note: m4 eats our [], so we need to use [ and ] instead. 14897 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14898 if test "x$has_forbidden_chars" != x; then 14899 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14900 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14901 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14902 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14903 # Going to short mode and back again did indeed matter. Since short mode is 14904 # case insensitive, let's make it lowercase to improve readability. 14905 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14906 # Now convert it back to Unix-stile (cygpath) 14907 input_path=`$CYGPATH -u "$shortmode_path"` 14908 new_path="$input_path" 14909 fi 14910 fi 14911 14912 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14913 if test "x$test_cygdrive_prefix" = x; then 14914 # As a simple fix, exclude /usr/bin since it's not a real path. 14915 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14916 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14917 # a path prefixed by /cygdrive for fixpath to work. 14918 new_path="$CYGWIN_ROOT_PATH$input_path" 14919 fi 14920 fi 14921 14922 14923 if test "x$path" != "x$new_path"; then 14924 OUTPUT_ROOT="$new_path" 14925 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14926 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14927 fi 14928 14929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14930 14931 path="$OUTPUT_ROOT" 14932 has_colon=`$ECHO $path | $GREP ^.:` 14933 new_path="$path" 14934 if test "x$has_colon" = x; then 14935 # Not in mixed or Windows style, start by that. 14936 new_path=`cmd //c echo $path` 14937 fi 14938 14939 14940 input_path="$new_path" 14941 # Check if we need to convert this using DOS-style short mode. If the path 14942 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14943 # take no chances and rewrite it. 14944 # Note: m4 eats our [], so we need to use [ and ] instead. 14945 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14946 if test "x$has_forbidden_chars" != x; then 14947 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14948 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14949 fi 14950 14951 14952 windows_path="$new_path" 14953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14954 unix_path=`$CYGPATH -u "$windows_path"` 14955 new_path="$unix_path" 14956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14958 new_path="$unix_path" 14959 fi 14960 14961 if test "x$path" != "x$new_path"; then 14962 OUTPUT_ROOT="$new_path" 14963 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14964 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14965 fi 14966 14967 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14968 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14969 14970 else 14971 # We're on a posix platform. Hooray! :) 14972 path="$OUTPUT_ROOT" 14973 has_space=`$ECHO "$path" | $GREP " "` 14974 if test "x$has_space" != x; then 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14976 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14977 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14978 fi 14979 14980 # Use eval to expand a potential ~ 14981 eval path="$path" 14982 if test ! -f "$path" && test ! -d "$path"; then 14983 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 14984 fi 14985 14986 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 14987 fi 14988 14989 14990 SPEC=$OUTPUT_ROOT/spec.gmk 14991 14992 CONF_NAME=$CONF_NAME 14993 14994 OUTPUT_ROOT=$OUTPUT_ROOT 14995 14996 14997 # Most of the probed defines are put into config.h 14998 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 14999 15000 # The spec.gmk file contains all variables for the make system. 15001 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15002 15003 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15004 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15005 15006 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15007 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15008 15009 # The compare.sh is used to compare the build output to other builds. 15010 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15011 15012 # Spec.sh is currently used by compare-objects.sh 15013 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15014 15015 # The generated Makefile knows where the spec.gmk is and where the source is. 15016 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15017 # which will look for generated configurations 15018 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15019 15020 15021 15022 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15023 15024 for ac_prog in apt-get yum port pkgutil pkgadd 15025 do 15026 # Extract the first word of "$ac_prog", so it can be a program name with args. 15027 set dummy $ac_prog; ac_word=$2 15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15029 $as_echo_n "checking for $ac_word... " >&6; } 15030 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15031 $as_echo_n "(cached) " >&6 15032 else 15033 if test -n "$PKGHANDLER"; then 15034 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15035 else 15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15037 for as_dir in $PATH 15038 do 15039 IFS=$as_save_IFS 15040 test -z "$as_dir" && as_dir=. 15041 for ac_exec_ext in '' $ac_executable_extensions; do 15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15043 ac_cv_prog_PKGHANDLER="$ac_prog" 15044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15045 break 2 15046 fi 15047 done 15048 done 15049 IFS=$as_save_IFS 15050 15051 fi 15052 fi 15053 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15054 if test -n "$PKGHANDLER"; then 15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15056 $as_echo "$PKGHANDLER" >&6; } 15057 else 15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15059 $as_echo "no" >&6; } 15060 fi 15061 15062 15063 test -n "$PKGHANDLER" && break 15064 done 15065 15066 15067 15068 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15069 15070 15071 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15072 if test "x$MAKE" != x; then 15073 # User has supplied a make, test it. 15074 if test ! -f "$MAKE"; then 15075 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15076 fi 15077 15078 MAKE_CANDIDATE=""$MAKE"" 15079 DESCRIPTION="user supplied MAKE=$MAKE" 15080 if test "x$MAKE_CANDIDATE" != x; then 15081 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15082 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15083 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15084 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15085 if test "x$IS_GNU_MAKE" = x; then 15086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15087 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15088 else 15089 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15090 if test "x$IS_MODERN_MAKE" = x; then 15091 { $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 15092 $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;} 15093 else 15094 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15095 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15096 MAKE_EXPECTED_ENV='cygwin' 15097 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15098 MAKE_EXPECTED_ENV='msys' 15099 else 15100 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15101 fi 15102 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15103 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15104 else 15105 # Not relevant for non-Windows 15106 IS_MAKE_CORRECT_ENV=true 15107 fi 15108 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15109 { $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 15110 $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;} 15111 else 15112 FOUND_MAKE=$MAKE_CANDIDATE 15113 15114 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15115 15116 # First separate the path from the arguments. This will split at the first 15117 # space. 15118 complete="$FOUND_MAKE" 15119 path="${complete%% *}" 15120 tmp="$complete EOL" 15121 arguments="${tmp#* }" 15122 15123 # Input might be given as Windows format, start by converting to 15124 # unix format. 15125 new_path=`$CYGPATH -u "$path"` 15126 15127 # Now try to locate executable using which 15128 new_path=`$WHICH "$new_path" 2> /dev/null` 15129 # bat and cmd files are not always considered executable in cygwin causing which 15130 # to not find them 15131 if test "x$new_path" = x \ 15132 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15133 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15134 new_path=`$CYGPATH -u "$path"` 15135 fi 15136 if test "x$new_path" = x; then 15137 # Oops. Which didn't find the executable. 15138 # The splitting of arguments from the executable at a space might have been incorrect, 15139 # since paths with space are more likely in Windows. Give it another try with the whole 15140 # argument. 15141 path="$complete" 15142 arguments="EOL" 15143 new_path=`$CYGPATH -u "$path"` 15144 new_path=`$WHICH "$new_path" 2> /dev/null` 15145 # bat and cmd files are not always considered executable in cygwin causing which 15146 # to not find them 15147 if test "x$new_path" = x \ 15148 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15149 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15150 new_path=`$CYGPATH -u "$path"` 15151 fi 15152 if test "x$new_path" = x; then 15153 # It's still not found. Now this is an unrecoverable error. 15154 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15155 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15156 has_space=`$ECHO "$complete" | $GREP " "` 15157 if test "x$has_space" != x; then 15158 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15159 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15160 fi 15161 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15162 fi 15163 fi 15164 15165 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15166 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15167 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15168 # "foo.exe" is OK but "foo" is an error. 15169 # 15170 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15171 # It is also a way to make sure we got the proper file name for the real test later on. 15172 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15173 if test "x$test_shortpath" = x; then 15174 # Short path failed, file does not exist as specified. 15175 # Try adding .exe or .cmd 15176 if test -f "${new_path}.exe"; then 15177 input_to_shortpath="${new_path}.exe" 15178 elif test -f "${new_path}.cmd"; then 15179 input_to_shortpath="${new_path}.cmd" 15180 else 15181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15182 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15183 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15184 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15185 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15186 fi 15187 else 15188 input_to_shortpath="$new_path" 15189 fi 15190 15191 # Call helper function which possibly converts this using DOS-style short mode. 15192 # If so, the updated path is stored in $new_path. 15193 new_path="$input_to_shortpath" 15194 15195 input_path="$input_to_shortpath" 15196 # Check if we need to convert this using DOS-style short mode. If the path 15197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15198 # take no chances and rewrite it. 15199 # Note: m4 eats our [], so we need to use [ and ] instead. 15200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15201 if test "x$has_forbidden_chars" != x; then 15202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15206 # Going to short mode and back again did indeed matter. Since short mode is 15207 # case insensitive, let's make it lowercase to improve readability. 15208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15209 # Now convert it back to Unix-stile (cygpath) 15210 input_path=`$CYGPATH -u "$shortmode_path"` 15211 new_path="$input_path" 15212 fi 15213 fi 15214 15215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15216 if test "x$test_cygdrive_prefix" = x; then 15217 # As a simple fix, exclude /usr/bin since it's not a real path. 15218 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15220 # a path prefixed by /cygdrive for fixpath to work. 15221 new_path="$CYGWIN_ROOT_PATH$input_path" 15222 fi 15223 fi 15224 15225 # remove trailing .exe if any 15226 new_path="${new_path/%.exe/}" 15227 15228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15229 15230 # First separate the path from the arguments. This will split at the first 15231 # space. 15232 complete="$FOUND_MAKE" 15233 path="${complete%% *}" 15234 tmp="$complete EOL" 15235 arguments="${tmp#* }" 15236 15237 # Input might be given as Windows format, start by converting to 15238 # unix format. 15239 new_path="$path" 15240 15241 windows_path="$new_path" 15242 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15243 unix_path=`$CYGPATH -u "$windows_path"` 15244 new_path="$unix_path" 15245 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15246 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15247 new_path="$unix_path" 15248 fi 15249 15250 15251 # Now try to locate executable using which 15252 new_path=`$WHICH "$new_path" 2> /dev/null` 15253 15254 if test "x$new_path" = x; then 15255 # Oops. Which didn't find the executable. 15256 # The splitting of arguments from the executable at a space might have been incorrect, 15257 # since paths with space are more likely in Windows. Give it another try with the whole 15258 # argument. 15259 path="$complete" 15260 arguments="EOL" 15261 new_path="$path" 15262 15263 windows_path="$new_path" 15264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15265 unix_path=`$CYGPATH -u "$windows_path"` 15266 new_path="$unix_path" 15267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15269 new_path="$unix_path" 15270 fi 15271 15272 15273 new_path=`$WHICH "$new_path" 2> /dev/null` 15274 15275 if test "x$new_path" = x; then 15276 # It's still not found. Now this is an unrecoverable error. 15277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15278 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15279 has_space=`$ECHO "$complete" | $GREP " "` 15280 if test "x$has_space" != x; then 15281 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15282 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15283 fi 15284 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15285 fi 15286 fi 15287 15288 # Now new_path has a complete unix path to the binary 15289 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15290 # Keep paths in /bin as-is, but remove trailing .exe if any 15291 new_path="${new_path/%.exe/}" 15292 # Do not save /bin paths to all_fixpath_prefixes! 15293 else 15294 # Not in mixed or Windows style, start by that. 15295 new_path=`cmd //c echo $new_path` 15296 15297 input_path="$new_path" 15298 # Check if we need to convert this using DOS-style short mode. If the path 15299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15300 # take no chances and rewrite it. 15301 # Note: m4 eats our [], so we need to use [ and ] instead. 15302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15303 if test "x$has_forbidden_chars" != x; then 15304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15305 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15306 fi 15307 15308 # Output is in $new_path 15309 15310 windows_path="$new_path" 15311 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15312 unix_path=`$CYGPATH -u "$windows_path"` 15313 new_path="$unix_path" 15314 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15315 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15316 new_path="$unix_path" 15317 fi 15318 15319 # remove trailing .exe if any 15320 new_path="${new_path/%.exe/}" 15321 15322 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15323 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15324 fi 15325 15326 else 15327 # We're on a posix platform. Hooray! :) 15328 # First separate the path from the arguments. This will split at the first 15329 # space. 15330 complete="$FOUND_MAKE" 15331 path="${complete%% *}" 15332 tmp="$complete EOL" 15333 arguments="${tmp#* }" 15334 15335 # Cannot rely on the command "which" here since it doesn't always work. 15336 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15337 if test -z "$is_absolute_path"; then 15338 # Path to executable is not absolute. Find it. 15339 IFS_save="$IFS" 15340 IFS=: 15341 for p in $PATH; do 15342 if test -f "$p/$path" && test -x "$p/$path"; then 15343 new_path="$p/$path" 15344 break 15345 fi 15346 done 15347 IFS="$IFS_save" 15348 else 15349 # This is an absolute path, we can use it without further modifications. 15350 new_path="$path" 15351 fi 15352 15353 if test "x$new_path" = x; then 15354 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15355 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15356 has_space=`$ECHO "$complete" | $GREP " "` 15357 if test "x$has_space" != x; then 15358 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15359 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15360 fi 15361 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15362 fi 15363 fi 15364 15365 # Now join together the path and the arguments once again 15366 if test "x$arguments" != xEOL; then 15367 new_complete="$new_path ${arguments% *}" 15368 else 15369 new_complete="$new_path" 15370 fi 15371 15372 if test "x$complete" != "x$new_complete"; then 15373 FOUND_MAKE="$new_complete" 15374 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15375 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15376 fi 15377 15378 fi 15379 fi 15380 fi 15381 fi 15382 15383 if test "x$FOUND_MAKE" = x; then 15384 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15385 fi 15386 else 15387 # Try our hardest to locate a correct version of GNU make 15388 for ac_prog in gmake 15389 do 15390 # Extract the first word of "$ac_prog", so it can be a program name with args. 15391 set dummy $ac_prog; ac_word=$2 15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15393 $as_echo_n "checking for $ac_word... " >&6; } 15394 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15395 $as_echo_n "(cached) " >&6 15396 else 15397 case $CHECK_GMAKE in 15398 [\\/]* | ?:[\\/]*) 15399 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15400 ;; 15401 *) 15402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15403 for as_dir in $PATH 15404 do 15405 IFS=$as_save_IFS 15406 test -z "$as_dir" && as_dir=. 15407 for ac_exec_ext in '' $ac_executable_extensions; do 15408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15409 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15411 break 2 15412 fi 15413 done 15414 done 15415 IFS=$as_save_IFS 15416 15417 ;; 15418 esac 15419 fi 15420 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15421 if test -n "$CHECK_GMAKE"; then 15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15423 $as_echo "$CHECK_GMAKE" >&6; } 15424 else 15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15426 $as_echo "no" >&6; } 15427 fi 15428 15429 15430 test -n "$CHECK_GMAKE" && break 15431 done 15432 15433 15434 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15435 DESCRIPTION="gmake in PATH" 15436 if test "x$MAKE_CANDIDATE" != x; then 15437 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15438 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15439 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15440 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15441 if test "x$IS_GNU_MAKE" = x; then 15442 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15443 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15444 else 15445 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15446 if test "x$IS_MODERN_MAKE" = x; then 15447 { $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 15448 $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;} 15449 else 15450 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15451 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15452 MAKE_EXPECTED_ENV='cygwin' 15453 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15454 MAKE_EXPECTED_ENV='msys' 15455 else 15456 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15457 fi 15458 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15459 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15460 else 15461 # Not relevant for non-Windows 15462 IS_MAKE_CORRECT_ENV=true 15463 fi 15464 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15465 { $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 15466 $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;} 15467 else 15468 FOUND_MAKE=$MAKE_CANDIDATE 15469 15470 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15471 15472 # First separate the path from the arguments. This will split at the first 15473 # space. 15474 complete="$FOUND_MAKE" 15475 path="${complete%% *}" 15476 tmp="$complete EOL" 15477 arguments="${tmp#* }" 15478 15479 # Input might be given as Windows format, start by converting to 15480 # unix format. 15481 new_path=`$CYGPATH -u "$path"` 15482 15483 # Now try to locate executable using which 15484 new_path=`$WHICH "$new_path" 2> /dev/null` 15485 # bat and cmd files are not always considered executable in cygwin causing which 15486 # to not find them 15487 if test "x$new_path" = x \ 15488 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15489 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15490 new_path=`$CYGPATH -u "$path"` 15491 fi 15492 if test "x$new_path" = x; then 15493 # Oops. Which didn't find the executable. 15494 # The splitting of arguments from the executable at a space might have been incorrect, 15495 # since paths with space are more likely in Windows. Give it another try with the whole 15496 # argument. 15497 path="$complete" 15498 arguments="EOL" 15499 new_path=`$CYGPATH -u "$path"` 15500 new_path=`$WHICH "$new_path" 2> /dev/null` 15501 # bat and cmd files are not always considered executable in cygwin causing which 15502 # to not find them 15503 if test "x$new_path" = x \ 15504 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15505 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15506 new_path=`$CYGPATH -u "$path"` 15507 fi 15508 if test "x$new_path" = x; then 15509 # It's still not found. Now this is an unrecoverable error. 15510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15511 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15512 has_space=`$ECHO "$complete" | $GREP " "` 15513 if test "x$has_space" != x; then 15514 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15515 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15516 fi 15517 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15518 fi 15519 fi 15520 15521 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15522 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15523 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15524 # "foo.exe" is OK but "foo" is an error. 15525 # 15526 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15527 # It is also a way to make sure we got the proper file name for the real test later on. 15528 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15529 if test "x$test_shortpath" = x; then 15530 # Short path failed, file does not exist as specified. 15531 # Try adding .exe or .cmd 15532 if test -f "${new_path}.exe"; then 15533 input_to_shortpath="${new_path}.exe" 15534 elif test -f "${new_path}.cmd"; then 15535 input_to_shortpath="${new_path}.cmd" 15536 else 15537 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15538 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15539 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15540 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15541 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15542 fi 15543 else 15544 input_to_shortpath="$new_path" 15545 fi 15546 15547 # Call helper function which possibly converts this using DOS-style short mode. 15548 # If so, the updated path is stored in $new_path. 15549 new_path="$input_to_shortpath" 15550 15551 input_path="$input_to_shortpath" 15552 # Check if we need to convert this using DOS-style short mode. If the path 15553 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15554 # take no chances and rewrite it. 15555 # Note: m4 eats our [], so we need to use [ and ] instead. 15556 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15557 if test "x$has_forbidden_chars" != x; then 15558 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15559 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15560 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15561 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15562 # Going to short mode and back again did indeed matter. Since short mode is 15563 # case insensitive, let's make it lowercase to improve readability. 15564 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15565 # Now convert it back to Unix-stile (cygpath) 15566 input_path=`$CYGPATH -u "$shortmode_path"` 15567 new_path="$input_path" 15568 fi 15569 fi 15570 15571 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15572 if test "x$test_cygdrive_prefix" = x; then 15573 # As a simple fix, exclude /usr/bin since it's not a real path. 15574 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15575 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15576 # a path prefixed by /cygdrive for fixpath to work. 15577 new_path="$CYGWIN_ROOT_PATH$input_path" 15578 fi 15579 fi 15580 15581 # remove trailing .exe if any 15582 new_path="${new_path/%.exe/}" 15583 15584 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15585 15586 # First separate the path from the arguments. This will split at the first 15587 # space. 15588 complete="$FOUND_MAKE" 15589 path="${complete%% *}" 15590 tmp="$complete EOL" 15591 arguments="${tmp#* }" 15592 15593 # Input might be given as Windows format, start by converting to 15594 # unix format. 15595 new_path="$path" 15596 15597 windows_path="$new_path" 15598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15599 unix_path=`$CYGPATH -u "$windows_path"` 15600 new_path="$unix_path" 15601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15603 new_path="$unix_path" 15604 fi 15605 15606 15607 # Now try to locate executable using which 15608 new_path=`$WHICH "$new_path" 2> /dev/null` 15609 15610 if test "x$new_path" = x; then 15611 # Oops. Which didn't find the executable. 15612 # The splitting of arguments from the executable at a space might have been incorrect, 15613 # since paths with space are more likely in Windows. Give it another try with the whole 15614 # argument. 15615 path="$complete" 15616 arguments="EOL" 15617 new_path="$path" 15618 15619 windows_path="$new_path" 15620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15621 unix_path=`$CYGPATH -u "$windows_path"` 15622 new_path="$unix_path" 15623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15625 new_path="$unix_path" 15626 fi 15627 15628 15629 new_path=`$WHICH "$new_path" 2> /dev/null` 15630 15631 if test "x$new_path" = x; then 15632 # It's still not found. Now this is an unrecoverable error. 15633 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15634 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15635 has_space=`$ECHO "$complete" | $GREP " "` 15636 if test "x$has_space" != x; then 15637 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15638 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15639 fi 15640 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15641 fi 15642 fi 15643 15644 # Now new_path has a complete unix path to the binary 15645 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15646 # Keep paths in /bin as-is, but remove trailing .exe if any 15647 new_path="${new_path/%.exe/}" 15648 # Do not save /bin paths to all_fixpath_prefixes! 15649 else 15650 # Not in mixed or Windows style, start by that. 15651 new_path=`cmd //c echo $new_path` 15652 15653 input_path="$new_path" 15654 # Check if we need to convert this using DOS-style short mode. If the path 15655 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15656 # take no chances and rewrite it. 15657 # Note: m4 eats our [], so we need to use [ and ] instead. 15658 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15659 if test "x$has_forbidden_chars" != x; then 15660 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15661 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15662 fi 15663 15664 # Output is in $new_path 15665 15666 windows_path="$new_path" 15667 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15668 unix_path=`$CYGPATH -u "$windows_path"` 15669 new_path="$unix_path" 15670 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15671 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15672 new_path="$unix_path" 15673 fi 15674 15675 # remove trailing .exe if any 15676 new_path="${new_path/%.exe/}" 15677 15678 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15679 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15680 fi 15681 15682 else 15683 # We're on a posix platform. Hooray! :) 15684 # First separate the path from the arguments. This will split at the first 15685 # space. 15686 complete="$FOUND_MAKE" 15687 path="${complete%% *}" 15688 tmp="$complete EOL" 15689 arguments="${tmp#* }" 15690 15691 # Cannot rely on the command "which" here since it doesn't always work. 15692 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15693 if test -z "$is_absolute_path"; then 15694 # Path to executable is not absolute. Find it. 15695 IFS_save="$IFS" 15696 IFS=: 15697 for p in $PATH; do 15698 if test -f "$p/$path" && test -x "$p/$path"; then 15699 new_path="$p/$path" 15700 break 15701 fi 15702 done 15703 IFS="$IFS_save" 15704 else 15705 # This is an absolute path, we can use it without further modifications. 15706 new_path="$path" 15707 fi 15708 15709 if test "x$new_path" = x; then 15710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15711 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15712 has_space=`$ECHO "$complete" | $GREP " "` 15713 if test "x$has_space" != x; then 15714 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15715 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15716 fi 15717 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15718 fi 15719 fi 15720 15721 # Now join together the path and the arguments once again 15722 if test "x$arguments" != xEOL; then 15723 new_complete="$new_path ${arguments% *}" 15724 else 15725 new_complete="$new_path" 15726 fi 15727 15728 if test "x$complete" != "x$new_complete"; then 15729 FOUND_MAKE="$new_complete" 15730 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15731 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15732 fi 15733 15734 fi 15735 fi 15736 fi 15737 fi 15738 15739 15740 if test "x$FOUND_MAKE" = x; then 15741 for ac_prog in make 15742 do 15743 # Extract the first word of "$ac_prog", so it can be a program name with args. 15744 set dummy $ac_prog; ac_word=$2 15745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15746 $as_echo_n "checking for $ac_word... " >&6; } 15747 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15748 $as_echo_n "(cached) " >&6 15749 else 15750 case $CHECK_MAKE in 15751 [\\/]* | ?:[\\/]*) 15752 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15753 ;; 15754 *) 15755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15756 for as_dir in $PATH 15757 do 15758 IFS=$as_save_IFS 15759 test -z "$as_dir" && as_dir=. 15760 for ac_exec_ext in '' $ac_executable_extensions; do 15761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15762 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15764 break 2 15765 fi 15766 done 15767 done 15768 IFS=$as_save_IFS 15769 15770 ;; 15771 esac 15772 fi 15773 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15774 if test -n "$CHECK_MAKE"; then 15775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15776 $as_echo "$CHECK_MAKE" >&6; } 15777 else 15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15779 $as_echo "no" >&6; } 15780 fi 15781 15782 15783 test -n "$CHECK_MAKE" && break 15784 done 15785 15786 15787 MAKE_CANDIDATE=""$CHECK_MAKE"" 15788 DESCRIPTION="make in PATH" 15789 if test "x$MAKE_CANDIDATE" != x; then 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15791 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15792 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15793 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15794 if test "x$IS_GNU_MAKE" = x; then 15795 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15796 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15797 else 15798 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15799 if test "x$IS_MODERN_MAKE" = x; then 15800 { $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 15801 $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;} 15802 else 15803 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15804 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15805 MAKE_EXPECTED_ENV='cygwin' 15806 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15807 MAKE_EXPECTED_ENV='msys' 15808 else 15809 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15810 fi 15811 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15812 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15813 else 15814 # Not relevant for non-Windows 15815 IS_MAKE_CORRECT_ENV=true 15816 fi 15817 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15818 { $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 15819 $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;} 15820 else 15821 FOUND_MAKE=$MAKE_CANDIDATE 15822 15823 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15824 15825 # First separate the path from the arguments. This will split at the first 15826 # space. 15827 complete="$FOUND_MAKE" 15828 path="${complete%% *}" 15829 tmp="$complete EOL" 15830 arguments="${tmp#* }" 15831 15832 # Input might be given as Windows format, start by converting to 15833 # unix format. 15834 new_path=`$CYGPATH -u "$path"` 15835 15836 # Now try to locate executable using which 15837 new_path=`$WHICH "$new_path" 2> /dev/null` 15838 # bat and cmd files are not always considered executable in cygwin causing which 15839 # to not find them 15840 if test "x$new_path" = x \ 15841 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15842 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15843 new_path=`$CYGPATH -u "$path"` 15844 fi 15845 if test "x$new_path" = x; then 15846 # Oops. Which didn't find the executable. 15847 # The splitting of arguments from the executable at a space might have been incorrect, 15848 # since paths with space are more likely in Windows. Give it another try with the whole 15849 # argument. 15850 path="$complete" 15851 arguments="EOL" 15852 new_path=`$CYGPATH -u "$path"` 15853 new_path=`$WHICH "$new_path" 2> /dev/null` 15854 # bat and cmd files are not always considered executable in cygwin causing which 15855 # to not find them 15856 if test "x$new_path" = x \ 15857 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15858 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15859 new_path=`$CYGPATH -u "$path"` 15860 fi 15861 if test "x$new_path" = x; then 15862 # It's still not found. Now this is an unrecoverable error. 15863 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15864 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15865 has_space=`$ECHO "$complete" | $GREP " "` 15866 if test "x$has_space" != x; then 15867 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15868 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15869 fi 15870 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15871 fi 15872 fi 15873 15874 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15875 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15876 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15877 # "foo.exe" is OK but "foo" is an error. 15878 # 15879 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15880 # It is also a way to make sure we got the proper file name for the real test later on. 15881 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15882 if test "x$test_shortpath" = x; then 15883 # Short path failed, file does not exist as specified. 15884 # Try adding .exe or .cmd 15885 if test -f "${new_path}.exe"; then 15886 input_to_shortpath="${new_path}.exe" 15887 elif test -f "${new_path}.cmd"; then 15888 input_to_shortpath="${new_path}.cmd" 15889 else 15890 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15891 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15892 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15893 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15894 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15895 fi 15896 else 15897 input_to_shortpath="$new_path" 15898 fi 15899 15900 # Call helper function which possibly converts this using DOS-style short mode. 15901 # If so, the updated path is stored in $new_path. 15902 new_path="$input_to_shortpath" 15903 15904 input_path="$input_to_shortpath" 15905 # Check if we need to convert this using DOS-style short mode. If the path 15906 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15907 # take no chances and rewrite it. 15908 # Note: m4 eats our [], so we need to use [ and ] instead. 15909 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15910 if test "x$has_forbidden_chars" != x; then 15911 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15912 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15913 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15914 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15915 # Going to short mode and back again did indeed matter. Since short mode is 15916 # case insensitive, let's make it lowercase to improve readability. 15917 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15918 # Now convert it back to Unix-stile (cygpath) 15919 input_path=`$CYGPATH -u "$shortmode_path"` 15920 new_path="$input_path" 15921 fi 15922 fi 15923 15924 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15925 if test "x$test_cygdrive_prefix" = x; then 15926 # As a simple fix, exclude /usr/bin since it's not a real path. 15927 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15928 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15929 # a path prefixed by /cygdrive for fixpath to work. 15930 new_path="$CYGWIN_ROOT_PATH$input_path" 15931 fi 15932 fi 15933 15934 # remove trailing .exe if any 15935 new_path="${new_path/%.exe/}" 15936 15937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15938 15939 # First separate the path from the arguments. This will split at the first 15940 # space. 15941 complete="$FOUND_MAKE" 15942 path="${complete%% *}" 15943 tmp="$complete EOL" 15944 arguments="${tmp#* }" 15945 15946 # Input might be given as Windows format, start by converting to 15947 # unix format. 15948 new_path="$path" 15949 15950 windows_path="$new_path" 15951 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15952 unix_path=`$CYGPATH -u "$windows_path"` 15953 new_path="$unix_path" 15954 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15955 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15956 new_path="$unix_path" 15957 fi 15958 15959 15960 # Now try to locate executable using which 15961 new_path=`$WHICH "$new_path" 2> /dev/null` 15962 15963 if test "x$new_path" = x; then 15964 # Oops. Which didn't find the executable. 15965 # The splitting of arguments from the executable at a space might have been incorrect, 15966 # since paths with space are more likely in Windows. Give it another try with the whole 15967 # argument. 15968 path="$complete" 15969 arguments="EOL" 15970 new_path="$path" 15971 15972 windows_path="$new_path" 15973 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15974 unix_path=`$CYGPATH -u "$windows_path"` 15975 new_path="$unix_path" 15976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15977 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15978 new_path="$unix_path" 15979 fi 15980 15981 15982 new_path=`$WHICH "$new_path" 2> /dev/null` 15983 15984 if test "x$new_path" = x; then 15985 # It's still not found. Now this is an unrecoverable error. 15986 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15987 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15988 has_space=`$ECHO "$complete" | $GREP " "` 15989 if test "x$has_space" != x; then 15990 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15991 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15992 fi 15993 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15994 fi 15995 fi 15996 15997 # Now new_path has a complete unix path to the binary 15998 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15999 # Keep paths in /bin as-is, but remove trailing .exe if any 16000 new_path="${new_path/%.exe/}" 16001 # Do not save /bin paths to all_fixpath_prefixes! 16002 else 16003 # Not in mixed or Windows style, start by that. 16004 new_path=`cmd //c echo $new_path` 16005 16006 input_path="$new_path" 16007 # Check if we need to convert this using DOS-style short mode. If the path 16008 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16009 # take no chances and rewrite it. 16010 # Note: m4 eats our [], so we need to use [ and ] instead. 16011 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16012 if test "x$has_forbidden_chars" != x; then 16013 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16014 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16015 fi 16016 16017 # Output is in $new_path 16018 16019 windows_path="$new_path" 16020 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16021 unix_path=`$CYGPATH -u "$windows_path"` 16022 new_path="$unix_path" 16023 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16024 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16025 new_path="$unix_path" 16026 fi 16027 16028 # remove trailing .exe if any 16029 new_path="${new_path/%.exe/}" 16030 16031 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16032 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16033 fi 16034 16035 else 16036 # We're on a posix platform. Hooray! :) 16037 # First separate the path from the arguments. This will split at the first 16038 # space. 16039 complete="$FOUND_MAKE" 16040 path="${complete%% *}" 16041 tmp="$complete EOL" 16042 arguments="${tmp#* }" 16043 16044 # Cannot rely on the command "which" here since it doesn't always work. 16045 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16046 if test -z "$is_absolute_path"; then 16047 # Path to executable is not absolute. Find it. 16048 IFS_save="$IFS" 16049 IFS=: 16050 for p in $PATH; do 16051 if test -f "$p/$path" && test -x "$p/$path"; then 16052 new_path="$p/$path" 16053 break 16054 fi 16055 done 16056 IFS="$IFS_save" 16057 else 16058 # This is an absolute path, we can use it without further modifications. 16059 new_path="$path" 16060 fi 16061 16062 if test "x$new_path" = x; then 16063 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16064 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16065 has_space=`$ECHO "$complete" | $GREP " "` 16066 if test "x$has_space" != x; then 16067 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16068 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16069 fi 16070 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16071 fi 16072 fi 16073 16074 # Now join together the path and the arguments once again 16075 if test "x$arguments" != xEOL; then 16076 new_complete="$new_path ${arguments% *}" 16077 else 16078 new_complete="$new_path" 16079 fi 16080 16081 if test "x$complete" != "x$new_complete"; then 16082 FOUND_MAKE="$new_complete" 16083 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16084 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16085 fi 16086 16087 fi 16088 fi 16089 fi 16090 fi 16091 16092 fi 16093 16094 if test "x$FOUND_MAKE" = x; then 16095 if test "x$TOOLS_DIR" != x; then 16096 # We have a tools-dir, check that as well before giving up. 16097 OLD_PATH=$PATH 16098 PATH=$TOOLS_DIR:$PATH 16099 for ac_prog in gmake 16100 do 16101 # Extract the first word of "$ac_prog", so it can be a program name with args. 16102 set dummy $ac_prog; ac_word=$2 16103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16104 $as_echo_n "checking for $ac_word... " >&6; } 16105 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16106 $as_echo_n "(cached) " >&6 16107 else 16108 case $CHECK_TOOLSDIR_GMAKE in 16109 [\\/]* | ?:[\\/]*) 16110 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16111 ;; 16112 *) 16113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16114 for as_dir in $PATH 16115 do 16116 IFS=$as_save_IFS 16117 test -z "$as_dir" && as_dir=. 16118 for ac_exec_ext in '' $ac_executable_extensions; do 16119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16120 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16122 break 2 16123 fi 16124 done 16125 done 16126 IFS=$as_save_IFS 16127 16128 ;; 16129 esac 16130 fi 16131 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16132 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16134 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16135 else 16136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16137 $as_echo "no" >&6; } 16138 fi 16139 16140 16141 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16142 done 16143 16144 16145 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16146 DESCRIPTION="gmake in tools-dir" 16147 if test "x$MAKE_CANDIDATE" != x; then 16148 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16149 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16150 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16151 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16152 if test "x$IS_GNU_MAKE" = x; then 16153 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16154 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16155 else 16156 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16157 if test "x$IS_MODERN_MAKE" = x; then 16158 { $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 16159 $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;} 16160 else 16161 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16162 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16163 MAKE_EXPECTED_ENV='cygwin' 16164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16165 MAKE_EXPECTED_ENV='msys' 16166 else 16167 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16168 fi 16169 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16170 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16171 else 16172 # Not relevant for non-Windows 16173 IS_MAKE_CORRECT_ENV=true 16174 fi 16175 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16176 { $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 16177 $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;} 16178 else 16179 FOUND_MAKE=$MAKE_CANDIDATE 16180 16181 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16182 16183 # First separate the path from the arguments. This will split at the first 16184 # space. 16185 complete="$FOUND_MAKE" 16186 path="${complete%% *}" 16187 tmp="$complete EOL" 16188 arguments="${tmp#* }" 16189 16190 # Input might be given as Windows format, start by converting to 16191 # unix format. 16192 new_path=`$CYGPATH -u "$path"` 16193 16194 # Now try to locate executable using which 16195 new_path=`$WHICH "$new_path" 2> /dev/null` 16196 # bat and cmd files are not always considered executable in cygwin causing which 16197 # to not find them 16198 if test "x$new_path" = x \ 16199 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16200 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16201 new_path=`$CYGPATH -u "$path"` 16202 fi 16203 if test "x$new_path" = x; then 16204 # Oops. Which didn't find the executable. 16205 # The splitting of arguments from the executable at a space might have been incorrect, 16206 # since paths with space are more likely in Windows. Give it another try with the whole 16207 # argument. 16208 path="$complete" 16209 arguments="EOL" 16210 new_path=`$CYGPATH -u "$path"` 16211 new_path=`$WHICH "$new_path" 2> /dev/null` 16212 # bat and cmd files are not always considered executable in cygwin causing which 16213 # to not find them 16214 if test "x$new_path" = x \ 16215 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16216 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16217 new_path=`$CYGPATH -u "$path"` 16218 fi 16219 if test "x$new_path" = x; then 16220 # It's still not found. Now this is an unrecoverable error. 16221 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16222 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16223 has_space=`$ECHO "$complete" | $GREP " "` 16224 if test "x$has_space" != x; then 16225 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16226 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16227 fi 16228 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16229 fi 16230 fi 16231 16232 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16233 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16234 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16235 # "foo.exe" is OK but "foo" is an error. 16236 # 16237 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16238 # It is also a way to make sure we got the proper file name for the real test later on. 16239 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16240 if test "x$test_shortpath" = x; then 16241 # Short path failed, file does not exist as specified. 16242 # Try adding .exe or .cmd 16243 if test -f "${new_path}.exe"; then 16244 input_to_shortpath="${new_path}.exe" 16245 elif test -f "${new_path}.cmd"; then 16246 input_to_shortpath="${new_path}.cmd" 16247 else 16248 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16249 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16250 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16251 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16252 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16253 fi 16254 else 16255 input_to_shortpath="$new_path" 16256 fi 16257 16258 # Call helper function which possibly converts this using DOS-style short mode. 16259 # If so, the updated path is stored in $new_path. 16260 new_path="$input_to_shortpath" 16261 16262 input_path="$input_to_shortpath" 16263 # Check if we need to convert this using DOS-style short mode. If the path 16264 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16265 # take no chances and rewrite it. 16266 # Note: m4 eats our [], so we need to use [ and ] instead. 16267 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16268 if test "x$has_forbidden_chars" != x; then 16269 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16270 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16271 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16272 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16273 # Going to short mode and back again did indeed matter. Since short mode is 16274 # case insensitive, let's make it lowercase to improve readability. 16275 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16276 # Now convert it back to Unix-stile (cygpath) 16277 input_path=`$CYGPATH -u "$shortmode_path"` 16278 new_path="$input_path" 16279 fi 16280 fi 16281 16282 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16283 if test "x$test_cygdrive_prefix" = x; then 16284 # As a simple fix, exclude /usr/bin since it's not a real path. 16285 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16286 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16287 # a path prefixed by /cygdrive for fixpath to work. 16288 new_path="$CYGWIN_ROOT_PATH$input_path" 16289 fi 16290 fi 16291 16292 # remove trailing .exe if any 16293 new_path="${new_path/%.exe/}" 16294 16295 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16296 16297 # First separate the path from the arguments. This will split at the first 16298 # space. 16299 complete="$FOUND_MAKE" 16300 path="${complete%% *}" 16301 tmp="$complete EOL" 16302 arguments="${tmp#* }" 16303 16304 # Input might be given as Windows format, start by converting to 16305 # unix format. 16306 new_path="$path" 16307 16308 windows_path="$new_path" 16309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16310 unix_path=`$CYGPATH -u "$windows_path"` 16311 new_path="$unix_path" 16312 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16313 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16314 new_path="$unix_path" 16315 fi 16316 16317 16318 # Now try to locate executable using which 16319 new_path=`$WHICH "$new_path" 2> /dev/null` 16320 16321 if test "x$new_path" = x; then 16322 # Oops. Which didn't find the executable. 16323 # The splitting of arguments from the executable at a space might have been incorrect, 16324 # since paths with space are more likely in Windows. Give it another try with the whole 16325 # argument. 16326 path="$complete" 16327 arguments="EOL" 16328 new_path="$path" 16329 16330 windows_path="$new_path" 16331 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16332 unix_path=`$CYGPATH -u "$windows_path"` 16333 new_path="$unix_path" 16334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16335 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16336 new_path="$unix_path" 16337 fi 16338 16339 16340 new_path=`$WHICH "$new_path" 2> /dev/null` 16341 16342 if test "x$new_path" = x; then 16343 # It's still not found. Now this is an unrecoverable error. 16344 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16345 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16346 has_space=`$ECHO "$complete" | $GREP " "` 16347 if test "x$has_space" != x; then 16348 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16349 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16350 fi 16351 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16352 fi 16353 fi 16354 16355 # Now new_path has a complete unix path to the binary 16356 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16357 # Keep paths in /bin as-is, but remove trailing .exe if any 16358 new_path="${new_path/%.exe/}" 16359 # Do not save /bin paths to all_fixpath_prefixes! 16360 else 16361 # Not in mixed or Windows style, start by that. 16362 new_path=`cmd //c echo $new_path` 16363 16364 input_path="$new_path" 16365 # Check if we need to convert this using DOS-style short mode. If the path 16366 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16367 # take no chances and rewrite it. 16368 # Note: m4 eats our [], so we need to use [ and ] instead. 16369 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16370 if test "x$has_forbidden_chars" != x; then 16371 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16372 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16373 fi 16374 16375 # Output is in $new_path 16376 16377 windows_path="$new_path" 16378 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16379 unix_path=`$CYGPATH -u "$windows_path"` 16380 new_path="$unix_path" 16381 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16382 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16383 new_path="$unix_path" 16384 fi 16385 16386 # remove trailing .exe if any 16387 new_path="${new_path/%.exe/}" 16388 16389 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16390 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16391 fi 16392 16393 else 16394 # We're on a posix platform. Hooray! :) 16395 # First separate the path from the arguments. This will split at the first 16396 # space. 16397 complete="$FOUND_MAKE" 16398 path="${complete%% *}" 16399 tmp="$complete EOL" 16400 arguments="${tmp#* }" 16401 16402 # Cannot rely on the command "which" here since it doesn't always work. 16403 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16404 if test -z "$is_absolute_path"; then 16405 # Path to executable is not absolute. Find it. 16406 IFS_save="$IFS" 16407 IFS=: 16408 for p in $PATH; do 16409 if test -f "$p/$path" && test -x "$p/$path"; then 16410 new_path="$p/$path" 16411 break 16412 fi 16413 done 16414 IFS="$IFS_save" 16415 else 16416 # This is an absolute path, we can use it without further modifications. 16417 new_path="$path" 16418 fi 16419 16420 if test "x$new_path" = x; then 16421 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16422 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16423 has_space=`$ECHO "$complete" | $GREP " "` 16424 if test "x$has_space" != x; then 16425 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16426 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16427 fi 16428 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16429 fi 16430 fi 16431 16432 # Now join together the path and the arguments once again 16433 if test "x$arguments" != xEOL; then 16434 new_complete="$new_path ${arguments% *}" 16435 else 16436 new_complete="$new_path" 16437 fi 16438 16439 if test "x$complete" != "x$new_complete"; then 16440 FOUND_MAKE="$new_complete" 16441 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16442 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16443 fi 16444 16445 fi 16446 fi 16447 fi 16448 fi 16449 16450 if test "x$FOUND_MAKE" = x; then 16451 for ac_prog in make 16452 do 16453 # Extract the first word of "$ac_prog", so it can be a program name with args. 16454 set dummy $ac_prog; ac_word=$2 16455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16456 $as_echo_n "checking for $ac_word... " >&6; } 16457 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16458 $as_echo_n "(cached) " >&6 16459 else 16460 case $CHECK_TOOLSDIR_MAKE in 16461 [\\/]* | ?:[\\/]*) 16462 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16463 ;; 16464 *) 16465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16466 for as_dir in $PATH 16467 do 16468 IFS=$as_save_IFS 16469 test -z "$as_dir" && as_dir=. 16470 for ac_exec_ext in '' $ac_executable_extensions; do 16471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16472 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16474 break 2 16475 fi 16476 done 16477 done 16478 IFS=$as_save_IFS 16479 16480 ;; 16481 esac 16482 fi 16483 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16484 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16486 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16487 else 16488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16489 $as_echo "no" >&6; } 16490 fi 16491 16492 16493 test -n "$CHECK_TOOLSDIR_MAKE" && break 16494 done 16495 16496 16497 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16498 DESCRIPTION="make in tools-dir" 16499 if test "x$MAKE_CANDIDATE" != x; then 16500 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16501 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16502 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16503 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16504 if test "x$IS_GNU_MAKE" = x; then 16505 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16506 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16507 else 16508 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16509 if test "x$IS_MODERN_MAKE" = x; then 16510 { $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 16511 $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;} 16512 else 16513 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16514 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16515 MAKE_EXPECTED_ENV='cygwin' 16516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16517 MAKE_EXPECTED_ENV='msys' 16518 else 16519 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16520 fi 16521 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16522 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16523 else 16524 # Not relevant for non-Windows 16525 IS_MAKE_CORRECT_ENV=true 16526 fi 16527 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16528 { $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 16529 $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;} 16530 else 16531 FOUND_MAKE=$MAKE_CANDIDATE 16532 16533 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16534 16535 # First separate the path from the arguments. This will split at the first 16536 # space. 16537 complete="$FOUND_MAKE" 16538 path="${complete%% *}" 16539 tmp="$complete EOL" 16540 arguments="${tmp#* }" 16541 16542 # Input might be given as Windows format, start by converting to 16543 # unix format. 16544 new_path=`$CYGPATH -u "$path"` 16545 16546 # Now try to locate executable using which 16547 new_path=`$WHICH "$new_path" 2> /dev/null` 16548 # bat and cmd files are not always considered executable in cygwin causing which 16549 # to not find them 16550 if test "x$new_path" = x \ 16551 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16552 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16553 new_path=`$CYGPATH -u "$path"` 16554 fi 16555 if test "x$new_path" = x; then 16556 # Oops. Which didn't find the executable. 16557 # The splitting of arguments from the executable at a space might have been incorrect, 16558 # since paths with space are more likely in Windows. Give it another try with the whole 16559 # argument. 16560 path="$complete" 16561 arguments="EOL" 16562 new_path=`$CYGPATH -u "$path"` 16563 new_path=`$WHICH "$new_path" 2> /dev/null` 16564 # bat and cmd files are not always considered executable in cygwin causing which 16565 # to not find them 16566 if test "x$new_path" = x \ 16567 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16568 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16569 new_path=`$CYGPATH -u "$path"` 16570 fi 16571 if test "x$new_path" = x; then 16572 # It's still not found. Now this is an unrecoverable error. 16573 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16574 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16575 has_space=`$ECHO "$complete" | $GREP " "` 16576 if test "x$has_space" != x; then 16577 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16578 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16579 fi 16580 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16581 fi 16582 fi 16583 16584 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16585 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16586 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16587 # "foo.exe" is OK but "foo" is an error. 16588 # 16589 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16590 # It is also a way to make sure we got the proper file name for the real test later on. 16591 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16592 if test "x$test_shortpath" = x; then 16593 # Short path failed, file does not exist as specified. 16594 # Try adding .exe or .cmd 16595 if test -f "${new_path}.exe"; then 16596 input_to_shortpath="${new_path}.exe" 16597 elif test -f "${new_path}.cmd"; then 16598 input_to_shortpath="${new_path}.cmd" 16599 else 16600 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16601 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16602 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16603 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16604 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16605 fi 16606 else 16607 input_to_shortpath="$new_path" 16608 fi 16609 16610 # Call helper function which possibly converts this using DOS-style short mode. 16611 # If so, the updated path is stored in $new_path. 16612 new_path="$input_to_shortpath" 16613 16614 input_path="$input_to_shortpath" 16615 # Check if we need to convert this using DOS-style short mode. If the path 16616 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16617 # take no chances and rewrite it. 16618 # Note: m4 eats our [], so we need to use [ and ] instead. 16619 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16620 if test "x$has_forbidden_chars" != x; then 16621 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16622 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16623 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16624 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16625 # Going to short mode and back again did indeed matter. Since short mode is 16626 # case insensitive, let's make it lowercase to improve readability. 16627 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16628 # Now convert it back to Unix-stile (cygpath) 16629 input_path=`$CYGPATH -u "$shortmode_path"` 16630 new_path="$input_path" 16631 fi 16632 fi 16633 16634 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16635 if test "x$test_cygdrive_prefix" = x; then 16636 # As a simple fix, exclude /usr/bin since it's not a real path. 16637 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16638 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16639 # a path prefixed by /cygdrive for fixpath to work. 16640 new_path="$CYGWIN_ROOT_PATH$input_path" 16641 fi 16642 fi 16643 16644 # remove trailing .exe if any 16645 new_path="${new_path/%.exe/}" 16646 16647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16648 16649 # First separate the path from the arguments. This will split at the first 16650 # space. 16651 complete="$FOUND_MAKE" 16652 path="${complete%% *}" 16653 tmp="$complete EOL" 16654 arguments="${tmp#* }" 16655 16656 # Input might be given as Windows format, start by converting to 16657 # unix format. 16658 new_path="$path" 16659 16660 windows_path="$new_path" 16661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16662 unix_path=`$CYGPATH -u "$windows_path"` 16663 new_path="$unix_path" 16664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16666 new_path="$unix_path" 16667 fi 16668 16669 16670 # Now try to locate executable using which 16671 new_path=`$WHICH "$new_path" 2> /dev/null` 16672 16673 if test "x$new_path" = x; then 16674 # Oops. Which didn't find the executable. 16675 # The splitting of arguments from the executable at a space might have been incorrect, 16676 # since paths with space are more likely in Windows. Give it another try with the whole 16677 # argument. 16678 path="$complete" 16679 arguments="EOL" 16680 new_path="$path" 16681 16682 windows_path="$new_path" 16683 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16684 unix_path=`$CYGPATH -u "$windows_path"` 16685 new_path="$unix_path" 16686 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16687 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16688 new_path="$unix_path" 16689 fi 16690 16691 16692 new_path=`$WHICH "$new_path" 2> /dev/null` 16693 16694 if test "x$new_path" = x; then 16695 # It's still not found. Now this is an unrecoverable error. 16696 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16697 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16698 has_space=`$ECHO "$complete" | $GREP " "` 16699 if test "x$has_space" != x; then 16700 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16701 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16702 fi 16703 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16704 fi 16705 fi 16706 16707 # Now new_path has a complete unix path to the binary 16708 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16709 # Keep paths in /bin as-is, but remove trailing .exe if any 16710 new_path="${new_path/%.exe/}" 16711 # Do not save /bin paths to all_fixpath_prefixes! 16712 else 16713 # Not in mixed or Windows style, start by that. 16714 new_path=`cmd //c echo $new_path` 16715 16716 input_path="$new_path" 16717 # Check if we need to convert this using DOS-style short mode. If the path 16718 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16719 # take no chances and rewrite it. 16720 # Note: m4 eats our [], so we need to use [ and ] instead. 16721 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16722 if test "x$has_forbidden_chars" != x; then 16723 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16724 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16725 fi 16726 16727 # Output is in $new_path 16728 16729 windows_path="$new_path" 16730 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16731 unix_path=`$CYGPATH -u "$windows_path"` 16732 new_path="$unix_path" 16733 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16734 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16735 new_path="$unix_path" 16736 fi 16737 16738 # remove trailing .exe if any 16739 new_path="${new_path/%.exe/}" 16740 16741 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16742 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16743 fi 16744 16745 else 16746 # We're on a posix platform. Hooray! :) 16747 # First separate the path from the arguments. This will split at the first 16748 # space. 16749 complete="$FOUND_MAKE" 16750 path="${complete%% *}" 16751 tmp="$complete EOL" 16752 arguments="${tmp#* }" 16753 16754 # Cannot rely on the command "which" here since it doesn't always work. 16755 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16756 if test -z "$is_absolute_path"; then 16757 # Path to executable is not absolute. Find it. 16758 IFS_save="$IFS" 16759 IFS=: 16760 for p in $PATH; do 16761 if test -f "$p/$path" && test -x "$p/$path"; then 16762 new_path="$p/$path" 16763 break 16764 fi 16765 done 16766 IFS="$IFS_save" 16767 else 16768 # This is an absolute path, we can use it without further modifications. 16769 new_path="$path" 16770 fi 16771 16772 if test "x$new_path" = x; then 16773 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16774 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16775 has_space=`$ECHO "$complete" | $GREP " "` 16776 if test "x$has_space" != x; then 16777 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16778 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16779 fi 16780 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16781 fi 16782 fi 16783 16784 # Now join together the path and the arguments once again 16785 if test "x$arguments" != xEOL; then 16786 new_complete="$new_path ${arguments% *}" 16787 else 16788 new_complete="$new_path" 16789 fi 16790 16791 if test "x$complete" != "x$new_complete"; then 16792 FOUND_MAKE="$new_complete" 16793 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16794 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16795 fi 16796 16797 fi 16798 fi 16799 fi 16800 fi 16801 16802 fi 16803 PATH=$OLD_PATH 16804 fi 16805 fi 16806 16807 if test "x$FOUND_MAKE" = x; then 16808 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 16809 fi 16810 fi 16811 16812 MAKE=$FOUND_MAKE 16813 16814 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16815 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16816 16817 16818 16819 # Test if find supports -delete 16820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16821 $as_echo_n "checking if find supports -delete... " >&6; } 16822 FIND_DELETE="-delete" 16823 16824 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16825 16826 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16827 16828 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16829 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16830 # No, it does not. 16831 rm $DELETEDIR/TestIfFindSupportsDelete 16832 FIND_DELETE="-exec rm \{\} \+" 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16834 $as_echo "no" >&6; } 16835 else 16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16837 $as_echo "yes" >&6; } 16838 fi 16839 rmdir $DELETEDIR 16840 16841 16842 16843 # These tools might not be installed by default, 16844 # need hint on how to install them. 16845 16846 16847 16848 # Publish this variable in the help. 16849 16850 16851 if test "x$UNZIP" = x; then 16852 # The variable is not set by user, try to locate tool using the code snippet 16853 for ac_prog in unzip 16854 do 16855 # Extract the first word of "$ac_prog", so it can be a program name with args. 16856 set dummy $ac_prog; ac_word=$2 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16858 $as_echo_n "checking for $ac_word... " >&6; } 16859 if ${ac_cv_path_UNZIP+:} false; then : 16860 $as_echo_n "(cached) " >&6 16861 else 16862 case $UNZIP in 16863 [\\/]* | ?:[\\/]*) 16864 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16865 ;; 16866 *) 16867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16868 for as_dir in $PATH 16869 do 16870 IFS=$as_save_IFS 16871 test -z "$as_dir" && as_dir=. 16872 for ac_exec_ext in '' $ac_executable_extensions; do 16873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16874 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16876 break 2 16877 fi 16878 done 16879 done 16880 IFS=$as_save_IFS 16881 16882 ;; 16883 esac 16884 fi 16885 UNZIP=$ac_cv_path_UNZIP 16886 if test -n "$UNZIP"; then 16887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16888 $as_echo "$UNZIP" >&6; } 16889 else 16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16891 $as_echo "no" >&6; } 16892 fi 16893 16894 16895 test -n "$UNZIP" && break 16896 done 16897 16898 else 16899 # The variable is set, but is it from the command line or the environment? 16900 16901 # Try to remove the string !UNZIP! from our list. 16902 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 16903 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 16904 # If it failed, the variable was not from the command line. Ignore it, 16905 # but warn the user (except for BASH, which is always set by the calling BASH). 16906 if test "xUNZIP" != xBASH; then 16907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 16908 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 16909 fi 16910 # Try to locate tool using the code snippet 16911 for ac_prog in unzip 16912 do 16913 # Extract the first word of "$ac_prog", so it can be a program name with args. 16914 set dummy $ac_prog; ac_word=$2 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16916 $as_echo_n "checking for $ac_word... " >&6; } 16917 if ${ac_cv_path_UNZIP+:} false; then : 16918 $as_echo_n "(cached) " >&6 16919 else 16920 case $UNZIP in 16921 [\\/]* | ?:[\\/]*) 16922 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16923 ;; 16924 *) 16925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16926 for as_dir in $PATH 16927 do 16928 IFS=$as_save_IFS 16929 test -z "$as_dir" && as_dir=. 16930 for ac_exec_ext in '' $ac_executable_extensions; do 16931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16932 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16934 break 2 16935 fi 16936 done 16937 done 16938 IFS=$as_save_IFS 16939 16940 ;; 16941 esac 16942 fi 16943 UNZIP=$ac_cv_path_UNZIP 16944 if test -n "$UNZIP"; then 16945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16946 $as_echo "$UNZIP" >&6; } 16947 else 16948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16949 $as_echo "no" >&6; } 16950 fi 16951 16952 16953 test -n "$UNZIP" && break 16954 done 16955 16956 else 16957 # If it succeeded, then it was overridden by the user. We will use it 16958 # for the tool. 16959 16960 # First remove it from the list of overridden variables, so we can test 16961 # for unknown variables in the end. 16962 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 16963 16964 # Check if the provided tool contains a complete path. 16965 tool_specified="$UNZIP" 16966 tool_basename="${tool_specified##*/}" 16967 if test "x$tool_basename" = "x$tool_specified"; then 16968 # A command without a complete path is provided, search $PATH. 16969 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 16970 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 16971 # Extract the first word of "$tool_basename", so it can be a program name with args. 16972 set dummy $tool_basename; ac_word=$2 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16974 $as_echo_n "checking for $ac_word... " >&6; } 16975 if ${ac_cv_path_UNZIP+:} false; then : 16976 $as_echo_n "(cached) " >&6 16977 else 16978 case $UNZIP in 16979 [\\/]* | ?:[\\/]*) 16980 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16981 ;; 16982 *) 16983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16984 for as_dir in $PATH 16985 do 16986 IFS=$as_save_IFS 16987 test -z "$as_dir" && as_dir=. 16988 for ac_exec_ext in '' $ac_executable_extensions; do 16989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16990 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16992 break 2 16993 fi 16994 done 16995 done 16996 IFS=$as_save_IFS 16997 16998 ;; 16999 esac 17000 fi 17001 UNZIP=$ac_cv_path_UNZIP 17002 if test -n "$UNZIP"; then 17003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17004 $as_echo "$UNZIP" >&6; } 17005 else 17006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17007 $as_echo "no" >&6; } 17008 fi 17009 17010 17011 if test "x$UNZIP" = x; then 17012 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17013 fi 17014 else 17015 # Otherwise we believe it is a complete path. Use it as it is. 17016 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17017 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17019 $as_echo_n "checking for UNZIP... " >&6; } 17020 if test ! -x "$tool_specified"; then 17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17022 $as_echo "not found" >&6; } 17023 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17024 fi 17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17026 $as_echo "$tool_specified" >&6; } 17027 fi 17028 fi 17029 fi 17030 17031 17032 17033 if test "x$UNZIP" = x; then 17034 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17035 fi 17036 17037 17038 17039 17040 17041 # Publish this variable in the help. 17042 17043 17044 if test "x$ZIP" = x; then 17045 # The variable is not set by user, try to locate tool using the code snippet 17046 for ac_prog in zip 17047 do 17048 # Extract the first word of "$ac_prog", so it can be a program name with args. 17049 set dummy $ac_prog; ac_word=$2 17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17051 $as_echo_n "checking for $ac_word... " >&6; } 17052 if ${ac_cv_path_ZIP+:} false; then : 17053 $as_echo_n "(cached) " >&6 17054 else 17055 case $ZIP in 17056 [\\/]* | ?:[\\/]*) 17057 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17058 ;; 17059 *) 17060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17061 for as_dir in $PATH 17062 do 17063 IFS=$as_save_IFS 17064 test -z "$as_dir" && as_dir=. 17065 for ac_exec_ext in '' $ac_executable_extensions; do 17066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17067 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17069 break 2 17070 fi 17071 done 17072 done 17073 IFS=$as_save_IFS 17074 17075 ;; 17076 esac 17077 fi 17078 ZIP=$ac_cv_path_ZIP 17079 if test -n "$ZIP"; then 17080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17081 $as_echo "$ZIP" >&6; } 17082 else 17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17084 $as_echo "no" >&6; } 17085 fi 17086 17087 17088 test -n "$ZIP" && break 17089 done 17090 17091 else 17092 # The variable is set, but is it from the command line or the environment? 17093 17094 # Try to remove the string !ZIP! from our list. 17095 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17096 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17097 # If it failed, the variable was not from the command line. Ignore it, 17098 # but warn the user (except for BASH, which is always set by the calling BASH). 17099 if test "xZIP" != xBASH; then 17100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17101 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17102 fi 17103 # Try to locate tool using the code snippet 17104 for ac_prog in zip 17105 do 17106 # Extract the first word of "$ac_prog", so it can be a program name with args. 17107 set dummy $ac_prog; ac_word=$2 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17109 $as_echo_n "checking for $ac_word... " >&6; } 17110 if ${ac_cv_path_ZIP+:} false; then : 17111 $as_echo_n "(cached) " >&6 17112 else 17113 case $ZIP in 17114 [\\/]* | ?:[\\/]*) 17115 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17116 ;; 17117 *) 17118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17119 for as_dir in $PATH 17120 do 17121 IFS=$as_save_IFS 17122 test -z "$as_dir" && as_dir=. 17123 for ac_exec_ext in '' $ac_executable_extensions; do 17124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17125 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17127 break 2 17128 fi 17129 done 17130 done 17131 IFS=$as_save_IFS 17132 17133 ;; 17134 esac 17135 fi 17136 ZIP=$ac_cv_path_ZIP 17137 if test -n "$ZIP"; then 17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17139 $as_echo "$ZIP" >&6; } 17140 else 17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17142 $as_echo "no" >&6; } 17143 fi 17144 17145 17146 test -n "$ZIP" && break 17147 done 17148 17149 else 17150 # If it succeeded, then it was overridden by the user. We will use it 17151 # for the tool. 17152 17153 # First remove it from the list of overridden variables, so we can test 17154 # for unknown variables in the end. 17155 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17156 17157 # Check if the provided tool contains a complete path. 17158 tool_specified="$ZIP" 17159 tool_basename="${tool_specified##*/}" 17160 if test "x$tool_basename" = "x$tool_specified"; then 17161 # A command without a complete path is provided, search $PATH. 17162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17163 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17164 # Extract the first word of "$tool_basename", so it can be a program name with args. 17165 set dummy $tool_basename; ac_word=$2 17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17167 $as_echo_n "checking for $ac_word... " >&6; } 17168 if ${ac_cv_path_ZIP+:} false; then : 17169 $as_echo_n "(cached) " >&6 17170 else 17171 case $ZIP in 17172 [\\/]* | ?:[\\/]*) 17173 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17174 ;; 17175 *) 17176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17177 for as_dir in $PATH 17178 do 17179 IFS=$as_save_IFS 17180 test -z "$as_dir" && as_dir=. 17181 for ac_exec_ext in '' $ac_executable_extensions; do 17182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17183 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17185 break 2 17186 fi 17187 done 17188 done 17189 IFS=$as_save_IFS 17190 17191 ;; 17192 esac 17193 fi 17194 ZIP=$ac_cv_path_ZIP 17195 if test -n "$ZIP"; then 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17197 $as_echo "$ZIP" >&6; } 17198 else 17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17200 $as_echo "no" >&6; } 17201 fi 17202 17203 17204 if test "x$ZIP" = x; then 17205 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17206 fi 17207 else 17208 # Otherwise we believe it is a complete path. Use it as it is. 17209 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17210 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17212 $as_echo_n "checking for ZIP... " >&6; } 17213 if test ! -x "$tool_specified"; then 17214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17215 $as_echo "not found" >&6; } 17216 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17217 fi 17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17219 $as_echo "$tool_specified" >&6; } 17220 fi 17221 fi 17222 fi 17223 17224 17225 17226 if test "x$ZIP" = x; then 17227 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17228 fi 17229 17230 17231 17232 # Non-required basic tools 17233 17234 17235 17236 # Publish this variable in the help. 17237 17238 17239 if test "x$LDD" = x; then 17240 # The variable is not set by user, try to locate tool using the code snippet 17241 for ac_prog in ldd 17242 do 17243 # Extract the first word of "$ac_prog", so it can be a program name with args. 17244 set dummy $ac_prog; ac_word=$2 17245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17246 $as_echo_n "checking for $ac_word... " >&6; } 17247 if ${ac_cv_path_LDD+:} false; then : 17248 $as_echo_n "(cached) " >&6 17249 else 17250 case $LDD in 17251 [\\/]* | ?:[\\/]*) 17252 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17253 ;; 17254 *) 17255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17256 for as_dir in $PATH 17257 do 17258 IFS=$as_save_IFS 17259 test -z "$as_dir" && as_dir=. 17260 for ac_exec_ext in '' $ac_executable_extensions; do 17261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17262 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17264 break 2 17265 fi 17266 done 17267 done 17268 IFS=$as_save_IFS 17269 17270 ;; 17271 esac 17272 fi 17273 LDD=$ac_cv_path_LDD 17274 if test -n "$LDD"; then 17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17276 $as_echo "$LDD" >&6; } 17277 else 17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17279 $as_echo "no" >&6; } 17280 fi 17281 17282 17283 test -n "$LDD" && break 17284 done 17285 17286 else 17287 # The variable is set, but is it from the command line or the environment? 17288 17289 # Try to remove the string !LDD! from our list. 17290 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17291 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17292 # If it failed, the variable was not from the command line. Ignore it, 17293 # but warn the user (except for BASH, which is always set by the calling BASH). 17294 if test "xLDD" != xBASH; then 17295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17296 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17297 fi 17298 # Try to locate tool using the code snippet 17299 for ac_prog in ldd 17300 do 17301 # Extract the first word of "$ac_prog", so it can be a program name with args. 17302 set dummy $ac_prog; ac_word=$2 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17304 $as_echo_n "checking for $ac_word... " >&6; } 17305 if ${ac_cv_path_LDD+:} false; then : 17306 $as_echo_n "(cached) " >&6 17307 else 17308 case $LDD in 17309 [\\/]* | ?:[\\/]*) 17310 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17311 ;; 17312 *) 17313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17314 for as_dir in $PATH 17315 do 17316 IFS=$as_save_IFS 17317 test -z "$as_dir" && as_dir=. 17318 for ac_exec_ext in '' $ac_executable_extensions; do 17319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17320 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17322 break 2 17323 fi 17324 done 17325 done 17326 IFS=$as_save_IFS 17327 17328 ;; 17329 esac 17330 fi 17331 LDD=$ac_cv_path_LDD 17332 if test -n "$LDD"; then 17333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17334 $as_echo "$LDD" >&6; } 17335 else 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17337 $as_echo "no" >&6; } 17338 fi 17339 17340 17341 test -n "$LDD" && break 17342 done 17343 17344 else 17345 # If it succeeded, then it was overridden by the user. We will use it 17346 # for the tool. 17347 17348 # First remove it from the list of overridden variables, so we can test 17349 # for unknown variables in the end. 17350 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17351 17352 # Check if the provided tool contains a complete path. 17353 tool_specified="$LDD" 17354 tool_basename="${tool_specified##*/}" 17355 if test "x$tool_basename" = "x$tool_specified"; then 17356 # A command without a complete path is provided, search $PATH. 17357 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17358 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17359 # Extract the first word of "$tool_basename", so it can be a program name with args. 17360 set dummy $tool_basename; ac_word=$2 17361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17362 $as_echo_n "checking for $ac_word... " >&6; } 17363 if ${ac_cv_path_LDD+:} false; then : 17364 $as_echo_n "(cached) " >&6 17365 else 17366 case $LDD in 17367 [\\/]* | ?:[\\/]*) 17368 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17369 ;; 17370 *) 17371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17372 for as_dir in $PATH 17373 do 17374 IFS=$as_save_IFS 17375 test -z "$as_dir" && as_dir=. 17376 for ac_exec_ext in '' $ac_executable_extensions; do 17377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17378 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17380 break 2 17381 fi 17382 done 17383 done 17384 IFS=$as_save_IFS 17385 17386 ;; 17387 esac 17388 fi 17389 LDD=$ac_cv_path_LDD 17390 if test -n "$LDD"; then 17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17392 $as_echo "$LDD" >&6; } 17393 else 17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17395 $as_echo "no" >&6; } 17396 fi 17397 17398 17399 if test "x$LDD" = x; then 17400 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17401 fi 17402 else 17403 # Otherwise we believe it is a complete path. Use it as it is. 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17405 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17407 $as_echo_n "checking for LDD... " >&6; } 17408 if test ! -x "$tool_specified"; then 17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17410 $as_echo "not found" >&6; } 17411 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17412 fi 17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17414 $as_echo "$tool_specified" >&6; } 17415 fi 17416 fi 17417 fi 17418 17419 17420 if test "x$LDD" = "x"; then 17421 # List shared lib dependencies is used for 17422 # debug output and checking for forbidden dependencies. 17423 # We can build without it. 17424 LDD="true" 17425 fi 17426 17427 17428 # Publish this variable in the help. 17429 17430 17431 if test "x$OTOOL" = x; then 17432 # The variable is not set by user, try to locate tool using the code snippet 17433 for ac_prog in otool 17434 do 17435 # Extract the first word of "$ac_prog", so it can be a program name with args. 17436 set dummy $ac_prog; ac_word=$2 17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17438 $as_echo_n "checking for $ac_word... " >&6; } 17439 if ${ac_cv_path_OTOOL+:} false; then : 17440 $as_echo_n "(cached) " >&6 17441 else 17442 case $OTOOL in 17443 [\\/]* | ?:[\\/]*) 17444 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17445 ;; 17446 *) 17447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17448 for as_dir in $PATH 17449 do 17450 IFS=$as_save_IFS 17451 test -z "$as_dir" && as_dir=. 17452 for ac_exec_ext in '' $ac_executable_extensions; do 17453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17454 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17456 break 2 17457 fi 17458 done 17459 done 17460 IFS=$as_save_IFS 17461 17462 ;; 17463 esac 17464 fi 17465 OTOOL=$ac_cv_path_OTOOL 17466 if test -n "$OTOOL"; then 17467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17468 $as_echo "$OTOOL" >&6; } 17469 else 17470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17471 $as_echo "no" >&6; } 17472 fi 17473 17474 17475 test -n "$OTOOL" && break 17476 done 17477 17478 else 17479 # The variable is set, but is it from the command line or the environment? 17480 17481 # Try to remove the string !OTOOL! from our list. 17482 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OTOOL!/} 17483 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17484 # If it failed, the variable was not from the command line. Ignore it, 17485 # but warn the user (except for BASH, which is always set by the calling BASH). 17486 if test "xOTOOL" != xBASH; then 17487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&5 17488 $as_echo "$as_me: WARNING: Ignoring value of OTOOL from the environment. Use command line variables instead." >&2;} 17489 fi 17490 # Try to locate tool using the code snippet 17491 for ac_prog in otool 17492 do 17493 # Extract the first word of "$ac_prog", so it can be a program name with args. 17494 set dummy $ac_prog; ac_word=$2 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17496 $as_echo_n "checking for $ac_word... " >&6; } 17497 if ${ac_cv_path_OTOOL+:} false; then : 17498 $as_echo_n "(cached) " >&6 17499 else 17500 case $OTOOL in 17501 [\\/]* | ?:[\\/]*) 17502 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17503 ;; 17504 *) 17505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17506 for as_dir in $PATH 17507 do 17508 IFS=$as_save_IFS 17509 test -z "$as_dir" && as_dir=. 17510 for ac_exec_ext in '' $ac_executable_extensions; do 17511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17512 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17514 break 2 17515 fi 17516 done 17517 done 17518 IFS=$as_save_IFS 17519 17520 ;; 17521 esac 17522 fi 17523 OTOOL=$ac_cv_path_OTOOL 17524 if test -n "$OTOOL"; then 17525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17526 $as_echo "$OTOOL" >&6; } 17527 else 17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17529 $as_echo "no" >&6; } 17530 fi 17531 17532 17533 test -n "$OTOOL" && break 17534 done 17535 17536 else 17537 # If it succeeded, then it was overridden by the user. We will use it 17538 # for the tool. 17539 17540 # First remove it from the list of overridden variables, so we can test 17541 # for unknown variables in the end. 17542 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17543 17544 # Check if the provided tool contains a complete path. 17545 tool_specified="$OTOOL" 17546 tool_basename="${tool_specified##*/}" 17547 if test "x$tool_basename" = "x$tool_specified"; then 17548 # A command without a complete path is provided, search $PATH. 17549 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OTOOL=$tool_basename" >&5 17550 $as_echo "$as_me: Will search for user supplied tool OTOOL=$tool_basename" >&6;} 17551 # Extract the first word of "$tool_basename", so it can be a program name with args. 17552 set dummy $tool_basename; ac_word=$2 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17554 $as_echo_n "checking for $ac_word... " >&6; } 17555 if ${ac_cv_path_OTOOL+:} false; then : 17556 $as_echo_n "(cached) " >&6 17557 else 17558 case $OTOOL in 17559 [\\/]* | ?:[\\/]*) 17560 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 17561 ;; 17562 *) 17563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17564 for as_dir in $PATH 17565 do 17566 IFS=$as_save_IFS 17567 test -z "$as_dir" && as_dir=. 17568 for ac_exec_ext in '' $ac_executable_extensions; do 17569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17570 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 17571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17572 break 2 17573 fi 17574 done 17575 done 17576 IFS=$as_save_IFS 17577 17578 ;; 17579 esac 17580 fi 17581 OTOOL=$ac_cv_path_OTOOL 17582 if test -n "$OTOOL"; then 17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 17584 $as_echo "$OTOOL" >&6; } 17585 else 17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17587 $as_echo "no" >&6; } 17588 fi 17589 17590 17591 if test "x$OTOOL" = x; then 17592 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17593 fi 17594 else 17595 # Otherwise we believe it is a complete path. Use it as it is. 17596 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OTOOL=$tool_specified" >&5 17597 $as_echo "$as_me: Will use user supplied tool OTOOL=$tool_specified" >&6;} 17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTOOL" >&5 17599 $as_echo_n "checking for OTOOL... " >&6; } 17600 if test ! -x "$tool_specified"; then 17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17602 $as_echo "not found" >&6; } 17603 as_fn_error $? "User supplied tool OTOOL=$tool_specified does not exist or is not executable" "$LINENO" 5 17604 fi 17605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17606 $as_echo "$tool_specified" >&6; } 17607 fi 17608 fi 17609 fi 17610 17611 17612 if test "x$OTOOL" = "x"; then 17613 OTOOL="true" 17614 fi 17615 17616 17617 # Publish this variable in the help. 17618 17619 17620 if test "x$READELF" = x; then 17621 # The variable is not set by user, try to locate tool using the code snippet 17622 for ac_prog in greadelf readelf 17623 do 17624 # Extract the first word of "$ac_prog", so it can be a program name with args. 17625 set dummy $ac_prog; ac_word=$2 17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17627 $as_echo_n "checking for $ac_word... " >&6; } 17628 if ${ac_cv_path_READELF+:} false; then : 17629 $as_echo_n "(cached) " >&6 17630 else 17631 case $READELF in 17632 [\\/]* | ?:[\\/]*) 17633 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17634 ;; 17635 *) 17636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17637 for as_dir in $PATH 17638 do 17639 IFS=$as_save_IFS 17640 test -z "$as_dir" && as_dir=. 17641 for ac_exec_ext in '' $ac_executable_extensions; do 17642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17643 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17645 break 2 17646 fi 17647 done 17648 done 17649 IFS=$as_save_IFS 17650 17651 ;; 17652 esac 17653 fi 17654 READELF=$ac_cv_path_READELF 17655 if test -n "$READELF"; then 17656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17657 $as_echo "$READELF" >&6; } 17658 else 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17660 $as_echo "no" >&6; } 17661 fi 17662 17663 17664 test -n "$READELF" && break 17665 done 17666 17667 else 17668 # The variable is set, but is it from the command line or the environment? 17669 17670 # Try to remove the string !READELF! from our list. 17671 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17672 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17673 # If it failed, the variable was not from the command line. Ignore it, 17674 # but warn the user (except for BASH, which is always set by the calling BASH). 17675 if test "xREADELF" != xBASH; then 17676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17677 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17678 fi 17679 # Try to locate tool using the code snippet 17680 for ac_prog in greadelf readelf 17681 do 17682 # Extract the first word of "$ac_prog", so it can be a program name with args. 17683 set dummy $ac_prog; ac_word=$2 17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17685 $as_echo_n "checking for $ac_word... " >&6; } 17686 if ${ac_cv_path_READELF+:} false; then : 17687 $as_echo_n "(cached) " >&6 17688 else 17689 case $READELF in 17690 [\\/]* | ?:[\\/]*) 17691 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17692 ;; 17693 *) 17694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17695 for as_dir in $PATH 17696 do 17697 IFS=$as_save_IFS 17698 test -z "$as_dir" && as_dir=. 17699 for ac_exec_ext in '' $ac_executable_extensions; do 17700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17701 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17703 break 2 17704 fi 17705 done 17706 done 17707 IFS=$as_save_IFS 17708 17709 ;; 17710 esac 17711 fi 17712 READELF=$ac_cv_path_READELF 17713 if test -n "$READELF"; then 17714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17715 $as_echo "$READELF" >&6; } 17716 else 17717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17718 $as_echo "no" >&6; } 17719 fi 17720 17721 17722 test -n "$READELF" && break 17723 done 17724 17725 else 17726 # If it succeeded, then it was overridden by the user. We will use it 17727 # for the tool. 17728 17729 # First remove it from the list of overridden variables, so we can test 17730 # for unknown variables in the end. 17731 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17732 17733 # Check if the provided tool contains a complete path. 17734 tool_specified="$READELF" 17735 tool_basename="${tool_specified##*/}" 17736 if test "x$tool_basename" = "x$tool_specified"; then 17737 # A command without a complete path is provided, search $PATH. 17738 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17739 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17740 # Extract the first word of "$tool_basename", so it can be a program name with args. 17741 set dummy $tool_basename; ac_word=$2 17742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17743 $as_echo_n "checking for $ac_word... " >&6; } 17744 if ${ac_cv_path_READELF+:} false; then : 17745 $as_echo_n "(cached) " >&6 17746 else 17747 case $READELF in 17748 [\\/]* | ?:[\\/]*) 17749 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17750 ;; 17751 *) 17752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17753 for as_dir in $PATH 17754 do 17755 IFS=$as_save_IFS 17756 test -z "$as_dir" && as_dir=. 17757 for ac_exec_ext in '' $ac_executable_extensions; do 17758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17759 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17761 break 2 17762 fi 17763 done 17764 done 17765 IFS=$as_save_IFS 17766 17767 ;; 17768 esac 17769 fi 17770 READELF=$ac_cv_path_READELF 17771 if test -n "$READELF"; then 17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17773 $as_echo "$READELF" >&6; } 17774 else 17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17776 $as_echo "no" >&6; } 17777 fi 17778 17779 17780 if test "x$READELF" = x; then 17781 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17782 fi 17783 else 17784 # Otherwise we believe it is a complete path. Use it as it is. 17785 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17786 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17788 $as_echo_n "checking for READELF... " >&6; } 17789 if test ! -x "$tool_specified"; then 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17791 $as_echo "not found" >&6; } 17792 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17793 fi 17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17795 $as_echo "$tool_specified" >&6; } 17796 fi 17797 fi 17798 fi 17799 17800 17801 17802 17803 # Publish this variable in the help. 17804 17805 17806 if test "x$HG" = x; then 17807 # The variable is not set by user, try to locate tool using the code snippet 17808 for ac_prog in hg 17809 do 17810 # Extract the first word of "$ac_prog", so it can be a program name with args. 17811 set dummy $ac_prog; ac_word=$2 17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17813 $as_echo_n "checking for $ac_word... " >&6; } 17814 if ${ac_cv_path_HG+:} false; then : 17815 $as_echo_n "(cached) " >&6 17816 else 17817 case $HG in 17818 [\\/]* | ?:[\\/]*) 17819 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17820 ;; 17821 *) 17822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17823 for as_dir in $PATH 17824 do 17825 IFS=$as_save_IFS 17826 test -z "$as_dir" && as_dir=. 17827 for ac_exec_ext in '' $ac_executable_extensions; do 17828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17829 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17831 break 2 17832 fi 17833 done 17834 done 17835 IFS=$as_save_IFS 17836 17837 ;; 17838 esac 17839 fi 17840 HG=$ac_cv_path_HG 17841 if test -n "$HG"; then 17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17843 $as_echo "$HG" >&6; } 17844 else 17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17846 $as_echo "no" >&6; } 17847 fi 17848 17849 17850 test -n "$HG" && break 17851 done 17852 17853 else 17854 # The variable is set, but is it from the command line or the environment? 17855 17856 # Try to remove the string !HG! from our list. 17857 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17858 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17859 # If it failed, the variable was not from the command line. Ignore it, 17860 # but warn the user (except for BASH, which is always set by the calling BASH). 17861 if test "xHG" != xBASH; then 17862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17863 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 17864 fi 17865 # Try to locate tool using the code snippet 17866 for ac_prog in hg 17867 do 17868 # Extract the first word of "$ac_prog", so it can be a program name with args. 17869 set dummy $ac_prog; ac_word=$2 17870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17871 $as_echo_n "checking for $ac_word... " >&6; } 17872 if ${ac_cv_path_HG+:} false; then : 17873 $as_echo_n "(cached) " >&6 17874 else 17875 case $HG in 17876 [\\/]* | ?:[\\/]*) 17877 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17878 ;; 17879 *) 17880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17881 for as_dir in $PATH 17882 do 17883 IFS=$as_save_IFS 17884 test -z "$as_dir" && as_dir=. 17885 for ac_exec_ext in '' $ac_executable_extensions; do 17886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17887 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17889 break 2 17890 fi 17891 done 17892 done 17893 IFS=$as_save_IFS 17894 17895 ;; 17896 esac 17897 fi 17898 HG=$ac_cv_path_HG 17899 if test -n "$HG"; then 17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17901 $as_echo "$HG" >&6; } 17902 else 17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17904 $as_echo "no" >&6; } 17905 fi 17906 17907 17908 test -n "$HG" && break 17909 done 17910 17911 else 17912 # If it succeeded, then it was overridden by the user. We will use it 17913 # for the tool. 17914 17915 # First remove it from the list of overridden variables, so we can test 17916 # for unknown variables in the end. 17917 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17918 17919 # Check if the provided tool contains a complete path. 17920 tool_specified="$HG" 17921 tool_basename="${tool_specified##*/}" 17922 if test "x$tool_basename" = "x$tool_specified"; then 17923 # A command without a complete path is provided, search $PATH. 17924 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 17925 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 17926 # Extract the first word of "$tool_basename", so it can be a program name with args. 17927 set dummy $tool_basename; ac_word=$2 17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17929 $as_echo_n "checking for $ac_word... " >&6; } 17930 if ${ac_cv_path_HG+:} false; then : 17931 $as_echo_n "(cached) " >&6 17932 else 17933 case $HG in 17934 [\\/]* | ?:[\\/]*) 17935 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17936 ;; 17937 *) 17938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17939 for as_dir in $PATH 17940 do 17941 IFS=$as_save_IFS 17942 test -z "$as_dir" && as_dir=. 17943 for ac_exec_ext in '' $ac_executable_extensions; do 17944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17945 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17947 break 2 17948 fi 17949 done 17950 done 17951 IFS=$as_save_IFS 17952 17953 ;; 17954 esac 17955 fi 17956 HG=$ac_cv_path_HG 17957 if test -n "$HG"; then 17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17959 $as_echo "$HG" >&6; } 17960 else 17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17962 $as_echo "no" >&6; } 17963 fi 17964 17965 17966 if test "x$HG" = x; then 17967 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17968 fi 17969 else 17970 # Otherwise we believe it is a complete path. Use it as it is. 17971 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 17972 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 17973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 17974 $as_echo_n "checking for HG... " >&6; } 17975 if test ! -x "$tool_specified"; then 17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17977 $as_echo "not found" >&6; } 17978 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 17979 fi 17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17981 $as_echo "$tool_specified" >&6; } 17982 fi 17983 fi 17984 fi 17985 17986 17987 17988 17989 # Publish this variable in the help. 17990 17991 17992 if test "x$STAT" = x; then 17993 # The variable is not set by user, try to locate tool using the code snippet 17994 for ac_prog in stat 17995 do 17996 # Extract the first word of "$ac_prog", so it can be a program name with args. 17997 set dummy $ac_prog; ac_word=$2 17998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17999 $as_echo_n "checking for $ac_word... " >&6; } 18000 if ${ac_cv_path_STAT+:} false; then : 18001 $as_echo_n "(cached) " >&6 18002 else 18003 case $STAT in 18004 [\\/]* | ?:[\\/]*) 18005 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18006 ;; 18007 *) 18008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18009 for as_dir in $PATH 18010 do 18011 IFS=$as_save_IFS 18012 test -z "$as_dir" && as_dir=. 18013 for ac_exec_ext in '' $ac_executable_extensions; do 18014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18015 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18017 break 2 18018 fi 18019 done 18020 done 18021 IFS=$as_save_IFS 18022 18023 ;; 18024 esac 18025 fi 18026 STAT=$ac_cv_path_STAT 18027 if test -n "$STAT"; then 18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18029 $as_echo "$STAT" >&6; } 18030 else 18031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18032 $as_echo "no" >&6; } 18033 fi 18034 18035 18036 test -n "$STAT" && break 18037 done 18038 18039 else 18040 # The variable is set, but is it from the command line or the environment? 18041 18042 # Try to remove the string !STAT! from our list. 18043 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 18044 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18045 # If it failed, the variable was not from the command line. Ignore it, 18046 # but warn the user (except for BASH, which is always set by the calling BASH). 18047 if test "xSTAT" != xBASH; then 18048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 18049 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 18050 fi 18051 # Try to locate tool using the code snippet 18052 for ac_prog in stat 18053 do 18054 # Extract the first word of "$ac_prog", so it can be a program name with args. 18055 set dummy $ac_prog; ac_word=$2 18056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18057 $as_echo_n "checking for $ac_word... " >&6; } 18058 if ${ac_cv_path_STAT+:} false; then : 18059 $as_echo_n "(cached) " >&6 18060 else 18061 case $STAT in 18062 [\\/]* | ?:[\\/]*) 18063 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18064 ;; 18065 *) 18066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18067 for as_dir in $PATH 18068 do 18069 IFS=$as_save_IFS 18070 test -z "$as_dir" && as_dir=. 18071 for ac_exec_ext in '' $ac_executable_extensions; do 18072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18073 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18075 break 2 18076 fi 18077 done 18078 done 18079 IFS=$as_save_IFS 18080 18081 ;; 18082 esac 18083 fi 18084 STAT=$ac_cv_path_STAT 18085 if test -n "$STAT"; then 18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18087 $as_echo "$STAT" >&6; } 18088 else 18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18090 $as_echo "no" >&6; } 18091 fi 18092 18093 18094 test -n "$STAT" && break 18095 done 18096 18097 else 18098 # If it succeeded, then it was overridden by the user. We will use it 18099 # for the tool. 18100 18101 # First remove it from the list of overridden variables, so we can test 18102 # for unknown variables in the end. 18103 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18104 18105 # Check if the provided tool contains a complete path. 18106 tool_specified="$STAT" 18107 tool_basename="${tool_specified##*/}" 18108 if test "x$tool_basename" = "x$tool_specified"; then 18109 # A command without a complete path is provided, search $PATH. 18110 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 18111 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 18112 # Extract the first word of "$tool_basename", so it can be a program name with args. 18113 set dummy $tool_basename; ac_word=$2 18114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18115 $as_echo_n "checking for $ac_word... " >&6; } 18116 if ${ac_cv_path_STAT+:} false; then : 18117 $as_echo_n "(cached) " >&6 18118 else 18119 case $STAT in 18120 [\\/]* | ?:[\\/]*) 18121 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 18122 ;; 18123 *) 18124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18125 for as_dir in $PATH 18126 do 18127 IFS=$as_save_IFS 18128 test -z "$as_dir" && as_dir=. 18129 for ac_exec_ext in '' $ac_executable_extensions; do 18130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18131 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 18132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18133 break 2 18134 fi 18135 done 18136 done 18137 IFS=$as_save_IFS 18138 18139 ;; 18140 esac 18141 fi 18142 STAT=$ac_cv_path_STAT 18143 if test -n "$STAT"; then 18144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 18145 $as_echo "$STAT" >&6; } 18146 else 18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18148 $as_echo "no" >&6; } 18149 fi 18150 18151 18152 if test "x$STAT" = x; then 18153 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18154 fi 18155 else 18156 # Otherwise we believe it is a complete path. Use it as it is. 18157 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 18158 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 18160 $as_echo_n "checking for STAT... " >&6; } 18161 if test ! -x "$tool_specified"; then 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18163 $as_echo "not found" >&6; } 18164 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 18165 fi 18166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18167 $as_echo "$tool_specified" >&6; } 18168 fi 18169 fi 18170 fi 18171 18172 18173 18174 18175 # Publish this variable in the help. 18176 18177 18178 if test "x$TIME" = x; then 18179 # The variable is not set by user, try to locate tool using the code snippet 18180 for ac_prog in time 18181 do 18182 # Extract the first word of "$ac_prog", so it can be a program name with args. 18183 set dummy $ac_prog; ac_word=$2 18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18185 $as_echo_n "checking for $ac_word... " >&6; } 18186 if ${ac_cv_path_TIME+:} false; then : 18187 $as_echo_n "(cached) " >&6 18188 else 18189 case $TIME in 18190 [\\/]* | ?:[\\/]*) 18191 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18192 ;; 18193 *) 18194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18195 for as_dir in $PATH 18196 do 18197 IFS=$as_save_IFS 18198 test -z "$as_dir" && as_dir=. 18199 for ac_exec_ext in '' $ac_executable_extensions; do 18200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18201 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18203 break 2 18204 fi 18205 done 18206 done 18207 IFS=$as_save_IFS 18208 18209 ;; 18210 esac 18211 fi 18212 TIME=$ac_cv_path_TIME 18213 if test -n "$TIME"; then 18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18215 $as_echo "$TIME" >&6; } 18216 else 18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18218 $as_echo "no" >&6; } 18219 fi 18220 18221 18222 test -n "$TIME" && break 18223 done 18224 18225 else 18226 # The variable is set, but is it from the command line or the environment? 18227 18228 # Try to remove the string !TIME! from our list. 18229 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18230 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18231 # If it failed, the variable was not from the command line. Ignore it, 18232 # but warn the user (except for BASH, which is always set by the calling BASH). 18233 if test "xTIME" != xBASH; then 18234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18235 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18236 fi 18237 # Try to locate tool using the code snippet 18238 for ac_prog in time 18239 do 18240 # Extract the first word of "$ac_prog", so it can be a program name with args. 18241 set dummy $ac_prog; ac_word=$2 18242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18243 $as_echo_n "checking for $ac_word... " >&6; } 18244 if ${ac_cv_path_TIME+:} false; then : 18245 $as_echo_n "(cached) " >&6 18246 else 18247 case $TIME in 18248 [\\/]* | ?:[\\/]*) 18249 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18250 ;; 18251 *) 18252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18253 for as_dir in $PATH 18254 do 18255 IFS=$as_save_IFS 18256 test -z "$as_dir" && as_dir=. 18257 for ac_exec_ext in '' $ac_executable_extensions; do 18258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18259 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18261 break 2 18262 fi 18263 done 18264 done 18265 IFS=$as_save_IFS 18266 18267 ;; 18268 esac 18269 fi 18270 TIME=$ac_cv_path_TIME 18271 if test -n "$TIME"; then 18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18273 $as_echo "$TIME" >&6; } 18274 else 18275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18276 $as_echo "no" >&6; } 18277 fi 18278 18279 18280 test -n "$TIME" && break 18281 done 18282 18283 else 18284 # If it succeeded, then it was overridden by the user. We will use it 18285 # for the tool. 18286 18287 # First remove it from the list of overridden variables, so we can test 18288 # for unknown variables in the end. 18289 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18290 18291 # Check if the provided tool contains a complete path. 18292 tool_specified="$TIME" 18293 tool_basename="${tool_specified##*/}" 18294 if test "x$tool_basename" = "x$tool_specified"; then 18295 # A command without a complete path is provided, search $PATH. 18296 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18297 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18298 # Extract the first word of "$tool_basename", so it can be a program name with args. 18299 set dummy $tool_basename; ac_word=$2 18300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18301 $as_echo_n "checking for $ac_word... " >&6; } 18302 if ${ac_cv_path_TIME+:} false; then : 18303 $as_echo_n "(cached) " >&6 18304 else 18305 case $TIME in 18306 [\\/]* | ?:[\\/]*) 18307 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18308 ;; 18309 *) 18310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18311 for as_dir in $PATH 18312 do 18313 IFS=$as_save_IFS 18314 test -z "$as_dir" && as_dir=. 18315 for ac_exec_ext in '' $ac_executable_extensions; do 18316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18317 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18319 break 2 18320 fi 18321 done 18322 done 18323 IFS=$as_save_IFS 18324 18325 ;; 18326 esac 18327 fi 18328 TIME=$ac_cv_path_TIME 18329 if test -n "$TIME"; then 18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18331 $as_echo "$TIME" >&6; } 18332 else 18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18334 $as_echo "no" >&6; } 18335 fi 18336 18337 18338 if test "x$TIME" = x; then 18339 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18340 fi 18341 else 18342 # Otherwise we believe it is a complete path. Use it as it is. 18343 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18344 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18346 $as_echo_n "checking for TIME... " >&6; } 18347 if test ! -x "$tool_specified"; then 18348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18349 $as_echo "not found" >&6; } 18350 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18351 fi 18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18353 $as_echo "$tool_specified" >&6; } 18354 fi 18355 fi 18356 fi 18357 18358 18359 # Check if it's GNU time 18360 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18361 if test "x$IS_GNU_TIME" != x; then 18362 IS_GNU_TIME=yes 18363 else 18364 IS_GNU_TIME=no 18365 fi 18366 18367 18368 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18369 18370 18371 18372 # Publish this variable in the help. 18373 18374 18375 if test "x$COMM" = x; then 18376 # The variable is not set by user, try to locate tool using the code snippet 18377 for ac_prog in comm 18378 do 18379 # Extract the first word of "$ac_prog", so it can be a program name with args. 18380 set dummy $ac_prog; ac_word=$2 18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18382 $as_echo_n "checking for $ac_word... " >&6; } 18383 if ${ac_cv_path_COMM+:} false; then : 18384 $as_echo_n "(cached) " >&6 18385 else 18386 case $COMM in 18387 [\\/]* | ?:[\\/]*) 18388 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18389 ;; 18390 *) 18391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18392 for as_dir in $PATH 18393 do 18394 IFS=$as_save_IFS 18395 test -z "$as_dir" && as_dir=. 18396 for ac_exec_ext in '' $ac_executable_extensions; do 18397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18398 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18400 break 2 18401 fi 18402 done 18403 done 18404 IFS=$as_save_IFS 18405 18406 ;; 18407 esac 18408 fi 18409 COMM=$ac_cv_path_COMM 18410 if test -n "$COMM"; then 18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18412 $as_echo "$COMM" >&6; } 18413 else 18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18415 $as_echo "no" >&6; } 18416 fi 18417 18418 18419 test -n "$COMM" && break 18420 done 18421 18422 else 18423 # The variable is set, but is it from the command line or the environment? 18424 18425 # Try to remove the string !COMM! from our list. 18426 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18427 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18428 # If it failed, the variable was not from the command line. Ignore it, 18429 # but warn the user (except for BASH, which is always set by the calling BASH). 18430 if test "xCOMM" != xBASH; then 18431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18432 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18433 fi 18434 # Try to locate tool using the code snippet 18435 for ac_prog in comm 18436 do 18437 # Extract the first word of "$ac_prog", so it can be a program name with args. 18438 set dummy $ac_prog; ac_word=$2 18439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18440 $as_echo_n "checking for $ac_word... " >&6; } 18441 if ${ac_cv_path_COMM+:} false; then : 18442 $as_echo_n "(cached) " >&6 18443 else 18444 case $COMM in 18445 [\\/]* | ?:[\\/]*) 18446 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18447 ;; 18448 *) 18449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18450 for as_dir in $PATH 18451 do 18452 IFS=$as_save_IFS 18453 test -z "$as_dir" && as_dir=. 18454 for ac_exec_ext in '' $ac_executable_extensions; do 18455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18456 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18458 break 2 18459 fi 18460 done 18461 done 18462 IFS=$as_save_IFS 18463 18464 ;; 18465 esac 18466 fi 18467 COMM=$ac_cv_path_COMM 18468 if test -n "$COMM"; then 18469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18470 $as_echo "$COMM" >&6; } 18471 else 18472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18473 $as_echo "no" >&6; } 18474 fi 18475 18476 18477 test -n "$COMM" && break 18478 done 18479 18480 else 18481 # If it succeeded, then it was overridden by the user. We will use it 18482 # for the tool. 18483 18484 # First remove it from the list of overridden variables, so we can test 18485 # for unknown variables in the end. 18486 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18487 18488 # Check if the provided tool contains a complete path. 18489 tool_specified="$COMM" 18490 tool_basename="${tool_specified##*/}" 18491 if test "x$tool_basename" = "x$tool_specified"; then 18492 # A command without a complete path is provided, search $PATH. 18493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18494 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18495 # Extract the first word of "$tool_basename", so it can be a program name with args. 18496 set dummy $tool_basename; ac_word=$2 18497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18498 $as_echo_n "checking for $ac_word... " >&6; } 18499 if ${ac_cv_path_COMM+:} false; then : 18500 $as_echo_n "(cached) " >&6 18501 else 18502 case $COMM in 18503 [\\/]* | ?:[\\/]*) 18504 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18505 ;; 18506 *) 18507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18508 for as_dir in $PATH 18509 do 18510 IFS=$as_save_IFS 18511 test -z "$as_dir" && as_dir=. 18512 for ac_exec_ext in '' $ac_executable_extensions; do 18513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18514 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18516 break 2 18517 fi 18518 done 18519 done 18520 IFS=$as_save_IFS 18521 18522 ;; 18523 esac 18524 fi 18525 COMM=$ac_cv_path_COMM 18526 if test -n "$COMM"; then 18527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18528 $as_echo "$COMM" >&6; } 18529 else 18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18531 $as_echo "no" >&6; } 18532 fi 18533 18534 18535 if test "x$COMM" = x; then 18536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18537 fi 18538 else 18539 # Otherwise we believe it is a complete path. Use it as it is. 18540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18541 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18543 $as_echo_n "checking for COMM... " >&6; } 18544 if test ! -x "$tool_specified"; then 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18546 $as_echo "not found" >&6; } 18547 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18548 fi 18549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18550 $as_echo "$tool_specified" >&6; } 18551 fi 18552 fi 18553 fi 18554 18555 18556 18557 if test "x$COMM" = x; then 18558 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18559 fi 18560 18561 18562 fi 18563 18564 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18565 18566 18567 18568 # Publish this variable in the help. 18569 18570 18571 if test "x$DSYMUTIL" = x; then 18572 # The variable is not set by user, try to locate tool using the code snippet 18573 for ac_prog in dsymutil 18574 do 18575 # Extract the first word of "$ac_prog", so it can be a program name with args. 18576 set dummy $ac_prog; ac_word=$2 18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18578 $as_echo_n "checking for $ac_word... " >&6; } 18579 if ${ac_cv_path_DSYMUTIL+:} false; then : 18580 $as_echo_n "(cached) " >&6 18581 else 18582 case $DSYMUTIL in 18583 [\\/]* | ?:[\\/]*) 18584 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18585 ;; 18586 *) 18587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18588 for as_dir in $PATH 18589 do 18590 IFS=$as_save_IFS 18591 test -z "$as_dir" && as_dir=. 18592 for ac_exec_ext in '' $ac_executable_extensions; do 18593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18594 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18596 break 2 18597 fi 18598 done 18599 done 18600 IFS=$as_save_IFS 18601 18602 ;; 18603 esac 18604 fi 18605 DSYMUTIL=$ac_cv_path_DSYMUTIL 18606 if test -n "$DSYMUTIL"; then 18607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18608 $as_echo "$DSYMUTIL" >&6; } 18609 else 18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18611 $as_echo "no" >&6; } 18612 fi 18613 18614 18615 test -n "$DSYMUTIL" && break 18616 done 18617 18618 else 18619 # The variable is set, but is it from the command line or the environment? 18620 18621 # Try to remove the string !DSYMUTIL! from our list. 18622 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18623 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18624 # If it failed, the variable was not from the command line. Ignore it, 18625 # but warn the user (except for BASH, which is always set by the calling BASH). 18626 if test "xDSYMUTIL" != xBASH; then 18627 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18628 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18629 fi 18630 # Try to locate tool using the code snippet 18631 for ac_prog in dsymutil 18632 do 18633 # Extract the first word of "$ac_prog", so it can be a program name with args. 18634 set dummy $ac_prog; ac_word=$2 18635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18636 $as_echo_n "checking for $ac_word... " >&6; } 18637 if ${ac_cv_path_DSYMUTIL+:} false; then : 18638 $as_echo_n "(cached) " >&6 18639 else 18640 case $DSYMUTIL in 18641 [\\/]* | ?:[\\/]*) 18642 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18643 ;; 18644 *) 18645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18646 for as_dir in $PATH 18647 do 18648 IFS=$as_save_IFS 18649 test -z "$as_dir" && as_dir=. 18650 for ac_exec_ext in '' $ac_executable_extensions; do 18651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18652 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18654 break 2 18655 fi 18656 done 18657 done 18658 IFS=$as_save_IFS 18659 18660 ;; 18661 esac 18662 fi 18663 DSYMUTIL=$ac_cv_path_DSYMUTIL 18664 if test -n "$DSYMUTIL"; then 18665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18666 $as_echo "$DSYMUTIL" >&6; } 18667 else 18668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18669 $as_echo "no" >&6; } 18670 fi 18671 18672 18673 test -n "$DSYMUTIL" && break 18674 done 18675 18676 else 18677 # If it succeeded, then it was overridden by the user. We will use it 18678 # for the tool. 18679 18680 # First remove it from the list of overridden variables, so we can test 18681 # for unknown variables in the end. 18682 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18683 18684 # Check if the provided tool contains a complete path. 18685 tool_specified="$DSYMUTIL" 18686 tool_basename="${tool_specified##*/}" 18687 if test "x$tool_basename" = "x$tool_specified"; then 18688 # A command without a complete path is provided, search $PATH. 18689 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18690 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18691 # Extract the first word of "$tool_basename", so it can be a program name with args. 18692 set dummy $tool_basename; ac_word=$2 18693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18694 $as_echo_n "checking for $ac_word... " >&6; } 18695 if ${ac_cv_path_DSYMUTIL+:} false; then : 18696 $as_echo_n "(cached) " >&6 18697 else 18698 case $DSYMUTIL in 18699 [\\/]* | ?:[\\/]*) 18700 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18701 ;; 18702 *) 18703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18704 for as_dir in $PATH 18705 do 18706 IFS=$as_save_IFS 18707 test -z "$as_dir" && as_dir=. 18708 for ac_exec_ext in '' $ac_executable_extensions; do 18709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18710 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18712 break 2 18713 fi 18714 done 18715 done 18716 IFS=$as_save_IFS 18717 18718 ;; 18719 esac 18720 fi 18721 DSYMUTIL=$ac_cv_path_DSYMUTIL 18722 if test -n "$DSYMUTIL"; then 18723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18724 $as_echo "$DSYMUTIL" >&6; } 18725 else 18726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18727 $as_echo "no" >&6; } 18728 fi 18729 18730 18731 if test "x$DSYMUTIL" = x; then 18732 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18733 fi 18734 else 18735 # Otherwise we believe it is a complete path. Use it as it is. 18736 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18737 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18739 $as_echo_n "checking for DSYMUTIL... " >&6; } 18740 if test ! -x "$tool_specified"; then 18741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18742 $as_echo "not found" >&6; } 18743 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18744 fi 18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18746 $as_echo "$tool_specified" >&6; } 18747 fi 18748 fi 18749 fi 18750 18751 18752 18753 if test "x$DSYMUTIL" = x; then 18754 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18755 fi 18756 18757 18758 18759 18760 18761 # Publish this variable in the help. 18762 18763 18764 if test "x$XATTR" = x; then 18765 # The variable is not set by user, try to locate tool using the code snippet 18766 for ac_prog in xattr 18767 do 18768 # Extract the first word of "$ac_prog", so it can be a program name with args. 18769 set dummy $ac_prog; ac_word=$2 18770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18771 $as_echo_n "checking for $ac_word... " >&6; } 18772 if ${ac_cv_path_XATTR+:} false; then : 18773 $as_echo_n "(cached) " >&6 18774 else 18775 case $XATTR in 18776 [\\/]* | ?:[\\/]*) 18777 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18778 ;; 18779 *) 18780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18781 for as_dir in $PATH 18782 do 18783 IFS=$as_save_IFS 18784 test -z "$as_dir" && as_dir=. 18785 for ac_exec_ext in '' $ac_executable_extensions; do 18786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18787 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18789 break 2 18790 fi 18791 done 18792 done 18793 IFS=$as_save_IFS 18794 18795 ;; 18796 esac 18797 fi 18798 XATTR=$ac_cv_path_XATTR 18799 if test -n "$XATTR"; then 18800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18801 $as_echo "$XATTR" >&6; } 18802 else 18803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18804 $as_echo "no" >&6; } 18805 fi 18806 18807 18808 test -n "$XATTR" && break 18809 done 18810 18811 else 18812 # The variable is set, but is it from the command line or the environment? 18813 18814 # Try to remove the string !XATTR! from our list. 18815 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18816 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18817 # If it failed, the variable was not from the command line. Ignore it, 18818 # but warn the user (except for BASH, which is always set by the calling BASH). 18819 if test "xXATTR" != xBASH; then 18820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18821 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18822 fi 18823 # Try to locate tool using the code snippet 18824 for ac_prog in xattr 18825 do 18826 # Extract the first word of "$ac_prog", so it can be a program name with args. 18827 set dummy $ac_prog; ac_word=$2 18828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18829 $as_echo_n "checking for $ac_word... " >&6; } 18830 if ${ac_cv_path_XATTR+:} false; then : 18831 $as_echo_n "(cached) " >&6 18832 else 18833 case $XATTR in 18834 [\\/]* | ?:[\\/]*) 18835 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18836 ;; 18837 *) 18838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18839 for as_dir in $PATH 18840 do 18841 IFS=$as_save_IFS 18842 test -z "$as_dir" && as_dir=. 18843 for ac_exec_ext in '' $ac_executable_extensions; do 18844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18845 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18847 break 2 18848 fi 18849 done 18850 done 18851 IFS=$as_save_IFS 18852 18853 ;; 18854 esac 18855 fi 18856 XATTR=$ac_cv_path_XATTR 18857 if test -n "$XATTR"; then 18858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18859 $as_echo "$XATTR" >&6; } 18860 else 18861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18862 $as_echo "no" >&6; } 18863 fi 18864 18865 18866 test -n "$XATTR" && break 18867 done 18868 18869 else 18870 # If it succeeded, then it was overridden by the user. We will use it 18871 # for the tool. 18872 18873 # First remove it from the list of overridden variables, so we can test 18874 # for unknown variables in the end. 18875 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18876 18877 # Check if the provided tool contains a complete path. 18878 tool_specified="$XATTR" 18879 tool_basename="${tool_specified##*/}" 18880 if test "x$tool_basename" = "x$tool_specified"; then 18881 # A command without a complete path is provided, search $PATH. 18882 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 18883 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 18884 # Extract the first word of "$tool_basename", so it can be a program name with args. 18885 set dummy $tool_basename; ac_word=$2 18886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18887 $as_echo_n "checking for $ac_word... " >&6; } 18888 if ${ac_cv_path_XATTR+:} false; then : 18889 $as_echo_n "(cached) " >&6 18890 else 18891 case $XATTR in 18892 [\\/]* | ?:[\\/]*) 18893 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18894 ;; 18895 *) 18896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18897 for as_dir in $PATH 18898 do 18899 IFS=$as_save_IFS 18900 test -z "$as_dir" && as_dir=. 18901 for ac_exec_ext in '' $ac_executable_extensions; do 18902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18903 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18905 break 2 18906 fi 18907 done 18908 done 18909 IFS=$as_save_IFS 18910 18911 ;; 18912 esac 18913 fi 18914 XATTR=$ac_cv_path_XATTR 18915 if test -n "$XATTR"; then 18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18917 $as_echo "$XATTR" >&6; } 18918 else 18919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18920 $as_echo "no" >&6; } 18921 fi 18922 18923 18924 if test "x$XATTR" = x; then 18925 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18926 fi 18927 else 18928 # Otherwise we believe it is a complete path. Use it as it is. 18929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 18930 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 18931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 18932 $as_echo_n "checking for XATTR... " >&6; } 18933 if test ! -x "$tool_specified"; then 18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18935 $as_echo "not found" >&6; } 18936 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 18937 fi 18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18939 $as_echo "$tool_specified" >&6; } 18940 fi 18941 fi 18942 fi 18943 18944 18945 18946 if test "x$XATTR" = x; then 18947 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 18948 fi 18949 18950 18951 18952 18953 # Publish this variable in the help. 18954 18955 18956 if test "x$CODESIGN" = x; then 18957 # The variable is not set by user, try to locate tool using the code snippet 18958 for ac_prog in codesign 18959 do 18960 # Extract the first word of "$ac_prog", so it can be a program name with args. 18961 set dummy $ac_prog; ac_word=$2 18962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18963 $as_echo_n "checking for $ac_word... " >&6; } 18964 if ${ac_cv_path_CODESIGN+:} false; then : 18965 $as_echo_n "(cached) " >&6 18966 else 18967 case $CODESIGN in 18968 [\\/]* | ?:[\\/]*) 18969 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18970 ;; 18971 *) 18972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18973 for as_dir in $PATH 18974 do 18975 IFS=$as_save_IFS 18976 test -z "$as_dir" && as_dir=. 18977 for ac_exec_ext in '' $ac_executable_extensions; do 18978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18979 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18981 break 2 18982 fi 18983 done 18984 done 18985 IFS=$as_save_IFS 18986 18987 ;; 18988 esac 18989 fi 18990 CODESIGN=$ac_cv_path_CODESIGN 18991 if test -n "$CODESIGN"; then 18992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18993 $as_echo "$CODESIGN" >&6; } 18994 else 18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18996 $as_echo "no" >&6; } 18997 fi 18998 18999 19000 test -n "$CODESIGN" && break 19001 done 19002 19003 else 19004 # The variable is set, but is it from the command line or the environment? 19005 19006 # Try to remove the string !CODESIGN! from our list. 19007 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 19008 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 19009 # If it failed, the variable was not from the command line. Ignore it, 19010 # but warn the user (except for BASH, which is always set by the calling BASH). 19011 if test "xCODESIGN" != xBASH; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 19013 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 19014 fi 19015 # Try to locate tool using the code snippet 19016 for ac_prog in codesign 19017 do 19018 # Extract the first word of "$ac_prog", so it can be a program name with args. 19019 set dummy $ac_prog; ac_word=$2 19020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19021 $as_echo_n "checking for $ac_word... " >&6; } 19022 if ${ac_cv_path_CODESIGN+:} false; then : 19023 $as_echo_n "(cached) " >&6 19024 else 19025 case $CODESIGN in 19026 [\\/]* | ?:[\\/]*) 19027 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19028 ;; 19029 *) 19030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19031 for as_dir in $PATH 19032 do 19033 IFS=$as_save_IFS 19034 test -z "$as_dir" && as_dir=. 19035 for ac_exec_ext in '' $ac_executable_extensions; do 19036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19037 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19039 break 2 19040 fi 19041 done 19042 done 19043 IFS=$as_save_IFS 19044 19045 ;; 19046 esac 19047 fi 19048 CODESIGN=$ac_cv_path_CODESIGN 19049 if test -n "$CODESIGN"; then 19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19051 $as_echo "$CODESIGN" >&6; } 19052 else 19053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19054 $as_echo "no" >&6; } 19055 fi 19056 19057 19058 test -n "$CODESIGN" && break 19059 done 19060 19061 else 19062 # If it succeeded, then it was overridden by the user. We will use it 19063 # for the tool. 19064 19065 # First remove it from the list of overridden variables, so we can test 19066 # for unknown variables in the end. 19067 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 19068 19069 # Check if the provided tool contains a complete path. 19070 tool_specified="$CODESIGN" 19071 tool_basename="${tool_specified##*/}" 19072 if test "x$tool_basename" = "x$tool_specified"; then 19073 # A command without a complete path is provided, search $PATH. 19074 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 19075 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 19076 # Extract the first word of "$tool_basename", so it can be a program name with args. 19077 set dummy $tool_basename; ac_word=$2 19078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19079 $as_echo_n "checking for $ac_word... " >&6; } 19080 if ${ac_cv_path_CODESIGN+:} false; then : 19081 $as_echo_n "(cached) " >&6 19082 else 19083 case $CODESIGN in 19084 [\\/]* | ?:[\\/]*) 19085 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 19086 ;; 19087 *) 19088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19089 for as_dir in $PATH 19090 do 19091 IFS=$as_save_IFS 19092 test -z "$as_dir" && as_dir=. 19093 for ac_exec_ext in '' $ac_executable_extensions; do 19094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19095 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 19096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19097 break 2 19098 fi 19099 done 19100 done 19101 IFS=$as_save_IFS 19102 19103 ;; 19104 esac 19105 fi 19106 CODESIGN=$ac_cv_path_CODESIGN 19107 if test -n "$CODESIGN"; then 19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 19109 $as_echo "$CODESIGN" >&6; } 19110 else 19111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19112 $as_echo "no" >&6; } 19113 fi 19114 19115 19116 if test "x$CODESIGN" = x; then 19117 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 19118 fi 19119 else 19120 # Otherwise we believe it is a complete path. Use it as it is. 19121 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 19122 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 19124 $as_echo_n "checking for CODESIGN... " >&6; } 19125 if test ! -x "$tool_specified"; then 19126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 19127 $as_echo "not found" >&6; } 19128 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 19129 fi 19130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 19131 $as_echo "$tool_specified" >&6; } 19132 fi 19133 fi 19134 fi 19135 19136 19137 if test "x$CODESIGN" != "x"; then 19138 # Verify that the openjdk_codesign certificate is present 19139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 19140 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 19141 rm -f codesign-testfile 19142 touch codesign-testfile 19143 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 19144 rm -f codesign-testfile 19145 if test "x$CODESIGN" = x; then 19146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19147 $as_echo "no" >&6; } 19148 else 19149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19150 $as_echo "yes" >&6; } 19151 fi 19152 fi 19153 fi 19154 19155 19156 # Check if pkg-config is available. 19157 19158 19159 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 19160 if test -n "$ac_tool_prefix"; then 19161 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 19162 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19164 $as_echo_n "checking for $ac_word... " >&6; } 19165 if ${ac_cv_path_PKG_CONFIG+:} false; then : 19166 $as_echo_n "(cached) " >&6 19167 else 19168 case $PKG_CONFIG in 19169 [\\/]* | ?:[\\/]*) 19170 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 19171 ;; 19172 *) 19173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19174 for as_dir in $PATH 19175 do 19176 IFS=$as_save_IFS 19177 test -z "$as_dir" && as_dir=. 19178 for ac_exec_ext in '' $ac_executable_extensions; do 19179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19180 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19182 break 2 19183 fi 19184 done 19185 done 19186 IFS=$as_save_IFS 19187 19188 ;; 19189 esac 19190 fi 19191 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19192 if test -n "$PKG_CONFIG"; then 19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19194 $as_echo "$PKG_CONFIG" >&6; } 19195 else 19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19197 $as_echo "no" >&6; } 19198 fi 19199 19200 19201 fi 19202 if test -z "$ac_cv_path_PKG_CONFIG"; then 19203 ac_pt_PKG_CONFIG=$PKG_CONFIG 19204 # Extract the first word of "pkg-config", so it can be a program name with args. 19205 set dummy pkg-config; ac_word=$2 19206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19207 $as_echo_n "checking for $ac_word... " >&6; } 19208 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19209 $as_echo_n "(cached) " >&6 19210 else 19211 case $ac_pt_PKG_CONFIG in 19212 [\\/]* | ?:[\\/]*) 19213 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19214 ;; 19215 *) 19216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19217 for as_dir in $PATH 19218 do 19219 IFS=$as_save_IFS 19220 test -z "$as_dir" && as_dir=. 19221 for ac_exec_ext in '' $ac_executable_extensions; do 19222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19223 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19225 break 2 19226 fi 19227 done 19228 done 19229 IFS=$as_save_IFS 19230 19231 ;; 19232 esac 19233 fi 19234 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19235 if test -n "$ac_pt_PKG_CONFIG"; then 19236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19237 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19238 else 19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19240 $as_echo "no" >&6; } 19241 fi 19242 19243 if test "x$ac_pt_PKG_CONFIG" = x; then 19244 PKG_CONFIG="" 19245 else 19246 case $cross_compiling:$ac_tool_warned in 19247 yes:) 19248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19250 ac_tool_warned=yes ;; 19251 esac 19252 PKG_CONFIG=$ac_pt_PKG_CONFIG 19253 fi 19254 else 19255 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19256 fi 19257 19258 fi 19259 if test -n "$PKG_CONFIG"; then 19260 _pkg_min_version=0.9.0 19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19262 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19263 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19265 $as_echo "yes" >&6; } 19266 else 19267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19268 $as_echo "no" >&6; } 19269 PKG_CONFIG="" 19270 fi 19271 19272 fi 19273 19274 # After basic tools have been setup, we can check build os specific details. 19275 19276 ############################################################################### 19277 19278 # Note that this is the build platform OS version! 19279 19280 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19281 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19282 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19283 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19284 19285 19286 19287 19288 19289 # Setup builddeps, for automatic downloading of tools we need. 19290 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19291 # boot-jdk setup, but we need to have basic tools setup first. 19292 19293 19294 # Check whether --with-builddeps-conf was given. 19295 if test "${with_builddeps_conf+set}" = set; then : 19296 withval=$with_builddeps_conf; 19297 fi 19298 19299 19300 19301 # Check whether --with-builddeps-server was given. 19302 if test "${with_builddeps_server+set}" = set; then : 19303 withval=$with_builddeps_server; 19304 fi 19305 19306 19307 19308 # Check whether --with-builddeps-dir was given. 19309 if test "${with_builddeps_dir+set}" = set; then : 19310 withval=$with_builddeps_dir; 19311 else 19312 with_builddeps_dir=/localhome/builddeps 19313 fi 19314 19315 19316 19317 # Check whether --with-builddeps-group was given. 19318 if test "${with_builddeps_group+set}" = set; then : 19319 withval=$with_builddeps_group; 19320 fi 19321 19322 19323 19324 19325 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19326 if test "x$with_builddeps_conf" != x; then 19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19328 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19329 builddepsfile=$with_builddeps_conf 19330 if test -s $builddepsfile; then 19331 . $builddepsfile 19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19333 $as_echo "loaded!" >&6; } 19334 else 19335 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19336 fi 19337 else 19338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19339 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19340 builddepsfile=`mktemp` 19341 touch $builddepsfile 19342 # Put all found confs into a single file. 19343 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19344 # Source the file to acquire the variables 19345 if test -s $builddepsfile; then 19346 . $builddepsfile 19347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19348 $as_echo "found at least one!" >&6; } 19349 else 19350 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19351 fi 19352 fi 19353 # Create build and target names that use _ instead of "-" and ".". 19354 # This is necessary to use them in variable names. 19355 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19356 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19357 # Extract rewrite information for build and target 19358 eval rewritten_build=\${REWRITE_${build_var}} 19359 if test "x$rewritten_build" = x; then 19360 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19361 echo Build stays the same $rewritten_build 19362 else 19363 echo Rewriting build for builddeps into $rewritten_build 19364 fi 19365 eval rewritten_target=\${REWRITE_${target_var}} 19366 if test "x$rewritten_target" = x; then 19367 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19368 echo Target stays the same $rewritten_target 19369 else 19370 echo Rewriting target for builddeps into $rewritten_target 19371 fi 19372 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19373 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19374 fi 19375 for ac_prog in 7z unzip 19376 do 19377 # Extract the first word of "$ac_prog", so it can be a program name with args. 19378 set dummy $ac_prog; ac_word=$2 19379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19380 $as_echo_n "checking for $ac_word... " >&6; } 19381 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19382 $as_echo_n "(cached) " >&6 19383 else 19384 if test -n "$BDEPS_UNZIP"; then 19385 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19386 else 19387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19388 for as_dir in $PATH 19389 do 19390 IFS=$as_save_IFS 19391 test -z "$as_dir" && as_dir=. 19392 for ac_exec_ext in '' $ac_executable_extensions; do 19393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19394 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19396 break 2 19397 fi 19398 done 19399 done 19400 IFS=$as_save_IFS 19401 19402 fi 19403 fi 19404 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19405 if test -n "$BDEPS_UNZIP"; then 19406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19407 $as_echo "$BDEPS_UNZIP" >&6; } 19408 else 19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19410 $as_echo "no" >&6; } 19411 fi 19412 19413 19414 test -n "$BDEPS_UNZIP" && break 19415 done 19416 19417 if test "x$BDEPS_UNZIP" = x7z; then 19418 BDEPS_UNZIP="7z x" 19419 fi 19420 19421 for ac_prog in wget lftp ftp 19422 do 19423 # Extract the first word of "$ac_prog", so it can be a program name with args. 19424 set dummy $ac_prog; ac_word=$2 19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19426 $as_echo_n "checking for $ac_word... " >&6; } 19427 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19428 $as_echo_n "(cached) " >&6 19429 else 19430 if test -n "$BDEPS_FTP"; then 19431 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19432 else 19433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19434 for as_dir in $PATH 19435 do 19436 IFS=$as_save_IFS 19437 test -z "$as_dir" && as_dir=. 19438 for ac_exec_ext in '' $ac_executable_extensions; do 19439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19440 ac_cv_prog_BDEPS_FTP="$ac_prog" 19441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19442 break 2 19443 fi 19444 done 19445 done 19446 IFS=$as_save_IFS 19447 19448 fi 19449 fi 19450 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19451 if test -n "$BDEPS_FTP"; then 19452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19453 $as_echo "$BDEPS_FTP" >&6; } 19454 else 19455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19456 $as_echo "no" >&6; } 19457 fi 19458 19459 19460 test -n "$BDEPS_FTP" && break 19461 done 19462 19463 19464 19465 ############################################################################### 19466 # 19467 # Determine OpenJDK variants, options and version numbers. 19468 # 19469 ############################################################################### 19470 19471 # We need build & target for this. 19472 19473 19474 ############################################################################### 19475 # 19476 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19477 # We always build headless support. 19478 # 19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19480 $as_echo_n "checking headful support... " >&6; } 19481 # Check whether --enable-headful was given. 19482 if test "${enable_headful+set}" = set; then : 19483 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19484 else 19485 SUPPORT_HEADFUL=yes 19486 fi 19487 19488 19489 SUPPORT_HEADLESS=yes 19490 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19491 19492 if test "x$SUPPORT_HEADFUL" = xyes; then 19493 # We are building both headful and headless. 19494 headful_msg="include support for both headful and headless" 19495 fi 19496 19497 if test "x$SUPPORT_HEADFUL" = xno; then 19498 # Thus we are building headless only. 19499 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19500 headful_msg="headless only" 19501 fi 19502 19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19504 $as_echo "$headful_msg" >&6; } 19505 19506 19507 19508 19509 19510 # Control wether Hotspot runs Queens test after build. 19511 # Check whether --enable-hotspot-test-in-build was given. 19512 if test "${enable_hotspot_test_in_build+set}" = set; then : 19513 enableval=$enable_hotspot_test_in_build; 19514 else 19515 enable_hotspot_test_in_build=no 19516 fi 19517 19518 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19519 TEST_IN_BUILD=true 19520 else 19521 TEST_IN_BUILD=false 19522 fi 19523 19524 19525 ############################################################################### 19526 # 19527 # Choose cacerts source file 19528 # 19529 19530 # Check whether --with-cacerts-file was given. 19531 if test "${with_cacerts_file+set}" = set; then : 19532 withval=$with_cacerts_file; 19533 fi 19534 19535 if test "x$with_cacerts_file" != x; then 19536 CACERTS_FILE=$with_cacerts_file 19537 else 19538 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19539 fi 19540 19541 19542 ############################################################################### 19543 # 19544 # Enable or disable unlimited crypto 19545 # 19546 # Check whether --enable-unlimited-crypto was given. 19547 if test "${enable_unlimited_crypto+set}" = set; then : 19548 enableval=$enable_unlimited_crypto; 19549 else 19550 enable_unlimited_crypto=no 19551 fi 19552 19553 if test "x$enable_unlimited_crypto" = "xyes"; then 19554 UNLIMITED_CRYPTO=true 19555 else 19556 UNLIMITED_CRYPTO=false 19557 fi 19558 19559 19560 ############################################################################### 19561 # 19562 # Enable or disable the elliptic curve crypto implementation 19563 # 19564 19565 19566 ############################################################################### 19567 # 19568 # --enable-rmiconnector-iiop 19569 # 19570 # Check whether --enable-rmiconnector-iiop was given. 19571 if test "${enable_rmiconnector_iiop+set}" = set; then : 19572 enableval=$enable_rmiconnector_iiop; 19573 fi 19574 19575 if test "x$enable_rmiconnector_iiop" = "xyes"; then 19576 RMICONNECTOR_IIOP=true 19577 else 19578 RMICONNECTOR_IIOP=false 19579 fi 19580 19581 19582 ############################################################################### 19583 # 19584 # Compress jars 19585 # 19586 COMPRESS_JARS=false 19587 19588 19589 19590 19591 # Source the version numbers 19592 . $AUTOCONF_DIR/version-numbers 19593 19594 # Get the settings from parameters 19595 19596 # Check whether --with-milestone was given. 19597 if test "${with_milestone+set}" = set; then : 19598 withval=$with_milestone; 19599 fi 19600 19601 if test "x$with_milestone" = xyes; then 19602 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19603 elif test "x$with_milestone" != x; then 19604 MILESTONE="$with_milestone" 19605 fi 19606 if test "x$MILESTONE" = x; then 19607 MILESTONE=internal 19608 fi 19609 19610 19611 # Check whether --with-update-version was given. 19612 if test "${with_update_version+set}" = set; then : 19613 withval=$with_update_version; 19614 fi 19615 19616 if test "x$with_update_version" = xyes; then 19617 as_fn_error $? "Update version must have a value" "$LINENO" 5 19618 elif test "x$with_update_version" != x; then 19619 JDK_UPDATE_VERSION="$with_update_version" 19620 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19621 # to a bug in expr (which reduces it to just X). To work around this, we 19622 # always add a 0 to one digit update versions. 19623 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19624 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19625 fi 19626 fi 19627 19628 19629 # Check whether --with-user-release-suffix was given. 19630 if test "${with_user_release_suffix+set}" = set; then : 19631 withval=$with_user_release_suffix; 19632 fi 19633 19634 if test "x$with_user_release_suffix" = xyes; then 19635 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19636 elif test "x$with_user_release_suffix" != x; then 19637 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19638 fi 19639 19640 19641 # Check whether --with-build-number was given. 19642 if test "${with_build_number+set}" = set; then : 19643 withval=$with_build_number; 19644 fi 19645 19646 if test "x$with_build_number" = xyes; then 19647 as_fn_error $? "Build number must have a value" "$LINENO" 5 19648 elif test "x$with_build_number" != x; then 19649 JDK_BUILD_NUMBER="$with_build_number" 19650 fi 19651 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19652 if test "x$JDK_BUILD_NUMBER" = x; then 19653 JDK_BUILD_NUMBER=b00 19654 if test "x$USER_RELEASE_SUFFIX" = x; then 19655 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19656 # Avoid [:alnum:] since it depends on the locale. 19657 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19658 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19659 fi 19660 fi 19661 19662 # Now set the JDK version, milestone, build number etc. 19663 19664 19665 19666 19667 19668 19669 19670 19671 19672 19673 19674 19675 19676 19677 19678 COPYRIGHT_YEAR=`date +'%Y'` 19679 19680 19681 if test "x$JDK_UPDATE_VERSION" != x; then 19682 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19683 else 19684 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19685 fi 19686 19687 19688 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19689 19690 19691 19692 ############################################################################### 19693 # 19694 # Setup BootJDK, used to bootstrap the build. 19695 # 19696 ############################################################################### 19697 19698 19699 BOOT_JDK_FOUND=no 19700 19701 # Check whether --with-boot-jdk was given. 19702 if test "${with_boot_jdk+set}" = set; then : 19703 withval=$with_boot_jdk; 19704 fi 19705 19706 19707 # We look for the Boot JDK through various means, going from more certain to 19708 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19709 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19710 # must check if this is indeed valid; otherwise we'll continue looking. 19711 19712 # Test: Is bootjdk explicitely set by command line arguments? 19713 19714 if test "x$BOOT_JDK_FOUND" = xno; then 19715 # Now execute the test 19716 19717 if test "x$with_boot_jdk" != x; then 19718 BOOT_JDK=$with_boot_jdk 19719 BOOT_JDK_FOUND=maybe 19720 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19721 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19722 fi 19723 19724 19725 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19726 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19727 # Do we have a bin/java? 19728 if test ! -x "$BOOT_JDK/bin/java"; then 19729 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19730 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19731 BOOT_JDK_FOUND=no 19732 else 19733 # Do we have a bin/javac? 19734 if test ! -x "$BOOT_JDK/bin/javac"; then 19735 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19736 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19737 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19738 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19739 BOOT_JDK_FOUND=no 19740 else 19741 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19742 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19743 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19744 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19745 BOOT_JDK_FOUND=no 19746 else 19747 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19748 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19749 19750 # Extra M4 quote needed to protect [] in grep expression. 19751 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 19752 if test "x$FOUND_CORRECT_VERSION" = x; then 19753 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19754 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19755 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 19756 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 19757 BOOT_JDK_FOUND=no 19758 else 19759 # We're done! :-) 19760 BOOT_JDK_FOUND=yes 19761 19762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19763 19764 # Input might be given as Windows format, start by converting to 19765 # unix format. 19766 path="$BOOT_JDK" 19767 new_path=`$CYGPATH -u "$path"` 19768 19769 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19770 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19771 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19772 # "foo.exe" is OK but "foo" is an error. 19773 # 19774 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19775 # It is also a way to make sure we got the proper file name for the real test later on. 19776 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19777 if test "x$test_shortpath" = x; then 19778 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19779 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19780 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19781 fi 19782 19783 # Call helper function which possibly converts this using DOS-style short mode. 19784 # If so, the updated path is stored in $new_path. 19785 19786 input_path="$new_path" 19787 # Check if we need to convert this using DOS-style short mode. If the path 19788 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19789 # take no chances and rewrite it. 19790 # Note: m4 eats our [], so we need to use [ and ] instead. 19791 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19792 if test "x$has_forbidden_chars" != x; then 19793 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19794 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19795 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19796 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19797 # Going to short mode and back again did indeed matter. Since short mode is 19798 # case insensitive, let's make it lowercase to improve readability. 19799 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19800 # Now convert it back to Unix-stile (cygpath) 19801 input_path=`$CYGPATH -u "$shortmode_path"` 19802 new_path="$input_path" 19803 fi 19804 fi 19805 19806 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19807 if test "x$test_cygdrive_prefix" = x; then 19808 # As a simple fix, exclude /usr/bin since it's not a real path. 19809 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19810 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19811 # a path prefixed by /cygdrive for fixpath to work. 19812 new_path="$CYGWIN_ROOT_PATH$input_path" 19813 fi 19814 fi 19815 19816 19817 if test "x$path" != "x$new_path"; then 19818 BOOT_JDK="$new_path" 19819 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19820 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19821 fi 19822 19823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19824 19825 path="$BOOT_JDK" 19826 has_colon=`$ECHO $path | $GREP ^.:` 19827 new_path="$path" 19828 if test "x$has_colon" = x; then 19829 # Not in mixed or Windows style, start by that. 19830 new_path=`cmd //c echo $path` 19831 fi 19832 19833 19834 input_path="$new_path" 19835 # Check if we need to convert this using DOS-style short mode. If the path 19836 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19837 # take no chances and rewrite it. 19838 # Note: m4 eats our [], so we need to use [ and ] instead. 19839 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19840 if test "x$has_forbidden_chars" != x; then 19841 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19842 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19843 fi 19844 19845 19846 windows_path="$new_path" 19847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19848 unix_path=`$CYGPATH -u "$windows_path"` 19849 new_path="$unix_path" 19850 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19851 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19852 new_path="$unix_path" 19853 fi 19854 19855 if test "x$path" != "x$new_path"; then 19856 BOOT_JDK="$new_path" 19857 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19858 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19859 fi 19860 19861 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19862 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19863 19864 else 19865 # We're on a posix platform. Hooray! :) 19866 path="$BOOT_JDK" 19867 has_space=`$ECHO "$path" | $GREP " "` 19868 if test "x$has_space" != x; then 19869 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19870 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19871 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 19872 fi 19873 19874 # Use eval to expand a potential ~ 19875 eval path="$path" 19876 if test ! -f "$path" && test ! -d "$path"; then 19877 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 19878 fi 19879 19880 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 19881 fi 19882 19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 19884 $as_echo_n "checking for Boot JDK... " >&6; } 19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 19886 $as_echo "$BOOT_JDK" >&6; } 19887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 19888 $as_echo_n "checking Boot JDK version... " >&6; } 19889 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 19891 $as_echo "$BOOT_JDK_VERSION" >&6; } 19892 fi # end check jdk version 19893 fi # end check rt.jar 19894 fi # end check javac 19895 fi # end check java 19896 fi # end check boot jdk found 19897 fi 19898 19899 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 19900 # Having specified an argument which is incorrect will produce an instant failure; 19901 # we should not go on looking 19902 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 19903 fi 19904 19905 # Test: Is bootjdk available from builddeps? 19906 19907 if test "x$BOOT_JDK_FOUND" = xno; then 19908 # Now execute the test 19909 19910 19911 19912 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19913 # Source the builddeps file again, to make sure it uses the latest variables! 19914 . $builddepsfile 19915 # Look for a target and build machine specific resource! 19916 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 19917 if test "x$resource" = x; then 19918 # Ok, lets instead look for a target specific resource 19919 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 19920 fi 19921 if test "x$resource" = x; then 19922 # Ok, lets instead look for a build specific resource 19923 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 19924 fi 19925 if test "x$resource" = x; then 19926 # Ok, lets instead look for a generic resource 19927 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 19928 resource=${builddep_bootjdk} 19929 fi 19930 if test "x$resource" != x; then 19931 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 19932 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 19933 # If the resource in the builddeps.conf file is an existing directory, 19934 # for example /java/linux/cups 19935 if test -d ${resource}; then 19936 depdir=${resource} 19937 else 19938 19939 # bootjdk is for example mymodule 19940 # $resource is for example libs/general/libmymod_1_2_3.zip 19941 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 19942 # $with_builddeps_dir is for example /localhome/builddeps 19943 # depdir is the name of the variable into which we store the depdir, eg MYMOD 19944 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 19945 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 19946 filename=`basename $resource` 19947 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 19948 filebase=${filename%%.*} 19949 extension=${filename#*.} 19950 installdir=$with_builddeps_dir/$filebase 19951 if test ! -f $installdir/$filename.unpacked; then 19952 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 19953 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 19954 if test ! -d $installdir; then 19955 mkdir -p $installdir 19956 fi 19957 if test ! -d $installdir; then 19958 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 19959 fi 19960 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 19961 touch $tmpfile 19962 if test ! -f $tmpfile; then 19963 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 19964 fi 19965 19966 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 19967 # $tmpfile is the local file name for the downloaded file. 19968 VALID_TOOL=no 19969 if test "x$BDEPS_FTP" = xwget; then 19970 VALID_TOOL=yes 19971 wget -O $tmpfile $with_builddeps_server/$resource 19972 fi 19973 if test "x$BDEPS_FTP" = xlftp; then 19974 VALID_TOOL=yes 19975 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 19976 fi 19977 if test "x$BDEPS_FTP" = xftp; then 19978 VALID_TOOL=yes 19979 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 19980 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 19981 FTPUSERPWD=${FTPSERVER%%@*} 19982 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 19983 FTPUSER=${userpwd%%:*} 19984 FTPPWD=${userpwd#*@} 19985 FTPSERVER=${FTPSERVER#*@} 19986 else 19987 FTPUSER=ftp 19988 FTPPWD=ftp 19989 fi 19990 # the "pass" command does not work on some 19991 # ftp clients (read ftp.exe) but if it works, 19992 # passive mode is better! 19993 ( \ 19994 echo "user $FTPUSER $FTPPWD" ; \ 19995 echo "pass" ; \ 19996 echo "bin" ; \ 19997 echo "get $FTPPATH $tmpfile" ; \ 19998 ) | ftp -in $FTPSERVER 19999 fi 20000 if test "x$VALID_TOOL" != xyes; then 20001 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 20002 fi 20003 20004 mv $tmpfile $installdir/$filename 20005 if test ! -s $installdir/$filename; then 20006 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 20007 fi 20008 case "$extension" in 20009 zip) echo "Unzipping $installdir/$filename..." 20010 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 20011 ;; 20012 tar.gz) echo "Untaring $installdir/$filename..." 20013 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20014 ;; 20015 tgz) echo "Untaring $installdir/$filename..." 20016 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 20017 ;; 20018 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 20019 ;; 20020 esac 20021 fi 20022 if test -f $installdir/$filename.unpacked; then 20023 depdir=$installdir 20024 fi 20025 20026 fi 20027 # Source the builddeps file again, because in the previous command, the depdir 20028 # was updated to point at the current build dependency install directory. 20029 . $builddepsfile 20030 # Now extract variables from the builddeps.conf files. 20031 theroot=${builddep_bootjdk_ROOT} 20032 thecflags=${builddep_bootjdk_CFLAGS} 20033 thelibs=${builddep_bootjdk_LIBS} 20034 if test "x$depdir" = x; then 20035 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 20036 fi 20037 BOOT_JDK=$depdir 20038 if test "x$theroot" != x; then 20039 BOOT_JDK="$theroot" 20040 fi 20041 if test "x$thecflags" != x; then 20042 BOOT_JDK_CFLAGS="$thecflags" 20043 fi 20044 if test "x$thelibs" != x; then 20045 BOOT_JDK_LIBS="$thelibs" 20046 fi 20047 BOOT_JDK_FOUND=maybe 20048 else BOOT_JDK_FOUND=no 20049 20050 fi 20051 else BOOT_JDK_FOUND=no 20052 20053 fi 20054 20055 20056 20057 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20058 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20059 # Do we have a bin/java? 20060 if test ! -x "$BOOT_JDK/bin/java"; then 20061 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20062 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20063 BOOT_JDK_FOUND=no 20064 else 20065 # Do we have a bin/javac? 20066 if test ! -x "$BOOT_JDK/bin/javac"; then 20067 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20068 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20069 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20070 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20071 BOOT_JDK_FOUND=no 20072 else 20073 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20074 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20075 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20076 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20077 BOOT_JDK_FOUND=no 20078 else 20079 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20080 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20081 20082 # Extra M4 quote needed to protect [] in grep expression. 20083 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20084 if test "x$FOUND_CORRECT_VERSION" = x; then 20085 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20086 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20087 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20088 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20089 BOOT_JDK_FOUND=no 20090 else 20091 # We're done! :-) 20092 BOOT_JDK_FOUND=yes 20093 20094 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20095 20096 # Input might be given as Windows format, start by converting to 20097 # unix format. 20098 path="$BOOT_JDK" 20099 new_path=`$CYGPATH -u "$path"` 20100 20101 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20102 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20103 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20104 # "foo.exe" is OK but "foo" is an error. 20105 # 20106 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20107 # It is also a way to make sure we got the proper file name for the real test later on. 20108 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20109 if test "x$test_shortpath" = x; then 20110 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20111 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20112 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20113 fi 20114 20115 # Call helper function which possibly converts this using DOS-style short mode. 20116 # If so, the updated path is stored in $new_path. 20117 20118 input_path="$new_path" 20119 # Check if we need to convert this using DOS-style short mode. If the path 20120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20121 # take no chances and rewrite it. 20122 # Note: m4 eats our [], so we need to use [ and ] instead. 20123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20124 if test "x$has_forbidden_chars" != x; then 20125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20126 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20127 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20128 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20129 # Going to short mode and back again did indeed matter. Since short mode is 20130 # case insensitive, let's make it lowercase to improve readability. 20131 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20132 # Now convert it back to Unix-stile (cygpath) 20133 input_path=`$CYGPATH -u "$shortmode_path"` 20134 new_path="$input_path" 20135 fi 20136 fi 20137 20138 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20139 if test "x$test_cygdrive_prefix" = x; then 20140 # As a simple fix, exclude /usr/bin since it's not a real path. 20141 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20142 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20143 # a path prefixed by /cygdrive for fixpath to work. 20144 new_path="$CYGWIN_ROOT_PATH$input_path" 20145 fi 20146 fi 20147 20148 20149 if test "x$path" != "x$new_path"; then 20150 BOOT_JDK="$new_path" 20151 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20152 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20153 fi 20154 20155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20156 20157 path="$BOOT_JDK" 20158 has_colon=`$ECHO $path | $GREP ^.:` 20159 new_path="$path" 20160 if test "x$has_colon" = x; then 20161 # Not in mixed or Windows style, start by that. 20162 new_path=`cmd //c echo $path` 20163 fi 20164 20165 20166 input_path="$new_path" 20167 # Check if we need to convert this using DOS-style short mode. If the path 20168 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20169 # take no chances and rewrite it. 20170 # Note: m4 eats our [], so we need to use [ and ] instead. 20171 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20172 if test "x$has_forbidden_chars" != x; then 20173 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20174 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20175 fi 20176 20177 20178 windows_path="$new_path" 20179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20180 unix_path=`$CYGPATH -u "$windows_path"` 20181 new_path="$unix_path" 20182 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20183 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20184 new_path="$unix_path" 20185 fi 20186 20187 if test "x$path" != "x$new_path"; then 20188 BOOT_JDK="$new_path" 20189 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20190 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20191 fi 20192 20193 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20194 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20195 20196 else 20197 # We're on a posix platform. Hooray! :) 20198 path="$BOOT_JDK" 20199 has_space=`$ECHO "$path" | $GREP " "` 20200 if test "x$has_space" != x; then 20201 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20202 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20203 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20204 fi 20205 20206 # Use eval to expand a potential ~ 20207 eval path="$path" 20208 if test ! -f "$path" && test ! -d "$path"; then 20209 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20210 fi 20211 20212 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20213 fi 20214 20215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20216 $as_echo_n "checking for Boot JDK... " >&6; } 20217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20218 $as_echo "$BOOT_JDK" >&6; } 20219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20220 $as_echo_n "checking Boot JDK version... " >&6; } 20221 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20223 $as_echo "$BOOT_JDK_VERSION" >&6; } 20224 fi # end check jdk version 20225 fi # end check rt.jar 20226 fi # end check javac 20227 fi # end check java 20228 fi # end check boot jdk found 20229 fi 20230 20231 20232 # Test: On MacOS X, can we find a boot jdk using /usr/libexec/java_home? 20233 20234 if test "x$BOOT_JDK_FOUND" = xno; then 20235 # Now execute the test 20236 20237 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 20238 # First check at user selected default 20239 20240 if test "x$BOOT_JDK_FOUND" = xno; then 20241 # Now execute the test 20242 20243 if test -x /usr/libexec/java_home; then 20244 BOOT_JDK=`/usr/libexec/java_home ` 20245 BOOT_JDK_FOUND=maybe 20246 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home " >&5 20247 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home " >&6;} 20248 fi 20249 20250 20251 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20252 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20253 # Do we have a bin/java? 20254 if test ! -x "$BOOT_JDK/bin/java"; then 20255 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20256 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20257 BOOT_JDK_FOUND=no 20258 else 20259 # Do we have a bin/javac? 20260 if test ! -x "$BOOT_JDK/bin/javac"; then 20261 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20262 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20263 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20264 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20265 BOOT_JDK_FOUND=no 20266 else 20267 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20268 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20269 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20270 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20271 BOOT_JDK_FOUND=no 20272 else 20273 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20274 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20275 20276 # Extra M4 quote needed to protect [] in grep expression. 20277 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20278 if test "x$FOUND_CORRECT_VERSION" = x; then 20279 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20280 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20281 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20282 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20283 BOOT_JDK_FOUND=no 20284 else 20285 # We're done! :-) 20286 BOOT_JDK_FOUND=yes 20287 20288 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20289 20290 # Input might be given as Windows format, start by converting to 20291 # unix format. 20292 path="$BOOT_JDK" 20293 new_path=`$CYGPATH -u "$path"` 20294 20295 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20296 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20297 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20298 # "foo.exe" is OK but "foo" is an error. 20299 # 20300 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20301 # It is also a way to make sure we got the proper file name for the real test later on. 20302 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20303 if test "x$test_shortpath" = x; then 20304 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20305 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20306 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20307 fi 20308 20309 # Call helper function which possibly converts this using DOS-style short mode. 20310 # If so, the updated path is stored in $new_path. 20311 20312 input_path="$new_path" 20313 # Check if we need to convert this using DOS-style short mode. If the path 20314 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20315 # take no chances and rewrite it. 20316 # Note: m4 eats our [], so we need to use [ and ] instead. 20317 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20318 if test "x$has_forbidden_chars" != x; then 20319 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20320 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20321 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20322 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20323 # Going to short mode and back again did indeed matter. Since short mode is 20324 # case insensitive, let's make it lowercase to improve readability. 20325 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20326 # Now convert it back to Unix-stile (cygpath) 20327 input_path=`$CYGPATH -u "$shortmode_path"` 20328 new_path="$input_path" 20329 fi 20330 fi 20331 20332 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20333 if test "x$test_cygdrive_prefix" = x; then 20334 # As a simple fix, exclude /usr/bin since it's not a real path. 20335 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20336 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20337 # a path prefixed by /cygdrive for fixpath to work. 20338 new_path="$CYGWIN_ROOT_PATH$input_path" 20339 fi 20340 fi 20341 20342 20343 if test "x$path" != "x$new_path"; then 20344 BOOT_JDK="$new_path" 20345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20347 fi 20348 20349 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20350 20351 path="$BOOT_JDK" 20352 has_colon=`$ECHO $path | $GREP ^.:` 20353 new_path="$path" 20354 if test "x$has_colon" = x; then 20355 # Not in mixed or Windows style, start by that. 20356 new_path=`cmd //c echo $path` 20357 fi 20358 20359 20360 input_path="$new_path" 20361 # Check if we need to convert this using DOS-style short mode. If the path 20362 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20363 # take no chances and rewrite it. 20364 # Note: m4 eats our [], so we need to use [ and ] instead. 20365 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20366 if test "x$has_forbidden_chars" != x; then 20367 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20368 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20369 fi 20370 20371 20372 windows_path="$new_path" 20373 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20374 unix_path=`$CYGPATH -u "$windows_path"` 20375 new_path="$unix_path" 20376 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20377 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20378 new_path="$unix_path" 20379 fi 20380 20381 if test "x$path" != "x$new_path"; then 20382 BOOT_JDK="$new_path" 20383 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20384 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20385 fi 20386 20387 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20388 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20389 20390 else 20391 # We're on a posix platform. Hooray! :) 20392 path="$BOOT_JDK" 20393 has_space=`$ECHO "$path" | $GREP " "` 20394 if test "x$has_space" != x; then 20395 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20396 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20397 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20398 fi 20399 20400 # Use eval to expand a potential ~ 20401 eval path="$path" 20402 if test ! -f "$path" && test ! -d "$path"; then 20403 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20404 fi 20405 20406 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20407 fi 20408 20409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20410 $as_echo_n "checking for Boot JDK... " >&6; } 20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20412 $as_echo "$BOOT_JDK" >&6; } 20413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20414 $as_echo_n "checking Boot JDK version... " >&6; } 20415 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20417 $as_echo "$BOOT_JDK_VERSION" >&6; } 20418 fi # end check jdk version 20419 fi # end check rt.jar 20420 fi # end check javac 20421 fi # end check java 20422 fi # end check boot jdk found 20423 fi 20424 20425 # If that did not work out (e.g. too old), try explicit versions instead 20426 20427 if test "x$BOOT_JDK_FOUND" = xno; then 20428 # Now execute the test 20429 20430 if test -x /usr/libexec/java_home; then 20431 BOOT_JDK=`/usr/libexec/java_home -v 1.9` 20432 BOOT_JDK_FOUND=maybe 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&5 20434 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.9" >&6;} 20435 fi 20436 20437 20438 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20439 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20440 # Do we have a bin/java? 20441 if test ! -x "$BOOT_JDK/bin/java"; then 20442 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20443 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20444 BOOT_JDK_FOUND=no 20445 else 20446 # Do we have a bin/javac? 20447 if test ! -x "$BOOT_JDK/bin/javac"; then 20448 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20449 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20450 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20451 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20452 BOOT_JDK_FOUND=no 20453 else 20454 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20455 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20456 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20457 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20458 BOOT_JDK_FOUND=no 20459 else 20460 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20461 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20462 20463 # Extra M4 quote needed to protect [] in grep expression. 20464 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20465 if test "x$FOUND_CORRECT_VERSION" = x; then 20466 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20467 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20468 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20469 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20470 BOOT_JDK_FOUND=no 20471 else 20472 # We're done! :-) 20473 BOOT_JDK_FOUND=yes 20474 20475 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20476 20477 # Input might be given as Windows format, start by converting to 20478 # unix format. 20479 path="$BOOT_JDK" 20480 new_path=`$CYGPATH -u "$path"` 20481 20482 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20483 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20484 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20485 # "foo.exe" is OK but "foo" is an error. 20486 # 20487 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20488 # It is also a way to make sure we got the proper file name for the real test later on. 20489 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20490 if test "x$test_shortpath" = x; then 20491 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20492 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20493 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20494 fi 20495 20496 # Call helper function which possibly converts this using DOS-style short mode. 20497 # If so, the updated path is stored in $new_path. 20498 20499 input_path="$new_path" 20500 # Check if we need to convert this using DOS-style short mode. If the path 20501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20502 # take no chances and rewrite it. 20503 # Note: m4 eats our [], so we need to use [ and ] instead. 20504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20505 if test "x$has_forbidden_chars" != x; then 20506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20507 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20508 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20509 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20510 # Going to short mode and back again did indeed matter. Since short mode is 20511 # case insensitive, let's make it lowercase to improve readability. 20512 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20513 # Now convert it back to Unix-stile (cygpath) 20514 input_path=`$CYGPATH -u "$shortmode_path"` 20515 new_path="$input_path" 20516 fi 20517 fi 20518 20519 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20520 if test "x$test_cygdrive_prefix" = x; then 20521 # As a simple fix, exclude /usr/bin since it's not a real path. 20522 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20523 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20524 # a path prefixed by /cygdrive for fixpath to work. 20525 new_path="$CYGWIN_ROOT_PATH$input_path" 20526 fi 20527 fi 20528 20529 20530 if test "x$path" != "x$new_path"; then 20531 BOOT_JDK="$new_path" 20532 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20533 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20534 fi 20535 20536 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20537 20538 path="$BOOT_JDK" 20539 has_colon=`$ECHO $path | $GREP ^.:` 20540 new_path="$path" 20541 if test "x$has_colon" = x; then 20542 # Not in mixed or Windows style, start by that. 20543 new_path=`cmd //c echo $path` 20544 fi 20545 20546 20547 input_path="$new_path" 20548 # Check if we need to convert this using DOS-style short mode. If the path 20549 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20550 # take no chances and rewrite it. 20551 # Note: m4 eats our [], so we need to use [ and ] instead. 20552 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20553 if test "x$has_forbidden_chars" != x; then 20554 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20555 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20556 fi 20557 20558 20559 windows_path="$new_path" 20560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20561 unix_path=`$CYGPATH -u "$windows_path"` 20562 new_path="$unix_path" 20563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20565 new_path="$unix_path" 20566 fi 20567 20568 if test "x$path" != "x$new_path"; then 20569 BOOT_JDK="$new_path" 20570 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20571 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20572 fi 20573 20574 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20575 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20576 20577 else 20578 # We're on a posix platform. Hooray! :) 20579 path="$BOOT_JDK" 20580 has_space=`$ECHO "$path" | $GREP " "` 20581 if test "x$has_space" != x; then 20582 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20583 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20584 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20585 fi 20586 20587 # Use eval to expand a potential ~ 20588 eval path="$path" 20589 if test ! -f "$path" && test ! -d "$path"; then 20590 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20591 fi 20592 20593 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20594 fi 20595 20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20597 $as_echo_n "checking for Boot JDK... " >&6; } 20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20599 $as_echo "$BOOT_JDK" >&6; } 20600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20601 $as_echo_n "checking Boot JDK version... " >&6; } 20602 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20604 $as_echo "$BOOT_JDK_VERSION" >&6; } 20605 fi # end check jdk version 20606 fi # end check rt.jar 20607 fi # end check javac 20608 fi # end check java 20609 fi # end check boot jdk found 20610 fi 20611 20612 20613 if test "x$BOOT_JDK_FOUND" = xno; then 20614 # Now execute the test 20615 20616 if test -x /usr/libexec/java_home; then 20617 BOOT_JDK=`/usr/libexec/java_home -v 1.8` 20618 BOOT_JDK_FOUND=maybe 20619 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&5 20620 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.8" >&6;} 20621 fi 20622 20623 20624 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20625 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20626 # Do we have a bin/java? 20627 if test ! -x "$BOOT_JDK/bin/java"; then 20628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20630 BOOT_JDK_FOUND=no 20631 else 20632 # Do we have a bin/javac? 20633 if test ! -x "$BOOT_JDK/bin/javac"; then 20634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20636 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20638 BOOT_JDK_FOUND=no 20639 else 20640 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20641 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20644 BOOT_JDK_FOUND=no 20645 else 20646 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20647 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20648 20649 # Extra M4 quote needed to protect [] in grep expression. 20650 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20651 if test "x$FOUND_CORRECT_VERSION" = x; then 20652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20654 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20655 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20656 BOOT_JDK_FOUND=no 20657 else 20658 # We're done! :-) 20659 BOOT_JDK_FOUND=yes 20660 20661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20662 20663 # Input might be given as Windows format, start by converting to 20664 # unix format. 20665 path="$BOOT_JDK" 20666 new_path=`$CYGPATH -u "$path"` 20667 20668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20671 # "foo.exe" is OK but "foo" is an error. 20672 # 20673 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20674 # It is also a way to make sure we got the proper file name for the real test later on. 20675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20676 if test "x$test_shortpath" = x; then 20677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20679 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20680 fi 20681 20682 # Call helper function which possibly converts this using DOS-style short mode. 20683 # If so, the updated path is stored in $new_path. 20684 20685 input_path="$new_path" 20686 # Check if we need to convert this using DOS-style short mode. If the path 20687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20688 # take no chances and rewrite it. 20689 # Note: m4 eats our [], so we need to use [ and ] instead. 20690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20691 if test "x$has_forbidden_chars" != x; then 20692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20696 # Going to short mode and back again did indeed matter. Since short mode is 20697 # case insensitive, let's make it lowercase to improve readability. 20698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20699 # Now convert it back to Unix-stile (cygpath) 20700 input_path=`$CYGPATH -u "$shortmode_path"` 20701 new_path="$input_path" 20702 fi 20703 fi 20704 20705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20706 if test "x$test_cygdrive_prefix" = x; then 20707 # As a simple fix, exclude /usr/bin since it's not a real path. 20708 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20710 # a path prefixed by /cygdrive for fixpath to work. 20711 new_path="$CYGWIN_ROOT_PATH$input_path" 20712 fi 20713 fi 20714 20715 20716 if test "x$path" != "x$new_path"; then 20717 BOOT_JDK="$new_path" 20718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20720 fi 20721 20722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20723 20724 path="$BOOT_JDK" 20725 has_colon=`$ECHO $path | $GREP ^.:` 20726 new_path="$path" 20727 if test "x$has_colon" = x; then 20728 # Not in mixed or Windows style, start by that. 20729 new_path=`cmd //c echo $path` 20730 fi 20731 20732 20733 input_path="$new_path" 20734 # Check if we need to convert this using DOS-style short mode. If the path 20735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20736 # take no chances and rewrite it. 20737 # Note: m4 eats our [], so we need to use [ and ] instead. 20738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20739 if test "x$has_forbidden_chars" != x; then 20740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20741 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20742 fi 20743 20744 20745 windows_path="$new_path" 20746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20747 unix_path=`$CYGPATH -u "$windows_path"` 20748 new_path="$unix_path" 20749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20751 new_path="$unix_path" 20752 fi 20753 20754 if test "x$path" != "x$new_path"; then 20755 BOOT_JDK="$new_path" 20756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20758 fi 20759 20760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20762 20763 else 20764 # We're on a posix platform. Hooray! :) 20765 path="$BOOT_JDK" 20766 has_space=`$ECHO "$path" | $GREP " "` 20767 if test "x$has_space" != x; then 20768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20770 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20771 fi 20772 20773 # Use eval to expand a potential ~ 20774 eval path="$path" 20775 if test ! -f "$path" && test ! -d "$path"; then 20776 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20777 fi 20778 20779 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20780 fi 20781 20782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20783 $as_echo_n "checking for Boot JDK... " >&6; } 20784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20785 $as_echo "$BOOT_JDK" >&6; } 20786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20787 $as_echo_n "checking Boot JDK version... " >&6; } 20788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20790 $as_echo "$BOOT_JDK_VERSION" >&6; } 20791 fi # end check jdk version 20792 fi # end check rt.jar 20793 fi # end check javac 20794 fi # end check java 20795 fi # end check boot jdk found 20796 fi 20797 20798 20799 if test "x$BOOT_JDK_FOUND" = xno; then 20800 # Now execute the test 20801 20802 if test -x /usr/libexec/java_home; then 20803 BOOT_JDK=`/usr/libexec/java_home -v 1.7` 20804 BOOT_JDK_FOUND=maybe 20805 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&5 20806 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home -v 1.7" >&6;} 20807 fi 20808 20809 20810 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20811 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20812 # Do we have a bin/java? 20813 if test ! -x "$BOOT_JDK/bin/java"; then 20814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20816 BOOT_JDK_FOUND=no 20817 else 20818 # Do we have a bin/javac? 20819 if test ! -x "$BOOT_JDK/bin/javac"; then 20820 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20821 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20822 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20823 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20824 BOOT_JDK_FOUND=no 20825 else 20826 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20827 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20828 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20829 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20830 BOOT_JDK_FOUND=no 20831 else 20832 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20833 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20834 20835 # Extra M4 quote needed to protect [] in grep expression. 20836 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 20837 if test "x$FOUND_CORRECT_VERSION" = x; then 20838 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20839 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20840 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 20841 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 20842 BOOT_JDK_FOUND=no 20843 else 20844 # We're done! :-) 20845 BOOT_JDK_FOUND=yes 20846 20847 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20848 20849 # Input might be given as Windows format, start by converting to 20850 # unix format. 20851 path="$BOOT_JDK" 20852 new_path=`$CYGPATH -u "$path"` 20853 20854 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20855 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20856 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20857 # "foo.exe" is OK but "foo" is an error. 20858 # 20859 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20860 # It is also a way to make sure we got the proper file name for the real test later on. 20861 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20862 if test "x$test_shortpath" = x; then 20863 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20864 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20865 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20866 fi 20867 20868 # Call helper function which possibly converts this using DOS-style short mode. 20869 # If so, the updated path is stored in $new_path. 20870 20871 input_path="$new_path" 20872 # Check if we need to convert this using DOS-style short mode. If the path 20873 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20874 # take no chances and rewrite it. 20875 # Note: m4 eats our [], so we need to use [ and ] instead. 20876 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20877 if test "x$has_forbidden_chars" != x; then 20878 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20879 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20880 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20881 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20882 # Going to short mode and back again did indeed matter. Since short mode is 20883 # case insensitive, let's make it lowercase to improve readability. 20884 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20885 # Now convert it back to Unix-stile (cygpath) 20886 input_path=`$CYGPATH -u "$shortmode_path"` 20887 new_path="$input_path" 20888 fi 20889 fi 20890 20891 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20892 if test "x$test_cygdrive_prefix" = x; then 20893 # As a simple fix, exclude /usr/bin since it's not a real path. 20894 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20895 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20896 # a path prefixed by /cygdrive for fixpath to work. 20897 new_path="$CYGWIN_ROOT_PATH$input_path" 20898 fi 20899 fi 20900 20901 20902 if test "x$path" != "x$new_path"; then 20903 BOOT_JDK="$new_path" 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20905 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20906 fi 20907 20908 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20909 20910 path="$BOOT_JDK" 20911 has_colon=`$ECHO $path | $GREP ^.:` 20912 new_path="$path" 20913 if test "x$has_colon" = x; then 20914 # Not in mixed or Windows style, start by that. 20915 new_path=`cmd //c echo $path` 20916 fi 20917 20918 20919 input_path="$new_path" 20920 # Check if we need to convert this using DOS-style short mode. If the path 20921 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20922 # take no chances and rewrite it. 20923 # Note: m4 eats our [], so we need to use [ and ] instead. 20924 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20925 if test "x$has_forbidden_chars" != x; then 20926 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20927 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20928 fi 20929 20930 20931 windows_path="$new_path" 20932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20933 unix_path=`$CYGPATH -u "$windows_path"` 20934 new_path="$unix_path" 20935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20937 new_path="$unix_path" 20938 fi 20939 20940 if test "x$path" != "x$new_path"; then 20941 BOOT_JDK="$new_path" 20942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20944 fi 20945 20946 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20947 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20948 20949 else 20950 # We're on a posix platform. Hooray! :) 20951 path="$BOOT_JDK" 20952 has_space=`$ECHO "$path" | $GREP " "` 20953 if test "x$has_space" != x; then 20954 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20955 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20956 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20957 fi 20958 20959 # Use eval to expand a potential ~ 20960 eval path="$path" 20961 if test ! -f "$path" && test ! -d "$path"; then 20962 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20963 fi 20964 20965 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20966 fi 20967 20968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20969 $as_echo_n "checking for Boot JDK... " >&6; } 20970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20971 $as_echo "$BOOT_JDK" >&6; } 20972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20973 $as_echo_n "checking Boot JDK version... " >&6; } 20974 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20976 $as_echo "$BOOT_JDK_VERSION" >&6; } 20977 fi # end check jdk version 20978 fi # end check rt.jar 20979 fi # end check javac 20980 fi # end check java 20981 fi # end check boot jdk found 20982 fi 20983 20984 fi 20985 20986 20987 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20988 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20989 # Do we have a bin/java? 20990 if test ! -x "$BOOT_JDK/bin/java"; then 20991 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20992 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20993 BOOT_JDK_FOUND=no 20994 else 20995 # Do we have a bin/javac? 20996 if test ! -x "$BOOT_JDK/bin/javac"; then 20997 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20998 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20999 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21000 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21001 BOOT_JDK_FOUND=no 21002 else 21003 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21004 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21005 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21006 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21007 BOOT_JDK_FOUND=no 21008 else 21009 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21010 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21011 21012 # Extra M4 quote needed to protect [] in grep expression. 21013 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21014 if test "x$FOUND_CORRECT_VERSION" = x; then 21015 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21016 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21017 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21018 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21019 BOOT_JDK_FOUND=no 21020 else 21021 # We're done! :-) 21022 BOOT_JDK_FOUND=yes 21023 21024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21025 21026 # Input might be given as Windows format, start by converting to 21027 # unix format. 21028 path="$BOOT_JDK" 21029 new_path=`$CYGPATH -u "$path"` 21030 21031 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21032 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21033 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21034 # "foo.exe" is OK but "foo" is an error. 21035 # 21036 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21037 # It is also a way to make sure we got the proper file name for the real test later on. 21038 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21039 if test "x$test_shortpath" = x; then 21040 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21041 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21042 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21043 fi 21044 21045 # Call helper function which possibly converts this using DOS-style short mode. 21046 # If so, the updated path is stored in $new_path. 21047 21048 input_path="$new_path" 21049 # Check if we need to convert this using DOS-style short mode. If the path 21050 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21051 # take no chances and rewrite it. 21052 # Note: m4 eats our [], so we need to use [ and ] instead. 21053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21054 if test "x$has_forbidden_chars" != x; then 21055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21056 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21057 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21058 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21059 # Going to short mode and back again did indeed matter. Since short mode is 21060 # case insensitive, let's make it lowercase to improve readability. 21061 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21062 # Now convert it back to Unix-stile (cygpath) 21063 input_path=`$CYGPATH -u "$shortmode_path"` 21064 new_path="$input_path" 21065 fi 21066 fi 21067 21068 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21069 if test "x$test_cygdrive_prefix" = x; then 21070 # As a simple fix, exclude /usr/bin since it's not a real path. 21071 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21072 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21073 # a path prefixed by /cygdrive for fixpath to work. 21074 new_path="$CYGWIN_ROOT_PATH$input_path" 21075 fi 21076 fi 21077 21078 21079 if test "x$path" != "x$new_path"; then 21080 BOOT_JDK="$new_path" 21081 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21082 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21083 fi 21084 21085 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21086 21087 path="$BOOT_JDK" 21088 has_colon=`$ECHO $path | $GREP ^.:` 21089 new_path="$path" 21090 if test "x$has_colon" = x; then 21091 # Not in mixed or Windows style, start by that. 21092 new_path=`cmd //c echo $path` 21093 fi 21094 21095 21096 input_path="$new_path" 21097 # Check if we need to convert this using DOS-style short mode. If the path 21098 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21099 # take no chances and rewrite it. 21100 # Note: m4 eats our [], so we need to use [ and ] instead. 21101 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21102 if test "x$has_forbidden_chars" != x; then 21103 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21104 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21105 fi 21106 21107 21108 windows_path="$new_path" 21109 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21110 unix_path=`$CYGPATH -u "$windows_path"` 21111 new_path="$unix_path" 21112 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21113 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21114 new_path="$unix_path" 21115 fi 21116 21117 if test "x$path" != "x$new_path"; then 21118 BOOT_JDK="$new_path" 21119 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21120 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21121 fi 21122 21123 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21124 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21125 21126 else 21127 # We're on a posix platform. Hooray! :) 21128 path="$BOOT_JDK" 21129 has_space=`$ECHO "$path" | $GREP " "` 21130 if test "x$has_space" != x; then 21131 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21132 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21133 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21134 fi 21135 21136 # Use eval to expand a potential ~ 21137 eval path="$path" 21138 if test ! -f "$path" && test ! -d "$path"; then 21139 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21140 fi 21141 21142 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21143 fi 21144 21145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21146 $as_echo_n "checking for Boot JDK... " >&6; } 21147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21148 $as_echo "$BOOT_JDK" >&6; } 21149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21150 $as_echo_n "checking Boot JDK version... " >&6; } 21151 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21153 $as_echo "$BOOT_JDK_VERSION" >&6; } 21154 fi # end check jdk version 21155 fi # end check rt.jar 21156 fi # end check javac 21157 fi # end check java 21158 fi # end check boot jdk found 21159 fi 21160 21161 21162 # Test: Is $JAVA_HOME set? 21163 21164 if test "x$BOOT_JDK_FOUND" = xno; then 21165 # Now execute the test 21166 21167 if test "x$JAVA_HOME" != x; then 21168 JAVA_HOME_PROCESSED="$JAVA_HOME" 21169 21170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21171 21172 # Input might be given as Windows format, start by converting to 21173 # unix format. 21174 path="$JAVA_HOME_PROCESSED" 21175 new_path=`$CYGPATH -u "$path"` 21176 21177 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21178 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21179 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21180 # "foo.exe" is OK but "foo" is an error. 21181 # 21182 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21183 # It is also a way to make sure we got the proper file name for the real test later on. 21184 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21185 if test "x$test_shortpath" = x; then 21186 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21187 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21188 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 21189 fi 21190 21191 # Call helper function which possibly converts this using DOS-style short mode. 21192 # If so, the updated path is stored in $new_path. 21193 21194 input_path="$new_path" 21195 # Check if we need to convert this using DOS-style short mode. If the path 21196 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21197 # take no chances and rewrite it. 21198 # Note: m4 eats our [], so we need to use [ and ] instead. 21199 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21200 if test "x$has_forbidden_chars" != x; then 21201 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21202 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21203 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21204 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21205 # Going to short mode and back again did indeed matter. Since short mode is 21206 # case insensitive, let's make it lowercase to improve readability. 21207 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21208 # Now convert it back to Unix-stile (cygpath) 21209 input_path=`$CYGPATH -u "$shortmode_path"` 21210 new_path="$input_path" 21211 fi 21212 fi 21213 21214 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21215 if test "x$test_cygdrive_prefix" = x; then 21216 # As a simple fix, exclude /usr/bin since it's not a real path. 21217 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21218 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21219 # a path prefixed by /cygdrive for fixpath to work. 21220 new_path="$CYGWIN_ROOT_PATH$input_path" 21221 fi 21222 fi 21223 21224 21225 if test "x$path" != "x$new_path"; then 21226 JAVA_HOME_PROCESSED="$new_path" 21227 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21228 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21229 fi 21230 21231 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21232 21233 path="$JAVA_HOME_PROCESSED" 21234 has_colon=`$ECHO $path | $GREP ^.:` 21235 new_path="$path" 21236 if test "x$has_colon" = x; then 21237 # Not in mixed or Windows style, start by that. 21238 new_path=`cmd //c echo $path` 21239 fi 21240 21241 21242 input_path="$new_path" 21243 # Check if we need to convert this using DOS-style short mode. If the path 21244 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21245 # take no chances and rewrite it. 21246 # Note: m4 eats our [], so we need to use [ and ] instead. 21247 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21248 if test "x$has_forbidden_chars" != x; then 21249 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21250 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21251 fi 21252 21253 21254 windows_path="$new_path" 21255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21256 unix_path=`$CYGPATH -u "$windows_path"` 21257 new_path="$unix_path" 21258 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21259 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21260 new_path="$unix_path" 21261 fi 21262 21263 if test "x$path" != "x$new_path"; then 21264 JAVA_HOME_PROCESSED="$new_path" 21265 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 21266 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 21267 fi 21268 21269 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21270 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21271 21272 else 21273 # We're on a posix platform. Hooray! :) 21274 path="$JAVA_HOME_PROCESSED" 21275 has_space=`$ECHO "$path" | $GREP " "` 21276 if test "x$has_space" != x; then 21277 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 21278 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 21279 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21280 fi 21281 21282 # Use eval to expand a potential ~ 21283 eval path="$path" 21284 if test ! -f "$path" && test ! -d "$path"; then 21285 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 21286 fi 21287 21288 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 21289 fi 21290 21291 if test ! -d "$JAVA_HOME_PROCESSED"; then 21292 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 21293 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 21294 else 21295 # Aha, the user has set a JAVA_HOME 21296 # let us use that as the Boot JDK. 21297 BOOT_JDK="$JAVA_HOME_PROCESSED" 21298 BOOT_JDK_FOUND=maybe 21299 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 21300 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 21301 fi 21302 fi 21303 21304 21305 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21306 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21307 # Do we have a bin/java? 21308 if test ! -x "$BOOT_JDK/bin/java"; then 21309 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21310 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21311 BOOT_JDK_FOUND=no 21312 else 21313 # Do we have a bin/javac? 21314 if test ! -x "$BOOT_JDK/bin/javac"; then 21315 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21316 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21317 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21318 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21319 BOOT_JDK_FOUND=no 21320 else 21321 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21322 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21323 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21324 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21325 BOOT_JDK_FOUND=no 21326 else 21327 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21328 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21329 21330 # Extra M4 quote needed to protect [] in grep expression. 21331 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21332 if test "x$FOUND_CORRECT_VERSION" = x; then 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21336 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21337 BOOT_JDK_FOUND=no 21338 else 21339 # We're done! :-) 21340 BOOT_JDK_FOUND=yes 21341 21342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21343 21344 # Input might be given as Windows format, start by converting to 21345 # unix format. 21346 path="$BOOT_JDK" 21347 new_path=`$CYGPATH -u "$path"` 21348 21349 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21350 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21351 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21352 # "foo.exe" is OK but "foo" is an error. 21353 # 21354 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21355 # It is also a way to make sure we got the proper file name for the real test later on. 21356 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21357 if test "x$test_shortpath" = x; then 21358 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21359 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21360 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21361 fi 21362 21363 # Call helper function which possibly converts this using DOS-style short mode. 21364 # If so, the updated path is stored in $new_path. 21365 21366 input_path="$new_path" 21367 # Check if we need to convert this using DOS-style short mode. If the path 21368 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21369 # take no chances and rewrite it. 21370 # Note: m4 eats our [], so we need to use [ and ] instead. 21371 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21372 if test "x$has_forbidden_chars" != x; then 21373 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21374 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21375 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21376 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21377 # Going to short mode and back again did indeed matter. Since short mode is 21378 # case insensitive, let's make it lowercase to improve readability. 21379 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21380 # Now convert it back to Unix-stile (cygpath) 21381 input_path=`$CYGPATH -u "$shortmode_path"` 21382 new_path="$input_path" 21383 fi 21384 fi 21385 21386 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21387 if test "x$test_cygdrive_prefix" = x; then 21388 # As a simple fix, exclude /usr/bin since it's not a real path. 21389 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21390 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21391 # a path prefixed by /cygdrive for fixpath to work. 21392 new_path="$CYGWIN_ROOT_PATH$input_path" 21393 fi 21394 fi 21395 21396 21397 if test "x$path" != "x$new_path"; then 21398 BOOT_JDK="$new_path" 21399 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21400 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21401 fi 21402 21403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21404 21405 path="$BOOT_JDK" 21406 has_colon=`$ECHO $path | $GREP ^.:` 21407 new_path="$path" 21408 if test "x$has_colon" = x; then 21409 # Not in mixed or Windows style, start by that. 21410 new_path=`cmd //c echo $path` 21411 fi 21412 21413 21414 input_path="$new_path" 21415 # Check if we need to convert this using DOS-style short mode. If the path 21416 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21417 # take no chances and rewrite it. 21418 # Note: m4 eats our [], so we need to use [ and ] instead. 21419 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21420 if test "x$has_forbidden_chars" != x; then 21421 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21422 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21423 fi 21424 21425 21426 windows_path="$new_path" 21427 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21428 unix_path=`$CYGPATH -u "$windows_path"` 21429 new_path="$unix_path" 21430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21431 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21432 new_path="$unix_path" 21433 fi 21434 21435 if test "x$path" != "x$new_path"; then 21436 BOOT_JDK="$new_path" 21437 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21438 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21439 fi 21440 21441 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21442 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21443 21444 else 21445 # We're on a posix platform. Hooray! :) 21446 path="$BOOT_JDK" 21447 has_space=`$ECHO "$path" | $GREP " "` 21448 if test "x$has_space" != x; then 21449 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21450 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21451 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21452 fi 21453 21454 # Use eval to expand a potential ~ 21455 eval path="$path" 21456 if test ! -f "$path" && test ! -d "$path"; then 21457 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21458 fi 21459 21460 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21461 fi 21462 21463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21464 $as_echo_n "checking for Boot JDK... " >&6; } 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21466 $as_echo "$BOOT_JDK" >&6; } 21467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21468 $as_echo_n "checking Boot JDK version... " >&6; } 21469 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21471 $as_echo "$BOOT_JDK_VERSION" >&6; } 21472 fi # end check jdk version 21473 fi # end check rt.jar 21474 fi # end check javac 21475 fi # end check java 21476 fi # end check boot jdk found 21477 fi 21478 21479 21480 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 21481 21482 if test "x$BOOT_JDK_FOUND" = xno; then 21483 # Now execute the test 21484 21485 # Extract the first word of "javac", so it can be a program name with args. 21486 set dummy javac; ac_word=$2 21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21488 $as_echo_n "checking for $ac_word... " >&6; } 21489 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 21490 $as_echo_n "(cached) " >&6 21491 else 21492 case $JAVAC_CHECK in 21493 [\\/]* | ?:[\\/]*) 21494 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 21495 ;; 21496 *) 21497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21498 for as_dir in $PATH 21499 do 21500 IFS=$as_save_IFS 21501 test -z "$as_dir" && as_dir=. 21502 for ac_exec_ext in '' $ac_executable_extensions; do 21503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21504 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 21505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21506 break 2 21507 fi 21508 done 21509 done 21510 IFS=$as_save_IFS 21511 21512 ;; 21513 esac 21514 fi 21515 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 21516 if test -n "$JAVAC_CHECK"; then 21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 21518 $as_echo "$JAVAC_CHECK" >&6; } 21519 else 21520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21521 $as_echo "no" >&6; } 21522 fi 21523 21524 21525 # Extract the first word of "java", so it can be a program name with args. 21526 set dummy java; ac_word=$2 21527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 21528 $as_echo_n "checking for $ac_word... " >&6; } 21529 if ${ac_cv_path_JAVA_CHECK+:} false; then : 21530 $as_echo_n "(cached) " >&6 21531 else 21532 case $JAVA_CHECK in 21533 [\\/]* | ?:[\\/]*) 21534 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 21535 ;; 21536 *) 21537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 21538 for as_dir in $PATH 21539 do 21540 IFS=$as_save_IFS 21541 test -z "$as_dir" && as_dir=. 21542 for ac_exec_ext in '' $ac_executable_extensions; do 21543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 21544 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 21545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 21546 break 2 21547 fi 21548 done 21549 done 21550 IFS=$as_save_IFS 21551 21552 ;; 21553 esac 21554 fi 21555 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 21556 if test -n "$JAVA_CHECK"; then 21557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 21558 $as_echo "$JAVA_CHECK" >&6; } 21559 else 21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21561 $as_echo "no" >&6; } 21562 fi 21563 21564 21565 BINARY="$JAVAC_CHECK" 21566 if test "x$JAVAC_CHECK" = x; then 21567 BINARY="$JAVA_CHECK" 21568 fi 21569 if test "x$BINARY" != x; then 21570 # So there is a java(c) binary, it might be part of a JDK. 21571 # Lets find the JDK/JRE directory by following symbolic links. 21572 # Linux/GNU systems often have links from /usr/bin/java to 21573 # /etc/alternatives/java to the real JDK binary. 21574 21575 if test "x$OPENJDK_BUILD_OS" != xwindows; then 21576 # Follow a chain of symbolic links. Use readlink 21577 # where it exists, else fall back to horribly 21578 # complicated shell code. 21579 if test "x$READLINK_TESTED" != yes; then 21580 # On MacOSX there is a readlink tool with a different 21581 # purpose than the GNU readlink tool. Check the found readlink. 21582 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 21583 if test "x$ISGNU" = x; then 21584 # A readlink that we do not know how to use. 21585 # Are there other non-GNU readlinks out there? 21586 READLINK_TESTED=yes 21587 READLINK= 21588 fi 21589 fi 21590 21591 if test "x$READLINK" != x; then 21592 BINARY=`$READLINK -f $BINARY` 21593 else 21594 # Save the current directory for restoring afterwards 21595 STARTDIR=$PWD 21596 COUNTER=0 21597 sym_link_dir=`$DIRNAME $BINARY` 21598 sym_link_file=`$BASENAME $BINARY` 21599 cd $sym_link_dir 21600 # Use -P flag to resolve symlinks in directories. 21601 cd `$THEPWDCMD -P` 21602 sym_link_dir=`$THEPWDCMD -P` 21603 # Resolve file symlinks 21604 while test $COUNTER -lt 20; do 21605 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 21606 if test "x$ISLINK" == x; then 21607 # This is not a symbolic link! We are done! 21608 break 21609 fi 21610 # Again resolve directory symlinks since the target of the just found 21611 # link could be in a different directory 21612 cd `$DIRNAME $ISLINK` 21613 sym_link_dir=`$THEPWDCMD -P` 21614 sym_link_file=`$BASENAME $ISLINK` 21615 let COUNTER=COUNTER+1 21616 done 21617 cd $STARTDIR 21618 BINARY=$sym_link_dir/$sym_link_file 21619 fi 21620 fi 21621 21622 BOOT_JDK=`dirname "$BINARY"` 21623 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 21624 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 21625 # Looks like we found ourselves an JDK 21626 BOOT_JDK_FOUND=maybe 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 21628 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 21629 fi 21630 fi 21631 21632 21633 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21634 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21635 # Do we have a bin/java? 21636 if test ! -x "$BOOT_JDK/bin/java"; then 21637 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21638 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21639 BOOT_JDK_FOUND=no 21640 else 21641 # Do we have a bin/javac? 21642 if test ! -x "$BOOT_JDK/bin/javac"; then 21643 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21644 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21645 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21646 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21647 BOOT_JDK_FOUND=no 21648 else 21649 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21650 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21651 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21652 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21653 BOOT_JDK_FOUND=no 21654 else 21655 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21656 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21657 21658 # Extra M4 quote needed to protect [] in grep expression. 21659 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21660 if test "x$FOUND_CORRECT_VERSION" = x; then 21661 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21662 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21663 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21664 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21665 BOOT_JDK_FOUND=no 21666 else 21667 # We're done! :-) 21668 BOOT_JDK_FOUND=yes 21669 21670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21671 21672 # Input might be given as Windows format, start by converting to 21673 # unix format. 21674 path="$BOOT_JDK" 21675 new_path=`$CYGPATH -u "$path"` 21676 21677 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21678 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21679 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21680 # "foo.exe" is OK but "foo" is an error. 21681 # 21682 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21683 # It is also a way to make sure we got the proper file name for the real test later on. 21684 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21685 if test "x$test_shortpath" = x; then 21686 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21687 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21688 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21689 fi 21690 21691 # Call helper function which possibly converts this using DOS-style short mode. 21692 # If so, the updated path is stored in $new_path. 21693 21694 input_path="$new_path" 21695 # Check if we need to convert this using DOS-style short mode. If the path 21696 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21697 # take no chances and rewrite it. 21698 # Note: m4 eats our [], so we need to use [ and ] instead. 21699 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21700 if test "x$has_forbidden_chars" != x; then 21701 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21702 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21703 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21704 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21705 # Going to short mode and back again did indeed matter. Since short mode is 21706 # case insensitive, let's make it lowercase to improve readability. 21707 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21708 # Now convert it back to Unix-stile (cygpath) 21709 input_path=`$CYGPATH -u "$shortmode_path"` 21710 new_path="$input_path" 21711 fi 21712 fi 21713 21714 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21715 if test "x$test_cygdrive_prefix" = x; then 21716 # As a simple fix, exclude /usr/bin since it's not a real path. 21717 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21718 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21719 # a path prefixed by /cygdrive for fixpath to work. 21720 new_path="$CYGWIN_ROOT_PATH$input_path" 21721 fi 21722 fi 21723 21724 21725 if test "x$path" != "x$new_path"; then 21726 BOOT_JDK="$new_path" 21727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21728 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21729 fi 21730 21731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21732 21733 path="$BOOT_JDK" 21734 has_colon=`$ECHO $path | $GREP ^.:` 21735 new_path="$path" 21736 if test "x$has_colon" = x; then 21737 # Not in mixed or Windows style, start by that. 21738 new_path=`cmd //c echo $path` 21739 fi 21740 21741 21742 input_path="$new_path" 21743 # Check if we need to convert this using DOS-style short mode. If the path 21744 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21745 # take no chances and rewrite it. 21746 # Note: m4 eats our [], so we need to use [ and ] instead. 21747 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21748 if test "x$has_forbidden_chars" != x; then 21749 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21750 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21751 fi 21752 21753 21754 windows_path="$new_path" 21755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21756 unix_path=`$CYGPATH -u "$windows_path"` 21757 new_path="$unix_path" 21758 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21759 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21760 new_path="$unix_path" 21761 fi 21762 21763 if test "x$path" != "x$new_path"; then 21764 BOOT_JDK="$new_path" 21765 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21766 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21767 fi 21768 21769 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21770 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21771 21772 else 21773 # We're on a posix platform. Hooray! :) 21774 path="$BOOT_JDK" 21775 has_space=`$ECHO "$path" | $GREP " "` 21776 if test "x$has_space" != x; then 21777 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21778 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21779 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21780 fi 21781 21782 # Use eval to expand a potential ~ 21783 eval path="$path" 21784 if test ! -f "$path" && test ! -d "$path"; then 21785 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21786 fi 21787 21788 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21789 fi 21790 21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21792 $as_echo_n "checking for Boot JDK... " >&6; } 21793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21794 $as_echo "$BOOT_JDK" >&6; } 21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21796 $as_echo_n "checking Boot JDK version... " >&6; } 21797 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21799 $as_echo "$BOOT_JDK_VERSION" >&6; } 21800 fi # end check jdk version 21801 fi # end check rt.jar 21802 fi # end check javac 21803 fi # end check java 21804 fi # end check boot jdk found 21805 fi 21806 21807 21808 # Test: Is there a JDK installed in default, well-known locations? 21809 21810 if test "x$BOOT_JDK_FOUND" = xno; then 21811 # Now execute the test 21812 21813 if test "x$OPENJDK_TARGET_OS" = xwindows; then 21814 21815 if test "x$BOOT_JDK_FOUND" = xno; then 21816 # Now execute the test 21817 21818 if test "x$ProgramW6432" != x; then 21819 VIRTUAL_DIR="$ProgramW6432/Java" 21820 21821 windows_path="$VIRTUAL_DIR" 21822 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21823 unix_path=`$CYGPATH -u "$windows_path"` 21824 VIRTUAL_DIR="$unix_path" 21825 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21826 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21827 VIRTUAL_DIR="$unix_path" 21828 fi 21829 21830 21831 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21832 BOOT_JDK_SUFFIX="" 21833 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21834 if test "x$ALL_JDKS_FOUND" != x; then 21835 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21836 21837 if test "x$BOOT_JDK_FOUND" = xno; then 21838 # Now execute the test 21839 21840 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21841 if test -d "$BOOT_JDK"; then 21842 BOOT_JDK_FOUND=maybe 21843 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21844 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21845 fi 21846 21847 21848 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21849 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21850 # Do we have a bin/java? 21851 if test ! -x "$BOOT_JDK/bin/java"; then 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21853 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21854 BOOT_JDK_FOUND=no 21855 else 21856 # Do we have a bin/javac? 21857 if test ! -x "$BOOT_JDK/bin/javac"; then 21858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21860 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21861 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21862 BOOT_JDK_FOUND=no 21863 else 21864 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21865 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21866 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21867 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21868 BOOT_JDK_FOUND=no 21869 else 21870 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21871 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21872 21873 # Extra M4 quote needed to protect [] in grep expression. 21874 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 21875 if test "x$FOUND_CORRECT_VERSION" = x; then 21876 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21877 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21878 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 21879 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 21880 BOOT_JDK_FOUND=no 21881 else 21882 # We're done! :-) 21883 BOOT_JDK_FOUND=yes 21884 21885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21886 21887 # Input might be given as Windows format, start by converting to 21888 # unix format. 21889 path="$BOOT_JDK" 21890 new_path=`$CYGPATH -u "$path"` 21891 21892 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21893 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21894 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21895 # "foo.exe" is OK but "foo" is an error. 21896 # 21897 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21898 # It is also a way to make sure we got the proper file name for the real test later on. 21899 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21900 if test "x$test_shortpath" = x; then 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21902 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21903 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21904 fi 21905 21906 # Call helper function which possibly converts this using DOS-style short mode. 21907 # If so, the updated path is stored in $new_path. 21908 21909 input_path="$new_path" 21910 # Check if we need to convert this using DOS-style short mode. If the path 21911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21912 # take no chances and rewrite it. 21913 # Note: m4 eats our [], so we need to use [ and ] instead. 21914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21915 if test "x$has_forbidden_chars" != x; then 21916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21917 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21918 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21919 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21920 # Going to short mode and back again did indeed matter. Since short mode is 21921 # case insensitive, let's make it lowercase to improve readability. 21922 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21923 # Now convert it back to Unix-stile (cygpath) 21924 input_path=`$CYGPATH -u "$shortmode_path"` 21925 new_path="$input_path" 21926 fi 21927 fi 21928 21929 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21930 if test "x$test_cygdrive_prefix" = x; then 21931 # As a simple fix, exclude /usr/bin since it's not a real path. 21932 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21933 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21934 # a path prefixed by /cygdrive for fixpath to work. 21935 new_path="$CYGWIN_ROOT_PATH$input_path" 21936 fi 21937 fi 21938 21939 21940 if test "x$path" != "x$new_path"; then 21941 BOOT_JDK="$new_path" 21942 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21943 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21944 fi 21945 21946 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21947 21948 path="$BOOT_JDK" 21949 has_colon=`$ECHO $path | $GREP ^.:` 21950 new_path="$path" 21951 if test "x$has_colon" = x; then 21952 # Not in mixed or Windows style, start by that. 21953 new_path=`cmd //c echo $path` 21954 fi 21955 21956 21957 input_path="$new_path" 21958 # Check if we need to convert this using DOS-style short mode. If the path 21959 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21960 # take no chances and rewrite it. 21961 # Note: m4 eats our [], so we need to use [ and ] instead. 21962 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21963 if test "x$has_forbidden_chars" != x; then 21964 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21965 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21966 fi 21967 21968 21969 windows_path="$new_path" 21970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21971 unix_path=`$CYGPATH -u "$windows_path"` 21972 new_path="$unix_path" 21973 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21974 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21975 new_path="$unix_path" 21976 fi 21977 21978 if test "x$path" != "x$new_path"; then 21979 BOOT_JDK="$new_path" 21980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21981 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21982 fi 21983 21984 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21985 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21986 21987 else 21988 # We're on a posix platform. Hooray! :) 21989 path="$BOOT_JDK" 21990 has_space=`$ECHO "$path" | $GREP " "` 21991 if test "x$has_space" != x; then 21992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21993 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21994 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21995 fi 21996 21997 # Use eval to expand a potential ~ 21998 eval path="$path" 21999 if test ! -f "$path" && test ! -d "$path"; then 22000 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22001 fi 22002 22003 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22004 fi 22005 22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22007 $as_echo_n "checking for Boot JDK... " >&6; } 22008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22009 $as_echo "$BOOT_JDK" >&6; } 22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22011 $as_echo_n "checking Boot JDK version... " >&6; } 22012 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22014 $as_echo "$BOOT_JDK_VERSION" >&6; } 22015 fi # end check jdk version 22016 fi # end check rt.jar 22017 fi # end check javac 22018 fi # end check java 22019 fi # end check boot jdk found 22020 fi 22021 22022 done 22023 fi 22024 22025 fi 22026 22027 22028 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22029 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22030 # Do we have a bin/java? 22031 if test ! -x "$BOOT_JDK/bin/java"; then 22032 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22033 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22034 BOOT_JDK_FOUND=no 22035 else 22036 # Do we have a bin/javac? 22037 if test ! -x "$BOOT_JDK/bin/javac"; then 22038 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22039 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22040 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22041 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22042 BOOT_JDK_FOUND=no 22043 else 22044 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22045 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22048 BOOT_JDK_FOUND=no 22049 else 22050 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22051 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22052 22053 # Extra M4 quote needed to protect [] in grep expression. 22054 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22055 if test "x$FOUND_CORRECT_VERSION" = x; then 22056 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22057 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22058 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22059 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22060 BOOT_JDK_FOUND=no 22061 else 22062 # We're done! :-) 22063 BOOT_JDK_FOUND=yes 22064 22065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22066 22067 # Input might be given as Windows format, start by converting to 22068 # unix format. 22069 path="$BOOT_JDK" 22070 new_path=`$CYGPATH -u "$path"` 22071 22072 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22073 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22074 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22075 # "foo.exe" is OK but "foo" is an error. 22076 # 22077 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22078 # It is also a way to make sure we got the proper file name for the real test later on. 22079 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22080 if test "x$test_shortpath" = x; then 22081 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22082 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22083 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22084 fi 22085 22086 # Call helper function which possibly converts this using DOS-style short mode. 22087 # If so, the updated path is stored in $new_path. 22088 22089 input_path="$new_path" 22090 # Check if we need to convert this using DOS-style short mode. If the path 22091 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22092 # take no chances and rewrite it. 22093 # Note: m4 eats our [], so we need to use [ and ] instead. 22094 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22095 if test "x$has_forbidden_chars" != x; then 22096 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22097 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22098 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22099 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22100 # Going to short mode and back again did indeed matter. Since short mode is 22101 # case insensitive, let's make it lowercase to improve readability. 22102 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22103 # Now convert it back to Unix-stile (cygpath) 22104 input_path=`$CYGPATH -u "$shortmode_path"` 22105 new_path="$input_path" 22106 fi 22107 fi 22108 22109 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22110 if test "x$test_cygdrive_prefix" = x; then 22111 # As a simple fix, exclude /usr/bin since it's not a real path. 22112 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22113 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22114 # a path prefixed by /cygdrive for fixpath to work. 22115 new_path="$CYGWIN_ROOT_PATH$input_path" 22116 fi 22117 fi 22118 22119 22120 if test "x$path" != "x$new_path"; then 22121 BOOT_JDK="$new_path" 22122 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22123 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22124 fi 22125 22126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22127 22128 path="$BOOT_JDK" 22129 has_colon=`$ECHO $path | $GREP ^.:` 22130 new_path="$path" 22131 if test "x$has_colon" = x; then 22132 # Not in mixed or Windows style, start by that. 22133 new_path=`cmd //c echo $path` 22134 fi 22135 22136 22137 input_path="$new_path" 22138 # Check if we need to convert this using DOS-style short mode. If the path 22139 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22140 # take no chances and rewrite it. 22141 # Note: m4 eats our [], so we need to use [ and ] instead. 22142 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22143 if test "x$has_forbidden_chars" != x; then 22144 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22145 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22146 fi 22147 22148 22149 windows_path="$new_path" 22150 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22151 unix_path=`$CYGPATH -u "$windows_path"` 22152 new_path="$unix_path" 22153 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22154 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22155 new_path="$unix_path" 22156 fi 22157 22158 if test "x$path" != "x$new_path"; then 22159 BOOT_JDK="$new_path" 22160 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22161 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22162 fi 22163 22164 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22165 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22166 22167 else 22168 # We're on a posix platform. Hooray! :) 22169 path="$BOOT_JDK" 22170 has_space=`$ECHO "$path" | $GREP " "` 22171 if test "x$has_space" != x; then 22172 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22173 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22174 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22175 fi 22176 22177 # Use eval to expand a potential ~ 22178 eval path="$path" 22179 if test ! -f "$path" && test ! -d "$path"; then 22180 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22181 fi 22182 22183 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22184 fi 22185 22186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22187 $as_echo_n "checking for Boot JDK... " >&6; } 22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22189 $as_echo "$BOOT_JDK" >&6; } 22190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22191 $as_echo_n "checking Boot JDK version... " >&6; } 22192 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22194 $as_echo "$BOOT_JDK_VERSION" >&6; } 22195 fi # end check jdk version 22196 fi # end check rt.jar 22197 fi # end check javac 22198 fi # end check java 22199 fi # end check boot jdk found 22200 fi 22201 22202 22203 if test "x$BOOT_JDK_FOUND" = xno; then 22204 # Now execute the test 22205 22206 if test "x$PROGRAMW6432" != x; then 22207 VIRTUAL_DIR="$PROGRAMW6432/Java" 22208 22209 windows_path="$VIRTUAL_DIR" 22210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22211 unix_path=`$CYGPATH -u "$windows_path"` 22212 VIRTUAL_DIR="$unix_path" 22213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22214 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22215 VIRTUAL_DIR="$unix_path" 22216 fi 22217 22218 22219 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22220 BOOT_JDK_SUFFIX="" 22221 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22222 if test "x$ALL_JDKS_FOUND" != x; then 22223 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22224 22225 if test "x$BOOT_JDK_FOUND" = xno; then 22226 # Now execute the test 22227 22228 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22229 if test -d "$BOOT_JDK"; then 22230 BOOT_JDK_FOUND=maybe 22231 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22232 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22233 fi 22234 22235 22236 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22237 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22238 # Do we have a bin/java? 22239 if test ! -x "$BOOT_JDK/bin/java"; then 22240 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22241 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22242 BOOT_JDK_FOUND=no 22243 else 22244 # Do we have a bin/javac? 22245 if test ! -x "$BOOT_JDK/bin/javac"; then 22246 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22247 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22248 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22249 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22250 BOOT_JDK_FOUND=no 22251 else 22252 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22253 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22255 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22256 BOOT_JDK_FOUND=no 22257 else 22258 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22259 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22260 22261 # Extra M4 quote needed to protect [] in grep expression. 22262 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22263 if test "x$FOUND_CORRECT_VERSION" = x; then 22264 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22265 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22266 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22267 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22268 BOOT_JDK_FOUND=no 22269 else 22270 # We're done! :-) 22271 BOOT_JDK_FOUND=yes 22272 22273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22274 22275 # Input might be given as Windows format, start by converting to 22276 # unix format. 22277 path="$BOOT_JDK" 22278 new_path=`$CYGPATH -u "$path"` 22279 22280 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22281 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22282 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22283 # "foo.exe" is OK but "foo" is an error. 22284 # 22285 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22286 # It is also a way to make sure we got the proper file name for the real test later on. 22287 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22288 if test "x$test_shortpath" = x; then 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22290 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22291 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22292 fi 22293 22294 # Call helper function which possibly converts this using DOS-style short mode. 22295 # If so, the updated path is stored in $new_path. 22296 22297 input_path="$new_path" 22298 # Check if we need to convert this using DOS-style short mode. If the path 22299 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22300 # take no chances and rewrite it. 22301 # Note: m4 eats our [], so we need to use [ and ] instead. 22302 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22303 if test "x$has_forbidden_chars" != x; then 22304 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22305 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22306 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22307 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22308 # Going to short mode and back again did indeed matter. Since short mode is 22309 # case insensitive, let's make it lowercase to improve readability. 22310 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22311 # Now convert it back to Unix-stile (cygpath) 22312 input_path=`$CYGPATH -u "$shortmode_path"` 22313 new_path="$input_path" 22314 fi 22315 fi 22316 22317 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22318 if test "x$test_cygdrive_prefix" = x; then 22319 # As a simple fix, exclude /usr/bin since it's not a real path. 22320 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22321 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22322 # a path prefixed by /cygdrive for fixpath to work. 22323 new_path="$CYGWIN_ROOT_PATH$input_path" 22324 fi 22325 fi 22326 22327 22328 if test "x$path" != "x$new_path"; then 22329 BOOT_JDK="$new_path" 22330 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22331 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22332 fi 22333 22334 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22335 22336 path="$BOOT_JDK" 22337 has_colon=`$ECHO $path | $GREP ^.:` 22338 new_path="$path" 22339 if test "x$has_colon" = x; then 22340 # Not in mixed or Windows style, start by that. 22341 new_path=`cmd //c echo $path` 22342 fi 22343 22344 22345 input_path="$new_path" 22346 # Check if we need to convert this using DOS-style short mode. If the path 22347 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22348 # take no chances and rewrite it. 22349 # Note: m4 eats our [], so we need to use [ and ] instead. 22350 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22351 if test "x$has_forbidden_chars" != x; then 22352 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22353 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22354 fi 22355 22356 22357 windows_path="$new_path" 22358 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22359 unix_path=`$CYGPATH -u "$windows_path"` 22360 new_path="$unix_path" 22361 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22362 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22363 new_path="$unix_path" 22364 fi 22365 22366 if test "x$path" != "x$new_path"; then 22367 BOOT_JDK="$new_path" 22368 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22369 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22370 fi 22371 22372 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22373 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22374 22375 else 22376 # We're on a posix platform. Hooray! :) 22377 path="$BOOT_JDK" 22378 has_space=`$ECHO "$path" | $GREP " "` 22379 if test "x$has_space" != x; then 22380 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22381 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22382 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22383 fi 22384 22385 # Use eval to expand a potential ~ 22386 eval path="$path" 22387 if test ! -f "$path" && test ! -d "$path"; then 22388 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22389 fi 22390 22391 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22392 fi 22393 22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22395 $as_echo_n "checking for Boot JDK... " >&6; } 22396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22397 $as_echo "$BOOT_JDK" >&6; } 22398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22399 $as_echo_n "checking Boot JDK version... " >&6; } 22400 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22402 $as_echo "$BOOT_JDK_VERSION" >&6; } 22403 fi # end check jdk version 22404 fi # end check rt.jar 22405 fi # end check javac 22406 fi # end check java 22407 fi # end check boot jdk found 22408 fi 22409 22410 done 22411 fi 22412 22413 fi 22414 22415 22416 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22417 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22418 # Do we have a bin/java? 22419 if test ! -x "$BOOT_JDK/bin/java"; then 22420 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22421 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22422 BOOT_JDK_FOUND=no 22423 else 22424 # Do we have a bin/javac? 22425 if test ! -x "$BOOT_JDK/bin/javac"; then 22426 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22427 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22428 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22429 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22430 BOOT_JDK_FOUND=no 22431 else 22432 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22433 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22434 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22435 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22436 BOOT_JDK_FOUND=no 22437 else 22438 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22439 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22440 22441 # Extra M4 quote needed to protect [] in grep expression. 22442 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22443 if test "x$FOUND_CORRECT_VERSION" = x; then 22444 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22445 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22446 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22447 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22448 BOOT_JDK_FOUND=no 22449 else 22450 # We're done! :-) 22451 BOOT_JDK_FOUND=yes 22452 22453 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22454 22455 # Input might be given as Windows format, start by converting to 22456 # unix format. 22457 path="$BOOT_JDK" 22458 new_path=`$CYGPATH -u "$path"` 22459 22460 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22461 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22462 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22463 # "foo.exe" is OK but "foo" is an error. 22464 # 22465 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22466 # It is also a way to make sure we got the proper file name for the real test later on. 22467 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22468 if test "x$test_shortpath" = x; then 22469 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22470 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22471 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22472 fi 22473 22474 # Call helper function which possibly converts this using DOS-style short mode. 22475 # If so, the updated path is stored in $new_path. 22476 22477 input_path="$new_path" 22478 # Check if we need to convert this using DOS-style short mode. If the path 22479 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22480 # take no chances and rewrite it. 22481 # Note: m4 eats our [], so we need to use [ and ] instead. 22482 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22483 if test "x$has_forbidden_chars" != x; then 22484 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22485 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22486 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22487 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22488 # Going to short mode and back again did indeed matter. Since short mode is 22489 # case insensitive, let's make it lowercase to improve readability. 22490 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22491 # Now convert it back to Unix-stile (cygpath) 22492 input_path=`$CYGPATH -u "$shortmode_path"` 22493 new_path="$input_path" 22494 fi 22495 fi 22496 22497 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22498 if test "x$test_cygdrive_prefix" = x; then 22499 # As a simple fix, exclude /usr/bin since it's not a real path. 22500 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22501 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22502 # a path prefixed by /cygdrive for fixpath to work. 22503 new_path="$CYGWIN_ROOT_PATH$input_path" 22504 fi 22505 fi 22506 22507 22508 if test "x$path" != "x$new_path"; then 22509 BOOT_JDK="$new_path" 22510 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22511 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22512 fi 22513 22514 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22515 22516 path="$BOOT_JDK" 22517 has_colon=`$ECHO $path | $GREP ^.:` 22518 new_path="$path" 22519 if test "x$has_colon" = x; then 22520 # Not in mixed or Windows style, start by that. 22521 new_path=`cmd //c echo $path` 22522 fi 22523 22524 22525 input_path="$new_path" 22526 # Check if we need to convert this using DOS-style short mode. If the path 22527 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22528 # take no chances and rewrite it. 22529 # Note: m4 eats our [], so we need to use [ and ] instead. 22530 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22531 if test "x$has_forbidden_chars" != x; then 22532 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22533 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22534 fi 22535 22536 22537 windows_path="$new_path" 22538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22539 unix_path=`$CYGPATH -u "$windows_path"` 22540 new_path="$unix_path" 22541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22543 new_path="$unix_path" 22544 fi 22545 22546 if test "x$path" != "x$new_path"; then 22547 BOOT_JDK="$new_path" 22548 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22549 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22550 fi 22551 22552 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22553 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22554 22555 else 22556 # We're on a posix platform. Hooray! :) 22557 path="$BOOT_JDK" 22558 has_space=`$ECHO "$path" | $GREP " "` 22559 if test "x$has_space" != x; then 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22561 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22562 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22563 fi 22564 22565 # Use eval to expand a potential ~ 22566 eval path="$path" 22567 if test ! -f "$path" && test ! -d "$path"; then 22568 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22569 fi 22570 22571 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22572 fi 22573 22574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22575 $as_echo_n "checking for Boot JDK... " >&6; } 22576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22577 $as_echo "$BOOT_JDK" >&6; } 22578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22579 $as_echo_n "checking Boot JDK version... " >&6; } 22580 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22582 $as_echo "$BOOT_JDK_VERSION" >&6; } 22583 fi # end check jdk version 22584 fi # end check rt.jar 22585 fi # end check javac 22586 fi # end check java 22587 fi # end check boot jdk found 22588 fi 22589 22590 22591 if test "x$BOOT_JDK_FOUND" = xno; then 22592 # Now execute the test 22593 22594 if test "x$PROGRAMFILES" != x; then 22595 VIRTUAL_DIR="$PROGRAMFILES/Java" 22596 22597 windows_path="$VIRTUAL_DIR" 22598 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22599 unix_path=`$CYGPATH -u "$windows_path"` 22600 VIRTUAL_DIR="$unix_path" 22601 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22602 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22603 VIRTUAL_DIR="$unix_path" 22604 fi 22605 22606 22607 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22608 BOOT_JDK_SUFFIX="" 22609 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22610 if test "x$ALL_JDKS_FOUND" != x; then 22611 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22612 22613 if test "x$BOOT_JDK_FOUND" = xno; then 22614 # Now execute the test 22615 22616 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22617 if test -d "$BOOT_JDK"; then 22618 BOOT_JDK_FOUND=maybe 22619 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22620 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22621 fi 22622 22623 22624 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22625 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22626 # Do we have a bin/java? 22627 if test ! -x "$BOOT_JDK/bin/java"; then 22628 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22629 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22630 BOOT_JDK_FOUND=no 22631 else 22632 # Do we have a bin/javac? 22633 if test ! -x "$BOOT_JDK/bin/javac"; then 22634 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22635 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22636 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22637 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22638 BOOT_JDK_FOUND=no 22639 else 22640 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22641 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22642 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22643 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22644 BOOT_JDK_FOUND=no 22645 else 22646 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22647 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22648 22649 # Extra M4 quote needed to protect [] in grep expression. 22650 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22651 if test "x$FOUND_CORRECT_VERSION" = x; then 22652 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22653 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22655 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22656 BOOT_JDK_FOUND=no 22657 else 22658 # We're done! :-) 22659 BOOT_JDK_FOUND=yes 22660 22661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22662 22663 # Input might be given as Windows format, start by converting to 22664 # unix format. 22665 path="$BOOT_JDK" 22666 new_path=`$CYGPATH -u "$path"` 22667 22668 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22669 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22670 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22671 # "foo.exe" is OK but "foo" is an error. 22672 # 22673 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22674 # It is also a way to make sure we got the proper file name for the real test later on. 22675 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22676 if test "x$test_shortpath" = x; then 22677 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22678 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22679 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22680 fi 22681 22682 # Call helper function which possibly converts this using DOS-style short mode. 22683 # If so, the updated path is stored in $new_path. 22684 22685 input_path="$new_path" 22686 # Check if we need to convert this using DOS-style short mode. If the path 22687 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22688 # take no chances and rewrite it. 22689 # Note: m4 eats our [], so we need to use [ and ] instead. 22690 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22691 if test "x$has_forbidden_chars" != x; then 22692 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22693 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22694 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22695 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22696 # Going to short mode and back again did indeed matter. Since short mode is 22697 # case insensitive, let's make it lowercase to improve readability. 22698 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22699 # Now convert it back to Unix-stile (cygpath) 22700 input_path=`$CYGPATH -u "$shortmode_path"` 22701 new_path="$input_path" 22702 fi 22703 fi 22704 22705 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22706 if test "x$test_cygdrive_prefix" = x; then 22707 # As a simple fix, exclude /usr/bin since it's not a real path. 22708 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22709 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22710 # a path prefixed by /cygdrive for fixpath to work. 22711 new_path="$CYGWIN_ROOT_PATH$input_path" 22712 fi 22713 fi 22714 22715 22716 if test "x$path" != "x$new_path"; then 22717 BOOT_JDK="$new_path" 22718 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22719 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22720 fi 22721 22722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22723 22724 path="$BOOT_JDK" 22725 has_colon=`$ECHO $path | $GREP ^.:` 22726 new_path="$path" 22727 if test "x$has_colon" = x; then 22728 # Not in mixed or Windows style, start by that. 22729 new_path=`cmd //c echo $path` 22730 fi 22731 22732 22733 input_path="$new_path" 22734 # Check if we need to convert this using DOS-style short mode. If the path 22735 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22736 # take no chances and rewrite it. 22737 # Note: m4 eats our [], so we need to use [ and ] instead. 22738 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22739 if test "x$has_forbidden_chars" != x; then 22740 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22741 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22742 fi 22743 22744 22745 windows_path="$new_path" 22746 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22747 unix_path=`$CYGPATH -u "$windows_path"` 22748 new_path="$unix_path" 22749 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22750 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22751 new_path="$unix_path" 22752 fi 22753 22754 if test "x$path" != "x$new_path"; then 22755 BOOT_JDK="$new_path" 22756 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22757 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22758 fi 22759 22760 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22761 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22762 22763 else 22764 # We're on a posix platform. Hooray! :) 22765 path="$BOOT_JDK" 22766 has_space=`$ECHO "$path" | $GREP " "` 22767 if test "x$has_space" != x; then 22768 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22769 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22770 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22771 fi 22772 22773 # Use eval to expand a potential ~ 22774 eval path="$path" 22775 if test ! -f "$path" && test ! -d "$path"; then 22776 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22777 fi 22778 22779 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22780 fi 22781 22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22783 $as_echo_n "checking for Boot JDK... " >&6; } 22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22785 $as_echo "$BOOT_JDK" >&6; } 22786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22787 $as_echo_n "checking Boot JDK version... " >&6; } 22788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22790 $as_echo "$BOOT_JDK_VERSION" >&6; } 22791 fi # end check jdk version 22792 fi # end check rt.jar 22793 fi # end check javac 22794 fi # end check java 22795 fi # end check boot jdk found 22796 fi 22797 22798 done 22799 fi 22800 22801 fi 22802 22803 22804 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22805 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22806 # Do we have a bin/java? 22807 if test ! -x "$BOOT_JDK/bin/java"; then 22808 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22809 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22810 BOOT_JDK_FOUND=no 22811 else 22812 # Do we have a bin/javac? 22813 if test ! -x "$BOOT_JDK/bin/javac"; then 22814 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22815 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22816 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22817 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22818 BOOT_JDK_FOUND=no 22819 else 22820 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22821 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22822 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22823 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22824 BOOT_JDK_FOUND=no 22825 else 22826 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22827 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22828 22829 # Extra M4 quote needed to protect [] in grep expression. 22830 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 22831 if test "x$FOUND_CORRECT_VERSION" = x; then 22832 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22833 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22834 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 22835 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 22836 BOOT_JDK_FOUND=no 22837 else 22838 # We're done! :-) 22839 BOOT_JDK_FOUND=yes 22840 22841 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22842 22843 # Input might be given as Windows format, start by converting to 22844 # unix format. 22845 path="$BOOT_JDK" 22846 new_path=`$CYGPATH -u "$path"` 22847 22848 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22849 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22850 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22851 # "foo.exe" is OK but "foo" is an error. 22852 # 22853 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22854 # It is also a way to make sure we got the proper file name for the real test later on. 22855 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22856 if test "x$test_shortpath" = x; then 22857 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22858 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22859 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22860 fi 22861 22862 # Call helper function which possibly converts this using DOS-style short mode. 22863 # If so, the updated path is stored in $new_path. 22864 22865 input_path="$new_path" 22866 # Check if we need to convert this using DOS-style short mode. If the path 22867 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22868 # take no chances and rewrite it. 22869 # Note: m4 eats our [], so we need to use [ and ] instead. 22870 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22871 if test "x$has_forbidden_chars" != x; then 22872 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22873 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22874 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22875 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22876 # Going to short mode and back again did indeed matter. Since short mode is 22877 # case insensitive, let's make it lowercase to improve readability. 22878 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22879 # Now convert it back to Unix-stile (cygpath) 22880 input_path=`$CYGPATH -u "$shortmode_path"` 22881 new_path="$input_path" 22882 fi 22883 fi 22884 22885 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22886 if test "x$test_cygdrive_prefix" = x; then 22887 # As a simple fix, exclude /usr/bin since it's not a real path. 22888 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22889 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22890 # a path prefixed by /cygdrive for fixpath to work. 22891 new_path="$CYGWIN_ROOT_PATH$input_path" 22892 fi 22893 fi 22894 22895 22896 if test "x$path" != "x$new_path"; then 22897 BOOT_JDK="$new_path" 22898 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22899 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22900 fi 22901 22902 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22903 22904 path="$BOOT_JDK" 22905 has_colon=`$ECHO $path | $GREP ^.:` 22906 new_path="$path" 22907 if test "x$has_colon" = x; then 22908 # Not in mixed or Windows style, start by that. 22909 new_path=`cmd //c echo $path` 22910 fi 22911 22912 22913 input_path="$new_path" 22914 # Check if we need to convert this using DOS-style short mode. If the path 22915 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22916 # take no chances and rewrite it. 22917 # Note: m4 eats our [], so we need to use [ and ] instead. 22918 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22919 if test "x$has_forbidden_chars" != x; then 22920 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22921 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22922 fi 22923 22924 22925 windows_path="$new_path" 22926 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22927 unix_path=`$CYGPATH -u "$windows_path"` 22928 new_path="$unix_path" 22929 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22930 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22931 new_path="$unix_path" 22932 fi 22933 22934 if test "x$path" != "x$new_path"; then 22935 BOOT_JDK="$new_path" 22936 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22937 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22938 fi 22939 22940 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22941 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22942 22943 else 22944 # We're on a posix platform. Hooray! :) 22945 path="$BOOT_JDK" 22946 has_space=`$ECHO "$path" | $GREP " "` 22947 if test "x$has_space" != x; then 22948 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22949 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22950 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22951 fi 22952 22953 # Use eval to expand a potential ~ 22954 eval path="$path" 22955 if test ! -f "$path" && test ! -d "$path"; then 22956 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22957 fi 22958 22959 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22960 fi 22961 22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22963 $as_echo_n "checking for Boot JDK... " >&6; } 22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22965 $as_echo "$BOOT_JDK" >&6; } 22966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22967 $as_echo_n "checking Boot JDK version... " >&6; } 22968 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22970 $as_echo "$BOOT_JDK_VERSION" >&6; } 22971 fi # end check jdk version 22972 fi # end check rt.jar 22973 fi # end check javac 22974 fi # end check java 22975 fi # end check boot jdk found 22976 fi 22977 22978 22979 if test "x$BOOT_JDK_FOUND" = xno; then 22980 # Now execute the test 22981 22982 if test "x$ProgramFiles" != x; then 22983 VIRTUAL_DIR="$ProgramFiles/Java" 22984 22985 windows_path="$VIRTUAL_DIR" 22986 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22987 unix_path=`$CYGPATH -u "$windows_path"` 22988 VIRTUAL_DIR="$unix_path" 22989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22990 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22991 VIRTUAL_DIR="$unix_path" 22992 fi 22993 22994 22995 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22996 BOOT_JDK_SUFFIX="" 22997 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22998 if test "x$ALL_JDKS_FOUND" != x; then 22999 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23000 23001 if test "x$BOOT_JDK_FOUND" = xno; then 23002 # Now execute the test 23003 23004 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23005 if test -d "$BOOT_JDK"; then 23006 BOOT_JDK_FOUND=maybe 23007 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23008 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23009 fi 23010 23011 23012 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23013 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23014 # Do we have a bin/java? 23015 if test ! -x "$BOOT_JDK/bin/java"; then 23016 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23017 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23018 BOOT_JDK_FOUND=no 23019 else 23020 # Do we have a bin/javac? 23021 if test ! -x "$BOOT_JDK/bin/javac"; then 23022 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23024 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23025 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23026 BOOT_JDK_FOUND=no 23027 else 23028 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23029 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23030 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23031 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23032 BOOT_JDK_FOUND=no 23033 else 23034 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23035 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23036 23037 # Extra M4 quote needed to protect [] in grep expression. 23038 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23039 if test "x$FOUND_CORRECT_VERSION" = x; then 23040 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23041 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23042 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23043 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23044 BOOT_JDK_FOUND=no 23045 else 23046 # We're done! :-) 23047 BOOT_JDK_FOUND=yes 23048 23049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23050 23051 # Input might be given as Windows format, start by converting to 23052 # unix format. 23053 path="$BOOT_JDK" 23054 new_path=`$CYGPATH -u "$path"` 23055 23056 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23057 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23058 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23059 # "foo.exe" is OK but "foo" is an error. 23060 # 23061 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23062 # It is also a way to make sure we got the proper file name for the real test later on. 23063 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23064 if test "x$test_shortpath" = x; then 23065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23066 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23067 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23068 fi 23069 23070 # Call helper function which possibly converts this using DOS-style short mode. 23071 # If so, the updated path is stored in $new_path. 23072 23073 input_path="$new_path" 23074 # Check if we need to convert this using DOS-style short mode. If the path 23075 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23076 # take no chances and rewrite it. 23077 # Note: m4 eats our [], so we need to use [ and ] instead. 23078 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23079 if test "x$has_forbidden_chars" != x; then 23080 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23081 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23082 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23083 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23084 # Going to short mode and back again did indeed matter. Since short mode is 23085 # case insensitive, let's make it lowercase to improve readability. 23086 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23087 # Now convert it back to Unix-stile (cygpath) 23088 input_path=`$CYGPATH -u "$shortmode_path"` 23089 new_path="$input_path" 23090 fi 23091 fi 23092 23093 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23094 if test "x$test_cygdrive_prefix" = x; then 23095 # As a simple fix, exclude /usr/bin since it's not a real path. 23096 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23097 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23098 # a path prefixed by /cygdrive for fixpath to work. 23099 new_path="$CYGWIN_ROOT_PATH$input_path" 23100 fi 23101 fi 23102 23103 23104 if test "x$path" != "x$new_path"; then 23105 BOOT_JDK="$new_path" 23106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23107 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23108 fi 23109 23110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23111 23112 path="$BOOT_JDK" 23113 has_colon=`$ECHO $path | $GREP ^.:` 23114 new_path="$path" 23115 if test "x$has_colon" = x; then 23116 # Not in mixed or Windows style, start by that. 23117 new_path=`cmd //c echo $path` 23118 fi 23119 23120 23121 input_path="$new_path" 23122 # Check if we need to convert this using DOS-style short mode. If the path 23123 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23124 # take no chances and rewrite it. 23125 # Note: m4 eats our [], so we need to use [ and ] instead. 23126 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23127 if test "x$has_forbidden_chars" != x; then 23128 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23129 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23130 fi 23131 23132 23133 windows_path="$new_path" 23134 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23135 unix_path=`$CYGPATH -u "$windows_path"` 23136 new_path="$unix_path" 23137 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23138 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23139 new_path="$unix_path" 23140 fi 23141 23142 if test "x$path" != "x$new_path"; then 23143 BOOT_JDK="$new_path" 23144 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23145 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23146 fi 23147 23148 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23149 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23150 23151 else 23152 # We're on a posix platform. Hooray! :) 23153 path="$BOOT_JDK" 23154 has_space=`$ECHO "$path" | $GREP " "` 23155 if test "x$has_space" != x; then 23156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23157 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23158 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23159 fi 23160 23161 # Use eval to expand a potential ~ 23162 eval path="$path" 23163 if test ! -f "$path" && test ! -d "$path"; then 23164 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23165 fi 23166 23167 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23168 fi 23169 23170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23171 $as_echo_n "checking for Boot JDK... " >&6; } 23172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23173 $as_echo "$BOOT_JDK" >&6; } 23174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23175 $as_echo_n "checking Boot JDK version... " >&6; } 23176 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23178 $as_echo "$BOOT_JDK_VERSION" >&6; } 23179 fi # end check jdk version 23180 fi # end check rt.jar 23181 fi # end check javac 23182 fi # end check java 23183 fi # end check boot jdk found 23184 fi 23185 23186 done 23187 fi 23188 23189 fi 23190 23191 23192 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23193 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23194 # Do we have a bin/java? 23195 if test ! -x "$BOOT_JDK/bin/java"; then 23196 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23197 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23198 BOOT_JDK_FOUND=no 23199 else 23200 # Do we have a bin/javac? 23201 if test ! -x "$BOOT_JDK/bin/javac"; then 23202 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23203 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23204 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23205 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23206 BOOT_JDK_FOUND=no 23207 else 23208 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23209 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23210 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23211 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23212 BOOT_JDK_FOUND=no 23213 else 23214 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23215 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23216 23217 # Extra M4 quote needed to protect [] in grep expression. 23218 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23219 if test "x$FOUND_CORRECT_VERSION" = x; then 23220 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23221 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23222 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23223 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23224 BOOT_JDK_FOUND=no 23225 else 23226 # We're done! :-) 23227 BOOT_JDK_FOUND=yes 23228 23229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23230 23231 # Input might be given as Windows format, start by converting to 23232 # unix format. 23233 path="$BOOT_JDK" 23234 new_path=`$CYGPATH -u "$path"` 23235 23236 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23237 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23238 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23239 # "foo.exe" is OK but "foo" is an error. 23240 # 23241 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23242 # It is also a way to make sure we got the proper file name for the real test later on. 23243 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23244 if test "x$test_shortpath" = x; then 23245 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23246 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23247 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23248 fi 23249 23250 # Call helper function which possibly converts this using DOS-style short mode. 23251 # If so, the updated path is stored in $new_path. 23252 23253 input_path="$new_path" 23254 # Check if we need to convert this using DOS-style short mode. If the path 23255 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23256 # take no chances and rewrite it. 23257 # Note: m4 eats our [], so we need to use [ and ] instead. 23258 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23259 if test "x$has_forbidden_chars" != x; then 23260 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23261 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23262 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23263 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23264 # Going to short mode and back again did indeed matter. Since short mode is 23265 # case insensitive, let's make it lowercase to improve readability. 23266 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23267 # Now convert it back to Unix-stile (cygpath) 23268 input_path=`$CYGPATH -u "$shortmode_path"` 23269 new_path="$input_path" 23270 fi 23271 fi 23272 23273 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23274 if test "x$test_cygdrive_prefix" = x; then 23275 # As a simple fix, exclude /usr/bin since it's not a real path. 23276 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23277 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23278 # a path prefixed by /cygdrive for fixpath to work. 23279 new_path="$CYGWIN_ROOT_PATH$input_path" 23280 fi 23281 fi 23282 23283 23284 if test "x$path" != "x$new_path"; then 23285 BOOT_JDK="$new_path" 23286 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23287 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23288 fi 23289 23290 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23291 23292 path="$BOOT_JDK" 23293 has_colon=`$ECHO $path | $GREP ^.:` 23294 new_path="$path" 23295 if test "x$has_colon" = x; then 23296 # Not in mixed or Windows style, start by that. 23297 new_path=`cmd //c echo $path` 23298 fi 23299 23300 23301 input_path="$new_path" 23302 # Check if we need to convert this using DOS-style short mode. If the path 23303 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23304 # take no chances and rewrite it. 23305 # Note: m4 eats our [], so we need to use [ and ] instead. 23306 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23307 if test "x$has_forbidden_chars" != x; then 23308 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23309 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23310 fi 23311 23312 23313 windows_path="$new_path" 23314 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23315 unix_path=`$CYGPATH -u "$windows_path"` 23316 new_path="$unix_path" 23317 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23318 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23319 new_path="$unix_path" 23320 fi 23321 23322 if test "x$path" != "x$new_path"; then 23323 BOOT_JDK="$new_path" 23324 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23325 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23326 fi 23327 23328 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23329 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23330 23331 else 23332 # We're on a posix platform. Hooray! :) 23333 path="$BOOT_JDK" 23334 has_space=`$ECHO "$path" | $GREP " "` 23335 if test "x$has_space" != x; then 23336 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23337 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23338 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23339 fi 23340 23341 # Use eval to expand a potential ~ 23342 eval path="$path" 23343 if test ! -f "$path" && test ! -d "$path"; then 23344 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23345 fi 23346 23347 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23348 fi 23349 23350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23351 $as_echo_n "checking for Boot JDK... " >&6; } 23352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23353 $as_echo "$BOOT_JDK" >&6; } 23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23355 $as_echo_n "checking Boot JDK version... " >&6; } 23356 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23358 $as_echo "$BOOT_JDK_VERSION" >&6; } 23359 fi # end check jdk version 23360 fi # end check rt.jar 23361 fi # end check javac 23362 fi # end check java 23363 fi # end check boot jdk found 23364 fi 23365 23366 23367 if test "x$BOOT_JDK_FOUND" = xno; then 23368 # Now execute the test 23369 23370 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 23371 BOOT_JDK_SUFFIX="" 23372 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23373 if test "x$ALL_JDKS_FOUND" != x; then 23374 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23375 23376 if test "x$BOOT_JDK_FOUND" = xno; then 23377 # Now execute the test 23378 23379 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23380 if test -d "$BOOT_JDK"; then 23381 BOOT_JDK_FOUND=maybe 23382 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23383 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23384 fi 23385 23386 23387 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23388 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23389 # Do we have a bin/java? 23390 if test ! -x "$BOOT_JDK/bin/java"; then 23391 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23392 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23393 BOOT_JDK_FOUND=no 23394 else 23395 # Do we have a bin/javac? 23396 if test ! -x "$BOOT_JDK/bin/javac"; then 23397 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23398 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23399 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23400 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23401 BOOT_JDK_FOUND=no 23402 else 23403 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23404 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23405 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23406 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23407 BOOT_JDK_FOUND=no 23408 else 23409 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23410 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23411 23412 # Extra M4 quote needed to protect [] in grep expression. 23413 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23414 if test "x$FOUND_CORRECT_VERSION" = x; then 23415 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23416 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23417 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23418 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23419 BOOT_JDK_FOUND=no 23420 else 23421 # We're done! :-) 23422 BOOT_JDK_FOUND=yes 23423 23424 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23425 23426 # Input might be given as Windows format, start by converting to 23427 # unix format. 23428 path="$BOOT_JDK" 23429 new_path=`$CYGPATH -u "$path"` 23430 23431 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23432 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23433 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23434 # "foo.exe" is OK but "foo" is an error. 23435 # 23436 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23437 # It is also a way to make sure we got the proper file name for the real test later on. 23438 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23439 if test "x$test_shortpath" = x; then 23440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23441 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23442 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23443 fi 23444 23445 # Call helper function which possibly converts this using DOS-style short mode. 23446 # If so, the updated path is stored in $new_path. 23447 23448 input_path="$new_path" 23449 # Check if we need to convert this using DOS-style short mode. If the path 23450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23451 # take no chances and rewrite it. 23452 # Note: m4 eats our [], so we need to use [ and ] instead. 23453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23454 if test "x$has_forbidden_chars" != x; then 23455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23456 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23457 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23458 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23459 # Going to short mode and back again did indeed matter. Since short mode is 23460 # case insensitive, let's make it lowercase to improve readability. 23461 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23462 # Now convert it back to Unix-stile (cygpath) 23463 input_path=`$CYGPATH -u "$shortmode_path"` 23464 new_path="$input_path" 23465 fi 23466 fi 23467 23468 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23469 if test "x$test_cygdrive_prefix" = x; then 23470 # As a simple fix, exclude /usr/bin since it's not a real path. 23471 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23472 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23473 # a path prefixed by /cygdrive for fixpath to work. 23474 new_path="$CYGWIN_ROOT_PATH$input_path" 23475 fi 23476 fi 23477 23478 23479 if test "x$path" != "x$new_path"; then 23480 BOOT_JDK="$new_path" 23481 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23482 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23483 fi 23484 23485 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23486 23487 path="$BOOT_JDK" 23488 has_colon=`$ECHO $path | $GREP ^.:` 23489 new_path="$path" 23490 if test "x$has_colon" = x; then 23491 # Not in mixed or Windows style, start by that. 23492 new_path=`cmd //c echo $path` 23493 fi 23494 23495 23496 input_path="$new_path" 23497 # Check if we need to convert this using DOS-style short mode. If the path 23498 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23499 # take no chances and rewrite it. 23500 # Note: m4 eats our [], so we need to use [ and ] instead. 23501 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23502 if test "x$has_forbidden_chars" != x; then 23503 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23504 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23505 fi 23506 23507 23508 windows_path="$new_path" 23509 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23510 unix_path=`$CYGPATH -u "$windows_path"` 23511 new_path="$unix_path" 23512 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23513 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23514 new_path="$unix_path" 23515 fi 23516 23517 if test "x$path" != "x$new_path"; then 23518 BOOT_JDK="$new_path" 23519 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23520 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23521 fi 23522 23523 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23524 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23525 23526 else 23527 # We're on a posix platform. Hooray! :) 23528 path="$BOOT_JDK" 23529 has_space=`$ECHO "$path" | $GREP " "` 23530 if test "x$has_space" != x; then 23531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23532 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23533 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23534 fi 23535 23536 # Use eval to expand a potential ~ 23537 eval path="$path" 23538 if test ! -f "$path" && test ! -d "$path"; then 23539 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23540 fi 23541 23542 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23543 fi 23544 23545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23546 $as_echo_n "checking for Boot JDK... " >&6; } 23547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23548 $as_echo "$BOOT_JDK" >&6; } 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23550 $as_echo_n "checking Boot JDK version... " >&6; } 23551 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23553 $as_echo "$BOOT_JDK_VERSION" >&6; } 23554 fi # end check jdk version 23555 fi # end check rt.jar 23556 fi # end check javac 23557 fi # end check java 23558 fi # end check boot jdk found 23559 fi 23560 23561 done 23562 fi 23563 23564 23565 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23566 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23567 # Do we have a bin/java? 23568 if test ! -x "$BOOT_JDK/bin/java"; then 23569 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23570 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23571 BOOT_JDK_FOUND=no 23572 else 23573 # Do we have a bin/javac? 23574 if test ! -x "$BOOT_JDK/bin/javac"; then 23575 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23576 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23577 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23578 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23579 BOOT_JDK_FOUND=no 23580 else 23581 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23582 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23583 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23584 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23585 BOOT_JDK_FOUND=no 23586 else 23587 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23588 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23589 23590 # Extra M4 quote needed to protect [] in grep expression. 23591 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23592 if test "x$FOUND_CORRECT_VERSION" = x; then 23593 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23594 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23595 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23596 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23597 BOOT_JDK_FOUND=no 23598 else 23599 # We're done! :-) 23600 BOOT_JDK_FOUND=yes 23601 23602 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23603 23604 # Input might be given as Windows format, start by converting to 23605 # unix format. 23606 path="$BOOT_JDK" 23607 new_path=`$CYGPATH -u "$path"` 23608 23609 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23610 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23611 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23612 # "foo.exe" is OK but "foo" is an error. 23613 # 23614 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23615 # It is also a way to make sure we got the proper file name for the real test later on. 23616 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23617 if test "x$test_shortpath" = x; then 23618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23619 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23620 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23621 fi 23622 23623 # Call helper function which possibly converts this using DOS-style short mode. 23624 # If so, the updated path is stored in $new_path. 23625 23626 input_path="$new_path" 23627 # Check if we need to convert this using DOS-style short mode. If the path 23628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23629 # take no chances and rewrite it. 23630 # Note: m4 eats our [], so we need to use [ and ] instead. 23631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23632 if test "x$has_forbidden_chars" != x; then 23633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23634 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23635 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23636 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23637 # Going to short mode and back again did indeed matter. Since short mode is 23638 # case insensitive, let's make it lowercase to improve readability. 23639 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23640 # Now convert it back to Unix-stile (cygpath) 23641 input_path=`$CYGPATH -u "$shortmode_path"` 23642 new_path="$input_path" 23643 fi 23644 fi 23645 23646 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23647 if test "x$test_cygdrive_prefix" = x; then 23648 # As a simple fix, exclude /usr/bin since it's not a real path. 23649 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23650 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23651 # a path prefixed by /cygdrive for fixpath to work. 23652 new_path="$CYGWIN_ROOT_PATH$input_path" 23653 fi 23654 fi 23655 23656 23657 if test "x$path" != "x$new_path"; then 23658 BOOT_JDK="$new_path" 23659 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23660 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23661 fi 23662 23663 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23664 23665 path="$BOOT_JDK" 23666 has_colon=`$ECHO $path | $GREP ^.:` 23667 new_path="$path" 23668 if test "x$has_colon" = x; then 23669 # Not in mixed or Windows style, start by that. 23670 new_path=`cmd //c echo $path` 23671 fi 23672 23673 23674 input_path="$new_path" 23675 # Check if we need to convert this using DOS-style short mode. If the path 23676 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23677 # take no chances and rewrite it. 23678 # Note: m4 eats our [], so we need to use [ and ] instead. 23679 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23680 if test "x$has_forbidden_chars" != x; then 23681 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23682 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23683 fi 23684 23685 23686 windows_path="$new_path" 23687 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23688 unix_path=`$CYGPATH -u "$windows_path"` 23689 new_path="$unix_path" 23690 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23691 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23692 new_path="$unix_path" 23693 fi 23694 23695 if test "x$path" != "x$new_path"; then 23696 BOOT_JDK="$new_path" 23697 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23698 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23699 fi 23700 23701 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23702 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23703 23704 else 23705 # We're on a posix platform. Hooray! :) 23706 path="$BOOT_JDK" 23707 has_space=`$ECHO "$path" | $GREP " "` 23708 if test "x$has_space" != x; then 23709 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23710 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23711 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23712 fi 23713 23714 # Use eval to expand a potential ~ 23715 eval path="$path" 23716 if test ! -f "$path" && test ! -d "$path"; then 23717 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23718 fi 23719 23720 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23721 fi 23722 23723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23724 $as_echo_n "checking for Boot JDK... " >&6; } 23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23726 $as_echo "$BOOT_JDK" >&6; } 23727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23728 $as_echo_n "checking Boot JDK version... " >&6; } 23729 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23731 $as_echo "$BOOT_JDK_VERSION" >&6; } 23732 fi # end check jdk version 23733 fi # end check rt.jar 23734 fi # end check javac 23735 fi # end check java 23736 fi # end check boot jdk found 23737 fi 23738 23739 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 23740 23741 if test "x$BOOT_JDK_FOUND" = xno; then 23742 # Now execute the test 23743 23744 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 23745 BOOT_JDK_SUFFIX="/Contents/Home" 23746 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23747 if test "x$ALL_JDKS_FOUND" != x; then 23748 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23749 23750 if test "x$BOOT_JDK_FOUND" = xno; then 23751 # Now execute the test 23752 23753 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23754 if test -d "$BOOT_JDK"; then 23755 BOOT_JDK_FOUND=maybe 23756 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23757 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23758 fi 23759 23760 23761 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23762 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23763 # Do we have a bin/java? 23764 if test ! -x "$BOOT_JDK/bin/java"; then 23765 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23766 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23767 BOOT_JDK_FOUND=no 23768 else 23769 # Do we have a bin/javac? 23770 if test ! -x "$BOOT_JDK/bin/javac"; then 23771 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23772 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23773 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23774 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23775 BOOT_JDK_FOUND=no 23776 else 23777 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23778 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23779 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23780 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23781 BOOT_JDK_FOUND=no 23782 else 23783 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23784 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23785 23786 # Extra M4 quote needed to protect [] in grep expression. 23787 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23788 if test "x$FOUND_CORRECT_VERSION" = x; then 23789 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23790 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23791 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23792 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23793 BOOT_JDK_FOUND=no 23794 else 23795 # We're done! :-) 23796 BOOT_JDK_FOUND=yes 23797 23798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23799 23800 # Input might be given as Windows format, start by converting to 23801 # unix format. 23802 path="$BOOT_JDK" 23803 new_path=`$CYGPATH -u "$path"` 23804 23805 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23806 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23807 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23808 # "foo.exe" is OK but "foo" is an error. 23809 # 23810 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23811 # It is also a way to make sure we got the proper file name for the real test later on. 23812 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23813 if test "x$test_shortpath" = x; then 23814 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23815 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23816 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23817 fi 23818 23819 # Call helper function which possibly converts this using DOS-style short mode. 23820 # If so, the updated path is stored in $new_path. 23821 23822 input_path="$new_path" 23823 # Check if we need to convert this using DOS-style short mode. If the path 23824 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23825 # take no chances and rewrite it. 23826 # Note: m4 eats our [], so we need to use [ and ] instead. 23827 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23828 if test "x$has_forbidden_chars" != x; then 23829 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23830 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23831 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23832 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23833 # Going to short mode and back again did indeed matter. Since short mode is 23834 # case insensitive, let's make it lowercase to improve readability. 23835 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23836 # Now convert it back to Unix-stile (cygpath) 23837 input_path=`$CYGPATH -u "$shortmode_path"` 23838 new_path="$input_path" 23839 fi 23840 fi 23841 23842 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23843 if test "x$test_cygdrive_prefix" = x; then 23844 # As a simple fix, exclude /usr/bin since it's not a real path. 23845 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23846 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23847 # a path prefixed by /cygdrive for fixpath to work. 23848 new_path="$CYGWIN_ROOT_PATH$input_path" 23849 fi 23850 fi 23851 23852 23853 if test "x$path" != "x$new_path"; then 23854 BOOT_JDK="$new_path" 23855 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23856 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23857 fi 23858 23859 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23860 23861 path="$BOOT_JDK" 23862 has_colon=`$ECHO $path | $GREP ^.:` 23863 new_path="$path" 23864 if test "x$has_colon" = x; then 23865 # Not in mixed or Windows style, start by that. 23866 new_path=`cmd //c echo $path` 23867 fi 23868 23869 23870 input_path="$new_path" 23871 # Check if we need to convert this using DOS-style short mode. If the path 23872 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23873 # take no chances and rewrite it. 23874 # Note: m4 eats our [], so we need to use [ and ] instead. 23875 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23876 if test "x$has_forbidden_chars" != x; then 23877 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23878 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23879 fi 23880 23881 23882 windows_path="$new_path" 23883 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23884 unix_path=`$CYGPATH -u "$windows_path"` 23885 new_path="$unix_path" 23886 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23887 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23888 new_path="$unix_path" 23889 fi 23890 23891 if test "x$path" != "x$new_path"; then 23892 BOOT_JDK="$new_path" 23893 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23894 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23895 fi 23896 23897 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23898 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23899 23900 else 23901 # We're on a posix platform. Hooray! :) 23902 path="$BOOT_JDK" 23903 has_space=`$ECHO "$path" | $GREP " "` 23904 if test "x$has_space" != x; then 23905 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23906 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23907 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23908 fi 23909 23910 # Use eval to expand a potential ~ 23911 eval path="$path" 23912 if test ! -f "$path" && test ! -d "$path"; then 23913 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23914 fi 23915 23916 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23917 fi 23918 23919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23920 $as_echo_n "checking for Boot JDK... " >&6; } 23921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23922 $as_echo "$BOOT_JDK" >&6; } 23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23924 $as_echo_n "checking Boot JDK version... " >&6; } 23925 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23927 $as_echo "$BOOT_JDK_VERSION" >&6; } 23928 fi # end check jdk version 23929 fi # end check rt.jar 23930 fi # end check javac 23931 fi # end check java 23932 fi # end check boot jdk found 23933 fi 23934 23935 done 23936 fi 23937 23938 23939 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23940 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23941 # Do we have a bin/java? 23942 if test ! -x "$BOOT_JDK/bin/java"; then 23943 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23944 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23945 BOOT_JDK_FOUND=no 23946 else 23947 # Do we have a bin/javac? 23948 if test ! -x "$BOOT_JDK/bin/javac"; then 23949 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23950 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23951 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23952 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23953 BOOT_JDK_FOUND=no 23954 else 23955 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23956 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23957 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23958 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23959 BOOT_JDK_FOUND=no 23960 else 23961 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23962 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23963 23964 # Extra M4 quote needed to protect [] in grep expression. 23965 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 23966 if test "x$FOUND_CORRECT_VERSION" = x; then 23967 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23968 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23969 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 23970 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 23971 BOOT_JDK_FOUND=no 23972 else 23973 # We're done! :-) 23974 BOOT_JDK_FOUND=yes 23975 23976 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23977 23978 # Input might be given as Windows format, start by converting to 23979 # unix format. 23980 path="$BOOT_JDK" 23981 new_path=`$CYGPATH -u "$path"` 23982 23983 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23984 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23985 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23986 # "foo.exe" is OK but "foo" is an error. 23987 # 23988 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23989 # It is also a way to make sure we got the proper file name for the real test later on. 23990 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23991 if test "x$test_shortpath" = x; then 23992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23993 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23994 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23995 fi 23996 23997 # Call helper function which possibly converts this using DOS-style short mode. 23998 # If so, the updated path is stored in $new_path. 23999 24000 input_path="$new_path" 24001 # Check if we need to convert this using DOS-style short mode. If the path 24002 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24003 # take no chances and rewrite it. 24004 # Note: m4 eats our [], so we need to use [ and ] instead. 24005 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24006 if test "x$has_forbidden_chars" != x; then 24007 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24008 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24009 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24010 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24011 # Going to short mode and back again did indeed matter. Since short mode is 24012 # case insensitive, let's make it lowercase to improve readability. 24013 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24014 # Now convert it back to Unix-stile (cygpath) 24015 input_path=`$CYGPATH -u "$shortmode_path"` 24016 new_path="$input_path" 24017 fi 24018 fi 24019 24020 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24021 if test "x$test_cygdrive_prefix" = x; then 24022 # As a simple fix, exclude /usr/bin since it's not a real path. 24023 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24024 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24025 # a path prefixed by /cygdrive for fixpath to work. 24026 new_path="$CYGWIN_ROOT_PATH$input_path" 24027 fi 24028 fi 24029 24030 24031 if test "x$path" != "x$new_path"; then 24032 BOOT_JDK="$new_path" 24033 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24034 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24035 fi 24036 24037 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24038 24039 path="$BOOT_JDK" 24040 has_colon=`$ECHO $path | $GREP ^.:` 24041 new_path="$path" 24042 if test "x$has_colon" = x; then 24043 # Not in mixed or Windows style, start by that. 24044 new_path=`cmd //c echo $path` 24045 fi 24046 24047 24048 input_path="$new_path" 24049 # Check if we need to convert this using DOS-style short mode. If the path 24050 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24051 # take no chances and rewrite it. 24052 # Note: m4 eats our [], so we need to use [ and ] instead. 24053 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24054 if test "x$has_forbidden_chars" != x; then 24055 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24056 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24057 fi 24058 24059 24060 windows_path="$new_path" 24061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24062 unix_path=`$CYGPATH -u "$windows_path"` 24063 new_path="$unix_path" 24064 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24065 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24066 new_path="$unix_path" 24067 fi 24068 24069 if test "x$path" != "x$new_path"; then 24070 BOOT_JDK="$new_path" 24071 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24072 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24073 fi 24074 24075 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24076 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24077 24078 else 24079 # We're on a posix platform. Hooray! :) 24080 path="$BOOT_JDK" 24081 has_space=`$ECHO "$path" | $GREP " "` 24082 if test "x$has_space" != x; then 24083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24084 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24085 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24086 fi 24087 24088 # Use eval to expand a potential ~ 24089 eval path="$path" 24090 if test ! -f "$path" && test ! -d "$path"; then 24091 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24092 fi 24093 24094 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24095 fi 24096 24097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24098 $as_echo_n "checking for Boot JDK... " >&6; } 24099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24100 $as_echo "$BOOT_JDK" >&6; } 24101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24102 $as_echo_n "checking Boot JDK version... " >&6; } 24103 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24105 $as_echo "$BOOT_JDK_VERSION" >&6; } 24106 fi # end check jdk version 24107 fi # end check rt.jar 24108 fi # end check javac 24109 fi # end check java 24110 fi # end check boot jdk found 24111 fi 24112 24113 24114 if test "x$BOOT_JDK_FOUND" = xno; then 24115 # Now execute the test 24116 24117 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 24118 BOOT_JDK_SUFFIX="/Contents/Home" 24119 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24120 if test "x$ALL_JDKS_FOUND" != x; then 24121 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24122 24123 if test "x$BOOT_JDK_FOUND" = xno; then 24124 # Now execute the test 24125 24126 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24127 if test -d "$BOOT_JDK"; then 24128 BOOT_JDK_FOUND=maybe 24129 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24130 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24131 fi 24132 24133 24134 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24135 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24136 # Do we have a bin/java? 24137 if test ! -x "$BOOT_JDK/bin/java"; then 24138 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24139 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24140 BOOT_JDK_FOUND=no 24141 else 24142 # Do we have a bin/javac? 24143 if test ! -x "$BOOT_JDK/bin/javac"; then 24144 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24145 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24146 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24147 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24148 BOOT_JDK_FOUND=no 24149 else 24150 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24151 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24152 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24153 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24154 BOOT_JDK_FOUND=no 24155 else 24156 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24157 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24158 24159 # Extra M4 quote needed to protect [] in grep expression. 24160 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24161 if test "x$FOUND_CORRECT_VERSION" = x; then 24162 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24163 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24164 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24165 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24166 BOOT_JDK_FOUND=no 24167 else 24168 # We're done! :-) 24169 BOOT_JDK_FOUND=yes 24170 24171 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24172 24173 # Input might be given as Windows format, start by converting to 24174 # unix format. 24175 path="$BOOT_JDK" 24176 new_path=`$CYGPATH -u "$path"` 24177 24178 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24179 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24180 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24181 # "foo.exe" is OK but "foo" is an error. 24182 # 24183 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24184 # It is also a way to make sure we got the proper file name for the real test later on. 24185 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24186 if test "x$test_shortpath" = x; then 24187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24188 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24189 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24190 fi 24191 24192 # Call helper function which possibly converts this using DOS-style short mode. 24193 # If so, the updated path is stored in $new_path. 24194 24195 input_path="$new_path" 24196 # Check if we need to convert this using DOS-style short mode. If the path 24197 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24198 # take no chances and rewrite it. 24199 # Note: m4 eats our [], so we need to use [ and ] instead. 24200 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24201 if test "x$has_forbidden_chars" != x; then 24202 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24203 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24204 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24205 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24206 # Going to short mode and back again did indeed matter. Since short mode is 24207 # case insensitive, let's make it lowercase to improve readability. 24208 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24209 # Now convert it back to Unix-stile (cygpath) 24210 input_path=`$CYGPATH -u "$shortmode_path"` 24211 new_path="$input_path" 24212 fi 24213 fi 24214 24215 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24216 if test "x$test_cygdrive_prefix" = x; then 24217 # As a simple fix, exclude /usr/bin since it's not a real path. 24218 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24219 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24220 # a path prefixed by /cygdrive for fixpath to work. 24221 new_path="$CYGWIN_ROOT_PATH$input_path" 24222 fi 24223 fi 24224 24225 24226 if test "x$path" != "x$new_path"; then 24227 BOOT_JDK="$new_path" 24228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24229 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24230 fi 24231 24232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24233 24234 path="$BOOT_JDK" 24235 has_colon=`$ECHO $path | $GREP ^.:` 24236 new_path="$path" 24237 if test "x$has_colon" = x; then 24238 # Not in mixed or Windows style, start by that. 24239 new_path=`cmd //c echo $path` 24240 fi 24241 24242 24243 input_path="$new_path" 24244 # Check if we need to convert this using DOS-style short mode. If the path 24245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24246 # take no chances and rewrite it. 24247 # Note: m4 eats our [], so we need to use [ and ] instead. 24248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24249 if test "x$has_forbidden_chars" != x; then 24250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24251 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24252 fi 24253 24254 24255 windows_path="$new_path" 24256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24257 unix_path=`$CYGPATH -u "$windows_path"` 24258 new_path="$unix_path" 24259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24261 new_path="$unix_path" 24262 fi 24263 24264 if test "x$path" != "x$new_path"; then 24265 BOOT_JDK="$new_path" 24266 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24267 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24268 fi 24269 24270 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24271 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24272 24273 else 24274 # We're on a posix platform. Hooray! :) 24275 path="$BOOT_JDK" 24276 has_space=`$ECHO "$path" | $GREP " "` 24277 if test "x$has_space" != x; then 24278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24279 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24280 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24281 fi 24282 24283 # Use eval to expand a potential ~ 24284 eval path="$path" 24285 if test ! -f "$path" && test ! -d "$path"; then 24286 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24287 fi 24288 24289 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24290 fi 24291 24292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24293 $as_echo_n "checking for Boot JDK... " >&6; } 24294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24295 $as_echo "$BOOT_JDK" >&6; } 24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24297 $as_echo_n "checking Boot JDK version... " >&6; } 24298 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24300 $as_echo "$BOOT_JDK_VERSION" >&6; } 24301 fi # end check jdk version 24302 fi # end check rt.jar 24303 fi # end check javac 24304 fi # end check java 24305 fi # end check boot jdk found 24306 fi 24307 24308 done 24309 fi 24310 24311 24312 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24313 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24314 # Do we have a bin/java? 24315 if test ! -x "$BOOT_JDK/bin/java"; then 24316 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24317 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24318 BOOT_JDK_FOUND=no 24319 else 24320 # Do we have a bin/javac? 24321 if test ! -x "$BOOT_JDK/bin/javac"; then 24322 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24323 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24324 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24325 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24326 BOOT_JDK_FOUND=no 24327 else 24328 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24329 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24330 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24331 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24332 BOOT_JDK_FOUND=no 24333 else 24334 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24335 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24336 24337 # Extra M4 quote needed to protect [] in grep expression. 24338 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24339 if test "x$FOUND_CORRECT_VERSION" = x; then 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24341 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24342 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24343 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24344 BOOT_JDK_FOUND=no 24345 else 24346 # We're done! :-) 24347 BOOT_JDK_FOUND=yes 24348 24349 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24350 24351 # Input might be given as Windows format, start by converting to 24352 # unix format. 24353 path="$BOOT_JDK" 24354 new_path=`$CYGPATH -u "$path"` 24355 24356 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24357 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24358 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24359 # "foo.exe" is OK but "foo" is an error. 24360 # 24361 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24362 # It is also a way to make sure we got the proper file name for the real test later on. 24363 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24364 if test "x$test_shortpath" = x; then 24365 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24366 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24367 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24368 fi 24369 24370 # Call helper function which possibly converts this using DOS-style short mode. 24371 # If so, the updated path is stored in $new_path. 24372 24373 input_path="$new_path" 24374 # Check if we need to convert this using DOS-style short mode. If the path 24375 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24376 # take no chances and rewrite it. 24377 # Note: m4 eats our [], so we need to use [ and ] instead. 24378 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24379 if test "x$has_forbidden_chars" != x; then 24380 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24381 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24382 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24383 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24384 # Going to short mode and back again did indeed matter. Since short mode is 24385 # case insensitive, let's make it lowercase to improve readability. 24386 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24387 # Now convert it back to Unix-stile (cygpath) 24388 input_path=`$CYGPATH -u "$shortmode_path"` 24389 new_path="$input_path" 24390 fi 24391 fi 24392 24393 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24394 if test "x$test_cygdrive_prefix" = x; then 24395 # As a simple fix, exclude /usr/bin since it's not a real path. 24396 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24397 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24398 # a path prefixed by /cygdrive for fixpath to work. 24399 new_path="$CYGWIN_ROOT_PATH$input_path" 24400 fi 24401 fi 24402 24403 24404 if test "x$path" != "x$new_path"; then 24405 BOOT_JDK="$new_path" 24406 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24407 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24408 fi 24409 24410 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24411 24412 path="$BOOT_JDK" 24413 has_colon=`$ECHO $path | $GREP ^.:` 24414 new_path="$path" 24415 if test "x$has_colon" = x; then 24416 # Not in mixed or Windows style, start by that. 24417 new_path=`cmd //c echo $path` 24418 fi 24419 24420 24421 input_path="$new_path" 24422 # Check if we need to convert this using DOS-style short mode. If the path 24423 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24424 # take no chances and rewrite it. 24425 # Note: m4 eats our [], so we need to use [ and ] instead. 24426 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24427 if test "x$has_forbidden_chars" != x; then 24428 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24429 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24430 fi 24431 24432 24433 windows_path="$new_path" 24434 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24435 unix_path=`$CYGPATH -u "$windows_path"` 24436 new_path="$unix_path" 24437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24438 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24439 new_path="$unix_path" 24440 fi 24441 24442 if test "x$path" != "x$new_path"; then 24443 BOOT_JDK="$new_path" 24444 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24445 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24446 fi 24447 24448 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24449 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24450 24451 else 24452 # We're on a posix platform. Hooray! :) 24453 path="$BOOT_JDK" 24454 has_space=`$ECHO "$path" | $GREP " "` 24455 if test "x$has_space" != x; then 24456 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24457 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24458 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24459 fi 24460 24461 # Use eval to expand a potential ~ 24462 eval path="$path" 24463 if test ! -f "$path" && test ! -d "$path"; then 24464 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24465 fi 24466 24467 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24468 fi 24469 24470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24471 $as_echo_n "checking for Boot JDK... " >&6; } 24472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24473 $as_echo "$BOOT_JDK" >&6; } 24474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24475 $as_echo_n "checking Boot JDK version... " >&6; } 24476 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24478 $as_echo "$BOOT_JDK_VERSION" >&6; } 24479 fi # end check jdk version 24480 fi # end check rt.jar 24481 fi # end check javac 24482 fi # end check java 24483 fi # end check boot jdk found 24484 fi 24485 24486 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 24487 24488 if test "x$BOOT_JDK_FOUND" = xno; then 24489 # Now execute the test 24490 24491 BOOT_JDK_PREFIX="/usr/lib/jvm" 24492 BOOT_JDK_SUFFIX="" 24493 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 24494 if test "x$ALL_JDKS_FOUND" != x; then 24495 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 24496 24497 if test "x$BOOT_JDK_FOUND" = xno; then 24498 # Now execute the test 24499 24500 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 24501 if test -d "$BOOT_JDK"; then 24502 BOOT_JDK_FOUND=maybe 24503 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 24504 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 24505 fi 24506 24507 24508 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24509 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24510 # Do we have a bin/java? 24511 if test ! -x "$BOOT_JDK/bin/java"; then 24512 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24513 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24514 BOOT_JDK_FOUND=no 24515 else 24516 # Do we have a bin/javac? 24517 if test ! -x "$BOOT_JDK/bin/javac"; then 24518 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24519 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24520 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24521 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24522 BOOT_JDK_FOUND=no 24523 else 24524 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24525 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24526 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24527 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24528 BOOT_JDK_FOUND=no 24529 else 24530 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24531 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24532 24533 # Extra M4 quote needed to protect [] in grep expression. 24534 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24535 if test "x$FOUND_CORRECT_VERSION" = x; then 24536 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24537 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24538 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24539 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24540 BOOT_JDK_FOUND=no 24541 else 24542 # We're done! :-) 24543 BOOT_JDK_FOUND=yes 24544 24545 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24546 24547 # Input might be given as Windows format, start by converting to 24548 # unix format. 24549 path="$BOOT_JDK" 24550 new_path=`$CYGPATH -u "$path"` 24551 24552 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24553 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24554 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24555 # "foo.exe" is OK but "foo" is an error. 24556 # 24557 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24558 # It is also a way to make sure we got the proper file name for the real test later on. 24559 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24560 if test "x$test_shortpath" = x; then 24561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24562 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24563 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24564 fi 24565 24566 # Call helper function which possibly converts this using DOS-style short mode. 24567 # If so, the updated path is stored in $new_path. 24568 24569 input_path="$new_path" 24570 # Check if we need to convert this using DOS-style short mode. If the path 24571 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24572 # take no chances and rewrite it. 24573 # Note: m4 eats our [], so we need to use [ and ] instead. 24574 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24575 if test "x$has_forbidden_chars" != x; then 24576 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24577 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24578 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24579 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24580 # Going to short mode and back again did indeed matter. Since short mode is 24581 # case insensitive, let's make it lowercase to improve readability. 24582 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24583 # Now convert it back to Unix-stile (cygpath) 24584 input_path=`$CYGPATH -u "$shortmode_path"` 24585 new_path="$input_path" 24586 fi 24587 fi 24588 24589 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24590 if test "x$test_cygdrive_prefix" = x; then 24591 # As a simple fix, exclude /usr/bin since it's not a real path. 24592 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24593 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24594 # a path prefixed by /cygdrive for fixpath to work. 24595 new_path="$CYGWIN_ROOT_PATH$input_path" 24596 fi 24597 fi 24598 24599 24600 if test "x$path" != "x$new_path"; then 24601 BOOT_JDK="$new_path" 24602 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24603 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24604 fi 24605 24606 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24607 24608 path="$BOOT_JDK" 24609 has_colon=`$ECHO $path | $GREP ^.:` 24610 new_path="$path" 24611 if test "x$has_colon" = x; then 24612 # Not in mixed or Windows style, start by that. 24613 new_path=`cmd //c echo $path` 24614 fi 24615 24616 24617 input_path="$new_path" 24618 # Check if we need to convert this using DOS-style short mode. If the path 24619 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24620 # take no chances and rewrite it. 24621 # Note: m4 eats our [], so we need to use [ and ] instead. 24622 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24623 if test "x$has_forbidden_chars" != x; then 24624 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24625 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24626 fi 24627 24628 24629 windows_path="$new_path" 24630 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24631 unix_path=`$CYGPATH -u "$windows_path"` 24632 new_path="$unix_path" 24633 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24634 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24635 new_path="$unix_path" 24636 fi 24637 24638 if test "x$path" != "x$new_path"; then 24639 BOOT_JDK="$new_path" 24640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24641 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24642 fi 24643 24644 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24645 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24646 24647 else 24648 # We're on a posix platform. Hooray! :) 24649 path="$BOOT_JDK" 24650 has_space=`$ECHO "$path" | $GREP " "` 24651 if test "x$has_space" != x; then 24652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24653 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24654 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24655 fi 24656 24657 # Use eval to expand a potential ~ 24658 eval path="$path" 24659 if test ! -f "$path" && test ! -d "$path"; then 24660 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24661 fi 24662 24663 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24664 fi 24665 24666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24667 $as_echo_n "checking for Boot JDK... " >&6; } 24668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24669 $as_echo "$BOOT_JDK" >&6; } 24670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24671 $as_echo_n "checking Boot JDK version... " >&6; } 24672 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24674 $as_echo "$BOOT_JDK_VERSION" >&6; } 24675 fi # end check jdk version 24676 fi # end check rt.jar 24677 fi # end check javac 24678 fi # end check java 24679 fi # end check boot jdk found 24680 fi 24681 24682 done 24683 fi 24684 24685 24686 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24687 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24688 # Do we have a bin/java? 24689 if test ! -x "$BOOT_JDK/bin/java"; then 24690 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24691 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24692 BOOT_JDK_FOUND=no 24693 else 24694 # Do we have a bin/javac? 24695 if test ! -x "$BOOT_JDK/bin/javac"; then 24696 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24697 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24698 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24699 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24700 BOOT_JDK_FOUND=no 24701 else 24702 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24703 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24704 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24705 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24706 BOOT_JDK_FOUND=no 24707 else 24708 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24709 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24710 24711 # Extra M4 quote needed to protect [] in grep expression. 24712 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24713 if test "x$FOUND_CORRECT_VERSION" = x; then 24714 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24715 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24716 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24717 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24718 BOOT_JDK_FOUND=no 24719 else 24720 # We're done! :-) 24721 BOOT_JDK_FOUND=yes 24722 24723 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24724 24725 # Input might be given as Windows format, start by converting to 24726 # unix format. 24727 path="$BOOT_JDK" 24728 new_path=`$CYGPATH -u "$path"` 24729 24730 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24731 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24732 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24733 # "foo.exe" is OK but "foo" is an error. 24734 # 24735 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24736 # It is also a way to make sure we got the proper file name for the real test later on. 24737 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24738 if test "x$test_shortpath" = x; then 24739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24740 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24741 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24742 fi 24743 24744 # Call helper function which possibly converts this using DOS-style short mode. 24745 # If so, the updated path is stored in $new_path. 24746 24747 input_path="$new_path" 24748 # Check if we need to convert this using DOS-style short mode. If the path 24749 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24750 # take no chances and rewrite it. 24751 # Note: m4 eats our [], so we need to use [ and ] instead. 24752 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24753 if test "x$has_forbidden_chars" != x; then 24754 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24755 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24756 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24757 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24758 # Going to short mode and back again did indeed matter. Since short mode is 24759 # case insensitive, let's make it lowercase to improve readability. 24760 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24761 # Now convert it back to Unix-stile (cygpath) 24762 input_path=`$CYGPATH -u "$shortmode_path"` 24763 new_path="$input_path" 24764 fi 24765 fi 24766 24767 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24768 if test "x$test_cygdrive_prefix" = x; then 24769 # As a simple fix, exclude /usr/bin since it's not a real path. 24770 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24771 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24772 # a path prefixed by /cygdrive for fixpath to work. 24773 new_path="$CYGWIN_ROOT_PATH$input_path" 24774 fi 24775 fi 24776 24777 24778 if test "x$path" != "x$new_path"; then 24779 BOOT_JDK="$new_path" 24780 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24781 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24782 fi 24783 24784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24785 24786 path="$BOOT_JDK" 24787 has_colon=`$ECHO $path | $GREP ^.:` 24788 new_path="$path" 24789 if test "x$has_colon" = x; then 24790 # Not in mixed or Windows style, start by that. 24791 new_path=`cmd //c echo $path` 24792 fi 24793 24794 24795 input_path="$new_path" 24796 # Check if we need to convert this using DOS-style short mode. If the path 24797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24798 # take no chances and rewrite it. 24799 # Note: m4 eats our [], so we need to use [ and ] instead. 24800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24801 if test "x$has_forbidden_chars" != x; then 24802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24803 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24804 fi 24805 24806 24807 windows_path="$new_path" 24808 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24809 unix_path=`$CYGPATH -u "$windows_path"` 24810 new_path="$unix_path" 24811 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24812 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24813 new_path="$unix_path" 24814 fi 24815 24816 if test "x$path" != "x$new_path"; then 24817 BOOT_JDK="$new_path" 24818 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24819 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24820 fi 24821 24822 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24823 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24824 24825 else 24826 # We're on a posix platform. Hooray! :) 24827 path="$BOOT_JDK" 24828 has_space=`$ECHO "$path" | $GREP " "` 24829 if test "x$has_space" != x; then 24830 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24831 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24832 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24833 fi 24834 24835 # Use eval to expand a potential ~ 24836 eval path="$path" 24837 if test ! -f "$path" && test ! -d "$path"; then 24838 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24839 fi 24840 24841 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24842 fi 24843 24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24845 $as_echo_n "checking for Boot JDK... " >&6; } 24846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24847 $as_echo "$BOOT_JDK" >&6; } 24848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24849 $as_echo_n "checking Boot JDK version... " >&6; } 24850 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24852 $as_echo "$BOOT_JDK_VERSION" >&6; } 24853 fi # end check jdk version 24854 fi # end check rt.jar 24855 fi # end check javac 24856 fi # end check java 24857 fi # end check boot jdk found 24858 fi 24859 24860 fi 24861 24862 24863 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 24864 if test "x$BOOT_JDK_FOUND" = xmaybe; then 24865 # Do we have a bin/java? 24866 if test ! -x "$BOOT_JDK/bin/java"; then 24867 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 24868 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 24869 BOOT_JDK_FOUND=no 24870 else 24871 # Do we have a bin/javac? 24872 if test ! -x "$BOOT_JDK/bin/javac"; then 24873 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 24874 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 24875 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 24876 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 24877 BOOT_JDK_FOUND=no 24878 else 24879 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 24880 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 24881 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 24882 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 24883 BOOT_JDK_FOUND=no 24884 else 24885 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 24886 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 24887 24888 # Extra M4 quote needed to protect [] in grep expression. 24889 FOUND_CORRECT_VERSION=`echo $BOOT_JDK_VERSION | grep '\"1\.[789]\.'` 24890 if test "x$FOUND_CORRECT_VERSION" = x; then 24891 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 24892 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 24893 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7, 8 or 9)" >&5 24894 $as_echo "$as_me: (Your Boot JDK must be version 7, 8 or 9)" >&6;} 24895 BOOT_JDK_FOUND=no 24896 else 24897 # We're done! :-) 24898 BOOT_JDK_FOUND=yes 24899 24900 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24901 24902 # Input might be given as Windows format, start by converting to 24903 # unix format. 24904 path="$BOOT_JDK" 24905 new_path=`$CYGPATH -u "$path"` 24906 24907 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 24908 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 24909 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 24910 # "foo.exe" is OK but "foo" is an error. 24911 # 24912 # This test is therefore slightly more accurate than "test -f" to check for file precense. 24913 # It is also a way to make sure we got the proper file name for the real test later on. 24914 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 24915 if test "x$test_shortpath" = x; then 24916 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24917 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24918 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 24919 fi 24920 24921 # Call helper function which possibly converts this using DOS-style short mode. 24922 # If so, the updated path is stored in $new_path. 24923 24924 input_path="$new_path" 24925 # Check if we need to convert this using DOS-style short mode. If the path 24926 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24927 # take no chances and rewrite it. 24928 # Note: m4 eats our [], so we need to use [ and ] instead. 24929 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24930 if test "x$has_forbidden_chars" != x; then 24931 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24932 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24933 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24934 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24935 # Going to short mode and back again did indeed matter. Since short mode is 24936 # case insensitive, let's make it lowercase to improve readability. 24937 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24938 # Now convert it back to Unix-stile (cygpath) 24939 input_path=`$CYGPATH -u "$shortmode_path"` 24940 new_path="$input_path" 24941 fi 24942 fi 24943 24944 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24945 if test "x$test_cygdrive_prefix" = x; then 24946 # As a simple fix, exclude /usr/bin since it's not a real path. 24947 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24948 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24949 # a path prefixed by /cygdrive for fixpath to work. 24950 new_path="$CYGWIN_ROOT_PATH$input_path" 24951 fi 24952 fi 24953 24954 24955 if test "x$path" != "x$new_path"; then 24956 BOOT_JDK="$new_path" 24957 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24958 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24959 fi 24960 24961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24962 24963 path="$BOOT_JDK" 24964 has_colon=`$ECHO $path | $GREP ^.:` 24965 new_path="$path" 24966 if test "x$has_colon" = x; then 24967 # Not in mixed or Windows style, start by that. 24968 new_path=`cmd //c echo $path` 24969 fi 24970 24971 24972 input_path="$new_path" 24973 # Check if we need to convert this using DOS-style short mode. If the path 24974 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24975 # take no chances and rewrite it. 24976 # Note: m4 eats our [], so we need to use [ and ] instead. 24977 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24978 if test "x$has_forbidden_chars" != x; then 24979 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24980 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24981 fi 24982 24983 24984 windows_path="$new_path" 24985 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24986 unix_path=`$CYGPATH -u "$windows_path"` 24987 new_path="$unix_path" 24988 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24989 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24990 new_path="$unix_path" 24991 fi 24992 24993 if test "x$path" != "x$new_path"; then 24994 BOOT_JDK="$new_path" 24995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24996 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24997 fi 24998 24999 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25000 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25001 25002 else 25003 # We're on a posix platform. Hooray! :) 25004 path="$BOOT_JDK" 25005 has_space=`$ECHO "$path" | $GREP " "` 25006 if test "x$has_space" != x; then 25007 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 25008 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 25009 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 25010 fi 25011 25012 # Use eval to expand a potential ~ 25013 eval path="$path" 25014 if test ! -f "$path" && test ! -d "$path"; then 25015 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 25016 fi 25017 25018 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 25019 fi 25020 25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 25022 $as_echo_n "checking for Boot JDK... " >&6; } 25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 25024 $as_echo "$BOOT_JDK" >&6; } 25025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 25026 $as_echo_n "checking Boot JDK version... " >&6; } 25027 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 25029 $as_echo "$BOOT_JDK_VERSION" >&6; } 25030 fi # end check jdk version 25031 fi # end check rt.jar 25032 fi # end check javac 25033 fi # end check java 25034 fi # end check boot jdk found 25035 fi 25036 25037 25038 # If we haven't found anything yet, we've truly lost. Give up. 25039 if test "x$BOOT_JDK_FOUND" = xno; then 25040 25041 # Print a helpful message on how to acquire the necessary build dependency. 25042 # openjdk is the help tag: freetype, cups, pulse, alsa etc 25043 MISSING_DEPENDENCY=openjdk 25044 25045 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25046 cygwin_help $MISSING_DEPENDENCY 25047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25048 msys_help $MISSING_DEPENDENCY 25049 else 25050 PKGHANDLER_COMMAND= 25051 25052 case $PKGHANDLER in 25053 apt-get) 25054 apt_help $MISSING_DEPENDENCY ;; 25055 yum) 25056 yum_help $MISSING_DEPENDENCY ;; 25057 port) 25058 port_help $MISSING_DEPENDENCY ;; 25059 pkgutil) 25060 pkgutil_help $MISSING_DEPENDENCY ;; 25061 pkgadd) 25062 pkgadd_help $MISSING_DEPENDENCY ;; 25063 esac 25064 25065 if test "x$PKGHANDLER_COMMAND" != x; then 25066 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 25067 fi 25068 fi 25069 25070 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 25071 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 25072 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 25073 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25074 as_fn_error $? "Cannot continue" "$LINENO" 5 25075 fi 25076 25077 # Setup proper paths for what we found 25078 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 25079 if test ! -f "$BOOT_RTJAR"; then 25080 # On MacOSX it is called classes.jar 25081 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 25082 if test -f "$BOOT_RTJAR"; then 25083 # Remove the .. 25084 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 25085 fi 25086 fi 25087 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 25088 BOOT_JDK="$BOOT_JDK" 25089 25090 25091 25092 25093 # Setup tools from the Boot JDK. 25094 25095 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25096 25097 # Publish this variable in the help. 25098 25099 25100 if test "x$JAVA" = x; then 25101 # The variable is not set by user, try to locate tool using the code snippet 25102 25103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25104 $as_echo_n "checking for java in Boot JDK... " >&6; } 25105 JAVA=$BOOT_JDK/bin/java 25106 if test ! -x $JAVA; then 25107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25108 $as_echo "not found" >&6; } 25109 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25110 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25111 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25112 fi 25113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25114 $as_echo "ok" >&6; } 25115 25116 25117 else 25118 # The variable is set, but is it from the command line or the environment? 25119 25120 # Try to remove the string !JAVA! from our list. 25121 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVA!/} 25122 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25123 # If it failed, the variable was not from the command line. Ignore it, 25124 # but warn the user (except for BASH, which is always set by the calling BASH). 25125 if test "xJAVA" != xBASH; then 25126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&5 25127 $as_echo "$as_me: WARNING: Ignoring value of JAVA from the environment. Use command line variables instead." >&2;} 25128 fi 25129 # Try to locate tool using the code snippet 25130 25131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 25132 $as_echo_n "checking for java in Boot JDK... " >&6; } 25133 JAVA=$BOOT_JDK/bin/java 25134 if test ! -x $JAVA; then 25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25136 $as_echo "not found" >&6; } 25137 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25138 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25139 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 25140 fi 25141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25142 $as_echo "ok" >&6; } 25143 25144 25145 else 25146 # If it succeeded, then it was overridden by the user. We will use it 25147 # for the tool. 25148 25149 # First remove it from the list of overridden variables, so we can test 25150 # for unknown variables in the end. 25151 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25152 25153 # Check if the provided tool contains a complete path. 25154 tool_specified="$JAVA" 25155 tool_basename="${tool_specified##*/}" 25156 if test "x$tool_basename" = "x$tool_specified"; then 25157 # A command without a complete path is provided, search $PATH. 25158 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVA=$tool_basename" >&5 25159 $as_echo "$as_me: Will search for user supplied tool JAVA=$tool_basename" >&6;} 25160 # Extract the first word of "$tool_basename", so it can be a program name with args. 25161 set dummy $tool_basename; ac_word=$2 25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25163 $as_echo_n "checking for $ac_word... " >&6; } 25164 if ${ac_cv_path_JAVA+:} false; then : 25165 $as_echo_n "(cached) " >&6 25166 else 25167 case $JAVA in 25168 [\\/]* | ?:[\\/]*) 25169 ac_cv_path_JAVA="$JAVA" # Let the user override the test with a path. 25170 ;; 25171 *) 25172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25173 for as_dir in $PATH 25174 do 25175 IFS=$as_save_IFS 25176 test -z "$as_dir" && as_dir=. 25177 for ac_exec_ext in '' $ac_executable_extensions; do 25178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25179 ac_cv_path_JAVA="$as_dir/$ac_word$ac_exec_ext" 25180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25181 break 2 25182 fi 25183 done 25184 done 25185 IFS=$as_save_IFS 25186 25187 ;; 25188 esac 25189 fi 25190 JAVA=$ac_cv_path_JAVA 25191 if test -n "$JAVA"; then 25192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5 25193 $as_echo "$JAVA" >&6; } 25194 else 25195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25196 $as_echo "no" >&6; } 25197 fi 25198 25199 25200 if test "x$JAVA" = x; then 25201 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25202 fi 25203 else 25204 # Otherwise we believe it is a complete path. Use it as it is. 25205 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVA=$tool_specified" >&5 25206 $as_echo "$as_me: Will use user supplied tool JAVA=$tool_specified" >&6;} 25207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVA" >&5 25208 $as_echo_n "checking for JAVA... " >&6; } 25209 if test ! -x "$tool_specified"; then 25210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25211 $as_echo "not found" >&6; } 25212 as_fn_error $? "User supplied tool JAVA=$tool_specified does not exist or is not executable" "$LINENO" 5 25213 fi 25214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25215 $as_echo "$tool_specified" >&6; } 25216 fi 25217 fi 25218 fi 25219 25220 25221 25222 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25223 25224 # Publish this variable in the help. 25225 25226 25227 if test "x$JAVAC" = x; then 25228 # The variable is not set by user, try to locate tool using the code snippet 25229 25230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25231 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25232 JAVAC=$BOOT_JDK/bin/javac 25233 if test ! -x $JAVAC; then 25234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25235 $as_echo "not found" >&6; } 25236 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25237 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25238 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25239 fi 25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25241 $as_echo "ok" >&6; } 25242 25243 25244 else 25245 # The variable is set, but is it from the command line or the environment? 25246 25247 # Try to remove the string !JAVAC! from our list. 25248 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAC!/} 25249 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25250 # If it failed, the variable was not from the command line. Ignore it, 25251 # but warn the user (except for BASH, which is always set by the calling BASH). 25252 if test "xJAVAC" != xBASH; then 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&5 25254 $as_echo "$as_me: WARNING: Ignoring value of JAVAC from the environment. Use command line variables instead." >&2;} 25255 fi 25256 # Try to locate tool using the code snippet 25257 25258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 25259 $as_echo_n "checking for javac in Boot JDK... " >&6; } 25260 JAVAC=$BOOT_JDK/bin/javac 25261 if test ! -x $JAVAC; then 25262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25263 $as_echo "not found" >&6; } 25264 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25265 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25266 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 25267 fi 25268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25269 $as_echo "ok" >&6; } 25270 25271 25272 else 25273 # If it succeeded, then it was overridden by the user. We will use it 25274 # for the tool. 25275 25276 # First remove it from the list of overridden variables, so we can test 25277 # for unknown variables in the end. 25278 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25279 25280 # Check if the provided tool contains a complete path. 25281 tool_specified="$JAVAC" 25282 tool_basename="${tool_specified##*/}" 25283 if test "x$tool_basename" = "x$tool_specified"; then 25284 # A command without a complete path is provided, search $PATH. 25285 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAC=$tool_basename" >&5 25286 $as_echo "$as_me: Will search for user supplied tool JAVAC=$tool_basename" >&6;} 25287 # Extract the first word of "$tool_basename", so it can be a program name with args. 25288 set dummy $tool_basename; ac_word=$2 25289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25290 $as_echo_n "checking for $ac_word... " >&6; } 25291 if ${ac_cv_path_JAVAC+:} false; then : 25292 $as_echo_n "(cached) " >&6 25293 else 25294 case $JAVAC in 25295 [\\/]* | ?:[\\/]*) 25296 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path. 25297 ;; 25298 *) 25299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25300 for as_dir in $PATH 25301 do 25302 IFS=$as_save_IFS 25303 test -z "$as_dir" && as_dir=. 25304 for ac_exec_ext in '' $ac_executable_extensions; do 25305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25306 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext" 25307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25308 break 2 25309 fi 25310 done 25311 done 25312 IFS=$as_save_IFS 25313 25314 ;; 25315 esac 25316 fi 25317 JAVAC=$ac_cv_path_JAVAC 25318 if test -n "$JAVAC"; then 25319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5 25320 $as_echo "$JAVAC" >&6; } 25321 else 25322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25323 $as_echo "no" >&6; } 25324 fi 25325 25326 25327 if test "x$JAVAC" = x; then 25328 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25329 fi 25330 else 25331 # Otherwise we believe it is a complete path. Use it as it is. 25332 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAC=$tool_specified" >&5 25333 $as_echo "$as_me: Will use user supplied tool JAVAC=$tool_specified" >&6;} 25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAC" >&5 25335 $as_echo_n "checking for JAVAC... " >&6; } 25336 if test ! -x "$tool_specified"; then 25337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25338 $as_echo "not found" >&6; } 25339 as_fn_error $? "User supplied tool JAVAC=$tool_specified does not exist or is not executable" "$LINENO" 5 25340 fi 25341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25342 $as_echo "$tool_specified" >&6; } 25343 fi 25344 fi 25345 fi 25346 25347 25348 25349 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25350 25351 # Publish this variable in the help. 25352 25353 25354 if test "x$JAVAH" = x; then 25355 # The variable is not set by user, try to locate tool using the code snippet 25356 25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25358 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25359 JAVAH=$BOOT_JDK/bin/javah 25360 if test ! -x $JAVAH; then 25361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25362 $as_echo "not found" >&6; } 25363 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25364 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25365 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25366 fi 25367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25368 $as_echo "ok" >&6; } 25369 25370 25371 else 25372 # The variable is set, but is it from the command line or the environment? 25373 25374 # Try to remove the string !JAVAH! from our list. 25375 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAVAH!/} 25376 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25377 # If it failed, the variable was not from the command line. Ignore it, 25378 # but warn the user (except for BASH, which is always set by the calling BASH). 25379 if test "xJAVAH" != xBASH; then 25380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&5 25381 $as_echo "$as_me: WARNING: Ignoring value of JAVAH from the environment. Use command line variables instead." >&2;} 25382 fi 25383 # Try to locate tool using the code snippet 25384 25385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 25386 $as_echo_n "checking for javah in Boot JDK... " >&6; } 25387 JAVAH=$BOOT_JDK/bin/javah 25388 if test ! -x $JAVAH; then 25389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25390 $as_echo "not found" >&6; } 25391 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25392 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25393 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 25394 fi 25395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25396 $as_echo "ok" >&6; } 25397 25398 25399 else 25400 # If it succeeded, then it was overridden by the user. We will use it 25401 # for the tool. 25402 25403 # First remove it from the list of overridden variables, so we can test 25404 # for unknown variables in the end. 25405 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25406 25407 # Check if the provided tool contains a complete path. 25408 tool_specified="$JAVAH" 25409 tool_basename="${tool_specified##*/}" 25410 if test "x$tool_basename" = "x$tool_specified"; then 25411 # A command without a complete path is provided, search $PATH. 25412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAVAH=$tool_basename" >&5 25413 $as_echo "$as_me: Will search for user supplied tool JAVAH=$tool_basename" >&6;} 25414 # Extract the first word of "$tool_basename", so it can be a program name with args. 25415 set dummy $tool_basename; ac_word=$2 25416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25417 $as_echo_n "checking for $ac_word... " >&6; } 25418 if ${ac_cv_path_JAVAH+:} false; then : 25419 $as_echo_n "(cached) " >&6 25420 else 25421 case $JAVAH in 25422 [\\/]* | ?:[\\/]*) 25423 ac_cv_path_JAVAH="$JAVAH" # Let the user override the test with a path. 25424 ;; 25425 *) 25426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25427 for as_dir in $PATH 25428 do 25429 IFS=$as_save_IFS 25430 test -z "$as_dir" && as_dir=. 25431 for ac_exec_ext in '' $ac_executable_extensions; do 25432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25433 ac_cv_path_JAVAH="$as_dir/$ac_word$ac_exec_ext" 25434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25435 break 2 25436 fi 25437 done 25438 done 25439 IFS=$as_save_IFS 25440 25441 ;; 25442 esac 25443 fi 25444 JAVAH=$ac_cv_path_JAVAH 25445 if test -n "$JAVAH"; then 25446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAH" >&5 25447 $as_echo "$JAVAH" >&6; } 25448 else 25449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25450 $as_echo "no" >&6; } 25451 fi 25452 25453 25454 if test "x$JAVAH" = x; then 25455 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25456 fi 25457 else 25458 # Otherwise we believe it is a complete path. Use it as it is. 25459 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAVAH=$tool_specified" >&5 25460 $as_echo "$as_me: Will use user supplied tool JAVAH=$tool_specified" >&6;} 25461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAVAH" >&5 25462 $as_echo_n "checking for JAVAH... " >&6; } 25463 if test ! -x "$tool_specified"; then 25464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25465 $as_echo "not found" >&6; } 25466 as_fn_error $? "User supplied tool JAVAH=$tool_specified does not exist or is not executable" "$LINENO" 5 25467 fi 25468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25469 $as_echo "$tool_specified" >&6; } 25470 fi 25471 fi 25472 fi 25473 25474 25475 25476 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25477 25478 # Publish this variable in the help. 25479 25480 25481 if test "x$JAR" = x; then 25482 # The variable is not set by user, try to locate tool using the code snippet 25483 25484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25485 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25486 JAR=$BOOT_JDK/bin/jar 25487 if test ! -x $JAR; then 25488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25489 $as_echo "not found" >&6; } 25490 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25491 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25492 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25493 fi 25494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25495 $as_echo "ok" >&6; } 25496 25497 25498 else 25499 # The variable is set, but is it from the command line or the environment? 25500 25501 # Try to remove the string !JAR! from our list. 25502 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JAR!/} 25503 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25504 # If it failed, the variable was not from the command line. Ignore it, 25505 # but warn the user (except for BASH, which is always set by the calling BASH). 25506 if test "xJAR" != xBASH; then 25507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&5 25508 $as_echo "$as_me: WARNING: Ignoring value of JAR from the environment. Use command line variables instead." >&2;} 25509 fi 25510 # Try to locate tool using the code snippet 25511 25512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 25513 $as_echo_n "checking for jar in Boot JDK... " >&6; } 25514 JAR=$BOOT_JDK/bin/jar 25515 if test ! -x $JAR; then 25516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25517 $as_echo "not found" >&6; } 25518 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25519 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25520 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 25521 fi 25522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25523 $as_echo "ok" >&6; } 25524 25525 25526 else 25527 # If it succeeded, then it was overridden by the user. We will use it 25528 # for the tool. 25529 25530 # First remove it from the list of overridden variables, so we can test 25531 # for unknown variables in the end. 25532 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25533 25534 # Check if the provided tool contains a complete path. 25535 tool_specified="$JAR" 25536 tool_basename="${tool_specified##*/}" 25537 if test "x$tool_basename" = "x$tool_specified"; then 25538 # A command without a complete path is provided, search $PATH. 25539 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JAR=$tool_basename" >&5 25540 $as_echo "$as_me: Will search for user supplied tool JAR=$tool_basename" >&6;} 25541 # Extract the first word of "$tool_basename", so it can be a program name with args. 25542 set dummy $tool_basename; ac_word=$2 25543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25544 $as_echo_n "checking for $ac_word... " >&6; } 25545 if ${ac_cv_path_JAR+:} false; then : 25546 $as_echo_n "(cached) " >&6 25547 else 25548 case $JAR in 25549 [\\/]* | ?:[\\/]*) 25550 ac_cv_path_JAR="$JAR" # Let the user override the test with a path. 25551 ;; 25552 *) 25553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25554 for as_dir in $PATH 25555 do 25556 IFS=$as_save_IFS 25557 test -z "$as_dir" && as_dir=. 25558 for ac_exec_ext in '' $ac_executable_extensions; do 25559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25560 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext" 25561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25562 break 2 25563 fi 25564 done 25565 done 25566 IFS=$as_save_IFS 25567 25568 ;; 25569 esac 25570 fi 25571 JAR=$ac_cv_path_JAR 25572 if test -n "$JAR"; then 25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5 25574 $as_echo "$JAR" >&6; } 25575 else 25576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25577 $as_echo "no" >&6; } 25578 fi 25579 25580 25581 if test "x$JAR" = x; then 25582 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25583 fi 25584 else 25585 # Otherwise we believe it is a complete path. Use it as it is. 25586 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JAR=$tool_specified" >&5 25587 $as_echo "$as_me: Will use user supplied tool JAR=$tool_specified" >&6;} 25588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAR" >&5 25589 $as_echo_n "checking for JAR... " >&6; } 25590 if test ! -x "$tool_specified"; then 25591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25592 $as_echo "not found" >&6; } 25593 as_fn_error $? "User supplied tool JAR=$tool_specified does not exist or is not executable" "$LINENO" 5 25594 fi 25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25596 $as_echo "$tool_specified" >&6; } 25597 fi 25598 fi 25599 fi 25600 25601 25602 25603 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25604 25605 # Publish this variable in the help. 25606 25607 25608 if test "x$NATIVE2ASCII" = x; then 25609 # The variable is not set by user, try to locate tool using the code snippet 25610 25611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25612 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25613 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25614 if test ! -x $NATIVE2ASCII; then 25615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25616 $as_echo "not found" >&6; } 25617 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25618 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25619 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25620 fi 25621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25622 $as_echo "ok" >&6; } 25623 25624 25625 else 25626 # The variable is set, but is it from the command line or the environment? 25627 25628 # Try to remove the string !NATIVE2ASCII! from our list. 25629 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NATIVE2ASCII!/} 25630 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25631 # If it failed, the variable was not from the command line. Ignore it, 25632 # but warn the user (except for BASH, which is always set by the calling BASH). 25633 if test "xNATIVE2ASCII" != xBASH; then 25634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&5 25635 $as_echo "$as_me: WARNING: Ignoring value of NATIVE2ASCII from the environment. Use command line variables instead." >&2;} 25636 fi 25637 # Try to locate tool using the code snippet 25638 25639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 25640 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 25641 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 25642 if test ! -x $NATIVE2ASCII; then 25643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25644 $as_echo "not found" >&6; } 25645 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25646 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25647 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 25648 fi 25649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25650 $as_echo "ok" >&6; } 25651 25652 25653 else 25654 # If it succeeded, then it was overridden by the user. We will use it 25655 # for the tool. 25656 25657 # First remove it from the list of overridden variables, so we can test 25658 # for unknown variables in the end. 25659 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25660 25661 # Check if the provided tool contains a complete path. 25662 tool_specified="$NATIVE2ASCII" 25663 tool_basename="${tool_specified##*/}" 25664 if test "x$tool_basename" = "x$tool_specified"; then 25665 # A command without a complete path is provided, search $PATH. 25666 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&5 25667 $as_echo "$as_me: Will search for user supplied tool NATIVE2ASCII=$tool_basename" >&6;} 25668 # Extract the first word of "$tool_basename", so it can be a program name with args. 25669 set dummy $tool_basename; ac_word=$2 25670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25671 $as_echo_n "checking for $ac_word... " >&6; } 25672 if ${ac_cv_path_NATIVE2ASCII+:} false; then : 25673 $as_echo_n "(cached) " >&6 25674 else 25675 case $NATIVE2ASCII in 25676 [\\/]* | ?:[\\/]*) 25677 ac_cv_path_NATIVE2ASCII="$NATIVE2ASCII" # Let the user override the test with a path. 25678 ;; 25679 *) 25680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25681 for as_dir in $PATH 25682 do 25683 IFS=$as_save_IFS 25684 test -z "$as_dir" && as_dir=. 25685 for ac_exec_ext in '' $ac_executable_extensions; do 25686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25687 ac_cv_path_NATIVE2ASCII="$as_dir/$ac_word$ac_exec_ext" 25688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25689 break 2 25690 fi 25691 done 25692 done 25693 IFS=$as_save_IFS 25694 25695 ;; 25696 esac 25697 fi 25698 NATIVE2ASCII=$ac_cv_path_NATIVE2ASCII 25699 if test -n "$NATIVE2ASCII"; then 25700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NATIVE2ASCII" >&5 25701 $as_echo "$NATIVE2ASCII" >&6; } 25702 else 25703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25704 $as_echo "no" >&6; } 25705 fi 25706 25707 25708 if test "x$NATIVE2ASCII" = x; then 25709 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25710 fi 25711 else 25712 # Otherwise we believe it is a complete path. Use it as it is. 25713 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&5 25714 $as_echo "$as_me: Will use user supplied tool NATIVE2ASCII=$tool_specified" >&6;} 25715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NATIVE2ASCII" >&5 25716 $as_echo_n "checking for NATIVE2ASCII... " >&6; } 25717 if test ! -x "$tool_specified"; then 25718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25719 $as_echo "not found" >&6; } 25720 as_fn_error $? "User supplied tool NATIVE2ASCII=$tool_specified does not exist or is not executable" "$LINENO" 5 25721 fi 25722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25723 $as_echo "$tool_specified" >&6; } 25724 fi 25725 fi 25726 fi 25727 25728 25729 25730 # Use user overridden value if available, otherwise locate tool in the Boot JDK. 25731 25732 # Publish this variable in the help. 25733 25734 25735 if test "x$JARSIGNER" = x; then 25736 # The variable is not set by user, try to locate tool using the code snippet 25737 25738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25739 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25740 JARSIGNER=$BOOT_JDK/bin/jarsigner 25741 if test ! -x $JARSIGNER; then 25742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25743 $as_echo "not found" >&6; } 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25745 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25746 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25747 fi 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25749 $as_echo "ok" >&6; } 25750 25751 25752 else 25753 # The variable is set, but is it from the command line or the environment? 25754 25755 # Try to remove the string !JARSIGNER! from our list. 25756 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JARSIGNER!/} 25757 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 25758 # If it failed, the variable was not from the command line. Ignore it, 25759 # but warn the user (except for BASH, which is always set by the calling BASH). 25760 if test "xJARSIGNER" != xBASH; then 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&5 25762 $as_echo "$as_me: WARNING: Ignoring value of JARSIGNER from the environment. Use command line variables instead." >&2;} 25763 fi 25764 # Try to locate tool using the code snippet 25765 25766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jarsigner in Boot JDK" >&5 25767 $as_echo_n "checking for jarsigner in Boot JDK... " >&6; } 25768 JARSIGNER=$BOOT_JDK/bin/jarsigner 25769 if test ! -x $JARSIGNER; then 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25771 $as_echo "not found" >&6; } 25772 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 25773 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 25774 as_fn_error $? "Could not find jarsigner in the Boot JDK" "$LINENO" 5 25775 fi 25776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25777 $as_echo "ok" >&6; } 25778 25779 25780 else 25781 # If it succeeded, then it was overridden by the user. We will use it 25782 # for the tool. 25783 25784 # First remove it from the list of overridden variables, so we can test 25785 # for unknown variables in the end. 25786 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 25787 25788 # Check if the provided tool contains a complete path. 25789 tool_specified="$JARSIGNER" 25790 tool_basename="${tool_specified##*/}" 25791 if test "x$tool_basename" = "x$tool_specified"; then 25792 # A command without a complete path is provided, search $PATH. 25793 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JARSIGNER=$tool_basename" >&5 25794 $as_echo "$as_me: Will search for user supplied tool JARSIGNER=$tool_basename" >&6;} 25795 # Extract the first word of "$tool_basename", so it can be a program name with args. 25796 set dummy $tool_basename; ac_word=$2 25797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25798 $as_echo_n "checking for $ac_word... " >&6; } 25799 if ${ac_cv_path_JARSIGNER+:} false; then : 25800 $as_echo_n "(cached) " >&6 25801 else 25802 case $JARSIGNER in 25803 [\\/]* | ?:[\\/]*) 25804 ac_cv_path_JARSIGNER="$JARSIGNER" # Let the user override the test with a path. 25805 ;; 25806 *) 25807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25808 for as_dir in $PATH 25809 do 25810 IFS=$as_save_IFS 25811 test -z "$as_dir" && as_dir=. 25812 for ac_exec_ext in '' $ac_executable_extensions; do 25813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25814 ac_cv_path_JARSIGNER="$as_dir/$ac_word$ac_exec_ext" 25815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25816 break 2 25817 fi 25818 done 25819 done 25820 IFS=$as_save_IFS 25821 25822 ;; 25823 esac 25824 fi 25825 JARSIGNER=$ac_cv_path_JARSIGNER 25826 if test -n "$JARSIGNER"; then 25827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JARSIGNER" >&5 25828 $as_echo "$JARSIGNER" >&6; } 25829 else 25830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25831 $as_echo "no" >&6; } 25832 fi 25833 25834 25835 if test "x$JARSIGNER" = x; then 25836 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 25837 fi 25838 else 25839 # Otherwise we believe it is a complete path. Use it as it is. 25840 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JARSIGNER=$tool_specified" >&5 25841 $as_echo "$as_me: Will use user supplied tool JARSIGNER=$tool_specified" >&6;} 25842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JARSIGNER" >&5 25843 $as_echo_n "checking for JARSIGNER... " >&6; } 25844 if test ! -x "$tool_specified"; then 25845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25846 $as_echo "not found" >&6; } 25847 as_fn_error $? "User supplied tool JARSIGNER=$tool_specified does not exist or is not executable" "$LINENO" 5 25848 fi 25849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 25850 $as_echo "$tool_specified" >&6; } 25851 fi 25852 fi 25853 fi 25854 25855 25856 25857 # Finally, set some other options... 25858 25859 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 25860 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 25861 25862 25863 25864 25865 ############################################################################## 25866 # 25867 # Specify jvm options for anything that is run with the Boot JDK. 25868 # Not all JVM:s accept the same arguments on the command line. 25869 # 25870 25871 # Check whether --with-boot-jdk-jvmargs was given. 25872 if test "${with_boot_jdk_jvmargs+set}" = set; then : 25873 withval=$with_boot_jdk_jvmargs; 25874 fi 25875 25876 25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 25878 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 25879 25880 # Disable special log output when a debug build is used as Boot JDK... 25881 25882 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 25883 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 25884 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 25885 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25886 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25887 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25888 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 25889 JVM_ARG_OK=true 25890 else 25891 $ECHO "Arg failed:" >&5 25892 $ECHO "$OUTPUT" >&5 25893 JVM_ARG_OK=false 25894 fi 25895 25896 25897 # Apply user provided options. 25898 25899 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 25900 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 25901 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 25902 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25903 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25904 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25905 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 25906 JVM_ARG_OK=true 25907 else 25908 $ECHO "Arg failed:" >&5 25909 $ECHO "$OUTPUT" >&5 25910 JVM_ARG_OK=false 25911 fi 25912 25913 25914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 25915 $as_echo "$boot_jdk_jvmargs" >&6; } 25916 25917 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 25918 JAVA_FLAGS=$boot_jdk_jvmargs 25919 25920 25921 25922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 25923 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 25924 25925 # Starting amount of heap memory. 25926 25927 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 25928 $ECHO "Command: $JAVA -Xms64M -version" >&5 25929 OUTPUT=`$JAVA -Xms64M -version 2>&1` 25930 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25931 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25932 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25933 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 25934 JVM_ARG_OK=true 25935 else 25936 $ECHO "Arg failed:" >&5 25937 $ECHO "$OUTPUT" >&5 25938 JVM_ARG_OK=false 25939 fi 25940 25941 25942 # Maximum amount of heap memory. 25943 # Maximum stack size. 25944 if test "x$BUILD_NUM_BITS" = x32; then 25945 JVM_MAX_HEAP=1100M 25946 STACK_SIZE=768 25947 else 25948 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 25949 # pointers are used. Apparently, we need to increase the heap and stack 25950 # space for the jvm. More specifically, when running javac to build huge 25951 # jdk batch 25952 JVM_MAX_HEAP=1600M 25953 STACK_SIZE=1536 25954 fi 25955 25956 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 25957 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 25958 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 25959 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25960 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25961 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25962 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 25963 JVM_ARG_OK=true 25964 else 25965 $ECHO "Arg failed:" >&5 25966 $ECHO "$OUTPUT" >&5 25967 JVM_ARG_OK=false 25968 fi 25969 25970 25971 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 25972 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 25973 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 25974 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 25975 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 25976 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 25977 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 25978 JVM_ARG_OK=true 25979 else 25980 $ECHO "Arg failed:" >&5 25981 $ECHO "$OUTPUT" >&5 25982 JVM_ARG_OK=false 25983 fi 25984 25985 25986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 25987 $as_echo "$boot_jdk_jvmargs_big" >&6; } 25988 25989 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 25990 25991 25992 25993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 25994 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 25995 25996 # Use serial gc for small short lived tools if possible 25997 25998 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 25999 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 26000 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 26001 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26002 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26003 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26004 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 26005 JVM_ARG_OK=true 26006 else 26007 $ECHO "Arg failed:" >&5 26008 $ECHO "$OUTPUT" >&5 26009 JVM_ARG_OK=false 26010 fi 26011 26012 26013 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 26014 $ECHO "Command: $JAVA -Xms32M -version" >&5 26015 OUTPUT=`$JAVA -Xms32M -version 2>&1` 26016 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26017 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26018 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26019 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 26020 JVM_ARG_OK=true 26021 else 26022 $ECHO "Arg failed:" >&5 26023 $ECHO "$OUTPUT" >&5 26024 JVM_ARG_OK=false 26025 fi 26026 26027 26028 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 26029 $ECHO "Command: $JAVA -Xmx512M -version" >&5 26030 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 26031 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 26032 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 26033 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 26034 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 26035 JVM_ARG_OK=true 26036 else 26037 $ECHO "Arg failed:" >&5 26038 $ECHO "$OUTPUT" >&5 26039 JVM_ARG_OK=false 26040 fi 26041 26042 26043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 26044 $as_echo "$boot_jdk_jvmargs_small" >&6; } 26045 26046 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 26047 26048 26049 26050 ############################################################################### 26051 # 26052 # Configure the sources to use. We can add or override individual directories. 26053 # 26054 ############################################################################### 26055 26056 26057 # Where are the sources. Any of these can be overridden 26058 # using --with-override-corba and the likes. 26059 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 26060 CORBA_TOPDIR="$SRC_ROOT/corba" 26061 JAXP_TOPDIR="$SRC_ROOT/jaxp" 26062 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 26063 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 26064 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 26065 JDK_TOPDIR="$SRC_ROOT/jdk" 26066 26067 26068 26069 26070 26071 26072 26073 26074 26075 26076 ############################################################################### 26077 # 26078 # Pickup additional source for a component from outside of the source root 26079 # or override source for a component. 26080 # 26081 26082 # Check whether --with-add-source-root was given. 26083 if test "${with_add_source_root+set}" = set; then : 26084 withval=$with_add_source_root; 26085 fi 26086 26087 26088 26089 # Check whether --with-override-source-root was given. 26090 if test "${with_override_source_root+set}" = set; then : 26091 withval=$with_override_source_root; 26092 fi 26093 26094 26095 26096 # Check whether --with-adds-and-overrides was given. 26097 if test "${with_adds_and_overrides+set}" = set; then : 26098 withval=$with_adds_and_overrides; 26099 fi 26100 26101 26102 if test "x$with_adds_and_overrides" != x; then 26103 with_add_source_root="$with_adds_and_overrides/adds" 26104 with_override_source_root="$with_adds_and_overrides/overrides" 26105 fi 26106 26107 if test "x$with_add_source_root" != x; then 26108 if ! test -d $with_add_source_root; then 26109 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 26110 fi 26111 CURDIR="$PWD" 26112 cd "$with_add_source_root" 26113 ADD_SRC_ROOT="`pwd`" 26114 cd "$CURDIR" 26115 # Verify that the addon source root does not have any root makefiles. 26116 # If it does, then it is usually an error, prevent this. 26117 if test -f $with_add_source_root/langtools/make/Makefile; then 26118 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 26119 fi 26120 if test -f $with_add_source_root/corba/make/Makefile; then 26121 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 26122 fi 26123 if test -f $with_add_source_root/jaxp/make/Makefile; then 26124 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 26125 fi 26126 if test -f $with_add_source_root/jaxws/make/Makefile; then 26127 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 26128 fi 26129 if test -f $with_add_source_root/hotspot/make/Makefile; then 26130 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 26131 fi 26132 if test -f $with_add_source_root/nashorn/make/Makefile; then 26133 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 26134 fi 26135 if test -f $with_add_source_root/jdk/make/Makefile; then 26136 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 26137 fi 26138 fi 26139 26140 26141 if test "x$with_override_source_root" != x; then 26142 if ! test -d $with_override_source_root; then 26143 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 26144 fi 26145 CURDIR="$PWD" 26146 cd "$with_override_source_root" 26147 OVERRIDE_SRC_ROOT="`pwd`" 26148 cd "$CURDIR" 26149 if test -f $with_override_source_root/langtools/make/Makefile; then 26150 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 26151 fi 26152 if test -f $with_override_source_root/corba/make/Makefile; then 26153 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 26154 fi 26155 if test -f $with_override_source_root/jaxp/make/Makefile; then 26156 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 26157 fi 26158 if test -f $with_override_source_root/jaxws/make/Makefile; then 26159 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 26160 fi 26161 if test -f $with_override_source_root/hotspot/make/Makefile; then 26162 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 26163 fi 26164 if test -f $with_override_source_root/nashorn/make/Makefile; then 26165 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 26166 fi 26167 if test -f $with_override_source_root/jdk/make/Makefile; then 26168 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 26169 fi 26170 fi 26171 26172 26173 ############################################################################### 26174 # 26175 # Override a repo completely, this is used for example when you have 3 small 26176 # development sandboxes of the langtools sources and want to avoid having 3 full 26177 # OpenJDK sources checked out on disk. 26178 # 26179 # Assuming that the 3 langtools sandboxes are located here: 26180 # /home/fredrik/sandbox1/langtools 26181 # /home/fredrik/sandbox2/langtools 26182 # /home/fredrik/sandbox3/langtools 26183 # 26184 # From the source root you create build subdirs manually: 26185 # mkdir -p build1 build2 build3 26186 # in each build directory run: 26187 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 26188 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 26189 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 26190 # 26191 26192 26193 # Check whether --with-override-langtools was given. 26194 if test "${with_override_langtools+set}" = set; then : 26195 withval=$with_override_langtools; 26196 fi 26197 26198 26199 26200 # Check whether --with-override-corba was given. 26201 if test "${with_override_corba+set}" = set; then : 26202 withval=$with_override_corba; 26203 fi 26204 26205 26206 26207 # Check whether --with-override-jaxp was given. 26208 if test "${with_override_jaxp+set}" = set; then : 26209 withval=$with_override_jaxp; 26210 fi 26211 26212 26213 26214 # Check whether --with-override-jaxws was given. 26215 if test "${with_override_jaxws+set}" = set; then : 26216 withval=$with_override_jaxws; 26217 fi 26218 26219 26220 26221 # Check whether --with-override-hotspot was given. 26222 if test "${with_override_hotspot+set}" = set; then : 26223 withval=$with_override_hotspot; 26224 fi 26225 26226 26227 26228 # Check whether --with-override-nashorn was given. 26229 if test "${with_override_nashorn+set}" = set; then : 26230 withval=$with_override_nashorn; 26231 fi 26232 26233 26234 26235 # Check whether --with-override-jdk was given. 26236 if test "${with_override_jdk+set}" = set; then : 26237 withval=$with_override_jdk; 26238 fi 26239 26240 26241 if test "x$with_override_langtools" != x; then 26242 CURDIR="$PWD" 26243 cd "$with_override_langtools" 26244 LANGTOOLS_TOPDIR="`pwd`" 26245 cd "$CURDIR" 26246 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 26247 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 26248 fi 26249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 26250 $as_echo_n "checking if langtools should be overridden... " >&6; } 26251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 26252 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 26253 fi 26254 if test "x$with_override_corba" != x; then 26255 CURDIR="$PWD" 26256 cd "$with_override_corba" 26257 CORBA_TOPDIR="`pwd`" 26258 cd "$CURDIR" 26259 if ! test -f $CORBA_TOPDIR/make/Makefile; then 26260 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 26261 fi 26262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 26263 $as_echo_n "checking if corba should be overridden... " >&6; } 26264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 26265 $as_echo "yes with $CORBA_TOPDIR" >&6; } 26266 fi 26267 if test "x$with_override_jaxp" != x; then 26268 CURDIR="$PWD" 26269 cd "$with_override_jaxp" 26270 JAXP_TOPDIR="`pwd`" 26271 cd "$CURDIR" 26272 if ! test -f $JAXP_TOPDIR/make/Makefile; then 26273 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 26274 fi 26275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 26276 $as_echo_n "checking if jaxp should be overridden... " >&6; } 26277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 26278 $as_echo "yes with $JAXP_TOPDIR" >&6; } 26279 fi 26280 if test "x$with_override_jaxws" != x; then 26281 CURDIR="$PWD" 26282 cd "$with_override_jaxws" 26283 JAXWS_TOPDIR="`pwd`" 26284 cd "$CURDIR" 26285 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 26286 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 26287 fi 26288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 26289 $as_echo_n "checking if jaxws should be overridden... " >&6; } 26290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 26291 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 26292 fi 26293 if test "x$with_override_hotspot" != x; then 26294 CURDIR="$PWD" 26295 cd "$with_override_hotspot" 26296 HOTSPOT_TOPDIR="`pwd`" 26297 cd "$CURDIR" 26298 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 26299 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 26300 fi 26301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 26302 $as_echo_n "checking if hotspot should be overridden... " >&6; } 26303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 26304 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 26305 fi 26306 if test "x$with_override_nashorn" != x; then 26307 CURDIR="$PWD" 26308 cd "$with_override_nashorn" 26309 NASHORN_TOPDIR="`pwd`" 26310 cd "$CURDIR" 26311 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 26312 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 26313 fi 26314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 26315 $as_echo_n "checking if nashorn should be overridden... " >&6; } 26316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 26317 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 26318 fi 26319 if test "x$with_override_jdk" != x; then 26320 CURDIR="$PWD" 26321 cd "$with_override_jdk" 26322 JDK_TOPDIR="`pwd`" 26323 cd "$CURDIR" 26324 if ! test -f $JDK_TOPDIR/make/Makefile; then 26325 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 26326 fi 26327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 26328 $as_echo_n "checking if JDK should be overridden... " >&6; } 26329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 26330 $as_echo "yes with $JDK_TOPDIR" >&6; } 26331 fi 26332 26333 26334 BUILD_OUTPUT="$OUTPUT_ROOT" 26335 26336 26337 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 26338 BUILD_HOTSPOT=true 26339 26340 26341 26342 # Check whether --with-import-hotspot was given. 26343 if test "${with_import_hotspot+set}" = set; then : 26344 withval=$with_import_hotspot; 26345 fi 26346 26347 if test "x$with_import_hotspot" != x; then 26348 CURDIR="$PWD" 26349 cd "$with_import_hotspot" 26350 HOTSPOT_DIST="`pwd`" 26351 cd "$CURDIR" 26352 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 26353 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 26354 fi 26355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 26356 $as_echo_n "checking if hotspot should be imported... " >&6; } 26357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 26358 $as_echo "yes from $HOTSPOT_DIST" >&6; } 26359 BUILD_HOTSPOT=false 26360 fi 26361 26362 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 26363 26364 26365 ############################################################################### 26366 # 26367 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 26368 # native code. 26369 # 26370 ############################################################################### 26371 26372 # First determine the toolchain type (compiler family) 26373 26374 26375 # Check whether --with-toolchain-type was given. 26376 if test "${with_toolchain_type+set}" = set; then : 26377 withval=$with_toolchain_type; 26378 fi 26379 26380 26381 # Use indirect variable referencing 26382 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 26383 VALID_TOOLCHAINS=${!toolchain_var_name} 26384 26385 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26386 # On Mac OS X, default toolchain to clang after Xcode 5 26387 XCODE_VERSION_OUTPUT=`xcodebuild -version 2>&1 | $HEAD -n 1` 26388 $ECHO "$XCODE_VERSION_OUTPUT" | $GREP "Xcode " > /dev/null 26389 if test $? -ne 0; then 26390 as_fn_error $? "Failed to determine Xcode version." "$LINENO" 5 26391 fi 26392 XCODE_MAJOR_VERSION=`$ECHO $XCODE_VERSION_OUTPUT | \ 26393 $SED -e 's/^Xcode \([1-9][0-9.]*\)/\1/' | \ 26394 $CUT -f 1 -d .` 26395 { $as_echo "$as_me:${as_lineno-$LINENO}: Xcode major version: $XCODE_MAJOR_VERSION" >&5 26396 $as_echo "$as_me: Xcode major version: $XCODE_MAJOR_VERSION" >&6;} 26397 if test $XCODE_MAJOR_VERSION -ge 5; then 26398 DEFAULT_TOOLCHAIN="clang" 26399 else 26400 DEFAULT_TOOLCHAIN="gcc" 26401 fi 26402 else 26403 # First toolchain type in the list is the default 26404 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 26405 fi 26406 26407 if test "x$with_toolchain_type" = xlist; then 26408 # List all toolchains 26409 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 26410 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 26411 for toolchain in $VALID_TOOLCHAINS; do 26412 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 26413 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26414 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 26415 done 26416 26417 exit 0 26418 elif test "x$with_toolchain_type" != x; then 26419 # User override; check that it is valid 26420 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 26421 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 26422 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 26423 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 26424 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 26425 as_fn_error $? "Cannot continue." "$LINENO" 5 26426 fi 26427 TOOLCHAIN_TYPE=$with_toolchain_type 26428 else 26429 # No flag given, use default 26430 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 26431 fi 26432 26433 26434 TOOLCHAIN_CC_BINARY_clang="clang" 26435 TOOLCHAIN_CC_BINARY_gcc="gcc" 26436 TOOLCHAIN_CC_BINARY_microsoft="cl" 26437 TOOLCHAIN_CC_BINARY_solstudio="cc" 26438 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 26439 26440 TOOLCHAIN_CXX_BINARY_clang="clang++" 26441 TOOLCHAIN_CXX_BINARY_gcc="g++" 26442 TOOLCHAIN_CXX_BINARY_microsoft="cl" 26443 TOOLCHAIN_CXX_BINARY_solstudio="CC" 26444 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 26445 26446 # Use indirect variable referencing 26447 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 26448 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 26449 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 26450 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 26451 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 26452 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 26453 26454 26455 # Define filename patterns 26456 if test "x$OPENJDK_TARGET_OS" = xwindows; then 26457 LIBRARY_PREFIX= 26458 SHARED_LIBRARY_SUFFIX='.dll' 26459 STATIC_LIBRARY_SUFFIX='.lib' 26460 SHARED_LIBRARY='$1.dll' 26461 STATIC_LIBRARY='$1.lib' 26462 OBJ_SUFFIX='.obj' 26463 EXE_SUFFIX='.exe' 26464 else 26465 LIBRARY_PREFIX=lib 26466 SHARED_LIBRARY_SUFFIX='.so' 26467 STATIC_LIBRARY_SUFFIX='.a' 26468 SHARED_LIBRARY='lib$1.so' 26469 STATIC_LIBRARY='lib$1.a' 26470 OBJ_SUFFIX='.o' 26471 EXE_SUFFIX='' 26472 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 26473 SHARED_LIBRARY='lib$1.dylib' 26474 SHARED_LIBRARY_SUFFIX='.dylib' 26475 fi 26476 fi 26477 26478 26479 26480 26481 26482 26483 26484 26485 26486 26487 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 26488 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 26489 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 26490 else 26491 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 26492 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 26493 fi 26494 26495 26496 # Then detect the actual binaries needed 26497 26498 # FIXME: Is this needed? 26499 ac_ext=cpp 26500 ac_cpp='$CXXCPP $CPPFLAGS' 26501 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26502 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26503 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26504 26505 26506 # Store the CFLAGS etc passed to the configure script. 26507 ORG_CFLAGS="$CFLAGS" 26508 ORG_CXXFLAGS="$CXXFLAGS" 26509 ORG_OBJCFLAGS="$OBJCFLAGS" 26510 26511 # On Windows, we need to detect the visual studio installation first. 26512 # This will change the PATH, but we need to keep that new PATH even 26513 # after toolchain detection is done, since the compiler (on x86) uses 26514 # it for DLL resolution in runtime. 26515 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 26516 26517 # Store path to cygwin link.exe to help excluding it when searching for 26518 # VS linker. This must be done before changing the PATH when looking for VS. 26519 # Extract the first word of "link", so it can be a program name with args. 26520 set dummy link; ac_word=$2 26521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26522 $as_echo_n "checking for $ac_word... " >&6; } 26523 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 26524 $as_echo_n "(cached) " >&6 26525 else 26526 case $CYGWIN_LINK in 26527 [\\/]* | ?:[\\/]*) 26528 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 26529 ;; 26530 *) 26531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26532 for as_dir in $PATH 26533 do 26534 IFS=$as_save_IFS 26535 test -z "$as_dir" && as_dir=. 26536 for ac_exec_ext in '' $ac_executable_extensions; do 26537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26538 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 26539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26540 break 2 26541 fi 26542 done 26543 done 26544 IFS=$as_save_IFS 26545 26546 ;; 26547 esac 26548 fi 26549 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 26550 if test -n "$CYGWIN_LINK"; then 26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 26552 $as_echo "$CYGWIN_LINK" >&6; } 26553 else 26554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26555 $as_echo "no" >&6; } 26556 fi 26557 26558 26559 if test "x$CYGWIN_LINK" != x; then 26560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 26561 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 26562 "$CYGWIN_LINK" --version > /dev/null 26563 if test $? -eq 0 ; then 26564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 26565 $as_echo "yes" >&6; } 26566 else 26567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26568 $as_echo "no" >&6; } 26569 # This might be the VS linker. Don't exclude it later on. 26570 CYGWIN_LINK="" 26571 fi 26572 fi 26573 26574 # First-hand choice is to locate and run the vsvars bat file. 26575 26576 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26577 VCVARSFILE="vc/bin/vcvars32.bat" 26578 else 26579 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 26580 fi 26581 26582 VS_ENV_CMD="" 26583 VS_ENV_ARGS="" 26584 if test "x$with_toolsdir" != x; then 26585 26586 if test "x$VS_ENV_CMD" = x; then 26587 VS100BASE="$with_toolsdir/../.." 26588 METHOD="--with-tools-dir" 26589 26590 windows_path="$VS100BASE" 26591 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26592 unix_path=`$CYGPATH -u "$windows_path"` 26593 VS100BASE="$unix_path" 26594 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26595 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26596 VS100BASE="$unix_path" 26597 fi 26598 26599 if test -d "$VS100BASE"; then 26600 if test -f "$VS100BASE/$VCVARSFILE"; then 26601 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26602 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26603 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26604 else 26605 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26606 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26607 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26608 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26609 fi 26610 fi 26611 fi 26612 26613 fi 26614 26615 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 26616 # Having specified an argument which is incorrect will produce an instant failure; 26617 # we should not go on looking 26618 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 26619 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 26620 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 26621 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 26622 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 26623 fi 26624 26625 if test "x$VS100COMNTOOLS" != x; then 26626 26627 if test "x$VS_ENV_CMD" = x; then 26628 VS100BASE="$VS100COMNTOOLS/../.." 26629 METHOD="VS100COMNTOOLS variable" 26630 26631 windows_path="$VS100BASE" 26632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26633 unix_path=`$CYGPATH -u "$windows_path"` 26634 VS100BASE="$unix_path" 26635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26636 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26637 VS100BASE="$unix_path" 26638 fi 26639 26640 if test -d "$VS100BASE"; then 26641 if test -f "$VS100BASE/$VCVARSFILE"; then 26642 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26643 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26644 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26645 else 26646 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26647 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26648 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26649 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26650 fi 26651 fi 26652 fi 26653 26654 fi 26655 if test "x$PROGRAMFILES" != x; then 26656 26657 if test "x$VS_ENV_CMD" = x; then 26658 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 26659 METHOD="well-known name" 26660 26661 windows_path="$VS100BASE" 26662 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26663 unix_path=`$CYGPATH -u "$windows_path"` 26664 VS100BASE="$unix_path" 26665 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26666 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26667 VS100BASE="$unix_path" 26668 fi 26669 26670 if test -d "$VS100BASE"; then 26671 if test -f "$VS100BASE/$VCVARSFILE"; then 26672 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26673 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26674 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26675 else 26676 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26677 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26678 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26679 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26680 fi 26681 fi 26682 fi 26683 26684 fi 26685 26686 if test "x$VS_ENV_CMD" = x; then 26687 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 26688 METHOD="well-known name" 26689 26690 windows_path="$VS100BASE" 26691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26692 unix_path=`$CYGPATH -u "$windows_path"` 26693 VS100BASE="$unix_path" 26694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26696 VS100BASE="$unix_path" 26697 fi 26698 26699 if test -d "$VS100BASE"; then 26700 if test -f "$VS100BASE/$VCVARSFILE"; then 26701 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26702 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26703 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26704 else 26705 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26706 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26707 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26708 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26709 fi 26710 fi 26711 fi 26712 26713 26714 if test "x$VS_ENV_CMD" = x; then 26715 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 26716 METHOD="well-known name" 26717 26718 windows_path="$VS100BASE" 26719 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26720 unix_path=`$CYGPATH -u "$windows_path"` 26721 VS100BASE="$unix_path" 26722 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26723 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26724 VS100BASE="$unix_path" 26725 fi 26726 26727 if test -d "$VS100BASE"; then 26728 if test -f "$VS100BASE/$VCVARSFILE"; then 26729 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26730 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26731 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 26732 else 26733 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 26734 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 26735 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 26736 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 26737 fi 26738 fi 26739 fi 26740 26741 26742 if test "x$ProgramW6432" != x; then 26743 26744 if test "x$VS_ENV_CMD" = x; then 26745 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 26746 METHOD="well-known name" 26747 26748 windows_path="$WIN_SDK_BASE" 26749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26750 unix_path=`$CYGPATH -u "$windows_path"` 26751 WIN_SDK_BASE="$unix_path" 26752 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26753 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26754 WIN_SDK_BASE="$unix_path" 26755 fi 26756 26757 if test -d "$WIN_SDK_BASE"; then 26758 # There have been cases of partial or broken SDK installations. A missing 26759 # lib dir is not going to work. 26760 if test ! -d "$WIN_SDK_BASE/../lib"; then 26761 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26762 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26763 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26764 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26765 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26766 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26767 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26768 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26769 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26770 VS_ENV_ARGS="/x86" 26771 else 26772 VS_ENV_ARGS="/x64" 26773 fi 26774 else 26775 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26776 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26777 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26778 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26779 fi 26780 fi 26781 fi 26782 26783 fi 26784 if test "x$PROGRAMW6432" != x; then 26785 26786 if test "x$VS_ENV_CMD" = x; then 26787 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 26788 METHOD="well-known name" 26789 26790 windows_path="$WIN_SDK_BASE" 26791 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26792 unix_path=`$CYGPATH -u "$windows_path"` 26793 WIN_SDK_BASE="$unix_path" 26794 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26795 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26796 WIN_SDK_BASE="$unix_path" 26797 fi 26798 26799 if test -d "$WIN_SDK_BASE"; then 26800 # There have been cases of partial or broken SDK installations. A missing 26801 # lib dir is not going to work. 26802 if test ! -d "$WIN_SDK_BASE/../lib"; then 26803 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26804 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26805 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26806 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26807 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26808 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26809 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26810 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26811 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26812 VS_ENV_ARGS="/x86" 26813 else 26814 VS_ENV_ARGS="/x64" 26815 fi 26816 else 26817 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26818 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26819 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26820 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26821 fi 26822 fi 26823 fi 26824 26825 fi 26826 if test "x$PROGRAMFILES" != x; then 26827 26828 if test "x$VS_ENV_CMD" = x; then 26829 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 26830 METHOD="well-known name" 26831 26832 windows_path="$WIN_SDK_BASE" 26833 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26834 unix_path=`$CYGPATH -u "$windows_path"` 26835 WIN_SDK_BASE="$unix_path" 26836 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26837 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26838 WIN_SDK_BASE="$unix_path" 26839 fi 26840 26841 if test -d "$WIN_SDK_BASE"; then 26842 # There have been cases of partial or broken SDK installations. A missing 26843 # lib dir is not going to work. 26844 if test ! -d "$WIN_SDK_BASE/../lib"; then 26845 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26846 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26847 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26848 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26849 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26850 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26851 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26852 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26853 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26854 VS_ENV_ARGS="/x86" 26855 else 26856 VS_ENV_ARGS="/x64" 26857 fi 26858 else 26859 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26860 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26861 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26862 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26863 fi 26864 fi 26865 fi 26866 26867 fi 26868 26869 if test "x$VS_ENV_CMD" = x; then 26870 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 26871 METHOD="well-known name" 26872 26873 windows_path="$WIN_SDK_BASE" 26874 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26875 unix_path=`$CYGPATH -u "$windows_path"` 26876 WIN_SDK_BASE="$unix_path" 26877 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26878 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26879 WIN_SDK_BASE="$unix_path" 26880 fi 26881 26882 if test -d "$WIN_SDK_BASE"; then 26883 # There have been cases of partial or broken SDK installations. A missing 26884 # lib dir is not going to work. 26885 if test ! -d "$WIN_SDK_BASE/../lib"; then 26886 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26887 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26888 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26889 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26890 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26891 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26892 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26893 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26894 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26895 VS_ENV_ARGS="/x86" 26896 else 26897 VS_ENV_ARGS="/x64" 26898 fi 26899 else 26900 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26901 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26902 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26903 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26904 fi 26905 fi 26906 fi 26907 26908 26909 if test "x$VS_ENV_CMD" = x; then 26910 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 26911 METHOD="well-known name" 26912 26913 windows_path="$WIN_SDK_BASE" 26914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26915 unix_path=`$CYGPATH -u "$windows_path"` 26916 WIN_SDK_BASE="$unix_path" 26917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26919 WIN_SDK_BASE="$unix_path" 26920 fi 26921 26922 if test -d "$WIN_SDK_BASE"; then 26923 # There have been cases of partial or broken SDK installations. A missing 26924 # lib dir is not going to work. 26925 if test ! -d "$WIN_SDK_BASE/../lib"; then 26926 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26927 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26928 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 26929 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 26930 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 26931 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26932 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26933 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 26934 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 26935 VS_ENV_ARGS="/x86" 26936 else 26937 VS_ENV_ARGS="/x64" 26938 fi 26939 else 26940 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 26941 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 26942 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 26943 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 26944 fi 26945 fi 26946 fi 26947 26948 26949 if test "x$VS_ENV_CMD" != x; then 26950 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 26951 26952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26953 26954 # First separate the path from the arguments. This will split at the first 26955 # space. 26956 complete="$VS_ENV_CMD" 26957 path="${complete%% *}" 26958 tmp="$complete EOL" 26959 arguments="${tmp#* }" 26960 26961 # Input might be given as Windows format, start by converting to 26962 # unix format. 26963 new_path=`$CYGPATH -u "$path"` 26964 26965 # Now try to locate executable using which 26966 new_path=`$WHICH "$new_path" 2> /dev/null` 26967 # bat and cmd files are not always considered executable in cygwin causing which 26968 # to not find them 26969 if test "x$new_path" = x \ 26970 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26971 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26972 new_path=`$CYGPATH -u "$path"` 26973 fi 26974 if test "x$new_path" = x; then 26975 # Oops. Which didn't find the executable. 26976 # The splitting of arguments from the executable at a space might have been incorrect, 26977 # since paths with space are more likely in Windows. Give it another try with the whole 26978 # argument. 26979 path="$complete" 26980 arguments="EOL" 26981 new_path=`$CYGPATH -u "$path"` 26982 new_path=`$WHICH "$new_path" 2> /dev/null` 26983 # bat and cmd files are not always considered executable in cygwin causing which 26984 # to not find them 26985 if test "x$new_path" = x \ 26986 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26987 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26988 new_path=`$CYGPATH -u "$path"` 26989 fi 26990 if test "x$new_path" = x; then 26991 # It's still not found. Now this is an unrecoverable error. 26992 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 26993 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 26994 has_space=`$ECHO "$complete" | $GREP " "` 26995 if test "x$has_space" != x; then 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26997 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26998 fi 26999 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27000 fi 27001 fi 27002 27003 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27004 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27005 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27006 # "foo.exe" is OK but "foo" is an error. 27007 # 27008 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27009 # It is also a way to make sure we got the proper file name for the real test later on. 27010 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27011 if test "x$test_shortpath" = x; then 27012 # Short path failed, file does not exist as specified. 27013 # Try adding .exe or .cmd 27014 if test -f "${new_path}.exe"; then 27015 input_to_shortpath="${new_path}.exe" 27016 elif test -f "${new_path}.cmd"; then 27017 input_to_shortpath="${new_path}.cmd" 27018 else 27019 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 27020 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 27021 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27022 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27023 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27024 fi 27025 else 27026 input_to_shortpath="$new_path" 27027 fi 27028 27029 # Call helper function which possibly converts this using DOS-style short mode. 27030 # If so, the updated path is stored in $new_path. 27031 new_path="$input_to_shortpath" 27032 27033 input_path="$input_to_shortpath" 27034 # Check if we need to convert this using DOS-style short mode. If the path 27035 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27036 # take no chances and rewrite it. 27037 # Note: m4 eats our [], so we need to use [ and ] instead. 27038 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27039 if test "x$has_forbidden_chars" != x; then 27040 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27041 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27042 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27043 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27044 # Going to short mode and back again did indeed matter. Since short mode is 27045 # case insensitive, let's make it lowercase to improve readability. 27046 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27047 # Now convert it back to Unix-stile (cygpath) 27048 input_path=`$CYGPATH -u "$shortmode_path"` 27049 new_path="$input_path" 27050 fi 27051 fi 27052 27053 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27054 if test "x$test_cygdrive_prefix" = x; then 27055 # As a simple fix, exclude /usr/bin since it's not a real path. 27056 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27057 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27058 # a path prefixed by /cygdrive for fixpath to work. 27059 new_path="$CYGWIN_ROOT_PATH$input_path" 27060 fi 27061 fi 27062 27063 # remove trailing .exe if any 27064 new_path="${new_path/%.exe/}" 27065 27066 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27067 27068 # First separate the path from the arguments. This will split at the first 27069 # space. 27070 complete="$VS_ENV_CMD" 27071 path="${complete%% *}" 27072 tmp="$complete EOL" 27073 arguments="${tmp#* }" 27074 27075 # Input might be given as Windows format, start by converting to 27076 # unix format. 27077 new_path="$path" 27078 27079 windows_path="$new_path" 27080 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27081 unix_path=`$CYGPATH -u "$windows_path"` 27082 new_path="$unix_path" 27083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27084 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27085 new_path="$unix_path" 27086 fi 27087 27088 27089 # Now try to locate executable using which 27090 new_path=`$WHICH "$new_path" 2> /dev/null` 27091 27092 if test "x$new_path" = x; then 27093 # Oops. Which didn't find the executable. 27094 # The splitting of arguments from the executable at a space might have been incorrect, 27095 # since paths with space are more likely in Windows. Give it another try with the whole 27096 # argument. 27097 path="$complete" 27098 arguments="EOL" 27099 new_path="$path" 27100 27101 windows_path="$new_path" 27102 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27103 unix_path=`$CYGPATH -u "$windows_path"` 27104 new_path="$unix_path" 27105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27106 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27107 new_path="$unix_path" 27108 fi 27109 27110 27111 new_path=`$WHICH "$new_path" 2> /dev/null` 27112 27113 if test "x$new_path" = x; then 27114 # It's still not found. Now this is an unrecoverable error. 27115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 27116 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 27117 has_space=`$ECHO "$complete" | $GREP " "` 27118 if test "x$has_space" != x; then 27119 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27120 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27121 fi 27122 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 27123 fi 27124 fi 27125 27126 # Now new_path has a complete unix path to the binary 27127 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27128 # Keep paths in /bin as-is, but remove trailing .exe if any 27129 new_path="${new_path/%.exe/}" 27130 # Do not save /bin paths to all_fixpath_prefixes! 27131 else 27132 # Not in mixed or Windows style, start by that. 27133 new_path=`cmd //c echo $new_path` 27134 27135 input_path="$new_path" 27136 # Check if we need to convert this using DOS-style short mode. If the path 27137 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27138 # take no chances and rewrite it. 27139 # Note: m4 eats our [], so we need to use [ and ] instead. 27140 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27141 if test "x$has_forbidden_chars" != x; then 27142 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27143 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27144 fi 27145 27146 # Output is in $new_path 27147 27148 windows_path="$new_path" 27149 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27150 unix_path=`$CYGPATH -u "$windows_path"` 27151 new_path="$unix_path" 27152 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27153 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27154 new_path="$unix_path" 27155 fi 27156 27157 # remove trailing .exe if any 27158 new_path="${new_path/%.exe/}" 27159 27160 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27161 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27162 fi 27163 27164 else 27165 # We're on a posix platform. Hooray! :) 27166 # First separate the path from the arguments. This will split at the first 27167 # space. 27168 complete="$VS_ENV_CMD" 27169 path="${complete%% *}" 27170 tmp="$complete EOL" 27171 arguments="${tmp#* }" 27172 27173 # Cannot rely on the command "which" here since it doesn't always work. 27174 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27175 if test -z "$is_absolute_path"; then 27176 # Path to executable is not absolute. Find it. 27177 IFS_save="$IFS" 27178 IFS=: 27179 for p in $PATH; do 27180 if test -f "$p/$path" && test -x "$p/$path"; then 27181 new_path="$p/$path" 27182 break 27183 fi 27184 done 27185 IFS="$IFS_save" 27186 else 27187 # This is an absolute path, we can use it without further modifications. 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 fi 27324 27325 # autoconf magic only relies on PATH, so update it if tools dir is specified 27326 OLD_PATH="$PATH" 27327 27328 # For solaris we really need solaris tools, and not the GNU equivalent. 27329 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 27330 # so add that to path before starting to probe. 27331 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 27332 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 27333 PATH="/usr/ccs/bin:$PATH" 27334 fi 27335 27336 # Finally add TOOLS_DIR at the beginning, to allow --with-tools-dir to 27337 # override all other locations. 27338 if test "x$TOOLS_DIR" != x; then 27339 PATH=$TOOLS_DIR:$PATH 27340 fi 27341 27342 # If a devkit is found on the builddeps server, then prepend its path to the 27343 # PATH variable. If there are cross compilers available in the devkit, these 27344 # will be found by AC_PROG_CC et al. 27345 DEVKIT= 27346 27347 27348 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 27349 # Source the builddeps file again, to make sure it uses the latest variables! 27350 . $builddepsfile 27351 # Look for a target and build machine specific resource! 27352 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 27353 if test "x$resource" = x; then 27354 # Ok, lets instead look for a target specific resource 27355 eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}} 27356 fi 27357 if test "x$resource" = x; then 27358 # Ok, lets instead look for a build specific resource 27359 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 27360 fi 27361 if test "x$resource" = x; then 27362 # Ok, lets instead look for a generic resource 27363 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 27364 resource=${builddep_devkit} 27365 fi 27366 if test "x$resource" != x; then 27367 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 27368 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 27369 # If the resource in the builddeps.conf file is an existing directory, 27370 # for example /java/linux/cups 27371 if test -d ${resource}; then 27372 depdir=${resource} 27373 else 27374 27375 # devkit is for example mymodule 27376 # $resource is for example libs/general/libmymod_1_2_3.zip 27377 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 27378 # $with_builddeps_dir is for example /localhome/builddeps 27379 # depdir is the name of the variable into which we store the depdir, eg MYMOD 27380 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 27381 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 27382 filename=`basename $resource` 27383 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 27384 filebase=${filename%%.*} 27385 extension=${filename#*.} 27386 installdir=$with_builddeps_dir/$filebase 27387 if test ! -f $installdir/$filename.unpacked; then 27388 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 27389 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 27390 if test ! -d $installdir; then 27391 mkdir -p $installdir 27392 fi 27393 if test ! -d $installdir; then 27394 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 27395 fi 27396 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 27397 touch $tmpfile 27398 if test ! -f $tmpfile; then 27399 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 27400 fi 27401 27402 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 27403 # $tmpfile is the local file name for the downloaded file. 27404 VALID_TOOL=no 27405 if test "x$BDEPS_FTP" = xwget; then 27406 VALID_TOOL=yes 27407 wget -O $tmpfile $with_builddeps_server/$resource 27408 fi 27409 if test "x$BDEPS_FTP" = xlftp; then 27410 VALID_TOOL=yes 27411 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 27412 fi 27413 if test "x$BDEPS_FTP" = xftp; then 27414 VALID_TOOL=yes 27415 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 27416 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 27417 FTPUSERPWD=${FTPSERVER%%@*} 27418 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 27419 FTPUSER=${userpwd%%:*} 27420 FTPPWD=${userpwd#*@} 27421 FTPSERVER=${FTPSERVER#*@} 27422 else 27423 FTPUSER=ftp 27424 FTPPWD=ftp 27425 fi 27426 # the "pass" command does not work on some 27427 # ftp clients (read ftp.exe) but if it works, 27428 # passive mode is better! 27429 ( \ 27430 echo "user $FTPUSER $FTPPWD" ; \ 27431 echo "pass" ; \ 27432 echo "bin" ; \ 27433 echo "get $FTPPATH $tmpfile" ; \ 27434 ) | ftp -in $FTPSERVER 27435 fi 27436 if test "x$VALID_TOOL" != xyes; then 27437 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 27438 fi 27439 27440 mv $tmpfile $installdir/$filename 27441 if test ! -s $installdir/$filename; then 27442 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 27443 fi 27444 case "$extension" in 27445 zip) echo "Unzipping $installdir/$filename..." 27446 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 27447 ;; 27448 tar.gz) echo "Untaring $installdir/$filename..." 27449 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 27450 ;; 27451 tgz) echo "Untaring $installdir/$filename..." 27452 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 27453 ;; 27454 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 27455 ;; 27456 esac 27457 fi 27458 if test -f $installdir/$filename.unpacked; then 27459 depdir=$installdir 27460 fi 27461 27462 fi 27463 # Source the builddeps file again, because in the previous command, the depdir 27464 # was updated to point at the current build dependency install directory. 27465 . $builddepsfile 27466 # Now extract variables from the builddeps.conf files. 27467 theroot=${builddep_devkit_ROOT} 27468 thecflags=${builddep_devkit_CFLAGS} 27469 thelibs=${builddep_devkit_LIBS} 27470 if test "x$depdir" = x; then 27471 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 27472 fi 27473 DEVKIT=$depdir 27474 if test "x$theroot" != x; then 27475 DEVKIT="$theroot" 27476 fi 27477 if test "x$thecflags" != x; then 27478 DEVKIT_CFLAGS="$thecflags" 27479 fi 27480 if test "x$thelibs" != x; then 27481 DEVKIT_LIBS="$thelibs" 27482 fi 27483 27484 # Found devkit 27485 PATH="$DEVKIT/bin:$PATH" 27486 SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root" 27487 if test "x$x_includes" = "xNONE"; then 27488 x_includes="$SYS_ROOT/usr/include/X11" 27489 fi 27490 if test "x$x_libraries" = "xNONE"; then 27491 x_libraries="$SYS_ROOT/usr/lib" 27492 fi 27493 27494 27495 fi 27496 27497 fi 27498 27499 27500 27501 # 27502 # Setup the compilers (CC and CXX) 27503 # 27504 27505 COMPILER_NAME=C 27506 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 27507 27508 if test "x$CC" != x; then 27509 # User has supplied compiler name already, always let that override. 27510 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 27511 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 27512 if test "x`basename $CC`" = "x$CC"; then 27513 # A command without a complete path is provided, search $PATH. 27514 27515 for ac_prog in $CC 27516 do 27517 # Extract the first word of "$ac_prog", so it can be a program name with args. 27518 set dummy $ac_prog; ac_word=$2 27519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27520 $as_echo_n "checking for $ac_word... " >&6; } 27521 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27522 $as_echo_n "(cached) " >&6 27523 else 27524 case $POTENTIAL_CC in 27525 [\\/]* | ?:[\\/]*) 27526 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27527 ;; 27528 *) 27529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27530 for as_dir in $PATH 27531 do 27532 IFS=$as_save_IFS 27533 test -z "$as_dir" && as_dir=. 27534 for ac_exec_ext in '' $ac_executable_extensions; do 27535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27536 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27538 break 2 27539 fi 27540 done 27541 done 27542 IFS=$as_save_IFS 27543 27544 ;; 27545 esac 27546 fi 27547 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27548 if test -n "$POTENTIAL_CC"; then 27549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27550 $as_echo "$POTENTIAL_CC" >&6; } 27551 else 27552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27553 $as_echo "no" >&6; } 27554 fi 27555 27556 27557 test -n "$POTENTIAL_CC" && break 27558 done 27559 27560 if test "x$POTENTIAL_CC" != x; then 27561 CC=$POTENTIAL_CC 27562 else 27563 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 27564 fi 27565 else 27566 # Otherwise it might already be a complete path 27567 if test ! -x "$CC"; then 27568 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 27569 fi 27570 fi 27571 else 27572 # No user supplied value. Locate compiler ourselves. 27573 27574 # If we are cross compiling, assume cross compilation tools follows the 27575 # cross compilation standard where they are prefixed with the autoconf 27576 # standard name for the target. For example the binary 27577 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27578 # If we are not cross compiling, then the default compiler name will be 27579 # used. 27580 27581 CC= 27582 # If TOOLS_DIR is set, check for all compiler names in there first 27583 # before checking the rest of the PATH. 27584 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27585 # step, this should not be necessary. 27586 if test -n "$TOOLS_DIR"; then 27587 PATH_save="$PATH" 27588 PATH="$TOOLS_DIR" 27589 for ac_prog in $SEARCH_LIST 27590 do 27591 # Extract the first word of "$ac_prog", so it can be a program name with args. 27592 set dummy $ac_prog; ac_word=$2 27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27594 $as_echo_n "checking for $ac_word... " >&6; } 27595 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then : 27596 $as_echo_n "(cached) " >&6 27597 else 27598 case $TOOLS_DIR_CC in 27599 [\\/]* | ?:[\\/]*) 27600 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path. 27601 ;; 27602 *) 27603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27604 for as_dir in $PATH 27605 do 27606 IFS=$as_save_IFS 27607 test -z "$as_dir" && as_dir=. 27608 for ac_exec_ext in '' $ac_executable_extensions; do 27609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27610 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext" 27611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27612 break 2 27613 fi 27614 done 27615 done 27616 IFS=$as_save_IFS 27617 27618 ;; 27619 esac 27620 fi 27621 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC 27622 if test -n "$TOOLS_DIR_CC"; then 27623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5 27624 $as_echo "$TOOLS_DIR_CC" >&6; } 27625 else 27626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27627 $as_echo "no" >&6; } 27628 fi 27629 27630 27631 test -n "$TOOLS_DIR_CC" && break 27632 done 27633 27634 CC=$TOOLS_DIR_CC 27635 PATH="$PATH_save" 27636 fi 27637 27638 # AC_PATH_PROGS can't be run multiple times with the same variable, 27639 # so create a new name for this run. 27640 if test "x$CC" = x; then 27641 for ac_prog in $SEARCH_LIST 27642 do 27643 # Extract the first word of "$ac_prog", so it can be a program name with args. 27644 set dummy $ac_prog; ac_word=$2 27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27646 $as_echo_n "checking for $ac_word... " >&6; } 27647 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 27648 $as_echo_n "(cached) " >&6 27649 else 27650 case $POTENTIAL_CC in 27651 [\\/]* | ?:[\\/]*) 27652 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 27653 ;; 27654 *) 27655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27656 for as_dir in $PATH 27657 do 27658 IFS=$as_save_IFS 27659 test -z "$as_dir" && as_dir=. 27660 for ac_exec_ext in '' $ac_executable_extensions; do 27661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27662 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 27663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27664 break 2 27665 fi 27666 done 27667 done 27668 IFS=$as_save_IFS 27669 27670 ;; 27671 esac 27672 fi 27673 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 27674 if test -n "$POTENTIAL_CC"; then 27675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 27676 $as_echo "$POTENTIAL_CC" >&6; } 27677 else 27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27679 $as_echo "no" >&6; } 27680 fi 27681 27682 27683 test -n "$POTENTIAL_CC" && break 27684 done 27685 27686 CC=$POTENTIAL_CC 27687 fi 27688 27689 if test "x$CC" = x; then 27690 27691 # Print a helpful message on how to acquire the necessary build dependency. 27692 # devkit is the help tag: freetype, cups, pulse, alsa etc 27693 MISSING_DEPENDENCY=devkit 27694 27695 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27696 cygwin_help $MISSING_DEPENDENCY 27697 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27698 msys_help $MISSING_DEPENDENCY 27699 else 27700 PKGHANDLER_COMMAND= 27701 27702 case $PKGHANDLER in 27703 apt-get) 27704 apt_help $MISSING_DEPENDENCY ;; 27705 yum) 27706 yum_help $MISSING_DEPENDENCY ;; 27707 port) 27708 port_help $MISSING_DEPENDENCY ;; 27709 pkgutil) 27710 pkgutil_help $MISSING_DEPENDENCY ;; 27711 pkgadd) 27712 pkgadd_help $MISSING_DEPENDENCY ;; 27713 esac 27714 27715 if test "x$PKGHANDLER_COMMAND" != x; then 27716 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 27717 fi 27718 fi 27719 27720 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 27721 fi 27722 fi 27723 27724 # Now we have a compiler binary in CC. Make sure it's okay. 27725 27726 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27727 27728 # First separate the path from the arguments. This will split at the first 27729 # space. 27730 complete="$CC" 27731 path="${complete%% *}" 27732 tmp="$complete EOL" 27733 arguments="${tmp#* }" 27734 27735 # Input might be given as Windows format, start by converting to 27736 # unix format. 27737 new_path=`$CYGPATH -u "$path"` 27738 27739 # Now try to locate executable using which 27740 new_path=`$WHICH "$new_path" 2> /dev/null` 27741 # bat and cmd files are not always considered executable in cygwin causing which 27742 # to not find them 27743 if test "x$new_path" = x \ 27744 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27745 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27746 new_path=`$CYGPATH -u "$path"` 27747 fi 27748 if test "x$new_path" = x; then 27749 # Oops. Which didn't find the executable. 27750 # The splitting of arguments from the executable at a space might have been incorrect, 27751 # since paths with space are more likely in Windows. Give it another try with the whole 27752 # argument. 27753 path="$complete" 27754 arguments="EOL" 27755 new_path=`$CYGPATH -u "$path"` 27756 new_path=`$WHICH "$new_path" 2> /dev/null` 27757 # bat and cmd files are not always considered executable in cygwin causing which 27758 # to not find them 27759 if test "x$new_path" = x \ 27760 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 27761 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 27762 new_path=`$CYGPATH -u "$path"` 27763 fi 27764 if test "x$new_path" = x; then 27765 # It's still not found. Now this is an unrecoverable error. 27766 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27767 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27768 has_space=`$ECHO "$complete" | $GREP " "` 27769 if test "x$has_space" != x; then 27770 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27771 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27772 fi 27773 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27774 fi 27775 fi 27776 27777 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 27778 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 27779 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 27780 # "foo.exe" is OK but "foo" is an error. 27781 # 27782 # This test is therefore slightly more accurate than "test -f" to check for file presence. 27783 # It is also a way to make sure we got the proper file name for the real test later on. 27784 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 27785 if test "x$test_shortpath" = x; then 27786 # Short path failed, file does not exist as specified. 27787 # Try adding .exe or .cmd 27788 if test -f "${new_path}.exe"; then 27789 input_to_shortpath="${new_path}.exe" 27790 elif test -f "${new_path}.cmd"; then 27791 input_to_shortpath="${new_path}.cmd" 27792 else 27793 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 27794 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 27795 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 27796 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 27797 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27798 fi 27799 else 27800 input_to_shortpath="$new_path" 27801 fi 27802 27803 # Call helper function which possibly converts this using DOS-style short mode. 27804 # If so, the updated path is stored in $new_path. 27805 new_path="$input_to_shortpath" 27806 27807 input_path="$input_to_shortpath" 27808 # Check if we need to convert this using DOS-style short mode. If the path 27809 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27810 # take no chances and rewrite it. 27811 # Note: m4 eats our [], so we need to use [ and ] instead. 27812 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 27813 if test "x$has_forbidden_chars" != x; then 27814 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27815 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 27816 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 27817 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 27818 # Going to short mode and back again did indeed matter. Since short mode is 27819 # case insensitive, let's make it lowercase to improve readability. 27820 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27821 # Now convert it back to Unix-stile (cygpath) 27822 input_path=`$CYGPATH -u "$shortmode_path"` 27823 new_path="$input_path" 27824 fi 27825 fi 27826 27827 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 27828 if test "x$test_cygdrive_prefix" = x; then 27829 # As a simple fix, exclude /usr/bin since it's not a real path. 27830 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 27831 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 27832 # a path prefixed by /cygdrive for fixpath to work. 27833 new_path="$CYGWIN_ROOT_PATH$input_path" 27834 fi 27835 fi 27836 27837 # remove trailing .exe if any 27838 new_path="${new_path/%.exe/}" 27839 27840 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27841 27842 # First separate the path from the arguments. This will split at the first 27843 # space. 27844 complete="$CC" 27845 path="${complete%% *}" 27846 tmp="$complete EOL" 27847 arguments="${tmp#* }" 27848 27849 # Input might be given as Windows format, start by converting to 27850 # unix format. 27851 new_path="$path" 27852 27853 windows_path="$new_path" 27854 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27855 unix_path=`$CYGPATH -u "$windows_path"` 27856 new_path="$unix_path" 27857 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27858 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27859 new_path="$unix_path" 27860 fi 27861 27862 27863 # Now try to locate executable using which 27864 new_path=`$WHICH "$new_path" 2> /dev/null` 27865 27866 if test "x$new_path" = x; then 27867 # Oops. Which didn't find the executable. 27868 # The splitting of arguments from the executable at a space might have been incorrect, 27869 # since paths with space are more likely in Windows. Give it another try with the whole 27870 # argument. 27871 path="$complete" 27872 arguments="EOL" 27873 new_path="$path" 27874 27875 windows_path="$new_path" 27876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27877 unix_path=`$CYGPATH -u "$windows_path"` 27878 new_path="$unix_path" 27879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27880 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27881 new_path="$unix_path" 27882 fi 27883 27884 27885 new_path=`$WHICH "$new_path" 2> /dev/null` 27886 27887 if test "x$new_path" = x; then 27888 # It's still not found. Now this is an unrecoverable error. 27889 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27890 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27891 has_space=`$ECHO "$complete" | $GREP " "` 27892 if test "x$has_space" != x; then 27893 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 27894 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 27895 fi 27896 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27897 fi 27898 fi 27899 27900 # Now new_path has a complete unix path to the binary 27901 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 27902 # Keep paths in /bin as-is, but remove trailing .exe if any 27903 new_path="${new_path/%.exe/}" 27904 # Do not save /bin paths to all_fixpath_prefixes! 27905 else 27906 # Not in mixed or Windows style, start by that. 27907 new_path=`cmd //c echo $new_path` 27908 27909 input_path="$new_path" 27910 # Check if we need to convert this using DOS-style short mode. If the path 27911 # contains just simple characters, use it. Otherwise (spaces, weird characters), 27912 # take no chances and rewrite it. 27913 # Note: m4 eats our [], so we need to use [ and ] instead. 27914 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 27915 if test "x$has_forbidden_chars" != x; then 27916 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 27917 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 27918 fi 27919 27920 # Output is in $new_path 27921 27922 windows_path="$new_path" 27923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27924 unix_path=`$CYGPATH -u "$windows_path"` 27925 new_path="$unix_path" 27926 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27927 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 27928 new_path="$unix_path" 27929 fi 27930 27931 # remove trailing .exe if any 27932 new_path="${new_path/%.exe/}" 27933 27934 # Save the first 10 bytes of this path to the storage, so fixpath can work. 27935 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 27936 fi 27937 27938 else 27939 # We're on a posix platform. Hooray! :) 27940 # First separate the path from the arguments. This will split at the first 27941 # space. 27942 complete="$CC" 27943 path="${complete%% *}" 27944 tmp="$complete EOL" 27945 arguments="${tmp#* }" 27946 27947 # Cannot rely on the command "which" here since it doesn't always work. 27948 is_absolute_path=`$ECHO "$path" | $GREP ^/` 27949 if test -z "$is_absolute_path"; then 27950 # Path to executable is not absolute. Find it. 27951 IFS_save="$IFS" 27952 IFS=: 27953 for p in $PATH; do 27954 if test -f "$p/$path" && test -x "$p/$path"; then 27955 new_path="$p/$path" 27956 break 27957 fi 27958 done 27959 IFS="$IFS_save" 27960 else 27961 # This is an absolute path, we can use it without further modifications. 27962 new_path="$path" 27963 fi 27964 27965 if test "x$new_path" = x; then 27966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 27967 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 27968 has_space=`$ECHO "$complete" | $GREP " "` 27969 if test "x$has_space" != x; then 27970 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27971 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27972 fi 27973 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 27974 fi 27975 fi 27976 27977 # Now join together the path and the arguments once again 27978 if test "x$arguments" != xEOL; then 27979 new_complete="$new_path ${arguments% *}" 27980 else 27981 new_complete="$new_path" 27982 fi 27983 27984 if test "x$complete" != "x$new_complete"; then 27985 CC="$new_complete" 27986 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 27987 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 27988 fi 27989 27990 TEST_COMPILER="$CC" 27991 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 27992 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 27993 if test "x$OPENJDK_BUILD_OS" != xaix; then 27994 # FIXME: This test should not be needed anymore; we don't do that for any platform. 27995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 27996 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 27997 27998 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27999 # Follow a chain of symbolic links. Use readlink 28000 # where it exists, else fall back to horribly 28001 # complicated shell code. 28002 if test "x$READLINK_TESTED" != yes; then 28003 # On MacOSX there is a readlink tool with a different 28004 # purpose than the GNU readlink tool. Check the found readlink. 28005 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28006 if test "x$ISGNU" = x; then 28007 # A readlink that we do not know how to use. 28008 # Are there other non-GNU readlinks out there? 28009 READLINK_TESTED=yes 28010 READLINK= 28011 fi 28012 fi 28013 28014 if test "x$READLINK" != x; then 28015 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28016 else 28017 # Save the current directory for restoring afterwards 28018 STARTDIR=$PWD 28019 COUNTER=0 28020 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28021 sym_link_file=`$BASENAME $TEST_COMPILER` 28022 cd $sym_link_dir 28023 # Use -P flag to resolve symlinks in directories. 28024 cd `$THEPWDCMD -P` 28025 sym_link_dir=`$THEPWDCMD -P` 28026 # Resolve file symlinks 28027 while test $COUNTER -lt 20; do 28028 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28029 if test "x$ISLINK" == x; then 28030 # This is not a symbolic link! We are done! 28031 break 28032 fi 28033 # Again resolve directory symlinks since the target of the just found 28034 # link could be in a different directory 28035 cd `$DIRNAME $ISLINK` 28036 sym_link_dir=`$THEPWDCMD -P` 28037 sym_link_file=`$BASENAME $ISLINK` 28038 let COUNTER=COUNTER+1 28039 done 28040 cd $STARTDIR 28041 TEST_COMPILER=$sym_link_dir/$sym_link_file 28042 fi 28043 fi 28044 28045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28046 $as_echo "$TEST_COMPILER" >&6; } 28047 fi 28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 28049 $as_echo_n "checking if CC is disguised ccache... " >&6; } 28050 28051 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28052 if test "x$COMPILER_BASENAME" = "xccache"; then 28053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28054 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28055 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28056 # We want to control ccache invocation ourselves, so ignore this cc and try 28057 # searching again. 28058 28059 # Remove the path to the fake ccache cc from the PATH 28060 RETRY_COMPILER_SAVED_PATH="$PATH" 28061 COMPILER_DIRNAME=`$DIRNAME $CC` 28062 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28063 28064 # Try again looking for our compiler 28065 if test -n "$ac_tool_prefix"; then 28066 for ac_prog in $TOOLCHAIN_CC_BINARY 28067 do 28068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28071 $as_echo_n "checking for $ac_word... " >&6; } 28072 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 28073 $as_echo_n "(cached) " >&6 28074 else 28075 if test -n "$PROPER_COMPILER_CC"; then 28076 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 28077 else 28078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28079 for as_dir in $PATH 28080 do 28081 IFS=$as_save_IFS 28082 test -z "$as_dir" && as_dir=. 28083 for ac_exec_ext in '' $ac_executable_extensions; do 28084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28085 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 28086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28087 break 2 28088 fi 28089 done 28090 done 28091 IFS=$as_save_IFS 28092 28093 fi 28094 fi 28095 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 28096 if test -n "$PROPER_COMPILER_CC"; then 28097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28098 $as_echo "$PROPER_COMPILER_CC" >&6; } 28099 else 28100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28101 $as_echo "no" >&6; } 28102 fi 28103 28104 28105 test -n "$PROPER_COMPILER_CC" && break 28106 done 28107 fi 28108 if test -z "$PROPER_COMPILER_CC"; then 28109 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 28110 for ac_prog in $TOOLCHAIN_CC_BINARY 28111 do 28112 # Extract the first word of "$ac_prog", so it can be a program name with args. 28113 set dummy $ac_prog; ac_word=$2 28114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28115 $as_echo_n "checking for $ac_word... " >&6; } 28116 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 28117 $as_echo_n "(cached) " >&6 28118 else 28119 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28120 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 28121 else 28122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28123 for as_dir in $PATH 28124 do 28125 IFS=$as_save_IFS 28126 test -z "$as_dir" && as_dir=. 28127 for ac_exec_ext in '' $ac_executable_extensions; do 28128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28129 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 28130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28131 break 2 28132 fi 28133 done 28134 done 28135 IFS=$as_save_IFS 28136 28137 fi 28138 fi 28139 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 28140 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 28141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 28142 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 28143 else 28144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28145 $as_echo "no" >&6; } 28146 fi 28147 28148 28149 test -n "$ac_ct_PROPER_COMPILER_CC" && break 28150 done 28151 28152 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 28153 PROPER_COMPILER_CC="" 28154 else 28155 case $cross_compiling:$ac_tool_warned in 28156 yes:) 28157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28159 ac_tool_warned=yes ;; 28160 esac 28161 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 28162 fi 28163 fi 28164 28165 28166 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28167 28168 # First separate the path from the arguments. This will split at the first 28169 # space. 28170 complete="$PROPER_COMPILER_CC" 28171 path="${complete%% *}" 28172 tmp="$complete EOL" 28173 arguments="${tmp#* }" 28174 28175 # Input might be given as Windows format, start by converting to 28176 # unix format. 28177 new_path=`$CYGPATH -u "$path"` 28178 28179 # Now try to locate executable using which 28180 new_path=`$WHICH "$new_path" 2> /dev/null` 28181 # bat and cmd files are not always considered executable in cygwin causing which 28182 # to not find them 28183 if test "x$new_path" = x \ 28184 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28185 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28186 new_path=`$CYGPATH -u "$path"` 28187 fi 28188 if test "x$new_path" = x; then 28189 # Oops. Which didn't find the executable. 28190 # The splitting of arguments from the executable at a space might have been incorrect, 28191 # since paths with space are more likely in Windows. Give it another try with the whole 28192 # argument. 28193 path="$complete" 28194 arguments="EOL" 28195 new_path=`$CYGPATH -u "$path"` 28196 new_path=`$WHICH "$new_path" 2> /dev/null` 28197 # bat and cmd files are not always considered executable in cygwin causing which 28198 # to not find them 28199 if test "x$new_path" = x \ 28200 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28201 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28202 new_path=`$CYGPATH -u "$path"` 28203 fi 28204 if test "x$new_path" = x; then 28205 # It's still not found. Now this is an unrecoverable error. 28206 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28207 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28208 has_space=`$ECHO "$complete" | $GREP " "` 28209 if test "x$has_space" != x; then 28210 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28211 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28212 fi 28213 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28214 fi 28215 fi 28216 28217 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28218 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28219 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28220 # "foo.exe" is OK but "foo" is an error. 28221 # 28222 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28223 # It is also a way to make sure we got the proper file name for the real test later on. 28224 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28225 if test "x$test_shortpath" = x; then 28226 # Short path failed, file does not exist as specified. 28227 # Try adding .exe or .cmd 28228 if test -f "${new_path}.exe"; then 28229 input_to_shortpath="${new_path}.exe" 28230 elif test -f "${new_path}.cmd"; then 28231 input_to_shortpath="${new_path}.cmd" 28232 else 28233 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 28234 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 28235 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28236 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28237 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28238 fi 28239 else 28240 input_to_shortpath="$new_path" 28241 fi 28242 28243 # Call helper function which possibly converts this using DOS-style short mode. 28244 # If so, the updated path is stored in $new_path. 28245 new_path="$input_to_shortpath" 28246 28247 input_path="$input_to_shortpath" 28248 # Check if we need to convert this using DOS-style short mode. If the path 28249 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28250 # take no chances and rewrite it. 28251 # Note: m4 eats our [], so we need to use [ and ] instead. 28252 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28253 if test "x$has_forbidden_chars" != x; then 28254 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28255 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28256 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28257 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28258 # Going to short mode and back again did indeed matter. Since short mode is 28259 # case insensitive, let's make it lowercase to improve readability. 28260 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28261 # Now convert it back to Unix-stile (cygpath) 28262 input_path=`$CYGPATH -u "$shortmode_path"` 28263 new_path="$input_path" 28264 fi 28265 fi 28266 28267 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28268 if test "x$test_cygdrive_prefix" = x; then 28269 # As a simple fix, exclude /usr/bin since it's not a real path. 28270 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28271 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28272 # a path prefixed by /cygdrive for fixpath to work. 28273 new_path="$CYGWIN_ROOT_PATH$input_path" 28274 fi 28275 fi 28276 28277 # remove trailing .exe if any 28278 new_path="${new_path/%.exe/}" 28279 28280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28281 28282 # First separate the path from the arguments. This will split at the first 28283 # space. 28284 complete="$PROPER_COMPILER_CC" 28285 path="${complete%% *}" 28286 tmp="$complete EOL" 28287 arguments="${tmp#* }" 28288 28289 # Input might be given as Windows format, start by converting to 28290 # unix format. 28291 new_path="$path" 28292 28293 windows_path="$new_path" 28294 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28295 unix_path=`$CYGPATH -u "$windows_path"` 28296 new_path="$unix_path" 28297 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28298 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28299 new_path="$unix_path" 28300 fi 28301 28302 28303 # Now try to locate executable using which 28304 new_path=`$WHICH "$new_path" 2> /dev/null` 28305 28306 if test "x$new_path" = x; then 28307 # Oops. Which didn't find the executable. 28308 # The splitting of arguments from the executable at a space might have been incorrect, 28309 # since paths with space are more likely in Windows. Give it another try with the whole 28310 # argument. 28311 path="$complete" 28312 arguments="EOL" 28313 new_path="$path" 28314 28315 windows_path="$new_path" 28316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28317 unix_path=`$CYGPATH -u "$windows_path"` 28318 new_path="$unix_path" 28319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28321 new_path="$unix_path" 28322 fi 28323 28324 28325 new_path=`$WHICH "$new_path" 2> /dev/null` 28326 28327 if test "x$new_path" = x; then 28328 # It's still not found. Now this is an unrecoverable error. 28329 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28330 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28331 has_space=`$ECHO "$complete" | $GREP " "` 28332 if test "x$has_space" != x; then 28333 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28334 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28335 fi 28336 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28337 fi 28338 fi 28339 28340 # Now new_path has a complete unix path to the binary 28341 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28342 # Keep paths in /bin as-is, but remove trailing .exe if any 28343 new_path="${new_path/%.exe/}" 28344 # Do not save /bin paths to all_fixpath_prefixes! 28345 else 28346 # Not in mixed or Windows style, start by that. 28347 new_path=`cmd //c echo $new_path` 28348 28349 input_path="$new_path" 28350 # Check if we need to convert this using DOS-style short mode. If the path 28351 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28352 # take no chances and rewrite it. 28353 # Note: m4 eats our [], so we need to use [ and ] instead. 28354 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28355 if test "x$has_forbidden_chars" != x; then 28356 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28357 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28358 fi 28359 28360 # Output is in $new_path 28361 28362 windows_path="$new_path" 28363 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28364 unix_path=`$CYGPATH -u "$windows_path"` 28365 new_path="$unix_path" 28366 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28367 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28368 new_path="$unix_path" 28369 fi 28370 28371 # remove trailing .exe if any 28372 new_path="${new_path/%.exe/}" 28373 28374 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28375 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28376 fi 28377 28378 else 28379 # We're on a posix platform. Hooray! :) 28380 # First separate the path from the arguments. This will split at the first 28381 # space. 28382 complete="$PROPER_COMPILER_CC" 28383 path="${complete%% *}" 28384 tmp="$complete EOL" 28385 arguments="${tmp#* }" 28386 28387 # Cannot rely on the command "which" here since it doesn't always work. 28388 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28389 if test -z "$is_absolute_path"; then 28390 # Path to executable is not absolute. Find it. 28391 IFS_save="$IFS" 28392 IFS=: 28393 for p in $PATH; do 28394 if test -f "$p/$path" && test -x "$p/$path"; then 28395 new_path="$p/$path" 28396 break 28397 fi 28398 done 28399 IFS="$IFS_save" 28400 else 28401 # This is an absolute path, we can use it without further modifications. 28402 new_path="$path" 28403 fi 28404 28405 if test "x$new_path" = x; then 28406 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 28407 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 28408 has_space=`$ECHO "$complete" | $GREP " "` 28409 if test "x$has_space" != x; then 28410 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28411 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28412 fi 28413 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 28414 fi 28415 fi 28416 28417 # Now join together the path and the arguments once again 28418 if test "x$arguments" != xEOL; then 28419 new_complete="$new_path ${arguments% *}" 28420 else 28421 new_complete="$new_path" 28422 fi 28423 28424 if test "x$complete" != "x$new_complete"; then 28425 PROPER_COMPILER_CC="$new_complete" 28426 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 28427 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 28428 fi 28429 28430 PATH="$RETRY_COMPILER_SAVED_PATH" 28431 28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 28433 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 28434 28435 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28436 # Follow a chain of symbolic links. Use readlink 28437 # where it exists, else fall back to horribly 28438 # complicated shell code. 28439 if test "x$READLINK_TESTED" != yes; then 28440 # On MacOSX there is a readlink tool with a different 28441 # purpose than the GNU readlink tool. Check the found readlink. 28442 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28443 if test "x$ISGNU" = x; then 28444 # A readlink that we do not know how to use. 28445 # Are there other non-GNU readlinks out there? 28446 READLINK_TESTED=yes 28447 READLINK= 28448 fi 28449 fi 28450 28451 if test "x$READLINK" != x; then 28452 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 28453 else 28454 # Save the current directory for restoring afterwards 28455 STARTDIR=$PWD 28456 COUNTER=0 28457 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 28458 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 28459 cd $sym_link_dir 28460 # Use -P flag to resolve symlinks in directories. 28461 cd `$THEPWDCMD -P` 28462 sym_link_dir=`$THEPWDCMD -P` 28463 # Resolve file symlinks 28464 while test $COUNTER -lt 20; do 28465 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28466 if test "x$ISLINK" == x; then 28467 # This is not a symbolic link! We are done! 28468 break 28469 fi 28470 # Again resolve directory symlinks since the target of the just found 28471 # link could be in a different directory 28472 cd `$DIRNAME $ISLINK` 28473 sym_link_dir=`$THEPWDCMD -P` 28474 sym_link_file=`$BASENAME $ISLINK` 28475 let COUNTER=COUNTER+1 28476 done 28477 cd $STARTDIR 28478 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 28479 fi 28480 fi 28481 28482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 28483 $as_echo "$PROPER_COMPILER_CC" >&6; } 28484 CC="$PROPER_COMPILER_CC" 28485 else 28486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 28487 $as_echo "no, keeping CC" >&6; } 28488 fi 28489 28490 28491 COMPILER=$CC 28492 COMPILER_NAME=$COMPILER_NAME 28493 28494 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28495 # cc -V output typically looks like 28496 # cc: Sun C 5.12 Linux_i386 2011/11/16 28497 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28498 # Check that this is likely to be the Solaris Studio cc. 28499 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28500 if test $? -ne 0; then 28501 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28502 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28503 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28504 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28505 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28506 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28507 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28508 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28509 fi 28510 # Remove usage instructions (if present), and 28511 # collapse compiler output into a single line 28512 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28513 $SED -e 's/ *[Uu]sage:.*//'` 28514 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28515 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28516 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28517 # xlc -qversion output typically looks like 28518 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28519 # Version: 11.01.0000.0015 28520 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28521 # Check that this is likely to be the IBM XL C compiler. 28522 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28523 if test $? -ne 0; then 28524 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28525 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28526 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28527 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28528 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28529 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28530 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28531 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28532 fi 28533 # Collapse compiler output into a single line 28534 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28535 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28536 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28537 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28538 # There is no specific version flag, but all output starts with a version string. 28539 # First line typically looks something like: 28540 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28541 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28542 # Check that this is likely to be Microsoft CL.EXE. 28543 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28544 if test $? -ne 0; then 28545 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28546 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28547 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28548 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28549 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28550 fi 28551 # Collapse compiler output into a single line 28552 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28553 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28554 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28555 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28556 # gcc --version output typically looks like 28557 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28558 # Copyright (C) 2013 Free Software Foundation, Inc. 28559 # This is free software; see the source for copying conditions. There is NO 28560 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28561 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28562 # Check that this is likely to be GCC. 28563 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28564 if test $? -ne 0; then 28565 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28566 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28567 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28568 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28569 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28570 fi 28571 # Remove Copyright and legalese from version string, and 28572 # collapse into a single line 28573 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28574 $SED -e 's/ *Copyright .*//'` 28575 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28576 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28577 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28578 # clang --version output typically looks like 28579 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28580 # clang version 3.3 (tags/RELEASE_33/final) 28581 # or 28582 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28583 # Target: x86_64-pc-linux-gnu 28584 # Thread model: posix 28585 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28586 # Check that this is likely to be clang 28587 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28588 if test $? -ne 0; then 28589 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 28590 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28591 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28592 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28593 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28594 fi 28595 # Collapse compiler output into a single line 28596 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28597 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28598 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28599 else 28600 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28601 fi 28602 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28603 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28604 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28605 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 28606 28607 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28608 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28609 28610 28611 # Now that we have resolved CC ourself, let autoconf have its go at it 28612 ac_ext=c 28613 ac_cpp='$CPP $CPPFLAGS' 28614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28616 ac_compiler_gnu=$ac_cv_c_compiler_gnu 28617 if test -n "$ac_tool_prefix"; then 28618 for ac_prog in $CC 28619 do 28620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28623 $as_echo_n "checking for $ac_word... " >&6; } 28624 if ${ac_cv_prog_CC+:} false; then : 28625 $as_echo_n "(cached) " >&6 28626 else 28627 if test -n "$CC"; then 28628 ac_cv_prog_CC="$CC" # Let the user override the test. 28629 else 28630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28631 for as_dir in $PATH 28632 do 28633 IFS=$as_save_IFS 28634 test -z "$as_dir" && as_dir=. 28635 for ac_exec_ext in '' $ac_executable_extensions; do 28636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 28638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28639 break 2 28640 fi 28641 done 28642 done 28643 IFS=$as_save_IFS 28644 28645 fi 28646 fi 28647 CC=$ac_cv_prog_CC 28648 if test -n "$CC"; then 28649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 28650 $as_echo "$CC" >&6; } 28651 else 28652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28653 $as_echo "no" >&6; } 28654 fi 28655 28656 28657 test -n "$CC" && break 28658 done 28659 fi 28660 if test -z "$CC"; then 28661 ac_ct_CC=$CC 28662 for ac_prog in $CC 28663 do 28664 # Extract the first word of "$ac_prog", so it can be a program name with args. 28665 set dummy $ac_prog; ac_word=$2 28666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28667 $as_echo_n "checking for $ac_word... " >&6; } 28668 if ${ac_cv_prog_ac_ct_CC+:} false; then : 28669 $as_echo_n "(cached) " >&6 28670 else 28671 if test -n "$ac_ct_CC"; then 28672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 28673 else 28674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28675 for as_dir in $PATH 28676 do 28677 IFS=$as_save_IFS 28678 test -z "$as_dir" && as_dir=. 28679 for ac_exec_ext in '' $ac_executable_extensions; do 28680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28681 ac_cv_prog_ac_ct_CC="$ac_prog" 28682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28683 break 2 28684 fi 28685 done 28686 done 28687 IFS=$as_save_IFS 28688 28689 fi 28690 fi 28691 ac_ct_CC=$ac_cv_prog_ac_ct_CC 28692 if test -n "$ac_ct_CC"; then 28693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 28694 $as_echo "$ac_ct_CC" >&6; } 28695 else 28696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28697 $as_echo "no" >&6; } 28698 fi 28699 28700 28701 test -n "$ac_ct_CC" && break 28702 done 28703 28704 if test "x$ac_ct_CC" = x; then 28705 CC="" 28706 else 28707 case $cross_compiling:$ac_tool_warned in 28708 yes:) 28709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28711 ac_tool_warned=yes ;; 28712 esac 28713 CC=$ac_ct_CC 28714 fi 28715 fi 28716 28717 28718 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28720 as_fn_error $? "no acceptable C compiler found in \$PATH 28721 See \`config.log' for more details" "$LINENO" 5; } 28722 28723 # Provide some information about the compiler. 28724 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 28725 set X $ac_compile 28726 ac_compiler=$2 28727 for ac_option in --version -v -V -qversion; do 28728 { { ac_try="$ac_compiler $ac_option >&5" 28729 case "(($ac_try" in 28730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28731 *) ac_try_echo=$ac_try;; 28732 esac 28733 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28734 $as_echo "$ac_try_echo"; } >&5 28735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 28736 ac_status=$? 28737 if test -s conftest.err; then 28738 sed '10a\ 28739 ... rest of stderr output deleted ... 28740 10q' conftest.err >conftest.er1 28741 cat conftest.er1 >&5 28742 fi 28743 rm -f conftest.er1 conftest.err 28744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28745 test $ac_status = 0; } 28746 done 28747 28748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28749 /* end confdefs.h. */ 28750 28751 int 28752 main () 28753 { 28754 28755 ; 28756 return 0; 28757 } 28758 _ACEOF 28759 ac_clean_files_save=$ac_clean_files 28760 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 28761 # Try to create an executable without -o first, disregard a.out. 28762 # It will help us diagnose broken compilers, and finding out an intuition 28763 # of exeext. 28764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 28765 $as_echo_n "checking whether the C compiler works... " >&6; } 28766 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 28767 28768 # The possible output files: 28769 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 28770 28771 ac_rmfiles= 28772 for ac_file in $ac_files 28773 do 28774 case $ac_file in 28775 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28776 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 28777 esac 28778 done 28779 rm -f $ac_rmfiles 28780 28781 if { { ac_try="$ac_link_default" 28782 case "(($ac_try" in 28783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28784 *) ac_try_echo=$ac_try;; 28785 esac 28786 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28787 $as_echo "$ac_try_echo"; } >&5 28788 (eval "$ac_link_default") 2>&5 28789 ac_status=$? 28790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28791 test $ac_status = 0; }; then : 28792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 28793 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 28794 # in a Makefile. We should not override ac_cv_exeext if it was cached, 28795 # so that the user can short-circuit this test for compilers unknown to 28796 # Autoconf. 28797 for ac_file in $ac_files '' 28798 do 28799 test -f "$ac_file" || continue 28800 case $ac_file in 28801 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 28802 ;; 28803 [ab].out ) 28804 # We found the default executable, but exeext='' is most 28805 # certainly right. 28806 break;; 28807 *.* ) 28808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 28809 then :; else 28810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28811 fi 28812 # We set ac_cv_exeext here because the later test for it is not 28813 # safe: cross compilers may not add the suffix if given an `-o' 28814 # argument, so we may need to know it at that point already. 28815 # Even if this section looks crufty: it has the advantage of 28816 # actually working. 28817 break;; 28818 * ) 28819 break;; 28820 esac 28821 done 28822 test "$ac_cv_exeext" = no && ac_cv_exeext= 28823 28824 else 28825 ac_file='' 28826 fi 28827 if test -z "$ac_file"; then : 28828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28829 $as_echo "no" >&6; } 28830 $as_echo "$as_me: failed program was:" >&5 28831 sed 's/^/| /' conftest.$ac_ext >&5 28832 28833 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28834 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28835 as_fn_error 77 "C compiler cannot create executables 28836 See \`config.log' for more details" "$LINENO" 5; } 28837 else 28838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 28839 $as_echo "yes" >&6; } 28840 fi 28841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 28842 $as_echo_n "checking for C compiler default output file name... " >&6; } 28843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 28844 $as_echo "$ac_file" >&6; } 28845 ac_exeext=$ac_cv_exeext 28846 28847 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 28848 ac_clean_files=$ac_clean_files_save 28849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 28850 $as_echo_n "checking for suffix of executables... " >&6; } 28851 if { { ac_try="$ac_link" 28852 case "(($ac_try" in 28853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28854 *) ac_try_echo=$ac_try;; 28855 esac 28856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28857 $as_echo "$ac_try_echo"; } >&5 28858 (eval "$ac_link") 2>&5 28859 ac_status=$? 28860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28861 test $ac_status = 0; }; then : 28862 # If both `conftest.exe' and `conftest' are `present' (well, observable) 28863 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 28864 # work properly (i.e., refer to `conftest.exe'), while it won't with 28865 # `rm'. 28866 for ac_file in conftest.exe conftest conftest.*; do 28867 test -f "$ac_file" || continue 28868 case $ac_file in 28869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 28870 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 28871 break;; 28872 * ) break;; 28873 esac 28874 done 28875 else 28876 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28877 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28878 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 28879 See \`config.log' for more details" "$LINENO" 5; } 28880 fi 28881 rm -f conftest conftest$ac_cv_exeext 28882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 28883 $as_echo "$ac_cv_exeext" >&6; } 28884 28885 rm -f conftest.$ac_ext 28886 EXEEXT=$ac_cv_exeext 28887 ac_exeext=$EXEEXT 28888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28889 /* end confdefs.h. */ 28890 #include <stdio.h> 28891 int 28892 main () 28893 { 28894 FILE *f = fopen ("conftest.out", "w"); 28895 return ferror (f) || fclose (f) != 0; 28896 28897 ; 28898 return 0; 28899 } 28900 _ACEOF 28901 ac_clean_files="$ac_clean_files conftest.out" 28902 # Check that the compiler produces executables we can run. If not, either 28903 # the compiler is broken, or we cross compile. 28904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 28905 $as_echo_n "checking whether we are cross compiling... " >&6; } 28906 if test "$cross_compiling" != yes; then 28907 { { ac_try="$ac_link" 28908 case "(($ac_try" in 28909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28910 *) ac_try_echo=$ac_try;; 28911 esac 28912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28913 $as_echo "$ac_try_echo"; } >&5 28914 (eval "$ac_link") 2>&5 28915 ac_status=$? 28916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28917 test $ac_status = 0; } 28918 if { ac_try='./conftest$ac_cv_exeext' 28919 { { case "(($ac_try" in 28920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28921 *) ac_try_echo=$ac_try;; 28922 esac 28923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28924 $as_echo "$ac_try_echo"; } >&5 28925 (eval "$ac_try") 2>&5 28926 ac_status=$? 28927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28928 test $ac_status = 0; }; }; then 28929 cross_compiling=no 28930 else 28931 if test "$cross_compiling" = maybe; then 28932 cross_compiling=yes 28933 else 28934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28936 as_fn_error $? "cannot run C compiled programs. 28937 If you meant to cross compile, use \`--host'. 28938 See \`config.log' for more details" "$LINENO" 5; } 28939 fi 28940 fi 28941 fi 28942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 28943 $as_echo "$cross_compiling" >&6; } 28944 28945 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 28946 ac_clean_files=$ac_clean_files_save 28947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 28948 $as_echo_n "checking for suffix of object files... " >&6; } 28949 if ${ac_cv_objext+:} false; then : 28950 $as_echo_n "(cached) " >&6 28951 else 28952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28953 /* end confdefs.h. */ 28954 28955 int 28956 main () 28957 { 28958 28959 ; 28960 return 0; 28961 } 28962 _ACEOF 28963 rm -f conftest.o conftest.obj 28964 if { { ac_try="$ac_compile" 28965 case "(($ac_try" in 28966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 28967 *) ac_try_echo=$ac_try;; 28968 esac 28969 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 28970 $as_echo "$ac_try_echo"; } >&5 28971 (eval "$ac_compile") 2>&5 28972 ac_status=$? 28973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28974 test $ac_status = 0; }; then : 28975 for ac_file in conftest.o conftest.obj conftest.*; do 28976 test -f "$ac_file" || continue; 28977 case $ac_file in 28978 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 28979 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 28980 break;; 28981 esac 28982 done 28983 else 28984 $as_echo "$as_me: failed program was:" >&5 28985 sed 's/^/| /' conftest.$ac_ext >&5 28986 28987 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28988 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28989 as_fn_error $? "cannot compute suffix of object files: cannot compile 28990 See \`config.log' for more details" "$LINENO" 5; } 28991 fi 28992 rm -f conftest.$ac_cv_objext conftest.$ac_ext 28993 fi 28994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 28995 $as_echo "$ac_cv_objext" >&6; } 28996 OBJEXT=$ac_cv_objext 28997 ac_objext=$OBJEXT 28998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 28999 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 29000 if ${ac_cv_c_compiler_gnu+:} false; then : 29001 $as_echo_n "(cached) " >&6 29002 else 29003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29004 /* end confdefs.h. */ 29005 29006 int 29007 main () 29008 { 29009 #ifndef __GNUC__ 29010 choke me 29011 #endif 29012 29013 ; 29014 return 0; 29015 } 29016 _ACEOF 29017 if ac_fn_c_try_compile "$LINENO"; then : 29018 ac_compiler_gnu=yes 29019 else 29020 ac_compiler_gnu=no 29021 fi 29022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29023 ac_cv_c_compiler_gnu=$ac_compiler_gnu 29024 29025 fi 29026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 29027 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 29028 if test $ac_compiler_gnu = yes; then 29029 GCC=yes 29030 else 29031 GCC= 29032 fi 29033 ac_test_CFLAGS=${CFLAGS+set} 29034 ac_save_CFLAGS=$CFLAGS 29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 29036 $as_echo_n "checking whether $CC accepts -g... " >&6; } 29037 if ${ac_cv_prog_cc_g+:} false; then : 29038 $as_echo_n "(cached) " >&6 29039 else 29040 ac_save_c_werror_flag=$ac_c_werror_flag 29041 ac_c_werror_flag=yes 29042 ac_cv_prog_cc_g=no 29043 CFLAGS="-g" 29044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29045 /* end confdefs.h. */ 29046 29047 int 29048 main () 29049 { 29050 29051 ; 29052 return 0; 29053 } 29054 _ACEOF 29055 if ac_fn_c_try_compile "$LINENO"; then : 29056 ac_cv_prog_cc_g=yes 29057 else 29058 CFLAGS="" 29059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29060 /* end confdefs.h. */ 29061 29062 int 29063 main () 29064 { 29065 29066 ; 29067 return 0; 29068 } 29069 _ACEOF 29070 if ac_fn_c_try_compile "$LINENO"; then : 29071 29072 else 29073 ac_c_werror_flag=$ac_save_c_werror_flag 29074 CFLAGS="-g" 29075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29076 /* end confdefs.h. */ 29077 29078 int 29079 main () 29080 { 29081 29082 ; 29083 return 0; 29084 } 29085 _ACEOF 29086 if ac_fn_c_try_compile "$LINENO"; then : 29087 ac_cv_prog_cc_g=yes 29088 fi 29089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29090 fi 29091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29092 fi 29093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29094 ac_c_werror_flag=$ac_save_c_werror_flag 29095 fi 29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 29097 $as_echo "$ac_cv_prog_cc_g" >&6; } 29098 if test "$ac_test_CFLAGS" = set; then 29099 CFLAGS=$ac_save_CFLAGS 29100 elif test $ac_cv_prog_cc_g = yes; then 29101 if test "$GCC" = yes; then 29102 CFLAGS="-g -O2" 29103 else 29104 CFLAGS="-g" 29105 fi 29106 else 29107 if test "$GCC" = yes; then 29108 CFLAGS="-O2" 29109 else 29110 CFLAGS= 29111 fi 29112 fi 29113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 29114 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 29115 if ${ac_cv_prog_cc_c89+:} false; then : 29116 $as_echo_n "(cached) " >&6 29117 else 29118 ac_cv_prog_cc_c89=no 29119 ac_save_CC=$CC 29120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29121 /* end confdefs.h. */ 29122 #include <stdarg.h> 29123 #include <stdio.h> 29124 struct stat; 29125 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 29126 struct buf { int x; }; 29127 FILE * (*rcsopen) (struct buf *, struct stat *, int); 29128 static char *e (p, i) 29129 char **p; 29130 int i; 29131 { 29132 return p[i]; 29133 } 29134 static char *f (char * (*g) (char **, int), char **p, ...) 29135 { 29136 char *s; 29137 va_list v; 29138 va_start (v,p); 29139 s = g (p, va_arg (v,int)); 29140 va_end (v); 29141 return s; 29142 } 29143 29144 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 29145 function prototypes and stuff, but not '\xHH' hex character constants. 29146 These don't provoke an error unfortunately, instead are silently treated 29147 as 'x'. The following induces an error, until -std is added to get 29148 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 29149 array size at least. It's necessary to write '\x00'==0 to get something 29150 that's true only with -std. */ 29151 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 29152 29153 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 29154 inside strings and character constants. */ 29155 #define FOO(x) 'x' 29156 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 29157 29158 int test (int i, double x); 29159 struct s1 {int (*f) (int a);}; 29160 struct s2 {int (*f) (double a);}; 29161 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 29162 int argc; 29163 char **argv; 29164 int 29165 main () 29166 { 29167 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 29168 ; 29169 return 0; 29170 } 29171 _ACEOF 29172 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 29173 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 29174 do 29175 CC="$ac_save_CC $ac_arg" 29176 if ac_fn_c_try_compile "$LINENO"; then : 29177 ac_cv_prog_cc_c89=$ac_arg 29178 fi 29179 rm -f core conftest.err conftest.$ac_objext 29180 test "x$ac_cv_prog_cc_c89" != "xno" && break 29181 done 29182 rm -f conftest.$ac_ext 29183 CC=$ac_save_CC 29184 29185 fi 29186 # AC_CACHE_VAL 29187 case "x$ac_cv_prog_cc_c89" in 29188 x) 29189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 29190 $as_echo "none needed" >&6; } ;; 29191 xno) 29192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 29193 $as_echo "unsupported" >&6; } ;; 29194 *) 29195 CC="$CC $ac_cv_prog_cc_c89" 29196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 29197 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 29198 esac 29199 if test "x$ac_cv_prog_cc_c89" != xno; then : 29200 29201 fi 29202 29203 ac_ext=cpp 29204 ac_cpp='$CXXCPP $CPPFLAGS' 29205 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29206 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29207 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29208 29209 29210 29211 COMPILER_NAME=C++ 29212 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 29213 29214 if test "x$CXX" != x; then 29215 # User has supplied compiler name already, always let that override. 29216 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 29217 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 29218 if test "x`basename $CXX`" = "x$CXX"; then 29219 # A command without a complete path is provided, search $PATH. 29220 29221 for ac_prog in $CXX 29222 do 29223 # Extract the first word of "$ac_prog", so it can be a program name with args. 29224 set dummy $ac_prog; ac_word=$2 29225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29226 $as_echo_n "checking for $ac_word... " >&6; } 29227 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29228 $as_echo_n "(cached) " >&6 29229 else 29230 case $POTENTIAL_CXX in 29231 [\\/]* | ?:[\\/]*) 29232 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29233 ;; 29234 *) 29235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29236 for as_dir in $PATH 29237 do 29238 IFS=$as_save_IFS 29239 test -z "$as_dir" && as_dir=. 29240 for ac_exec_ext in '' $ac_executable_extensions; do 29241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29242 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29244 break 2 29245 fi 29246 done 29247 done 29248 IFS=$as_save_IFS 29249 29250 ;; 29251 esac 29252 fi 29253 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29254 if test -n "$POTENTIAL_CXX"; then 29255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29256 $as_echo "$POTENTIAL_CXX" >&6; } 29257 else 29258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29259 $as_echo "no" >&6; } 29260 fi 29261 29262 29263 test -n "$POTENTIAL_CXX" && break 29264 done 29265 29266 if test "x$POTENTIAL_CXX" != x; then 29267 CXX=$POTENTIAL_CXX 29268 else 29269 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 29270 fi 29271 else 29272 # Otherwise it might already be a complete path 29273 if test ! -x "$CXX"; then 29274 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 29275 fi 29276 fi 29277 else 29278 # No user supplied value. Locate compiler ourselves. 29279 29280 # If we are cross compiling, assume cross compilation tools follows the 29281 # cross compilation standard where they are prefixed with the autoconf 29282 # standard name for the target. For example the binary 29283 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 29284 # If we are not cross compiling, then the default compiler name will be 29285 # used. 29286 29287 CXX= 29288 # If TOOLS_DIR is set, check for all compiler names in there first 29289 # before checking the rest of the PATH. 29290 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 29291 # step, this should not be necessary. 29292 if test -n "$TOOLS_DIR"; then 29293 PATH_save="$PATH" 29294 PATH="$TOOLS_DIR" 29295 for ac_prog in $SEARCH_LIST 29296 do 29297 # Extract the first word of "$ac_prog", so it can be a program name with args. 29298 set dummy $ac_prog; ac_word=$2 29299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29300 $as_echo_n "checking for $ac_word... " >&6; } 29301 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then : 29302 $as_echo_n "(cached) " >&6 29303 else 29304 case $TOOLS_DIR_CXX in 29305 [\\/]* | ?:[\\/]*) 29306 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path. 29307 ;; 29308 *) 29309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29310 for as_dir in $PATH 29311 do 29312 IFS=$as_save_IFS 29313 test -z "$as_dir" && as_dir=. 29314 for ac_exec_ext in '' $ac_executable_extensions; do 29315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29316 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext" 29317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29318 break 2 29319 fi 29320 done 29321 done 29322 IFS=$as_save_IFS 29323 29324 ;; 29325 esac 29326 fi 29327 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX 29328 if test -n "$TOOLS_DIR_CXX"; then 29329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5 29330 $as_echo "$TOOLS_DIR_CXX" >&6; } 29331 else 29332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29333 $as_echo "no" >&6; } 29334 fi 29335 29336 29337 test -n "$TOOLS_DIR_CXX" && break 29338 done 29339 29340 CXX=$TOOLS_DIR_CXX 29341 PATH="$PATH_save" 29342 fi 29343 29344 # AC_PATH_PROGS can't be run multiple times with the same variable, 29345 # so create a new name for this run. 29346 if test "x$CXX" = x; then 29347 for ac_prog in $SEARCH_LIST 29348 do 29349 # Extract the first word of "$ac_prog", so it can be a program name with args. 29350 set dummy $ac_prog; ac_word=$2 29351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29352 $as_echo_n "checking for $ac_word... " >&6; } 29353 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 29354 $as_echo_n "(cached) " >&6 29355 else 29356 case $POTENTIAL_CXX in 29357 [\\/]* | ?:[\\/]*) 29358 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 29359 ;; 29360 *) 29361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29362 for as_dir in $PATH 29363 do 29364 IFS=$as_save_IFS 29365 test -z "$as_dir" && as_dir=. 29366 for ac_exec_ext in '' $ac_executable_extensions; do 29367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29368 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 29369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29370 break 2 29371 fi 29372 done 29373 done 29374 IFS=$as_save_IFS 29375 29376 ;; 29377 esac 29378 fi 29379 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 29380 if test -n "$POTENTIAL_CXX"; then 29381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 29382 $as_echo "$POTENTIAL_CXX" >&6; } 29383 else 29384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29385 $as_echo "no" >&6; } 29386 fi 29387 29388 29389 test -n "$POTENTIAL_CXX" && break 29390 done 29391 29392 CXX=$POTENTIAL_CXX 29393 fi 29394 29395 if test "x$CXX" = x; then 29396 29397 # Print a helpful message on how to acquire the necessary build dependency. 29398 # devkit is the help tag: freetype, cups, pulse, alsa etc 29399 MISSING_DEPENDENCY=devkit 29400 29401 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29402 cygwin_help $MISSING_DEPENDENCY 29403 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29404 msys_help $MISSING_DEPENDENCY 29405 else 29406 PKGHANDLER_COMMAND= 29407 29408 case $PKGHANDLER in 29409 apt-get) 29410 apt_help $MISSING_DEPENDENCY ;; 29411 yum) 29412 yum_help $MISSING_DEPENDENCY ;; 29413 port) 29414 port_help $MISSING_DEPENDENCY ;; 29415 pkgutil) 29416 pkgutil_help $MISSING_DEPENDENCY ;; 29417 pkgadd) 29418 pkgadd_help $MISSING_DEPENDENCY ;; 29419 esac 29420 29421 if test "x$PKGHANDLER_COMMAND" != x; then 29422 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 29423 fi 29424 fi 29425 29426 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 29427 fi 29428 fi 29429 29430 # Now we have a compiler binary in CXX. Make sure it's okay. 29431 29432 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29433 29434 # First separate the path from the arguments. This will split at the first 29435 # space. 29436 complete="$CXX" 29437 path="${complete%% *}" 29438 tmp="$complete EOL" 29439 arguments="${tmp#* }" 29440 29441 # Input might be given as Windows format, start by converting to 29442 # unix format. 29443 new_path=`$CYGPATH -u "$path"` 29444 29445 # Now try to locate executable using which 29446 new_path=`$WHICH "$new_path" 2> /dev/null` 29447 # bat and cmd files are not always considered executable in cygwin causing which 29448 # to not find them 29449 if test "x$new_path" = x \ 29450 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29451 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29452 new_path=`$CYGPATH -u "$path"` 29453 fi 29454 if test "x$new_path" = x; then 29455 # Oops. Which didn't find the executable. 29456 # The splitting of arguments from the executable at a space might have been incorrect, 29457 # since paths with space are more likely in Windows. Give it another try with the whole 29458 # argument. 29459 path="$complete" 29460 arguments="EOL" 29461 new_path=`$CYGPATH -u "$path"` 29462 new_path=`$WHICH "$new_path" 2> /dev/null` 29463 # bat and cmd files are not always considered executable in cygwin causing which 29464 # to not find them 29465 if test "x$new_path" = x \ 29466 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29467 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29468 new_path=`$CYGPATH -u "$path"` 29469 fi 29470 if test "x$new_path" = x; then 29471 # It's still not found. Now this is an unrecoverable error. 29472 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29473 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29474 has_space=`$ECHO "$complete" | $GREP " "` 29475 if test "x$has_space" != x; then 29476 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29477 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29478 fi 29479 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29480 fi 29481 fi 29482 29483 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29484 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29485 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29486 # "foo.exe" is OK but "foo" is an error. 29487 # 29488 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29489 # It is also a way to make sure we got the proper file name for the real test later on. 29490 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29491 if test "x$test_shortpath" = x; then 29492 # Short path failed, file does not exist as specified. 29493 # Try adding .exe or .cmd 29494 if test -f "${new_path}.exe"; then 29495 input_to_shortpath="${new_path}.exe" 29496 elif test -f "${new_path}.cmd"; then 29497 input_to_shortpath="${new_path}.cmd" 29498 else 29499 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 29500 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 29501 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29502 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29503 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29504 fi 29505 else 29506 input_to_shortpath="$new_path" 29507 fi 29508 29509 # Call helper function which possibly converts this using DOS-style short mode. 29510 # If so, the updated path is stored in $new_path. 29511 new_path="$input_to_shortpath" 29512 29513 input_path="$input_to_shortpath" 29514 # Check if we need to convert this using DOS-style short mode. If the path 29515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29516 # take no chances and rewrite it. 29517 # Note: m4 eats our [], so we need to use [ and ] instead. 29518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29519 if test "x$has_forbidden_chars" != x; then 29520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29521 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29522 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29523 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29524 # Going to short mode and back again did indeed matter. Since short mode is 29525 # case insensitive, let's make it lowercase to improve readability. 29526 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29527 # Now convert it back to Unix-stile (cygpath) 29528 input_path=`$CYGPATH -u "$shortmode_path"` 29529 new_path="$input_path" 29530 fi 29531 fi 29532 29533 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29534 if test "x$test_cygdrive_prefix" = x; then 29535 # As a simple fix, exclude /usr/bin since it's not a real path. 29536 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29537 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29538 # a path prefixed by /cygdrive for fixpath to work. 29539 new_path="$CYGWIN_ROOT_PATH$input_path" 29540 fi 29541 fi 29542 29543 # remove trailing .exe if any 29544 new_path="${new_path/%.exe/}" 29545 29546 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29547 29548 # First separate the path from the arguments. This will split at the first 29549 # space. 29550 complete="$CXX" 29551 path="${complete%% *}" 29552 tmp="$complete EOL" 29553 arguments="${tmp#* }" 29554 29555 # Input might be given as Windows format, start by converting to 29556 # unix format. 29557 new_path="$path" 29558 29559 windows_path="$new_path" 29560 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29561 unix_path=`$CYGPATH -u "$windows_path"` 29562 new_path="$unix_path" 29563 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29564 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29565 new_path="$unix_path" 29566 fi 29567 29568 29569 # Now try to locate executable using which 29570 new_path=`$WHICH "$new_path" 2> /dev/null` 29571 29572 if test "x$new_path" = x; then 29573 # Oops. Which didn't find the executable. 29574 # The splitting of arguments from the executable at a space might have been incorrect, 29575 # since paths with space are more likely in Windows. Give it another try with the whole 29576 # argument. 29577 path="$complete" 29578 arguments="EOL" 29579 new_path="$path" 29580 29581 windows_path="$new_path" 29582 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29583 unix_path=`$CYGPATH -u "$windows_path"` 29584 new_path="$unix_path" 29585 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29586 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29587 new_path="$unix_path" 29588 fi 29589 29590 29591 new_path=`$WHICH "$new_path" 2> /dev/null` 29592 29593 if test "x$new_path" = x; then 29594 # It's still not found. Now this is an unrecoverable error. 29595 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29596 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29597 has_space=`$ECHO "$complete" | $GREP " "` 29598 if test "x$has_space" != x; then 29599 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29600 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29601 fi 29602 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29603 fi 29604 fi 29605 29606 # Now new_path has a complete unix path to the binary 29607 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29608 # Keep paths in /bin as-is, but remove trailing .exe if any 29609 new_path="${new_path/%.exe/}" 29610 # Do not save /bin paths to all_fixpath_prefixes! 29611 else 29612 # Not in mixed or Windows style, start by that. 29613 new_path=`cmd //c echo $new_path` 29614 29615 input_path="$new_path" 29616 # Check if we need to convert this using DOS-style short mode. If the path 29617 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29618 # take no chances and rewrite it. 29619 # Note: m4 eats our [], so we need to use [ and ] instead. 29620 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29621 if test "x$has_forbidden_chars" != x; then 29622 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29623 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29624 fi 29625 29626 # Output is in $new_path 29627 29628 windows_path="$new_path" 29629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29630 unix_path=`$CYGPATH -u "$windows_path"` 29631 new_path="$unix_path" 29632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29634 new_path="$unix_path" 29635 fi 29636 29637 # remove trailing .exe if any 29638 new_path="${new_path/%.exe/}" 29639 29640 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29641 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29642 fi 29643 29644 else 29645 # We're on a posix platform. Hooray! :) 29646 # First separate the path from the arguments. This will split at the first 29647 # space. 29648 complete="$CXX" 29649 path="${complete%% *}" 29650 tmp="$complete EOL" 29651 arguments="${tmp#* }" 29652 29653 # Cannot rely on the command "which" here since it doesn't always work. 29654 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29655 if test -z "$is_absolute_path"; then 29656 # Path to executable is not absolute. Find it. 29657 IFS_save="$IFS" 29658 IFS=: 29659 for p in $PATH; do 29660 if test -f "$p/$path" && test -x "$p/$path"; then 29661 new_path="$p/$path" 29662 break 29663 fi 29664 done 29665 IFS="$IFS_save" 29666 else 29667 # This is an absolute path, we can use it without further modifications. 29668 new_path="$path" 29669 fi 29670 29671 if test "x$new_path" = x; then 29672 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 29673 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 29674 has_space=`$ECHO "$complete" | $GREP " "` 29675 if test "x$has_space" != x; then 29676 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29677 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29678 fi 29679 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 29680 fi 29681 fi 29682 29683 # Now join together the path and the arguments once again 29684 if test "x$arguments" != xEOL; then 29685 new_complete="$new_path ${arguments% *}" 29686 else 29687 new_complete="$new_path" 29688 fi 29689 29690 if test "x$complete" != "x$new_complete"; then 29691 CXX="$new_complete" 29692 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 29693 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 29694 fi 29695 29696 TEST_COMPILER="$CXX" 29697 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 29698 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 29699 if test "x$OPENJDK_BUILD_OS" != xaix; then 29700 # FIXME: This test should not be needed anymore; we don't do that for any platform. 29701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 29702 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 29703 29704 if test "x$OPENJDK_BUILD_OS" != xwindows; then 29705 # Follow a chain of symbolic links. Use readlink 29706 # where it exists, else fall back to horribly 29707 # complicated shell code. 29708 if test "x$READLINK_TESTED" != yes; then 29709 # On MacOSX there is a readlink tool with a different 29710 # purpose than the GNU readlink tool. Check the found readlink. 29711 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 29712 if test "x$ISGNU" = x; then 29713 # A readlink that we do not know how to use. 29714 # Are there other non-GNU readlinks out there? 29715 READLINK_TESTED=yes 29716 READLINK= 29717 fi 29718 fi 29719 29720 if test "x$READLINK" != x; then 29721 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 29722 else 29723 # Save the current directory for restoring afterwards 29724 STARTDIR=$PWD 29725 COUNTER=0 29726 sym_link_dir=`$DIRNAME $TEST_COMPILER` 29727 sym_link_file=`$BASENAME $TEST_COMPILER` 29728 cd $sym_link_dir 29729 # Use -P flag to resolve symlinks in directories. 29730 cd `$THEPWDCMD -P` 29731 sym_link_dir=`$THEPWDCMD -P` 29732 # Resolve file symlinks 29733 while test $COUNTER -lt 20; do 29734 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 29735 if test "x$ISLINK" == x; then 29736 # This is not a symbolic link! We are done! 29737 break 29738 fi 29739 # Again resolve directory symlinks since the target of the just found 29740 # link could be in a different directory 29741 cd `$DIRNAME $ISLINK` 29742 sym_link_dir=`$THEPWDCMD -P` 29743 sym_link_file=`$BASENAME $ISLINK` 29744 let COUNTER=COUNTER+1 29745 done 29746 cd $STARTDIR 29747 TEST_COMPILER=$sym_link_dir/$sym_link_file 29748 fi 29749 fi 29750 29751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 29752 $as_echo "$TEST_COMPILER" >&6; } 29753 fi 29754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 29755 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 29756 29757 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 29758 if test "x$COMPILER_BASENAME" = "xccache"; then 29759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 29760 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 29761 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 29762 # We want to control ccache invocation ourselves, so ignore this cc and try 29763 # searching again. 29764 29765 # Remove the path to the fake ccache cc from the PATH 29766 RETRY_COMPILER_SAVED_PATH="$PATH" 29767 COMPILER_DIRNAME=`$DIRNAME $CXX` 29768 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 29769 29770 # Try again looking for our compiler 29771 if test -n "$ac_tool_prefix"; then 29772 for ac_prog in $TOOLCHAIN_CXX_BINARY 29773 do 29774 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 29775 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 29776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29777 $as_echo_n "checking for $ac_word... " >&6; } 29778 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 29779 $as_echo_n "(cached) " >&6 29780 else 29781 if test -n "$PROPER_COMPILER_CXX"; then 29782 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 29783 else 29784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29785 for as_dir in $PATH 29786 do 29787 IFS=$as_save_IFS 29788 test -z "$as_dir" && as_dir=. 29789 for ac_exec_ext in '' $ac_executable_extensions; do 29790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29791 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 29792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29793 break 2 29794 fi 29795 done 29796 done 29797 IFS=$as_save_IFS 29798 29799 fi 29800 fi 29801 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 29802 if test -n "$PROPER_COMPILER_CXX"; then 29803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 29804 $as_echo "$PROPER_COMPILER_CXX" >&6; } 29805 else 29806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29807 $as_echo "no" >&6; } 29808 fi 29809 29810 29811 test -n "$PROPER_COMPILER_CXX" && break 29812 done 29813 fi 29814 if test -z "$PROPER_COMPILER_CXX"; then 29815 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 29816 for ac_prog in $TOOLCHAIN_CXX_BINARY 29817 do 29818 # Extract the first word of "$ac_prog", so it can be a program name with args. 29819 set dummy $ac_prog; ac_word=$2 29820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29821 $as_echo_n "checking for $ac_word... " >&6; } 29822 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 29823 $as_echo_n "(cached) " >&6 29824 else 29825 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29826 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 29827 else 29828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29829 for as_dir in $PATH 29830 do 29831 IFS=$as_save_IFS 29832 test -z "$as_dir" && as_dir=. 29833 for ac_exec_ext in '' $ac_executable_extensions; do 29834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 29835 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 29836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29837 break 2 29838 fi 29839 done 29840 done 29841 IFS=$as_save_IFS 29842 29843 fi 29844 fi 29845 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 29846 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 29847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 29848 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 29849 else 29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29851 $as_echo "no" >&6; } 29852 fi 29853 29854 29855 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 29856 done 29857 29858 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 29859 PROPER_COMPILER_CXX="" 29860 else 29861 case $cross_compiling:$ac_tool_warned in 29862 yes:) 29863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29864 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29865 ac_tool_warned=yes ;; 29866 esac 29867 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 29868 fi 29869 fi 29870 29871 29872 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29873 29874 # First separate the path from the arguments. This will split at the first 29875 # space. 29876 complete="$PROPER_COMPILER_CXX" 29877 path="${complete%% *}" 29878 tmp="$complete EOL" 29879 arguments="${tmp#* }" 29880 29881 # Input might be given as Windows format, start by converting to 29882 # unix format. 29883 new_path=`$CYGPATH -u "$path"` 29884 29885 # Now try to locate executable using which 29886 new_path=`$WHICH "$new_path" 2> /dev/null` 29887 # bat and cmd files are not always considered executable in cygwin causing which 29888 # to not find them 29889 if test "x$new_path" = x \ 29890 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29891 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29892 new_path=`$CYGPATH -u "$path"` 29893 fi 29894 if test "x$new_path" = x; then 29895 # Oops. Which didn't find the executable. 29896 # The splitting of arguments from the executable at a space might have been incorrect, 29897 # since paths with space are more likely in Windows. Give it another try with the whole 29898 # argument. 29899 path="$complete" 29900 arguments="EOL" 29901 new_path=`$CYGPATH -u "$path"` 29902 new_path=`$WHICH "$new_path" 2> /dev/null` 29903 # bat and cmd files are not always considered executable in cygwin causing which 29904 # to not find them 29905 if test "x$new_path" = x \ 29906 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29907 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29908 new_path=`$CYGPATH -u "$path"` 29909 fi 29910 if test "x$new_path" = x; then 29911 # It's still not found. Now this is an unrecoverable error. 29912 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 29913 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 29914 has_space=`$ECHO "$complete" | $GREP " "` 29915 if test "x$has_space" != x; then 29916 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29917 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29918 fi 29919 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29920 fi 29921 fi 29922 29923 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29924 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29925 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29926 # "foo.exe" is OK but "foo" is an error. 29927 # 29928 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29929 # It is also a way to make sure we got the proper file name for the real test later on. 29930 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29931 if test "x$test_shortpath" = x; then 29932 # Short path failed, file does not exist as specified. 29933 # Try adding .exe or .cmd 29934 if test -f "${new_path}.exe"; then 29935 input_to_shortpath="${new_path}.exe" 29936 elif test -f "${new_path}.cmd"; then 29937 input_to_shortpath="${new_path}.cmd" 29938 else 29939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 29940 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 29941 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29942 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29943 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 29944 fi 29945 else 29946 input_to_shortpath="$new_path" 29947 fi 29948 29949 # Call helper function which possibly converts this using DOS-style short mode. 29950 # If so, the updated path is stored in $new_path. 29951 new_path="$input_to_shortpath" 29952 29953 input_path="$input_to_shortpath" 29954 # Check if we need to convert this using DOS-style short mode. If the path 29955 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29956 # take no chances and rewrite it. 29957 # Note: m4 eats our [], so we need to use [ and ] instead. 29958 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29959 if test "x$has_forbidden_chars" != x; then 29960 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29961 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29962 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29963 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29964 # Going to short mode and back again did indeed matter. Since short mode is 29965 # case insensitive, let's make it lowercase to improve readability. 29966 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29967 # Now convert it back to Unix-stile (cygpath) 29968 input_path=`$CYGPATH -u "$shortmode_path"` 29969 new_path="$input_path" 29970 fi 29971 fi 29972 29973 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29974 if test "x$test_cygdrive_prefix" = x; then 29975 # As a simple fix, exclude /usr/bin since it's not a real path. 29976 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29977 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29978 # a path prefixed by /cygdrive for fixpath to work. 29979 new_path="$CYGWIN_ROOT_PATH$input_path" 29980 fi 29981 fi 29982 29983 # remove trailing .exe if any 29984 new_path="${new_path/%.exe/}" 29985 29986 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29987 29988 # First separate the path from the arguments. This will split at the first 29989 # space. 29990 complete="$PROPER_COMPILER_CXX" 29991 path="${complete%% *}" 29992 tmp="$complete EOL" 29993 arguments="${tmp#* }" 29994 29995 # Input might be given as Windows format, start by converting to 29996 # unix format. 29997 new_path="$path" 29998 29999 windows_path="$new_path" 30000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30001 unix_path=`$CYGPATH -u "$windows_path"` 30002 new_path="$unix_path" 30003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30004 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30005 new_path="$unix_path" 30006 fi 30007 30008 30009 # Now try to locate executable using which 30010 new_path=`$WHICH "$new_path" 2> /dev/null` 30011 30012 if test "x$new_path" = x; then 30013 # Oops. Which didn't find the executable. 30014 # The splitting of arguments from the executable at a space might have been incorrect, 30015 # since paths with space are more likely in Windows. Give it another try with the whole 30016 # argument. 30017 path="$complete" 30018 arguments="EOL" 30019 new_path="$path" 30020 30021 windows_path="$new_path" 30022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30023 unix_path=`$CYGPATH -u "$windows_path"` 30024 new_path="$unix_path" 30025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30027 new_path="$unix_path" 30028 fi 30029 30030 30031 new_path=`$WHICH "$new_path" 2> /dev/null` 30032 30033 if test "x$new_path" = x; then 30034 # It's still not found. Now this is an unrecoverable error. 30035 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30036 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30037 has_space=`$ECHO "$complete" | $GREP " "` 30038 if test "x$has_space" != x; then 30039 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30040 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30041 fi 30042 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30043 fi 30044 fi 30045 30046 # Now new_path has a complete unix path to the binary 30047 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30048 # Keep paths in /bin as-is, but remove trailing .exe if any 30049 new_path="${new_path/%.exe/}" 30050 # Do not save /bin paths to all_fixpath_prefixes! 30051 else 30052 # Not in mixed or Windows style, start by that. 30053 new_path=`cmd //c echo $new_path` 30054 30055 input_path="$new_path" 30056 # Check if we need to convert this using DOS-style short mode. If the path 30057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30058 # take no chances and rewrite it. 30059 # Note: m4 eats our [], so we need to use [ and ] instead. 30060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30061 if test "x$has_forbidden_chars" != x; then 30062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30063 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30064 fi 30065 30066 # Output is in $new_path 30067 30068 windows_path="$new_path" 30069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30070 unix_path=`$CYGPATH -u "$windows_path"` 30071 new_path="$unix_path" 30072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30073 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30074 new_path="$unix_path" 30075 fi 30076 30077 # remove trailing .exe if any 30078 new_path="${new_path/%.exe/}" 30079 30080 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30081 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30082 fi 30083 30084 else 30085 # We're on a posix platform. Hooray! :) 30086 # First separate the path from the arguments. This will split at the first 30087 # space. 30088 complete="$PROPER_COMPILER_CXX" 30089 path="${complete%% *}" 30090 tmp="$complete EOL" 30091 arguments="${tmp#* }" 30092 30093 # Cannot rely on the command "which" here since it doesn't always work. 30094 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30095 if test -z "$is_absolute_path"; then 30096 # Path to executable is not absolute. Find it. 30097 IFS_save="$IFS" 30098 IFS=: 30099 for p in $PATH; do 30100 if test -f "$p/$path" && test -x "$p/$path"; then 30101 new_path="$p/$path" 30102 break 30103 fi 30104 done 30105 IFS="$IFS_save" 30106 else 30107 # This is an absolute path, we can use it without further modifications. 30108 new_path="$path" 30109 fi 30110 30111 if test "x$new_path" = x; then 30112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 30113 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 30114 has_space=`$ECHO "$complete" | $GREP " "` 30115 if test "x$has_space" != x; then 30116 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30117 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30118 fi 30119 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 30120 fi 30121 fi 30122 30123 # Now join together the path and the arguments once again 30124 if test "x$arguments" != xEOL; then 30125 new_complete="$new_path ${arguments% *}" 30126 else 30127 new_complete="$new_path" 30128 fi 30129 30130 if test "x$complete" != "x$new_complete"; then 30131 PROPER_COMPILER_CXX="$new_complete" 30132 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 30133 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 30134 fi 30135 30136 PATH="$RETRY_COMPILER_SAVED_PATH" 30137 30138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 30139 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 30140 30141 if test "x$OPENJDK_BUILD_OS" != xwindows; then 30142 # Follow a chain of symbolic links. Use readlink 30143 # where it exists, else fall back to horribly 30144 # complicated shell code. 30145 if test "x$READLINK_TESTED" != yes; then 30146 # On MacOSX there is a readlink tool with a different 30147 # purpose than the GNU readlink tool. Check the found readlink. 30148 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 30149 if test "x$ISGNU" = x; then 30150 # A readlink that we do not know how to use. 30151 # Are there other non-GNU readlinks out there? 30152 READLINK_TESTED=yes 30153 READLINK= 30154 fi 30155 fi 30156 30157 if test "x$READLINK" != x; then 30158 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 30159 else 30160 # Save the current directory for restoring afterwards 30161 STARTDIR=$PWD 30162 COUNTER=0 30163 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 30164 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 30165 cd $sym_link_dir 30166 # Use -P flag to resolve symlinks in directories. 30167 cd `$THEPWDCMD -P` 30168 sym_link_dir=`$THEPWDCMD -P` 30169 # Resolve file symlinks 30170 while test $COUNTER -lt 20; do 30171 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 30172 if test "x$ISLINK" == x; then 30173 # This is not a symbolic link! We are done! 30174 break 30175 fi 30176 # Again resolve directory symlinks since the target of the just found 30177 # link could be in a different directory 30178 cd `$DIRNAME $ISLINK` 30179 sym_link_dir=`$THEPWDCMD -P` 30180 sym_link_file=`$BASENAME $ISLINK` 30181 let COUNTER=COUNTER+1 30182 done 30183 cd $STARTDIR 30184 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 30185 fi 30186 fi 30187 30188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 30189 $as_echo "$PROPER_COMPILER_CXX" >&6; } 30190 CXX="$PROPER_COMPILER_CXX" 30191 else 30192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 30193 $as_echo "no, keeping CXX" >&6; } 30194 fi 30195 30196 30197 COMPILER=$CXX 30198 COMPILER_NAME=$COMPILER_NAME 30199 30200 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 30201 # cc -V output typically looks like 30202 # cc: Sun C 5.12 Linux_i386 2011/11/16 30203 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 30204 # Check that this is likely to be the Solaris Studio cc. 30205 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 30206 if test $? -ne 0; then 30207 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30208 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30209 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30210 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30211 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30212 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30213 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30214 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30215 fi 30216 # Remove usage instructions (if present), and 30217 # collapse compiler output into a single line 30218 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30219 $SED -e 's/ *[Uu]sage:.*//'` 30220 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30221 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 30222 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 30223 # xlc -qversion output typically looks like 30224 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 30225 # Version: 11.01.0000.0015 30226 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 30227 # Check that this is likely to be the IBM XL C compiler. 30228 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 30229 if test $? -ne 0; then 30230 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30231 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30232 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30233 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30234 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30235 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 30236 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 30237 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30238 fi 30239 # Collapse compiler output into a single line 30240 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30241 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30242 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 30243 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30244 # There is no specific version flag, but all output starts with a version string. 30245 # First line typically looks something like: 30246 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 30247 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 30248 # Check that this is likely to be Microsoft CL.EXE. 30249 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 30250 if test $? -ne 0; then 30251 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30252 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30253 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30254 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30255 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30256 fi 30257 # Collapse compiler output into a single line 30258 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30259 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30260 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 30261 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 30262 # gcc --version output typically looks like 30263 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 30264 # Copyright (C) 2013 Free Software Foundation, Inc. 30265 # This is free software; see the source for copying conditions. There is NO 30266 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 30267 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30268 # Check that this is likely to be GCC. 30269 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 30270 if test $? -ne 0; then 30271 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30272 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30273 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 30274 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 30275 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30276 fi 30277 # Remove Copyright and legalese from version string, and 30278 # collapse into a single line 30279 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30280 $SED -e 's/ *Copyright .*//'` 30281 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30282 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 30283 elif test "x$TOOLCHAIN_TYPE" = xclang; then 30284 # clang --version output typically looks like 30285 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 30286 # clang version 3.3 (tags/RELEASE_33/final) 30287 # or 30288 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 30289 # Target: x86_64-pc-linux-gnu 30290 # Thread model: posix 30291 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 30292 # Check that this is likely to be clang 30293 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 30294 if test $? -ne 0; then 30295 { $as_echo "$as_me:${as_lineno-$LINENO}: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&5 30296 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 30297 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 30298 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 30299 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 30300 fi 30301 # Collapse compiler output into a single line 30302 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 30303 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 30304 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 30305 else 30306 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 30307 fi 30308 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 30309 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 30310 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 30311 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 30312 30313 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 30314 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 30315 30316 30317 # Now that we have resolved CXX ourself, let autoconf have its go at it 30318 ac_ext=cpp 30319 ac_cpp='$CXXCPP $CPPFLAGS' 30320 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30321 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30322 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30323 if test -z "$CXX"; then 30324 if test -n "$CCC"; then 30325 CXX=$CCC 30326 else 30327 if test -n "$ac_tool_prefix"; then 30328 for ac_prog in $CXX 30329 do 30330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30333 $as_echo_n "checking for $ac_word... " >&6; } 30334 if ${ac_cv_prog_CXX+:} false; then : 30335 $as_echo_n "(cached) " >&6 30336 else 30337 if test -n "$CXX"; then 30338 ac_cv_prog_CXX="$CXX" # Let the user override the test. 30339 else 30340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30341 for as_dir in $PATH 30342 do 30343 IFS=$as_save_IFS 30344 test -z "$as_dir" && as_dir=. 30345 for ac_exec_ext in '' $ac_executable_extensions; do 30346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30347 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 30348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30349 break 2 30350 fi 30351 done 30352 done 30353 IFS=$as_save_IFS 30354 30355 fi 30356 fi 30357 CXX=$ac_cv_prog_CXX 30358 if test -n "$CXX"; then 30359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 30360 $as_echo "$CXX" >&6; } 30361 else 30362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30363 $as_echo "no" >&6; } 30364 fi 30365 30366 30367 test -n "$CXX" && break 30368 done 30369 fi 30370 if test -z "$CXX"; then 30371 ac_ct_CXX=$CXX 30372 for ac_prog in $CXX 30373 do 30374 # Extract the first word of "$ac_prog", so it can be a program name with args. 30375 set dummy $ac_prog; ac_word=$2 30376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30377 $as_echo_n "checking for $ac_word... " >&6; } 30378 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 30379 $as_echo_n "(cached) " >&6 30380 else 30381 if test -n "$ac_ct_CXX"; then 30382 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 30383 else 30384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30385 for as_dir in $PATH 30386 do 30387 IFS=$as_save_IFS 30388 test -z "$as_dir" && as_dir=. 30389 for ac_exec_ext in '' $ac_executable_extensions; do 30390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30391 ac_cv_prog_ac_ct_CXX="$ac_prog" 30392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30393 break 2 30394 fi 30395 done 30396 done 30397 IFS=$as_save_IFS 30398 30399 fi 30400 fi 30401 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 30402 if test -n "$ac_ct_CXX"; then 30403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 30404 $as_echo "$ac_ct_CXX" >&6; } 30405 else 30406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30407 $as_echo "no" >&6; } 30408 fi 30409 30410 30411 test -n "$ac_ct_CXX" && break 30412 done 30413 30414 if test "x$ac_ct_CXX" = x; then 30415 CXX="g++" 30416 else 30417 case $cross_compiling:$ac_tool_warned in 30418 yes:) 30419 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30421 ac_tool_warned=yes ;; 30422 esac 30423 CXX=$ac_ct_CXX 30424 fi 30425 fi 30426 30427 fi 30428 fi 30429 # Provide some information about the compiler. 30430 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 30431 set X $ac_compile 30432 ac_compiler=$2 30433 for ac_option in --version -v -V -qversion; do 30434 { { ac_try="$ac_compiler $ac_option >&5" 30435 case "(($ac_try" in 30436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 30437 *) ac_try_echo=$ac_try;; 30438 esac 30439 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 30440 $as_echo "$ac_try_echo"; } >&5 30441 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 30442 ac_status=$? 30443 if test -s conftest.err; then 30444 sed '10a\ 30445 ... rest of stderr output deleted ... 30446 10q' conftest.err >conftest.er1 30447 cat conftest.er1 >&5 30448 fi 30449 rm -f conftest.er1 conftest.err 30450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 30451 test $ac_status = 0; } 30452 done 30453 30454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 30455 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 30456 if ${ac_cv_cxx_compiler_gnu+:} false; then : 30457 $as_echo_n "(cached) " >&6 30458 else 30459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30460 /* end confdefs.h. */ 30461 30462 int 30463 main () 30464 { 30465 #ifndef __GNUC__ 30466 choke me 30467 #endif 30468 30469 ; 30470 return 0; 30471 } 30472 _ACEOF 30473 if ac_fn_cxx_try_compile "$LINENO"; then : 30474 ac_compiler_gnu=yes 30475 else 30476 ac_compiler_gnu=no 30477 fi 30478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30479 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 30480 30481 fi 30482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 30483 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 30484 if test $ac_compiler_gnu = yes; then 30485 GXX=yes 30486 else 30487 GXX= 30488 fi 30489 ac_test_CXXFLAGS=${CXXFLAGS+set} 30490 ac_save_CXXFLAGS=$CXXFLAGS 30491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 30492 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 30493 if ${ac_cv_prog_cxx_g+:} false; then : 30494 $as_echo_n "(cached) " >&6 30495 else 30496 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 30497 ac_cxx_werror_flag=yes 30498 ac_cv_prog_cxx_g=no 30499 CXXFLAGS="-g" 30500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30501 /* end confdefs.h. */ 30502 30503 int 30504 main () 30505 { 30506 30507 ; 30508 return 0; 30509 } 30510 _ACEOF 30511 if ac_fn_cxx_try_compile "$LINENO"; then : 30512 ac_cv_prog_cxx_g=yes 30513 else 30514 CXXFLAGS="" 30515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30516 /* end confdefs.h. */ 30517 30518 int 30519 main () 30520 { 30521 30522 ; 30523 return 0; 30524 } 30525 _ACEOF 30526 if ac_fn_cxx_try_compile "$LINENO"; then : 30527 30528 else 30529 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30530 CXXFLAGS="-g" 30531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30532 /* end confdefs.h. */ 30533 30534 int 30535 main () 30536 { 30537 30538 ; 30539 return 0; 30540 } 30541 _ACEOF 30542 if ac_fn_cxx_try_compile "$LINENO"; then : 30543 ac_cv_prog_cxx_g=yes 30544 fi 30545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30546 fi 30547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30548 fi 30549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 30550 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 30551 fi 30552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 30553 $as_echo "$ac_cv_prog_cxx_g" >&6; } 30554 if test "$ac_test_CXXFLAGS" = set; then 30555 CXXFLAGS=$ac_save_CXXFLAGS 30556 elif test $ac_cv_prog_cxx_g = yes; then 30557 if test "$GXX" = yes; then 30558 CXXFLAGS="-g -O2" 30559 else 30560 CXXFLAGS="-g" 30561 fi 30562 else 30563 if test "$GXX" = yes; then 30564 CXXFLAGS="-O2" 30565 else 30566 CXXFLAGS= 30567 fi 30568 fi 30569 ac_ext=cpp 30570 ac_cpp='$CXXCPP $CPPFLAGS' 30571 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30572 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30573 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30574 30575 30576 # 30577 # Setup the preprocessor (CPP and CXXCPP) 30578 # 30579 ac_ext=c 30580 ac_cpp='$CPP $CPPFLAGS' 30581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30583 ac_compiler_gnu=$ac_cv_c_compiler_gnu 30584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 30585 $as_echo_n "checking how to run the C preprocessor... " >&6; } 30586 # On Suns, sometimes $CPP names a directory. 30587 if test -n "$CPP" && test -d "$CPP"; then 30588 CPP= 30589 fi 30590 if test -z "$CPP"; then 30591 if ${ac_cv_prog_CPP+:} false; then : 30592 $as_echo_n "(cached) " >&6 30593 else 30594 # Double quotes because CPP needs to be expanded 30595 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 30596 do 30597 ac_preproc_ok=false 30598 for ac_c_preproc_warn_flag in '' yes 30599 do 30600 # Use a header file that comes with gcc, so configuring glibc 30601 # with a fresh cross-compiler works. 30602 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30603 # <limits.h> exists even on freestanding compilers. 30604 # On the NeXT, cc -E runs the code through the compiler's parser, 30605 # not just through cpp. "Syntax error" is here to catch this case. 30606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30607 /* end confdefs.h. */ 30608 #ifdef __STDC__ 30609 # include <limits.h> 30610 #else 30611 # include <assert.h> 30612 #endif 30613 Syntax error 30614 _ACEOF 30615 if ac_fn_c_try_cpp "$LINENO"; then : 30616 30617 else 30618 # Broken: fails on valid input. 30619 continue 30620 fi 30621 rm -f conftest.err conftest.i conftest.$ac_ext 30622 30623 # OK, works on sane cases. Now check whether nonexistent headers 30624 # can be detected and how. 30625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30626 /* end confdefs.h. */ 30627 #include <ac_nonexistent.h> 30628 _ACEOF 30629 if ac_fn_c_try_cpp "$LINENO"; then : 30630 # Broken: success on invalid input. 30631 continue 30632 else 30633 # Passes both tests. 30634 ac_preproc_ok=: 30635 break 30636 fi 30637 rm -f conftest.err conftest.i conftest.$ac_ext 30638 30639 done 30640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30641 rm -f conftest.i conftest.err conftest.$ac_ext 30642 if $ac_preproc_ok; then : 30643 break 30644 fi 30645 30646 done 30647 ac_cv_prog_CPP=$CPP 30648 30649 fi 30650 CPP=$ac_cv_prog_CPP 30651 else 30652 ac_cv_prog_CPP=$CPP 30653 fi 30654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 30655 $as_echo "$CPP" >&6; } 30656 ac_preproc_ok=false 30657 for ac_c_preproc_warn_flag in '' yes 30658 do 30659 # Use a header file that comes with gcc, so configuring glibc 30660 # with a fresh cross-compiler works. 30661 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 30662 # <limits.h> exists even on freestanding compilers. 30663 # On the NeXT, cc -E runs the code through the compiler's parser, 30664 # not just through cpp. "Syntax error" is here to catch this case. 30665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30666 /* end confdefs.h. */ 30667 #ifdef __STDC__ 30668 # include <limits.h> 30669 #else 30670 # include <assert.h> 30671 #endif 30672 Syntax error 30673 _ACEOF 30674 if ac_fn_c_try_cpp "$LINENO"; then : 30675 30676 else 30677 # Broken: fails on valid input. 30678 continue 30679 fi 30680 rm -f conftest.err conftest.i conftest.$ac_ext 30681 30682 # OK, works on sane cases. Now check whether nonexistent headers 30683 # can be detected and how. 30684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 30685 /* end confdefs.h. */ 30686 #include <ac_nonexistent.h> 30687 _ACEOF 30688 if ac_fn_c_try_cpp "$LINENO"; then : 30689 # Broken: success on invalid input. 30690 continue 30691 else 30692 # Passes both tests. 30693 ac_preproc_ok=: 30694 break 30695 fi 30696 rm -f conftest.err conftest.i conftest.$ac_ext 30697 30698 done 30699 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 30700 rm -f conftest.i conftest.err conftest.$ac_ext 30701 if $ac_preproc_ok; then : 30702 30703 else 30704 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 30705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 30706 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 30707 See \`config.log' for more details" "$LINENO" 5; } 30708 fi 30709 30710 ac_ext=cpp 30711 ac_cpp='$CXXCPP $CPPFLAGS' 30712 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30713 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30714 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30715 30716 30717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30718 30719 # First separate the path from the arguments. This will split at the first 30720 # space. 30721 complete="$CPP" 30722 path="${complete%% *}" 30723 tmp="$complete EOL" 30724 arguments="${tmp#* }" 30725 30726 # Input might be given as Windows format, start by converting to 30727 # unix format. 30728 new_path=`$CYGPATH -u "$path"` 30729 30730 # Now try to locate executable using which 30731 new_path=`$WHICH "$new_path" 2> /dev/null` 30732 # bat and cmd files are not always considered executable in cygwin causing which 30733 # to not find them 30734 if test "x$new_path" = x \ 30735 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30736 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30737 new_path=`$CYGPATH -u "$path"` 30738 fi 30739 if test "x$new_path" = x; then 30740 # Oops. Which didn't find the executable. 30741 # The splitting of arguments from the executable at a space might have been incorrect, 30742 # since paths with space are more likely in Windows. Give it another try with the whole 30743 # argument. 30744 path="$complete" 30745 arguments="EOL" 30746 new_path=`$CYGPATH -u "$path"` 30747 new_path=`$WHICH "$new_path" 2> /dev/null` 30748 # bat and cmd files are not always considered executable in cygwin causing which 30749 # to not find them 30750 if test "x$new_path" = x \ 30751 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30752 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30753 new_path=`$CYGPATH -u "$path"` 30754 fi 30755 if test "x$new_path" = x; then 30756 # It's still not found. Now this is an unrecoverable error. 30757 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30758 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30759 has_space=`$ECHO "$complete" | $GREP " "` 30760 if test "x$has_space" != x; then 30761 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30762 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30763 fi 30764 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30765 fi 30766 fi 30767 30768 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30769 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30770 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30771 # "foo.exe" is OK but "foo" is an error. 30772 # 30773 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30774 # It is also a way to make sure we got the proper file name for the real test later on. 30775 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30776 if test "x$test_shortpath" = x; then 30777 # Short path failed, file does not exist as specified. 30778 # Try adding .exe or .cmd 30779 if test -f "${new_path}.exe"; then 30780 input_to_shortpath="${new_path}.exe" 30781 elif test -f "${new_path}.cmd"; then 30782 input_to_shortpath="${new_path}.cmd" 30783 else 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 30785 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 30786 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30787 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30788 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30789 fi 30790 else 30791 input_to_shortpath="$new_path" 30792 fi 30793 30794 # Call helper function which possibly converts this using DOS-style short mode. 30795 # If so, the updated path is stored in $new_path. 30796 new_path="$input_to_shortpath" 30797 30798 input_path="$input_to_shortpath" 30799 # Check if we need to convert this using DOS-style short mode. If the path 30800 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30801 # take no chances and rewrite it. 30802 # Note: m4 eats our [], so we need to use [ and ] instead. 30803 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30804 if test "x$has_forbidden_chars" != x; then 30805 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30806 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30807 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30808 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30809 # Going to short mode and back again did indeed matter. Since short mode is 30810 # case insensitive, let's make it lowercase to improve readability. 30811 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30812 # Now convert it back to Unix-stile (cygpath) 30813 input_path=`$CYGPATH -u "$shortmode_path"` 30814 new_path="$input_path" 30815 fi 30816 fi 30817 30818 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30819 if test "x$test_cygdrive_prefix" = x; then 30820 # As a simple fix, exclude /usr/bin since it's not a real path. 30821 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30822 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30823 # a path prefixed by /cygdrive for fixpath to work. 30824 new_path="$CYGWIN_ROOT_PATH$input_path" 30825 fi 30826 fi 30827 30828 # remove trailing .exe if any 30829 new_path="${new_path/%.exe/}" 30830 30831 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30832 30833 # First separate the path from the arguments. This will split at the first 30834 # space. 30835 complete="$CPP" 30836 path="${complete%% *}" 30837 tmp="$complete EOL" 30838 arguments="${tmp#* }" 30839 30840 # Input might be given as Windows format, start by converting to 30841 # unix format. 30842 new_path="$path" 30843 30844 windows_path="$new_path" 30845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30846 unix_path=`$CYGPATH -u "$windows_path"` 30847 new_path="$unix_path" 30848 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30849 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30850 new_path="$unix_path" 30851 fi 30852 30853 30854 # Now try to locate executable using which 30855 new_path=`$WHICH "$new_path" 2> /dev/null` 30856 30857 if test "x$new_path" = x; then 30858 # Oops. Which didn't find the executable. 30859 # The splitting of arguments from the executable at a space might have been incorrect, 30860 # since paths with space are more likely in Windows. Give it another try with the whole 30861 # argument. 30862 path="$complete" 30863 arguments="EOL" 30864 new_path="$path" 30865 30866 windows_path="$new_path" 30867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30868 unix_path=`$CYGPATH -u "$windows_path"` 30869 new_path="$unix_path" 30870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30872 new_path="$unix_path" 30873 fi 30874 30875 30876 new_path=`$WHICH "$new_path" 2> /dev/null` 30877 30878 if test "x$new_path" = x; then 30879 # It's still not found. Now this is an unrecoverable error. 30880 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30881 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30882 has_space=`$ECHO "$complete" | $GREP " "` 30883 if test "x$has_space" != x; then 30884 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30885 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30886 fi 30887 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30888 fi 30889 fi 30890 30891 # Now new_path has a complete unix path to the binary 30892 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30893 # Keep paths in /bin as-is, but remove trailing .exe if any 30894 new_path="${new_path/%.exe/}" 30895 # Do not save /bin paths to all_fixpath_prefixes! 30896 else 30897 # Not in mixed or Windows style, start by that. 30898 new_path=`cmd //c echo $new_path` 30899 30900 input_path="$new_path" 30901 # Check if we need to convert this using DOS-style short mode. If the path 30902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30903 # take no chances and rewrite it. 30904 # Note: m4 eats our [], so we need to use [ and ] instead. 30905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30906 if test "x$has_forbidden_chars" != x; then 30907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30908 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30909 fi 30910 30911 # Output is in $new_path 30912 30913 windows_path="$new_path" 30914 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30915 unix_path=`$CYGPATH -u "$windows_path"` 30916 new_path="$unix_path" 30917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30918 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30919 new_path="$unix_path" 30920 fi 30921 30922 # remove trailing .exe if any 30923 new_path="${new_path/%.exe/}" 30924 30925 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30926 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30927 fi 30928 30929 else 30930 # We're on a posix platform. Hooray! :) 30931 # First separate the path from the arguments. This will split at the first 30932 # space. 30933 complete="$CPP" 30934 path="${complete%% *}" 30935 tmp="$complete EOL" 30936 arguments="${tmp#* }" 30937 30938 # Cannot rely on the command "which" here since it doesn't always work. 30939 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30940 if test -z "$is_absolute_path"; then 30941 # Path to executable is not absolute. Find it. 30942 IFS_save="$IFS" 30943 IFS=: 30944 for p in $PATH; do 30945 if test -f "$p/$path" && test -x "$p/$path"; then 30946 new_path="$p/$path" 30947 break 30948 fi 30949 done 30950 IFS="$IFS_save" 30951 else 30952 # This is an absolute path, we can use it without further modifications. 30953 new_path="$path" 30954 fi 30955 30956 if test "x$new_path" = x; then 30957 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 30958 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 30959 has_space=`$ECHO "$complete" | $GREP " "` 30960 if test "x$has_space" != x; then 30961 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30962 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30963 fi 30964 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 30965 fi 30966 fi 30967 30968 # Now join together the path and the arguments once again 30969 if test "x$arguments" != xEOL; then 30970 new_complete="$new_path ${arguments% *}" 30971 else 30972 new_complete="$new_path" 30973 fi 30974 30975 if test "x$complete" != "x$new_complete"; then 30976 CPP="$new_complete" 30977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 30978 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 30979 fi 30980 30981 ac_ext=cpp 30982 ac_cpp='$CXXCPP $CPPFLAGS' 30983 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 30984 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 30985 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 30986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 30987 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 30988 if test -z "$CXXCPP"; then 30989 if ${ac_cv_prog_CXXCPP+:} false; then : 30990 $as_echo_n "(cached) " >&6 30991 else 30992 # Double quotes because CXXCPP needs to be expanded 30993 for CXXCPP in "$CXX -E" "/lib/cpp" 30994 do 30995 ac_preproc_ok=false 30996 for ac_cxx_preproc_warn_flag in '' yes 30997 do 30998 # Use a header file that comes with gcc, so configuring glibc 30999 # with a fresh cross-compiler works. 31000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31001 # <limits.h> exists even on freestanding compilers. 31002 # On the NeXT, cc -E runs the code through the compiler's parser, 31003 # not just through cpp. "Syntax error" is here to catch this case. 31004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31005 /* end confdefs.h. */ 31006 #ifdef __STDC__ 31007 # include <limits.h> 31008 #else 31009 # include <assert.h> 31010 #endif 31011 Syntax error 31012 _ACEOF 31013 if ac_fn_cxx_try_cpp "$LINENO"; then : 31014 31015 else 31016 # Broken: fails on valid input. 31017 continue 31018 fi 31019 rm -f conftest.err conftest.i conftest.$ac_ext 31020 31021 # OK, works on sane cases. Now check whether nonexistent headers 31022 # can be detected and how. 31023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31024 /* end confdefs.h. */ 31025 #include <ac_nonexistent.h> 31026 _ACEOF 31027 if ac_fn_cxx_try_cpp "$LINENO"; then : 31028 # Broken: success on invalid input. 31029 continue 31030 else 31031 # Passes both tests. 31032 ac_preproc_ok=: 31033 break 31034 fi 31035 rm -f conftest.err conftest.i conftest.$ac_ext 31036 31037 done 31038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31039 rm -f conftest.i conftest.err conftest.$ac_ext 31040 if $ac_preproc_ok; then : 31041 break 31042 fi 31043 31044 done 31045 ac_cv_prog_CXXCPP=$CXXCPP 31046 31047 fi 31048 CXXCPP=$ac_cv_prog_CXXCPP 31049 else 31050 ac_cv_prog_CXXCPP=$CXXCPP 31051 fi 31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 31053 $as_echo "$CXXCPP" >&6; } 31054 ac_preproc_ok=false 31055 for ac_cxx_preproc_warn_flag in '' yes 31056 do 31057 # Use a header file that comes with gcc, so configuring glibc 31058 # with a fresh cross-compiler works. 31059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 31060 # <limits.h> exists even on freestanding compilers. 31061 # On the NeXT, cc -E runs the code through the compiler's parser, 31062 # not just through cpp. "Syntax error" is here to catch this case. 31063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31064 /* end confdefs.h. */ 31065 #ifdef __STDC__ 31066 # include <limits.h> 31067 #else 31068 # include <assert.h> 31069 #endif 31070 Syntax error 31071 _ACEOF 31072 if ac_fn_cxx_try_cpp "$LINENO"; then : 31073 31074 else 31075 # Broken: fails on valid input. 31076 continue 31077 fi 31078 rm -f conftest.err conftest.i conftest.$ac_ext 31079 31080 # OK, works on sane cases. Now check whether nonexistent headers 31081 # can be detected and how. 31082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31083 /* end confdefs.h. */ 31084 #include <ac_nonexistent.h> 31085 _ACEOF 31086 if ac_fn_cxx_try_cpp "$LINENO"; then : 31087 # Broken: success on invalid input. 31088 continue 31089 else 31090 # Passes both tests. 31091 ac_preproc_ok=: 31092 break 31093 fi 31094 rm -f conftest.err conftest.i conftest.$ac_ext 31095 31096 done 31097 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 31098 rm -f conftest.i conftest.err conftest.$ac_ext 31099 if $ac_preproc_ok; then : 31100 31101 else 31102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 31103 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 31104 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 31105 See \`config.log' for more details" "$LINENO" 5; } 31106 fi 31107 31108 ac_ext=cpp 31109 ac_cpp='$CXXCPP $CPPFLAGS' 31110 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31111 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31112 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31113 31114 31115 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31116 31117 # First separate the path from the arguments. This will split at the first 31118 # space. 31119 complete="$CXXCPP" 31120 path="${complete%% *}" 31121 tmp="$complete EOL" 31122 arguments="${tmp#* }" 31123 31124 # Input might be given as Windows format, start by converting to 31125 # unix format. 31126 new_path=`$CYGPATH -u "$path"` 31127 31128 # Now try to locate executable using which 31129 new_path=`$WHICH "$new_path" 2> /dev/null` 31130 # bat and cmd files are not always considered executable in cygwin causing which 31131 # to not find them 31132 if test "x$new_path" = x \ 31133 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31134 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31135 new_path=`$CYGPATH -u "$path"` 31136 fi 31137 if test "x$new_path" = x; then 31138 # Oops. Which didn't find the executable. 31139 # The splitting of arguments from the executable at a space might have been incorrect, 31140 # since paths with space are more likely in Windows. Give it another try with the whole 31141 # argument. 31142 path="$complete" 31143 arguments="EOL" 31144 new_path=`$CYGPATH -u "$path"` 31145 new_path=`$WHICH "$new_path" 2> /dev/null` 31146 # bat and cmd files are not always considered executable in cygwin causing which 31147 # to not find them 31148 if test "x$new_path" = x \ 31149 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31150 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31151 new_path=`$CYGPATH -u "$path"` 31152 fi 31153 if test "x$new_path" = x; then 31154 # It's still not found. Now this is an unrecoverable error. 31155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31156 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31157 has_space=`$ECHO "$complete" | $GREP " "` 31158 if test "x$has_space" != x; then 31159 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31160 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31161 fi 31162 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31163 fi 31164 fi 31165 31166 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31167 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31168 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31169 # "foo.exe" is OK but "foo" is an error. 31170 # 31171 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31172 # It is also a way to make sure we got the proper file name for the real test later on. 31173 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31174 if test "x$test_shortpath" = x; then 31175 # Short path failed, file does not exist as specified. 31176 # Try adding .exe or .cmd 31177 if test -f "${new_path}.exe"; then 31178 input_to_shortpath="${new_path}.exe" 31179 elif test -f "${new_path}.cmd"; then 31180 input_to_shortpath="${new_path}.cmd" 31181 else 31182 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 31183 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 31184 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31185 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31186 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31187 fi 31188 else 31189 input_to_shortpath="$new_path" 31190 fi 31191 31192 # Call helper function which possibly converts this using DOS-style short mode. 31193 # If so, the updated path is stored in $new_path. 31194 new_path="$input_to_shortpath" 31195 31196 input_path="$input_to_shortpath" 31197 # Check if we need to convert this using DOS-style short mode. If the path 31198 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31199 # take no chances and rewrite it. 31200 # Note: m4 eats our [], so we need to use [ and ] instead. 31201 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31202 if test "x$has_forbidden_chars" != x; then 31203 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31204 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31205 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31206 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31207 # Going to short mode and back again did indeed matter. Since short mode is 31208 # case insensitive, let's make it lowercase to improve readability. 31209 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31210 # Now convert it back to Unix-stile (cygpath) 31211 input_path=`$CYGPATH -u "$shortmode_path"` 31212 new_path="$input_path" 31213 fi 31214 fi 31215 31216 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31217 if test "x$test_cygdrive_prefix" = x; then 31218 # As a simple fix, exclude /usr/bin since it's not a real path. 31219 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31220 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31221 # a path prefixed by /cygdrive for fixpath to work. 31222 new_path="$CYGWIN_ROOT_PATH$input_path" 31223 fi 31224 fi 31225 31226 # remove trailing .exe if any 31227 new_path="${new_path/%.exe/}" 31228 31229 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31230 31231 # First separate the path from the arguments. This will split at the first 31232 # space. 31233 complete="$CXXCPP" 31234 path="${complete%% *}" 31235 tmp="$complete EOL" 31236 arguments="${tmp#* }" 31237 31238 # Input might be given as Windows format, start by converting to 31239 # unix format. 31240 new_path="$path" 31241 31242 windows_path="$new_path" 31243 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31244 unix_path=`$CYGPATH -u "$windows_path"` 31245 new_path="$unix_path" 31246 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31247 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31248 new_path="$unix_path" 31249 fi 31250 31251 31252 # Now try to locate executable using which 31253 new_path=`$WHICH "$new_path" 2> /dev/null` 31254 31255 if test "x$new_path" = x; then 31256 # Oops. Which didn't find the executable. 31257 # The splitting of arguments from the executable at a space might have been incorrect, 31258 # since paths with space are more likely in Windows. Give it another try with the whole 31259 # argument. 31260 path="$complete" 31261 arguments="EOL" 31262 new_path="$path" 31263 31264 windows_path="$new_path" 31265 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31266 unix_path=`$CYGPATH -u "$windows_path"` 31267 new_path="$unix_path" 31268 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31269 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31270 new_path="$unix_path" 31271 fi 31272 31273 31274 new_path=`$WHICH "$new_path" 2> /dev/null` 31275 31276 if test "x$new_path" = x; then 31277 # It's still not found. Now this is an unrecoverable error. 31278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31279 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31280 has_space=`$ECHO "$complete" | $GREP " "` 31281 if test "x$has_space" != x; then 31282 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31283 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31284 fi 31285 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31286 fi 31287 fi 31288 31289 # Now new_path has a complete unix path to the binary 31290 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31291 # Keep paths in /bin as-is, but remove trailing .exe if any 31292 new_path="${new_path/%.exe/}" 31293 # Do not save /bin paths to all_fixpath_prefixes! 31294 else 31295 # Not in mixed or Windows style, start by that. 31296 new_path=`cmd //c echo $new_path` 31297 31298 input_path="$new_path" 31299 # Check if we need to convert this using DOS-style short mode. If the path 31300 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31301 # take no chances and rewrite it. 31302 # Note: m4 eats our [], so we need to use [ and ] instead. 31303 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31304 if test "x$has_forbidden_chars" != x; then 31305 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31306 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31307 fi 31308 31309 # Output is in $new_path 31310 31311 windows_path="$new_path" 31312 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31313 unix_path=`$CYGPATH -u "$windows_path"` 31314 new_path="$unix_path" 31315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31316 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31317 new_path="$unix_path" 31318 fi 31319 31320 # remove trailing .exe if any 31321 new_path="${new_path/%.exe/}" 31322 31323 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31324 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31325 fi 31326 31327 else 31328 # We're on a posix platform. Hooray! :) 31329 # First separate the path from the arguments. This will split at the first 31330 # space. 31331 complete="$CXXCPP" 31332 path="${complete%% *}" 31333 tmp="$complete EOL" 31334 arguments="${tmp#* }" 31335 31336 # Cannot rely on the command "which" here since it doesn't always work. 31337 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31338 if test -z "$is_absolute_path"; then 31339 # Path to executable is not absolute. Find it. 31340 IFS_save="$IFS" 31341 IFS=: 31342 for p in $PATH; do 31343 if test -f "$p/$path" && test -x "$p/$path"; then 31344 new_path="$p/$path" 31345 break 31346 fi 31347 done 31348 IFS="$IFS_save" 31349 else 31350 # This is an absolute path, we can use it without further modifications. 31351 new_path="$path" 31352 fi 31353 31354 if test "x$new_path" = x; then 31355 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 31356 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 31357 has_space=`$ECHO "$complete" | $GREP " "` 31358 if test "x$has_space" != x; then 31359 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31360 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31361 fi 31362 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 31363 fi 31364 fi 31365 31366 # Now join together the path and the arguments once again 31367 if test "x$arguments" != xEOL; then 31368 new_complete="$new_path ${arguments% *}" 31369 else 31370 new_complete="$new_path" 31371 fi 31372 31373 if test "x$complete" != "x$new_complete"; then 31374 CXXCPP="$new_complete" 31375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 31376 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 31377 fi 31378 31379 31380 # 31381 # Setup the linker (LD) 31382 # 31383 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 31384 # In the Microsoft toolchain we have a separate LD command "link". 31385 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 31386 # a cygwin program for something completely different. 31387 # Extract the first word of "link", so it can be a program name with args. 31388 set dummy link; ac_word=$2 31389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31390 $as_echo_n "checking for $ac_word... " >&6; } 31391 if ${ac_cv_prog_LD+:} false; then : 31392 $as_echo_n "(cached) " >&6 31393 else 31394 if test -n "$LD"; then 31395 ac_cv_prog_LD="$LD" # Let the user override the test. 31396 else 31397 ac_prog_rejected=no 31398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31399 for as_dir in $PATH 31400 do 31401 IFS=$as_save_IFS 31402 test -z "$as_dir" && as_dir=. 31403 for ac_exec_ext in '' $ac_executable_extensions; do 31404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31405 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 31406 ac_prog_rejected=yes 31407 continue 31408 fi 31409 ac_cv_prog_LD="link" 31410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31411 break 2 31412 fi 31413 done 31414 done 31415 IFS=$as_save_IFS 31416 31417 if test $ac_prog_rejected = yes; then 31418 # We found a bogon in the path, so make sure we never use it. 31419 set dummy $ac_cv_prog_LD 31420 shift 31421 if test $# != 0; then 31422 # We chose a different compiler from the bogus one. 31423 # However, it has the same basename, so the bogon will be chosen 31424 # first if we set LD to just the basename; use the full file name. 31425 shift 31426 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 31427 fi 31428 fi 31429 fi 31430 fi 31431 LD=$ac_cv_prog_LD 31432 if test -n "$LD"; then 31433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 31434 $as_echo "$LD" >&6; } 31435 else 31436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31437 $as_echo "no" >&6; } 31438 fi 31439 31440 31441 31442 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31443 31444 # First separate the path from the arguments. This will split at the first 31445 # space. 31446 complete="$LD" 31447 path="${complete%% *}" 31448 tmp="$complete EOL" 31449 arguments="${tmp#* }" 31450 31451 # Input might be given as Windows format, start by converting to 31452 # unix format. 31453 new_path=`$CYGPATH -u "$path"` 31454 31455 # Now try to locate executable using which 31456 new_path=`$WHICH "$new_path" 2> /dev/null` 31457 # bat and cmd files are not always considered executable in cygwin causing which 31458 # to not find them 31459 if test "x$new_path" = x \ 31460 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31461 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31462 new_path=`$CYGPATH -u "$path"` 31463 fi 31464 if test "x$new_path" = x; then 31465 # Oops. Which didn't find the executable. 31466 # The splitting of arguments from the executable at a space might have been incorrect, 31467 # since paths with space are more likely in Windows. Give it another try with the whole 31468 # argument. 31469 path="$complete" 31470 arguments="EOL" 31471 new_path=`$CYGPATH -u "$path"` 31472 new_path=`$WHICH "$new_path" 2> /dev/null` 31473 # bat and cmd files are not always considered executable in cygwin causing which 31474 # to not find them 31475 if test "x$new_path" = x \ 31476 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31477 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31478 new_path=`$CYGPATH -u "$path"` 31479 fi 31480 if test "x$new_path" = x; then 31481 # It's still not found. Now this is an unrecoverable error. 31482 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31483 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31484 has_space=`$ECHO "$complete" | $GREP " "` 31485 if test "x$has_space" != x; then 31486 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31487 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31488 fi 31489 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31490 fi 31491 fi 31492 31493 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31494 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31495 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31496 # "foo.exe" is OK but "foo" is an error. 31497 # 31498 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31499 # It is also a way to make sure we got the proper file name for the real test later on. 31500 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31501 if test "x$test_shortpath" = x; then 31502 # Short path failed, file does not exist as specified. 31503 # Try adding .exe or .cmd 31504 if test -f "${new_path}.exe"; then 31505 input_to_shortpath="${new_path}.exe" 31506 elif test -f "${new_path}.cmd"; then 31507 input_to_shortpath="${new_path}.cmd" 31508 else 31509 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 31510 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 31511 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31512 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31513 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31514 fi 31515 else 31516 input_to_shortpath="$new_path" 31517 fi 31518 31519 # Call helper function which possibly converts this using DOS-style short mode. 31520 # If so, the updated path is stored in $new_path. 31521 new_path="$input_to_shortpath" 31522 31523 input_path="$input_to_shortpath" 31524 # Check if we need to convert this using DOS-style short mode. If the path 31525 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31526 # take no chances and rewrite it. 31527 # Note: m4 eats our [], so we need to use [ and ] instead. 31528 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31529 if test "x$has_forbidden_chars" != x; then 31530 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31531 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31532 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31533 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31534 # Going to short mode and back again did indeed matter. Since short mode is 31535 # case insensitive, let's make it lowercase to improve readability. 31536 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31537 # Now convert it back to Unix-stile (cygpath) 31538 input_path=`$CYGPATH -u "$shortmode_path"` 31539 new_path="$input_path" 31540 fi 31541 fi 31542 31543 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31544 if test "x$test_cygdrive_prefix" = x; then 31545 # As a simple fix, exclude /usr/bin since it's not a real path. 31546 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31547 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31548 # a path prefixed by /cygdrive for fixpath to work. 31549 new_path="$CYGWIN_ROOT_PATH$input_path" 31550 fi 31551 fi 31552 31553 # remove trailing .exe if any 31554 new_path="${new_path/%.exe/}" 31555 31556 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31557 31558 # First separate the path from the arguments. This will split at the first 31559 # space. 31560 complete="$LD" 31561 path="${complete%% *}" 31562 tmp="$complete EOL" 31563 arguments="${tmp#* }" 31564 31565 # Input might be given as Windows format, start by converting to 31566 # unix format. 31567 new_path="$path" 31568 31569 windows_path="$new_path" 31570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31571 unix_path=`$CYGPATH -u "$windows_path"` 31572 new_path="$unix_path" 31573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31575 new_path="$unix_path" 31576 fi 31577 31578 31579 # Now try to locate executable using which 31580 new_path=`$WHICH "$new_path" 2> /dev/null` 31581 31582 if test "x$new_path" = x; then 31583 # Oops. Which didn't find the executable. 31584 # The splitting of arguments from the executable at a space might have been incorrect, 31585 # since paths with space are more likely in Windows. Give it another try with the whole 31586 # argument. 31587 path="$complete" 31588 arguments="EOL" 31589 new_path="$path" 31590 31591 windows_path="$new_path" 31592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31593 unix_path=`$CYGPATH -u "$windows_path"` 31594 new_path="$unix_path" 31595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31597 new_path="$unix_path" 31598 fi 31599 31600 31601 new_path=`$WHICH "$new_path" 2> /dev/null` 31602 31603 if test "x$new_path" = x; then 31604 # It's still not found. Now this is an unrecoverable error. 31605 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31606 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31607 has_space=`$ECHO "$complete" | $GREP " "` 31608 if test "x$has_space" != x; then 31609 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31610 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31611 fi 31612 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31613 fi 31614 fi 31615 31616 # Now new_path has a complete unix path to the binary 31617 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31618 # Keep paths in /bin as-is, but remove trailing .exe if any 31619 new_path="${new_path/%.exe/}" 31620 # Do not save /bin paths to all_fixpath_prefixes! 31621 else 31622 # Not in mixed or Windows style, start by that. 31623 new_path=`cmd //c echo $new_path` 31624 31625 input_path="$new_path" 31626 # Check if we need to convert this using DOS-style short mode. If the path 31627 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31628 # take no chances and rewrite it. 31629 # Note: m4 eats our [], so we need to use [ and ] instead. 31630 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31631 if test "x$has_forbidden_chars" != x; then 31632 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31633 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31634 fi 31635 31636 # Output is in $new_path 31637 31638 windows_path="$new_path" 31639 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31640 unix_path=`$CYGPATH -u "$windows_path"` 31641 new_path="$unix_path" 31642 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31643 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31644 new_path="$unix_path" 31645 fi 31646 31647 # remove trailing .exe if any 31648 new_path="${new_path/%.exe/}" 31649 31650 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31651 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31652 fi 31653 31654 else 31655 # We're on a posix platform. Hooray! :) 31656 # First separate the path from the arguments. This will split at the first 31657 # space. 31658 complete="$LD" 31659 path="${complete%% *}" 31660 tmp="$complete EOL" 31661 arguments="${tmp#* }" 31662 31663 # Cannot rely on the command "which" here since it doesn't always work. 31664 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31665 if test -z "$is_absolute_path"; then 31666 # Path to executable is not absolute. Find it. 31667 IFS_save="$IFS" 31668 IFS=: 31669 for p in $PATH; do 31670 if test -f "$p/$path" && test -x "$p/$path"; then 31671 new_path="$p/$path" 31672 break 31673 fi 31674 done 31675 IFS="$IFS_save" 31676 else 31677 # This is an absolute path, we can use it without further modifications. 31678 new_path="$path" 31679 fi 31680 31681 if test "x$new_path" = x; then 31682 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 31683 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 31684 has_space=`$ECHO "$complete" | $GREP " "` 31685 if test "x$has_space" != x; then 31686 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31687 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31688 fi 31689 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 31690 fi 31691 fi 31692 31693 # Now join together the path and the arguments once again 31694 if test "x$arguments" != xEOL; then 31695 new_complete="$new_path ${arguments% *}" 31696 else 31697 new_complete="$new_path" 31698 fi 31699 31700 if test "x$complete" != "x$new_complete"; then 31701 LD="$new_complete" 31702 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 31703 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 31704 fi 31705 31706 # Verify that we indeed succeeded with this trick. 31707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 31708 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 31709 "$LD" --version > /dev/null 31710 if test $? -eq 0 ; then 31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31712 $as_echo "no" >&6; } 31713 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 31714 else 31715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 31716 $as_echo "yes" >&6; } 31717 fi 31718 LDCXX="$LD" 31719 else 31720 # All other toolchains use the compiler to link. 31721 LD="$CC" 31722 LDCXX="$CXX" 31723 fi 31724 31725 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 31726 31727 31728 # 31729 # Setup the assembler (AS) 31730 # 31731 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 31732 # FIXME: should this really be solaris, or solstudio? 31733 31734 31735 # Publish this variable in the help. 31736 31737 31738 if test "x$AS" = x; then 31739 # The variable is not set by user, try to locate tool using the code snippet 31740 for ac_prog in as 31741 do 31742 # Extract the first word of "$ac_prog", so it can be a program name with args. 31743 set dummy $ac_prog; ac_word=$2 31744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31745 $as_echo_n "checking for $ac_word... " >&6; } 31746 if ${ac_cv_path_AS+:} false; then : 31747 $as_echo_n "(cached) " >&6 31748 else 31749 case $AS in 31750 [\\/]* | ?:[\\/]*) 31751 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31752 ;; 31753 *) 31754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31755 for as_dir in $PATH 31756 do 31757 IFS=$as_save_IFS 31758 test -z "$as_dir" && as_dir=. 31759 for ac_exec_ext in '' $ac_executable_extensions; do 31760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31761 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31763 break 2 31764 fi 31765 done 31766 done 31767 IFS=$as_save_IFS 31768 31769 ;; 31770 esac 31771 fi 31772 AS=$ac_cv_path_AS 31773 if test -n "$AS"; then 31774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31775 $as_echo "$AS" >&6; } 31776 else 31777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31778 $as_echo "no" >&6; } 31779 fi 31780 31781 31782 test -n "$AS" && break 31783 done 31784 31785 else 31786 # The variable is set, but is it from the command line or the environment? 31787 31788 # Try to remove the string !AS! from our list. 31789 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 31790 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31791 # If it failed, the variable was not from the command line. Ignore it, 31792 # but warn the user (except for BASH, which is always set by the calling BASH). 31793 if test "xAS" != xBASH; then 31794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 31795 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 31796 fi 31797 # Try to locate tool using the code snippet 31798 for ac_prog in as 31799 do 31800 # Extract the first word of "$ac_prog", so it can be a program name with args. 31801 set dummy $ac_prog; ac_word=$2 31802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31803 $as_echo_n "checking for $ac_word... " >&6; } 31804 if ${ac_cv_path_AS+:} false; then : 31805 $as_echo_n "(cached) " >&6 31806 else 31807 case $AS in 31808 [\\/]* | ?:[\\/]*) 31809 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31810 ;; 31811 *) 31812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31813 for as_dir in $PATH 31814 do 31815 IFS=$as_save_IFS 31816 test -z "$as_dir" && as_dir=. 31817 for ac_exec_ext in '' $ac_executable_extensions; do 31818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31819 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31821 break 2 31822 fi 31823 done 31824 done 31825 IFS=$as_save_IFS 31826 31827 ;; 31828 esac 31829 fi 31830 AS=$ac_cv_path_AS 31831 if test -n "$AS"; then 31832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31833 $as_echo "$AS" >&6; } 31834 else 31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31836 $as_echo "no" >&6; } 31837 fi 31838 31839 31840 test -n "$AS" && break 31841 done 31842 31843 else 31844 # If it succeeded, then it was overridden by the user. We will use it 31845 # for the tool. 31846 31847 # First remove it from the list of overridden variables, so we can test 31848 # for unknown variables in the end. 31849 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31850 31851 # Check if the provided tool contains a complete path. 31852 tool_specified="$AS" 31853 tool_basename="${tool_specified##*/}" 31854 if test "x$tool_basename" = "x$tool_specified"; then 31855 # A command without a complete path is provided, search $PATH. 31856 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 31857 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 31858 # Extract the first word of "$tool_basename", so it can be a program name with args. 31859 set dummy $tool_basename; ac_word=$2 31860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31861 $as_echo_n "checking for $ac_word... " >&6; } 31862 if ${ac_cv_path_AS+:} false; then : 31863 $as_echo_n "(cached) " >&6 31864 else 31865 case $AS in 31866 [\\/]* | ?:[\\/]*) 31867 ac_cv_path_AS="$AS" # Let the user override the test with a path. 31868 ;; 31869 *) 31870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31871 for as_dir in $PATH 31872 do 31873 IFS=$as_save_IFS 31874 test -z "$as_dir" && as_dir=. 31875 for ac_exec_ext in '' $ac_executable_extensions; do 31876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31877 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 31878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31879 break 2 31880 fi 31881 done 31882 done 31883 IFS=$as_save_IFS 31884 31885 ;; 31886 esac 31887 fi 31888 AS=$ac_cv_path_AS 31889 if test -n "$AS"; then 31890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 31891 $as_echo "$AS" >&6; } 31892 else 31893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31894 $as_echo "no" >&6; } 31895 fi 31896 31897 31898 if test "x$AS" = x; then 31899 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31900 fi 31901 else 31902 # Otherwise we believe it is a complete path. Use it as it is. 31903 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 31904 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 31905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 31906 $as_echo_n "checking for AS... " >&6; } 31907 if test ! -x "$tool_specified"; then 31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31909 $as_echo "not found" >&6; } 31910 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 31911 fi 31912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31913 $as_echo "$tool_specified" >&6; } 31914 fi 31915 fi 31916 fi 31917 31918 31919 31920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31921 31922 # First separate the path from the arguments. This will split at the first 31923 # space. 31924 complete="$AS" 31925 path="${complete%% *}" 31926 tmp="$complete EOL" 31927 arguments="${tmp#* }" 31928 31929 # Input might be given as Windows format, start by converting to 31930 # unix format. 31931 new_path=`$CYGPATH -u "$path"` 31932 31933 # Now try to locate executable using which 31934 new_path=`$WHICH "$new_path" 2> /dev/null` 31935 # bat and cmd files are not always considered executable in cygwin causing which 31936 # to not find them 31937 if test "x$new_path" = x \ 31938 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31939 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31940 new_path=`$CYGPATH -u "$path"` 31941 fi 31942 if test "x$new_path" = x; then 31943 # Oops. Which didn't find the executable. 31944 # The splitting of arguments from the executable at a space might have been incorrect, 31945 # since paths with space are more likely in Windows. Give it another try with the whole 31946 # argument. 31947 path="$complete" 31948 arguments="EOL" 31949 new_path=`$CYGPATH -u "$path"` 31950 new_path=`$WHICH "$new_path" 2> /dev/null` 31951 # bat and cmd files are not always considered executable in cygwin causing which 31952 # to not find them 31953 if test "x$new_path" = x \ 31954 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31955 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31956 new_path=`$CYGPATH -u "$path"` 31957 fi 31958 if test "x$new_path" = x; then 31959 # It's still not found. Now this is an unrecoverable error. 31960 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 31961 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 31962 has_space=`$ECHO "$complete" | $GREP " "` 31963 if test "x$has_space" != x; then 31964 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31965 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31966 fi 31967 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31968 fi 31969 fi 31970 31971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31974 # "foo.exe" is OK but "foo" is an error. 31975 # 31976 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31977 # It is also a way to make sure we got the proper file name for the real test later on. 31978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31979 if test "x$test_shortpath" = x; then 31980 # Short path failed, file does not exist as specified. 31981 # Try adding .exe or .cmd 31982 if test -f "${new_path}.exe"; then 31983 input_to_shortpath="${new_path}.exe" 31984 elif test -f "${new_path}.cmd"; then 31985 input_to_shortpath="${new_path}.cmd" 31986 else 31987 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 31988 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 31989 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31990 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31991 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 31992 fi 31993 else 31994 input_to_shortpath="$new_path" 31995 fi 31996 31997 # Call helper function which possibly converts this using DOS-style short mode. 31998 # If so, the updated path is stored in $new_path. 31999 new_path="$input_to_shortpath" 32000 32001 input_path="$input_to_shortpath" 32002 # Check if we need to convert this using DOS-style short mode. If the path 32003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32004 # take no chances and rewrite it. 32005 # Note: m4 eats our [], so we need to use [ and ] instead. 32006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32007 if test "x$has_forbidden_chars" != x; then 32008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32012 # Going to short mode and back again did indeed matter. Since short mode is 32013 # case insensitive, let's make it lowercase to improve readability. 32014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32015 # Now convert it back to Unix-stile (cygpath) 32016 input_path=`$CYGPATH -u "$shortmode_path"` 32017 new_path="$input_path" 32018 fi 32019 fi 32020 32021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32022 if test "x$test_cygdrive_prefix" = x; then 32023 # As a simple fix, exclude /usr/bin since it's not a real path. 32024 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32026 # a path prefixed by /cygdrive for fixpath to work. 32027 new_path="$CYGWIN_ROOT_PATH$input_path" 32028 fi 32029 fi 32030 32031 # remove trailing .exe if any 32032 new_path="${new_path/%.exe/}" 32033 32034 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32035 32036 # First separate the path from the arguments. This will split at the first 32037 # space. 32038 complete="$AS" 32039 path="${complete%% *}" 32040 tmp="$complete EOL" 32041 arguments="${tmp#* }" 32042 32043 # Input might be given as Windows format, start by converting to 32044 # unix format. 32045 new_path="$path" 32046 32047 windows_path="$new_path" 32048 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32049 unix_path=`$CYGPATH -u "$windows_path"` 32050 new_path="$unix_path" 32051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32052 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32053 new_path="$unix_path" 32054 fi 32055 32056 32057 # Now try to locate executable using which 32058 new_path=`$WHICH "$new_path" 2> /dev/null` 32059 32060 if test "x$new_path" = x; then 32061 # Oops. Which didn't find the executable. 32062 # The splitting of arguments from the executable at a space might have been incorrect, 32063 # since paths with space are more likely in Windows. Give it another try with the whole 32064 # argument. 32065 path="$complete" 32066 arguments="EOL" 32067 new_path="$path" 32068 32069 windows_path="$new_path" 32070 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32071 unix_path=`$CYGPATH -u "$windows_path"` 32072 new_path="$unix_path" 32073 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32074 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32075 new_path="$unix_path" 32076 fi 32077 32078 32079 new_path=`$WHICH "$new_path" 2> /dev/null` 32080 32081 if test "x$new_path" = x; then 32082 # It's still not found. Now this is an unrecoverable error. 32083 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32084 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32085 has_space=`$ECHO "$complete" | $GREP " "` 32086 if test "x$has_space" != x; then 32087 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32088 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32089 fi 32090 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32091 fi 32092 fi 32093 32094 # Now new_path has a complete unix path to the binary 32095 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32096 # Keep paths in /bin as-is, but remove trailing .exe if any 32097 new_path="${new_path/%.exe/}" 32098 # Do not save /bin paths to all_fixpath_prefixes! 32099 else 32100 # Not in mixed or Windows style, start by that. 32101 new_path=`cmd //c echo $new_path` 32102 32103 input_path="$new_path" 32104 # Check if we need to convert this using DOS-style short mode. If the path 32105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32106 # take no chances and rewrite it. 32107 # Note: m4 eats our [], so we need to use [ and ] instead. 32108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32109 if test "x$has_forbidden_chars" != x; then 32110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32111 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32112 fi 32113 32114 # Output is in $new_path 32115 32116 windows_path="$new_path" 32117 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32118 unix_path=`$CYGPATH -u "$windows_path"` 32119 new_path="$unix_path" 32120 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32121 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32122 new_path="$unix_path" 32123 fi 32124 32125 # remove trailing .exe if any 32126 new_path="${new_path/%.exe/}" 32127 32128 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32129 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32130 fi 32131 32132 else 32133 # We're on a posix platform. Hooray! :) 32134 # First separate the path from the arguments. This will split at the first 32135 # space. 32136 complete="$AS" 32137 path="${complete%% *}" 32138 tmp="$complete EOL" 32139 arguments="${tmp#* }" 32140 32141 # Cannot rely on the command "which" here since it doesn't always work. 32142 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32143 if test -z "$is_absolute_path"; then 32144 # Path to executable is not absolute. Find it. 32145 IFS_save="$IFS" 32146 IFS=: 32147 for p in $PATH; do 32148 if test -f "$p/$path" && test -x "$p/$path"; then 32149 new_path="$p/$path" 32150 break 32151 fi 32152 done 32153 IFS="$IFS_save" 32154 else 32155 # This is an absolute path, we can use it without further modifications. 32156 new_path="$path" 32157 fi 32158 32159 if test "x$new_path" = x; then 32160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 32161 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 32162 has_space=`$ECHO "$complete" | $GREP " "` 32163 if test "x$has_space" != x; then 32164 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32165 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32166 fi 32167 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 32168 fi 32169 fi 32170 32171 # Now join together the path and the arguments once again 32172 if test "x$arguments" != xEOL; then 32173 new_complete="$new_path ${arguments% *}" 32174 else 32175 new_complete="$new_path" 32176 fi 32177 32178 if test "x$complete" != "x$new_complete"; then 32179 AS="$new_complete" 32180 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 32181 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 32182 fi 32183 32184 else 32185 # FIXME: is this correct for microsoft? 32186 AS="$CC -c" 32187 fi 32188 32189 32190 # 32191 # Setup the archiver (AR) 32192 # 32193 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32194 # The corresponding ar tool is lib.exe (used to create static libraries) 32195 # Extract the first word of "lib", so it can be a program name with args. 32196 set dummy lib; ac_word=$2 32197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32198 $as_echo_n "checking for $ac_word... " >&6; } 32199 if ${ac_cv_prog_AR+:} false; then : 32200 $as_echo_n "(cached) " >&6 32201 else 32202 if test -n "$AR"; then 32203 ac_cv_prog_AR="$AR" # Let the user override the test. 32204 else 32205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32206 for as_dir in $PATH 32207 do 32208 IFS=$as_save_IFS 32209 test -z "$as_dir" && as_dir=. 32210 for ac_exec_ext in '' $ac_executable_extensions; do 32211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32212 ac_cv_prog_AR="lib" 32213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32214 break 2 32215 fi 32216 done 32217 done 32218 IFS=$as_save_IFS 32219 32220 fi 32221 fi 32222 AR=$ac_cv_prog_AR 32223 if test -n "$AR"; then 32224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32225 $as_echo "$AR" >&6; } 32226 else 32227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32228 $as_echo "no" >&6; } 32229 fi 32230 32231 32232 else 32233 32234 32235 # Publish this variable in the help. 32236 32237 32238 if test "x$AR" = x; then 32239 # The variable is not set by user, try to locate tool using the code snippet 32240 if test -n "$ac_tool_prefix"; then 32241 for ac_prog in ar 32242 do 32243 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32244 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32246 $as_echo_n "checking for $ac_word... " >&6; } 32247 if ${ac_cv_prog_AR+:} false; then : 32248 $as_echo_n "(cached) " >&6 32249 else 32250 if test -n "$AR"; then 32251 ac_cv_prog_AR="$AR" # Let the user override the test. 32252 else 32253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32254 for as_dir in $PATH 32255 do 32256 IFS=$as_save_IFS 32257 test -z "$as_dir" && as_dir=. 32258 for ac_exec_ext in '' $ac_executable_extensions; do 32259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32260 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32262 break 2 32263 fi 32264 done 32265 done 32266 IFS=$as_save_IFS 32267 32268 fi 32269 fi 32270 AR=$ac_cv_prog_AR 32271 if test -n "$AR"; then 32272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32273 $as_echo "$AR" >&6; } 32274 else 32275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32276 $as_echo "no" >&6; } 32277 fi 32278 32279 32280 test -n "$AR" && break 32281 done 32282 fi 32283 if test -z "$AR"; then 32284 ac_ct_AR=$AR 32285 for ac_prog in ar 32286 do 32287 # Extract the first word of "$ac_prog", so it can be a program name with args. 32288 set dummy $ac_prog; ac_word=$2 32289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32290 $as_echo_n "checking for $ac_word... " >&6; } 32291 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32292 $as_echo_n "(cached) " >&6 32293 else 32294 if test -n "$ac_ct_AR"; then 32295 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32296 else 32297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32298 for as_dir in $PATH 32299 do 32300 IFS=$as_save_IFS 32301 test -z "$as_dir" && as_dir=. 32302 for ac_exec_ext in '' $ac_executable_extensions; do 32303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32304 ac_cv_prog_ac_ct_AR="$ac_prog" 32305 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32306 break 2 32307 fi 32308 done 32309 done 32310 IFS=$as_save_IFS 32311 32312 fi 32313 fi 32314 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32315 if test -n "$ac_ct_AR"; then 32316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32317 $as_echo "$ac_ct_AR" >&6; } 32318 else 32319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32320 $as_echo "no" >&6; } 32321 fi 32322 32323 32324 test -n "$ac_ct_AR" && break 32325 done 32326 32327 if test "x$ac_ct_AR" = x; then 32328 AR="" 32329 else 32330 case $cross_compiling:$ac_tool_warned in 32331 yes:) 32332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32333 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32334 ac_tool_warned=yes ;; 32335 esac 32336 AR=$ac_ct_AR 32337 fi 32338 fi 32339 32340 else 32341 # The variable is set, but is it from the command line or the environment? 32342 32343 # Try to remove the string !AR! from our list. 32344 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 32345 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 32346 # If it failed, the variable was not from the command line. Ignore it, 32347 # but warn the user (except for BASH, which is always set by the calling BASH). 32348 if test "xAR" != xBASH; then 32349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 32350 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 32351 fi 32352 # Try to locate tool using the code snippet 32353 if test -n "$ac_tool_prefix"; then 32354 for ac_prog in ar 32355 do 32356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32359 $as_echo_n "checking for $ac_word... " >&6; } 32360 if ${ac_cv_prog_AR+:} false; then : 32361 $as_echo_n "(cached) " >&6 32362 else 32363 if test -n "$AR"; then 32364 ac_cv_prog_AR="$AR" # Let the user override the test. 32365 else 32366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32367 for as_dir in $PATH 32368 do 32369 IFS=$as_save_IFS 32370 test -z "$as_dir" && as_dir=. 32371 for ac_exec_ext in '' $ac_executable_extensions; do 32372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32373 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 32374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32375 break 2 32376 fi 32377 done 32378 done 32379 IFS=$as_save_IFS 32380 32381 fi 32382 fi 32383 AR=$ac_cv_prog_AR 32384 if test -n "$AR"; then 32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32386 $as_echo "$AR" >&6; } 32387 else 32388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32389 $as_echo "no" >&6; } 32390 fi 32391 32392 32393 test -n "$AR" && break 32394 done 32395 fi 32396 if test -z "$AR"; then 32397 ac_ct_AR=$AR 32398 for ac_prog in ar 32399 do 32400 # Extract the first word of "$ac_prog", so it can be a program name with args. 32401 set dummy $ac_prog; ac_word=$2 32402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32403 $as_echo_n "checking for $ac_word... " >&6; } 32404 if ${ac_cv_prog_ac_ct_AR+:} false; then : 32405 $as_echo_n "(cached) " >&6 32406 else 32407 if test -n "$ac_ct_AR"; then 32408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 32409 else 32410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32411 for as_dir in $PATH 32412 do 32413 IFS=$as_save_IFS 32414 test -z "$as_dir" && as_dir=. 32415 for ac_exec_ext in '' $ac_executable_extensions; do 32416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32417 ac_cv_prog_ac_ct_AR="$ac_prog" 32418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32419 break 2 32420 fi 32421 done 32422 done 32423 IFS=$as_save_IFS 32424 32425 fi 32426 fi 32427 ac_ct_AR=$ac_cv_prog_ac_ct_AR 32428 if test -n "$ac_ct_AR"; then 32429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 32430 $as_echo "$ac_ct_AR" >&6; } 32431 else 32432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32433 $as_echo "no" >&6; } 32434 fi 32435 32436 32437 test -n "$ac_ct_AR" && break 32438 done 32439 32440 if test "x$ac_ct_AR" = x; then 32441 AR="" 32442 else 32443 case $cross_compiling:$ac_tool_warned in 32444 yes:) 32445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32446 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32447 ac_tool_warned=yes ;; 32448 esac 32449 AR=$ac_ct_AR 32450 fi 32451 fi 32452 32453 else 32454 # If it succeeded, then it was overridden by the user. We will use it 32455 # for the tool. 32456 32457 # First remove it from the list of overridden variables, so we can test 32458 # for unknown variables in the end. 32459 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32460 32461 # Check if the provided tool contains a complete path. 32462 tool_specified="$AR" 32463 tool_basename="${tool_specified##*/}" 32464 if test "x$tool_basename" = "x$tool_specified"; then 32465 # A command without a complete path is provided, search $PATH. 32466 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 32467 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 32468 # Extract the first word of "$tool_basename", so it can be a program name with args. 32469 set dummy $tool_basename; ac_word=$2 32470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32471 $as_echo_n "checking for $ac_word... " >&6; } 32472 if ${ac_cv_path_AR+:} false; then : 32473 $as_echo_n "(cached) " >&6 32474 else 32475 case $AR in 32476 [\\/]* | ?:[\\/]*) 32477 ac_cv_path_AR="$AR" # Let the user override the test with a path. 32478 ;; 32479 *) 32480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32481 for as_dir in $PATH 32482 do 32483 IFS=$as_save_IFS 32484 test -z "$as_dir" && as_dir=. 32485 for ac_exec_ext in '' $ac_executable_extensions; do 32486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32487 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 32488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32489 break 2 32490 fi 32491 done 32492 done 32493 IFS=$as_save_IFS 32494 32495 ;; 32496 esac 32497 fi 32498 AR=$ac_cv_path_AR 32499 if test -n "$AR"; then 32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 32501 $as_echo "$AR" >&6; } 32502 else 32503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32504 $as_echo "no" >&6; } 32505 fi 32506 32507 32508 if test "x$AR" = x; then 32509 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32510 fi 32511 else 32512 # Otherwise we believe it is a complete path. Use it as it is. 32513 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 32514 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 32515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 32516 $as_echo_n "checking for AR... " >&6; } 32517 if test ! -x "$tool_specified"; then 32518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32519 $as_echo "not found" >&6; } 32520 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 32521 fi 32522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32523 $as_echo "$tool_specified" >&6; } 32524 fi 32525 fi 32526 fi 32527 32528 32529 fi 32530 32531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32532 32533 # First separate the path from the arguments. This will split at the first 32534 # space. 32535 complete="$AR" 32536 path="${complete%% *}" 32537 tmp="$complete EOL" 32538 arguments="${tmp#* }" 32539 32540 # Input might be given as Windows format, start by converting to 32541 # unix format. 32542 new_path=`$CYGPATH -u "$path"` 32543 32544 # Now try to locate executable using which 32545 new_path=`$WHICH "$new_path" 2> /dev/null` 32546 # bat and cmd files are not always considered executable in cygwin causing which 32547 # to not find them 32548 if test "x$new_path" = x \ 32549 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32550 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32551 new_path=`$CYGPATH -u "$path"` 32552 fi 32553 if test "x$new_path" = x; then 32554 # Oops. Which didn't find the executable. 32555 # The splitting of arguments from the executable at a space might have been incorrect, 32556 # since paths with space are more likely in Windows. Give it another try with the whole 32557 # argument. 32558 path="$complete" 32559 arguments="EOL" 32560 new_path=`$CYGPATH -u "$path"` 32561 new_path=`$WHICH "$new_path" 2> /dev/null` 32562 # bat and cmd files are not always considered executable in cygwin causing which 32563 # to not find them 32564 if test "x$new_path" = x \ 32565 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32566 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32567 new_path=`$CYGPATH -u "$path"` 32568 fi 32569 if test "x$new_path" = x; then 32570 # It's still not found. Now this is an unrecoverable error. 32571 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32572 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32573 has_space=`$ECHO "$complete" | $GREP " "` 32574 if test "x$has_space" != x; then 32575 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32576 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32577 fi 32578 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32579 fi 32580 fi 32581 32582 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32583 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32584 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32585 # "foo.exe" is OK but "foo" is an error. 32586 # 32587 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32588 # It is also a way to make sure we got the proper file name for the real test later on. 32589 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32590 if test "x$test_shortpath" = x; then 32591 # Short path failed, file does not exist as specified. 32592 # Try adding .exe or .cmd 32593 if test -f "${new_path}.exe"; then 32594 input_to_shortpath="${new_path}.exe" 32595 elif test -f "${new_path}.cmd"; then 32596 input_to_shortpath="${new_path}.cmd" 32597 else 32598 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 32599 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 32600 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32601 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32602 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32603 fi 32604 else 32605 input_to_shortpath="$new_path" 32606 fi 32607 32608 # Call helper function which possibly converts this using DOS-style short mode. 32609 # If so, the updated path is stored in $new_path. 32610 new_path="$input_to_shortpath" 32611 32612 input_path="$input_to_shortpath" 32613 # Check if we need to convert this using DOS-style short mode. If the path 32614 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32615 # take no chances and rewrite it. 32616 # Note: m4 eats our [], so we need to use [ and ] instead. 32617 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32618 if test "x$has_forbidden_chars" != x; then 32619 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32620 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32621 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32622 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32623 # Going to short mode and back again did indeed matter. Since short mode is 32624 # case insensitive, let's make it lowercase to improve readability. 32625 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32626 # Now convert it back to Unix-stile (cygpath) 32627 input_path=`$CYGPATH -u "$shortmode_path"` 32628 new_path="$input_path" 32629 fi 32630 fi 32631 32632 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32633 if test "x$test_cygdrive_prefix" = x; then 32634 # As a simple fix, exclude /usr/bin since it's not a real path. 32635 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32636 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32637 # a path prefixed by /cygdrive for fixpath to work. 32638 new_path="$CYGWIN_ROOT_PATH$input_path" 32639 fi 32640 fi 32641 32642 # remove trailing .exe if any 32643 new_path="${new_path/%.exe/}" 32644 32645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32646 32647 # First separate the path from the arguments. This will split at the first 32648 # space. 32649 complete="$AR" 32650 path="${complete%% *}" 32651 tmp="$complete EOL" 32652 arguments="${tmp#* }" 32653 32654 # Input might be given as Windows format, start by converting to 32655 # unix format. 32656 new_path="$path" 32657 32658 windows_path="$new_path" 32659 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32660 unix_path=`$CYGPATH -u "$windows_path"` 32661 new_path="$unix_path" 32662 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32663 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32664 new_path="$unix_path" 32665 fi 32666 32667 32668 # Now try to locate executable using which 32669 new_path=`$WHICH "$new_path" 2> /dev/null` 32670 32671 if test "x$new_path" = x; then 32672 # Oops. Which didn't find the executable. 32673 # The splitting of arguments from the executable at a space might have been incorrect, 32674 # since paths with space are more likely in Windows. Give it another try with the whole 32675 # argument. 32676 path="$complete" 32677 arguments="EOL" 32678 new_path="$path" 32679 32680 windows_path="$new_path" 32681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32682 unix_path=`$CYGPATH -u "$windows_path"` 32683 new_path="$unix_path" 32684 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32685 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32686 new_path="$unix_path" 32687 fi 32688 32689 32690 new_path=`$WHICH "$new_path" 2> /dev/null` 32691 32692 if test "x$new_path" = x; then 32693 # It's still not found. Now this is an unrecoverable error. 32694 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32695 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32696 has_space=`$ECHO "$complete" | $GREP " "` 32697 if test "x$has_space" != x; then 32698 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32699 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32700 fi 32701 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32702 fi 32703 fi 32704 32705 # Now new_path has a complete unix path to the binary 32706 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32707 # Keep paths in /bin as-is, but remove trailing .exe if any 32708 new_path="${new_path/%.exe/}" 32709 # Do not save /bin paths to all_fixpath_prefixes! 32710 else 32711 # Not in mixed or Windows style, start by that. 32712 new_path=`cmd //c echo $new_path` 32713 32714 input_path="$new_path" 32715 # Check if we need to convert this using DOS-style short mode. If the path 32716 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32717 # take no chances and rewrite it. 32718 # Note: m4 eats our [], so we need to use [ and ] instead. 32719 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32720 if test "x$has_forbidden_chars" != x; then 32721 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32722 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32723 fi 32724 32725 # Output is in $new_path 32726 32727 windows_path="$new_path" 32728 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32729 unix_path=`$CYGPATH -u "$windows_path"` 32730 new_path="$unix_path" 32731 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32732 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32733 new_path="$unix_path" 32734 fi 32735 32736 # remove trailing .exe if any 32737 new_path="${new_path/%.exe/}" 32738 32739 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32740 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32741 fi 32742 32743 else 32744 # We're on a posix platform. Hooray! :) 32745 # First separate the path from the arguments. This will split at the first 32746 # space. 32747 complete="$AR" 32748 path="${complete%% *}" 32749 tmp="$complete EOL" 32750 arguments="${tmp#* }" 32751 32752 # Cannot rely on the command "which" here since it doesn't always work. 32753 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32754 if test -z "$is_absolute_path"; then 32755 # Path to executable is not absolute. Find it. 32756 IFS_save="$IFS" 32757 IFS=: 32758 for p in $PATH; do 32759 if test -f "$p/$path" && test -x "$p/$path"; then 32760 new_path="$p/$path" 32761 break 32762 fi 32763 done 32764 IFS="$IFS_save" 32765 else 32766 # This is an absolute path, we can use it without further modifications. 32767 new_path="$path" 32768 fi 32769 32770 if test "x$new_path" = x; then 32771 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 32772 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 32773 has_space=`$ECHO "$complete" | $GREP " "` 32774 if test "x$has_space" != x; then 32775 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32776 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32777 fi 32778 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 32779 fi 32780 fi 32781 32782 # Now join together the path and the arguments once again 32783 if test "x$arguments" != xEOL; then 32784 new_complete="$new_path ${arguments% *}" 32785 else 32786 new_complete="$new_path" 32787 fi 32788 32789 if test "x$complete" != "x$new_complete"; then 32790 AR="$new_complete" 32791 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 32792 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 32793 fi 32794 32795 32796 32797 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 32798 ac_ext=m 32799 ac_cpp='$OBJCPP $CPPFLAGS' 32800 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 32801 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 32802 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 32803 if test -n "$ac_tool_prefix"; then 32804 for ac_prog in gcc objcc objc cc CC 32805 do 32806 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 32807 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 32808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32809 $as_echo_n "checking for $ac_word... " >&6; } 32810 if ${ac_cv_prog_OBJC+:} false; then : 32811 $as_echo_n "(cached) " >&6 32812 else 32813 if test -n "$OBJC"; then 32814 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 32815 else 32816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32817 for as_dir in $PATH 32818 do 32819 IFS=$as_save_IFS 32820 test -z "$as_dir" && as_dir=. 32821 for ac_exec_ext in '' $ac_executable_extensions; do 32822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32823 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 32824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32825 break 2 32826 fi 32827 done 32828 done 32829 IFS=$as_save_IFS 32830 32831 fi 32832 fi 32833 OBJC=$ac_cv_prog_OBJC 32834 if test -n "$OBJC"; then 32835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 32836 $as_echo "$OBJC" >&6; } 32837 else 32838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32839 $as_echo "no" >&6; } 32840 fi 32841 32842 32843 test -n "$OBJC" && break 32844 done 32845 fi 32846 if test -z "$OBJC"; then 32847 ac_ct_OBJC=$OBJC 32848 for ac_prog in gcc objcc objc cc CC 32849 do 32850 # Extract the first word of "$ac_prog", so it can be a program name with args. 32851 set dummy $ac_prog; ac_word=$2 32852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32853 $as_echo_n "checking for $ac_word... " >&6; } 32854 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 32855 $as_echo_n "(cached) " >&6 32856 else 32857 if test -n "$ac_ct_OBJC"; then 32858 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 32859 else 32860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32861 for as_dir in $PATH 32862 do 32863 IFS=$as_save_IFS 32864 test -z "$as_dir" && as_dir=. 32865 for ac_exec_ext in '' $ac_executable_extensions; do 32866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32867 ac_cv_prog_ac_ct_OBJC="$ac_prog" 32868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32869 break 2 32870 fi 32871 done 32872 done 32873 IFS=$as_save_IFS 32874 32875 fi 32876 fi 32877 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 32878 if test -n "$ac_ct_OBJC"; then 32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 32880 $as_echo "$ac_ct_OBJC" >&6; } 32881 else 32882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32883 $as_echo "no" >&6; } 32884 fi 32885 32886 32887 test -n "$ac_ct_OBJC" && break 32888 done 32889 32890 if test "x$ac_ct_OBJC" = x; then 32891 OBJC="gcc" 32892 else 32893 case $cross_compiling:$ac_tool_warned in 32894 yes:) 32895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 32896 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 32897 ac_tool_warned=yes ;; 32898 esac 32899 OBJC=$ac_ct_OBJC 32900 fi 32901 fi 32902 32903 # Provide some information about the compiler. 32904 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 32905 set X $ac_compile 32906 ac_compiler=$2 32907 for ac_option in --version -v -V -qversion; do 32908 { { ac_try="$ac_compiler $ac_option >&5" 32909 case "(($ac_try" in 32910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 32911 *) ac_try_echo=$ac_try;; 32912 esac 32913 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 32914 $as_echo "$ac_try_echo"; } >&5 32915 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 32916 ac_status=$? 32917 if test -s conftest.err; then 32918 sed '10a\ 32919 ... rest of stderr output deleted ... 32920 10q' conftest.err >conftest.er1 32921 cat conftest.er1 >&5 32922 fi 32923 rm -f conftest.er1 conftest.err 32924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 32925 test $ac_status = 0; } 32926 done 32927 32928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 32929 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 32930 if ${ac_cv_objc_compiler_gnu+:} false; then : 32931 $as_echo_n "(cached) " >&6 32932 else 32933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32934 /* end confdefs.h. */ 32935 32936 int 32937 main () 32938 { 32939 #ifndef __GNUC__ 32940 choke me 32941 #endif 32942 32943 ; 32944 return 0; 32945 } 32946 _ACEOF 32947 if ac_fn_objc_try_compile "$LINENO"; then : 32948 ac_compiler_gnu=yes 32949 else 32950 ac_compiler_gnu=no 32951 fi 32952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 32953 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 32954 32955 fi 32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 32957 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 32958 if test $ac_compiler_gnu = yes; then 32959 GOBJC=yes 32960 else 32961 GOBJC= 32962 fi 32963 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 32964 ac_save_OBJCFLAGS=$OBJCFLAGS 32965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 32966 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 32967 if ${ac_cv_prog_objc_g+:} false; then : 32968 $as_echo_n "(cached) " >&6 32969 else 32970 ac_save_objc_werror_flag=$ac_objc_werror_flag 32971 ac_objc_werror_flag=yes 32972 ac_cv_prog_objc_g=no 32973 OBJCFLAGS="-g" 32974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32975 /* end confdefs.h. */ 32976 32977 int 32978 main () 32979 { 32980 32981 ; 32982 return 0; 32983 } 32984 _ACEOF 32985 if ac_fn_objc_try_compile "$LINENO"; then : 32986 ac_cv_prog_objc_g=yes 32987 else 32988 OBJCFLAGS="" 32989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 32990 /* end confdefs.h. */ 32991 32992 int 32993 main () 32994 { 32995 32996 ; 32997 return 0; 32998 } 32999 _ACEOF 33000 if ac_fn_objc_try_compile "$LINENO"; then : 33001 33002 else 33003 ac_objc_werror_flag=$ac_save_objc_werror_flag 33004 OBJCFLAGS="-g" 33005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 33006 /* end confdefs.h. */ 33007 33008 int 33009 main () 33010 { 33011 33012 ; 33013 return 0; 33014 } 33015 _ACEOF 33016 if ac_fn_objc_try_compile "$LINENO"; then : 33017 ac_cv_prog_objc_g=yes 33018 fi 33019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33020 fi 33021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33022 fi 33023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 33024 ac_objc_werror_flag=$ac_save_objc_werror_flag 33025 fi 33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 33027 $as_echo "$ac_cv_prog_objc_g" >&6; } 33028 if test "$ac_test_OBJCFLAGS" = set; then 33029 OBJCFLAGS=$ac_save_OBJCFLAGS 33030 elif test $ac_cv_prog_objc_g = yes; then 33031 if test "$GOBJC" = yes; then 33032 OBJCFLAGS="-g -O2" 33033 else 33034 OBJCFLAGS="-g" 33035 fi 33036 else 33037 if test "$GOBJC" = yes; then 33038 OBJCFLAGS="-O2" 33039 else 33040 OBJCFLAGS= 33041 fi 33042 fi 33043 ac_ext=cpp 33044 ac_cpp='$CXXCPP $CPPFLAGS' 33045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 33046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 33047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 33048 33049 33050 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33051 33052 # First separate the path from the arguments. This will split at the first 33053 # space. 33054 complete="$OBJC" 33055 path="${complete%% *}" 33056 tmp="$complete EOL" 33057 arguments="${tmp#* }" 33058 33059 # Input might be given as Windows format, start by converting to 33060 # unix format. 33061 new_path=`$CYGPATH -u "$path"` 33062 33063 # Now try to locate executable using which 33064 new_path=`$WHICH "$new_path" 2> /dev/null` 33065 # bat and cmd files are not always considered executable in cygwin causing which 33066 # to not find them 33067 if test "x$new_path" = x \ 33068 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33069 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33070 new_path=`$CYGPATH -u "$path"` 33071 fi 33072 if test "x$new_path" = x; then 33073 # Oops. Which didn't find the executable. 33074 # The splitting of arguments from the executable at a space might have been incorrect, 33075 # since paths with space are more likely in Windows. Give it another try with the whole 33076 # argument. 33077 path="$complete" 33078 arguments="EOL" 33079 new_path=`$CYGPATH -u "$path"` 33080 new_path=`$WHICH "$new_path" 2> /dev/null` 33081 # bat and cmd files are not always considered executable in cygwin causing which 33082 # to not find them 33083 if test "x$new_path" = x \ 33084 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33085 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33086 new_path=`$CYGPATH -u "$path"` 33087 fi 33088 if test "x$new_path" = x; then 33089 # It's still not found. Now this is an unrecoverable error. 33090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33091 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33092 has_space=`$ECHO "$complete" | $GREP " "` 33093 if test "x$has_space" != x; then 33094 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33095 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33096 fi 33097 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33098 fi 33099 fi 33100 33101 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33102 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33103 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33104 # "foo.exe" is OK but "foo" is an error. 33105 # 33106 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33107 # It is also a way to make sure we got the proper file name for the real test later on. 33108 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33109 if test "x$test_shortpath" = x; then 33110 # Short path failed, file does not exist as specified. 33111 # Try adding .exe or .cmd 33112 if test -f "${new_path}.exe"; then 33113 input_to_shortpath="${new_path}.exe" 33114 elif test -f "${new_path}.cmd"; then 33115 input_to_shortpath="${new_path}.cmd" 33116 else 33117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 33118 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 33119 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33120 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33121 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33122 fi 33123 else 33124 input_to_shortpath="$new_path" 33125 fi 33126 33127 # Call helper function which possibly converts this using DOS-style short mode. 33128 # If so, the updated path is stored in $new_path. 33129 new_path="$input_to_shortpath" 33130 33131 input_path="$input_to_shortpath" 33132 # Check if we need to convert this using DOS-style short mode. If the path 33133 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33134 # take no chances and rewrite it. 33135 # Note: m4 eats our [], so we need to use [ and ] instead. 33136 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33137 if test "x$has_forbidden_chars" != x; then 33138 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33139 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33140 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33141 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33142 # Going to short mode and back again did indeed matter. Since short mode is 33143 # case insensitive, let's make it lowercase to improve readability. 33144 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33145 # Now convert it back to Unix-stile (cygpath) 33146 input_path=`$CYGPATH -u "$shortmode_path"` 33147 new_path="$input_path" 33148 fi 33149 fi 33150 33151 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33152 if test "x$test_cygdrive_prefix" = x; then 33153 # As a simple fix, exclude /usr/bin since it's not a real path. 33154 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33155 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33156 # a path prefixed by /cygdrive for fixpath to work. 33157 new_path="$CYGWIN_ROOT_PATH$input_path" 33158 fi 33159 fi 33160 33161 # remove trailing .exe if any 33162 new_path="${new_path/%.exe/}" 33163 33164 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33165 33166 # First separate the path from the arguments. This will split at the first 33167 # space. 33168 complete="$OBJC" 33169 path="${complete%% *}" 33170 tmp="$complete EOL" 33171 arguments="${tmp#* }" 33172 33173 # Input might be given as Windows format, start by converting to 33174 # unix format. 33175 new_path="$path" 33176 33177 windows_path="$new_path" 33178 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33179 unix_path=`$CYGPATH -u "$windows_path"` 33180 new_path="$unix_path" 33181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33182 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33183 new_path="$unix_path" 33184 fi 33185 33186 33187 # Now try to locate executable using which 33188 new_path=`$WHICH "$new_path" 2> /dev/null` 33189 33190 if test "x$new_path" = x; then 33191 # Oops. Which didn't find the executable. 33192 # The splitting of arguments from the executable at a space might have been incorrect, 33193 # since paths with space are more likely in Windows. Give it another try with the whole 33194 # argument. 33195 path="$complete" 33196 arguments="EOL" 33197 new_path="$path" 33198 33199 windows_path="$new_path" 33200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33201 unix_path=`$CYGPATH -u "$windows_path"` 33202 new_path="$unix_path" 33203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33204 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33205 new_path="$unix_path" 33206 fi 33207 33208 33209 new_path=`$WHICH "$new_path" 2> /dev/null` 33210 33211 if test "x$new_path" = x; then 33212 # It's still not found. Now this is an unrecoverable error. 33213 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33214 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33215 has_space=`$ECHO "$complete" | $GREP " "` 33216 if test "x$has_space" != x; then 33217 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33218 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33219 fi 33220 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33221 fi 33222 fi 33223 33224 # Now new_path has a complete unix path to the binary 33225 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33226 # Keep paths in /bin as-is, but remove trailing .exe if any 33227 new_path="${new_path/%.exe/}" 33228 # Do not save /bin paths to all_fixpath_prefixes! 33229 else 33230 # Not in mixed or Windows style, start by that. 33231 new_path=`cmd //c echo $new_path` 33232 33233 input_path="$new_path" 33234 # Check if we need to convert this using DOS-style short mode. If the path 33235 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33236 # take no chances and rewrite it. 33237 # Note: m4 eats our [], so we need to use [ and ] instead. 33238 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33239 if test "x$has_forbidden_chars" != x; then 33240 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33241 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33242 fi 33243 33244 # Output is in $new_path 33245 33246 windows_path="$new_path" 33247 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33248 unix_path=`$CYGPATH -u "$windows_path"` 33249 new_path="$unix_path" 33250 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33251 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33252 new_path="$unix_path" 33253 fi 33254 33255 # remove trailing .exe if any 33256 new_path="${new_path/%.exe/}" 33257 33258 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33259 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33260 fi 33261 33262 else 33263 # We're on a posix platform. Hooray! :) 33264 # First separate the path from the arguments. This will split at the first 33265 # space. 33266 complete="$OBJC" 33267 path="${complete%% *}" 33268 tmp="$complete EOL" 33269 arguments="${tmp#* }" 33270 33271 # Cannot rely on the command "which" here since it doesn't always work. 33272 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33273 if test -z "$is_absolute_path"; then 33274 # Path to executable is not absolute. Find it. 33275 IFS_save="$IFS" 33276 IFS=: 33277 for p in $PATH; do 33278 if test -f "$p/$path" && test -x "$p/$path"; then 33279 new_path="$p/$path" 33280 break 33281 fi 33282 done 33283 IFS="$IFS_save" 33284 else 33285 # This is an absolute path, we can use it without further modifications. 33286 new_path="$path" 33287 fi 33288 33289 if test "x$new_path" = x; then 33290 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 33291 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 33292 has_space=`$ECHO "$complete" | $GREP " "` 33293 if test "x$has_space" != x; then 33294 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33295 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33296 fi 33297 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 33298 fi 33299 fi 33300 33301 # Now join together the path and the arguments once again 33302 if test "x$arguments" != xEOL; then 33303 new_complete="$new_path ${arguments% *}" 33304 else 33305 new_complete="$new_path" 33306 fi 33307 33308 if test "x$complete" != "x$new_complete"; then 33309 OBJC="$new_complete" 33310 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 33311 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 33312 fi 33313 33314 33315 33316 # Publish this variable in the help. 33317 33318 33319 if test "x$LIPO" = x; then 33320 # The variable is not set by user, try to locate tool using the code snippet 33321 for ac_prog in lipo 33322 do 33323 # Extract the first word of "$ac_prog", so it can be a program name with args. 33324 set dummy $ac_prog; ac_word=$2 33325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33326 $as_echo_n "checking for $ac_word... " >&6; } 33327 if ${ac_cv_path_LIPO+:} false; then : 33328 $as_echo_n "(cached) " >&6 33329 else 33330 case $LIPO in 33331 [\\/]* | ?:[\\/]*) 33332 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33333 ;; 33334 *) 33335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33336 for as_dir in $PATH 33337 do 33338 IFS=$as_save_IFS 33339 test -z "$as_dir" && as_dir=. 33340 for ac_exec_ext in '' $ac_executable_extensions; do 33341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33342 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33344 break 2 33345 fi 33346 done 33347 done 33348 IFS=$as_save_IFS 33349 33350 ;; 33351 esac 33352 fi 33353 LIPO=$ac_cv_path_LIPO 33354 if test -n "$LIPO"; then 33355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33356 $as_echo "$LIPO" >&6; } 33357 else 33358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33359 $as_echo "no" >&6; } 33360 fi 33361 33362 33363 test -n "$LIPO" && break 33364 done 33365 33366 else 33367 # The variable is set, but is it from the command line or the environment? 33368 33369 # Try to remove the string !LIPO! from our list. 33370 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 33371 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33372 # If it failed, the variable was not from the command line. Ignore it, 33373 # but warn the user (except for BASH, which is always set by the calling BASH). 33374 if test "xLIPO" != xBASH; then 33375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 33376 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 33377 fi 33378 # Try to locate tool using the code snippet 33379 for ac_prog in lipo 33380 do 33381 # Extract the first word of "$ac_prog", so it can be a program name with args. 33382 set dummy $ac_prog; ac_word=$2 33383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33384 $as_echo_n "checking for $ac_word... " >&6; } 33385 if ${ac_cv_path_LIPO+:} false; then : 33386 $as_echo_n "(cached) " >&6 33387 else 33388 case $LIPO in 33389 [\\/]* | ?:[\\/]*) 33390 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33391 ;; 33392 *) 33393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33394 for as_dir in $PATH 33395 do 33396 IFS=$as_save_IFS 33397 test -z "$as_dir" && as_dir=. 33398 for ac_exec_ext in '' $ac_executable_extensions; do 33399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33400 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33402 break 2 33403 fi 33404 done 33405 done 33406 IFS=$as_save_IFS 33407 33408 ;; 33409 esac 33410 fi 33411 LIPO=$ac_cv_path_LIPO 33412 if test -n "$LIPO"; then 33413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33414 $as_echo "$LIPO" >&6; } 33415 else 33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33417 $as_echo "no" >&6; } 33418 fi 33419 33420 33421 test -n "$LIPO" && break 33422 done 33423 33424 else 33425 # If it succeeded, then it was overridden by the user. We will use it 33426 # for the tool. 33427 33428 # First remove it from the list of overridden variables, so we can test 33429 # for unknown variables in the end. 33430 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33431 33432 # Check if the provided tool contains a complete path. 33433 tool_specified="$LIPO" 33434 tool_basename="${tool_specified##*/}" 33435 if test "x$tool_basename" = "x$tool_specified"; then 33436 # A command without a complete path is provided, search $PATH. 33437 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 33438 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 33439 # Extract the first word of "$tool_basename", so it can be a program name with args. 33440 set dummy $tool_basename; ac_word=$2 33441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33442 $as_echo_n "checking for $ac_word... " >&6; } 33443 if ${ac_cv_path_LIPO+:} false; then : 33444 $as_echo_n "(cached) " >&6 33445 else 33446 case $LIPO in 33447 [\\/]* | ?:[\\/]*) 33448 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 33449 ;; 33450 *) 33451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33452 for as_dir in $PATH 33453 do 33454 IFS=$as_save_IFS 33455 test -z "$as_dir" && as_dir=. 33456 for ac_exec_ext in '' $ac_executable_extensions; do 33457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33458 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 33459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33460 break 2 33461 fi 33462 done 33463 done 33464 IFS=$as_save_IFS 33465 33466 ;; 33467 esac 33468 fi 33469 LIPO=$ac_cv_path_LIPO 33470 if test -n "$LIPO"; then 33471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 33472 $as_echo "$LIPO" >&6; } 33473 else 33474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33475 $as_echo "no" >&6; } 33476 fi 33477 33478 33479 if test "x$LIPO" = x; then 33480 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33481 fi 33482 else 33483 # Otherwise we believe it is a complete path. Use it as it is. 33484 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 33485 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 33486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 33487 $as_echo_n "checking for LIPO... " >&6; } 33488 if test ! -x "$tool_specified"; then 33489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33490 $as_echo "not found" >&6; } 33491 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 33492 fi 33493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33494 $as_echo "$tool_specified" >&6; } 33495 fi 33496 fi 33497 fi 33498 33499 33500 33501 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33502 33503 # First separate the path from the arguments. This will split at the first 33504 # space. 33505 complete="$LIPO" 33506 path="${complete%% *}" 33507 tmp="$complete EOL" 33508 arguments="${tmp#* }" 33509 33510 # Input might be given as Windows format, start by converting to 33511 # unix format. 33512 new_path=`$CYGPATH -u "$path"` 33513 33514 # Now try to locate executable using which 33515 new_path=`$WHICH "$new_path" 2> /dev/null` 33516 # bat and cmd files are not always considered executable in cygwin causing which 33517 # to not find them 33518 if test "x$new_path" = x \ 33519 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33520 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33521 new_path=`$CYGPATH -u "$path"` 33522 fi 33523 if test "x$new_path" = x; then 33524 # Oops. Which didn't find the executable. 33525 # The splitting of arguments from the executable at a space might have been incorrect, 33526 # since paths with space are more likely in Windows. Give it another try with the whole 33527 # argument. 33528 path="$complete" 33529 arguments="EOL" 33530 new_path=`$CYGPATH -u "$path"` 33531 new_path=`$WHICH "$new_path" 2> /dev/null` 33532 # bat and cmd files are not always considered executable in cygwin causing which 33533 # to not find them 33534 if test "x$new_path" = x \ 33535 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33536 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33537 new_path=`$CYGPATH -u "$path"` 33538 fi 33539 if test "x$new_path" = x; then 33540 # It's still not found. Now this is an unrecoverable error. 33541 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33542 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33543 has_space=`$ECHO "$complete" | $GREP " "` 33544 if test "x$has_space" != x; then 33545 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33546 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33547 fi 33548 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33549 fi 33550 fi 33551 33552 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33553 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33554 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33555 # "foo.exe" is OK but "foo" is an error. 33556 # 33557 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33558 # It is also a way to make sure we got the proper file name for the real test later on. 33559 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33560 if test "x$test_shortpath" = x; then 33561 # Short path failed, file does not exist as specified. 33562 # Try adding .exe or .cmd 33563 if test -f "${new_path}.exe"; then 33564 input_to_shortpath="${new_path}.exe" 33565 elif test -f "${new_path}.cmd"; then 33566 input_to_shortpath="${new_path}.cmd" 33567 else 33568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 33569 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 33570 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33571 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33572 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33573 fi 33574 else 33575 input_to_shortpath="$new_path" 33576 fi 33577 33578 # Call helper function which possibly converts this using DOS-style short mode. 33579 # If so, the updated path is stored in $new_path. 33580 new_path="$input_to_shortpath" 33581 33582 input_path="$input_to_shortpath" 33583 # Check if we need to convert this using DOS-style short mode. If the path 33584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33585 # take no chances and rewrite it. 33586 # Note: m4 eats our [], so we need to use [ and ] instead. 33587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33588 if test "x$has_forbidden_chars" != x; then 33589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33590 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33591 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33592 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33593 # Going to short mode and back again did indeed matter. Since short mode is 33594 # case insensitive, let's make it lowercase to improve readability. 33595 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33596 # Now convert it back to Unix-stile (cygpath) 33597 input_path=`$CYGPATH -u "$shortmode_path"` 33598 new_path="$input_path" 33599 fi 33600 fi 33601 33602 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33603 if test "x$test_cygdrive_prefix" = x; then 33604 # As a simple fix, exclude /usr/bin since it's not a real path. 33605 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33606 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33607 # a path prefixed by /cygdrive for fixpath to work. 33608 new_path="$CYGWIN_ROOT_PATH$input_path" 33609 fi 33610 fi 33611 33612 # remove trailing .exe if any 33613 new_path="${new_path/%.exe/}" 33614 33615 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33616 33617 # First separate the path from the arguments. This will split at the first 33618 # space. 33619 complete="$LIPO" 33620 path="${complete%% *}" 33621 tmp="$complete EOL" 33622 arguments="${tmp#* }" 33623 33624 # Input might be given as Windows format, start by converting to 33625 # unix format. 33626 new_path="$path" 33627 33628 windows_path="$new_path" 33629 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33630 unix_path=`$CYGPATH -u "$windows_path"` 33631 new_path="$unix_path" 33632 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33633 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33634 new_path="$unix_path" 33635 fi 33636 33637 33638 # Now try to locate executable using which 33639 new_path=`$WHICH "$new_path" 2> /dev/null` 33640 33641 if test "x$new_path" = x; then 33642 # Oops. Which didn't find the executable. 33643 # The splitting of arguments from the executable at a space might have been incorrect, 33644 # since paths with space are more likely in Windows. Give it another try with the whole 33645 # argument. 33646 path="$complete" 33647 arguments="EOL" 33648 new_path="$path" 33649 33650 windows_path="$new_path" 33651 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33652 unix_path=`$CYGPATH -u "$windows_path"` 33653 new_path="$unix_path" 33654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33655 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33656 new_path="$unix_path" 33657 fi 33658 33659 33660 new_path=`$WHICH "$new_path" 2> /dev/null` 33661 33662 if test "x$new_path" = x; then 33663 # It's still not found. Now this is an unrecoverable error. 33664 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33665 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33666 has_space=`$ECHO "$complete" | $GREP " "` 33667 if test "x$has_space" != x; then 33668 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33669 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33670 fi 33671 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33672 fi 33673 fi 33674 33675 # Now new_path has a complete unix path to the binary 33676 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33677 # Keep paths in /bin as-is, but remove trailing .exe if any 33678 new_path="${new_path/%.exe/}" 33679 # Do not save /bin paths to all_fixpath_prefixes! 33680 else 33681 # Not in mixed or Windows style, start by that. 33682 new_path=`cmd //c echo $new_path` 33683 33684 input_path="$new_path" 33685 # Check if we need to convert this using DOS-style short mode. If the path 33686 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33687 # take no chances and rewrite it. 33688 # Note: m4 eats our [], so we need to use [ and ] instead. 33689 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33690 if test "x$has_forbidden_chars" != x; then 33691 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33692 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33693 fi 33694 33695 # Output is in $new_path 33696 33697 windows_path="$new_path" 33698 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33699 unix_path=`$CYGPATH -u "$windows_path"` 33700 new_path="$unix_path" 33701 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33702 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33703 new_path="$unix_path" 33704 fi 33705 33706 # remove trailing .exe if any 33707 new_path="${new_path/%.exe/}" 33708 33709 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33710 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33711 fi 33712 33713 else 33714 # We're on a posix platform. Hooray! :) 33715 # First separate the path from the arguments. This will split at the first 33716 # space. 33717 complete="$LIPO" 33718 path="${complete%% *}" 33719 tmp="$complete EOL" 33720 arguments="${tmp#* }" 33721 33722 # Cannot rely on the command "which" here since it doesn't always work. 33723 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33724 if test -z "$is_absolute_path"; then 33725 # Path to executable is not absolute. Find it. 33726 IFS_save="$IFS" 33727 IFS=: 33728 for p in $PATH; do 33729 if test -f "$p/$path" && test -x "$p/$path"; then 33730 new_path="$p/$path" 33731 break 33732 fi 33733 done 33734 IFS="$IFS_save" 33735 else 33736 # This is an absolute path, we can use it without further modifications. 33737 new_path="$path" 33738 fi 33739 33740 if test "x$new_path" = x; then 33741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 33742 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 33743 has_space=`$ECHO "$complete" | $GREP " "` 33744 if test "x$has_space" != x; then 33745 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33746 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33747 fi 33748 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 33749 fi 33750 fi 33751 33752 # Now join together the path and the arguments once again 33753 if test "x$arguments" != xEOL; then 33754 new_complete="$new_path ${arguments% *}" 33755 else 33756 new_complete="$new_path" 33757 fi 33758 33759 if test "x$complete" != "x$new_complete"; then 33760 LIPO="$new_complete" 33761 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 33762 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 33763 fi 33764 33765 else 33766 OBJC= 33767 fi 33768 33769 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 33770 # Extract the first word of "mt", so it can be a program name with args. 33771 set dummy mt; ac_word=$2 33772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33773 $as_echo_n "checking for $ac_word... " >&6; } 33774 if ${ac_cv_prog_MT+:} false; then : 33775 $as_echo_n "(cached) " >&6 33776 else 33777 if test -n "$MT"; then 33778 ac_cv_prog_MT="$MT" # Let the user override the test. 33779 else 33780 ac_prog_rejected=no 33781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33782 for as_dir in $PATH 33783 do 33784 IFS=$as_save_IFS 33785 test -z "$as_dir" && as_dir=. 33786 for ac_exec_ext in '' $ac_executable_extensions; do 33787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 33789 ac_prog_rejected=yes 33790 continue 33791 fi 33792 ac_cv_prog_MT="mt" 33793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33794 break 2 33795 fi 33796 done 33797 done 33798 IFS=$as_save_IFS 33799 33800 if test $ac_prog_rejected = yes; then 33801 # We found a bogon in the path, so make sure we never use it. 33802 set dummy $ac_cv_prog_MT 33803 shift 33804 if test $# != 0; then 33805 # We chose a different compiler from the bogus one. 33806 # However, it has the same basename, so the bogon will be chosen 33807 # first if we set MT to just the basename; use the full file name. 33808 shift 33809 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 33810 fi 33811 fi 33812 fi 33813 fi 33814 MT=$ac_cv_prog_MT 33815 if test -n "$MT"; then 33816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 33817 $as_echo "$MT" >&6; } 33818 else 33819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33820 $as_echo "no" >&6; } 33821 fi 33822 33823 33824 33825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33826 33827 # First separate the path from the arguments. This will split at the first 33828 # space. 33829 complete="$MT" 33830 path="${complete%% *}" 33831 tmp="$complete EOL" 33832 arguments="${tmp#* }" 33833 33834 # Input might be given as Windows format, start by converting to 33835 # unix format. 33836 new_path=`$CYGPATH -u "$path"` 33837 33838 # Now try to locate executable using which 33839 new_path=`$WHICH "$new_path" 2> /dev/null` 33840 # bat and cmd files are not always considered executable in cygwin causing which 33841 # to not find them 33842 if test "x$new_path" = x \ 33843 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33844 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33845 new_path=`$CYGPATH -u "$path"` 33846 fi 33847 if test "x$new_path" = x; then 33848 # Oops. Which didn't find the executable. 33849 # The splitting of arguments from the executable at a space might have been incorrect, 33850 # since paths with space are more likely in Windows. Give it another try with the whole 33851 # argument. 33852 path="$complete" 33853 arguments="EOL" 33854 new_path=`$CYGPATH -u "$path"` 33855 new_path=`$WHICH "$new_path" 2> /dev/null` 33856 # bat and cmd files are not always considered executable in cygwin causing which 33857 # to not find them 33858 if test "x$new_path" = x \ 33859 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33860 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33861 new_path=`$CYGPATH -u "$path"` 33862 fi 33863 if test "x$new_path" = x; then 33864 # It's still not found. Now this is an unrecoverable error. 33865 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33866 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33867 has_space=`$ECHO "$complete" | $GREP " "` 33868 if test "x$has_space" != x; then 33869 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33870 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33871 fi 33872 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33873 fi 33874 fi 33875 33876 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33877 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33878 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33879 # "foo.exe" is OK but "foo" is an error. 33880 # 33881 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33882 # It is also a way to make sure we got the proper file name for the real test later on. 33883 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33884 if test "x$test_shortpath" = x; then 33885 # Short path failed, file does not exist as specified. 33886 # Try adding .exe or .cmd 33887 if test -f "${new_path}.exe"; then 33888 input_to_shortpath="${new_path}.exe" 33889 elif test -f "${new_path}.cmd"; then 33890 input_to_shortpath="${new_path}.cmd" 33891 else 33892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 33893 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 33894 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33895 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33896 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33897 fi 33898 else 33899 input_to_shortpath="$new_path" 33900 fi 33901 33902 # Call helper function which possibly converts this using DOS-style short mode. 33903 # If so, the updated path is stored in $new_path. 33904 new_path="$input_to_shortpath" 33905 33906 input_path="$input_to_shortpath" 33907 # Check if we need to convert this using DOS-style short mode. If the path 33908 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33909 # take no chances and rewrite it. 33910 # Note: m4 eats our [], so we need to use [ and ] instead. 33911 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33912 if test "x$has_forbidden_chars" != x; then 33913 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33914 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33915 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33916 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33917 # Going to short mode and back again did indeed matter. Since short mode is 33918 # case insensitive, let's make it lowercase to improve readability. 33919 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33920 # Now convert it back to Unix-stile (cygpath) 33921 input_path=`$CYGPATH -u "$shortmode_path"` 33922 new_path="$input_path" 33923 fi 33924 fi 33925 33926 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33927 if test "x$test_cygdrive_prefix" = x; then 33928 # As a simple fix, exclude /usr/bin since it's not a real path. 33929 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33930 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33931 # a path prefixed by /cygdrive for fixpath to work. 33932 new_path="$CYGWIN_ROOT_PATH$input_path" 33933 fi 33934 fi 33935 33936 # remove trailing .exe if any 33937 new_path="${new_path/%.exe/}" 33938 33939 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33940 33941 # First separate the path from the arguments. This will split at the first 33942 # space. 33943 complete="$MT" 33944 path="${complete%% *}" 33945 tmp="$complete EOL" 33946 arguments="${tmp#* }" 33947 33948 # Input might be given as Windows format, start by converting to 33949 # unix format. 33950 new_path="$path" 33951 33952 windows_path="$new_path" 33953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33954 unix_path=`$CYGPATH -u "$windows_path"` 33955 new_path="$unix_path" 33956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33958 new_path="$unix_path" 33959 fi 33960 33961 33962 # Now try to locate executable using which 33963 new_path=`$WHICH "$new_path" 2> /dev/null` 33964 33965 if test "x$new_path" = x; then 33966 # Oops. Which didn't find the executable. 33967 # The splitting of arguments from the executable at a space might have been incorrect, 33968 # since paths with space are more likely in Windows. Give it another try with the whole 33969 # argument. 33970 path="$complete" 33971 arguments="EOL" 33972 new_path="$path" 33973 33974 windows_path="$new_path" 33975 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33976 unix_path=`$CYGPATH -u "$windows_path"` 33977 new_path="$unix_path" 33978 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33979 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33980 new_path="$unix_path" 33981 fi 33982 33983 33984 new_path=`$WHICH "$new_path" 2> /dev/null` 33985 33986 if test "x$new_path" = x; then 33987 # It's still not found. Now this is an unrecoverable error. 33988 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 33989 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 33990 has_space=`$ECHO "$complete" | $GREP " "` 33991 if test "x$has_space" != x; then 33992 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33993 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33994 fi 33995 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 33996 fi 33997 fi 33998 33999 # Now new_path has a complete unix path to the binary 34000 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34001 # Keep paths in /bin as-is, but remove trailing .exe if any 34002 new_path="${new_path/%.exe/}" 34003 # Do not save /bin paths to all_fixpath_prefixes! 34004 else 34005 # Not in mixed or Windows style, start by that. 34006 new_path=`cmd //c echo $new_path` 34007 34008 input_path="$new_path" 34009 # Check if we need to convert this using DOS-style short mode. If the path 34010 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34011 # take no chances and rewrite it. 34012 # Note: m4 eats our [], so we need to use [ and ] instead. 34013 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34014 if test "x$has_forbidden_chars" != x; then 34015 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34016 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34017 fi 34018 34019 # Output is in $new_path 34020 34021 windows_path="$new_path" 34022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34023 unix_path=`$CYGPATH -u "$windows_path"` 34024 new_path="$unix_path" 34025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34027 new_path="$unix_path" 34028 fi 34029 34030 # remove trailing .exe if any 34031 new_path="${new_path/%.exe/}" 34032 34033 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34034 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34035 fi 34036 34037 else 34038 # We're on a posix platform. Hooray! :) 34039 # First separate the path from the arguments. This will split at the first 34040 # space. 34041 complete="$MT" 34042 path="${complete%% *}" 34043 tmp="$complete EOL" 34044 arguments="${tmp#* }" 34045 34046 # Cannot rely on the command "which" here since it doesn't always work. 34047 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34048 if test -z "$is_absolute_path"; then 34049 # Path to executable is not absolute. Find it. 34050 IFS_save="$IFS" 34051 IFS=: 34052 for p in $PATH; do 34053 if test -f "$p/$path" && test -x "$p/$path"; then 34054 new_path="$p/$path" 34055 break 34056 fi 34057 done 34058 IFS="$IFS_save" 34059 else 34060 # This is an absolute path, we can use it without further modifications. 34061 new_path="$path" 34062 fi 34063 34064 if test "x$new_path" = x; then 34065 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 34066 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 34067 has_space=`$ECHO "$complete" | $GREP " "` 34068 if test "x$has_space" != x; then 34069 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34070 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34071 fi 34072 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 34073 fi 34074 fi 34075 34076 # Now join together the path and the arguments once again 34077 if test "x$arguments" != xEOL; then 34078 new_complete="$new_path ${arguments% *}" 34079 else 34080 new_complete="$new_path" 34081 fi 34082 34083 if test "x$complete" != "x$new_complete"; then 34084 MT="$new_complete" 34085 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 34086 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 34087 fi 34088 34089 # Setup the resource compiler (RC) 34090 # Extract the first word of "rc", so it can be a program name with args. 34091 set dummy rc; ac_word=$2 34092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34093 $as_echo_n "checking for $ac_word... " >&6; } 34094 if ${ac_cv_prog_RC+:} false; then : 34095 $as_echo_n "(cached) " >&6 34096 else 34097 if test -n "$RC"; then 34098 ac_cv_prog_RC="$RC" # Let the user override the test. 34099 else 34100 ac_prog_rejected=no 34101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34102 for as_dir in $PATH 34103 do 34104 IFS=$as_save_IFS 34105 test -z "$as_dir" && as_dir=. 34106 for ac_exec_ext in '' $ac_executable_extensions; do 34107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34108 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 34109 ac_prog_rejected=yes 34110 continue 34111 fi 34112 ac_cv_prog_RC="rc" 34113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34114 break 2 34115 fi 34116 done 34117 done 34118 IFS=$as_save_IFS 34119 34120 if test $ac_prog_rejected = yes; then 34121 # We found a bogon in the path, so make sure we never use it. 34122 set dummy $ac_cv_prog_RC 34123 shift 34124 if test $# != 0; then 34125 # We chose a different compiler from the bogus one. 34126 # However, it has the same basename, so the bogon will be chosen 34127 # first if we set RC to just the basename; use the full file name. 34128 shift 34129 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 34130 fi 34131 fi 34132 fi 34133 fi 34134 RC=$ac_cv_prog_RC 34135 if test -n "$RC"; then 34136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 34137 $as_echo "$RC" >&6; } 34138 else 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34140 $as_echo "no" >&6; } 34141 fi 34142 34143 34144 34145 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34146 34147 # First separate the path from the arguments. This will split at the first 34148 # space. 34149 complete="$RC" 34150 path="${complete%% *}" 34151 tmp="$complete EOL" 34152 arguments="${tmp#* }" 34153 34154 # Input might be given as Windows format, start by converting to 34155 # unix format. 34156 new_path=`$CYGPATH -u "$path"` 34157 34158 # Now try to locate executable using which 34159 new_path=`$WHICH "$new_path" 2> /dev/null` 34160 # bat and cmd files are not always considered executable in cygwin causing which 34161 # to not find them 34162 if test "x$new_path" = x \ 34163 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34164 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34165 new_path=`$CYGPATH -u "$path"` 34166 fi 34167 if test "x$new_path" = x; then 34168 # Oops. Which didn't find the executable. 34169 # The splitting of arguments from the executable at a space might have been incorrect, 34170 # since paths with space are more likely in Windows. Give it another try with the whole 34171 # argument. 34172 path="$complete" 34173 arguments="EOL" 34174 new_path=`$CYGPATH -u "$path"` 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 # It's still not found. Now this is an unrecoverable error. 34185 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34186 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34187 has_space=`$ECHO "$complete" | $GREP " "` 34188 if test "x$has_space" != x; then 34189 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34190 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34191 fi 34192 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34193 fi 34194 fi 34195 34196 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34197 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34198 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34199 # "foo.exe" is OK but "foo" is an error. 34200 # 34201 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34202 # It is also a way to make sure we got the proper file name for the real test later on. 34203 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34204 if test "x$test_shortpath" = x; then 34205 # Short path failed, file does not exist as specified. 34206 # Try adding .exe or .cmd 34207 if test -f "${new_path}.exe"; then 34208 input_to_shortpath="${new_path}.exe" 34209 elif test -f "${new_path}.cmd"; then 34210 input_to_shortpath="${new_path}.cmd" 34211 else 34212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 34213 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 34214 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34215 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34216 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34217 fi 34218 else 34219 input_to_shortpath="$new_path" 34220 fi 34221 34222 # Call helper function which possibly converts this using DOS-style short mode. 34223 # If so, the updated path is stored in $new_path. 34224 new_path="$input_to_shortpath" 34225 34226 input_path="$input_to_shortpath" 34227 # Check if we need to convert this using DOS-style short mode. If the path 34228 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34229 # take no chances and rewrite it. 34230 # Note: m4 eats our [], so we need to use [ and ] instead. 34231 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34232 if test "x$has_forbidden_chars" != x; then 34233 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34234 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34235 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34236 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34237 # Going to short mode and back again did indeed matter. Since short mode is 34238 # case insensitive, let's make it lowercase to improve readability. 34239 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34240 # Now convert it back to Unix-stile (cygpath) 34241 input_path=`$CYGPATH -u "$shortmode_path"` 34242 new_path="$input_path" 34243 fi 34244 fi 34245 34246 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34247 if test "x$test_cygdrive_prefix" = x; then 34248 # As a simple fix, exclude /usr/bin since it's not a real path. 34249 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34250 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34251 # a path prefixed by /cygdrive for fixpath to work. 34252 new_path="$CYGWIN_ROOT_PATH$input_path" 34253 fi 34254 fi 34255 34256 # remove trailing .exe if any 34257 new_path="${new_path/%.exe/}" 34258 34259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34260 34261 # First separate the path from the arguments. This will split at the first 34262 # space. 34263 complete="$RC" 34264 path="${complete%% *}" 34265 tmp="$complete EOL" 34266 arguments="${tmp#* }" 34267 34268 # Input might be given as Windows format, start by converting to 34269 # unix format. 34270 new_path="$path" 34271 34272 windows_path="$new_path" 34273 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34274 unix_path=`$CYGPATH -u "$windows_path"` 34275 new_path="$unix_path" 34276 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34277 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34278 new_path="$unix_path" 34279 fi 34280 34281 34282 # Now try to locate executable using which 34283 new_path=`$WHICH "$new_path" 2> /dev/null` 34284 34285 if test "x$new_path" = x; then 34286 # Oops. Which didn't find the executable. 34287 # The splitting of arguments from the executable at a space might have been incorrect, 34288 # since paths with space are more likely in Windows. Give it another try with the whole 34289 # argument. 34290 path="$complete" 34291 arguments="EOL" 34292 new_path="$path" 34293 34294 windows_path="$new_path" 34295 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34296 unix_path=`$CYGPATH -u "$windows_path"` 34297 new_path="$unix_path" 34298 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34299 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34300 new_path="$unix_path" 34301 fi 34302 34303 34304 new_path=`$WHICH "$new_path" 2> /dev/null` 34305 34306 if test "x$new_path" = x; then 34307 # It's still not found. Now this is an unrecoverable error. 34308 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34309 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34310 has_space=`$ECHO "$complete" | $GREP " "` 34311 if test "x$has_space" != x; then 34312 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34313 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34314 fi 34315 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34316 fi 34317 fi 34318 34319 # Now new_path has a complete unix path to the binary 34320 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34321 # Keep paths in /bin as-is, but remove trailing .exe if any 34322 new_path="${new_path/%.exe/}" 34323 # Do not save /bin paths to all_fixpath_prefixes! 34324 else 34325 # Not in mixed or Windows style, start by that. 34326 new_path=`cmd //c echo $new_path` 34327 34328 input_path="$new_path" 34329 # Check if we need to convert this using DOS-style short mode. If the path 34330 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34331 # take no chances and rewrite it. 34332 # Note: m4 eats our [], so we need to use [ and ] instead. 34333 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34334 if test "x$has_forbidden_chars" != x; then 34335 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34336 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34337 fi 34338 34339 # Output is in $new_path 34340 34341 windows_path="$new_path" 34342 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34343 unix_path=`$CYGPATH -u "$windows_path"` 34344 new_path="$unix_path" 34345 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34346 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34347 new_path="$unix_path" 34348 fi 34349 34350 # remove trailing .exe if any 34351 new_path="${new_path/%.exe/}" 34352 34353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34355 fi 34356 34357 else 34358 # We're on a posix platform. Hooray! :) 34359 # First separate the path from the arguments. This will split at the first 34360 # space. 34361 complete="$RC" 34362 path="${complete%% *}" 34363 tmp="$complete EOL" 34364 arguments="${tmp#* }" 34365 34366 # Cannot rely on the command "which" here since it doesn't always work. 34367 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34368 if test -z "$is_absolute_path"; then 34369 # Path to executable is not absolute. Find it. 34370 IFS_save="$IFS" 34371 IFS=: 34372 for p in $PATH; do 34373 if test -f "$p/$path" && test -x "$p/$path"; then 34374 new_path="$p/$path" 34375 break 34376 fi 34377 done 34378 IFS="$IFS_save" 34379 else 34380 # This is an absolute path, we can use it without further modifications. 34381 new_path="$path" 34382 fi 34383 34384 if test "x$new_path" = x; then 34385 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 34386 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 34387 has_space=`$ECHO "$complete" | $GREP " "` 34388 if test "x$has_space" != x; then 34389 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34390 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34391 fi 34392 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 34393 fi 34394 fi 34395 34396 # Now join together the path and the arguments once again 34397 if test "x$arguments" != xEOL; then 34398 new_complete="$new_path ${arguments% *}" 34399 else 34400 new_complete="$new_path" 34401 fi 34402 34403 if test "x$complete" != "x$new_complete"; then 34404 RC="$new_complete" 34405 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 34406 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 34407 fi 34408 34409 # Extract the first word of "dumpbin", so it can be a program name with args. 34410 set dummy dumpbin; ac_word=$2 34411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34412 $as_echo_n "checking for $ac_word... " >&6; } 34413 if ${ac_cv_prog_DUMPBIN+:} false; then : 34414 $as_echo_n "(cached) " >&6 34415 else 34416 if test -n "$DUMPBIN"; then 34417 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 34418 else 34419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34420 for as_dir in $PATH 34421 do 34422 IFS=$as_save_IFS 34423 test -z "$as_dir" && as_dir=. 34424 for ac_exec_ext in '' $ac_executable_extensions; do 34425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34426 ac_cv_prog_DUMPBIN="dumpbin" 34427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34428 break 2 34429 fi 34430 done 34431 done 34432 IFS=$as_save_IFS 34433 34434 fi 34435 fi 34436 DUMPBIN=$ac_cv_prog_DUMPBIN 34437 if test -n "$DUMPBIN"; then 34438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 34439 $as_echo "$DUMPBIN" >&6; } 34440 else 34441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34442 $as_echo "no" >&6; } 34443 fi 34444 34445 34446 34447 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34448 34449 # First separate the path from the arguments. This will split at the first 34450 # space. 34451 complete="$DUMPBIN" 34452 path="${complete%% *}" 34453 tmp="$complete EOL" 34454 arguments="${tmp#* }" 34455 34456 # Input might be given as Windows format, start by converting to 34457 # unix format. 34458 new_path=`$CYGPATH -u "$path"` 34459 34460 # Now try to locate executable using which 34461 new_path=`$WHICH "$new_path" 2> /dev/null` 34462 # bat and cmd files are not always considered executable in cygwin causing which 34463 # to not find them 34464 if test "x$new_path" = x \ 34465 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34466 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34467 new_path=`$CYGPATH -u "$path"` 34468 fi 34469 if test "x$new_path" = x; then 34470 # Oops. Which didn't find the executable. 34471 # The splitting of arguments from the executable at a space might have been incorrect, 34472 # since paths with space are more likely in Windows. Give it another try with the whole 34473 # argument. 34474 path="$complete" 34475 arguments="EOL" 34476 new_path=`$CYGPATH -u "$path"` 34477 new_path=`$WHICH "$new_path" 2> /dev/null` 34478 # bat and cmd files are not always considered executable in cygwin causing which 34479 # to not find them 34480 if test "x$new_path" = x \ 34481 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34482 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34483 new_path=`$CYGPATH -u "$path"` 34484 fi 34485 if test "x$new_path" = x; then 34486 # It's still not found. Now this is an unrecoverable error. 34487 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34488 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34489 has_space=`$ECHO "$complete" | $GREP " "` 34490 if test "x$has_space" != x; then 34491 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34492 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34493 fi 34494 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34495 fi 34496 fi 34497 34498 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34499 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34500 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34501 # "foo.exe" is OK but "foo" is an error. 34502 # 34503 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34504 # It is also a way to make sure we got the proper file name for the real test later on. 34505 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34506 if test "x$test_shortpath" = x; then 34507 # Short path failed, file does not exist as specified. 34508 # Try adding .exe or .cmd 34509 if test -f "${new_path}.exe"; then 34510 input_to_shortpath="${new_path}.exe" 34511 elif test -f "${new_path}.cmd"; then 34512 input_to_shortpath="${new_path}.cmd" 34513 else 34514 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 34515 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 34516 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34517 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34518 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34519 fi 34520 else 34521 input_to_shortpath="$new_path" 34522 fi 34523 34524 # Call helper function which possibly converts this using DOS-style short mode. 34525 # If so, the updated path is stored in $new_path. 34526 new_path="$input_to_shortpath" 34527 34528 input_path="$input_to_shortpath" 34529 # Check if we need to convert this using DOS-style short mode. If the path 34530 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34531 # take no chances and rewrite it. 34532 # Note: m4 eats our [], so we need to use [ and ] instead. 34533 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34534 if test "x$has_forbidden_chars" != x; then 34535 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34536 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34537 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34538 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34539 # Going to short mode and back again did indeed matter. Since short mode is 34540 # case insensitive, let's make it lowercase to improve readability. 34541 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34542 # Now convert it back to Unix-stile (cygpath) 34543 input_path=`$CYGPATH -u "$shortmode_path"` 34544 new_path="$input_path" 34545 fi 34546 fi 34547 34548 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34549 if test "x$test_cygdrive_prefix" = x; then 34550 # As a simple fix, exclude /usr/bin since it's not a real path. 34551 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34552 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34553 # a path prefixed by /cygdrive for fixpath to work. 34554 new_path="$CYGWIN_ROOT_PATH$input_path" 34555 fi 34556 fi 34557 34558 # remove trailing .exe if any 34559 new_path="${new_path/%.exe/}" 34560 34561 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34562 34563 # First separate the path from the arguments. This will split at the first 34564 # space. 34565 complete="$DUMPBIN" 34566 path="${complete%% *}" 34567 tmp="$complete EOL" 34568 arguments="${tmp#* }" 34569 34570 # Input might be given as Windows format, start by converting to 34571 # unix format. 34572 new_path="$path" 34573 34574 windows_path="$new_path" 34575 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34576 unix_path=`$CYGPATH -u "$windows_path"` 34577 new_path="$unix_path" 34578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34579 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34580 new_path="$unix_path" 34581 fi 34582 34583 34584 # Now try to locate executable using which 34585 new_path=`$WHICH "$new_path" 2> /dev/null` 34586 34587 if test "x$new_path" = x; then 34588 # Oops. Which didn't find the executable. 34589 # The splitting of arguments from the executable at a space might have been incorrect, 34590 # since paths with space are more likely in Windows. Give it another try with the whole 34591 # argument. 34592 path="$complete" 34593 arguments="EOL" 34594 new_path="$path" 34595 34596 windows_path="$new_path" 34597 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34598 unix_path=`$CYGPATH -u "$windows_path"` 34599 new_path="$unix_path" 34600 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34601 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34602 new_path="$unix_path" 34603 fi 34604 34605 34606 new_path=`$WHICH "$new_path" 2> /dev/null` 34607 34608 if test "x$new_path" = x; then 34609 # It's still not found. Now this is an unrecoverable error. 34610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34611 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34612 has_space=`$ECHO "$complete" | $GREP " "` 34613 if test "x$has_space" != x; then 34614 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34615 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34616 fi 34617 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34618 fi 34619 fi 34620 34621 # Now new_path has a complete unix path to the binary 34622 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34623 # Keep paths in /bin as-is, but remove trailing .exe if any 34624 new_path="${new_path/%.exe/}" 34625 # Do not save /bin paths to all_fixpath_prefixes! 34626 else 34627 # Not in mixed or Windows style, start by that. 34628 new_path=`cmd //c echo $new_path` 34629 34630 input_path="$new_path" 34631 # Check if we need to convert this using DOS-style short mode. If the path 34632 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34633 # take no chances and rewrite it. 34634 # Note: m4 eats our [], so we need to use [ and ] instead. 34635 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34636 if test "x$has_forbidden_chars" != x; then 34637 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34638 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34639 fi 34640 34641 # Output is in $new_path 34642 34643 windows_path="$new_path" 34644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34645 unix_path=`$CYGPATH -u "$windows_path"` 34646 new_path="$unix_path" 34647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34649 new_path="$unix_path" 34650 fi 34651 34652 # remove trailing .exe if any 34653 new_path="${new_path/%.exe/}" 34654 34655 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34656 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34657 fi 34658 34659 else 34660 # We're on a posix platform. Hooray! :) 34661 # First separate the path from the arguments. This will split at the first 34662 # space. 34663 complete="$DUMPBIN" 34664 path="${complete%% *}" 34665 tmp="$complete EOL" 34666 arguments="${tmp#* }" 34667 34668 # Cannot rely on the command "which" here since it doesn't always work. 34669 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34670 if test -z "$is_absolute_path"; then 34671 # Path to executable is not absolute. Find it. 34672 IFS_save="$IFS" 34673 IFS=: 34674 for p in $PATH; do 34675 if test -f "$p/$path" && test -x "$p/$path"; then 34676 new_path="$p/$path" 34677 break 34678 fi 34679 done 34680 IFS="$IFS_save" 34681 else 34682 # This is an absolute path, we can use it without further modifications. 34683 new_path="$path" 34684 fi 34685 34686 if test "x$new_path" = x; then 34687 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 34688 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 34689 has_space=`$ECHO "$complete" | $GREP " "` 34690 if test "x$has_space" != x; then 34691 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34692 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34693 fi 34694 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 34695 fi 34696 fi 34697 34698 # Now join together the path and the arguments once again 34699 if test "x$arguments" != xEOL; then 34700 new_complete="$new_path ${arguments% *}" 34701 else 34702 new_complete="$new_path" 34703 fi 34704 34705 if test "x$complete" != "x$new_complete"; then 34706 DUMPBIN="$new_complete" 34707 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 34708 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 34709 fi 34710 34711 fi 34712 34713 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 34714 34715 34716 # Publish this variable in the help. 34717 34718 34719 if test "x$STRIP" = x; then 34720 # The variable is not set by user, try to locate tool using the code snippet 34721 for ac_prog in strip 34722 do 34723 # Extract the first word of "$ac_prog", so it can be a program name with args. 34724 set dummy $ac_prog; ac_word=$2 34725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34726 $as_echo_n "checking for $ac_word... " >&6; } 34727 if ${ac_cv_path_STRIP+:} false; then : 34728 $as_echo_n "(cached) " >&6 34729 else 34730 case $STRIP in 34731 [\\/]* | ?:[\\/]*) 34732 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34733 ;; 34734 *) 34735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34736 for as_dir in $PATH 34737 do 34738 IFS=$as_save_IFS 34739 test -z "$as_dir" && as_dir=. 34740 for ac_exec_ext in '' $ac_executable_extensions; do 34741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34742 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34744 break 2 34745 fi 34746 done 34747 done 34748 IFS=$as_save_IFS 34749 34750 ;; 34751 esac 34752 fi 34753 STRIP=$ac_cv_path_STRIP 34754 if test -n "$STRIP"; then 34755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34756 $as_echo "$STRIP" >&6; } 34757 else 34758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34759 $as_echo "no" >&6; } 34760 fi 34761 34762 34763 test -n "$STRIP" && break 34764 done 34765 34766 else 34767 # The variable is set, but is it from the command line or the environment? 34768 34769 # Try to remove the string !STRIP! from our list. 34770 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 34771 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34772 # If it failed, the variable was not from the command line. Ignore it, 34773 # but warn the user (except for BASH, which is always set by the calling BASH). 34774 if test "xSTRIP" != xBASH; then 34775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 34776 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 34777 fi 34778 # Try to locate tool using the code snippet 34779 for ac_prog in strip 34780 do 34781 # Extract the first word of "$ac_prog", so it can be a program name with args. 34782 set dummy $ac_prog; ac_word=$2 34783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34784 $as_echo_n "checking for $ac_word... " >&6; } 34785 if ${ac_cv_path_STRIP+:} false; then : 34786 $as_echo_n "(cached) " >&6 34787 else 34788 case $STRIP in 34789 [\\/]* | ?:[\\/]*) 34790 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34791 ;; 34792 *) 34793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34794 for as_dir in $PATH 34795 do 34796 IFS=$as_save_IFS 34797 test -z "$as_dir" && as_dir=. 34798 for ac_exec_ext in '' $ac_executable_extensions; do 34799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34800 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34802 break 2 34803 fi 34804 done 34805 done 34806 IFS=$as_save_IFS 34807 34808 ;; 34809 esac 34810 fi 34811 STRIP=$ac_cv_path_STRIP 34812 if test -n "$STRIP"; then 34813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34814 $as_echo "$STRIP" >&6; } 34815 else 34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34817 $as_echo "no" >&6; } 34818 fi 34819 34820 34821 test -n "$STRIP" && break 34822 done 34823 34824 else 34825 # If it succeeded, then it was overridden by the user. We will use it 34826 # for the tool. 34827 34828 # First remove it from the list of overridden variables, so we can test 34829 # for unknown variables in the end. 34830 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34831 34832 # Check if the provided tool contains a complete path. 34833 tool_specified="$STRIP" 34834 tool_basename="${tool_specified##*/}" 34835 if test "x$tool_basename" = "x$tool_specified"; then 34836 # A command without a complete path is provided, search $PATH. 34837 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 34838 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 34839 # Extract the first word of "$tool_basename", so it can be a program name with args. 34840 set dummy $tool_basename; ac_word=$2 34841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34842 $as_echo_n "checking for $ac_word... " >&6; } 34843 if ${ac_cv_path_STRIP+:} false; then : 34844 $as_echo_n "(cached) " >&6 34845 else 34846 case $STRIP in 34847 [\\/]* | ?:[\\/]*) 34848 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 34849 ;; 34850 *) 34851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34852 for as_dir in $PATH 34853 do 34854 IFS=$as_save_IFS 34855 test -z "$as_dir" && as_dir=. 34856 for ac_exec_ext in '' $ac_executable_extensions; do 34857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34858 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 34859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34860 break 2 34861 fi 34862 done 34863 done 34864 IFS=$as_save_IFS 34865 34866 ;; 34867 esac 34868 fi 34869 STRIP=$ac_cv_path_STRIP 34870 if test -n "$STRIP"; then 34871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 34872 $as_echo "$STRIP" >&6; } 34873 else 34874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34875 $as_echo "no" >&6; } 34876 fi 34877 34878 34879 if test "x$STRIP" = x; then 34880 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34881 fi 34882 else 34883 # Otherwise we believe it is a complete path. Use it as it is. 34884 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 34885 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 34886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 34887 $as_echo_n "checking for STRIP... " >&6; } 34888 if test ! -x "$tool_specified"; then 34889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34890 $as_echo "not found" >&6; } 34891 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 34892 fi 34893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34894 $as_echo "$tool_specified" >&6; } 34895 fi 34896 fi 34897 fi 34898 34899 34900 34901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34902 34903 # First separate the path from the arguments. This will split at the first 34904 # space. 34905 complete="$STRIP" 34906 path="${complete%% *}" 34907 tmp="$complete EOL" 34908 arguments="${tmp#* }" 34909 34910 # Input might be given as Windows format, start by converting to 34911 # unix format. 34912 new_path=`$CYGPATH -u "$path"` 34913 34914 # Now try to locate executable using which 34915 new_path=`$WHICH "$new_path" 2> /dev/null` 34916 # bat and cmd files are not always considered executable in cygwin causing which 34917 # to not find them 34918 if test "x$new_path" = x \ 34919 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34920 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34921 new_path=`$CYGPATH -u "$path"` 34922 fi 34923 if test "x$new_path" = x; then 34924 # Oops. Which didn't find the executable. 34925 # The splitting of arguments from the executable at a space might have been incorrect, 34926 # since paths with space are more likely in Windows. Give it another try with the whole 34927 # argument. 34928 path="$complete" 34929 arguments="EOL" 34930 new_path=`$CYGPATH -u "$path"` 34931 new_path=`$WHICH "$new_path" 2> /dev/null` 34932 # bat and cmd files are not always considered executable in cygwin causing which 34933 # to not find them 34934 if test "x$new_path" = x \ 34935 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34936 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34937 new_path=`$CYGPATH -u "$path"` 34938 fi 34939 if test "x$new_path" = x; then 34940 # It's still not found. Now this is an unrecoverable error. 34941 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 34942 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 34943 has_space=`$ECHO "$complete" | $GREP " "` 34944 if test "x$has_space" != x; then 34945 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34946 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34947 fi 34948 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34949 fi 34950 fi 34951 34952 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34953 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34954 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34955 # "foo.exe" is OK but "foo" is an error. 34956 # 34957 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34958 # It is also a way to make sure we got the proper file name for the real test later on. 34959 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34960 if test "x$test_shortpath" = x; then 34961 # Short path failed, file does not exist as specified. 34962 # Try adding .exe or .cmd 34963 if test -f "${new_path}.exe"; then 34964 input_to_shortpath="${new_path}.exe" 34965 elif test -f "${new_path}.cmd"; then 34966 input_to_shortpath="${new_path}.cmd" 34967 else 34968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 34969 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 34970 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34971 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34972 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 34973 fi 34974 else 34975 input_to_shortpath="$new_path" 34976 fi 34977 34978 # Call helper function which possibly converts this using DOS-style short mode. 34979 # If so, the updated path is stored in $new_path. 34980 new_path="$input_to_shortpath" 34981 34982 input_path="$input_to_shortpath" 34983 # Check if we need to convert this using DOS-style short mode. If the path 34984 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34985 # take no chances and rewrite it. 34986 # Note: m4 eats our [], so we need to use [ and ] instead. 34987 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34988 if test "x$has_forbidden_chars" != x; then 34989 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34990 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34991 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34992 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34993 # Going to short mode and back again did indeed matter. Since short mode is 34994 # case insensitive, let's make it lowercase to improve readability. 34995 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34996 # Now convert it back to Unix-stile (cygpath) 34997 input_path=`$CYGPATH -u "$shortmode_path"` 34998 new_path="$input_path" 34999 fi 35000 fi 35001 35002 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35003 if test "x$test_cygdrive_prefix" = x; then 35004 # As a simple fix, exclude /usr/bin since it's not a real path. 35005 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35006 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35007 # a path prefixed by /cygdrive for fixpath to work. 35008 new_path="$CYGWIN_ROOT_PATH$input_path" 35009 fi 35010 fi 35011 35012 # remove trailing .exe if any 35013 new_path="${new_path/%.exe/}" 35014 35015 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35016 35017 # First separate the path from the arguments. This will split at the first 35018 # space. 35019 complete="$STRIP" 35020 path="${complete%% *}" 35021 tmp="$complete EOL" 35022 arguments="${tmp#* }" 35023 35024 # Input might be given as Windows format, start by converting to 35025 # unix format. 35026 new_path="$path" 35027 35028 windows_path="$new_path" 35029 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35030 unix_path=`$CYGPATH -u "$windows_path"` 35031 new_path="$unix_path" 35032 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35033 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35034 new_path="$unix_path" 35035 fi 35036 35037 35038 # Now try to locate executable using which 35039 new_path=`$WHICH "$new_path" 2> /dev/null` 35040 35041 if test "x$new_path" = x; then 35042 # Oops. Which didn't find the executable. 35043 # The splitting of arguments from the executable at a space might have been incorrect, 35044 # since paths with space are more likely in Windows. Give it another try with the whole 35045 # argument. 35046 path="$complete" 35047 arguments="EOL" 35048 new_path="$path" 35049 35050 windows_path="$new_path" 35051 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35052 unix_path=`$CYGPATH -u "$windows_path"` 35053 new_path="$unix_path" 35054 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35055 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35056 new_path="$unix_path" 35057 fi 35058 35059 35060 new_path=`$WHICH "$new_path" 2> /dev/null` 35061 35062 if test "x$new_path" = x; then 35063 # It's still not found. Now this is an unrecoverable error. 35064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35065 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35066 has_space=`$ECHO "$complete" | $GREP " "` 35067 if test "x$has_space" != x; then 35068 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35069 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35070 fi 35071 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35072 fi 35073 fi 35074 35075 # Now new_path has a complete unix path to the binary 35076 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35077 # Keep paths in /bin as-is, but remove trailing .exe if any 35078 new_path="${new_path/%.exe/}" 35079 # Do not save /bin paths to all_fixpath_prefixes! 35080 else 35081 # Not in mixed or Windows style, start by that. 35082 new_path=`cmd //c echo $new_path` 35083 35084 input_path="$new_path" 35085 # Check if we need to convert this using DOS-style short mode. If the path 35086 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35087 # take no chances and rewrite it. 35088 # Note: m4 eats our [], so we need to use [ and ] instead. 35089 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35090 if test "x$has_forbidden_chars" != x; then 35091 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35092 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35093 fi 35094 35095 # Output is in $new_path 35096 35097 windows_path="$new_path" 35098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35099 unix_path=`$CYGPATH -u "$windows_path"` 35100 new_path="$unix_path" 35101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35103 new_path="$unix_path" 35104 fi 35105 35106 # remove trailing .exe if any 35107 new_path="${new_path/%.exe/}" 35108 35109 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35110 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35111 fi 35112 35113 else 35114 # We're on a posix platform. Hooray! :) 35115 # First separate the path from the arguments. This will split at the first 35116 # space. 35117 complete="$STRIP" 35118 path="${complete%% *}" 35119 tmp="$complete EOL" 35120 arguments="${tmp#* }" 35121 35122 # Cannot rely on the command "which" here since it doesn't always work. 35123 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35124 if test -z "$is_absolute_path"; then 35125 # Path to executable is not absolute. Find it. 35126 IFS_save="$IFS" 35127 IFS=: 35128 for p in $PATH; do 35129 if test -f "$p/$path" && test -x "$p/$path"; then 35130 new_path="$p/$path" 35131 break 35132 fi 35133 done 35134 IFS="$IFS_save" 35135 else 35136 # This is an absolute path, we can use it without further modifications. 35137 new_path="$path" 35138 fi 35139 35140 if test "x$new_path" = x; then 35141 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35142 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35143 has_space=`$ECHO "$complete" | $GREP " "` 35144 if test "x$has_space" != x; then 35145 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35146 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35147 fi 35148 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35149 fi 35150 fi 35151 35152 # Now join together the path and the arguments once again 35153 if test "x$arguments" != xEOL; then 35154 new_complete="$new_path ${arguments% *}" 35155 else 35156 new_complete="$new_path" 35157 fi 35158 35159 if test "x$complete" != "x$new_complete"; then 35160 STRIP="$new_complete" 35161 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35162 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35163 fi 35164 35165 35166 35167 # Publish this variable in the help. 35168 35169 35170 if test "x$NM" = x; then 35171 # The variable is not set by user, try to locate tool using the code snippet 35172 for ac_prog in nm 35173 do 35174 # Extract the first word of "$ac_prog", so it can be a program name with args. 35175 set dummy $ac_prog; ac_word=$2 35176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35177 $as_echo_n "checking for $ac_word... " >&6; } 35178 if ${ac_cv_path_NM+:} false; then : 35179 $as_echo_n "(cached) " >&6 35180 else 35181 case $NM in 35182 [\\/]* | ?:[\\/]*) 35183 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35184 ;; 35185 *) 35186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35187 for as_dir in $PATH 35188 do 35189 IFS=$as_save_IFS 35190 test -z "$as_dir" && as_dir=. 35191 for ac_exec_ext in '' $ac_executable_extensions; do 35192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35193 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35195 break 2 35196 fi 35197 done 35198 done 35199 IFS=$as_save_IFS 35200 35201 ;; 35202 esac 35203 fi 35204 NM=$ac_cv_path_NM 35205 if test -n "$NM"; then 35206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35207 $as_echo "$NM" >&6; } 35208 else 35209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35210 $as_echo "no" >&6; } 35211 fi 35212 35213 35214 test -n "$NM" && break 35215 done 35216 35217 else 35218 # The variable is set, but is it from the command line or the environment? 35219 35220 # Try to remove the string !NM! from our list. 35221 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35222 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35223 # If it failed, the variable was not from the command line. Ignore it, 35224 # but warn the user (except for BASH, which is always set by the calling BASH). 35225 if test "xNM" != xBASH; then 35226 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35227 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35228 fi 35229 # Try to locate tool using the code snippet 35230 for ac_prog in nm 35231 do 35232 # Extract the first word of "$ac_prog", so it can be a program name with args. 35233 set dummy $ac_prog; ac_word=$2 35234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35235 $as_echo_n "checking for $ac_word... " >&6; } 35236 if ${ac_cv_path_NM+:} false; then : 35237 $as_echo_n "(cached) " >&6 35238 else 35239 case $NM in 35240 [\\/]* | ?:[\\/]*) 35241 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35242 ;; 35243 *) 35244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35245 for as_dir in $PATH 35246 do 35247 IFS=$as_save_IFS 35248 test -z "$as_dir" && as_dir=. 35249 for ac_exec_ext in '' $ac_executable_extensions; do 35250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35251 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35253 break 2 35254 fi 35255 done 35256 done 35257 IFS=$as_save_IFS 35258 35259 ;; 35260 esac 35261 fi 35262 NM=$ac_cv_path_NM 35263 if test -n "$NM"; then 35264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35265 $as_echo "$NM" >&6; } 35266 else 35267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35268 $as_echo "no" >&6; } 35269 fi 35270 35271 35272 test -n "$NM" && break 35273 done 35274 35275 else 35276 # If it succeeded, then it was overridden by the user. We will use it 35277 # for the tool. 35278 35279 # First remove it from the list of overridden variables, so we can test 35280 # for unknown variables in the end. 35281 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35282 35283 # Check if the provided tool contains a complete path. 35284 tool_specified="$NM" 35285 tool_basename="${tool_specified##*/}" 35286 if test "x$tool_basename" = "x$tool_specified"; then 35287 # A command without a complete path is provided, search $PATH. 35288 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35289 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35290 # Extract the first word of "$tool_basename", so it can be a program name with args. 35291 set dummy $tool_basename; ac_word=$2 35292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35293 $as_echo_n "checking for $ac_word... " >&6; } 35294 if ${ac_cv_path_NM+:} false; then : 35295 $as_echo_n "(cached) " >&6 35296 else 35297 case $NM in 35298 [\\/]* | ?:[\\/]*) 35299 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35300 ;; 35301 *) 35302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35303 for as_dir in $PATH 35304 do 35305 IFS=$as_save_IFS 35306 test -z "$as_dir" && as_dir=. 35307 for ac_exec_ext in '' $ac_executable_extensions; do 35308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35309 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 35310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35311 break 2 35312 fi 35313 done 35314 done 35315 IFS=$as_save_IFS 35316 35317 ;; 35318 esac 35319 fi 35320 NM=$ac_cv_path_NM 35321 if test -n "$NM"; then 35322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35323 $as_echo "$NM" >&6; } 35324 else 35325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35326 $as_echo "no" >&6; } 35327 fi 35328 35329 35330 if test "x$NM" = x; then 35331 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35332 fi 35333 else 35334 # Otherwise we believe it is a complete path. Use it as it is. 35335 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 35336 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 35337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 35338 $as_echo_n "checking for NM... " >&6; } 35339 if test ! -x "$tool_specified"; then 35340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35341 $as_echo "not found" >&6; } 35342 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 35343 fi 35344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35345 $as_echo "$tool_specified" >&6; } 35346 fi 35347 fi 35348 fi 35349 35350 35351 35352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35353 35354 # First separate the path from the arguments. This will split at the first 35355 # space. 35356 complete="$NM" 35357 path="${complete%% *}" 35358 tmp="$complete EOL" 35359 arguments="${tmp#* }" 35360 35361 # Input might be given as Windows format, start by converting to 35362 # unix format. 35363 new_path=`$CYGPATH -u "$path"` 35364 35365 # Now try to locate executable using which 35366 new_path=`$WHICH "$new_path" 2> /dev/null` 35367 # bat and cmd files are not always considered executable in cygwin causing which 35368 # to not find them 35369 if test "x$new_path" = x \ 35370 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35371 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35372 new_path=`$CYGPATH -u "$path"` 35373 fi 35374 if test "x$new_path" = x; then 35375 # Oops. Which didn't find the executable. 35376 # The splitting of arguments from the executable at a space might have been incorrect, 35377 # since paths with space are more likely in Windows. Give it another try with the whole 35378 # argument. 35379 path="$complete" 35380 arguments="EOL" 35381 new_path=`$CYGPATH -u "$path"` 35382 new_path=`$WHICH "$new_path" 2> /dev/null` 35383 # bat and cmd files are not always considered executable in cygwin causing which 35384 # to not find them 35385 if test "x$new_path" = x \ 35386 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35387 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35388 new_path=`$CYGPATH -u "$path"` 35389 fi 35390 if test "x$new_path" = x; then 35391 # It's still not found. Now this is an unrecoverable error. 35392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35393 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35394 has_space=`$ECHO "$complete" | $GREP " "` 35395 if test "x$has_space" != x; then 35396 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35397 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35398 fi 35399 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35400 fi 35401 fi 35402 35403 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35404 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35405 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35406 # "foo.exe" is OK but "foo" is an error. 35407 # 35408 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35409 # It is also a way to make sure we got the proper file name for the real test later on. 35410 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35411 if test "x$test_shortpath" = x; then 35412 # Short path failed, file does not exist as specified. 35413 # Try adding .exe or .cmd 35414 if test -f "${new_path}.exe"; then 35415 input_to_shortpath="${new_path}.exe" 35416 elif test -f "${new_path}.cmd"; then 35417 input_to_shortpath="${new_path}.cmd" 35418 else 35419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 35420 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 35421 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35422 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35423 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35424 fi 35425 else 35426 input_to_shortpath="$new_path" 35427 fi 35428 35429 # Call helper function which possibly converts this using DOS-style short mode. 35430 # If so, the updated path is stored in $new_path. 35431 new_path="$input_to_shortpath" 35432 35433 input_path="$input_to_shortpath" 35434 # Check if we need to convert this using DOS-style short mode. If the path 35435 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35436 # take no chances and rewrite it. 35437 # Note: m4 eats our [], so we need to use [ and ] instead. 35438 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35439 if test "x$has_forbidden_chars" != x; then 35440 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35441 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35442 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35443 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35444 # Going to short mode and back again did indeed matter. Since short mode is 35445 # case insensitive, let's make it lowercase to improve readability. 35446 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35447 # Now convert it back to Unix-stile (cygpath) 35448 input_path=`$CYGPATH -u "$shortmode_path"` 35449 new_path="$input_path" 35450 fi 35451 fi 35452 35453 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35454 if test "x$test_cygdrive_prefix" = x; then 35455 # As a simple fix, exclude /usr/bin since it's not a real path. 35456 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35457 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35458 # a path prefixed by /cygdrive for fixpath to work. 35459 new_path="$CYGWIN_ROOT_PATH$input_path" 35460 fi 35461 fi 35462 35463 # remove trailing .exe if any 35464 new_path="${new_path/%.exe/}" 35465 35466 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35467 35468 # First separate the path from the arguments. This will split at the first 35469 # space. 35470 complete="$NM" 35471 path="${complete%% *}" 35472 tmp="$complete EOL" 35473 arguments="${tmp#* }" 35474 35475 # Input might be given as Windows format, start by converting to 35476 # unix format. 35477 new_path="$path" 35478 35479 windows_path="$new_path" 35480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35481 unix_path=`$CYGPATH -u "$windows_path"` 35482 new_path="$unix_path" 35483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35485 new_path="$unix_path" 35486 fi 35487 35488 35489 # Now try to locate executable using which 35490 new_path=`$WHICH "$new_path" 2> /dev/null` 35491 35492 if test "x$new_path" = x; then 35493 # Oops. Which didn't find the executable. 35494 # The splitting of arguments from the executable at a space might have been incorrect, 35495 # since paths with space are more likely in Windows. Give it another try with the whole 35496 # argument. 35497 path="$complete" 35498 arguments="EOL" 35499 new_path="$path" 35500 35501 windows_path="$new_path" 35502 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35503 unix_path=`$CYGPATH -u "$windows_path"` 35504 new_path="$unix_path" 35505 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35506 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35507 new_path="$unix_path" 35508 fi 35509 35510 35511 new_path=`$WHICH "$new_path" 2> /dev/null` 35512 35513 if test "x$new_path" = x; then 35514 # It's still not found. Now this is an unrecoverable error. 35515 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35516 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35517 has_space=`$ECHO "$complete" | $GREP " "` 35518 if test "x$has_space" != x; then 35519 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35520 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35521 fi 35522 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35523 fi 35524 fi 35525 35526 # Now new_path has a complete unix path to the binary 35527 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35528 # Keep paths in /bin as-is, but remove trailing .exe if any 35529 new_path="${new_path/%.exe/}" 35530 # Do not save /bin paths to all_fixpath_prefixes! 35531 else 35532 # Not in mixed or Windows style, start by that. 35533 new_path=`cmd //c echo $new_path` 35534 35535 input_path="$new_path" 35536 # Check if we need to convert this using DOS-style short mode. If the path 35537 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35538 # take no chances and rewrite it. 35539 # Note: m4 eats our [], so we need to use [ and ] instead. 35540 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35541 if test "x$has_forbidden_chars" != x; then 35542 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35543 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35544 fi 35545 35546 # Output is in $new_path 35547 35548 windows_path="$new_path" 35549 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35550 unix_path=`$CYGPATH -u "$windows_path"` 35551 new_path="$unix_path" 35552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35553 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35554 new_path="$unix_path" 35555 fi 35556 35557 # remove trailing .exe if any 35558 new_path="${new_path/%.exe/}" 35559 35560 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35561 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35562 fi 35563 35564 else 35565 # We're on a posix platform. Hooray! :) 35566 # First separate the path from the arguments. This will split at the first 35567 # space. 35568 complete="$NM" 35569 path="${complete%% *}" 35570 tmp="$complete EOL" 35571 arguments="${tmp#* }" 35572 35573 # Cannot rely on the command "which" here since it doesn't always work. 35574 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35575 if test -z "$is_absolute_path"; then 35576 # Path to executable is not absolute. Find it. 35577 IFS_save="$IFS" 35578 IFS=: 35579 for p in $PATH; do 35580 if test -f "$p/$path" && test -x "$p/$path"; then 35581 new_path="$p/$path" 35582 break 35583 fi 35584 done 35585 IFS="$IFS_save" 35586 else 35587 # This is an absolute path, we can use it without further modifications. 35588 new_path="$path" 35589 fi 35590 35591 if test "x$new_path" = x; then 35592 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 35593 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 35594 has_space=`$ECHO "$complete" | $GREP " "` 35595 if test "x$has_space" != x; then 35596 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35597 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35598 fi 35599 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 35600 fi 35601 fi 35602 35603 # Now join together the path and the arguments once again 35604 if test "x$arguments" != xEOL; then 35605 new_complete="$new_path ${arguments% *}" 35606 else 35607 new_complete="$new_path" 35608 fi 35609 35610 if test "x$complete" != "x$new_complete"; then 35611 NM="$new_complete" 35612 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 35613 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 35614 fi 35615 35616 35617 35618 # Publish this variable in the help. 35619 35620 35621 if test "x$GNM" = x; then 35622 # The variable is not set by user, try to locate tool using the code snippet 35623 for ac_prog in gnm 35624 do 35625 # Extract the first word of "$ac_prog", so it can be a program name with args. 35626 set dummy $ac_prog; ac_word=$2 35627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35628 $as_echo_n "checking for $ac_word... " >&6; } 35629 if ${ac_cv_path_GNM+:} false; then : 35630 $as_echo_n "(cached) " >&6 35631 else 35632 case $GNM in 35633 [\\/]* | ?:[\\/]*) 35634 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35635 ;; 35636 *) 35637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35638 for as_dir in $PATH 35639 do 35640 IFS=$as_save_IFS 35641 test -z "$as_dir" && as_dir=. 35642 for ac_exec_ext in '' $ac_executable_extensions; do 35643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35644 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35646 break 2 35647 fi 35648 done 35649 done 35650 IFS=$as_save_IFS 35651 35652 ;; 35653 esac 35654 fi 35655 GNM=$ac_cv_path_GNM 35656 if test -n "$GNM"; then 35657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35658 $as_echo "$GNM" >&6; } 35659 else 35660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35661 $as_echo "no" >&6; } 35662 fi 35663 35664 35665 test -n "$GNM" && break 35666 done 35667 35668 else 35669 # The variable is set, but is it from the command line or the environment? 35670 35671 # Try to remove the string !GNM! from our list. 35672 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 35673 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35674 # If it failed, the variable was not from the command line. Ignore it, 35675 # but warn the user (except for BASH, which is always set by the calling BASH). 35676 if test "xGNM" != xBASH; then 35677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 35678 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 35679 fi 35680 # Try to locate tool using the code snippet 35681 for ac_prog in gnm 35682 do 35683 # Extract the first word of "$ac_prog", so it can be a program name with args. 35684 set dummy $ac_prog; ac_word=$2 35685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35686 $as_echo_n "checking for $ac_word... " >&6; } 35687 if ${ac_cv_path_GNM+:} false; then : 35688 $as_echo_n "(cached) " >&6 35689 else 35690 case $GNM in 35691 [\\/]* | ?:[\\/]*) 35692 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35693 ;; 35694 *) 35695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35696 for as_dir in $PATH 35697 do 35698 IFS=$as_save_IFS 35699 test -z "$as_dir" && as_dir=. 35700 for ac_exec_ext in '' $ac_executable_extensions; do 35701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35702 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35704 break 2 35705 fi 35706 done 35707 done 35708 IFS=$as_save_IFS 35709 35710 ;; 35711 esac 35712 fi 35713 GNM=$ac_cv_path_GNM 35714 if test -n "$GNM"; then 35715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35716 $as_echo "$GNM" >&6; } 35717 else 35718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35719 $as_echo "no" >&6; } 35720 fi 35721 35722 35723 test -n "$GNM" && break 35724 done 35725 35726 else 35727 # If it succeeded, then it was overridden by the user. We will use it 35728 # for the tool. 35729 35730 # First remove it from the list of overridden variables, so we can test 35731 # for unknown variables in the end. 35732 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35733 35734 # Check if the provided tool contains a complete path. 35735 tool_specified="$GNM" 35736 tool_basename="${tool_specified##*/}" 35737 if test "x$tool_basename" = "x$tool_specified"; then 35738 # A command without a complete path is provided, search $PATH. 35739 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 35740 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 35741 # Extract the first word of "$tool_basename", so it can be a program name with args. 35742 set dummy $tool_basename; ac_word=$2 35743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35744 $as_echo_n "checking for $ac_word... " >&6; } 35745 if ${ac_cv_path_GNM+:} false; then : 35746 $as_echo_n "(cached) " >&6 35747 else 35748 case $GNM in 35749 [\\/]* | ?:[\\/]*) 35750 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 35751 ;; 35752 *) 35753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35754 for as_dir in $PATH 35755 do 35756 IFS=$as_save_IFS 35757 test -z "$as_dir" && as_dir=. 35758 for ac_exec_ext in '' $ac_executable_extensions; do 35759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35760 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 35761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35762 break 2 35763 fi 35764 done 35765 done 35766 IFS=$as_save_IFS 35767 35768 ;; 35769 esac 35770 fi 35771 GNM=$ac_cv_path_GNM 35772 if test -n "$GNM"; then 35773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 35774 $as_echo "$GNM" >&6; } 35775 else 35776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35777 $as_echo "no" >&6; } 35778 fi 35779 35780 35781 if test "x$GNM" = x; then 35782 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35783 fi 35784 else 35785 # Otherwise we believe it is a complete path. Use it as it is. 35786 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 35787 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 35788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 35789 $as_echo_n "checking for GNM... " >&6; } 35790 if test ! -x "$tool_specified"; then 35791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35792 $as_echo "not found" >&6; } 35793 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 35794 fi 35795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35796 $as_echo "$tool_specified" >&6; } 35797 fi 35798 fi 35799 fi 35800 35801 35802 35803 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35804 35805 # First separate the path from the arguments. This will split at the first 35806 # space. 35807 complete="$GNM" 35808 path="${complete%% *}" 35809 tmp="$complete EOL" 35810 arguments="${tmp#* }" 35811 35812 # Input might be given as Windows format, start by converting to 35813 # unix format. 35814 new_path=`$CYGPATH -u "$path"` 35815 35816 # Now try to locate executable using which 35817 new_path=`$WHICH "$new_path" 2> /dev/null` 35818 # bat and cmd files are not always considered executable in cygwin causing which 35819 # to not find them 35820 if test "x$new_path" = x \ 35821 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35822 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35823 new_path=`$CYGPATH -u "$path"` 35824 fi 35825 if test "x$new_path" = x; then 35826 # Oops. Which didn't find the executable. 35827 # The splitting of arguments from the executable at a space might have been incorrect, 35828 # since paths with space are more likely in Windows. Give it another try with the whole 35829 # argument. 35830 path="$complete" 35831 arguments="EOL" 35832 new_path=`$CYGPATH -u "$path"` 35833 new_path=`$WHICH "$new_path" 2> /dev/null` 35834 # bat and cmd files are not always considered executable in cygwin causing which 35835 # to not find them 35836 if test "x$new_path" = x \ 35837 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35838 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35839 new_path=`$CYGPATH -u "$path"` 35840 fi 35841 if test "x$new_path" = x; then 35842 # It's still not found. Now this is an unrecoverable error. 35843 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35844 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35845 has_space=`$ECHO "$complete" | $GREP " "` 35846 if test "x$has_space" != x; then 35847 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35848 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35849 fi 35850 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35851 fi 35852 fi 35853 35854 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35855 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35856 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35857 # "foo.exe" is OK but "foo" is an error. 35858 # 35859 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35860 # It is also a way to make sure we got the proper file name for the real test later on. 35861 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35862 if test "x$test_shortpath" = x; then 35863 # Short path failed, file does not exist as specified. 35864 # Try adding .exe or .cmd 35865 if test -f "${new_path}.exe"; then 35866 input_to_shortpath="${new_path}.exe" 35867 elif test -f "${new_path}.cmd"; then 35868 input_to_shortpath="${new_path}.cmd" 35869 else 35870 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 35871 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 35872 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35873 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35874 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35875 fi 35876 else 35877 input_to_shortpath="$new_path" 35878 fi 35879 35880 # Call helper function which possibly converts this using DOS-style short mode. 35881 # If so, the updated path is stored in $new_path. 35882 new_path="$input_to_shortpath" 35883 35884 input_path="$input_to_shortpath" 35885 # Check if we need to convert this using DOS-style short mode. If the path 35886 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35887 # take no chances and rewrite it. 35888 # Note: m4 eats our [], so we need to use [ and ] instead. 35889 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35890 if test "x$has_forbidden_chars" != x; then 35891 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35892 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35893 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35894 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35895 # Going to short mode and back again did indeed matter. Since short mode is 35896 # case insensitive, let's make it lowercase to improve readability. 35897 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35898 # Now convert it back to Unix-stile (cygpath) 35899 input_path=`$CYGPATH -u "$shortmode_path"` 35900 new_path="$input_path" 35901 fi 35902 fi 35903 35904 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35905 if test "x$test_cygdrive_prefix" = x; then 35906 # As a simple fix, exclude /usr/bin since it's not a real path. 35907 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35908 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35909 # a path prefixed by /cygdrive for fixpath to work. 35910 new_path="$CYGWIN_ROOT_PATH$input_path" 35911 fi 35912 fi 35913 35914 # remove trailing .exe if any 35915 new_path="${new_path/%.exe/}" 35916 35917 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35918 35919 # First separate the path from the arguments. This will split at the first 35920 # space. 35921 complete="$GNM" 35922 path="${complete%% *}" 35923 tmp="$complete EOL" 35924 arguments="${tmp#* }" 35925 35926 # Input might be given as Windows format, start by converting to 35927 # unix format. 35928 new_path="$path" 35929 35930 windows_path="$new_path" 35931 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35932 unix_path=`$CYGPATH -u "$windows_path"` 35933 new_path="$unix_path" 35934 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35935 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35936 new_path="$unix_path" 35937 fi 35938 35939 35940 # Now try to locate executable using which 35941 new_path=`$WHICH "$new_path" 2> /dev/null` 35942 35943 if test "x$new_path" = x; then 35944 # Oops. Which didn't find the executable. 35945 # The splitting of arguments from the executable at a space might have been incorrect, 35946 # since paths with space are more likely in Windows. Give it another try with the whole 35947 # argument. 35948 path="$complete" 35949 arguments="EOL" 35950 new_path="$path" 35951 35952 windows_path="$new_path" 35953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35954 unix_path=`$CYGPATH -u "$windows_path"` 35955 new_path="$unix_path" 35956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35958 new_path="$unix_path" 35959 fi 35960 35961 35962 new_path=`$WHICH "$new_path" 2> /dev/null` 35963 35964 if test "x$new_path" = x; then 35965 # It's still not found. Now this is an unrecoverable error. 35966 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 35967 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 35968 has_space=`$ECHO "$complete" | $GREP " "` 35969 if test "x$has_space" != x; then 35970 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35971 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35972 fi 35973 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 35974 fi 35975 fi 35976 35977 # Now new_path has a complete unix path to the binary 35978 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35979 # Keep paths in /bin as-is, but remove trailing .exe if any 35980 new_path="${new_path/%.exe/}" 35981 # Do not save /bin paths to all_fixpath_prefixes! 35982 else 35983 # Not in mixed or Windows style, start by that. 35984 new_path=`cmd //c echo $new_path` 35985 35986 input_path="$new_path" 35987 # Check if we need to convert this using DOS-style short mode. If the path 35988 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35989 # take no chances and rewrite it. 35990 # Note: m4 eats our [], so we need to use [ and ] instead. 35991 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35992 if test "x$has_forbidden_chars" != x; then 35993 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35994 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35995 fi 35996 35997 # Output is in $new_path 35998 35999 windows_path="$new_path" 36000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36001 unix_path=`$CYGPATH -u "$windows_path"` 36002 new_path="$unix_path" 36003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36004 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36005 new_path="$unix_path" 36006 fi 36007 36008 # remove trailing .exe if any 36009 new_path="${new_path/%.exe/}" 36010 36011 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36012 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36013 fi 36014 36015 else 36016 # We're on a posix platform. Hooray! :) 36017 # First separate the path from the arguments. This will split at the first 36018 # space. 36019 complete="$GNM" 36020 path="${complete%% *}" 36021 tmp="$complete EOL" 36022 arguments="${tmp#* }" 36023 36024 # Cannot rely on the command "which" here since it doesn't always work. 36025 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36026 if test -z "$is_absolute_path"; then 36027 # Path to executable is not absolute. Find it. 36028 IFS_save="$IFS" 36029 IFS=: 36030 for p in $PATH; do 36031 if test -f "$p/$path" && test -x "$p/$path"; then 36032 new_path="$p/$path" 36033 break 36034 fi 36035 done 36036 IFS="$IFS_save" 36037 else 36038 # This is an absolute path, we can use it without further modifications. 36039 new_path="$path" 36040 fi 36041 36042 if test "x$new_path" = x; then 36043 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 36044 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 36045 has_space=`$ECHO "$complete" | $GREP " "` 36046 if test "x$has_space" != x; then 36047 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36048 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36049 fi 36050 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 36051 fi 36052 fi 36053 36054 # Now join together the path and the arguments once again 36055 if test "x$arguments" != xEOL; then 36056 new_complete="$new_path ${arguments% *}" 36057 else 36058 new_complete="$new_path" 36059 fi 36060 36061 if test "x$complete" != "x$new_complete"; then 36062 GNM="$new_complete" 36063 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 36064 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 36065 fi 36066 36067 36068 36069 36070 # Publish this variable in the help. 36071 36072 36073 if test "x$MCS" = x; then 36074 # The variable is not set by user, try to locate tool using the code snippet 36075 for ac_prog in mcs 36076 do 36077 # Extract the first word of "$ac_prog", so it can be a program name with args. 36078 set dummy $ac_prog; ac_word=$2 36079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36080 $as_echo_n "checking for $ac_word... " >&6; } 36081 if ${ac_cv_path_MCS+:} false; then : 36082 $as_echo_n "(cached) " >&6 36083 else 36084 case $MCS in 36085 [\\/]* | ?:[\\/]*) 36086 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36087 ;; 36088 *) 36089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36090 for as_dir in $PATH 36091 do 36092 IFS=$as_save_IFS 36093 test -z "$as_dir" && as_dir=. 36094 for ac_exec_ext in '' $ac_executable_extensions; do 36095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36096 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36098 break 2 36099 fi 36100 done 36101 done 36102 IFS=$as_save_IFS 36103 36104 ;; 36105 esac 36106 fi 36107 MCS=$ac_cv_path_MCS 36108 if test -n "$MCS"; then 36109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36110 $as_echo "$MCS" >&6; } 36111 else 36112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36113 $as_echo "no" >&6; } 36114 fi 36115 36116 36117 test -n "$MCS" && break 36118 done 36119 36120 else 36121 # The variable is set, but is it from the command line or the environment? 36122 36123 # Try to remove the string !MCS! from our list. 36124 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 36125 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36126 # If it failed, the variable was not from the command line. Ignore it, 36127 # but warn the user (except for BASH, which is always set by the calling BASH). 36128 if test "xMCS" != xBASH; then 36129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 36130 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 36131 fi 36132 # Try to locate tool using the code snippet 36133 for ac_prog in mcs 36134 do 36135 # Extract the first word of "$ac_prog", so it can be a program name with args. 36136 set dummy $ac_prog; ac_word=$2 36137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36138 $as_echo_n "checking for $ac_word... " >&6; } 36139 if ${ac_cv_path_MCS+:} false; then : 36140 $as_echo_n "(cached) " >&6 36141 else 36142 case $MCS in 36143 [\\/]* | ?:[\\/]*) 36144 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36145 ;; 36146 *) 36147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36148 for as_dir in $PATH 36149 do 36150 IFS=$as_save_IFS 36151 test -z "$as_dir" && as_dir=. 36152 for ac_exec_ext in '' $ac_executable_extensions; do 36153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36154 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36156 break 2 36157 fi 36158 done 36159 done 36160 IFS=$as_save_IFS 36161 36162 ;; 36163 esac 36164 fi 36165 MCS=$ac_cv_path_MCS 36166 if test -n "$MCS"; then 36167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36168 $as_echo "$MCS" >&6; } 36169 else 36170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36171 $as_echo "no" >&6; } 36172 fi 36173 36174 36175 test -n "$MCS" && break 36176 done 36177 36178 else 36179 # If it succeeded, then it was overridden by the user. We will use it 36180 # for the tool. 36181 36182 # First remove it from the list of overridden variables, so we can test 36183 # for unknown variables in the end. 36184 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36185 36186 # Check if the provided tool contains a complete path. 36187 tool_specified="$MCS" 36188 tool_basename="${tool_specified##*/}" 36189 if test "x$tool_basename" = "x$tool_specified"; then 36190 # A command without a complete path is provided, search $PATH. 36191 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 36192 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 36193 # Extract the first word of "$tool_basename", so it can be a program name with args. 36194 set dummy $tool_basename; ac_word=$2 36195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36196 $as_echo_n "checking for $ac_word... " >&6; } 36197 if ${ac_cv_path_MCS+:} false; then : 36198 $as_echo_n "(cached) " >&6 36199 else 36200 case $MCS in 36201 [\\/]* | ?:[\\/]*) 36202 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 36203 ;; 36204 *) 36205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36206 for as_dir in $PATH 36207 do 36208 IFS=$as_save_IFS 36209 test -z "$as_dir" && as_dir=. 36210 for ac_exec_ext in '' $ac_executable_extensions; do 36211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36212 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 36213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36214 break 2 36215 fi 36216 done 36217 done 36218 IFS=$as_save_IFS 36219 36220 ;; 36221 esac 36222 fi 36223 MCS=$ac_cv_path_MCS 36224 if test -n "$MCS"; then 36225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 36226 $as_echo "$MCS" >&6; } 36227 else 36228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36229 $as_echo "no" >&6; } 36230 fi 36231 36232 36233 if test "x$MCS" = x; then 36234 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36235 fi 36236 else 36237 # Otherwise we believe it is a complete path. Use it as it is. 36238 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 36239 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 36240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 36241 $as_echo_n "checking for MCS... " >&6; } 36242 if test ! -x "$tool_specified"; then 36243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36244 $as_echo "not found" >&6; } 36245 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 36246 fi 36247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36248 $as_echo "$tool_specified" >&6; } 36249 fi 36250 fi 36251 fi 36252 36253 36254 36255 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36256 36257 # First separate the path from the arguments. This will split at the first 36258 # space. 36259 complete="$MCS" 36260 path="${complete%% *}" 36261 tmp="$complete EOL" 36262 arguments="${tmp#* }" 36263 36264 # Input might be given as Windows format, start by converting to 36265 # unix format. 36266 new_path=`$CYGPATH -u "$path"` 36267 36268 # Now try to locate executable using which 36269 new_path=`$WHICH "$new_path" 2> /dev/null` 36270 # bat and cmd files are not always considered executable in cygwin causing which 36271 # to not find them 36272 if test "x$new_path" = x \ 36273 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36274 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36275 new_path=`$CYGPATH -u "$path"` 36276 fi 36277 if test "x$new_path" = x; then 36278 # Oops. Which didn't find the executable. 36279 # The splitting of arguments from the executable at a space might have been incorrect, 36280 # since paths with space are more likely in Windows. Give it another try with the whole 36281 # argument. 36282 path="$complete" 36283 arguments="EOL" 36284 new_path=`$CYGPATH -u "$path"` 36285 new_path=`$WHICH "$new_path" 2> /dev/null` 36286 # bat and cmd files are not always considered executable in cygwin causing which 36287 # to not find them 36288 if test "x$new_path" = x \ 36289 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36290 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36291 new_path=`$CYGPATH -u "$path"` 36292 fi 36293 if test "x$new_path" = x; then 36294 # It's still not found. Now this is an unrecoverable error. 36295 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36296 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36297 has_space=`$ECHO "$complete" | $GREP " "` 36298 if test "x$has_space" != x; then 36299 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36300 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36301 fi 36302 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36303 fi 36304 fi 36305 36306 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36307 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36308 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36309 # "foo.exe" is OK but "foo" is an error. 36310 # 36311 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36312 # It is also a way to make sure we got the proper file name for the real test later on. 36313 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36314 if test "x$test_shortpath" = x; then 36315 # Short path failed, file does not exist as specified. 36316 # Try adding .exe or .cmd 36317 if test -f "${new_path}.exe"; then 36318 input_to_shortpath="${new_path}.exe" 36319 elif test -f "${new_path}.cmd"; then 36320 input_to_shortpath="${new_path}.cmd" 36321 else 36322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 36323 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 36324 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36325 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36326 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36327 fi 36328 else 36329 input_to_shortpath="$new_path" 36330 fi 36331 36332 # Call helper function which possibly converts this using DOS-style short mode. 36333 # If so, the updated path is stored in $new_path. 36334 new_path="$input_to_shortpath" 36335 36336 input_path="$input_to_shortpath" 36337 # Check if we need to convert this using DOS-style short mode. If the path 36338 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36339 # take no chances and rewrite it. 36340 # Note: m4 eats our [], so we need to use [ and ] instead. 36341 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36342 if test "x$has_forbidden_chars" != x; then 36343 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36344 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36345 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36346 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36347 # Going to short mode and back again did indeed matter. Since short mode is 36348 # case insensitive, let's make it lowercase to improve readability. 36349 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36350 # Now convert it back to Unix-stile (cygpath) 36351 input_path=`$CYGPATH -u "$shortmode_path"` 36352 new_path="$input_path" 36353 fi 36354 fi 36355 36356 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36357 if test "x$test_cygdrive_prefix" = x; then 36358 # As a simple fix, exclude /usr/bin since it's not a real path. 36359 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36360 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36361 # a path prefixed by /cygdrive for fixpath to work. 36362 new_path="$CYGWIN_ROOT_PATH$input_path" 36363 fi 36364 fi 36365 36366 # remove trailing .exe if any 36367 new_path="${new_path/%.exe/}" 36368 36369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36370 36371 # First separate the path from the arguments. This will split at the first 36372 # space. 36373 complete="$MCS" 36374 path="${complete%% *}" 36375 tmp="$complete EOL" 36376 arguments="${tmp#* }" 36377 36378 # Input might be given as Windows format, start by converting to 36379 # unix format. 36380 new_path="$path" 36381 36382 windows_path="$new_path" 36383 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36384 unix_path=`$CYGPATH -u "$windows_path"` 36385 new_path="$unix_path" 36386 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36387 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36388 new_path="$unix_path" 36389 fi 36390 36391 36392 # Now try to locate executable using which 36393 new_path=`$WHICH "$new_path" 2> /dev/null` 36394 36395 if test "x$new_path" = x; then 36396 # Oops. Which didn't find the executable. 36397 # The splitting of arguments from the executable at a space might have been incorrect, 36398 # since paths with space are more likely in Windows. Give it another try with the whole 36399 # argument. 36400 path="$complete" 36401 arguments="EOL" 36402 new_path="$path" 36403 36404 windows_path="$new_path" 36405 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36406 unix_path=`$CYGPATH -u "$windows_path"` 36407 new_path="$unix_path" 36408 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36409 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36410 new_path="$unix_path" 36411 fi 36412 36413 36414 new_path=`$WHICH "$new_path" 2> /dev/null` 36415 36416 if test "x$new_path" = x; then 36417 # It's still not found. Now this is an unrecoverable error. 36418 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36419 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36420 has_space=`$ECHO "$complete" | $GREP " "` 36421 if test "x$has_space" != x; then 36422 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36423 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36424 fi 36425 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36426 fi 36427 fi 36428 36429 # Now new_path has a complete unix path to the binary 36430 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36431 # Keep paths in /bin as-is, but remove trailing .exe if any 36432 new_path="${new_path/%.exe/}" 36433 # Do not save /bin paths to all_fixpath_prefixes! 36434 else 36435 # Not in mixed or Windows style, start by that. 36436 new_path=`cmd //c echo $new_path` 36437 36438 input_path="$new_path" 36439 # Check if we need to convert this using DOS-style short mode. If the path 36440 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36441 # take no chances and rewrite it. 36442 # Note: m4 eats our [], so we need to use [ and ] instead. 36443 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36444 if test "x$has_forbidden_chars" != x; then 36445 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36446 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36447 fi 36448 36449 # Output is in $new_path 36450 36451 windows_path="$new_path" 36452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36453 unix_path=`$CYGPATH -u "$windows_path"` 36454 new_path="$unix_path" 36455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36457 new_path="$unix_path" 36458 fi 36459 36460 # remove trailing .exe if any 36461 new_path="${new_path/%.exe/}" 36462 36463 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36464 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36465 fi 36466 36467 else 36468 # We're on a posix platform. Hooray! :) 36469 # First separate the path from the arguments. This will split at the first 36470 # space. 36471 complete="$MCS" 36472 path="${complete%% *}" 36473 tmp="$complete EOL" 36474 arguments="${tmp#* }" 36475 36476 # Cannot rely on the command "which" here since it doesn't always work. 36477 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36478 if test -z "$is_absolute_path"; then 36479 # Path to executable is not absolute. Find it. 36480 IFS_save="$IFS" 36481 IFS=: 36482 for p in $PATH; do 36483 if test -f "$p/$path" && test -x "$p/$path"; then 36484 new_path="$p/$path" 36485 break 36486 fi 36487 done 36488 IFS="$IFS_save" 36489 else 36490 # This is an absolute path, we can use it without further modifications. 36491 new_path="$path" 36492 fi 36493 36494 if test "x$new_path" = x; then 36495 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 36496 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 36497 has_space=`$ECHO "$complete" | $GREP " "` 36498 if test "x$has_space" != x; then 36499 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36500 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36501 fi 36502 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 36503 fi 36504 fi 36505 36506 # Now join together the path and the arguments once again 36507 if test "x$arguments" != xEOL; then 36508 new_complete="$new_path ${arguments% *}" 36509 else 36510 new_complete="$new_path" 36511 fi 36512 36513 if test "x$complete" != "x$new_complete"; then 36514 MCS="$new_complete" 36515 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 36516 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 36517 fi 36518 36519 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 36520 # FIXME: we should unify this with the solaris case above. 36521 36522 36523 # Publish this variable in the help. 36524 36525 36526 if test "x$STRIP" = x; then 36527 # The variable is not set by user, try to locate tool using the code snippet 36528 if test -n "$ac_tool_prefix"; then 36529 for ac_prog in strip 36530 do 36531 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36532 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36534 $as_echo_n "checking for $ac_word... " >&6; } 36535 if ${ac_cv_prog_STRIP+:} false; then : 36536 $as_echo_n "(cached) " >&6 36537 else 36538 if test -n "$STRIP"; then 36539 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36540 else 36541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36542 for as_dir in $PATH 36543 do 36544 IFS=$as_save_IFS 36545 test -z "$as_dir" && as_dir=. 36546 for ac_exec_ext in '' $ac_executable_extensions; do 36547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36548 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36550 break 2 36551 fi 36552 done 36553 done 36554 IFS=$as_save_IFS 36555 36556 fi 36557 fi 36558 STRIP=$ac_cv_prog_STRIP 36559 if test -n "$STRIP"; then 36560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36561 $as_echo "$STRIP" >&6; } 36562 else 36563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36564 $as_echo "no" >&6; } 36565 fi 36566 36567 36568 test -n "$STRIP" && break 36569 done 36570 fi 36571 if test -z "$STRIP"; then 36572 ac_ct_STRIP=$STRIP 36573 for ac_prog in strip 36574 do 36575 # Extract the first word of "$ac_prog", so it can be a program name with args. 36576 set dummy $ac_prog; ac_word=$2 36577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36578 $as_echo_n "checking for $ac_word... " >&6; } 36579 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36580 $as_echo_n "(cached) " >&6 36581 else 36582 if test -n "$ac_ct_STRIP"; then 36583 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36584 else 36585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36586 for as_dir in $PATH 36587 do 36588 IFS=$as_save_IFS 36589 test -z "$as_dir" && as_dir=. 36590 for ac_exec_ext in '' $ac_executable_extensions; do 36591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36592 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36594 break 2 36595 fi 36596 done 36597 done 36598 IFS=$as_save_IFS 36599 36600 fi 36601 fi 36602 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36603 if test -n "$ac_ct_STRIP"; then 36604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36605 $as_echo "$ac_ct_STRIP" >&6; } 36606 else 36607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36608 $as_echo "no" >&6; } 36609 fi 36610 36611 36612 test -n "$ac_ct_STRIP" && break 36613 done 36614 36615 if test "x$ac_ct_STRIP" = x; then 36616 STRIP="" 36617 else 36618 case $cross_compiling:$ac_tool_warned in 36619 yes:) 36620 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36621 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36622 ac_tool_warned=yes ;; 36623 esac 36624 STRIP=$ac_ct_STRIP 36625 fi 36626 fi 36627 36628 else 36629 # The variable is set, but is it from the command line or the environment? 36630 36631 # Try to remove the string !STRIP! from our list. 36632 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 36633 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36634 # If it failed, the variable was not from the command line. Ignore it, 36635 # but warn the user (except for BASH, which is always set by the calling BASH). 36636 if test "xSTRIP" != xBASH; then 36637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 36638 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 36639 fi 36640 # Try to locate tool using the code snippet 36641 if test -n "$ac_tool_prefix"; then 36642 for ac_prog in strip 36643 do 36644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36645 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36647 $as_echo_n "checking for $ac_word... " >&6; } 36648 if ${ac_cv_prog_STRIP+:} false; then : 36649 $as_echo_n "(cached) " >&6 36650 else 36651 if test -n "$STRIP"; then 36652 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 36653 else 36654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36655 for as_dir in $PATH 36656 do 36657 IFS=$as_save_IFS 36658 test -z "$as_dir" && as_dir=. 36659 for ac_exec_ext in '' $ac_executable_extensions; do 36660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36661 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 36662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36663 break 2 36664 fi 36665 done 36666 done 36667 IFS=$as_save_IFS 36668 36669 fi 36670 fi 36671 STRIP=$ac_cv_prog_STRIP 36672 if test -n "$STRIP"; then 36673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36674 $as_echo "$STRIP" >&6; } 36675 else 36676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36677 $as_echo "no" >&6; } 36678 fi 36679 36680 36681 test -n "$STRIP" && break 36682 done 36683 fi 36684 if test -z "$STRIP"; then 36685 ac_ct_STRIP=$STRIP 36686 for ac_prog in strip 36687 do 36688 # Extract the first word of "$ac_prog", so it can be a program name with args. 36689 set dummy $ac_prog; ac_word=$2 36690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36691 $as_echo_n "checking for $ac_word... " >&6; } 36692 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 36693 $as_echo_n "(cached) " >&6 36694 else 36695 if test -n "$ac_ct_STRIP"; then 36696 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 36697 else 36698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36699 for as_dir in $PATH 36700 do 36701 IFS=$as_save_IFS 36702 test -z "$as_dir" && as_dir=. 36703 for ac_exec_ext in '' $ac_executable_extensions; do 36704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36705 ac_cv_prog_ac_ct_STRIP="$ac_prog" 36706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36707 break 2 36708 fi 36709 done 36710 done 36711 IFS=$as_save_IFS 36712 36713 fi 36714 fi 36715 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 36716 if test -n "$ac_ct_STRIP"; then 36717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 36718 $as_echo "$ac_ct_STRIP" >&6; } 36719 else 36720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36721 $as_echo "no" >&6; } 36722 fi 36723 36724 36725 test -n "$ac_ct_STRIP" && break 36726 done 36727 36728 if test "x$ac_ct_STRIP" = x; then 36729 STRIP="" 36730 else 36731 case $cross_compiling:$ac_tool_warned in 36732 yes:) 36733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36734 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36735 ac_tool_warned=yes ;; 36736 esac 36737 STRIP=$ac_ct_STRIP 36738 fi 36739 fi 36740 36741 else 36742 # If it succeeded, then it was overridden by the user. We will use it 36743 # for the tool. 36744 36745 # First remove it from the list of overridden variables, so we can test 36746 # for unknown variables in the end. 36747 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36748 36749 # Check if the provided tool contains a complete path. 36750 tool_specified="$STRIP" 36751 tool_basename="${tool_specified##*/}" 36752 if test "x$tool_basename" = "x$tool_specified"; then 36753 # A command without a complete path is provided, search $PATH. 36754 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 36755 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 36756 # Extract the first word of "$tool_basename", so it can be a program name with args. 36757 set dummy $tool_basename; ac_word=$2 36758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36759 $as_echo_n "checking for $ac_word... " >&6; } 36760 if ${ac_cv_path_STRIP+:} false; then : 36761 $as_echo_n "(cached) " >&6 36762 else 36763 case $STRIP in 36764 [\\/]* | ?:[\\/]*) 36765 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 36766 ;; 36767 *) 36768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36769 for as_dir in $PATH 36770 do 36771 IFS=$as_save_IFS 36772 test -z "$as_dir" && as_dir=. 36773 for ac_exec_ext in '' $ac_executable_extensions; do 36774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36775 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 36776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36777 break 2 36778 fi 36779 done 36780 done 36781 IFS=$as_save_IFS 36782 36783 ;; 36784 esac 36785 fi 36786 STRIP=$ac_cv_path_STRIP 36787 if test -n "$STRIP"; then 36788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 36789 $as_echo "$STRIP" >&6; } 36790 else 36791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36792 $as_echo "no" >&6; } 36793 fi 36794 36795 36796 if test "x$STRIP" = x; then 36797 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36798 fi 36799 else 36800 # Otherwise we believe it is a complete path. Use it as it is. 36801 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 36802 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 36803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 36804 $as_echo_n "checking for STRIP... " >&6; } 36805 if test ! -x "$tool_specified"; then 36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36807 $as_echo "not found" >&6; } 36808 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 36809 fi 36810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36811 $as_echo "$tool_specified" >&6; } 36812 fi 36813 fi 36814 fi 36815 36816 36817 36818 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36819 36820 # First separate the path from the arguments. This will split at the first 36821 # space. 36822 complete="$STRIP" 36823 path="${complete%% *}" 36824 tmp="$complete EOL" 36825 arguments="${tmp#* }" 36826 36827 # Input might be given as Windows format, start by converting to 36828 # unix format. 36829 new_path=`$CYGPATH -u "$path"` 36830 36831 # Now try to locate executable using which 36832 new_path=`$WHICH "$new_path" 2> /dev/null` 36833 # bat and cmd files are not always considered executable in cygwin causing which 36834 # to not find them 36835 if test "x$new_path" = x \ 36836 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36837 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36838 new_path=`$CYGPATH -u "$path"` 36839 fi 36840 if test "x$new_path" = x; then 36841 # Oops. Which didn't find the executable. 36842 # The splitting of arguments from the executable at a space might have been incorrect, 36843 # since paths with space are more likely in Windows. Give it another try with the whole 36844 # argument. 36845 path="$complete" 36846 arguments="EOL" 36847 new_path=`$CYGPATH -u "$path"` 36848 new_path=`$WHICH "$new_path" 2> /dev/null` 36849 # bat and cmd files are not always considered executable in cygwin causing which 36850 # to not find them 36851 if test "x$new_path" = x \ 36852 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36853 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36854 new_path=`$CYGPATH -u "$path"` 36855 fi 36856 if test "x$new_path" = x; then 36857 # It's still not found. Now this is an unrecoverable error. 36858 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36859 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36860 has_space=`$ECHO "$complete" | $GREP " "` 36861 if test "x$has_space" != x; then 36862 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36863 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36864 fi 36865 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36866 fi 36867 fi 36868 36869 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36870 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36871 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36872 # "foo.exe" is OK but "foo" is an error. 36873 # 36874 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36875 # It is also a way to make sure we got the proper file name for the real test later on. 36876 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36877 if test "x$test_shortpath" = x; then 36878 # Short path failed, file does not exist as specified. 36879 # Try adding .exe or .cmd 36880 if test -f "${new_path}.exe"; then 36881 input_to_shortpath="${new_path}.exe" 36882 elif test -f "${new_path}.cmd"; then 36883 input_to_shortpath="${new_path}.cmd" 36884 else 36885 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 36886 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 36887 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36888 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36889 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36890 fi 36891 else 36892 input_to_shortpath="$new_path" 36893 fi 36894 36895 # Call helper function which possibly converts this using DOS-style short mode. 36896 # If so, the updated path is stored in $new_path. 36897 new_path="$input_to_shortpath" 36898 36899 input_path="$input_to_shortpath" 36900 # Check if we need to convert this using DOS-style short mode. If the path 36901 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36902 # take no chances and rewrite it. 36903 # Note: m4 eats our [], so we need to use [ and ] instead. 36904 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36905 if test "x$has_forbidden_chars" != x; then 36906 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36907 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36908 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36909 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36910 # Going to short mode and back again did indeed matter. Since short mode is 36911 # case insensitive, let's make it lowercase to improve readability. 36912 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36913 # Now convert it back to Unix-stile (cygpath) 36914 input_path=`$CYGPATH -u "$shortmode_path"` 36915 new_path="$input_path" 36916 fi 36917 fi 36918 36919 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36920 if test "x$test_cygdrive_prefix" = x; then 36921 # As a simple fix, exclude /usr/bin since it's not a real path. 36922 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36923 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36924 # a path prefixed by /cygdrive for fixpath to work. 36925 new_path="$CYGWIN_ROOT_PATH$input_path" 36926 fi 36927 fi 36928 36929 # remove trailing .exe if any 36930 new_path="${new_path/%.exe/}" 36931 36932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36933 36934 # First separate the path from the arguments. This will split at the first 36935 # space. 36936 complete="$STRIP" 36937 path="${complete%% *}" 36938 tmp="$complete EOL" 36939 arguments="${tmp#* }" 36940 36941 # Input might be given as Windows format, start by converting to 36942 # unix format. 36943 new_path="$path" 36944 36945 windows_path="$new_path" 36946 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36947 unix_path=`$CYGPATH -u "$windows_path"` 36948 new_path="$unix_path" 36949 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36950 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36951 new_path="$unix_path" 36952 fi 36953 36954 36955 # Now try to locate executable using which 36956 new_path=`$WHICH "$new_path" 2> /dev/null` 36957 36958 if test "x$new_path" = x; then 36959 # Oops. Which didn't find the executable. 36960 # The splitting of arguments from the executable at a space might have been incorrect, 36961 # since paths with space are more likely in Windows. Give it another try with the whole 36962 # argument. 36963 path="$complete" 36964 arguments="EOL" 36965 new_path="$path" 36966 36967 windows_path="$new_path" 36968 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36969 unix_path=`$CYGPATH -u "$windows_path"` 36970 new_path="$unix_path" 36971 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36972 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36973 new_path="$unix_path" 36974 fi 36975 36976 36977 new_path=`$WHICH "$new_path" 2> /dev/null` 36978 36979 if test "x$new_path" = x; then 36980 # It's still not found. Now this is an unrecoverable error. 36981 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 36982 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 36983 has_space=`$ECHO "$complete" | $GREP " "` 36984 if test "x$has_space" != x; then 36985 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36986 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36987 fi 36988 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 36989 fi 36990 fi 36991 36992 # Now new_path has a complete unix path to the binary 36993 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36994 # Keep paths in /bin as-is, but remove trailing .exe if any 36995 new_path="${new_path/%.exe/}" 36996 # Do not save /bin paths to all_fixpath_prefixes! 36997 else 36998 # Not in mixed or Windows style, start by that. 36999 new_path=`cmd //c echo $new_path` 37000 37001 input_path="$new_path" 37002 # Check if we need to convert this using DOS-style short mode. If the path 37003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37004 # take no chances and rewrite it. 37005 # Note: m4 eats our [], so we need to use [ and ] instead. 37006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37007 if test "x$has_forbidden_chars" != x; then 37008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37009 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37010 fi 37011 37012 # Output is in $new_path 37013 37014 windows_path="$new_path" 37015 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37016 unix_path=`$CYGPATH -u "$windows_path"` 37017 new_path="$unix_path" 37018 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37019 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37020 new_path="$unix_path" 37021 fi 37022 37023 # remove trailing .exe if any 37024 new_path="${new_path/%.exe/}" 37025 37026 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37027 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37028 fi 37029 37030 else 37031 # We're on a posix platform. Hooray! :) 37032 # First separate the path from the arguments. This will split at the first 37033 # space. 37034 complete="$STRIP" 37035 path="${complete%% *}" 37036 tmp="$complete EOL" 37037 arguments="${tmp#* }" 37038 37039 # Cannot rely on the command "which" here since it doesn't always work. 37040 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37041 if test -z "$is_absolute_path"; then 37042 # Path to executable is not absolute. Find it. 37043 IFS_save="$IFS" 37044 IFS=: 37045 for p in $PATH; do 37046 if test -f "$p/$path" && test -x "$p/$path"; then 37047 new_path="$p/$path" 37048 break 37049 fi 37050 done 37051 IFS="$IFS_save" 37052 else 37053 # This is an absolute path, we can use it without further modifications. 37054 new_path="$path" 37055 fi 37056 37057 if test "x$new_path" = x; then 37058 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 37059 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 37060 has_space=`$ECHO "$complete" | $GREP " "` 37061 if test "x$has_space" != x; then 37062 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37063 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37064 fi 37065 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 37066 fi 37067 fi 37068 37069 # Now join together the path and the arguments once again 37070 if test "x$arguments" != xEOL; then 37071 new_complete="$new_path ${arguments% *}" 37072 else 37073 new_complete="$new_path" 37074 fi 37075 37076 if test "x$complete" != "x$new_complete"; then 37077 STRIP="$new_complete" 37078 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 37079 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 37080 fi 37081 37082 37083 37084 # Publish this variable in the help. 37085 37086 37087 if test "x$NM" = x; then 37088 # The variable is not set by user, try to locate tool using the code snippet 37089 if test -n "$ac_tool_prefix"; then 37090 for ac_prog in nm 37091 do 37092 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37093 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37095 $as_echo_n "checking for $ac_word... " >&6; } 37096 if ${ac_cv_prog_NM+:} false; then : 37097 $as_echo_n "(cached) " >&6 37098 else 37099 if test -n "$NM"; then 37100 ac_cv_prog_NM="$NM" # Let the user override the test. 37101 else 37102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37103 for as_dir in $PATH 37104 do 37105 IFS=$as_save_IFS 37106 test -z "$as_dir" && as_dir=. 37107 for ac_exec_ext in '' $ac_executable_extensions; do 37108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37109 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37110 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37111 break 2 37112 fi 37113 done 37114 done 37115 IFS=$as_save_IFS 37116 37117 fi 37118 fi 37119 NM=$ac_cv_prog_NM 37120 if test -n "$NM"; then 37121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37122 $as_echo "$NM" >&6; } 37123 else 37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37125 $as_echo "no" >&6; } 37126 fi 37127 37128 37129 test -n "$NM" && break 37130 done 37131 fi 37132 if test -z "$NM"; then 37133 ac_ct_NM=$NM 37134 for ac_prog in nm 37135 do 37136 # Extract the first word of "$ac_prog", so it can be a program name with args. 37137 set dummy $ac_prog; ac_word=$2 37138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37139 $as_echo_n "checking for $ac_word... " >&6; } 37140 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37141 $as_echo_n "(cached) " >&6 37142 else 37143 if test -n "$ac_ct_NM"; then 37144 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37145 else 37146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37147 for as_dir in $PATH 37148 do 37149 IFS=$as_save_IFS 37150 test -z "$as_dir" && as_dir=. 37151 for ac_exec_ext in '' $ac_executable_extensions; do 37152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37153 ac_cv_prog_ac_ct_NM="$ac_prog" 37154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37155 break 2 37156 fi 37157 done 37158 done 37159 IFS=$as_save_IFS 37160 37161 fi 37162 fi 37163 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37164 if test -n "$ac_ct_NM"; then 37165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37166 $as_echo "$ac_ct_NM" >&6; } 37167 else 37168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37169 $as_echo "no" >&6; } 37170 fi 37171 37172 37173 test -n "$ac_ct_NM" && break 37174 done 37175 37176 if test "x$ac_ct_NM" = x; then 37177 NM="" 37178 else 37179 case $cross_compiling:$ac_tool_warned in 37180 yes:) 37181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37182 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37183 ac_tool_warned=yes ;; 37184 esac 37185 NM=$ac_ct_NM 37186 fi 37187 fi 37188 37189 else 37190 # The variable is set, but is it from the command line or the environment? 37191 37192 # Try to remove the string !NM! from our list. 37193 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 37194 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37195 # If it failed, the variable was not from the command line. Ignore it, 37196 # but warn the user (except for BASH, which is always set by the calling BASH). 37197 if test "xNM" != xBASH; then 37198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 37199 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 37200 fi 37201 # Try to locate tool using the code snippet 37202 if test -n "$ac_tool_prefix"; then 37203 for ac_prog in nm 37204 do 37205 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37206 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37208 $as_echo_n "checking for $ac_word... " >&6; } 37209 if ${ac_cv_prog_NM+:} false; then : 37210 $as_echo_n "(cached) " >&6 37211 else 37212 if test -n "$NM"; then 37213 ac_cv_prog_NM="$NM" # Let the user override the test. 37214 else 37215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37216 for as_dir in $PATH 37217 do 37218 IFS=$as_save_IFS 37219 test -z "$as_dir" && as_dir=. 37220 for ac_exec_ext in '' $ac_executable_extensions; do 37221 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37222 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 37223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37224 break 2 37225 fi 37226 done 37227 done 37228 IFS=$as_save_IFS 37229 37230 fi 37231 fi 37232 NM=$ac_cv_prog_NM 37233 if test -n "$NM"; then 37234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37235 $as_echo "$NM" >&6; } 37236 else 37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37238 $as_echo "no" >&6; } 37239 fi 37240 37241 37242 test -n "$NM" && break 37243 done 37244 fi 37245 if test -z "$NM"; then 37246 ac_ct_NM=$NM 37247 for ac_prog in nm 37248 do 37249 # Extract the first word of "$ac_prog", so it can be a program name with args. 37250 set dummy $ac_prog; ac_word=$2 37251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37252 $as_echo_n "checking for $ac_word... " >&6; } 37253 if ${ac_cv_prog_ac_ct_NM+:} false; then : 37254 $as_echo_n "(cached) " >&6 37255 else 37256 if test -n "$ac_ct_NM"; then 37257 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 37258 else 37259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37260 for as_dir in $PATH 37261 do 37262 IFS=$as_save_IFS 37263 test -z "$as_dir" && as_dir=. 37264 for ac_exec_ext in '' $ac_executable_extensions; do 37265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37266 ac_cv_prog_ac_ct_NM="$ac_prog" 37267 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37268 break 2 37269 fi 37270 done 37271 done 37272 IFS=$as_save_IFS 37273 37274 fi 37275 fi 37276 ac_ct_NM=$ac_cv_prog_ac_ct_NM 37277 if test -n "$ac_ct_NM"; then 37278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 37279 $as_echo "$ac_ct_NM" >&6; } 37280 else 37281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37282 $as_echo "no" >&6; } 37283 fi 37284 37285 37286 test -n "$ac_ct_NM" && break 37287 done 37288 37289 if test "x$ac_ct_NM" = x; then 37290 NM="" 37291 else 37292 case $cross_compiling:$ac_tool_warned in 37293 yes:) 37294 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37295 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37296 ac_tool_warned=yes ;; 37297 esac 37298 NM=$ac_ct_NM 37299 fi 37300 fi 37301 37302 else 37303 # If it succeeded, then it was overridden by the user. We will use it 37304 # for the tool. 37305 37306 # First remove it from the list of overridden variables, so we can test 37307 # for unknown variables in the end. 37308 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37309 37310 # Check if the provided tool contains a complete path. 37311 tool_specified="$NM" 37312 tool_basename="${tool_specified##*/}" 37313 if test "x$tool_basename" = "x$tool_specified"; then 37314 # A command without a complete path is provided, search $PATH. 37315 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 37316 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 37317 # Extract the first word of "$tool_basename", so it can be a program name with args. 37318 set dummy $tool_basename; ac_word=$2 37319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37320 $as_echo_n "checking for $ac_word... " >&6; } 37321 if ${ac_cv_path_NM+:} false; then : 37322 $as_echo_n "(cached) " >&6 37323 else 37324 case $NM in 37325 [\\/]* | ?:[\\/]*) 37326 ac_cv_path_NM="$NM" # Let the user override the test with a path. 37327 ;; 37328 *) 37329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37330 for as_dir in $PATH 37331 do 37332 IFS=$as_save_IFS 37333 test -z "$as_dir" && as_dir=. 37334 for ac_exec_ext in '' $ac_executable_extensions; do 37335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37336 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 37337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37338 break 2 37339 fi 37340 done 37341 done 37342 IFS=$as_save_IFS 37343 37344 ;; 37345 esac 37346 fi 37347 NM=$ac_cv_path_NM 37348 if test -n "$NM"; then 37349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 37350 $as_echo "$NM" >&6; } 37351 else 37352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37353 $as_echo "no" >&6; } 37354 fi 37355 37356 37357 if test "x$NM" = x; then 37358 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37359 fi 37360 else 37361 # Otherwise we believe it is a complete path. Use it as it is. 37362 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 37363 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 37364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 37365 $as_echo_n "checking for NM... " >&6; } 37366 if test ! -x "$tool_specified"; then 37367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37368 $as_echo "not found" >&6; } 37369 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 37370 fi 37371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37372 $as_echo "$tool_specified" >&6; } 37373 fi 37374 fi 37375 fi 37376 37377 37378 37379 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37380 37381 # First separate the path from the arguments. This will split at the first 37382 # space. 37383 complete="$NM" 37384 path="${complete%% *}" 37385 tmp="$complete EOL" 37386 arguments="${tmp#* }" 37387 37388 # Input might be given as Windows format, start by converting to 37389 # unix format. 37390 new_path=`$CYGPATH -u "$path"` 37391 37392 # Now try to locate executable using which 37393 new_path=`$WHICH "$new_path" 2> /dev/null` 37394 # bat and cmd files are not always considered executable in cygwin causing which 37395 # to not find them 37396 if test "x$new_path" = x \ 37397 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37398 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37399 new_path=`$CYGPATH -u "$path"` 37400 fi 37401 if test "x$new_path" = x; then 37402 # Oops. Which didn't find the executable. 37403 # The splitting of arguments from the executable at a space might have been incorrect, 37404 # since paths with space are more likely in Windows. Give it another try with the whole 37405 # argument. 37406 path="$complete" 37407 arguments="EOL" 37408 new_path=`$CYGPATH -u "$path"` 37409 new_path=`$WHICH "$new_path" 2> /dev/null` 37410 # bat and cmd files are not always considered executable in cygwin causing which 37411 # to not find them 37412 if test "x$new_path" = x \ 37413 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37414 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37415 new_path=`$CYGPATH -u "$path"` 37416 fi 37417 if test "x$new_path" = x; then 37418 # It's still not found. Now this is an unrecoverable error. 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37420 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37421 has_space=`$ECHO "$complete" | $GREP " "` 37422 if test "x$has_space" != x; then 37423 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37424 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37425 fi 37426 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37427 fi 37428 fi 37429 37430 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37431 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37432 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37433 # "foo.exe" is OK but "foo" is an error. 37434 # 37435 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37436 # It is also a way to make sure we got the proper file name for the real test later on. 37437 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37438 if test "x$test_shortpath" = x; then 37439 # Short path failed, file does not exist as specified. 37440 # Try adding .exe or .cmd 37441 if test -f "${new_path}.exe"; then 37442 input_to_shortpath="${new_path}.exe" 37443 elif test -f "${new_path}.cmd"; then 37444 input_to_shortpath="${new_path}.cmd" 37445 else 37446 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 37447 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 37448 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37449 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37450 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37451 fi 37452 else 37453 input_to_shortpath="$new_path" 37454 fi 37455 37456 # Call helper function which possibly converts this using DOS-style short mode. 37457 # If so, the updated path is stored in $new_path. 37458 new_path="$input_to_shortpath" 37459 37460 input_path="$input_to_shortpath" 37461 # Check if we need to convert this using DOS-style short mode. If the path 37462 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37463 # take no chances and rewrite it. 37464 # Note: m4 eats our [], so we need to use [ and ] instead. 37465 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37466 if test "x$has_forbidden_chars" != x; then 37467 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37468 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37469 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37470 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37471 # Going to short mode and back again did indeed matter. Since short mode is 37472 # case insensitive, let's make it lowercase to improve readability. 37473 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37474 # Now convert it back to Unix-stile (cygpath) 37475 input_path=`$CYGPATH -u "$shortmode_path"` 37476 new_path="$input_path" 37477 fi 37478 fi 37479 37480 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37481 if test "x$test_cygdrive_prefix" = x; then 37482 # As a simple fix, exclude /usr/bin since it's not a real path. 37483 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37484 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37485 # a path prefixed by /cygdrive for fixpath to work. 37486 new_path="$CYGWIN_ROOT_PATH$input_path" 37487 fi 37488 fi 37489 37490 # remove trailing .exe if any 37491 new_path="${new_path/%.exe/}" 37492 37493 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37494 37495 # First separate the path from the arguments. This will split at the first 37496 # space. 37497 complete="$NM" 37498 path="${complete%% *}" 37499 tmp="$complete EOL" 37500 arguments="${tmp#* }" 37501 37502 # Input might be given as Windows format, start by converting to 37503 # unix format. 37504 new_path="$path" 37505 37506 windows_path="$new_path" 37507 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37508 unix_path=`$CYGPATH -u "$windows_path"` 37509 new_path="$unix_path" 37510 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37511 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37512 new_path="$unix_path" 37513 fi 37514 37515 37516 # Now try to locate executable using which 37517 new_path=`$WHICH "$new_path" 2> /dev/null` 37518 37519 if test "x$new_path" = x; then 37520 # Oops. Which didn't find the executable. 37521 # The splitting of arguments from the executable at a space might have been incorrect, 37522 # since paths with space are more likely in Windows. Give it another try with the whole 37523 # argument. 37524 path="$complete" 37525 arguments="EOL" 37526 new_path="$path" 37527 37528 windows_path="$new_path" 37529 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37530 unix_path=`$CYGPATH -u "$windows_path"` 37531 new_path="$unix_path" 37532 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37533 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37534 new_path="$unix_path" 37535 fi 37536 37537 37538 new_path=`$WHICH "$new_path" 2> /dev/null` 37539 37540 if test "x$new_path" = x; then 37541 # It's still not found. Now this is an unrecoverable error. 37542 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37543 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37544 has_space=`$ECHO "$complete" | $GREP " "` 37545 if test "x$has_space" != x; then 37546 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37547 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37548 fi 37549 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37550 fi 37551 fi 37552 37553 # Now new_path has a complete unix path to the binary 37554 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37555 # Keep paths in /bin as-is, but remove trailing .exe if any 37556 new_path="${new_path/%.exe/}" 37557 # Do not save /bin paths to all_fixpath_prefixes! 37558 else 37559 # Not in mixed or Windows style, start by that. 37560 new_path=`cmd //c echo $new_path` 37561 37562 input_path="$new_path" 37563 # Check if we need to convert this using DOS-style short mode. If the path 37564 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37565 # take no chances and rewrite it. 37566 # Note: m4 eats our [], so we need to use [ and ] instead. 37567 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37568 if test "x$has_forbidden_chars" != x; then 37569 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37570 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37571 fi 37572 37573 # Output is in $new_path 37574 37575 windows_path="$new_path" 37576 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37577 unix_path=`$CYGPATH -u "$windows_path"` 37578 new_path="$unix_path" 37579 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37580 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37581 new_path="$unix_path" 37582 fi 37583 37584 # remove trailing .exe if any 37585 new_path="${new_path/%.exe/}" 37586 37587 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37588 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37589 fi 37590 37591 else 37592 # We're on a posix platform. Hooray! :) 37593 # First separate the path from the arguments. This will split at the first 37594 # space. 37595 complete="$NM" 37596 path="${complete%% *}" 37597 tmp="$complete EOL" 37598 arguments="${tmp#* }" 37599 37600 # Cannot rely on the command "which" here since it doesn't always work. 37601 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37602 if test -z "$is_absolute_path"; then 37603 # Path to executable is not absolute. Find it. 37604 IFS_save="$IFS" 37605 IFS=: 37606 for p in $PATH; do 37607 if test -f "$p/$path" && test -x "$p/$path"; then 37608 new_path="$p/$path" 37609 break 37610 fi 37611 done 37612 IFS="$IFS_save" 37613 else 37614 # This is an absolute path, we can use it without further modifications. 37615 new_path="$path" 37616 fi 37617 37618 if test "x$new_path" = x; then 37619 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 37620 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 37621 has_space=`$ECHO "$complete" | $GREP " "` 37622 if test "x$has_space" != x; then 37623 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37624 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37625 fi 37626 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 37627 fi 37628 fi 37629 37630 # Now join together the path and the arguments once again 37631 if test "x$arguments" != xEOL; then 37632 new_complete="$new_path ${arguments% *}" 37633 else 37634 new_complete="$new_path" 37635 fi 37636 37637 if test "x$complete" != "x$new_complete"; then 37638 NM="$new_complete" 37639 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 37640 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 37641 fi 37642 37643 GNM="$NM" 37644 37645 fi 37646 37647 # objcopy is used for moving debug symbols to separate files when 37648 # full debug symbols are enabled. 37649 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 37650 37651 37652 # Publish this variable in the help. 37653 37654 37655 if test "x$OBJCOPY" = x; then 37656 # The variable is not set by user, try to locate tool using the code snippet 37657 if test -n "$ac_tool_prefix"; then 37658 for ac_prog in gobjcopy objcopy 37659 do 37660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37661 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37663 $as_echo_n "checking for $ac_word... " >&6; } 37664 if ${ac_cv_prog_OBJCOPY+:} false; then : 37665 $as_echo_n "(cached) " >&6 37666 else 37667 if test -n "$OBJCOPY"; then 37668 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37669 else 37670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37671 for as_dir in $PATH 37672 do 37673 IFS=$as_save_IFS 37674 test -z "$as_dir" && as_dir=. 37675 for ac_exec_ext in '' $ac_executable_extensions; do 37676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37677 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37679 break 2 37680 fi 37681 done 37682 done 37683 IFS=$as_save_IFS 37684 37685 fi 37686 fi 37687 OBJCOPY=$ac_cv_prog_OBJCOPY 37688 if test -n "$OBJCOPY"; then 37689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37690 $as_echo "$OBJCOPY" >&6; } 37691 else 37692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37693 $as_echo "no" >&6; } 37694 fi 37695 37696 37697 test -n "$OBJCOPY" && break 37698 done 37699 fi 37700 if test -z "$OBJCOPY"; then 37701 ac_ct_OBJCOPY=$OBJCOPY 37702 for ac_prog in gobjcopy objcopy 37703 do 37704 # Extract the first word of "$ac_prog", so it can be a program name with args. 37705 set dummy $ac_prog; ac_word=$2 37706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37707 $as_echo_n "checking for $ac_word... " >&6; } 37708 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37709 $as_echo_n "(cached) " >&6 37710 else 37711 if test -n "$ac_ct_OBJCOPY"; then 37712 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37713 else 37714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37715 for as_dir in $PATH 37716 do 37717 IFS=$as_save_IFS 37718 test -z "$as_dir" && as_dir=. 37719 for ac_exec_ext in '' $ac_executable_extensions; do 37720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37721 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37723 break 2 37724 fi 37725 done 37726 done 37727 IFS=$as_save_IFS 37728 37729 fi 37730 fi 37731 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37732 if test -n "$ac_ct_OBJCOPY"; then 37733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37734 $as_echo "$ac_ct_OBJCOPY" >&6; } 37735 else 37736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37737 $as_echo "no" >&6; } 37738 fi 37739 37740 37741 test -n "$ac_ct_OBJCOPY" && break 37742 done 37743 37744 if test "x$ac_ct_OBJCOPY" = x; then 37745 OBJCOPY="" 37746 else 37747 case $cross_compiling:$ac_tool_warned in 37748 yes:) 37749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37750 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37751 ac_tool_warned=yes ;; 37752 esac 37753 OBJCOPY=$ac_ct_OBJCOPY 37754 fi 37755 fi 37756 37757 else 37758 # The variable is set, but is it from the command line or the environment? 37759 37760 # Try to remove the string !OBJCOPY! from our list. 37761 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 37762 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37763 # If it failed, the variable was not from the command line. Ignore it, 37764 # but warn the user (except for BASH, which is always set by the calling BASH). 37765 if test "xOBJCOPY" != xBASH; then 37766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 37767 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 37768 fi 37769 # Try to locate tool using the code snippet 37770 if test -n "$ac_tool_prefix"; then 37771 for ac_prog in gobjcopy objcopy 37772 do 37773 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37774 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37776 $as_echo_n "checking for $ac_word... " >&6; } 37777 if ${ac_cv_prog_OBJCOPY+:} false; then : 37778 $as_echo_n "(cached) " >&6 37779 else 37780 if test -n "$OBJCOPY"; then 37781 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 37782 else 37783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37784 for as_dir in $PATH 37785 do 37786 IFS=$as_save_IFS 37787 test -z "$as_dir" && as_dir=. 37788 for ac_exec_ext in '' $ac_executable_extensions; do 37789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37790 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 37791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37792 break 2 37793 fi 37794 done 37795 done 37796 IFS=$as_save_IFS 37797 37798 fi 37799 fi 37800 OBJCOPY=$ac_cv_prog_OBJCOPY 37801 if test -n "$OBJCOPY"; then 37802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37803 $as_echo "$OBJCOPY" >&6; } 37804 else 37805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37806 $as_echo "no" >&6; } 37807 fi 37808 37809 37810 test -n "$OBJCOPY" && break 37811 done 37812 fi 37813 if test -z "$OBJCOPY"; then 37814 ac_ct_OBJCOPY=$OBJCOPY 37815 for ac_prog in gobjcopy objcopy 37816 do 37817 # Extract the first word of "$ac_prog", so it can be a program name with args. 37818 set dummy $ac_prog; ac_word=$2 37819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37820 $as_echo_n "checking for $ac_word... " >&6; } 37821 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 37822 $as_echo_n "(cached) " >&6 37823 else 37824 if test -n "$ac_ct_OBJCOPY"; then 37825 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 37826 else 37827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37828 for as_dir in $PATH 37829 do 37830 IFS=$as_save_IFS 37831 test -z "$as_dir" && as_dir=. 37832 for ac_exec_ext in '' $ac_executable_extensions; do 37833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37834 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 37835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37836 break 2 37837 fi 37838 done 37839 done 37840 IFS=$as_save_IFS 37841 37842 fi 37843 fi 37844 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 37845 if test -n "$ac_ct_OBJCOPY"; then 37846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 37847 $as_echo "$ac_ct_OBJCOPY" >&6; } 37848 else 37849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37850 $as_echo "no" >&6; } 37851 fi 37852 37853 37854 test -n "$ac_ct_OBJCOPY" && break 37855 done 37856 37857 if test "x$ac_ct_OBJCOPY" = x; then 37858 OBJCOPY="" 37859 else 37860 case $cross_compiling:$ac_tool_warned in 37861 yes:) 37862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37863 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37864 ac_tool_warned=yes ;; 37865 esac 37866 OBJCOPY=$ac_ct_OBJCOPY 37867 fi 37868 fi 37869 37870 else 37871 # If it succeeded, then it was overridden by the user. We will use it 37872 # for the tool. 37873 37874 # First remove it from the list of overridden variables, so we can test 37875 # for unknown variables in the end. 37876 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37877 37878 # Check if the provided tool contains a complete path. 37879 tool_specified="$OBJCOPY" 37880 tool_basename="${tool_specified##*/}" 37881 if test "x$tool_basename" = "x$tool_specified"; then 37882 # A command without a complete path is provided, search $PATH. 37883 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 37884 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 37885 # Extract the first word of "$tool_basename", so it can be a program name with args. 37886 set dummy $tool_basename; ac_word=$2 37887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37888 $as_echo_n "checking for $ac_word... " >&6; } 37889 if ${ac_cv_path_OBJCOPY+:} false; then : 37890 $as_echo_n "(cached) " >&6 37891 else 37892 case $OBJCOPY in 37893 [\\/]* | ?:[\\/]*) 37894 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 37895 ;; 37896 *) 37897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37898 for as_dir in $PATH 37899 do 37900 IFS=$as_save_IFS 37901 test -z "$as_dir" && as_dir=. 37902 for ac_exec_ext in '' $ac_executable_extensions; do 37903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37904 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 37905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37906 break 2 37907 fi 37908 done 37909 done 37910 IFS=$as_save_IFS 37911 37912 ;; 37913 esac 37914 fi 37915 OBJCOPY=$ac_cv_path_OBJCOPY 37916 if test -n "$OBJCOPY"; then 37917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 37918 $as_echo "$OBJCOPY" >&6; } 37919 else 37920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37921 $as_echo "no" >&6; } 37922 fi 37923 37924 37925 if test "x$OBJCOPY" = x; then 37926 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37927 fi 37928 else 37929 # Otherwise we believe it is a complete path. Use it as it is. 37930 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 37931 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 37932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 37933 $as_echo_n "checking for OBJCOPY... " >&6; } 37934 if test ! -x "$tool_specified"; then 37935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37936 $as_echo "not found" >&6; } 37937 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 37938 fi 37939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37940 $as_echo "$tool_specified" >&6; } 37941 fi 37942 fi 37943 fi 37944 37945 37946 # Only call fixup if objcopy was found. 37947 if test -n "$OBJCOPY"; then 37948 37949 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37950 37951 # First separate the path from the arguments. This will split at the first 37952 # space. 37953 complete="$OBJCOPY" 37954 path="${complete%% *}" 37955 tmp="$complete EOL" 37956 arguments="${tmp#* }" 37957 37958 # Input might be given as Windows format, start by converting to 37959 # unix format. 37960 new_path=`$CYGPATH -u "$path"` 37961 37962 # Now try to locate executable using which 37963 new_path=`$WHICH "$new_path" 2> /dev/null` 37964 # bat and cmd files are not always considered executable in cygwin causing which 37965 # to not find them 37966 if test "x$new_path" = x \ 37967 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37968 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37969 new_path=`$CYGPATH -u "$path"` 37970 fi 37971 if test "x$new_path" = x; then 37972 # Oops. Which didn't find the executable. 37973 # The splitting of arguments from the executable at a space might have been incorrect, 37974 # since paths with space are more likely in Windows. Give it another try with the whole 37975 # argument. 37976 path="$complete" 37977 arguments="EOL" 37978 new_path=`$CYGPATH -u "$path"` 37979 new_path=`$WHICH "$new_path" 2> /dev/null` 37980 # bat and cmd files are not always considered executable in cygwin causing which 37981 # to not find them 37982 if test "x$new_path" = x \ 37983 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37984 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37985 new_path=`$CYGPATH -u "$path"` 37986 fi 37987 if test "x$new_path" = x; then 37988 # It's still not found. Now this is an unrecoverable error. 37989 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 37990 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 37991 has_space=`$ECHO "$complete" | $GREP " "` 37992 if test "x$has_space" != x; then 37993 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37994 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37995 fi 37996 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 37997 fi 37998 fi 37999 38000 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38001 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38002 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38003 # "foo.exe" is OK but "foo" is an error. 38004 # 38005 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38006 # It is also a way to make sure we got the proper file name for the real test later on. 38007 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38008 if test "x$test_shortpath" = x; then 38009 # Short path failed, file does not exist as specified. 38010 # Try adding .exe or .cmd 38011 if test -f "${new_path}.exe"; then 38012 input_to_shortpath="${new_path}.exe" 38013 elif test -f "${new_path}.cmd"; then 38014 input_to_shortpath="${new_path}.cmd" 38015 else 38016 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 38017 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 38018 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38019 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38020 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38021 fi 38022 else 38023 input_to_shortpath="$new_path" 38024 fi 38025 38026 # Call helper function which possibly converts this using DOS-style short mode. 38027 # If so, the updated path is stored in $new_path. 38028 new_path="$input_to_shortpath" 38029 38030 input_path="$input_to_shortpath" 38031 # Check if we need to convert this using DOS-style short mode. If the path 38032 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38033 # take no chances and rewrite it. 38034 # Note: m4 eats our [], so we need to use [ and ] instead. 38035 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38036 if test "x$has_forbidden_chars" != x; then 38037 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38038 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38039 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38040 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38041 # Going to short mode and back again did indeed matter. Since short mode is 38042 # case insensitive, let's make it lowercase to improve readability. 38043 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38044 # Now convert it back to Unix-stile (cygpath) 38045 input_path=`$CYGPATH -u "$shortmode_path"` 38046 new_path="$input_path" 38047 fi 38048 fi 38049 38050 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38051 if test "x$test_cygdrive_prefix" = x; then 38052 # As a simple fix, exclude /usr/bin since it's not a real path. 38053 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38054 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38055 # a path prefixed by /cygdrive for fixpath to work. 38056 new_path="$CYGWIN_ROOT_PATH$input_path" 38057 fi 38058 fi 38059 38060 # remove trailing .exe if any 38061 new_path="${new_path/%.exe/}" 38062 38063 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38064 38065 # First separate the path from the arguments. This will split at the first 38066 # space. 38067 complete="$OBJCOPY" 38068 path="${complete%% *}" 38069 tmp="$complete EOL" 38070 arguments="${tmp#* }" 38071 38072 # Input might be given as Windows format, start by converting to 38073 # unix format. 38074 new_path="$path" 38075 38076 windows_path="$new_path" 38077 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38078 unix_path=`$CYGPATH -u "$windows_path"` 38079 new_path="$unix_path" 38080 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38081 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38082 new_path="$unix_path" 38083 fi 38084 38085 38086 # Now try to locate executable using which 38087 new_path=`$WHICH "$new_path" 2> /dev/null` 38088 38089 if test "x$new_path" = x; then 38090 # Oops. Which didn't find the executable. 38091 # The splitting of arguments from the executable at a space might have been incorrect, 38092 # since paths with space are more likely in Windows. Give it another try with the whole 38093 # argument. 38094 path="$complete" 38095 arguments="EOL" 38096 new_path="$path" 38097 38098 windows_path="$new_path" 38099 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38100 unix_path=`$CYGPATH -u "$windows_path"` 38101 new_path="$unix_path" 38102 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38103 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38104 new_path="$unix_path" 38105 fi 38106 38107 38108 new_path=`$WHICH "$new_path" 2> /dev/null` 38109 38110 if test "x$new_path" = x; then 38111 # It's still not found. Now this is an unrecoverable error. 38112 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38113 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38114 has_space=`$ECHO "$complete" | $GREP " "` 38115 if test "x$has_space" != x; then 38116 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38117 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38118 fi 38119 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38120 fi 38121 fi 38122 38123 # Now new_path has a complete unix path to the binary 38124 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38125 # Keep paths in /bin as-is, but remove trailing .exe if any 38126 new_path="${new_path/%.exe/}" 38127 # Do not save /bin paths to all_fixpath_prefixes! 38128 else 38129 # Not in mixed or Windows style, start by that. 38130 new_path=`cmd //c echo $new_path` 38131 38132 input_path="$new_path" 38133 # Check if we need to convert this using DOS-style short mode. If the path 38134 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38135 # take no chances and rewrite it. 38136 # Note: m4 eats our [], so we need to use [ and ] instead. 38137 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38138 if test "x$has_forbidden_chars" != x; then 38139 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38140 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38141 fi 38142 38143 # Output is in $new_path 38144 38145 windows_path="$new_path" 38146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38147 unix_path=`$CYGPATH -u "$windows_path"` 38148 new_path="$unix_path" 38149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38151 new_path="$unix_path" 38152 fi 38153 38154 # remove trailing .exe if any 38155 new_path="${new_path/%.exe/}" 38156 38157 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38158 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38159 fi 38160 38161 else 38162 # We're on a posix platform. Hooray! :) 38163 # First separate the path from the arguments. This will split at the first 38164 # space. 38165 complete="$OBJCOPY" 38166 path="${complete%% *}" 38167 tmp="$complete EOL" 38168 arguments="${tmp#* }" 38169 38170 # Cannot rely on the command "which" here since it doesn't always work. 38171 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38172 if test -z "$is_absolute_path"; then 38173 # Path to executable is not absolute. Find it. 38174 IFS_save="$IFS" 38175 IFS=: 38176 for p in $PATH; do 38177 if test -f "$p/$path" && test -x "$p/$path"; then 38178 new_path="$p/$path" 38179 break 38180 fi 38181 done 38182 IFS="$IFS_save" 38183 else 38184 # This is an absolute path, we can use it without further modifications. 38185 new_path="$path" 38186 fi 38187 38188 if test "x$new_path" = x; then 38189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 38190 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 38191 has_space=`$ECHO "$complete" | $GREP " "` 38192 if test "x$has_space" != x; then 38193 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38194 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38195 fi 38196 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 38197 fi 38198 fi 38199 38200 # Now join together the path and the arguments once again 38201 if test "x$arguments" != xEOL; then 38202 new_complete="$new_path ${arguments% *}" 38203 else 38204 new_complete="$new_path" 38205 fi 38206 38207 if test "x$complete" != "x$new_complete"; then 38208 OBJCOPY="$new_complete" 38209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 38210 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 38211 fi 38212 38213 fi 38214 fi 38215 38216 38217 38218 # Publish this variable in the help. 38219 38220 38221 if test "x$OBJDUMP" = x; then 38222 # The variable is not set by user, try to locate tool using the code snippet 38223 if test -n "$ac_tool_prefix"; then 38224 for ac_prog in gobjdump objdump 38225 do 38226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38227 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38229 $as_echo_n "checking for $ac_word... " >&6; } 38230 if ${ac_cv_prog_OBJDUMP+:} false; then : 38231 $as_echo_n "(cached) " >&6 38232 else 38233 if test -n "$OBJDUMP"; then 38234 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38235 else 38236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38237 for as_dir in $PATH 38238 do 38239 IFS=$as_save_IFS 38240 test -z "$as_dir" && as_dir=. 38241 for ac_exec_ext in '' $ac_executable_extensions; do 38242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38243 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38245 break 2 38246 fi 38247 done 38248 done 38249 IFS=$as_save_IFS 38250 38251 fi 38252 fi 38253 OBJDUMP=$ac_cv_prog_OBJDUMP 38254 if test -n "$OBJDUMP"; then 38255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38256 $as_echo "$OBJDUMP" >&6; } 38257 else 38258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38259 $as_echo "no" >&6; } 38260 fi 38261 38262 38263 test -n "$OBJDUMP" && break 38264 done 38265 fi 38266 if test -z "$OBJDUMP"; then 38267 ac_ct_OBJDUMP=$OBJDUMP 38268 for ac_prog in gobjdump objdump 38269 do 38270 # Extract the first word of "$ac_prog", so it can be a program name with args. 38271 set dummy $ac_prog; ac_word=$2 38272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38273 $as_echo_n "checking for $ac_word... " >&6; } 38274 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38275 $as_echo_n "(cached) " >&6 38276 else 38277 if test -n "$ac_ct_OBJDUMP"; then 38278 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38279 else 38280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38281 for as_dir in $PATH 38282 do 38283 IFS=$as_save_IFS 38284 test -z "$as_dir" && as_dir=. 38285 for ac_exec_ext in '' $ac_executable_extensions; do 38286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38287 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38289 break 2 38290 fi 38291 done 38292 done 38293 IFS=$as_save_IFS 38294 38295 fi 38296 fi 38297 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38298 if test -n "$ac_ct_OBJDUMP"; then 38299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38300 $as_echo "$ac_ct_OBJDUMP" >&6; } 38301 else 38302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38303 $as_echo "no" >&6; } 38304 fi 38305 38306 38307 test -n "$ac_ct_OBJDUMP" && break 38308 done 38309 38310 if test "x$ac_ct_OBJDUMP" = x; then 38311 OBJDUMP="" 38312 else 38313 case $cross_compiling:$ac_tool_warned in 38314 yes:) 38315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38316 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38317 ac_tool_warned=yes ;; 38318 esac 38319 OBJDUMP=$ac_ct_OBJDUMP 38320 fi 38321 fi 38322 38323 else 38324 # The variable is set, but is it from the command line or the environment? 38325 38326 # Try to remove the string !OBJDUMP! from our list. 38327 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 38328 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38329 # If it failed, the variable was not from the command line. Ignore it, 38330 # but warn the user (except for BASH, which is always set by the calling BASH). 38331 if test "xOBJDUMP" != xBASH; then 38332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 38333 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 38334 fi 38335 # Try to locate tool using the code snippet 38336 if test -n "$ac_tool_prefix"; then 38337 for ac_prog in gobjdump objdump 38338 do 38339 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 38340 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 38341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38342 $as_echo_n "checking for $ac_word... " >&6; } 38343 if ${ac_cv_prog_OBJDUMP+:} false; then : 38344 $as_echo_n "(cached) " >&6 38345 else 38346 if test -n "$OBJDUMP"; then 38347 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 38348 else 38349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38350 for as_dir in $PATH 38351 do 38352 IFS=$as_save_IFS 38353 test -z "$as_dir" && as_dir=. 38354 for ac_exec_ext in '' $ac_executable_extensions; do 38355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38356 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 38357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38358 break 2 38359 fi 38360 done 38361 done 38362 IFS=$as_save_IFS 38363 38364 fi 38365 fi 38366 OBJDUMP=$ac_cv_prog_OBJDUMP 38367 if test -n "$OBJDUMP"; then 38368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38369 $as_echo "$OBJDUMP" >&6; } 38370 else 38371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38372 $as_echo "no" >&6; } 38373 fi 38374 38375 38376 test -n "$OBJDUMP" && break 38377 done 38378 fi 38379 if test -z "$OBJDUMP"; then 38380 ac_ct_OBJDUMP=$OBJDUMP 38381 for ac_prog in gobjdump objdump 38382 do 38383 # Extract the first word of "$ac_prog", so it can be a program name with args. 38384 set dummy $ac_prog; ac_word=$2 38385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38386 $as_echo_n "checking for $ac_word... " >&6; } 38387 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 38388 $as_echo_n "(cached) " >&6 38389 else 38390 if test -n "$ac_ct_OBJDUMP"; then 38391 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 38392 else 38393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38394 for as_dir in $PATH 38395 do 38396 IFS=$as_save_IFS 38397 test -z "$as_dir" && as_dir=. 38398 for ac_exec_ext in '' $ac_executable_extensions; do 38399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38400 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 38401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38402 break 2 38403 fi 38404 done 38405 done 38406 IFS=$as_save_IFS 38407 38408 fi 38409 fi 38410 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 38411 if test -n "$ac_ct_OBJDUMP"; then 38412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 38413 $as_echo "$ac_ct_OBJDUMP" >&6; } 38414 else 38415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38416 $as_echo "no" >&6; } 38417 fi 38418 38419 38420 test -n "$ac_ct_OBJDUMP" && break 38421 done 38422 38423 if test "x$ac_ct_OBJDUMP" = x; then 38424 OBJDUMP="" 38425 else 38426 case $cross_compiling:$ac_tool_warned in 38427 yes:) 38428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 38429 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 38430 ac_tool_warned=yes ;; 38431 esac 38432 OBJDUMP=$ac_ct_OBJDUMP 38433 fi 38434 fi 38435 38436 else 38437 # If it succeeded, then it was overridden by the user. We will use it 38438 # for the tool. 38439 38440 # First remove it from the list of overridden variables, so we can test 38441 # for unknown variables in the end. 38442 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38443 38444 # Check if the provided tool contains a complete path. 38445 tool_specified="$OBJDUMP" 38446 tool_basename="${tool_specified##*/}" 38447 if test "x$tool_basename" = "x$tool_specified"; then 38448 # A command without a complete path is provided, search $PATH. 38449 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 38450 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 38451 # Extract the first word of "$tool_basename", so it can be a program name with args. 38452 set dummy $tool_basename; ac_word=$2 38453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38454 $as_echo_n "checking for $ac_word... " >&6; } 38455 if ${ac_cv_path_OBJDUMP+:} false; then : 38456 $as_echo_n "(cached) " >&6 38457 else 38458 case $OBJDUMP in 38459 [\\/]* | ?:[\\/]*) 38460 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 38461 ;; 38462 *) 38463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38464 for as_dir in $PATH 38465 do 38466 IFS=$as_save_IFS 38467 test -z "$as_dir" && as_dir=. 38468 for ac_exec_ext in '' $ac_executable_extensions; do 38469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38470 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 38471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38472 break 2 38473 fi 38474 done 38475 done 38476 IFS=$as_save_IFS 38477 38478 ;; 38479 esac 38480 fi 38481 OBJDUMP=$ac_cv_path_OBJDUMP 38482 if test -n "$OBJDUMP"; then 38483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 38484 $as_echo "$OBJDUMP" >&6; } 38485 else 38486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38487 $as_echo "no" >&6; } 38488 fi 38489 38490 38491 if test "x$OBJDUMP" = x; then 38492 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38493 fi 38494 else 38495 # Otherwise we believe it is a complete path. Use it as it is. 38496 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 38497 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 38498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 38499 $as_echo_n "checking for OBJDUMP... " >&6; } 38500 if test ! -x "$tool_specified"; then 38501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38502 $as_echo "not found" >&6; } 38503 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 38504 fi 38505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38506 $as_echo "$tool_specified" >&6; } 38507 fi 38508 fi 38509 fi 38510 38511 38512 if test "x$OBJDUMP" != x; then 38513 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 38514 # bails if argument is missing. 38515 38516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38517 38518 # First separate the path from the arguments. This will split at the first 38519 # space. 38520 complete="$OBJDUMP" 38521 path="${complete%% *}" 38522 tmp="$complete EOL" 38523 arguments="${tmp#* }" 38524 38525 # Input might be given as Windows format, start by converting to 38526 # unix format. 38527 new_path=`$CYGPATH -u "$path"` 38528 38529 # Now try to locate executable using which 38530 new_path=`$WHICH "$new_path" 2> /dev/null` 38531 # bat and cmd files are not always considered executable in cygwin causing which 38532 # to not find them 38533 if test "x$new_path" = x \ 38534 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38535 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38536 new_path=`$CYGPATH -u "$path"` 38537 fi 38538 if test "x$new_path" = x; then 38539 # Oops. Which didn't find the executable. 38540 # The splitting of arguments from the executable at a space might have been incorrect, 38541 # since paths with space are more likely in Windows. Give it another try with the whole 38542 # argument. 38543 path="$complete" 38544 arguments="EOL" 38545 new_path=`$CYGPATH -u "$path"` 38546 new_path=`$WHICH "$new_path" 2> /dev/null` 38547 # bat and cmd files are not always considered executable in cygwin causing which 38548 # to not find them 38549 if test "x$new_path" = x \ 38550 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38551 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38552 new_path=`$CYGPATH -u "$path"` 38553 fi 38554 if test "x$new_path" = x; then 38555 # It's still not found. Now this is an unrecoverable error. 38556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38557 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38558 has_space=`$ECHO "$complete" | $GREP " "` 38559 if test "x$has_space" != x; then 38560 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38561 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38562 fi 38563 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38564 fi 38565 fi 38566 38567 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38568 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38569 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38570 # "foo.exe" is OK but "foo" is an error. 38571 # 38572 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38573 # It is also a way to make sure we got the proper file name for the real test later on. 38574 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38575 if test "x$test_shortpath" = x; then 38576 # Short path failed, file does not exist as specified. 38577 # Try adding .exe or .cmd 38578 if test -f "${new_path}.exe"; then 38579 input_to_shortpath="${new_path}.exe" 38580 elif test -f "${new_path}.cmd"; then 38581 input_to_shortpath="${new_path}.cmd" 38582 else 38583 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 38584 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 38585 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38586 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38587 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38588 fi 38589 else 38590 input_to_shortpath="$new_path" 38591 fi 38592 38593 # Call helper function which possibly converts this using DOS-style short mode. 38594 # If so, the updated path is stored in $new_path. 38595 new_path="$input_to_shortpath" 38596 38597 input_path="$input_to_shortpath" 38598 # Check if we need to convert this using DOS-style short mode. If the path 38599 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38600 # take no chances and rewrite it. 38601 # Note: m4 eats our [], so we need to use [ and ] instead. 38602 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38603 if test "x$has_forbidden_chars" != x; then 38604 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38605 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38606 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38607 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38608 # Going to short mode and back again did indeed matter. Since short mode is 38609 # case insensitive, let's make it lowercase to improve readability. 38610 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38611 # Now convert it back to Unix-stile (cygpath) 38612 input_path=`$CYGPATH -u "$shortmode_path"` 38613 new_path="$input_path" 38614 fi 38615 fi 38616 38617 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38618 if test "x$test_cygdrive_prefix" = x; then 38619 # As a simple fix, exclude /usr/bin since it's not a real path. 38620 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38621 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38622 # a path prefixed by /cygdrive for fixpath to work. 38623 new_path="$CYGWIN_ROOT_PATH$input_path" 38624 fi 38625 fi 38626 38627 # remove trailing .exe if any 38628 new_path="${new_path/%.exe/}" 38629 38630 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38631 38632 # First separate the path from the arguments. This will split at the first 38633 # space. 38634 complete="$OBJDUMP" 38635 path="${complete%% *}" 38636 tmp="$complete EOL" 38637 arguments="${tmp#* }" 38638 38639 # Input might be given as Windows format, start by converting to 38640 # unix format. 38641 new_path="$path" 38642 38643 windows_path="$new_path" 38644 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38645 unix_path=`$CYGPATH -u "$windows_path"` 38646 new_path="$unix_path" 38647 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38648 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38649 new_path="$unix_path" 38650 fi 38651 38652 38653 # Now try to locate executable using which 38654 new_path=`$WHICH "$new_path" 2> /dev/null` 38655 38656 if test "x$new_path" = x; then 38657 # Oops. Which didn't find the executable. 38658 # The splitting of arguments from the executable at a space might have been incorrect, 38659 # since paths with space are more likely in Windows. Give it another try with the whole 38660 # argument. 38661 path="$complete" 38662 arguments="EOL" 38663 new_path="$path" 38664 38665 windows_path="$new_path" 38666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38667 unix_path=`$CYGPATH -u "$windows_path"` 38668 new_path="$unix_path" 38669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38670 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38671 new_path="$unix_path" 38672 fi 38673 38674 38675 new_path=`$WHICH "$new_path" 2> /dev/null` 38676 38677 if test "x$new_path" = x; then 38678 # It's still not found. Now this is an unrecoverable error. 38679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38680 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38681 has_space=`$ECHO "$complete" | $GREP " "` 38682 if test "x$has_space" != x; then 38683 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38684 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38685 fi 38686 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38687 fi 38688 fi 38689 38690 # Now new_path has a complete unix path to the binary 38691 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38692 # Keep paths in /bin as-is, but remove trailing .exe if any 38693 new_path="${new_path/%.exe/}" 38694 # Do not save /bin paths to all_fixpath_prefixes! 38695 else 38696 # Not in mixed or Windows style, start by that. 38697 new_path=`cmd //c echo $new_path` 38698 38699 input_path="$new_path" 38700 # Check if we need to convert this using DOS-style short mode. If the path 38701 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38702 # take no chances and rewrite it. 38703 # Note: m4 eats our [], so we need to use [ and ] instead. 38704 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38705 if test "x$has_forbidden_chars" != x; then 38706 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38707 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38708 fi 38709 38710 # Output is in $new_path 38711 38712 windows_path="$new_path" 38713 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38714 unix_path=`$CYGPATH -u "$windows_path"` 38715 new_path="$unix_path" 38716 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38717 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38718 new_path="$unix_path" 38719 fi 38720 38721 # remove trailing .exe if any 38722 new_path="${new_path/%.exe/}" 38723 38724 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38725 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38726 fi 38727 38728 else 38729 # We're on a posix platform. Hooray! :) 38730 # First separate the path from the arguments. This will split at the first 38731 # space. 38732 complete="$OBJDUMP" 38733 path="${complete%% *}" 38734 tmp="$complete EOL" 38735 arguments="${tmp#* }" 38736 38737 # Cannot rely on the command "which" here since it doesn't always work. 38738 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38739 if test -z "$is_absolute_path"; then 38740 # Path to executable is not absolute. Find it. 38741 IFS_save="$IFS" 38742 IFS=: 38743 for p in $PATH; do 38744 if test -f "$p/$path" && test -x "$p/$path"; then 38745 new_path="$p/$path" 38746 break 38747 fi 38748 done 38749 IFS="$IFS_save" 38750 else 38751 # This is an absolute path, we can use it without further modifications. 38752 new_path="$path" 38753 fi 38754 38755 if test "x$new_path" = x; then 38756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 38757 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 38758 has_space=`$ECHO "$complete" | $GREP " "` 38759 if test "x$has_space" != x; then 38760 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38761 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38762 fi 38763 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 38764 fi 38765 fi 38766 38767 # Now join together the path and the arguments once again 38768 if test "x$arguments" != xEOL; then 38769 new_complete="$new_path ${arguments% *}" 38770 else 38771 new_complete="$new_path" 38772 fi 38773 38774 if test "x$complete" != "x$new_complete"; then 38775 OBJDUMP="$new_complete" 38776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 38777 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 38778 fi 38779 38780 fi 38781 38782 38783 # Restore old path. 38784 PATH="$OLD_PATH" 38785 38786 # Restore the flags to the user specified values. 38787 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 38788 CFLAGS="$ORG_CFLAGS" 38789 CXXFLAGS="$ORG_CXXFLAGS" 38790 OBJCFLAGS="$ORG_OBJCFLAGS" 38791 38792 38793 # Finally do some processing after the detection phase 38794 38795 if test "x$COMPILE_TYPE" = "xcross"; then 38796 # Now we need to find a C/C++ compiler that can build executables for the 38797 # build platform. We can't use the AC_PROG_CC macro, since it can only be 38798 # used once. Also, we need to do this without adding a tools dir to the 38799 # path, otherwise we might pick up cross-compilers which don't use standard 38800 # naming. 38801 38802 # FIXME: we should list the discovered compilers as an exclude pattern! 38803 # If we do that, we can do this detection before POST_DETECTION, and still 38804 # find the build compilers in the tools dir, if needed. 38805 38806 38807 # Publish this variable in the help. 38808 38809 38810 if test "x$BUILD_CC" = x; then 38811 # The variable is not set by user, try to locate tool using the code snippet 38812 for ac_prog in cl cc gcc 38813 do 38814 # Extract the first word of "$ac_prog", so it can be a program name with args. 38815 set dummy $ac_prog; ac_word=$2 38816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38817 $as_echo_n "checking for $ac_word... " >&6; } 38818 if ${ac_cv_path_BUILD_CC+:} false; then : 38819 $as_echo_n "(cached) " >&6 38820 else 38821 case $BUILD_CC in 38822 [\\/]* | ?:[\\/]*) 38823 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38824 ;; 38825 *) 38826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38827 for as_dir in $PATH 38828 do 38829 IFS=$as_save_IFS 38830 test -z "$as_dir" && as_dir=. 38831 for ac_exec_ext in '' $ac_executable_extensions; do 38832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38833 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38835 break 2 38836 fi 38837 done 38838 done 38839 IFS=$as_save_IFS 38840 38841 ;; 38842 esac 38843 fi 38844 BUILD_CC=$ac_cv_path_BUILD_CC 38845 if test -n "$BUILD_CC"; then 38846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38847 $as_echo "$BUILD_CC" >&6; } 38848 else 38849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38850 $as_echo "no" >&6; } 38851 fi 38852 38853 38854 test -n "$BUILD_CC" && break 38855 done 38856 38857 else 38858 # The variable is set, but is it from the command line or the environment? 38859 38860 # Try to remove the string !BUILD_CC! from our list. 38861 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 38862 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38863 # If it failed, the variable was not from the command line. Ignore it, 38864 # but warn the user (except for BASH, which is always set by the calling BASH). 38865 if test "xBUILD_CC" != xBASH; then 38866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 38867 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 38868 fi 38869 # Try to locate tool using the code snippet 38870 for ac_prog in cl cc gcc 38871 do 38872 # Extract the first word of "$ac_prog", so it can be a program name with args. 38873 set dummy $ac_prog; ac_word=$2 38874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38875 $as_echo_n "checking for $ac_word... " >&6; } 38876 if ${ac_cv_path_BUILD_CC+:} false; then : 38877 $as_echo_n "(cached) " >&6 38878 else 38879 case $BUILD_CC in 38880 [\\/]* | ?:[\\/]*) 38881 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38882 ;; 38883 *) 38884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38885 for as_dir in $PATH 38886 do 38887 IFS=$as_save_IFS 38888 test -z "$as_dir" && as_dir=. 38889 for ac_exec_ext in '' $ac_executable_extensions; do 38890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38891 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38893 break 2 38894 fi 38895 done 38896 done 38897 IFS=$as_save_IFS 38898 38899 ;; 38900 esac 38901 fi 38902 BUILD_CC=$ac_cv_path_BUILD_CC 38903 if test -n "$BUILD_CC"; then 38904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38905 $as_echo "$BUILD_CC" >&6; } 38906 else 38907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38908 $as_echo "no" >&6; } 38909 fi 38910 38911 38912 test -n "$BUILD_CC" && break 38913 done 38914 38915 else 38916 # If it succeeded, then it was overridden by the user. We will use it 38917 # for the tool. 38918 38919 # First remove it from the list of overridden variables, so we can test 38920 # for unknown variables in the end. 38921 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38922 38923 # Check if the provided tool contains a complete path. 38924 tool_specified="$BUILD_CC" 38925 tool_basename="${tool_specified##*/}" 38926 if test "x$tool_basename" = "x$tool_specified"; then 38927 # A command without a complete path is provided, search $PATH. 38928 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 38929 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 38930 # Extract the first word of "$tool_basename", so it can be a program name with args. 38931 set dummy $tool_basename; ac_word=$2 38932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38933 $as_echo_n "checking for $ac_word... " >&6; } 38934 if ${ac_cv_path_BUILD_CC+:} false; then : 38935 $as_echo_n "(cached) " >&6 38936 else 38937 case $BUILD_CC in 38938 [\\/]* | ?:[\\/]*) 38939 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 38940 ;; 38941 *) 38942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38943 for as_dir in $PATH 38944 do 38945 IFS=$as_save_IFS 38946 test -z "$as_dir" && as_dir=. 38947 for ac_exec_ext in '' $ac_executable_extensions; do 38948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38949 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 38950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38951 break 2 38952 fi 38953 done 38954 done 38955 IFS=$as_save_IFS 38956 38957 ;; 38958 esac 38959 fi 38960 BUILD_CC=$ac_cv_path_BUILD_CC 38961 if test -n "$BUILD_CC"; then 38962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 38963 $as_echo "$BUILD_CC" >&6; } 38964 else 38965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38966 $as_echo "no" >&6; } 38967 fi 38968 38969 38970 if test "x$BUILD_CC" = x; then 38971 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38972 fi 38973 else 38974 # Otherwise we believe it is a complete path. Use it as it is. 38975 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 38976 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 38977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 38978 $as_echo_n "checking for BUILD_CC... " >&6; } 38979 if test ! -x "$tool_specified"; then 38980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38981 $as_echo "not found" >&6; } 38982 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 38983 fi 38984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38985 $as_echo "$tool_specified" >&6; } 38986 fi 38987 fi 38988 fi 38989 38990 38991 38992 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38993 38994 # First separate the path from the arguments. This will split at the first 38995 # space. 38996 complete="$BUILD_CC" 38997 path="${complete%% *}" 38998 tmp="$complete EOL" 38999 arguments="${tmp#* }" 39000 39001 # Input might be given as Windows format, start by converting to 39002 # unix format. 39003 new_path=`$CYGPATH -u "$path"` 39004 39005 # Now try to locate executable using which 39006 new_path=`$WHICH "$new_path" 2> /dev/null` 39007 # bat and cmd files are not always considered executable in cygwin causing which 39008 # to not find them 39009 if test "x$new_path" = x \ 39010 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39011 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39012 new_path=`$CYGPATH -u "$path"` 39013 fi 39014 if test "x$new_path" = x; then 39015 # Oops. Which didn't find the executable. 39016 # The splitting of arguments from the executable at a space might have been incorrect, 39017 # since paths with space are more likely in Windows. Give it another try with the whole 39018 # argument. 39019 path="$complete" 39020 arguments="EOL" 39021 new_path=`$CYGPATH -u "$path"` 39022 new_path=`$WHICH "$new_path" 2> /dev/null` 39023 # bat and cmd files are not always considered executable in cygwin causing which 39024 # to not find them 39025 if test "x$new_path" = x \ 39026 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39027 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39028 new_path=`$CYGPATH -u "$path"` 39029 fi 39030 if test "x$new_path" = x; then 39031 # It's still not found. Now this is an unrecoverable error. 39032 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39033 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39034 has_space=`$ECHO "$complete" | $GREP " "` 39035 if test "x$has_space" != x; then 39036 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39037 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39038 fi 39039 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39040 fi 39041 fi 39042 39043 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39044 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39045 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39046 # "foo.exe" is OK but "foo" is an error. 39047 # 39048 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39049 # It is also a way to make sure we got the proper file name for the real test later on. 39050 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39051 if test "x$test_shortpath" = x; then 39052 # Short path failed, file does not exist as specified. 39053 # Try adding .exe or .cmd 39054 if test -f "${new_path}.exe"; then 39055 input_to_shortpath="${new_path}.exe" 39056 elif test -f "${new_path}.cmd"; then 39057 input_to_shortpath="${new_path}.cmd" 39058 else 39059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 39060 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 39061 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39062 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39063 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39064 fi 39065 else 39066 input_to_shortpath="$new_path" 39067 fi 39068 39069 # Call helper function which possibly converts this using DOS-style short mode. 39070 # If so, the updated path is stored in $new_path. 39071 new_path="$input_to_shortpath" 39072 39073 input_path="$input_to_shortpath" 39074 # Check if we need to convert this using DOS-style short mode. If the path 39075 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39076 # take no chances and rewrite it. 39077 # Note: m4 eats our [], so we need to use [ and ] instead. 39078 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39079 if test "x$has_forbidden_chars" != x; then 39080 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39081 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39082 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39083 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39084 # Going to short mode and back again did indeed matter. Since short mode is 39085 # case insensitive, let's make it lowercase to improve readability. 39086 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39087 # Now convert it back to Unix-stile (cygpath) 39088 input_path=`$CYGPATH -u "$shortmode_path"` 39089 new_path="$input_path" 39090 fi 39091 fi 39092 39093 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39094 if test "x$test_cygdrive_prefix" = x; then 39095 # As a simple fix, exclude /usr/bin since it's not a real path. 39096 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39097 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39098 # a path prefixed by /cygdrive for fixpath to work. 39099 new_path="$CYGWIN_ROOT_PATH$input_path" 39100 fi 39101 fi 39102 39103 # remove trailing .exe if any 39104 new_path="${new_path/%.exe/}" 39105 39106 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39107 39108 # First separate the path from the arguments. This will split at the first 39109 # space. 39110 complete="$BUILD_CC" 39111 path="${complete%% *}" 39112 tmp="$complete EOL" 39113 arguments="${tmp#* }" 39114 39115 # Input might be given as Windows format, start by converting to 39116 # unix format. 39117 new_path="$path" 39118 39119 windows_path="$new_path" 39120 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39121 unix_path=`$CYGPATH -u "$windows_path"` 39122 new_path="$unix_path" 39123 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39124 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39125 new_path="$unix_path" 39126 fi 39127 39128 39129 # Now try to locate executable using which 39130 new_path=`$WHICH "$new_path" 2> /dev/null` 39131 39132 if test "x$new_path" = x; then 39133 # Oops. Which didn't find the executable. 39134 # The splitting of arguments from the executable at a space might have been incorrect, 39135 # since paths with space are more likely in Windows. Give it another try with the whole 39136 # argument. 39137 path="$complete" 39138 arguments="EOL" 39139 new_path="$path" 39140 39141 windows_path="$new_path" 39142 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39143 unix_path=`$CYGPATH -u "$windows_path"` 39144 new_path="$unix_path" 39145 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39146 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39147 new_path="$unix_path" 39148 fi 39149 39150 39151 new_path=`$WHICH "$new_path" 2> /dev/null` 39152 39153 if test "x$new_path" = x; then 39154 # It's still not found. Now this is an unrecoverable error. 39155 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39156 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 39157 has_space=`$ECHO "$complete" | $GREP " "` 39158 if test "x$has_space" != x; then 39159 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39160 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39161 fi 39162 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39163 fi 39164 fi 39165 39166 # Now new_path has a complete unix path to the binary 39167 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39168 # Keep paths in /bin as-is, but remove trailing .exe if any 39169 new_path="${new_path/%.exe/}" 39170 # Do not save /bin paths to all_fixpath_prefixes! 39171 else 39172 # Not in mixed or Windows style, start by that. 39173 new_path=`cmd //c echo $new_path` 39174 39175 input_path="$new_path" 39176 # Check if we need to convert this using DOS-style short mode. If the path 39177 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39178 # take no chances and rewrite it. 39179 # Note: m4 eats our [], so we need to use [ and ] instead. 39180 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39181 if test "x$has_forbidden_chars" != x; then 39182 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39183 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39184 fi 39185 39186 # Output is in $new_path 39187 39188 windows_path="$new_path" 39189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39190 unix_path=`$CYGPATH -u "$windows_path"` 39191 new_path="$unix_path" 39192 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39193 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39194 new_path="$unix_path" 39195 fi 39196 39197 # remove trailing .exe if any 39198 new_path="${new_path/%.exe/}" 39199 39200 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39201 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39202 fi 39203 39204 else 39205 # We're on a posix platform. Hooray! :) 39206 # First separate the path from the arguments. This will split at the first 39207 # space. 39208 complete="$BUILD_CC" 39209 path="${complete%% *}" 39210 tmp="$complete EOL" 39211 arguments="${tmp#* }" 39212 39213 # Cannot rely on the command "which" here since it doesn't always work. 39214 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39215 if test -z "$is_absolute_path"; then 39216 # Path to executable is not absolute. Find it. 39217 IFS_save="$IFS" 39218 IFS=: 39219 for p in $PATH; do 39220 if test -f "$p/$path" && test -x "$p/$path"; then 39221 new_path="$p/$path" 39222 break 39223 fi 39224 done 39225 IFS="$IFS_save" 39226 else 39227 # This is an absolute path, we can use it without further modifications. 39228 new_path="$path" 39229 fi 39230 39231 if test "x$new_path" = x; then 39232 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 39233 $as_echo "$as_me: The path of BUILD_CC, 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}: This might be caused by spaces in the path, which is not allowed." >&5 39237 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39238 fi 39239 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 39240 fi 39241 fi 39242 39243 # Now join together the path and the arguments once again 39244 if test "x$arguments" != xEOL; then 39245 new_complete="$new_path ${arguments% *}" 39246 else 39247 new_complete="$new_path" 39248 fi 39249 39250 if test "x$complete" != "x$new_complete"; then 39251 BUILD_CC="$new_complete" 39252 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 39253 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 39254 fi 39255 39256 39257 39258 # Publish this variable in the help. 39259 39260 39261 if test "x$BUILD_CXX" = x; then 39262 # The variable is not set by user, try to locate tool using the code snippet 39263 for ac_prog in cl CC g++ 39264 do 39265 # Extract the first word of "$ac_prog", so it can be a program name with args. 39266 set dummy $ac_prog; ac_word=$2 39267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39268 $as_echo_n "checking for $ac_word... " >&6; } 39269 if ${ac_cv_path_BUILD_CXX+:} false; then : 39270 $as_echo_n "(cached) " >&6 39271 else 39272 case $BUILD_CXX in 39273 [\\/]* | ?:[\\/]*) 39274 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39275 ;; 39276 *) 39277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39278 for as_dir in $PATH 39279 do 39280 IFS=$as_save_IFS 39281 test -z "$as_dir" && as_dir=. 39282 for ac_exec_ext in '' $ac_executable_extensions; do 39283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39284 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39286 break 2 39287 fi 39288 done 39289 done 39290 IFS=$as_save_IFS 39291 39292 ;; 39293 esac 39294 fi 39295 BUILD_CXX=$ac_cv_path_BUILD_CXX 39296 if test -n "$BUILD_CXX"; then 39297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39298 $as_echo "$BUILD_CXX" >&6; } 39299 else 39300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39301 $as_echo "no" >&6; } 39302 fi 39303 39304 39305 test -n "$BUILD_CXX" && break 39306 done 39307 39308 else 39309 # The variable is set, but is it from the command line or the environment? 39310 39311 # Try to remove the string !BUILD_CXX! from our list. 39312 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 39313 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39314 # If it failed, the variable was not from the command line. Ignore it, 39315 # but warn the user (except for BASH, which is always set by the calling BASH). 39316 if test "xBUILD_CXX" != xBASH; then 39317 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 39318 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 39319 fi 39320 # Try to locate tool using the code snippet 39321 for ac_prog in cl CC g++ 39322 do 39323 # Extract the first word of "$ac_prog", so it can be a program name with args. 39324 set dummy $ac_prog; ac_word=$2 39325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39326 $as_echo_n "checking for $ac_word... " >&6; } 39327 if ${ac_cv_path_BUILD_CXX+:} false; then : 39328 $as_echo_n "(cached) " >&6 39329 else 39330 case $BUILD_CXX in 39331 [\\/]* | ?:[\\/]*) 39332 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39333 ;; 39334 *) 39335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39336 for as_dir in $PATH 39337 do 39338 IFS=$as_save_IFS 39339 test -z "$as_dir" && as_dir=. 39340 for ac_exec_ext in '' $ac_executable_extensions; do 39341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39342 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39344 break 2 39345 fi 39346 done 39347 done 39348 IFS=$as_save_IFS 39349 39350 ;; 39351 esac 39352 fi 39353 BUILD_CXX=$ac_cv_path_BUILD_CXX 39354 if test -n "$BUILD_CXX"; then 39355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39356 $as_echo "$BUILD_CXX" >&6; } 39357 else 39358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39359 $as_echo "no" >&6; } 39360 fi 39361 39362 39363 test -n "$BUILD_CXX" && break 39364 done 39365 39366 else 39367 # If it succeeded, then it was overridden by the user. We will use it 39368 # for the tool. 39369 39370 # First remove it from the list of overridden variables, so we can test 39371 # for unknown variables in the end. 39372 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39373 39374 # Check if the provided tool contains a complete path. 39375 tool_specified="$BUILD_CXX" 39376 tool_basename="${tool_specified##*/}" 39377 if test "x$tool_basename" = "x$tool_specified"; then 39378 # A command without a complete path is provided, search $PATH. 39379 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 39380 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 39381 # Extract the first word of "$tool_basename", so it can be a program name with args. 39382 set dummy $tool_basename; ac_word=$2 39383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39384 $as_echo_n "checking for $ac_word... " >&6; } 39385 if ${ac_cv_path_BUILD_CXX+:} false; then : 39386 $as_echo_n "(cached) " >&6 39387 else 39388 case $BUILD_CXX in 39389 [\\/]* | ?:[\\/]*) 39390 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 39391 ;; 39392 *) 39393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39394 for as_dir in $PATH 39395 do 39396 IFS=$as_save_IFS 39397 test -z "$as_dir" && as_dir=. 39398 for ac_exec_ext in '' $ac_executable_extensions; do 39399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39400 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 39401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39402 break 2 39403 fi 39404 done 39405 done 39406 IFS=$as_save_IFS 39407 39408 ;; 39409 esac 39410 fi 39411 BUILD_CXX=$ac_cv_path_BUILD_CXX 39412 if test -n "$BUILD_CXX"; then 39413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 39414 $as_echo "$BUILD_CXX" >&6; } 39415 else 39416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39417 $as_echo "no" >&6; } 39418 fi 39419 39420 39421 if test "x$BUILD_CXX" = x; then 39422 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39423 fi 39424 else 39425 # Otherwise we believe it is a complete path. Use it as it is. 39426 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 39427 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 39428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 39429 $as_echo_n "checking for BUILD_CXX... " >&6; } 39430 if test ! -x "$tool_specified"; then 39431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39432 $as_echo "not found" >&6; } 39433 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 39434 fi 39435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39436 $as_echo "$tool_specified" >&6; } 39437 fi 39438 fi 39439 fi 39440 39441 39442 39443 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39444 39445 # First separate the path from the arguments. This will split at the first 39446 # space. 39447 complete="$BUILD_CXX" 39448 path="${complete%% *}" 39449 tmp="$complete EOL" 39450 arguments="${tmp#* }" 39451 39452 # Input might be given as Windows format, start by converting to 39453 # unix format. 39454 new_path=`$CYGPATH -u "$path"` 39455 39456 # Now try to locate executable using which 39457 new_path=`$WHICH "$new_path" 2> /dev/null` 39458 # bat and cmd files are not always considered executable in cygwin causing which 39459 # to not find them 39460 if test "x$new_path" = x \ 39461 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39462 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39463 new_path=`$CYGPATH -u "$path"` 39464 fi 39465 if test "x$new_path" = x; then 39466 # Oops. Which didn't find the executable. 39467 # The splitting of arguments from the executable at a space might have been incorrect, 39468 # since paths with space are more likely in Windows. Give it another try with the whole 39469 # argument. 39470 path="$complete" 39471 arguments="EOL" 39472 new_path=`$CYGPATH -u "$path"` 39473 new_path=`$WHICH "$new_path" 2> /dev/null` 39474 # bat and cmd files are not always considered executable in cygwin causing which 39475 # to not find them 39476 if test "x$new_path" = x \ 39477 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39478 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39479 new_path=`$CYGPATH -u "$path"` 39480 fi 39481 if test "x$new_path" = x; then 39482 # It's still not found. Now this is an unrecoverable error. 39483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39484 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39485 has_space=`$ECHO "$complete" | $GREP " "` 39486 if test "x$has_space" != x; then 39487 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39488 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39489 fi 39490 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39491 fi 39492 fi 39493 39494 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39495 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39496 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39497 # "foo.exe" is OK but "foo" is an error. 39498 # 39499 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39500 # It is also a way to make sure we got the proper file name for the real test later on. 39501 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39502 if test "x$test_shortpath" = x; then 39503 # Short path failed, file does not exist as specified. 39504 # Try adding .exe or .cmd 39505 if test -f "${new_path}.exe"; then 39506 input_to_shortpath="${new_path}.exe" 39507 elif test -f "${new_path}.cmd"; then 39508 input_to_shortpath="${new_path}.cmd" 39509 else 39510 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 39511 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 39512 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39513 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39514 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39515 fi 39516 else 39517 input_to_shortpath="$new_path" 39518 fi 39519 39520 # Call helper function which possibly converts this using DOS-style short mode. 39521 # If so, the updated path is stored in $new_path. 39522 new_path="$input_to_shortpath" 39523 39524 input_path="$input_to_shortpath" 39525 # Check if we need to convert this using DOS-style short mode. If the path 39526 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39527 # take no chances and rewrite it. 39528 # Note: m4 eats our [], so we need to use [ and ] instead. 39529 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39530 if test "x$has_forbidden_chars" != x; then 39531 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39532 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39533 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39534 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39535 # Going to short mode and back again did indeed matter. Since short mode is 39536 # case insensitive, let's make it lowercase to improve readability. 39537 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39538 # Now convert it back to Unix-stile (cygpath) 39539 input_path=`$CYGPATH -u "$shortmode_path"` 39540 new_path="$input_path" 39541 fi 39542 fi 39543 39544 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39545 if test "x$test_cygdrive_prefix" = x; then 39546 # As a simple fix, exclude /usr/bin since it's not a real path. 39547 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39548 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39549 # a path prefixed by /cygdrive for fixpath to work. 39550 new_path="$CYGWIN_ROOT_PATH$input_path" 39551 fi 39552 fi 39553 39554 # remove trailing .exe if any 39555 new_path="${new_path/%.exe/}" 39556 39557 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39558 39559 # First separate the path from the arguments. This will split at the first 39560 # space. 39561 complete="$BUILD_CXX" 39562 path="${complete%% *}" 39563 tmp="$complete EOL" 39564 arguments="${tmp#* }" 39565 39566 # Input might be given as Windows format, start by converting to 39567 # unix format. 39568 new_path="$path" 39569 39570 windows_path="$new_path" 39571 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39572 unix_path=`$CYGPATH -u "$windows_path"` 39573 new_path="$unix_path" 39574 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39575 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39576 new_path="$unix_path" 39577 fi 39578 39579 39580 # Now try to locate executable using which 39581 new_path=`$WHICH "$new_path" 2> /dev/null` 39582 39583 if test "x$new_path" = x; then 39584 # Oops. Which didn't find the executable. 39585 # The splitting of arguments from the executable at a space might have been incorrect, 39586 # since paths with space are more likely in Windows. Give it another try with the whole 39587 # argument. 39588 path="$complete" 39589 arguments="EOL" 39590 new_path="$path" 39591 39592 windows_path="$new_path" 39593 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39594 unix_path=`$CYGPATH -u "$windows_path"` 39595 new_path="$unix_path" 39596 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39597 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39598 new_path="$unix_path" 39599 fi 39600 39601 39602 new_path=`$WHICH "$new_path" 2> /dev/null` 39603 39604 if test "x$new_path" = x; then 39605 # It's still not found. Now this is an unrecoverable error. 39606 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39607 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39608 has_space=`$ECHO "$complete" | $GREP " "` 39609 if test "x$has_space" != x; then 39610 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39611 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39612 fi 39613 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39614 fi 39615 fi 39616 39617 # Now new_path has a complete unix path to the binary 39618 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 39619 # Keep paths in /bin as-is, but remove trailing .exe if any 39620 new_path="${new_path/%.exe/}" 39621 # Do not save /bin paths to all_fixpath_prefixes! 39622 else 39623 # Not in mixed or Windows style, start by that. 39624 new_path=`cmd //c echo $new_path` 39625 39626 input_path="$new_path" 39627 # Check if we need to convert this using DOS-style short mode. If the path 39628 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39629 # take no chances and rewrite it. 39630 # Note: m4 eats our [], so we need to use [ and ] instead. 39631 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39632 if test "x$has_forbidden_chars" != x; then 39633 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39634 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39635 fi 39636 39637 # Output is in $new_path 39638 39639 windows_path="$new_path" 39640 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39641 unix_path=`$CYGPATH -u "$windows_path"` 39642 new_path="$unix_path" 39643 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39644 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39645 new_path="$unix_path" 39646 fi 39647 39648 # remove trailing .exe if any 39649 new_path="${new_path/%.exe/}" 39650 39651 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39652 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39653 fi 39654 39655 else 39656 # We're on a posix platform. Hooray! :) 39657 # First separate the path from the arguments. This will split at the first 39658 # space. 39659 complete="$BUILD_CXX" 39660 path="${complete%% *}" 39661 tmp="$complete EOL" 39662 arguments="${tmp#* }" 39663 39664 # Cannot rely on the command "which" here since it doesn't always work. 39665 is_absolute_path=`$ECHO "$path" | $GREP ^/` 39666 if test -z "$is_absolute_path"; then 39667 # Path to executable is not absolute. Find it. 39668 IFS_save="$IFS" 39669 IFS=: 39670 for p in $PATH; do 39671 if test -f "$p/$path" && test -x "$p/$path"; then 39672 new_path="$p/$path" 39673 break 39674 fi 39675 done 39676 IFS="$IFS_save" 39677 else 39678 # This is an absolute path, we can use it without further modifications. 39679 new_path="$path" 39680 fi 39681 39682 if test "x$new_path" = x; then 39683 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 39684 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 39685 has_space=`$ECHO "$complete" | $GREP " "` 39686 if test "x$has_space" != x; then 39687 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 39688 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 39689 fi 39690 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 39691 fi 39692 fi 39693 39694 # Now join together the path and the arguments once again 39695 if test "x$arguments" != xEOL; then 39696 new_complete="$new_path ${arguments% *}" 39697 else 39698 new_complete="$new_path" 39699 fi 39700 39701 if test "x$complete" != "x$new_complete"; then 39702 BUILD_CXX="$new_complete" 39703 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 39704 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 39705 fi 39706 39707 39708 39709 # Publish this variable in the help. 39710 39711 39712 if test "x$BUILD_LD" = x; then 39713 # The variable is not set by user, try to locate tool using the code snippet 39714 for ac_prog in ld 39715 do 39716 # Extract the first word of "$ac_prog", so it can be a program name with args. 39717 set dummy $ac_prog; ac_word=$2 39718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39719 $as_echo_n "checking for $ac_word... " >&6; } 39720 if ${ac_cv_path_BUILD_LD+:} false; then : 39721 $as_echo_n "(cached) " >&6 39722 else 39723 case $BUILD_LD in 39724 [\\/]* | ?:[\\/]*) 39725 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39726 ;; 39727 *) 39728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39729 for as_dir in $PATH 39730 do 39731 IFS=$as_save_IFS 39732 test -z "$as_dir" && as_dir=. 39733 for ac_exec_ext in '' $ac_executable_extensions; do 39734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39735 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39737 break 2 39738 fi 39739 done 39740 done 39741 IFS=$as_save_IFS 39742 39743 ;; 39744 esac 39745 fi 39746 BUILD_LD=$ac_cv_path_BUILD_LD 39747 if test -n "$BUILD_LD"; then 39748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39749 $as_echo "$BUILD_LD" >&6; } 39750 else 39751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39752 $as_echo "no" >&6; } 39753 fi 39754 39755 39756 test -n "$BUILD_LD" && break 39757 done 39758 39759 else 39760 # The variable is set, but is it from the command line or the environment? 39761 39762 # Try to remove the string !BUILD_LD! from our list. 39763 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 39764 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39765 # If it failed, the variable was not from the command line. Ignore it, 39766 # but warn the user (except for BASH, which is always set by the calling BASH). 39767 if test "xBUILD_LD" != xBASH; then 39768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 39769 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 39770 fi 39771 # Try to locate tool using the code snippet 39772 for ac_prog in ld 39773 do 39774 # Extract the first word of "$ac_prog", so it can be a program name with args. 39775 set dummy $ac_prog; ac_word=$2 39776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39777 $as_echo_n "checking for $ac_word... " >&6; } 39778 if ${ac_cv_path_BUILD_LD+:} false; then : 39779 $as_echo_n "(cached) " >&6 39780 else 39781 case $BUILD_LD in 39782 [\\/]* | ?:[\\/]*) 39783 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39784 ;; 39785 *) 39786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39787 for as_dir in $PATH 39788 do 39789 IFS=$as_save_IFS 39790 test -z "$as_dir" && as_dir=. 39791 for ac_exec_ext in '' $ac_executable_extensions; do 39792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39793 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39795 break 2 39796 fi 39797 done 39798 done 39799 IFS=$as_save_IFS 39800 39801 ;; 39802 esac 39803 fi 39804 BUILD_LD=$ac_cv_path_BUILD_LD 39805 if test -n "$BUILD_LD"; then 39806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39807 $as_echo "$BUILD_LD" >&6; } 39808 else 39809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39810 $as_echo "no" >&6; } 39811 fi 39812 39813 39814 test -n "$BUILD_LD" && break 39815 done 39816 39817 else 39818 # If it succeeded, then it was overridden by the user. We will use it 39819 # for the tool. 39820 39821 # First remove it from the list of overridden variables, so we can test 39822 # for unknown variables in the end. 39823 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39824 39825 # Check if the provided tool contains a complete path. 39826 tool_specified="$BUILD_LD" 39827 tool_basename="${tool_specified##*/}" 39828 if test "x$tool_basename" = "x$tool_specified"; then 39829 # A command without a complete path is provided, search $PATH. 39830 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 39831 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 39832 # Extract the first word of "$tool_basename", so it can be a program name with args. 39833 set dummy $tool_basename; ac_word=$2 39834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39835 $as_echo_n "checking for $ac_word... " >&6; } 39836 if ${ac_cv_path_BUILD_LD+:} false; then : 39837 $as_echo_n "(cached) " >&6 39838 else 39839 case $BUILD_LD in 39840 [\\/]* | ?:[\\/]*) 39841 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 39842 ;; 39843 *) 39844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39845 for as_dir in $PATH 39846 do 39847 IFS=$as_save_IFS 39848 test -z "$as_dir" && as_dir=. 39849 for ac_exec_ext in '' $ac_executable_extensions; do 39850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39851 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 39852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39853 break 2 39854 fi 39855 done 39856 done 39857 IFS=$as_save_IFS 39858 39859 ;; 39860 esac 39861 fi 39862 BUILD_LD=$ac_cv_path_BUILD_LD 39863 if test -n "$BUILD_LD"; then 39864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 39865 $as_echo "$BUILD_LD" >&6; } 39866 else 39867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39868 $as_echo "no" >&6; } 39869 fi 39870 39871 39872 if test "x$BUILD_LD" = x; then 39873 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39874 fi 39875 else 39876 # Otherwise we believe it is a complete path. Use it as it is. 39877 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 39878 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 39879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 39880 $as_echo_n "checking for BUILD_LD... " >&6; } 39881 if test ! -x "$tool_specified"; then 39882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39883 $as_echo "not found" >&6; } 39884 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 39885 fi 39886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39887 $as_echo "$tool_specified" >&6; } 39888 fi 39889 fi 39890 fi 39891 39892 39893 39894 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39895 39896 # First separate the path from the arguments. This will split at the first 39897 # space. 39898 complete="$BUILD_LD" 39899 path="${complete%% *}" 39900 tmp="$complete EOL" 39901 arguments="${tmp#* }" 39902 39903 # Input might be given as Windows format, start by converting to 39904 # unix format. 39905 new_path=`$CYGPATH -u "$path"` 39906 39907 # Now try to locate executable using which 39908 new_path=`$WHICH "$new_path" 2> /dev/null` 39909 # bat and cmd files are not always considered executable in cygwin causing which 39910 # to not find them 39911 if test "x$new_path" = x \ 39912 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39913 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39914 new_path=`$CYGPATH -u "$path"` 39915 fi 39916 if test "x$new_path" = x; then 39917 # Oops. Which didn't find the executable. 39918 # The splitting of arguments from the executable at a space might have been incorrect, 39919 # since paths with space are more likely in Windows. Give it another try with the whole 39920 # argument. 39921 path="$complete" 39922 arguments="EOL" 39923 new_path=`$CYGPATH -u "$path"` 39924 new_path=`$WHICH "$new_path" 2> /dev/null` 39925 # bat and cmd files are not always considered executable in cygwin causing which 39926 # to not find them 39927 if test "x$new_path" = x \ 39928 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 39929 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 39930 new_path=`$CYGPATH -u "$path"` 39931 fi 39932 if test "x$new_path" = x; then 39933 # It's still not found. Now this is an unrecoverable error. 39934 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 39935 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 39936 has_space=`$ECHO "$complete" | $GREP " "` 39937 if test "x$has_space" != x; then 39938 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 39939 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 39940 fi 39941 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39942 fi 39943 fi 39944 39945 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 39946 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 39947 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 39948 # "foo.exe" is OK but "foo" is an error. 39949 # 39950 # This test is therefore slightly more accurate than "test -f" to check for file presence. 39951 # It is also a way to make sure we got the proper file name for the real test later on. 39952 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 39953 if test "x$test_shortpath" = x; then 39954 # Short path failed, file does not exist as specified. 39955 # Try adding .exe or .cmd 39956 if test -f "${new_path}.exe"; then 39957 input_to_shortpath="${new_path}.exe" 39958 elif test -f "${new_path}.cmd"; then 39959 input_to_shortpath="${new_path}.cmd" 39960 else 39961 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 39962 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 39963 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 39964 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 39965 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 39966 fi 39967 else 39968 input_to_shortpath="$new_path" 39969 fi 39970 39971 # Call helper function which possibly converts this using DOS-style short mode. 39972 # If so, the updated path is stored in $new_path. 39973 new_path="$input_to_shortpath" 39974 39975 input_path="$input_to_shortpath" 39976 # Check if we need to convert this using DOS-style short mode. If the path 39977 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39978 # take no chances and rewrite it. 39979 # Note: m4 eats our [], so we need to use [ and ] instead. 39980 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39981 if test "x$has_forbidden_chars" != x; then 39982 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39983 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39984 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39985 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39986 # Going to short mode and back again did indeed matter. Since short mode is 39987 # case insensitive, let's make it lowercase to improve readability. 39988 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39989 # Now convert it back to Unix-stile (cygpath) 39990 input_path=`$CYGPATH -u "$shortmode_path"` 39991 new_path="$input_path" 39992 fi 39993 fi 39994 39995 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39996 if test "x$test_cygdrive_prefix" = x; then 39997 # As a simple fix, exclude /usr/bin since it's not a real path. 39998 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 39999 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40000 # a path prefixed by /cygdrive for fixpath to work. 40001 new_path="$CYGWIN_ROOT_PATH$input_path" 40002 fi 40003 fi 40004 40005 # remove trailing .exe if any 40006 new_path="${new_path/%.exe/}" 40007 40008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40009 40010 # First separate the path from the arguments. This will split at the first 40011 # space. 40012 complete="$BUILD_LD" 40013 path="${complete%% *}" 40014 tmp="$complete EOL" 40015 arguments="${tmp#* }" 40016 40017 # Input might be given as Windows format, start by converting to 40018 # unix format. 40019 new_path="$path" 40020 40021 windows_path="$new_path" 40022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40023 unix_path=`$CYGPATH -u "$windows_path"` 40024 new_path="$unix_path" 40025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40026 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40027 new_path="$unix_path" 40028 fi 40029 40030 40031 # Now try to locate executable using which 40032 new_path=`$WHICH "$new_path" 2> /dev/null` 40033 40034 if test "x$new_path" = x; then 40035 # Oops. Which didn't find the executable. 40036 # The splitting of arguments from the executable at a space might have been incorrect, 40037 # since paths with space are more likely in Windows. Give it another try with the whole 40038 # argument. 40039 path="$complete" 40040 arguments="EOL" 40041 new_path="$path" 40042 40043 windows_path="$new_path" 40044 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40045 unix_path=`$CYGPATH -u "$windows_path"` 40046 new_path="$unix_path" 40047 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40048 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40049 new_path="$unix_path" 40050 fi 40051 40052 40053 new_path=`$WHICH "$new_path" 2> /dev/null` 40054 40055 if test "x$new_path" = x; then 40056 # It's still not found. Now this is an unrecoverable error. 40057 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40058 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40059 has_space=`$ECHO "$complete" | $GREP " "` 40060 if test "x$has_space" != x; then 40061 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 40062 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 40063 fi 40064 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40065 fi 40066 fi 40067 40068 # Now new_path has a complete unix path to the binary 40069 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 40070 # Keep paths in /bin as-is, but remove trailing .exe if any 40071 new_path="${new_path/%.exe/}" 40072 # Do not save /bin paths to all_fixpath_prefixes! 40073 else 40074 # Not in mixed or Windows style, start by that. 40075 new_path=`cmd //c echo $new_path` 40076 40077 input_path="$new_path" 40078 # Check if we need to convert this using DOS-style short mode. If the path 40079 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40080 # take no chances and rewrite it. 40081 # Note: m4 eats our [], so we need to use [ and ] instead. 40082 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40083 if test "x$has_forbidden_chars" != x; then 40084 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40085 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40086 fi 40087 40088 # Output is in $new_path 40089 40090 windows_path="$new_path" 40091 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40092 unix_path=`$CYGPATH -u "$windows_path"` 40093 new_path="$unix_path" 40094 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40095 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40096 new_path="$unix_path" 40097 fi 40098 40099 # remove trailing .exe if any 40100 new_path="${new_path/%.exe/}" 40101 40102 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40103 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40104 fi 40105 40106 else 40107 # We're on a posix platform. Hooray! :) 40108 # First separate the path from the arguments. This will split at the first 40109 # space. 40110 complete="$BUILD_LD" 40111 path="${complete%% *}" 40112 tmp="$complete EOL" 40113 arguments="${tmp#* }" 40114 40115 # Cannot rely on the command "which" here since it doesn't always work. 40116 is_absolute_path=`$ECHO "$path" | $GREP ^/` 40117 if test -z "$is_absolute_path"; then 40118 # Path to executable is not absolute. Find it. 40119 IFS_save="$IFS" 40120 IFS=: 40121 for p in $PATH; do 40122 if test -f "$p/$path" && test -x "$p/$path"; then 40123 new_path="$p/$path" 40124 break 40125 fi 40126 done 40127 IFS="$IFS_save" 40128 else 40129 # This is an absolute path, we can use it without further modifications. 40130 new_path="$path" 40131 fi 40132 40133 if test "x$new_path" = x; then 40134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 40135 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 40136 has_space=`$ECHO "$complete" | $GREP " "` 40137 if test "x$has_space" != x; then 40138 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 40139 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 40140 fi 40141 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 40142 fi 40143 fi 40144 40145 # Now join together the path and the arguments once again 40146 if test "x$arguments" != xEOL; then 40147 new_complete="$new_path ${arguments% *}" 40148 else 40149 new_complete="$new_path" 40150 fi 40151 40152 if test "x$complete" != "x$new_complete"; then 40153 BUILD_LD="$new_complete" 40154 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 40155 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 40156 fi 40157 40158 else 40159 # If we are not cross compiling, use the normal target compilers for 40160 # building the build platform executables. 40161 BUILD_CC="$CC" 40162 BUILD_CXX="$CXX" 40163 BUILD_LD="$LD" 40164 fi 40165 40166 40167 40168 40169 40170 40171 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40172 # For hotspot, we need these in Windows mixed path, 40173 # so rewrite them all. Need added .exe suffix. 40174 HOTSPOT_CXX="$CXX.exe" 40175 HOTSPOT_LD="$LD.exe" 40176 HOTSPOT_MT="$MT.exe" 40177 HOTSPOT_RC="$RC.exe" 40178 40179 unix_path="$HOTSPOT_CXX" 40180 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40181 windows_path=`$CYGPATH -m "$unix_path"` 40182 HOTSPOT_CXX="$windows_path" 40183 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40184 windows_path=`cmd //c echo $unix_path` 40185 HOTSPOT_CXX="$windows_path" 40186 fi 40187 40188 40189 unix_path="$HOTSPOT_LD" 40190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40191 windows_path=`$CYGPATH -m "$unix_path"` 40192 HOTSPOT_LD="$windows_path" 40193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40194 windows_path=`cmd //c echo $unix_path` 40195 HOTSPOT_LD="$windows_path" 40196 fi 40197 40198 40199 unix_path="$HOTSPOT_MT" 40200 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40201 windows_path=`$CYGPATH -m "$unix_path"` 40202 HOTSPOT_MT="$windows_path" 40203 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40204 windows_path=`cmd //c echo $unix_path` 40205 HOTSPOT_MT="$windows_path" 40206 fi 40207 40208 40209 unix_path="$HOTSPOT_RC" 40210 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40211 windows_path=`$CYGPATH -m "$unix_path"` 40212 HOTSPOT_RC="$windows_path" 40213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40214 windows_path=`cmd //c echo $unix_path` 40215 HOTSPOT_RC="$windows_path" 40216 fi 40217 40218 40219 40220 else 40221 HOTSPOT_CXX="$CXX" 40222 HOTSPOT_LD="$LD" 40223 fi 40224 40225 40226 40227 if test "x$TOOLCHAIN_TYPE" = xclang; then 40228 USE_CLANG=true 40229 fi 40230 40231 40232 # LDEXE is the linker to use, when creating executables. Not really used. 40233 # FIXME: These should just be removed! 40234 LDEXE="$LD" 40235 LDEXECXX="$LDCXX" 40236 40237 40238 40239 40240 # The package path is used only on macosx? 40241 # FIXME: clean this up, and/or move it elsewhere. 40242 PACKAGE_PATH=/opt/local 40243 40244 40245 # Check for extra potential brokenness. 40246 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40247 # On Windows, double-check that we got the right compiler. 40248 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 40249 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 40250 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 40251 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 40252 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 40253 fi 40254 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 40255 if test "x$COMPILER_CPU_TEST" != "xx64"; then 40256 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 40257 fi 40258 fi 40259 fi 40260 40261 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40262 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40263 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 40264 # This is later checked when setting flags. 40265 fi 40266 40267 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 40268 # in executable.' 40269 USING_BROKEN_SUSE_LD=no 40270 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 40271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 40272 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 40273 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 40274 echo "int main() { }" > main.c 40275 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 40276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40277 $as_echo "no" >&6; } 40278 USING_BROKEN_SUSE_LD=no 40279 else 40280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 40281 $as_echo "yes" >&6; } 40282 USING_BROKEN_SUSE_LD=yes 40283 fi 40284 rm -rf version-script.map main.c a.out 40285 fi 40286 40287 40288 40289 # Setup the JTReg Regression Test Harness. 40290 40291 40292 # Check whether --with-jtreg was given. 40293 if test "${with_jtreg+set}" = set; then : 40294 withval=$with_jtreg; 40295 else 40296 with_jtreg=no 40297 fi 40298 40299 40300 if test "x$with_jtreg" = xno; then 40301 # jtreg disabled 40302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40303 $as_echo_n "checking for jtreg... " >&6; } 40304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40305 $as_echo "no" >&6; } 40306 else 40307 if test "x$with_jtreg" != xyes; then 40308 # with path specified. 40309 JT_HOME="$with_jtreg" 40310 fi 40311 40312 if test "x$JT_HOME" != x; then 40313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 40314 $as_echo_n "checking for jtreg... " >&6; } 40315 40316 # use JT_HOME enviroment var. 40317 40318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40319 40320 # Input might be given as Windows format, start by converting to 40321 # unix format. 40322 path="$JT_HOME" 40323 new_path=`$CYGPATH -u "$path"` 40324 40325 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 40326 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 40327 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 40328 # "foo.exe" is OK but "foo" is an error. 40329 # 40330 # This test is therefore slightly more accurate than "test -f" to check for file precense. 40331 # It is also a way to make sure we got the proper file name for the real test later on. 40332 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 40333 if test "x$test_shortpath" = x; then 40334 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40335 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40336 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 40337 fi 40338 40339 # Call helper function which possibly converts this using DOS-style short mode. 40340 # If so, the updated path is stored in $new_path. 40341 40342 input_path="$new_path" 40343 # Check if we need to convert this using DOS-style short mode. If the path 40344 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40345 # take no chances and rewrite it. 40346 # Note: m4 eats our [], so we need to use [ and ] instead. 40347 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 40348 if test "x$has_forbidden_chars" != x; then 40349 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40350 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 40351 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 40352 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 40353 # Going to short mode and back again did indeed matter. Since short mode is 40354 # case insensitive, let's make it lowercase to improve readability. 40355 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40356 # Now convert it back to Unix-stile (cygpath) 40357 input_path=`$CYGPATH -u "$shortmode_path"` 40358 new_path="$input_path" 40359 fi 40360 fi 40361 40362 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 40363 if test "x$test_cygdrive_prefix" = x; then 40364 # As a simple fix, exclude /usr/bin since it's not a real path. 40365 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 40366 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 40367 # a path prefixed by /cygdrive for fixpath to work. 40368 new_path="$CYGWIN_ROOT_PATH$input_path" 40369 fi 40370 fi 40371 40372 40373 if test "x$path" != "x$new_path"; then 40374 JT_HOME="$new_path" 40375 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40376 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40377 fi 40378 40379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40380 40381 path="$JT_HOME" 40382 has_colon=`$ECHO $path | $GREP ^.:` 40383 new_path="$path" 40384 if test "x$has_colon" = x; then 40385 # Not in mixed or Windows style, start by that. 40386 new_path=`cmd //c echo $path` 40387 fi 40388 40389 40390 input_path="$new_path" 40391 # Check if we need to convert this using DOS-style short mode. If the path 40392 # contains just simple characters, use it. Otherwise (spaces, weird characters), 40393 # take no chances and rewrite it. 40394 # Note: m4 eats our [], so we need to use [ and ] instead. 40395 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 40396 if test "x$has_forbidden_chars" != x; then 40397 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 40398 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 40399 fi 40400 40401 40402 windows_path="$new_path" 40403 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 40404 unix_path=`$CYGPATH -u "$windows_path"` 40405 new_path="$unix_path" 40406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 40407 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 40408 new_path="$unix_path" 40409 fi 40410 40411 if test "x$path" != "x$new_path"; then 40412 JT_HOME="$new_path" 40413 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 40414 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 40415 fi 40416 40417 # Save the first 10 bytes of this path to the storage, so fixpath can work. 40418 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 40419 40420 else 40421 # We're on a posix platform. Hooray! :) 40422 path="$JT_HOME" 40423 has_space=`$ECHO "$path" | $GREP " "` 40424 if test "x$has_space" != x; then 40425 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 40426 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 40427 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 40428 fi 40429 40430 # Use eval to expand a potential ~ 40431 eval path="$path" 40432 if test ! -f "$path" && test ! -d "$path"; then 40433 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 40434 fi 40435 40436 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 40437 fi 40438 40439 40440 # jtreg win32 script works for everybody 40441 JTREGEXE="$JT_HOME/win32/bin/jtreg" 40442 40443 if test ! -f "$JTREGEXE"; then 40444 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 40445 fi 40446 40447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40448 $as_echo "$JTREGEXE" >&6; } 40449 else 40450 # try to find jtreg on path 40451 40452 40453 40454 # Publish this variable in the help. 40455 40456 40457 if test "x$JTREGEXE" = x; then 40458 # The variable is not set by user, try to locate tool using the code snippet 40459 for ac_prog in jtreg 40460 do 40461 # Extract the first word of "$ac_prog", so it can be a program name with args. 40462 set dummy $ac_prog; ac_word=$2 40463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40464 $as_echo_n "checking for $ac_word... " >&6; } 40465 if ${ac_cv_path_JTREGEXE+:} false; then : 40466 $as_echo_n "(cached) " >&6 40467 else 40468 case $JTREGEXE in 40469 [\\/]* | ?:[\\/]*) 40470 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40471 ;; 40472 *) 40473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40474 for as_dir in $PATH 40475 do 40476 IFS=$as_save_IFS 40477 test -z "$as_dir" && as_dir=. 40478 for ac_exec_ext in '' $ac_executable_extensions; do 40479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40480 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40482 break 2 40483 fi 40484 done 40485 done 40486 IFS=$as_save_IFS 40487 40488 ;; 40489 esac 40490 fi 40491 JTREGEXE=$ac_cv_path_JTREGEXE 40492 if test -n "$JTREGEXE"; then 40493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40494 $as_echo "$JTREGEXE" >&6; } 40495 else 40496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40497 $as_echo "no" >&6; } 40498 fi 40499 40500 40501 test -n "$JTREGEXE" && break 40502 done 40503 40504 else 40505 # The variable is set, but is it from the command line or the environment? 40506 40507 # Try to remove the string !JTREGEXE! from our list. 40508 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 40509 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 40510 # If it failed, the variable was not from the command line. Ignore it, 40511 # but warn the user (except for BASH, which is always set by the calling BASH). 40512 if test "xJTREGEXE" != xBASH; then 40513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 40514 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 40515 fi 40516 # Try to locate tool using the code snippet 40517 for ac_prog in jtreg 40518 do 40519 # Extract the first word of "$ac_prog", so it can be a program name with args. 40520 set dummy $ac_prog; ac_word=$2 40521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40522 $as_echo_n "checking for $ac_word... " >&6; } 40523 if ${ac_cv_path_JTREGEXE+:} false; then : 40524 $as_echo_n "(cached) " >&6 40525 else 40526 case $JTREGEXE in 40527 [\\/]* | ?:[\\/]*) 40528 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40529 ;; 40530 *) 40531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40532 for as_dir in $PATH 40533 do 40534 IFS=$as_save_IFS 40535 test -z "$as_dir" && as_dir=. 40536 for ac_exec_ext in '' $ac_executable_extensions; do 40537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40538 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40540 break 2 40541 fi 40542 done 40543 done 40544 IFS=$as_save_IFS 40545 40546 ;; 40547 esac 40548 fi 40549 JTREGEXE=$ac_cv_path_JTREGEXE 40550 if test -n "$JTREGEXE"; then 40551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40552 $as_echo "$JTREGEXE" >&6; } 40553 else 40554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40555 $as_echo "no" >&6; } 40556 fi 40557 40558 40559 test -n "$JTREGEXE" && break 40560 done 40561 40562 else 40563 # If it succeeded, then it was overridden by the user. We will use it 40564 # for the tool. 40565 40566 # First remove it from the list of overridden variables, so we can test 40567 # for unknown variables in the end. 40568 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 40569 40570 # Check if the provided tool contains a complete path. 40571 tool_specified="$JTREGEXE" 40572 tool_basename="${tool_specified##*/}" 40573 if test "x$tool_basename" = "x$tool_specified"; then 40574 # A command without a complete path is provided, search $PATH. 40575 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 40576 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 40577 # Extract the first word of "$tool_basename", so it can be a program name with args. 40578 set dummy $tool_basename; ac_word=$2 40579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 40580 $as_echo_n "checking for $ac_word... " >&6; } 40581 if ${ac_cv_path_JTREGEXE+:} false; then : 40582 $as_echo_n "(cached) " >&6 40583 else 40584 case $JTREGEXE in 40585 [\\/]* | ?:[\\/]*) 40586 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 40587 ;; 40588 *) 40589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 40590 for as_dir in $PATH 40591 do 40592 IFS=$as_save_IFS 40593 test -z "$as_dir" && as_dir=. 40594 for ac_exec_ext in '' $ac_executable_extensions; do 40595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 40596 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 40597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 40598 break 2 40599 fi 40600 done 40601 done 40602 IFS=$as_save_IFS 40603 40604 ;; 40605 esac 40606 fi 40607 JTREGEXE=$ac_cv_path_JTREGEXE 40608 if test -n "$JTREGEXE"; then 40609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 40610 $as_echo "$JTREGEXE" >&6; } 40611 else 40612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 40613 $as_echo "no" >&6; } 40614 fi 40615 40616 40617 if test "x$JTREGEXE" = x; then 40618 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 40619 fi 40620 else 40621 # Otherwise we believe it is a complete path. Use it as it is. 40622 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 40623 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 40624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 40625 $as_echo_n "checking for JTREGEXE... " >&6; } 40626 if test ! -x "$tool_specified"; then 40627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 40628 $as_echo "not found" >&6; } 40629 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 40630 fi 40631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 40632 $as_echo "$tool_specified" >&6; } 40633 fi 40634 fi 40635 fi 40636 40637 40638 40639 if test "x$JTREGEXE" = x; then 40640 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 40641 fi 40642 40643 40644 JT_HOME="`$DIRNAME $JTREGEXE`" 40645 fi 40646 fi 40647 40648 40649 40650 40651 40652 40653 # Option used to tell the compiler whether to create 32- or 64-bit executables 40654 if test "x$TOOLCHAIN_TYPE" = xxlc; then 40655 COMPILER_TARGET_BITS_FLAG="-q" 40656 else 40657 COMPILER_TARGET_BITS_FLAG="-m" 40658 fi 40659 40660 40661 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 40662 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40663 ARFLAGS="-r" 40664 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40665 ARFLAGS="-X64" 40666 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 40667 # lib.exe is used as AR to create static libraries. 40668 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 40669 else 40670 ARFLAGS="" 40671 fi 40672 40673 40674 ## Setup strip. 40675 # FIXME: should this really be per platform, or should it be per toolchain type? 40676 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 40677 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 40678 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40679 STRIPFLAGS="-g" 40680 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 40681 STRIPFLAGS="-x" 40682 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 40683 STRIPFLAGS="-S" 40684 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40685 STRIPFLAGS="-X32_64" 40686 fi 40687 40688 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40689 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 40690 fi 40691 40692 40693 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40694 # FIXME: break out into MCSFLAGS 40695 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 40696 fi 40697 40698 40699 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40700 CC_OUT_OPTION=-Fo 40701 EXE_OUT_OPTION=-out: 40702 LD_OUT_OPTION=-out: 40703 AR_OUT_OPTION=-out: 40704 else 40705 # The option used to specify the target .o,.a or .so file. 40706 # When compiling, how to specify the to be created object file. 40707 CC_OUT_OPTION='-o$(SPACE)' 40708 # When linking, how to specify the to be created executable. 40709 EXE_OUT_OPTION='-o$(SPACE)' 40710 # When linking, how to specify the to be created dynamically linkable library. 40711 LD_OUT_OPTION='-o$(SPACE)' 40712 # When archiving, how to specify the to be create static archive for object files. 40713 AR_OUT_OPTION='rcs$(SPACE)' 40714 fi 40715 40716 40717 40718 40719 40720 # On Windows, we need to set RC flags. 40721 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40722 RC_FLAGS="-nologo -l 0x409 -r" 40723 if test "x$VARIANT" = xOPT; then 40724 RC_FLAGS="$RC_FLAGS -d NDEBUG" 40725 fi 40726 40727 # The version variables used to create RC_FLAGS may be overridden 40728 # in a custom configure script, or possibly the command line. 40729 # Let those variables be expanded at make time in spec.gmk. 40730 # The \$ are escaped to the shell, and the $(...) variables 40731 # are evaluated by make. 40732 RC_FLAGS="$RC_FLAGS \ 40733 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 40734 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 40735 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 40736 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 40737 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 40738 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 40739 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 40740 fi 40741 40742 40743 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40744 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 40745 CCXXFLAGS="$CCXXFLAGS -nologo" 40746 fi 40747 40748 40749 # FIXME: Currently we must test this after toolchain but before flags. Fix! 40750 40751 # Now we can test some aspects on the target using configure macros. 40752 40753 40754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 40755 $as_echo_n "checking for ANSI C header files... " >&6; } 40756 if ${ac_cv_header_stdc+:} false; then : 40757 $as_echo_n "(cached) " >&6 40758 else 40759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40760 /* end confdefs.h. */ 40761 #include <stdlib.h> 40762 #include <stdarg.h> 40763 #include <string.h> 40764 #include <float.h> 40765 40766 int 40767 main () 40768 { 40769 40770 ; 40771 return 0; 40772 } 40773 _ACEOF 40774 if ac_fn_cxx_try_compile "$LINENO"; then : 40775 ac_cv_header_stdc=yes 40776 else 40777 ac_cv_header_stdc=no 40778 fi 40779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40780 40781 if test $ac_cv_header_stdc = yes; then 40782 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 40783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40784 /* end confdefs.h. */ 40785 #include <string.h> 40786 40787 _ACEOF 40788 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40789 $EGREP "memchr" >/dev/null 2>&1; then : 40790 40791 else 40792 ac_cv_header_stdc=no 40793 fi 40794 rm -f conftest* 40795 40796 fi 40797 40798 if test $ac_cv_header_stdc = yes; then 40799 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 40800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40801 /* end confdefs.h. */ 40802 #include <stdlib.h> 40803 40804 _ACEOF 40805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 40806 $EGREP "free" >/dev/null 2>&1; then : 40807 40808 else 40809 ac_cv_header_stdc=no 40810 fi 40811 rm -f conftest* 40812 40813 fi 40814 40815 if test $ac_cv_header_stdc = yes; then 40816 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 40817 if test "$cross_compiling" = yes; then : 40818 : 40819 else 40820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40821 /* end confdefs.h. */ 40822 #include <ctype.h> 40823 #include <stdlib.h> 40824 #if ((' ' & 0x0FF) == 0x020) 40825 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 40826 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 40827 #else 40828 # define ISLOWER(c) \ 40829 (('a' <= (c) && (c) <= 'i') \ 40830 || ('j' <= (c) && (c) <= 'r') \ 40831 || ('s' <= (c) && (c) <= 'z')) 40832 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 40833 #endif 40834 40835 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 40836 int 40837 main () 40838 { 40839 int i; 40840 for (i = 0; i < 256; i++) 40841 if (XOR (islower (i), ISLOWER (i)) 40842 || toupper (i) != TOUPPER (i)) 40843 return 2; 40844 return 0; 40845 } 40846 _ACEOF 40847 if ac_fn_cxx_try_run "$LINENO"; then : 40848 40849 else 40850 ac_cv_header_stdc=no 40851 fi 40852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 40853 conftest.$ac_objext conftest.beam conftest.$ac_ext 40854 fi 40855 40856 fi 40857 fi 40858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 40859 $as_echo "$ac_cv_header_stdc" >&6; } 40860 if test $ac_cv_header_stdc = yes; then 40861 40862 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 40863 40864 fi 40865 40866 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 40867 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 40868 inttypes.h stdint.h unistd.h 40869 do : 40870 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 40871 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 40872 " 40873 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 40874 cat >>confdefs.h <<_ACEOF 40875 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 40876 _ACEOF 40877 40878 fi 40879 40880 done 40881 40882 40883 40884 ############################################################################### 40885 # 40886 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 40887 # (The JVM can use 32 or 64 bit Java pointers but that decision 40888 # is made at runtime.) 40889 # 40890 40891 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 40892 # Always specify -m flag on Solaris 40893 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 40894 40895 # When we add flags to the "official" CFLAGS etc, we need to 40896 # keep track of these additions in ADDED_CFLAGS etc. These 40897 # will later be checked to make sure only controlled additions 40898 # have been made to CFLAGS etc. 40899 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40900 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40901 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40902 40903 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40904 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40905 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40906 40907 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40908 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40909 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40910 40911 elif test "x$COMPILE_TYPE" = xreduced; then 40912 if test "x$OPENJDK_TARGET_OS" != xwindows; then 40913 # Specify -m if running reduced on other Posix platforms 40914 40915 # When we add flags to the "official" CFLAGS etc, we need to 40916 # keep track of these additions in ADDED_CFLAGS etc. These 40917 # will later be checked to make sure only controlled additions 40918 # have been made to CFLAGS etc. 40919 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40920 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40921 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40922 40923 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 40924 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 40925 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 40926 40927 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 40928 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 40929 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 40930 40931 fi 40932 fi 40933 40934 # Make compilation sanity check 40935 for ac_header in stdio.h 40936 do : 40937 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 40938 if test "x$ac_cv_header_stdio_h" = xyes; then : 40939 cat >>confdefs.h <<_ACEOF 40940 #define HAVE_STDIO_H 1 40941 _ACEOF 40942 40943 else 40944 40945 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 40946 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 40947 if test "x$COMPILE_TYPE" = xreduced; then 40948 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 40949 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 40950 elif test "x$COMPILE_TYPE" = xcross; then 40951 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 40952 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 40953 fi 40954 as_fn_error $? "Cannot continue." "$LINENO" 5 40955 40956 fi 40957 40958 done 40959 40960 40961 # The cast to long int works around a bug in the HP C Compiler 40962 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 40963 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 40964 # This bug is HP SR number 8606223364. 40965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 40966 $as_echo_n "checking size of int *... " >&6; } 40967 if ${ac_cv_sizeof_int_p+:} false; then : 40968 $as_echo_n "(cached) " >&6 40969 else 40970 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 40971 40972 else 40973 if test "$ac_cv_type_int_p" = yes; then 40974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 40975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 40976 as_fn_error 77 "cannot compute sizeof (int *) 40977 See \`config.log' for more details" "$LINENO" 5; } 40978 else 40979 ac_cv_sizeof_int_p=0 40980 fi 40981 fi 40982 40983 fi 40984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 40985 $as_echo "$ac_cv_sizeof_int_p" >&6; } 40986 40987 40988 40989 cat >>confdefs.h <<_ACEOF 40990 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 40991 _ACEOF 40992 40993 40994 40995 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 40996 if test "x$ac_cv_sizeof_int_p" = x; then 40997 # The test failed, lets stick to the assumed value. 40998 { $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 40999 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 41000 else 41001 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41002 41003 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41004 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 41005 # Let's try to implicitely set the compilers target architecture and retry the test 41006 { $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 41007 $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;} 41008 { $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 41009 $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;} 41010 41011 # When we add flags to the "official" CFLAGS etc, we need to 41012 # keep track of these additions in ADDED_CFLAGS etc. These 41013 # will later be checked to make sure only controlled additions 41014 # have been made to CFLAGS etc. 41015 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41016 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41017 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41018 41019 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 41020 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 41021 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 41022 41023 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 41024 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 41025 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 41026 41027 41028 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 41029 unset ac_cv_sizeof_int_p 41030 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 41031 cat >>confdefs.h <<_ACEOF 41032 #undef SIZEOF_INT_P 41033 _ACEOF 41034 41035 # The cast to long int works around a bug in the HP C Compiler 41036 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 41037 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 41038 # This bug is HP SR number 8606223364. 41039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 41040 $as_echo_n "checking size of int *... " >&6; } 41041 if ${ac_cv_sizeof_int_p+:} false; then : 41042 $as_echo_n "(cached) " >&6 41043 else 41044 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 41045 41046 else 41047 if test "$ac_cv_type_int_p" = yes; then 41048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 41049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 41050 as_fn_error 77 "cannot compute sizeof (int *) 41051 See \`config.log' for more details" "$LINENO" 5; } 41052 else 41053 ac_cv_sizeof_int_p=0 41054 fi 41055 fi 41056 41057 fi 41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 41059 $as_echo "$ac_cv_sizeof_int_p" >&6; } 41060 41061 41062 41063 cat >>confdefs.h <<_ACEOF 41064 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 41065 _ACEOF 41066 41067 41068 41069 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 41070 41071 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 41072 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 41073 fi 41074 fi 41075 fi 41076 41077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 41078 $as_echo_n "checking for target address size... " >&6; } 41079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 41080 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 41081 41082 41083 ############################################################################### 41084 # 41085 # Is the target little of big endian? 41086 # 41087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 41088 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 41089 if ${ac_cv_c_bigendian+:} false; then : 41090 $as_echo_n "(cached) " >&6 41091 else 41092 ac_cv_c_bigendian=unknown 41093 # See if we're dealing with a universal compiler. 41094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41095 /* end confdefs.h. */ 41096 #ifndef __APPLE_CC__ 41097 not a universal capable compiler 41098 #endif 41099 typedef int dummy; 41100 41101 _ACEOF 41102 if ac_fn_cxx_try_compile "$LINENO"; then : 41103 41104 # Check for potential -arch flags. It is not universal unless 41105 # there are at least two -arch flags with different values. 41106 ac_arch= 41107 ac_prev= 41108 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 41109 if test -n "$ac_prev"; then 41110 case $ac_word in 41111 i?86 | x86_64 | ppc | ppc64) 41112 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 41113 ac_arch=$ac_word 41114 else 41115 ac_cv_c_bigendian=universal 41116 break 41117 fi 41118 ;; 41119 esac 41120 ac_prev= 41121 elif test "x$ac_word" = "x-arch"; then 41122 ac_prev=arch 41123 fi 41124 done 41125 fi 41126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41127 if test $ac_cv_c_bigendian = unknown; then 41128 # See if sys/param.h defines the BYTE_ORDER macro. 41129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41130 /* end confdefs.h. */ 41131 #include <sys/types.h> 41132 #include <sys/param.h> 41133 41134 int 41135 main () 41136 { 41137 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 41138 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 41139 && LITTLE_ENDIAN) 41140 bogus endian macros 41141 #endif 41142 41143 ; 41144 return 0; 41145 } 41146 _ACEOF 41147 if ac_fn_cxx_try_compile "$LINENO"; then : 41148 # It does; now see whether it defined to BIG_ENDIAN or not. 41149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41150 /* end confdefs.h. */ 41151 #include <sys/types.h> 41152 #include <sys/param.h> 41153 41154 int 41155 main () 41156 { 41157 #if BYTE_ORDER != BIG_ENDIAN 41158 not big endian 41159 #endif 41160 41161 ; 41162 return 0; 41163 } 41164 _ACEOF 41165 if ac_fn_cxx_try_compile "$LINENO"; then : 41166 ac_cv_c_bigendian=yes 41167 else 41168 ac_cv_c_bigendian=no 41169 fi 41170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41171 fi 41172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41173 fi 41174 if test $ac_cv_c_bigendian = unknown; then 41175 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 41176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41177 /* end confdefs.h. */ 41178 #include <limits.h> 41179 41180 int 41181 main () 41182 { 41183 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 41184 bogus endian macros 41185 #endif 41186 41187 ; 41188 return 0; 41189 } 41190 _ACEOF 41191 if ac_fn_cxx_try_compile "$LINENO"; then : 41192 # It does; now see whether it defined to _BIG_ENDIAN or not. 41193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41194 /* end confdefs.h. */ 41195 #include <limits.h> 41196 41197 int 41198 main () 41199 { 41200 #ifndef _BIG_ENDIAN 41201 not big endian 41202 #endif 41203 41204 ; 41205 return 0; 41206 } 41207 _ACEOF 41208 if ac_fn_cxx_try_compile "$LINENO"; then : 41209 ac_cv_c_bigendian=yes 41210 else 41211 ac_cv_c_bigendian=no 41212 fi 41213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41214 fi 41215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41216 fi 41217 if test $ac_cv_c_bigendian = unknown; then 41218 # Compile a test program. 41219 if test "$cross_compiling" = yes; then : 41220 # Try to guess by grepping values from an object file. 41221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41222 /* end confdefs.h. */ 41223 short int ascii_mm[] = 41224 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 41225 short int ascii_ii[] = 41226 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 41227 int use_ascii (int i) { 41228 return ascii_mm[i] + ascii_ii[i]; 41229 } 41230 short int ebcdic_ii[] = 41231 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 41232 short int ebcdic_mm[] = 41233 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 41234 int use_ebcdic (int i) { 41235 return ebcdic_mm[i] + ebcdic_ii[i]; 41236 } 41237 extern int foo; 41238 41239 int 41240 main () 41241 { 41242 return use_ascii (foo) == use_ebcdic (foo); 41243 ; 41244 return 0; 41245 } 41246 _ACEOF 41247 if ac_fn_cxx_try_compile "$LINENO"; then : 41248 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 41249 ac_cv_c_bigendian=yes 41250 fi 41251 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 41252 if test "$ac_cv_c_bigendian" = unknown; then 41253 ac_cv_c_bigendian=no 41254 else 41255 # finding both strings is unlikely to happen, but who knows? 41256 ac_cv_c_bigendian=unknown 41257 fi 41258 fi 41259 fi 41260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41261 else 41262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41263 /* end confdefs.h. */ 41264 $ac_includes_default 41265 int 41266 main () 41267 { 41268 41269 /* Are we little or big endian? From Harbison&Steele. */ 41270 union 41271 { 41272 long int l; 41273 char c[sizeof (long int)]; 41274 } u; 41275 u.l = 1; 41276 return u.c[sizeof (long int) - 1] == 1; 41277 41278 ; 41279 return 0; 41280 } 41281 _ACEOF 41282 if ac_fn_cxx_try_run "$LINENO"; then : 41283 ac_cv_c_bigendian=no 41284 else 41285 ac_cv_c_bigendian=yes 41286 fi 41287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 41288 conftest.$ac_objext conftest.beam conftest.$ac_ext 41289 fi 41290 41291 fi 41292 fi 41293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 41294 $as_echo "$ac_cv_c_bigendian" >&6; } 41295 case $ac_cv_c_bigendian in #( 41296 yes) 41297 ENDIAN="big";; #( 41298 no) 41299 ENDIAN="little" ;; #( 41300 universal) 41301 ENDIAN="universal_endianness" 41302 ;; #( 41303 *) 41304 ENDIAN="unknown" ;; 41305 esac 41306 41307 41308 if test "x$ENDIAN" = xuniversal_endianness; then 41309 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 41310 fi 41311 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 41312 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 41313 fi 41314 41315 41316 # Configure flags for the tools 41317 41318 ############################################################################### 41319 # 41320 # How to compile shared libraries. 41321 # 41322 41323 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41324 PICFLAG="-fPIC" 41325 C_FLAG_REORDER='' 41326 CXX_FLAG_REORDER='' 41327 41328 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41329 # Linking is different on MacOSX 41330 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41331 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41332 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41333 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41334 SET_SHARED_LIBRARY_MAPFILE='' 41335 else 41336 # Default works for linux, might work on other platforms as well. 41337 SHARED_LIBRARY_FLAGS='-shared' 41338 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41339 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41340 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41341 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41342 fi 41343 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41344 PICFLAG='' 41345 C_FLAG_REORDER='' 41346 CXX_FLAG_REORDER='' 41347 41348 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41349 # Linking is different on MacOSX 41350 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 41351 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 41352 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41353 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 41354 SET_SHARED_LIBRARY_MAPFILE='' 41355 else 41356 # Default works for linux, might work on other platforms as well. 41357 SHARED_LIBRARY_FLAGS='-shared' 41358 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 41359 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 41360 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 41361 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 41362 fi 41363 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41364 PICFLAG="-KPIC" 41365 C_FLAG_REORDER='-xF' 41366 CXX_FLAG_REORDER='-xF' 41367 SHARED_LIBRARY_FLAGS="-G" 41368 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 41369 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 41370 SET_SHARED_LIBRARY_NAME='' 41371 SET_SHARED_LIBRARY_MAPFILE='-M$1' 41372 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41373 PICFLAG="-qpic=large" 41374 C_FLAG_REORDER='' 41375 CXX_FLAG_REORDER='' 41376 SHARED_LIBRARY_FLAGS="-qmkshrobj" 41377 SET_EXECUTABLE_ORIGIN="" 41378 SET_SHARED_LIBRARY_ORIGIN='' 41379 SET_SHARED_LIBRARY_NAME='' 41380 SET_SHARED_LIBRARY_MAPFILE='' 41381 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41382 PICFLAG="" 41383 C_FLAG_REORDER='' 41384 CXX_FLAG_REORDER='' 41385 SHARED_LIBRARY_FLAGS="-LD" 41386 SET_EXECUTABLE_ORIGIN='' 41387 SET_SHARED_LIBRARY_ORIGIN='' 41388 SET_SHARED_LIBRARY_NAME='' 41389 SET_SHARED_LIBRARY_MAPFILE='' 41390 fi 41391 41392 41393 41394 41395 41396 41397 41398 41399 41400 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41401 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 41402 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 41403 CFLAGS_JDKLIB_EXTRA='-xstrconst' 41404 fi 41405 # The (cross) compiler is now configured, we can now test capabilities 41406 # of the target platform. 41407 41408 41409 41410 ############################################################################### 41411 # 41412 # Setup the opt flags for different compilers 41413 # and different operating systems. 41414 # 41415 41416 # FIXME: this was indirectly the old default, but just inherited. 41417 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41418 # C_FLAG_DEPS="-MMD -MF" 41419 # fi 41420 41421 # Generate make dependency files 41422 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41423 C_FLAG_DEPS="-MMD -MF" 41424 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41425 C_FLAG_DEPS="-MMD -MF" 41426 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41427 C_FLAG_DEPS="-xMMD -xMF" 41428 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41429 C_FLAG_DEPS="-qmakedep=gcc -MF" 41430 fi 41431 CXX_FLAG_DEPS="$C_FLAG_DEPS" 41432 41433 41434 41435 # Debug symbols 41436 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41437 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 41438 CFLAGS_DEBUG_SYMBOLS="-g1" 41439 CXXFLAGS_DEBUG_SYMBOLS="-g1" 41440 else 41441 CFLAGS_DEBUG_SYMBOLS="-g" 41442 CXXFLAGS_DEBUG_SYMBOLS="-g" 41443 fi 41444 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41445 CFLAGS_DEBUG_SYMBOLS="-g" 41446 CXXFLAGS_DEBUG_SYMBOLS="-g" 41447 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41448 CFLAGS_DEBUG_SYMBOLS="-g -xs" 41449 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 41450 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41451 CFLAGS_DEBUG_SYMBOLS="-g" 41452 CXXFLAGS_DEBUG_SYMBOLS="-g" 41453 fi 41454 41455 41456 41457 # Optimization levels 41458 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41459 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xbuiltin=%all -xdepend -xrestrict -xlibmil" 41460 41461 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 41462 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 41463 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xalias_level=basic -xregs=no%frameptr" 41464 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 41465 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 41466 C_O_FLAG_NONE="-xregs=no%frameptr" 41467 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 41468 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 41469 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 41470 CXX_O_FLAG_NONE="-xregs=no%frameptr" 41471 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41472 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 41473 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 41474 fi 41475 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41476 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xalias_level=basic -xprefetch=auto,explicit -xchip=ultra" 41477 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41478 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 41479 C_O_FLAG_NONE="" 41480 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 41481 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41482 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 41483 CXX_O_FLAG_NONE="" 41484 fi 41485 else 41486 # The remaining toolchains share opt flags between CC and CXX; 41487 # setup for C and duplicate afterwards. 41488 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41489 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41490 # On MacOSX we optimize for size, something 41491 # we should do for all platforms? 41492 C_O_FLAG_HIGHEST="-Os" 41493 C_O_FLAG_HI="-Os" 41494 C_O_FLAG_NORM="-Os" 41495 C_O_FLAG_NONE="" 41496 else 41497 C_O_FLAG_HIGHEST="-O3" 41498 C_O_FLAG_HI="-O3" 41499 C_O_FLAG_NORM="-O2" 41500 C_O_FLAG_NONE="-O0" 41501 fi 41502 elif test "x$TOOLCHAIN_TYPE" = xclang; then 41503 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41504 # On MacOSX we optimize for size, something 41505 # we should do for all platforms? 41506 C_O_FLAG_HIGHEST="-Os" 41507 C_O_FLAG_HI="-Os" 41508 C_O_FLAG_NORM="-Os" 41509 C_O_FLAG_NONE="" 41510 else 41511 C_O_FLAG_HIGHEST="-O3" 41512 C_O_FLAG_HI="-O3" 41513 C_O_FLAG_NORM="-O2" 41514 C_O_FLAG_NONE="-O0" 41515 fi 41516 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41517 C_O_FLAG_HIGHEST="-O3" 41518 C_O_FLAG_HI="-O3 -qstrict" 41519 C_O_FLAG_NORM="-O2" 41520 C_O_FLAG_NONE="" 41521 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41522 C_O_FLAG_HIGHEST="-O2" 41523 C_O_FLAG_HI="-O1" 41524 C_O_FLAG_NORM="-O1" 41525 C_O_FLAG_NONE="-Od" 41526 fi 41527 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 41528 CXX_O_FLAG_HI="$C_O_FLAG_HI" 41529 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 41530 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 41531 fi 41532 41533 41534 41535 41536 41537 41538 41539 41540 41541 41542 41543 # Special extras... 41544 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41545 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 41546 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41547 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 41548 fi 41549 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41550 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 41551 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41552 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 41553 fi 41554 41555 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 41556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 41557 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 41558 fi 41559 41560 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 41561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 41562 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 41563 fi 41564 41565 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 41566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 41567 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 41568 fi 41569 41570 41571 # Check whether --with-extra-cflags was given. 41572 if test "${with_extra_cflags+set}" = set; then : 41573 withval=$with_extra_cflags; 41574 fi 41575 41576 41577 41578 # Check whether --with-extra-cxxflags was given. 41579 if test "${with_extra_cxxflags+set}" = set; then : 41580 withval=$with_extra_cxxflags; 41581 fi 41582 41583 41584 41585 # Check whether --with-extra-ldflags was given. 41586 if test "${with_extra_ldflags+set}" = set; then : 41587 withval=$with_extra_ldflags; 41588 fi 41589 41590 41591 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 41592 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 41593 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 41594 41595 # Hotspot needs these set in their legacy form 41596 LEGACY_EXTRA_CFLAGS=$with_extra_cflags 41597 LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags 41598 LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags 41599 41600 41601 41602 41603 41604 ############################################################################### 41605 # 41606 # Now setup the CFLAGS and LDFLAGS for the JDK build. 41607 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 41608 # 41609 41610 # Setup compiler/platform specific flags to CFLAGS_JDK, 41611 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 41612 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41613 # these options are used for both C and C++ compiles 41614 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 41615 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 41616 case $OPENJDK_TARGET_CPU_ARCH in 41617 arm ) 41618 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 41619 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41620 ;; 41621 ppc ) 41622 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 41623 ;; 41624 * ) 41625 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 41626 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 41627 ;; 41628 esac 41629 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41630 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 41631 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 41632 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 41633 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 41634 fi 41635 41636 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 41637 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 41638 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 41639 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41640 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 41641 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41642 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 41643 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 41644 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 41645 -DWIN32 -DIAL" 41646 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 41647 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 41648 else 41649 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 41650 fi 41651 fi 41652 41653 ############################################################################### 41654 41655 # Adjust flags according to debug level. 41656 case $DEBUG_LEVEL in 41657 fastdebug ) 41658 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41659 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41660 C_O_FLAG_HI="$C_O_FLAG_NORM" 41661 C_O_FLAG_NORM="$C_O_FLAG_NORM" 41662 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 41663 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 41664 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41665 ;; 41666 slowdebug ) 41667 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 41668 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 41669 C_O_FLAG_HI="$C_O_FLAG_NONE" 41670 C_O_FLAG_NORM="$C_O_FLAG_NONE" 41671 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 41672 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 41673 JAVAC_FLAGS="$JAVAC_FLAGS -g" 41674 ;; 41675 esac 41676 41677 # Setup LP64 41678 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 41679 41680 # Set some common defines. These works for all compilers, but assume 41681 # -D is universally accepted. 41682 41683 # Setup endianness 41684 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 41685 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 41686 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 41687 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 41688 # Note: -Dmacro is the same as #define macro 1 41689 # -Dmacro= is the same as #define macro 41690 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41691 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 41692 else 41693 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 41694 fi 41695 else 41696 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 41697 fi 41698 41699 # Setup target OS define. Use OS target name but in upper case. 41700 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 41701 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 41702 41703 # Setup target CPU 41704 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 41705 41706 # Setup debug/release defines 41707 if test "x$DEBUG_LEVEL" = xrelease; then 41708 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 41709 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41710 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 41711 fi 41712 else 41713 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 41714 fi 41715 41716 # Setup release name 41717 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 41718 41719 41720 # Set some additional per-OS defines. 41721 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41722 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 41723 elif test "x$OPENJDK_TARGET_OS" = xaix; then 41724 # FIXME: PPC64 should not be here. 41725 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 41726 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 41727 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 41728 fi 41729 41730 # Additional macosx handling 41731 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41732 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41733 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 41734 # FIXME: clean this up, and/or move it elsewhere. 41735 41736 # Setting these parameters makes it an error to link to macosx APIs that are 41737 # newer than the given OS version and makes the linked binaries compatible 41738 # even if built on a newer version of the OS. 41739 # The expected format is X.Y.Z 41740 MACOSX_VERSION_MIN=10.7.0 41741 41742 41743 # The macro takes the version with no dots, ex: 1070 41744 # Let the flags variables get resolved in make for easier override on make 41745 # command line. 41746 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41747 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 41748 fi 41749 fi 41750 41751 # Setup some hard coded includes 41752 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 41753 -I${JDK_OUTPUTDIR}/include \ 41754 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 41755 -I${JDK_TOPDIR}/src/share/javavm/export \ 41756 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 41757 -I${JDK_TOPDIR}/src/share/native/common \ 41758 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 41759 41760 # The shared libraries are compiled using the picflag. 41761 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 41762 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 41763 41764 # Executable flags 41765 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 41766 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 41767 41768 41769 41770 41771 41772 41773 # Setup LDFLAGS et al. 41774 # 41775 # Now this is odd. The JDK native libraries have to link against libjvm.so 41776 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 41777 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 41778 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 41779 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 41780 # libraries will link to whatever is in memory. Yuck. 41781 # 41782 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 41783 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 41784 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 41785 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 41786 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 41787 fi 41788 # TODO: make -debug optional "--disable-full-debug-symbols" 41789 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 41790 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 41791 LDFLAGS_JDKLIB_SUFFIX="" 41792 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 41793 LDFLAGS_STACK_SIZE=1048576 41794 else 41795 LDFLAGS_STACK_SIZE=327680 41796 fi 41797 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 41798 else 41799 if test "x$TOOLCHAIN_TYPE" = xgcc; then 41800 # If this is a --hash-style=gnu system, use --hash-style=both, why? 41801 # We have previously set HAS_GNU_HASH if this is the case 41802 if test -n "$HAS_GNU_HASH"; then 41803 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 41804 fi 41805 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41806 # And since we now know that the linker is gnu, then add -z defs, to forbid 41807 # undefined symbols in object files. 41808 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 41809 if test "x$DEBUG_LEVEL" = "xrelease"; then 41810 # When building release libraries, tell the linker optimize them. 41811 # Should this be supplied to the OSS linker as well? 41812 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 41813 fi 41814 fi 41815 fi 41816 41817 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41818 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 41819 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 41820 fi 41821 41822 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 41823 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 41824 41825 # On some platforms (mac) the linker warns about non existing -L dirs. 41826 # Add server first if available. Linking aginst client does not always produce the same results. 41827 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 41828 # Default to server for other variants. 41829 if test "x$JVM_VARIANT_SERVER" = xtrue; then 41830 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41831 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 41832 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 41833 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 41834 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 41835 else 41836 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 41837 fi 41838 41839 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 41840 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 41841 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 41842 fi 41843 41844 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 41845 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41846 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 41847 fi 41848 fi 41849 41850 41851 41852 41853 41854 41855 41856 41857 # Some Zero and Shark settings. 41858 # ZERO_ARCHFLAG tells the compiler which mode to build for 41859 case "${OPENJDK_TARGET_CPU}" in 41860 s390) 41861 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 41862 ;; 41863 *) 41864 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41865 esac 41866 41867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"$ZERO_ARCHFLAG\"" >&5 41868 $as_echo_n "checking if compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 41869 supports=yes 41870 41871 saved_cflags="$CFLAGS" 41872 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 41873 ac_ext=c 41874 ac_cpp='$CPP $CPPFLAGS' 41875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41877 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41878 41879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41880 /* end confdefs.h. */ 41881 int i; 41882 _ACEOF 41883 if ac_fn_c_try_compile "$LINENO"; then : 41884 41885 else 41886 supports=no 41887 fi 41888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41889 ac_ext=cpp 41890 ac_cpp='$CXXCPP $CPPFLAGS' 41891 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41892 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41893 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41894 41895 CFLAGS="$saved_cflags" 41896 41897 saved_cxxflags="$CXXFLAGS" 41898 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 41899 ac_ext=cpp 41900 ac_cpp='$CXXCPP $CPPFLAGS' 41901 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41902 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41903 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41904 41905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41906 /* end confdefs.h. */ 41907 int i; 41908 _ACEOF 41909 if ac_fn_cxx_try_compile "$LINENO"; then : 41910 41911 else 41912 supports=no 41913 fi 41914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41915 ac_ext=cpp 41916 ac_cpp='$CXXCPP $CPPFLAGS' 41917 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41918 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41919 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41920 41921 CXXFLAGS="$saved_cxxflags" 41922 41923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41924 $as_echo "$supports" >&6; } 41925 if test "x$supports" = "xyes" ; then 41926 : 41927 else 41928 ZERO_ARCHFLAG="" 41929 fi 41930 41931 41932 41933 # Check that the compiler supports -mX (or -qX on AIX) flags 41934 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 41935 41936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 41937 $as_echo_n "checking if compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 41938 supports=yes 41939 41940 saved_cflags="$CFLAGS" 41941 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41942 ac_ext=c 41943 ac_cpp='$CPP $CPPFLAGS' 41944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41946 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41947 41948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41949 /* end confdefs.h. */ 41950 int i; 41951 _ACEOF 41952 if ac_fn_c_try_compile "$LINENO"; then : 41953 41954 else 41955 supports=no 41956 fi 41957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41958 ac_ext=cpp 41959 ac_cpp='$CXXCPP $CPPFLAGS' 41960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41963 41964 CFLAGS="$saved_cflags" 41965 41966 saved_cxxflags="$CXXFLAGS" 41967 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 41968 ac_ext=cpp 41969 ac_cpp='$CXXCPP $CPPFLAGS' 41970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41973 41974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41975 /* end confdefs.h. */ 41976 int i; 41977 _ACEOF 41978 if ac_fn_cxx_try_compile "$LINENO"; then : 41979 41980 else 41981 supports=no 41982 fi 41983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 41984 ac_ext=cpp 41985 ac_cpp='$CXXCPP $CPPFLAGS' 41986 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41987 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41988 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41989 41990 CXXFLAGS="$saved_cxxflags" 41991 41992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 41993 $as_echo "$supports" >&6; } 41994 if test "x$supports" = "xyes" ; then 41995 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 41996 else 41997 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 41998 fi 41999 42000 42001 42002 42003 # Setup debug symbols (need objcopy from the toolchain for that) 42004 42005 # 42006 # ENABLE_DEBUG_SYMBOLS 42007 # This must be done after the toolchain is setup, since we're looking at objcopy. 42008 # 42009 # Check whether --enable-debug-symbols was given. 42010 if test "${enable_debug_symbols+set}" = set; then : 42011 enableval=$enable_debug_symbols; 42012 fi 42013 42014 42015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 42016 $as_echo_n "checking if we should generate debug symbols... " >&6; } 42017 42018 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 42019 # explicit enabling of enable-debug-symbols and can't find objcopy 42020 # this is an error 42021 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 42022 fi 42023 42024 if test "x$enable_debug_symbols" = "xyes"; then 42025 ENABLE_DEBUG_SYMBOLS=true 42026 elif test "x$enable_debug_symbols" = "xno"; then 42027 ENABLE_DEBUG_SYMBOLS=false 42028 else 42029 # Default is on if objcopy is found 42030 if test "x$OBJCOPY" != x; then 42031 ENABLE_DEBUG_SYMBOLS=true 42032 # MacOS X and Windows don't use objcopy but default is on for those OSes 42033 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 42034 ENABLE_DEBUG_SYMBOLS=true 42035 else 42036 ENABLE_DEBUG_SYMBOLS=false 42037 fi 42038 fi 42039 42040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 42041 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 42042 42043 # 42044 # ZIP_DEBUGINFO_FILES 42045 # 42046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 42047 $as_echo_n "checking if we should zip debug-info files... " >&6; } 42048 # Check whether --enable-zip-debug-info was given. 42049 if test "${enable_zip_debug_info+set}" = set; then : 42050 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 42051 else 42052 enable_zip_debug_info="yes" 42053 fi 42054 42055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 42056 $as_echo "${enable_zip_debug_info}" >&6; } 42057 42058 if test "x${enable_zip_debug_info}" = "xno"; then 42059 ZIP_DEBUGINFO_FILES=false 42060 else 42061 ZIP_DEBUGINFO_FILES=true 42062 fi 42063 42064 42065 42066 42067 42068 ############################################################################### 42069 # 42070 # Check dependencies for external and internal libraries. 42071 # 42072 ############################################################################### 42073 42074 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 42075 42076 # When using cygwin or msys, we need a wrapper binary that renames 42077 # /cygdrive/c/ arguments into c:/ arguments and peeks into 42078 # @files and rewrites these too! This wrapper binary is 42079 # called fixpath. 42080 FIXPATH= 42081 if test "x$OPENJDK_BUILD_OS" = xwindows; then 42082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 42083 $as_echo_n "checking if fixpath can be created... " >&6; } 42084 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 42085 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 42086 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 42087 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 42088 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 42089 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 42090 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 42091 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 42092 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 42093 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 42094 42095 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 42096 # @ was chosen as separator to minimize risk of other tools messing around with it 42097 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 42098 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 42099 42100 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 42101 fi 42102 rm -f $OUTPUT_ROOT/fixpath* 42103 cd $OUTPUT_ROOT 42104 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 42105 cd $CURDIR 42106 42107 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 42108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42109 $as_echo "no" >&6; } 42110 cat $OUTPUT_ROOT/fixpath1.log 42111 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 42112 fi 42113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42114 $as_echo "yes" >&6; } 42115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 42116 $as_echo_n "checking if fixpath.exe works... " >&6; } 42117 cd $OUTPUT_ROOT 42118 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 42119 cd $CURDIR 42120 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 42121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42122 $as_echo "no" >&6; } 42123 cat $OUTPUT_ROOT/fixpath2.log 42124 as_fn_error $? "fixpath did not work!" "$LINENO" 5 42125 fi 42126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42127 $as_echo "yes" >&6; } 42128 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 42129 fi 42130 42131 42132 42133 42134 42135 42136 ############################################################################### 42137 # 42138 # OS specific settings that we never will need to probe. 42139 # 42140 if test "x$OPENJDK_TARGET_OS" = xlinux; then 42141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 42142 $as_echo_n "checking what is not needed on Linux?... " >&6; } 42143 PULSE_NOT_NEEDED=yes 42144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 42145 $as_echo "pulse" >&6; } 42146 fi 42147 42148 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 42150 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 42151 ALSA_NOT_NEEDED=yes 42152 PULSE_NOT_NEEDED=yes 42153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42154 $as_echo "alsa pulse" >&6; } 42155 fi 42156 42157 if test "x$OPENJDK_TARGET_OS" = xaix; then 42158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 42159 $as_echo_n "checking what is not needed on AIX?... " >&6; } 42160 ALSA_NOT_NEEDED=yes 42161 PULSE_NOT_NEEDED=yes 42162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 42163 $as_echo "alsa pulse" >&6; } 42164 fi 42165 42166 42167 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 42169 $as_echo_n "checking what is not needed on Windows?... " >&6; } 42170 CUPS_NOT_NEEDED=yes 42171 ALSA_NOT_NEEDED=yes 42172 PULSE_NOT_NEEDED=yes 42173 X11_NOT_NEEDED=yes 42174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 42175 $as_echo "alsa cups pulse x11" >&6; } 42176 fi 42177 42178 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 42179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 42180 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 42181 ALSA_NOT_NEEDED=yes 42182 PULSE_NOT_NEEDED=yes 42183 X11_NOT_NEEDED=yes 42184 # If the java runtime framework is disabled, then we need X11. 42185 # This will be adjusted below. 42186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 42187 $as_echo "alsa pulse x11" >&6; } 42188 fi 42189 42190 if test "x$OPENJDK_TARGET_OS" = xbsd; then 42191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 42192 $as_echo_n "checking what is not needed on bsd?... " >&6; } 42193 ALSA_NOT_NEEDED=yes 42194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 42195 $as_echo "alsa" >&6; } 42196 fi 42197 42198 if test "x$OPENJDK" = "xfalse"; then 42199 FREETYPE_NOT_NEEDED=yes 42200 fi 42201 42202 if test "x$SUPPORT_HEADFUL" = xno; then 42203 X11_NOT_NEEDED=yes 42204 fi 42205 42206 ############################################################################### 42207 # 42208 # Check for MacOSX support for OpenJDK. 42209 # 42210 42211 42212 # Check whether --enable-macosx-runtime-support was given. 42213 if test "${enable_macosx_runtime_support+set}" = set; then : 42214 enableval=$enable_macosx_runtime_support; 42215 fi 42216 42217 if test "x$enable_macosx_runtime_support" != x; then 42218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 42219 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 42220 fi 42221 42222 42223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mac OS X Java Framework" >&5 42224 $as_echo_n "checking for Mac OS X Java Framework... " >&6; } 42225 if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then 42226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: /System/Library/Frameworks/JavaVM.framework" >&5 42227 $as_echo "/System/Library/Frameworks/JavaVM.framework" >&6; } 42228 else 42229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42230 $as_echo "no" >&6; } 42231 fi 42232 42233 42234 42235 ############################################################################### 42236 # 42237 # Check for X Windows 42238 # 42239 42240 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 42241 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 42242 # --x-libraries for the sysroot, if that seems to be correct. 42243 if test "x$SYS_ROOT" != "x/"; then 42244 if test "x$x_includes" = xNONE; then 42245 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then 42246 x_includes="$SYS_ROOT/usr/X11R6/include" 42247 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then 42248 x_includes="$SYS_ROOT/usr/include" 42249 fi 42250 fi 42251 if test "x$x_libraries" = xNONE; then 42252 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then 42253 x_libraries="$SYS_ROOT/usr/X11R6/lib" 42254 elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 42255 x_libraries="$SYS_ROOT/usr/lib64" 42256 elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then 42257 x_libraries="$SYS_ROOT/usr/lib" 42258 fi 42259 fi 42260 fi 42261 42262 # Now let autoconf do it's magic 42263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 42264 $as_echo_n "checking for X... " >&6; } 42265 42266 42267 # Check whether --with-x was given. 42268 if test "${with_x+set}" = set; then : 42269 withval=$with_x; 42270 fi 42271 42272 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 42273 if test "x$with_x" = xno; then 42274 # The user explicitly disabled X. 42275 have_x=disabled 42276 else 42277 case $x_includes,$x_libraries in #( 42278 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 42279 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 42280 $as_echo_n "(cached) " >&6 42281 else 42282 # One or both of the vars are not set, and there is no cached value. 42283 ac_x_includes=no ac_x_libraries=no 42284 rm -f -r conftest.dir 42285 if mkdir conftest.dir; then 42286 cd conftest.dir 42287 cat >Imakefile <<'_ACEOF' 42288 incroot: 42289 @echo incroot='${INCROOT}' 42290 usrlibdir: 42291 @echo usrlibdir='${USRLIBDIR}' 42292 libdir: 42293 @echo libdir='${LIBDIR}' 42294 _ACEOF 42295 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 42296 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 42297 for ac_var in incroot usrlibdir libdir; do 42298 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 42299 done 42300 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 42301 for ac_extension in a so sl dylib la dll; do 42302 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 42303 test -f "$ac_im_libdir/libX11.$ac_extension"; then 42304 ac_im_usrlibdir=$ac_im_libdir; break 42305 fi 42306 done 42307 # Screen out bogus values from the imake configuration. They are 42308 # bogus both because they are the default anyway, and because 42309 # using them would break gcc on systems where it needs fixed includes. 42310 case $ac_im_incroot in 42311 /usr/include) ac_x_includes= ;; 42312 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 42313 esac 42314 case $ac_im_usrlibdir in 42315 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 42316 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 42317 esac 42318 fi 42319 cd .. 42320 rm -f -r conftest.dir 42321 fi 42322 42323 # Standard set of common directories for X headers. 42324 # Check X11 before X11Rn because it is often a symlink to the current release. 42325 ac_x_header_dirs=' 42326 /usr/X11/include 42327 /usr/X11R7/include 42328 /usr/X11R6/include 42329 /usr/X11R5/include 42330 /usr/X11R4/include 42331 42332 /usr/include/X11 42333 /usr/include/X11R7 42334 /usr/include/X11R6 42335 /usr/include/X11R5 42336 /usr/include/X11R4 42337 42338 /usr/local/X11/include 42339 /usr/local/X11R7/include 42340 /usr/local/X11R6/include 42341 /usr/local/X11R5/include 42342 /usr/local/X11R4/include 42343 42344 /usr/local/include/X11 42345 /usr/local/include/X11R7 42346 /usr/local/include/X11R6 42347 /usr/local/include/X11R5 42348 /usr/local/include/X11R4 42349 42350 /usr/X386/include 42351 /usr/x386/include 42352 /usr/XFree86/include/X11 42353 42354 /usr/include 42355 /usr/local/include 42356 /usr/unsupported/include 42357 /usr/athena/include 42358 /usr/local/x11r5/include 42359 /usr/lpp/Xamples/include 42360 42361 /usr/openwin/include 42362 /usr/openwin/share/include' 42363 42364 if test "$ac_x_includes" = no; then 42365 # Guess where to find include files, by looking for Xlib.h. 42366 # First, try using that file with no special directory specified. 42367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42368 /* end confdefs.h. */ 42369 #include <X11/Xlib.h> 42370 _ACEOF 42371 if ac_fn_cxx_try_cpp "$LINENO"; then : 42372 # We can compile using X headers with no special include directory. 42373 ac_x_includes= 42374 else 42375 for ac_dir in $ac_x_header_dirs; do 42376 if test -r "$ac_dir/X11/Xlib.h"; then 42377 ac_x_includes=$ac_dir 42378 break 42379 fi 42380 done 42381 fi 42382 rm -f conftest.err conftest.i conftest.$ac_ext 42383 fi # $ac_x_includes = no 42384 42385 if test "$ac_x_libraries" = no; then 42386 # Check for the libraries. 42387 # See if we find them without any special options. 42388 # Don't add to $LIBS permanently. 42389 ac_save_LIBS=$LIBS 42390 LIBS="-lX11 $LIBS" 42391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42392 /* end confdefs.h. */ 42393 #include <X11/Xlib.h> 42394 int 42395 main () 42396 { 42397 XrmInitialize () 42398 ; 42399 return 0; 42400 } 42401 _ACEOF 42402 if ac_fn_cxx_try_link "$LINENO"; then : 42403 LIBS=$ac_save_LIBS 42404 # We can link X programs with no special library path. 42405 ac_x_libraries= 42406 else 42407 LIBS=$ac_save_LIBS 42408 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 42409 do 42410 # Don't even attempt the hair of trying to link an X program! 42411 for ac_extension in a so sl dylib la dll; do 42412 if test -r "$ac_dir/libX11.$ac_extension"; then 42413 ac_x_libraries=$ac_dir 42414 break 2 42415 fi 42416 done 42417 done 42418 fi 42419 rm -f core conftest.err conftest.$ac_objext \ 42420 conftest$ac_exeext conftest.$ac_ext 42421 fi # $ac_x_libraries = no 42422 42423 case $ac_x_includes,$ac_x_libraries in #( 42424 no,* | *,no | *\'*) 42425 # Didn't find X, or a directory has "'" in its name. 42426 ac_cv_have_x="have_x=no";; #( 42427 *) 42428 # Record where we found X for the cache. 42429 ac_cv_have_x="have_x=yes\ 42430 ac_x_includes='$ac_x_includes'\ 42431 ac_x_libraries='$ac_x_libraries'" 42432 esac 42433 fi 42434 ;; #( 42435 *) have_x=yes;; 42436 esac 42437 eval "$ac_cv_have_x" 42438 fi # $with_x != no 42439 42440 if test "$have_x" != yes; then 42441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 42442 $as_echo "$have_x" >&6; } 42443 no_x=yes 42444 else 42445 # If each of the values was on the command line, it overrides each guess. 42446 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 42447 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 42448 # Update the cache value to reflect the command line values. 42449 ac_cv_have_x="have_x=yes\ 42450 ac_x_includes='$x_includes'\ 42451 ac_x_libraries='$x_libraries'" 42452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 42453 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 42454 fi 42455 42456 if test "$no_x" = yes; then 42457 # Not all programs may use this symbol, but it does not hurt to define it. 42458 42459 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 42460 42461 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 42462 else 42463 if test -n "$x_includes"; then 42464 X_CFLAGS="$X_CFLAGS -I$x_includes" 42465 fi 42466 42467 # It would also be nice to do this for all -L options, not just this one. 42468 if test -n "$x_libraries"; then 42469 X_LIBS="$X_LIBS -L$x_libraries" 42470 # For Solaris; some versions of Sun CC require a space after -R and 42471 # others require no space. Words are not sufficient . . . . 42472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 42473 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 42474 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 42475 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 42476 ac_cxx_werror_flag=yes 42477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42478 /* end confdefs.h. */ 42479 42480 int 42481 main () 42482 { 42483 42484 ; 42485 return 0; 42486 } 42487 _ACEOF 42488 if ac_fn_cxx_try_link "$LINENO"; then : 42489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42490 $as_echo "no" >&6; } 42491 X_LIBS="$X_LIBS -R$x_libraries" 42492 else 42493 LIBS="$ac_xsave_LIBS -R $x_libraries" 42494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42495 /* end confdefs.h. */ 42496 42497 int 42498 main () 42499 { 42500 42501 ; 42502 return 0; 42503 } 42504 _ACEOF 42505 if ac_fn_cxx_try_link "$LINENO"; then : 42506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42507 $as_echo "yes" >&6; } 42508 X_LIBS="$X_LIBS -R $x_libraries" 42509 else 42510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 42511 $as_echo "neither works" >&6; } 42512 fi 42513 rm -f core conftest.err conftest.$ac_objext \ 42514 conftest$ac_exeext conftest.$ac_ext 42515 fi 42516 rm -f core conftest.err conftest.$ac_objext \ 42517 conftest$ac_exeext conftest.$ac_ext 42518 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 42519 LIBS=$ac_xsave_LIBS 42520 fi 42521 42522 # Check for system-dependent libraries X programs must link with. 42523 # Do this before checking for the system-independent R6 libraries 42524 # (-lICE), since we may need -lsocket or whatever for X linking. 42525 42526 if test "$ISC" = yes; then 42527 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 42528 else 42529 # Martyn Johnson says this is needed for Ultrix, if the X 42530 # libraries were built with DECnet support. And Karl Berry says 42531 # the Alpha needs dnet_stub (dnet does not exist). 42532 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 42533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42534 /* end confdefs.h. */ 42535 42536 /* Override any GCC internal prototype to avoid an error. 42537 Use char because int might match the return type of a GCC 42538 builtin and then its argument prototype would still apply. */ 42539 #ifdef __cplusplus 42540 extern "C" 42541 #endif 42542 char XOpenDisplay (); 42543 int 42544 main () 42545 { 42546 return XOpenDisplay (); 42547 ; 42548 return 0; 42549 } 42550 _ACEOF 42551 if ac_fn_cxx_try_link "$LINENO"; then : 42552 42553 else 42554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 42555 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 42556 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 42557 $as_echo_n "(cached) " >&6 42558 else 42559 ac_check_lib_save_LIBS=$LIBS 42560 LIBS="-ldnet $LIBS" 42561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42562 /* end confdefs.h. */ 42563 42564 /* Override any GCC internal prototype to avoid an error. 42565 Use char because int might match the return type of a GCC 42566 builtin and then its argument prototype would still apply. */ 42567 #ifdef __cplusplus 42568 extern "C" 42569 #endif 42570 char dnet_ntoa (); 42571 int 42572 main () 42573 { 42574 return dnet_ntoa (); 42575 ; 42576 return 0; 42577 } 42578 _ACEOF 42579 if ac_fn_cxx_try_link "$LINENO"; then : 42580 ac_cv_lib_dnet_dnet_ntoa=yes 42581 else 42582 ac_cv_lib_dnet_dnet_ntoa=no 42583 fi 42584 rm -f core conftest.err conftest.$ac_objext \ 42585 conftest$ac_exeext conftest.$ac_ext 42586 LIBS=$ac_check_lib_save_LIBS 42587 fi 42588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 42589 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 42590 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 42591 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 42592 fi 42593 42594 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 42595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 42596 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 42597 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 42598 $as_echo_n "(cached) " >&6 42599 else 42600 ac_check_lib_save_LIBS=$LIBS 42601 LIBS="-ldnet_stub $LIBS" 42602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42603 /* end confdefs.h. */ 42604 42605 /* Override any GCC internal prototype to avoid an error. 42606 Use char because int might match the return type of a GCC 42607 builtin and then its argument prototype would still apply. */ 42608 #ifdef __cplusplus 42609 extern "C" 42610 #endif 42611 char dnet_ntoa (); 42612 int 42613 main () 42614 { 42615 return dnet_ntoa (); 42616 ; 42617 return 0; 42618 } 42619 _ACEOF 42620 if ac_fn_cxx_try_link "$LINENO"; then : 42621 ac_cv_lib_dnet_stub_dnet_ntoa=yes 42622 else 42623 ac_cv_lib_dnet_stub_dnet_ntoa=no 42624 fi 42625 rm -f core conftest.err conftest.$ac_objext \ 42626 conftest$ac_exeext conftest.$ac_ext 42627 LIBS=$ac_check_lib_save_LIBS 42628 fi 42629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 42630 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 42631 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 42632 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 42633 fi 42634 42635 fi 42636 fi 42637 rm -f core conftest.err conftest.$ac_objext \ 42638 conftest$ac_exeext conftest.$ac_ext 42639 LIBS="$ac_xsave_LIBS" 42640 42641 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 42642 # to get the SysV transport functions. 42643 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 42644 # needs -lnsl. 42645 # The nsl library prevents programs from opening the X display 42646 # on Irix 5.2, according to T.E. Dickey. 42647 # The functions gethostbyname, getservbyname, and inet_addr are 42648 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 42649 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 42650 if test "x$ac_cv_func_gethostbyname" = xyes; then : 42651 42652 fi 42653 42654 if test $ac_cv_func_gethostbyname = no; then 42655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 42656 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 42657 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 42658 $as_echo_n "(cached) " >&6 42659 else 42660 ac_check_lib_save_LIBS=$LIBS 42661 LIBS="-lnsl $LIBS" 42662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42663 /* end confdefs.h. */ 42664 42665 /* Override any GCC internal prototype to avoid an error. 42666 Use char because int might match the return type of a GCC 42667 builtin and then its argument prototype would still apply. */ 42668 #ifdef __cplusplus 42669 extern "C" 42670 #endif 42671 char gethostbyname (); 42672 int 42673 main () 42674 { 42675 return gethostbyname (); 42676 ; 42677 return 0; 42678 } 42679 _ACEOF 42680 if ac_fn_cxx_try_link "$LINENO"; then : 42681 ac_cv_lib_nsl_gethostbyname=yes 42682 else 42683 ac_cv_lib_nsl_gethostbyname=no 42684 fi 42685 rm -f core conftest.err conftest.$ac_objext \ 42686 conftest$ac_exeext conftest.$ac_ext 42687 LIBS=$ac_check_lib_save_LIBS 42688 fi 42689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 42690 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 42691 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 42692 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 42693 fi 42694 42695 if test $ac_cv_lib_nsl_gethostbyname = no; then 42696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 42697 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 42698 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 42699 $as_echo_n "(cached) " >&6 42700 else 42701 ac_check_lib_save_LIBS=$LIBS 42702 LIBS="-lbsd $LIBS" 42703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42704 /* end confdefs.h. */ 42705 42706 /* Override any GCC internal prototype to avoid an error. 42707 Use char because int might match the return type of a GCC 42708 builtin and then its argument prototype would still apply. */ 42709 #ifdef __cplusplus 42710 extern "C" 42711 #endif 42712 char gethostbyname (); 42713 int 42714 main () 42715 { 42716 return gethostbyname (); 42717 ; 42718 return 0; 42719 } 42720 _ACEOF 42721 if ac_fn_cxx_try_link "$LINENO"; then : 42722 ac_cv_lib_bsd_gethostbyname=yes 42723 else 42724 ac_cv_lib_bsd_gethostbyname=no 42725 fi 42726 rm -f core conftest.err conftest.$ac_objext \ 42727 conftest$ac_exeext conftest.$ac_ext 42728 LIBS=$ac_check_lib_save_LIBS 42729 fi 42730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 42731 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 42732 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 42733 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 42734 fi 42735 42736 fi 42737 fi 42738 42739 # lieder@skyler.mavd.honeywell.com says without -lsocket, 42740 # socket/setsockopt and other routines are undefined under SCO ODT 42741 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 42742 # on later versions), says Simon Leinen: it contains gethostby* 42743 # variants that don't use the name server (or something). -lsocket 42744 # must be given before -lnsl if both are needed. We assume that 42745 # if connect needs -lnsl, so does gethostbyname. 42746 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 42747 if test "x$ac_cv_func_connect" = xyes; then : 42748 42749 fi 42750 42751 if test $ac_cv_func_connect = no; then 42752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 42753 $as_echo_n "checking for connect in -lsocket... " >&6; } 42754 if ${ac_cv_lib_socket_connect+:} false; then : 42755 $as_echo_n "(cached) " >&6 42756 else 42757 ac_check_lib_save_LIBS=$LIBS 42758 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 42759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42760 /* end confdefs.h. */ 42761 42762 /* Override any GCC internal prototype to avoid an error. 42763 Use char because int might match the return type of a GCC 42764 builtin and then its argument prototype would still apply. */ 42765 #ifdef __cplusplus 42766 extern "C" 42767 #endif 42768 char connect (); 42769 int 42770 main () 42771 { 42772 return connect (); 42773 ; 42774 return 0; 42775 } 42776 _ACEOF 42777 if ac_fn_cxx_try_link "$LINENO"; then : 42778 ac_cv_lib_socket_connect=yes 42779 else 42780 ac_cv_lib_socket_connect=no 42781 fi 42782 rm -f core conftest.err conftest.$ac_objext \ 42783 conftest$ac_exeext conftest.$ac_ext 42784 LIBS=$ac_check_lib_save_LIBS 42785 fi 42786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 42787 $as_echo "$ac_cv_lib_socket_connect" >&6; } 42788 if test "x$ac_cv_lib_socket_connect" = xyes; then : 42789 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 42790 fi 42791 42792 fi 42793 42794 # Guillermo Gomez says -lposix is necessary on A/UX. 42795 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 42796 if test "x$ac_cv_func_remove" = xyes; then : 42797 42798 fi 42799 42800 if test $ac_cv_func_remove = no; then 42801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 42802 $as_echo_n "checking for remove in -lposix... " >&6; } 42803 if ${ac_cv_lib_posix_remove+:} false; then : 42804 $as_echo_n "(cached) " >&6 42805 else 42806 ac_check_lib_save_LIBS=$LIBS 42807 LIBS="-lposix $LIBS" 42808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42809 /* end confdefs.h. */ 42810 42811 /* Override any GCC internal prototype to avoid an error. 42812 Use char because int might match the return type of a GCC 42813 builtin and then its argument prototype would still apply. */ 42814 #ifdef __cplusplus 42815 extern "C" 42816 #endif 42817 char remove (); 42818 int 42819 main () 42820 { 42821 return remove (); 42822 ; 42823 return 0; 42824 } 42825 _ACEOF 42826 if ac_fn_cxx_try_link "$LINENO"; then : 42827 ac_cv_lib_posix_remove=yes 42828 else 42829 ac_cv_lib_posix_remove=no 42830 fi 42831 rm -f core conftest.err conftest.$ac_objext \ 42832 conftest$ac_exeext conftest.$ac_ext 42833 LIBS=$ac_check_lib_save_LIBS 42834 fi 42835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 42836 $as_echo "$ac_cv_lib_posix_remove" >&6; } 42837 if test "x$ac_cv_lib_posix_remove" = xyes; then : 42838 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 42839 fi 42840 42841 fi 42842 42843 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 42844 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 42845 if test "x$ac_cv_func_shmat" = xyes; then : 42846 42847 fi 42848 42849 if test $ac_cv_func_shmat = no; then 42850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 42851 $as_echo_n "checking for shmat in -lipc... " >&6; } 42852 if ${ac_cv_lib_ipc_shmat+:} false; then : 42853 $as_echo_n "(cached) " >&6 42854 else 42855 ac_check_lib_save_LIBS=$LIBS 42856 LIBS="-lipc $LIBS" 42857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42858 /* end confdefs.h. */ 42859 42860 /* Override any GCC internal prototype to avoid an error. 42861 Use char because int might match the return type of a GCC 42862 builtin and then its argument prototype would still apply. */ 42863 #ifdef __cplusplus 42864 extern "C" 42865 #endif 42866 char shmat (); 42867 int 42868 main () 42869 { 42870 return shmat (); 42871 ; 42872 return 0; 42873 } 42874 _ACEOF 42875 if ac_fn_cxx_try_link "$LINENO"; then : 42876 ac_cv_lib_ipc_shmat=yes 42877 else 42878 ac_cv_lib_ipc_shmat=no 42879 fi 42880 rm -f core conftest.err conftest.$ac_objext \ 42881 conftest$ac_exeext conftest.$ac_ext 42882 LIBS=$ac_check_lib_save_LIBS 42883 fi 42884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 42885 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 42886 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 42887 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 42888 fi 42889 42890 fi 42891 fi 42892 42893 # Check for libraries that X11R6 Xt/Xaw programs need. 42894 ac_save_LDFLAGS=$LDFLAGS 42895 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 42896 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 42897 # check for ICE first), but we must link in the order -lSM -lICE or 42898 # we get undefined symbols. So assume we have SM if we have ICE. 42899 # These have to be linked with before -lX11, unlike the other 42900 # libraries we check for below, so use a different variable. 42901 # John Interrante, Karl Berry 42902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 42903 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 42904 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 42905 $as_echo_n "(cached) " >&6 42906 else 42907 ac_check_lib_save_LIBS=$LIBS 42908 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 42909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 42910 /* end confdefs.h. */ 42911 42912 /* Override any GCC internal prototype to avoid an error. 42913 Use char because int might match the return type of a GCC 42914 builtin and then its argument prototype would still apply. */ 42915 #ifdef __cplusplus 42916 extern "C" 42917 #endif 42918 char IceConnectionNumber (); 42919 int 42920 main () 42921 { 42922 return IceConnectionNumber (); 42923 ; 42924 return 0; 42925 } 42926 _ACEOF 42927 if ac_fn_cxx_try_link "$LINENO"; then : 42928 ac_cv_lib_ICE_IceConnectionNumber=yes 42929 else 42930 ac_cv_lib_ICE_IceConnectionNumber=no 42931 fi 42932 rm -f core conftest.err conftest.$ac_objext \ 42933 conftest$ac_exeext conftest.$ac_ext 42934 LIBS=$ac_check_lib_save_LIBS 42935 fi 42936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 42937 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 42938 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 42939 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 42940 fi 42941 42942 LDFLAGS=$ac_save_LDFLAGS 42943 42944 fi 42945 42946 42947 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 42948 # this doesn't make sense so we remove it. 42949 if test "x$COMPILE_TYPE" = xcross; then 42950 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 42951 fi 42952 42953 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 42954 42955 # Print a helpful message on how to acquire the necessary build dependency. 42956 # x11 is the help tag: freetype, cups, pulse, alsa etc 42957 MISSING_DEPENDENCY=x11 42958 42959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42960 cygwin_help $MISSING_DEPENDENCY 42961 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42962 msys_help $MISSING_DEPENDENCY 42963 else 42964 PKGHANDLER_COMMAND= 42965 42966 case $PKGHANDLER in 42967 apt-get) 42968 apt_help $MISSING_DEPENDENCY ;; 42969 yum) 42970 yum_help $MISSING_DEPENDENCY ;; 42971 port) 42972 port_help $MISSING_DEPENDENCY ;; 42973 pkgutil) 42974 pkgutil_help $MISSING_DEPENDENCY ;; 42975 pkgadd) 42976 pkgadd_help $MISSING_DEPENDENCY ;; 42977 esac 42978 42979 if test "x$PKGHANDLER_COMMAND" != x; then 42980 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 42981 fi 42982 fi 42983 42984 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 42985 fi 42986 42987 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 42988 OPENWIN_HOME="/usr/openwin" 42989 fi 42990 42991 42992 42993 # 42994 # Weird Sol10 something check...TODO change to try compile 42995 # 42996 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 42997 if test "`uname -r`" = "5.10"; then 42998 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 42999 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 43000 fi 43001 fi 43002 fi 43003 43004 ac_ext=c 43005 ac_cpp='$CPP $CPPFLAGS' 43006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43008 ac_compiler_gnu=$ac_cv_c_compiler_gnu 43009 43010 OLD_CFLAGS="$CFLAGS" 43011 CFLAGS="$CFLAGS $X_CFLAGS" 43012 43013 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 43014 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 43015 do : 43016 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43017 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 43018 # include <X11/Xlib.h> 43019 # include <X11/Xutil.h> 43020 43021 43022 " 43023 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43024 cat >>confdefs.h <<_ACEOF 43025 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43026 _ACEOF 43027 X11_A_OK=yes 43028 else 43029 X11_A_OK=no; break 43030 fi 43031 43032 done 43033 43034 43035 CFLAGS="$OLD_CFLAGS" 43036 ac_ext=cpp 43037 ac_cpp='$CXXCPP $CPPFLAGS' 43038 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 43039 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 43040 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 43041 43042 43043 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 43044 43045 # Print a helpful message on how to acquire the necessary build dependency. 43046 # x11 is the help tag: freetype, cups, pulse, alsa etc 43047 MISSING_DEPENDENCY=x11 43048 43049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43050 cygwin_help $MISSING_DEPENDENCY 43051 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43052 msys_help $MISSING_DEPENDENCY 43053 else 43054 PKGHANDLER_COMMAND= 43055 43056 case $PKGHANDLER in 43057 apt-get) 43058 apt_help $MISSING_DEPENDENCY ;; 43059 yum) 43060 yum_help $MISSING_DEPENDENCY ;; 43061 port) 43062 port_help $MISSING_DEPENDENCY ;; 43063 pkgutil) 43064 pkgutil_help $MISSING_DEPENDENCY ;; 43065 pkgadd) 43066 pkgadd_help $MISSING_DEPENDENCY ;; 43067 esac 43068 43069 if test "x$PKGHANDLER_COMMAND" != x; then 43070 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43071 fi 43072 fi 43073 43074 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 43075 fi 43076 43077 43078 43079 43080 43081 43082 ############################################################################### 43083 # 43084 # The common unix printing system cups is used to print from java. 43085 # 43086 43087 # Check whether --with-cups was given. 43088 if test "${with_cups+set}" = set; then : 43089 withval=$with_cups; 43090 fi 43091 43092 43093 # Check whether --with-cups-include was given. 43094 if test "${with_cups_include+set}" = set; then : 43095 withval=$with_cups_include; 43096 fi 43097 43098 43099 if test "x$CUPS_NOT_NEEDED" = xyes; then 43100 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 43101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 43102 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 43103 fi 43104 CUPS_CFLAGS= 43105 else 43106 CUPS_FOUND=no 43107 43108 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 43109 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 43110 fi 43111 43112 if test "x${with_cups}" != x; then 43113 CUPS_CFLAGS="-I${with_cups}/include" 43114 CUPS_FOUND=yes 43115 fi 43116 if test "x${with_cups_include}" != x; then 43117 CUPS_CFLAGS="-I${with_cups_include}" 43118 CUPS_FOUND=yes 43119 fi 43120 if test "x$CUPS_FOUND" = xno; then 43121 43122 43123 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43124 # Source the builddeps file again, to make sure it uses the latest variables! 43125 . $builddepsfile 43126 # Look for a target and build machine specific resource! 43127 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43128 if test "x$resource" = x; then 43129 # Ok, lets instead look for a target specific resource 43130 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 43131 fi 43132 if test "x$resource" = x; then 43133 # Ok, lets instead look for a build specific resource 43134 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 43135 fi 43136 if test "x$resource" = x; then 43137 # Ok, lets instead look for a generic resource 43138 # (The cups comes from M4 and not the shell, thus no need for eval here.) 43139 resource=${builddep_cups} 43140 fi 43141 if test "x$resource" != x; then 43142 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 43143 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 43144 # If the resource in the builddeps.conf file is an existing directory, 43145 # for example /java/linux/cups 43146 if test -d ${resource}; then 43147 depdir=${resource} 43148 else 43149 43150 # cups is for example mymodule 43151 # $resource is for example libs/general/libmymod_1_2_3.zip 43152 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43153 # $with_builddeps_dir is for example /localhome/builddeps 43154 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43155 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43156 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43157 filename=`basename $resource` 43158 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43159 filebase=${filename%%.*} 43160 extension=${filename#*.} 43161 installdir=$with_builddeps_dir/$filebase 43162 if test ! -f $installdir/$filename.unpacked; then 43163 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 43164 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43165 if test ! -d $installdir; then 43166 mkdir -p $installdir 43167 fi 43168 if test ! -d $installdir; then 43169 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43170 fi 43171 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 43172 touch $tmpfile 43173 if test ! -f $tmpfile; then 43174 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43175 fi 43176 43177 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43178 # $tmpfile is the local file name for the downloaded file. 43179 VALID_TOOL=no 43180 if test "x$BDEPS_FTP" = xwget; then 43181 VALID_TOOL=yes 43182 wget -O $tmpfile $with_builddeps_server/$resource 43183 fi 43184 if test "x$BDEPS_FTP" = xlftp; then 43185 VALID_TOOL=yes 43186 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43187 fi 43188 if test "x$BDEPS_FTP" = xftp; then 43189 VALID_TOOL=yes 43190 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43191 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43192 FTPUSERPWD=${FTPSERVER%%@*} 43193 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43194 FTPUSER=${userpwd%%:*} 43195 FTPPWD=${userpwd#*@} 43196 FTPSERVER=${FTPSERVER#*@} 43197 else 43198 FTPUSER=ftp 43199 FTPPWD=ftp 43200 fi 43201 # the "pass" command does not work on some 43202 # ftp clients (read ftp.exe) but if it works, 43203 # passive mode is better! 43204 ( \ 43205 echo "user $FTPUSER $FTPPWD" ; \ 43206 echo "pass" ; \ 43207 echo "bin" ; \ 43208 echo "get $FTPPATH $tmpfile" ; \ 43209 ) | ftp -in $FTPSERVER 43210 fi 43211 if test "x$VALID_TOOL" != xyes; then 43212 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43213 fi 43214 43215 mv $tmpfile $installdir/$filename 43216 if test ! -s $installdir/$filename; then 43217 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43218 fi 43219 case "$extension" in 43220 zip) echo "Unzipping $installdir/$filename..." 43221 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43222 ;; 43223 tar.gz) echo "Untaring $installdir/$filename..." 43224 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43225 ;; 43226 tgz) echo "Untaring $installdir/$filename..." 43227 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43228 ;; 43229 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43230 ;; 43231 esac 43232 fi 43233 if test -f $installdir/$filename.unpacked; then 43234 depdir=$installdir 43235 fi 43236 43237 fi 43238 # Source the builddeps file again, because in the previous command, the depdir 43239 # was updated to point at the current build dependency install directory. 43240 . $builddepsfile 43241 # Now extract variables from the builddeps.conf files. 43242 theroot=${builddep_cups_ROOT} 43243 thecflags=${builddep_cups_CFLAGS} 43244 thelibs=${builddep_cups_LIBS} 43245 if test "x$depdir" = x; then 43246 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 43247 fi 43248 CUPS=$depdir 43249 if test "x$theroot" != x; then 43250 CUPS="$theroot" 43251 fi 43252 if test "x$thecflags" != x; then 43253 CUPS_CFLAGS="$thecflags" 43254 fi 43255 if test "x$thelibs" != x; then 43256 CUPS_LIBS="$thelibs" 43257 fi 43258 CUPS_FOUND=yes 43259 43260 fi 43261 43262 fi 43263 43264 fi 43265 if test "x$CUPS_FOUND" = xno; then 43266 # Are the cups headers installed in the default /usr/include location? 43267 for ac_header in cups/cups.h cups/ppd.h 43268 do : 43269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 43270 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 43271 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 43272 cat >>confdefs.h <<_ACEOF 43273 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 43274 _ACEOF 43275 43276 CUPS_FOUND=yes 43277 CUPS_CFLAGS= 43278 DEFAULT_CUPS=yes 43279 43280 43281 fi 43282 43283 done 43284 43285 fi 43286 if test "x$CUPS_FOUND" = xno; then 43287 # Getting nervous now? Lets poke around for standard Solaris third-party 43288 # package installation locations. 43289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 43290 $as_echo_n "checking for cups headers... " >&6; } 43291 if test -s /opt/sfw/cups/include/cups/cups.h; then 43292 # An SFW package seems to be installed! 43293 CUPS_FOUND=yes 43294 CUPS_CFLAGS="-I/opt/sfw/cups/include" 43295 elif test -s /opt/csw/include/cups/cups.h; then 43296 # A CSW package seems to be installed! 43297 CUPS_FOUND=yes 43298 CUPS_CFLAGS="-I/opt/csw/include" 43299 fi 43300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 43301 $as_echo "$CUPS_FOUND" >&6; } 43302 fi 43303 if test "x$CUPS_FOUND" = xno; then 43304 43305 # Print a helpful message on how to acquire the necessary build dependency. 43306 # cups is the help tag: freetype, cups, pulse, alsa etc 43307 MISSING_DEPENDENCY=cups 43308 43309 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43310 cygwin_help $MISSING_DEPENDENCY 43311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43312 msys_help $MISSING_DEPENDENCY 43313 else 43314 PKGHANDLER_COMMAND= 43315 43316 case $PKGHANDLER in 43317 apt-get) 43318 apt_help $MISSING_DEPENDENCY ;; 43319 yum) 43320 yum_help $MISSING_DEPENDENCY ;; 43321 port) 43322 port_help $MISSING_DEPENDENCY ;; 43323 pkgutil) 43324 pkgutil_help $MISSING_DEPENDENCY ;; 43325 pkgadd) 43326 pkgadd_help $MISSING_DEPENDENCY ;; 43327 esac 43328 43329 if test "x$PKGHANDLER_COMMAND" != x; then 43330 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 43331 fi 43332 fi 43333 43334 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 43335 fi 43336 fi 43337 43338 43339 43340 43341 43342 43343 ############################################################################### 43344 # 43345 # The ubiquitous freetype library is used to render fonts. 43346 # 43347 43348 # Check whether --with-freetype was given. 43349 if test "${with_freetype+set}" = set; then : 43350 withval=$with_freetype; 43351 fi 43352 43353 43354 # Check whether --with-freetype-include was given. 43355 if test "${with_freetype_include+set}" = set; then : 43356 withval=$with_freetype_include; 43357 fi 43358 43359 43360 # Check whether --with-freetype-lib was given. 43361 if test "${with_freetype_lib+set}" = set; then : 43362 withval=$with_freetype_lib; 43363 fi 43364 43365 # Check whether --enable-freetype-bundling was given. 43366 if test "${enable_freetype_bundling+set}" = set; then : 43367 enableval=$enable_freetype_bundling; 43368 fi 43369 43370 43371 FREETYPE_CFLAGS= 43372 FREETYPE_LIBS= 43373 FREETYPE_BUNDLE_LIB_PATH= 43374 43375 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 43376 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 43378 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 43379 fi 43380 if test "x$enable_freetype_bundling" != x; then 43381 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 43382 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 43383 fi 43384 else 43385 # freetype is needed to build; go get it! 43386 43387 BUNDLE_FREETYPE="$enable_freetype_bundling" 43388 43389 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 43390 # User has specified settings 43391 43392 if test "x$BUNDLE_FREETYPE" = x; then 43393 # If not specified, default is to bundle freetype 43394 BUNDLE_FREETYPE=yes 43395 fi 43396 43397 if test "x$with_freetype" != x; then 43398 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 43399 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 43400 fi 43401 43402 # Allow --with-freetype-lib and --with-freetype-include to override 43403 if test "x$with_freetype_include" != x; then 43404 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 43405 fi 43406 if test "x$with_freetype_lib" != x; then 43407 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 43408 fi 43409 43410 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 43411 # Okay, we got it. Check that it works. 43412 43413 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43414 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43415 METHOD="--with-freetype" 43416 43417 # First check if the files exists. 43418 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43419 # We found an arbitrary include file. That's a good sign. 43420 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43421 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43422 FOUND_FREETYPE=yes 43423 43424 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43425 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43426 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43427 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43428 FOUND_FREETYPE=no 43429 else 43430 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43431 # On Windows, we will need both .lib and .dll file. 43432 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43433 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43434 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43435 FOUND_FREETYPE=no 43436 fi 43437 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 43438 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43439 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43440 fi 43441 fi 43442 fi 43443 43444 if test "x$FOUND_FREETYPE" = xyes; then 43445 43446 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43447 43448 # Input might be given as Windows format, start by converting to 43449 # unix format. 43450 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43451 new_path=`$CYGPATH -u "$path"` 43452 43453 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43454 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43455 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43456 # "foo.exe" is OK but "foo" is an error. 43457 # 43458 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43459 # It is also a way to make sure we got the proper file name for the real test later on. 43460 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43461 if test "x$test_shortpath" = x; then 43462 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43463 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43464 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43465 fi 43466 43467 # Call helper function which possibly converts this using DOS-style short mode. 43468 # If so, the updated path is stored in $new_path. 43469 43470 input_path="$new_path" 43471 # Check if we need to convert this using DOS-style short mode. If the path 43472 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43473 # take no chances and rewrite it. 43474 # Note: m4 eats our [], so we need to use [ and ] instead. 43475 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43476 if test "x$has_forbidden_chars" != x; then 43477 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43478 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43479 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43480 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43481 # Going to short mode and back again did indeed matter. Since short mode is 43482 # case insensitive, let's make it lowercase to improve readability. 43483 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43484 # Now convert it back to Unix-stile (cygpath) 43485 input_path=`$CYGPATH -u "$shortmode_path"` 43486 new_path="$input_path" 43487 fi 43488 fi 43489 43490 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43491 if test "x$test_cygdrive_prefix" = x; then 43492 # As a simple fix, exclude /usr/bin since it's not a real path. 43493 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43494 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43495 # a path prefixed by /cygdrive for fixpath to work. 43496 new_path="$CYGWIN_ROOT_PATH$input_path" 43497 fi 43498 fi 43499 43500 43501 if test "x$path" != "x$new_path"; then 43502 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43503 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43504 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43505 fi 43506 43507 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43508 43509 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43510 has_colon=`$ECHO $path | $GREP ^.:` 43511 new_path="$path" 43512 if test "x$has_colon" = x; then 43513 # Not in mixed or Windows style, start by that. 43514 new_path=`cmd //c echo $path` 43515 fi 43516 43517 43518 input_path="$new_path" 43519 # Check if we need to convert this using DOS-style short mode. If the path 43520 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43521 # take no chances and rewrite it. 43522 # Note: m4 eats our [], so we need to use [ and ] instead. 43523 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43524 if test "x$has_forbidden_chars" != x; then 43525 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43526 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43527 fi 43528 43529 43530 windows_path="$new_path" 43531 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43532 unix_path=`$CYGPATH -u "$windows_path"` 43533 new_path="$unix_path" 43534 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43535 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43536 new_path="$unix_path" 43537 fi 43538 43539 if test "x$path" != "x$new_path"; then 43540 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43541 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43542 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43543 fi 43544 43545 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43546 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43547 43548 else 43549 # We're on a posix platform. Hooray! :) 43550 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43551 has_space=`$ECHO "$path" | $GREP " "` 43552 if test "x$has_space" != x; then 43553 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43554 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43555 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43556 fi 43557 43558 # Use eval to expand a potential ~ 43559 eval path="$path" 43560 if test ! -f "$path" && test ! -d "$path"; then 43561 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43562 fi 43563 43564 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43565 fi 43566 43567 43568 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43569 43570 # Input might be given as Windows format, start by converting to 43571 # unix format. 43572 path="$POTENTIAL_FREETYPE_LIB_PATH" 43573 new_path=`$CYGPATH -u "$path"` 43574 43575 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43576 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43577 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43578 # "foo.exe" is OK but "foo" is an error. 43579 # 43580 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43581 # It is also a way to make sure we got the proper file name for the real test later on. 43582 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43583 if test "x$test_shortpath" = x; then 43584 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43585 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43586 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43587 fi 43588 43589 # Call helper function which possibly converts this using DOS-style short mode. 43590 # If so, the updated path is stored in $new_path. 43591 43592 input_path="$new_path" 43593 # Check if we need to convert this using DOS-style short mode. If the path 43594 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43595 # take no chances and rewrite it. 43596 # Note: m4 eats our [], so we need to use [ and ] instead. 43597 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43598 if test "x$has_forbidden_chars" != x; then 43599 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43600 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43601 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43602 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43603 # Going to short mode and back again did indeed matter. Since short mode is 43604 # case insensitive, let's make it lowercase to improve readability. 43605 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43606 # Now convert it back to Unix-stile (cygpath) 43607 input_path=`$CYGPATH -u "$shortmode_path"` 43608 new_path="$input_path" 43609 fi 43610 fi 43611 43612 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43613 if test "x$test_cygdrive_prefix" = x; then 43614 # As a simple fix, exclude /usr/bin since it's not a real path. 43615 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43616 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43617 # a path prefixed by /cygdrive for fixpath to work. 43618 new_path="$CYGWIN_ROOT_PATH$input_path" 43619 fi 43620 fi 43621 43622 43623 if test "x$path" != "x$new_path"; then 43624 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43625 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43626 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43627 fi 43628 43629 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43630 43631 path="$POTENTIAL_FREETYPE_LIB_PATH" 43632 has_colon=`$ECHO $path | $GREP ^.:` 43633 new_path="$path" 43634 if test "x$has_colon" = x; then 43635 # Not in mixed or Windows style, start by that. 43636 new_path=`cmd //c echo $path` 43637 fi 43638 43639 43640 input_path="$new_path" 43641 # Check if we need to convert this using DOS-style short mode. If the path 43642 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43643 # take no chances and rewrite it. 43644 # Note: m4 eats our [], so we need to use [ and ] instead. 43645 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43646 if test "x$has_forbidden_chars" != x; then 43647 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43648 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43649 fi 43650 43651 43652 windows_path="$new_path" 43653 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43654 unix_path=`$CYGPATH -u "$windows_path"` 43655 new_path="$unix_path" 43656 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43657 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43658 new_path="$unix_path" 43659 fi 43660 43661 if test "x$path" != "x$new_path"; then 43662 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43663 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43664 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43665 fi 43666 43667 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43668 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43669 43670 else 43671 # We're on a posix platform. Hooray! :) 43672 path="$POTENTIAL_FREETYPE_LIB_PATH" 43673 has_space=`$ECHO "$path" | $GREP " "` 43674 if test "x$has_space" != x; then 43675 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43676 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43677 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43678 fi 43679 43680 # Use eval to expand a potential ~ 43681 eval path="$path" 43682 if test ! -f "$path" && test ! -d "$path"; then 43683 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43684 fi 43685 43686 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43687 fi 43688 43689 43690 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43692 $as_echo_n "checking for freetype includes... " >&6; } 43693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43694 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43695 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43697 $as_echo_n "checking for freetype libraries... " >&6; } 43698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43699 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43700 fi 43701 43702 if test "x$FOUND_FREETYPE" != xyes; then 43703 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 43704 fi 43705 else 43706 # User specified only one of lib or include. This is an error. 43707 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 43708 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 43709 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 43710 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 43711 else 43712 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 43713 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 43714 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 43715 fi 43716 fi 43717 else 43718 # User did not specify settings, but we need freetype. Try to locate it. 43719 43720 if test "x$BUNDLE_FREETYPE" = x; then 43721 # If not specified, default is to bundle freetype only on windows 43722 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43723 BUNDLE_FREETYPE=yes 43724 else 43725 BUNDLE_FREETYPE=no 43726 fi 43727 fi 43728 43729 if test "x$FOUND_FREETYPE" != xyes; then 43730 # Check builddeps 43731 43732 43733 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 43734 # Source the builddeps file again, to make sure it uses the latest variables! 43735 . $builddepsfile 43736 # Look for a target and build machine specific resource! 43737 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 43738 if test "x$resource" = x; then 43739 # Ok, lets instead look for a target specific resource 43740 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 43741 fi 43742 if test "x$resource" = x; then 43743 # Ok, lets instead look for a build specific resource 43744 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 43745 fi 43746 if test "x$resource" = x; then 43747 # Ok, lets instead look for a generic resource 43748 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 43749 resource=${builddep_freetype2} 43750 fi 43751 if test "x$resource" != x; then 43752 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 43753 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 43754 # If the resource in the builddeps.conf file is an existing directory, 43755 # for example /java/linux/cups 43756 if test -d ${resource}; then 43757 depdir=${resource} 43758 else 43759 43760 # freetype2 is for example mymodule 43761 # $resource is for example libs/general/libmymod_1_2_3.zip 43762 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 43763 # $with_builddeps_dir is for example /localhome/builddeps 43764 # depdir is the name of the variable into which we store the depdir, eg MYMOD 43765 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 43766 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 43767 filename=`basename $resource` 43768 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 43769 filebase=${filename%%.*} 43770 extension=${filename#*.} 43771 installdir=$with_builddeps_dir/$filebase 43772 if test ! -f $installdir/$filename.unpacked; then 43773 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 43774 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 43775 if test ! -d $installdir; then 43776 mkdir -p $installdir 43777 fi 43778 if test ! -d $installdir; then 43779 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 43780 fi 43781 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 43782 touch $tmpfile 43783 if test ! -f $tmpfile; then 43784 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 43785 fi 43786 43787 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 43788 # $tmpfile is the local file name for the downloaded file. 43789 VALID_TOOL=no 43790 if test "x$BDEPS_FTP" = xwget; then 43791 VALID_TOOL=yes 43792 wget -O $tmpfile $with_builddeps_server/$resource 43793 fi 43794 if test "x$BDEPS_FTP" = xlftp; then 43795 VALID_TOOL=yes 43796 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 43797 fi 43798 if test "x$BDEPS_FTP" = xftp; then 43799 VALID_TOOL=yes 43800 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 43801 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 43802 FTPUSERPWD=${FTPSERVER%%@*} 43803 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 43804 FTPUSER=${userpwd%%:*} 43805 FTPPWD=${userpwd#*@} 43806 FTPSERVER=${FTPSERVER#*@} 43807 else 43808 FTPUSER=ftp 43809 FTPPWD=ftp 43810 fi 43811 # the "pass" command does not work on some 43812 # ftp clients (read ftp.exe) but if it works, 43813 # passive mode is better! 43814 ( \ 43815 echo "user $FTPUSER $FTPPWD" ; \ 43816 echo "pass" ; \ 43817 echo "bin" ; \ 43818 echo "get $FTPPATH $tmpfile" ; \ 43819 ) | ftp -in $FTPSERVER 43820 fi 43821 if test "x$VALID_TOOL" != xyes; then 43822 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 43823 fi 43824 43825 mv $tmpfile $installdir/$filename 43826 if test ! -s $installdir/$filename; then 43827 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 43828 fi 43829 case "$extension" in 43830 zip) echo "Unzipping $installdir/$filename..." 43831 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 43832 ;; 43833 tar.gz) echo "Untaring $installdir/$filename..." 43834 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43835 ;; 43836 tgz) echo "Untaring $installdir/$filename..." 43837 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 43838 ;; 43839 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 43840 ;; 43841 esac 43842 fi 43843 if test -f $installdir/$filename.unpacked; then 43844 depdir=$installdir 43845 fi 43846 43847 fi 43848 # Source the builddeps file again, because in the previous command, the depdir 43849 # was updated to point at the current build dependency install directory. 43850 . $builddepsfile 43851 # Now extract variables from the builddeps.conf files. 43852 theroot=${builddep_freetype2_ROOT} 43853 thecflags=${builddep_freetype2_CFLAGS} 43854 thelibs=${builddep_freetype2_LIBS} 43855 if test "x$depdir" = x; then 43856 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 43857 fi 43858 FREETYPE=$depdir 43859 if test "x$theroot" != x; then 43860 FREETYPE="$theroot" 43861 fi 43862 if test "x$thecflags" != x; then 43863 FREETYPE_CFLAGS="$thecflags" 43864 fi 43865 if test "x$thelibs" != x; then 43866 FREETYPE_LIBS="$thelibs" 43867 fi 43868 FOUND_FREETYPE=yes 43869 else FOUND_FREETYPE=no 43870 43871 fi 43872 else FOUND_FREETYPE=no 43873 43874 fi 43875 43876 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 43877 if test "x$FOUND_FREETYPE" = xyes; then 43878 if test "x$BUNDLE_FREETYPE" = xyes; then 43879 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 43880 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 43881 FOUND_FREETYPE=no 43882 else 43883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 43884 $as_echo_n "checking for freetype... " >&6; } 43885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 43886 $as_echo "yes (using builddeps)" >&6; } 43887 fi 43888 fi 43889 fi 43890 43891 if test "x$FOUND_FREETYPE" != xyes; then 43892 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 43893 if test "x$PKG_CONFIG" != x; then 43894 43895 pkg_failed=no 43896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 43897 $as_echo_n "checking for FREETYPE... " >&6; } 43898 43899 if test -n "$FREETYPE_CFLAGS"; then 43900 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 43901 elif test -n "$PKG_CONFIG"; then 43902 if test -n "$PKG_CONFIG" && \ 43903 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 43904 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 43905 ac_status=$? 43906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 43907 test $ac_status = 0; }; then 43908 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 43909 else 43910 pkg_failed=yes 43911 fi 43912 else 43913 pkg_failed=untried 43914 fi 43915 if test -n "$FREETYPE_LIBS"; then 43916 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 43917 elif test -n "$PKG_CONFIG"; then 43918 if test -n "$PKG_CONFIG" && \ 43919 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 43920 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 43921 ac_status=$? 43922 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 43923 test $ac_status = 0; }; then 43924 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 43925 else 43926 pkg_failed=yes 43927 fi 43928 else 43929 pkg_failed=untried 43930 fi 43931 43932 43933 43934 if test $pkg_failed = yes; then 43935 43936 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 43937 _pkg_short_errors_supported=yes 43938 else 43939 _pkg_short_errors_supported=no 43940 fi 43941 if test $_pkg_short_errors_supported = yes; then 43942 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 43943 else 43944 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 43945 fi 43946 # Put the nasty error message in config.log where it belongs 43947 echo "$FREETYPE_PKG_ERRORS" >&5 43948 43949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 43950 $as_echo "no" >&6; } 43951 FOUND_FREETYPE=no 43952 elif test $pkg_failed = untried; then 43953 FOUND_FREETYPE=no 43954 else 43955 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 43956 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 43957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 43958 $as_echo "yes" >&6; } 43959 FOUND_FREETYPE=yes 43960 fi 43961 if test "x$FOUND_FREETYPE" = xyes; then 43962 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 43963 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 43964 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 43965 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 43966 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 43967 fi 43968 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 43969 if test "x$BUNDLE_FREETYPE" = xyes; then 43970 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 43971 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 43972 FOUND_FREETYPE=no 43973 else 43974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 43975 $as_echo_n "checking for freetype... " >&6; } 43976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 43977 $as_echo "yes (using pkg-config)" >&6; } 43978 fi 43979 fi 43980 fi 43981 fi 43982 43983 if test "x$FOUND_FREETYPE" != xyes; then 43984 # Check in well-known locations 43985 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43986 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 43987 43988 windows_path="$FREETYPE_BASE_DIR" 43989 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43990 unix_path=`$CYGPATH -u "$windows_path"` 43991 FREETYPE_BASE_DIR="$unix_path" 43992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43993 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43994 FREETYPE_BASE_DIR="$unix_path" 43995 fi 43996 43997 43998 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43999 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44000 METHOD="well-known location" 44001 44002 # First check if the files exists. 44003 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44004 # We found an arbitrary include file. That's a good sign. 44005 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44006 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44007 FOUND_FREETYPE=yes 44008 44009 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44010 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44011 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44012 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44013 FOUND_FREETYPE=no 44014 else 44015 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44016 # On Windows, we will need both .lib and .dll file. 44017 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44018 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44019 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44020 FOUND_FREETYPE=no 44021 fi 44022 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 44023 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44024 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44025 fi 44026 fi 44027 fi 44028 44029 if test "x$FOUND_FREETYPE" = xyes; then 44030 44031 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44032 44033 # Input might be given as Windows format, start by converting to 44034 # unix format. 44035 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44036 new_path=`$CYGPATH -u "$path"` 44037 44038 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44039 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44040 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44041 # "foo.exe" is OK but "foo" is an error. 44042 # 44043 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44044 # It is also a way to make sure we got the proper file name for the real test later on. 44045 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44046 if test "x$test_shortpath" = x; then 44047 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44048 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44049 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44050 fi 44051 44052 # Call helper function which possibly converts this using DOS-style short mode. 44053 # If so, the updated path is stored in $new_path. 44054 44055 input_path="$new_path" 44056 # Check if we need to convert this using DOS-style short mode. If the path 44057 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44058 # take no chances and rewrite it. 44059 # Note: m4 eats our [], so we need to use [ and ] instead. 44060 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44061 if test "x$has_forbidden_chars" != x; then 44062 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44063 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44064 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44065 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44066 # Going to short mode and back again did indeed matter. Since short mode is 44067 # case insensitive, let's make it lowercase to improve readability. 44068 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44069 # Now convert it back to Unix-stile (cygpath) 44070 input_path=`$CYGPATH -u "$shortmode_path"` 44071 new_path="$input_path" 44072 fi 44073 fi 44074 44075 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44076 if test "x$test_cygdrive_prefix" = x; then 44077 # As a simple fix, exclude /usr/bin since it's not a real path. 44078 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44079 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44080 # a path prefixed by /cygdrive for fixpath to work. 44081 new_path="$CYGWIN_ROOT_PATH$input_path" 44082 fi 44083 fi 44084 44085 44086 if test "x$path" != "x$new_path"; then 44087 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44088 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44089 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44090 fi 44091 44092 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44093 44094 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44095 has_colon=`$ECHO $path | $GREP ^.:` 44096 new_path="$path" 44097 if test "x$has_colon" = x; then 44098 # Not in mixed or Windows style, start by that. 44099 new_path=`cmd //c echo $path` 44100 fi 44101 44102 44103 input_path="$new_path" 44104 # Check if we need to convert this using DOS-style short mode. If the path 44105 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44106 # take no chances and rewrite it. 44107 # Note: m4 eats our [], so we need to use [ and ] instead. 44108 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44109 if test "x$has_forbidden_chars" != x; then 44110 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44111 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44112 fi 44113 44114 44115 windows_path="$new_path" 44116 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44117 unix_path=`$CYGPATH -u "$windows_path"` 44118 new_path="$unix_path" 44119 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44120 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44121 new_path="$unix_path" 44122 fi 44123 44124 if test "x$path" != "x$new_path"; then 44125 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44126 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44127 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44128 fi 44129 44130 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44131 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44132 44133 else 44134 # We're on a posix platform. Hooray! :) 44135 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44136 has_space=`$ECHO "$path" | $GREP " "` 44137 if test "x$has_space" != x; then 44138 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44139 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44140 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44141 fi 44142 44143 # Use eval to expand a potential ~ 44144 eval path="$path" 44145 if test ! -f "$path" && test ! -d "$path"; then 44146 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44147 fi 44148 44149 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44150 fi 44151 44152 44153 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44154 44155 # Input might be given as Windows format, start by converting to 44156 # unix format. 44157 path="$POTENTIAL_FREETYPE_LIB_PATH" 44158 new_path=`$CYGPATH -u "$path"` 44159 44160 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44161 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44162 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44163 # "foo.exe" is OK but "foo" is an error. 44164 # 44165 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44166 # It is also a way to make sure we got the proper file name for the real test later on. 44167 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44168 if test "x$test_shortpath" = x; then 44169 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44170 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44171 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44172 fi 44173 44174 # Call helper function which possibly converts this using DOS-style short mode. 44175 # If so, the updated path is stored in $new_path. 44176 44177 input_path="$new_path" 44178 # Check if we need to convert this using DOS-style short mode. If the path 44179 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44180 # take no chances and rewrite it. 44181 # Note: m4 eats our [], so we need to use [ and ] instead. 44182 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44183 if test "x$has_forbidden_chars" != x; then 44184 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44185 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44186 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44187 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44188 # Going to short mode and back again did indeed matter. Since short mode is 44189 # case insensitive, let's make it lowercase to improve readability. 44190 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44191 # Now convert it back to Unix-stile (cygpath) 44192 input_path=`$CYGPATH -u "$shortmode_path"` 44193 new_path="$input_path" 44194 fi 44195 fi 44196 44197 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44198 if test "x$test_cygdrive_prefix" = x; then 44199 # As a simple fix, exclude /usr/bin since it's not a real path. 44200 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44201 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44202 # a path prefixed by /cygdrive for fixpath to work. 44203 new_path="$CYGWIN_ROOT_PATH$input_path" 44204 fi 44205 fi 44206 44207 44208 if test "x$path" != "x$new_path"; then 44209 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44210 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44211 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44212 fi 44213 44214 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44215 44216 path="$POTENTIAL_FREETYPE_LIB_PATH" 44217 has_colon=`$ECHO $path | $GREP ^.:` 44218 new_path="$path" 44219 if test "x$has_colon" = x; then 44220 # Not in mixed or Windows style, start by that. 44221 new_path=`cmd //c echo $path` 44222 fi 44223 44224 44225 input_path="$new_path" 44226 # Check if we need to convert this using DOS-style short mode. If the path 44227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44228 # take no chances and rewrite it. 44229 # Note: m4 eats our [], so we need to use [ and ] instead. 44230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44231 if test "x$has_forbidden_chars" != x; then 44232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44234 fi 44235 44236 44237 windows_path="$new_path" 44238 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44239 unix_path=`$CYGPATH -u "$windows_path"` 44240 new_path="$unix_path" 44241 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44242 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44243 new_path="$unix_path" 44244 fi 44245 44246 if test "x$path" != "x$new_path"; then 44247 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44248 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44249 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44250 fi 44251 44252 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44253 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44254 44255 else 44256 # We're on a posix platform. Hooray! :) 44257 path="$POTENTIAL_FREETYPE_LIB_PATH" 44258 has_space=`$ECHO "$path" | $GREP " "` 44259 if test "x$has_space" != x; then 44260 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44261 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44262 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44263 fi 44264 44265 # Use eval to expand a potential ~ 44266 eval path="$path" 44267 if test ! -f "$path" && test ! -d "$path"; then 44268 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44269 fi 44270 44271 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44272 fi 44273 44274 44275 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44277 $as_echo_n "checking for freetype includes... " >&6; } 44278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44279 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44280 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44282 $as_echo_n "checking for freetype libraries... " >&6; } 44283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44284 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44285 fi 44286 44287 if test "x$FOUND_FREETYPE" != xyes; then 44288 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 44289 44290 windows_path="$FREETYPE_BASE_DIR" 44291 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44292 unix_path=`$CYGPATH -u "$windows_path"` 44293 FREETYPE_BASE_DIR="$unix_path" 44294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44295 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44296 FREETYPE_BASE_DIR="$unix_path" 44297 fi 44298 44299 44300 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44301 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44302 METHOD="well-known location" 44303 44304 # First check if the files exists. 44305 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44306 # We found an arbitrary include file. That's a good sign. 44307 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44308 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44309 FOUND_FREETYPE=yes 44310 44311 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44312 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44313 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44314 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44315 FOUND_FREETYPE=no 44316 else 44317 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44318 # On Windows, we will need both .lib and .dll file. 44319 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44320 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44321 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44322 FOUND_FREETYPE=no 44323 fi 44324 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 44325 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44326 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44327 fi 44328 fi 44329 fi 44330 44331 if test "x$FOUND_FREETYPE" = xyes; then 44332 44333 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44334 44335 # Input might be given as Windows format, start by converting to 44336 # unix format. 44337 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44338 new_path=`$CYGPATH -u "$path"` 44339 44340 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44341 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44342 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44343 # "foo.exe" is OK but "foo" is an error. 44344 # 44345 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44346 # It is also a way to make sure we got the proper file name for the real test later on. 44347 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44348 if test "x$test_shortpath" = x; then 44349 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44350 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44351 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44352 fi 44353 44354 # Call helper function which possibly converts this using DOS-style short mode. 44355 # If so, the updated path is stored in $new_path. 44356 44357 input_path="$new_path" 44358 # Check if we need to convert this using DOS-style short mode. If the path 44359 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44360 # take no chances and rewrite it. 44361 # Note: m4 eats our [], so we need to use [ and ] instead. 44362 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44363 if test "x$has_forbidden_chars" != x; then 44364 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44365 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44366 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44367 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44368 # Going to short mode and back again did indeed matter. Since short mode is 44369 # case insensitive, let's make it lowercase to improve readability. 44370 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44371 # Now convert it back to Unix-stile (cygpath) 44372 input_path=`$CYGPATH -u "$shortmode_path"` 44373 new_path="$input_path" 44374 fi 44375 fi 44376 44377 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44378 if test "x$test_cygdrive_prefix" = x; then 44379 # As a simple fix, exclude /usr/bin since it's not a real path. 44380 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44381 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44382 # a path prefixed by /cygdrive for fixpath to work. 44383 new_path="$CYGWIN_ROOT_PATH$input_path" 44384 fi 44385 fi 44386 44387 44388 if test "x$path" != "x$new_path"; then 44389 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44390 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44391 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44392 fi 44393 44394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44395 44396 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44397 has_colon=`$ECHO $path | $GREP ^.:` 44398 new_path="$path" 44399 if test "x$has_colon" = x; then 44400 # Not in mixed or Windows style, start by that. 44401 new_path=`cmd //c echo $path` 44402 fi 44403 44404 44405 input_path="$new_path" 44406 # Check if we need to convert this using DOS-style short mode. If the path 44407 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44408 # take no chances and rewrite it. 44409 # Note: m4 eats our [], so we need to use [ and ] instead. 44410 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44411 if test "x$has_forbidden_chars" != x; then 44412 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44413 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44414 fi 44415 44416 44417 windows_path="$new_path" 44418 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44419 unix_path=`$CYGPATH -u "$windows_path"` 44420 new_path="$unix_path" 44421 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44422 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44423 new_path="$unix_path" 44424 fi 44425 44426 if test "x$path" != "x$new_path"; then 44427 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44428 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44429 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44430 fi 44431 44432 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44433 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44434 44435 else 44436 # We're on a posix platform. Hooray! :) 44437 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44438 has_space=`$ECHO "$path" | $GREP " "` 44439 if test "x$has_space" != x; then 44440 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44441 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44442 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44443 fi 44444 44445 # Use eval to expand a potential ~ 44446 eval path="$path" 44447 if test ! -f "$path" && test ! -d "$path"; then 44448 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44449 fi 44450 44451 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44452 fi 44453 44454 44455 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44456 44457 # Input might be given as Windows format, start by converting to 44458 # unix format. 44459 path="$POTENTIAL_FREETYPE_LIB_PATH" 44460 new_path=`$CYGPATH -u "$path"` 44461 44462 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44463 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44464 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44465 # "foo.exe" is OK but "foo" is an error. 44466 # 44467 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44468 # It is also a way to make sure we got the proper file name for the real test later on. 44469 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44470 if test "x$test_shortpath" = x; then 44471 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44472 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44473 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44474 fi 44475 44476 # Call helper function which possibly converts this using DOS-style short mode. 44477 # If so, the updated path is stored in $new_path. 44478 44479 input_path="$new_path" 44480 # Check if we need to convert this using DOS-style short mode. If the path 44481 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44482 # take no chances and rewrite it. 44483 # Note: m4 eats our [], so we need to use [ and ] instead. 44484 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44485 if test "x$has_forbidden_chars" != x; then 44486 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44487 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44488 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44489 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44490 # Going to short mode and back again did indeed matter. Since short mode is 44491 # case insensitive, let's make it lowercase to improve readability. 44492 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44493 # Now convert it back to Unix-stile (cygpath) 44494 input_path=`$CYGPATH -u "$shortmode_path"` 44495 new_path="$input_path" 44496 fi 44497 fi 44498 44499 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44500 if test "x$test_cygdrive_prefix" = x; then 44501 # As a simple fix, exclude /usr/bin since it's not a real path. 44502 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44503 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44504 # a path prefixed by /cygdrive for fixpath to work. 44505 new_path="$CYGWIN_ROOT_PATH$input_path" 44506 fi 44507 fi 44508 44509 44510 if test "x$path" != "x$new_path"; then 44511 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44512 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44513 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44514 fi 44515 44516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44517 44518 path="$POTENTIAL_FREETYPE_LIB_PATH" 44519 has_colon=`$ECHO $path | $GREP ^.:` 44520 new_path="$path" 44521 if test "x$has_colon" = x; then 44522 # Not in mixed or Windows style, start by that. 44523 new_path=`cmd //c echo $path` 44524 fi 44525 44526 44527 input_path="$new_path" 44528 # Check if we need to convert this using DOS-style short mode. If the path 44529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44530 # take no chances and rewrite it. 44531 # Note: m4 eats our [], so we need to use [ and ] instead. 44532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44533 if test "x$has_forbidden_chars" != x; then 44534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44535 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44536 fi 44537 44538 44539 windows_path="$new_path" 44540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44541 unix_path=`$CYGPATH -u "$windows_path"` 44542 new_path="$unix_path" 44543 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44544 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44545 new_path="$unix_path" 44546 fi 44547 44548 if test "x$path" != "x$new_path"; then 44549 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44550 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44551 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44552 fi 44553 44554 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44555 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44556 44557 else 44558 # We're on a posix platform. Hooray! :) 44559 path="$POTENTIAL_FREETYPE_LIB_PATH" 44560 has_space=`$ECHO "$path" | $GREP " "` 44561 if test "x$has_space" != x; then 44562 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44563 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44564 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44565 fi 44566 44567 # Use eval to expand a potential ~ 44568 eval path="$path" 44569 if test ! -f "$path" && test ! -d "$path"; then 44570 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44571 fi 44572 44573 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44574 fi 44575 44576 44577 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44579 $as_echo_n "checking for freetype includes... " >&6; } 44580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44581 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44582 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44584 $as_echo_n "checking for freetype libraries... " >&6; } 44585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44586 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44587 fi 44588 44589 fi 44590 else 44591 if test "x$SYS_ROOT" = "x/"; then 44592 FREETYPE_ROOT= 44593 else 44594 FREETYPE_ROOT="$SYS_ROOT" 44595 fi 44596 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 44597 44598 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44599 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44600 METHOD="well-known location" 44601 44602 # First check if the files exists. 44603 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44604 # We found an arbitrary include file. That's a good sign. 44605 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44606 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44607 FOUND_FREETYPE=yes 44608 44609 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44610 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44611 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44612 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44613 FOUND_FREETYPE=no 44614 else 44615 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44616 # On Windows, we will need both .lib and .dll file. 44617 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44618 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44619 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44620 FOUND_FREETYPE=no 44621 fi 44622 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 44623 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44624 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44625 fi 44626 fi 44627 fi 44628 44629 if test "x$FOUND_FREETYPE" = xyes; then 44630 44631 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44632 44633 # Input might be given as Windows format, start by converting to 44634 # unix format. 44635 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44636 new_path=`$CYGPATH -u "$path"` 44637 44638 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44639 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44640 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44641 # "foo.exe" is OK but "foo" is an error. 44642 # 44643 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44644 # It is also a way to make sure we got the proper file name for the real test later on. 44645 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44646 if test "x$test_shortpath" = x; then 44647 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44648 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44649 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44650 fi 44651 44652 # Call helper function which possibly converts this using DOS-style short mode. 44653 # If so, the updated path is stored in $new_path. 44654 44655 input_path="$new_path" 44656 # Check if we need to convert this using DOS-style short mode. If the path 44657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44658 # take no chances and rewrite it. 44659 # Note: m4 eats our [], so we need to use [ and ] instead. 44660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44661 if test "x$has_forbidden_chars" != x; then 44662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44663 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44664 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44665 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44666 # Going to short mode and back again did indeed matter. Since short mode is 44667 # case insensitive, let's make it lowercase to improve readability. 44668 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44669 # Now convert it back to Unix-stile (cygpath) 44670 input_path=`$CYGPATH -u "$shortmode_path"` 44671 new_path="$input_path" 44672 fi 44673 fi 44674 44675 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44676 if test "x$test_cygdrive_prefix" = x; then 44677 # As a simple fix, exclude /usr/bin since it's not a real path. 44678 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44679 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44680 # a path prefixed by /cygdrive for fixpath to work. 44681 new_path="$CYGWIN_ROOT_PATH$input_path" 44682 fi 44683 fi 44684 44685 44686 if test "x$path" != "x$new_path"; then 44687 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44688 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44689 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44690 fi 44691 44692 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44693 44694 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44695 has_colon=`$ECHO $path | $GREP ^.:` 44696 new_path="$path" 44697 if test "x$has_colon" = x; then 44698 # Not in mixed or Windows style, start by that. 44699 new_path=`cmd //c echo $path` 44700 fi 44701 44702 44703 input_path="$new_path" 44704 # Check if we need to convert this using DOS-style short mode. If the path 44705 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44706 # take no chances and rewrite it. 44707 # Note: m4 eats our [], so we need to use [ and ] instead. 44708 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44709 if test "x$has_forbidden_chars" != x; then 44710 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44711 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44712 fi 44713 44714 44715 windows_path="$new_path" 44716 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44717 unix_path=`$CYGPATH -u "$windows_path"` 44718 new_path="$unix_path" 44719 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44720 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44721 new_path="$unix_path" 44722 fi 44723 44724 if test "x$path" != "x$new_path"; then 44725 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44726 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44727 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44728 fi 44729 44730 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44731 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44732 44733 else 44734 # We're on a posix platform. Hooray! :) 44735 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44736 has_space=`$ECHO "$path" | $GREP " "` 44737 if test "x$has_space" != x; then 44738 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44739 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44740 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44741 fi 44742 44743 # Use eval to expand a potential ~ 44744 eval path="$path" 44745 if test ! -f "$path" && test ! -d "$path"; then 44746 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44747 fi 44748 44749 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44750 fi 44751 44752 44753 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44754 44755 # Input might be given as Windows format, start by converting to 44756 # unix format. 44757 path="$POTENTIAL_FREETYPE_LIB_PATH" 44758 new_path=`$CYGPATH -u "$path"` 44759 44760 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44761 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44762 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44763 # "foo.exe" is OK but "foo" is an error. 44764 # 44765 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44766 # It is also a way to make sure we got the proper file name for the real test later on. 44767 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44768 if test "x$test_shortpath" = x; then 44769 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44770 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44771 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44772 fi 44773 44774 # Call helper function which possibly converts this using DOS-style short mode. 44775 # If so, the updated path is stored in $new_path. 44776 44777 input_path="$new_path" 44778 # Check if we need to convert this using DOS-style short mode. If the path 44779 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44780 # take no chances and rewrite it. 44781 # Note: m4 eats our [], so we need to use [ and ] instead. 44782 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44783 if test "x$has_forbidden_chars" != x; then 44784 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44785 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44786 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44787 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44788 # Going to short mode and back again did indeed matter. Since short mode is 44789 # case insensitive, let's make it lowercase to improve readability. 44790 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44791 # Now convert it back to Unix-stile (cygpath) 44792 input_path=`$CYGPATH -u "$shortmode_path"` 44793 new_path="$input_path" 44794 fi 44795 fi 44796 44797 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44798 if test "x$test_cygdrive_prefix" = x; then 44799 # As a simple fix, exclude /usr/bin since it's not a real path. 44800 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44801 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44802 # a path prefixed by /cygdrive for fixpath to work. 44803 new_path="$CYGWIN_ROOT_PATH$input_path" 44804 fi 44805 fi 44806 44807 44808 if test "x$path" != "x$new_path"; then 44809 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44810 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44811 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44812 fi 44813 44814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44815 44816 path="$POTENTIAL_FREETYPE_LIB_PATH" 44817 has_colon=`$ECHO $path | $GREP ^.:` 44818 new_path="$path" 44819 if test "x$has_colon" = x; then 44820 # Not in mixed or Windows style, start by that. 44821 new_path=`cmd //c echo $path` 44822 fi 44823 44824 44825 input_path="$new_path" 44826 # Check if we need to convert this using DOS-style short mode. If the path 44827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44828 # take no chances and rewrite it. 44829 # Note: m4 eats our [], so we need to use [ and ] instead. 44830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44831 if test "x$has_forbidden_chars" != x; then 44832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44833 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44834 fi 44835 44836 44837 windows_path="$new_path" 44838 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44839 unix_path=`$CYGPATH -u "$windows_path"` 44840 new_path="$unix_path" 44841 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44842 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44843 new_path="$unix_path" 44844 fi 44845 44846 if test "x$path" != "x$new_path"; then 44847 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44848 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44849 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44850 fi 44851 44852 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44853 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44854 44855 else 44856 # We're on a posix platform. Hooray! :) 44857 path="$POTENTIAL_FREETYPE_LIB_PATH" 44858 has_space=`$ECHO "$path" | $GREP " "` 44859 if test "x$has_space" != x; then 44860 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44861 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44862 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44863 fi 44864 44865 # Use eval to expand a potential ~ 44866 eval path="$path" 44867 if test ! -f "$path" && test ! -d "$path"; then 44868 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44869 fi 44870 44871 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44872 fi 44873 44874 44875 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44877 $as_echo_n "checking for freetype includes... " >&6; } 44878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44879 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44880 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44882 $as_echo_n "checking for freetype libraries... " >&6; } 44883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44884 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44885 fi 44886 44887 44888 if test "x$FOUND_FREETYPE" != xyes; then 44889 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11" 44890 44891 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44892 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 44893 METHOD="well-known location" 44894 44895 # First check if the files exists. 44896 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44897 # We found an arbitrary include file. That's a good sign. 44898 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44899 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44900 FOUND_FREETYPE=yes 44901 44902 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44903 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44904 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44905 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44906 FOUND_FREETYPE=no 44907 else 44908 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44909 # On Windows, we will need both .lib and .dll file. 44910 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44911 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44912 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44913 FOUND_FREETYPE=no 44914 fi 44915 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 44916 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44917 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44918 fi 44919 fi 44920 fi 44921 44922 if test "x$FOUND_FREETYPE" = xyes; then 44923 44924 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44925 44926 # Input might be given as Windows format, start by converting to 44927 # unix format. 44928 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44929 new_path=`$CYGPATH -u "$path"` 44930 44931 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44932 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44933 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44934 # "foo.exe" is OK but "foo" is an error. 44935 # 44936 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44937 # It is also a way to make sure we got the proper file name for the real test later on. 44938 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44939 if test "x$test_shortpath" = x; then 44940 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44941 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44942 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44943 fi 44944 44945 # Call helper function which possibly converts this using DOS-style short mode. 44946 # If so, the updated path is stored in $new_path. 44947 44948 input_path="$new_path" 44949 # Check if we need to convert this using DOS-style short mode. If the path 44950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44951 # take no chances and rewrite it. 44952 # Note: m4 eats our [], so we need to use [ and ] instead. 44953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44954 if test "x$has_forbidden_chars" != x; then 44955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44956 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44957 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44958 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44959 # Going to short mode and back again did indeed matter. Since short mode is 44960 # case insensitive, let's make it lowercase to improve readability. 44961 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44962 # Now convert it back to Unix-stile (cygpath) 44963 input_path=`$CYGPATH -u "$shortmode_path"` 44964 new_path="$input_path" 44965 fi 44966 fi 44967 44968 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44969 if test "x$test_cygdrive_prefix" = x; then 44970 # As a simple fix, exclude /usr/bin since it's not a real path. 44971 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44972 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44973 # a path prefixed by /cygdrive for fixpath to work. 44974 new_path="$CYGWIN_ROOT_PATH$input_path" 44975 fi 44976 fi 44977 44978 44979 if test "x$path" != "x$new_path"; then 44980 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44981 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44982 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44983 fi 44984 44985 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44986 44987 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44988 has_colon=`$ECHO $path | $GREP ^.:` 44989 new_path="$path" 44990 if test "x$has_colon" = x; then 44991 # Not in mixed or Windows style, start by that. 44992 new_path=`cmd //c echo $path` 44993 fi 44994 44995 44996 input_path="$new_path" 44997 # Check if we need to convert this using DOS-style short mode. If the path 44998 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44999 # take no chances and rewrite it. 45000 # Note: m4 eats our [], so we need to use [ and ] instead. 45001 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45002 if test "x$has_forbidden_chars" != x; then 45003 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45004 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45005 fi 45006 45007 45008 windows_path="$new_path" 45009 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45010 unix_path=`$CYGPATH -u "$windows_path"` 45011 new_path="$unix_path" 45012 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45013 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45014 new_path="$unix_path" 45015 fi 45016 45017 if test "x$path" != "x$new_path"; then 45018 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45019 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45020 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45021 fi 45022 45023 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45024 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45025 45026 else 45027 # We're on a posix platform. Hooray! :) 45028 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45029 has_space=`$ECHO "$path" | $GREP " "` 45030 if test "x$has_space" != x; then 45031 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45032 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45033 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45034 fi 45035 45036 # Use eval to expand a potential ~ 45037 eval path="$path" 45038 if test ! -f "$path" && test ! -d "$path"; then 45039 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45040 fi 45041 45042 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45043 fi 45044 45045 45046 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45047 45048 # Input might be given as Windows format, start by converting to 45049 # unix format. 45050 path="$POTENTIAL_FREETYPE_LIB_PATH" 45051 new_path=`$CYGPATH -u "$path"` 45052 45053 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45054 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45055 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45056 # "foo.exe" is OK but "foo" is an error. 45057 # 45058 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45059 # It is also a way to make sure we got the proper file name for the real test later on. 45060 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45061 if test "x$test_shortpath" = x; then 45062 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45063 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45064 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45065 fi 45066 45067 # Call helper function which possibly converts this using DOS-style short mode. 45068 # If so, the updated path is stored in $new_path. 45069 45070 input_path="$new_path" 45071 # Check if we need to convert this using DOS-style short mode. If the path 45072 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45073 # take no chances and rewrite it. 45074 # Note: m4 eats our [], so we need to use [ and ] instead. 45075 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45076 if test "x$has_forbidden_chars" != x; then 45077 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45078 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45079 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45080 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45081 # Going to short mode and back again did indeed matter. Since short mode is 45082 # case insensitive, let's make it lowercase to improve readability. 45083 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45084 # Now convert it back to Unix-stile (cygpath) 45085 input_path=`$CYGPATH -u "$shortmode_path"` 45086 new_path="$input_path" 45087 fi 45088 fi 45089 45090 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45091 if test "x$test_cygdrive_prefix" = x; then 45092 # As a simple fix, exclude /usr/bin since it's not a real path. 45093 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45094 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45095 # a path prefixed by /cygdrive for fixpath to work. 45096 new_path="$CYGWIN_ROOT_PATH$input_path" 45097 fi 45098 fi 45099 45100 45101 if test "x$path" != "x$new_path"; then 45102 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45103 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45104 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45105 fi 45106 45107 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45108 45109 path="$POTENTIAL_FREETYPE_LIB_PATH" 45110 has_colon=`$ECHO $path | $GREP ^.:` 45111 new_path="$path" 45112 if test "x$has_colon" = x; then 45113 # Not in mixed or Windows style, start by that. 45114 new_path=`cmd //c echo $path` 45115 fi 45116 45117 45118 input_path="$new_path" 45119 # Check if we need to convert this using DOS-style short mode. If the path 45120 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45121 # take no chances and rewrite it. 45122 # Note: m4 eats our [], so we need to use [ and ] instead. 45123 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45124 if test "x$has_forbidden_chars" != x; then 45125 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45126 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45127 fi 45128 45129 45130 windows_path="$new_path" 45131 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45132 unix_path=`$CYGPATH -u "$windows_path"` 45133 new_path="$unix_path" 45134 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45135 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45136 new_path="$unix_path" 45137 fi 45138 45139 if test "x$path" != "x$new_path"; then 45140 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45141 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45142 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45143 fi 45144 45145 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45146 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45147 45148 else 45149 # We're on a posix platform. Hooray! :) 45150 path="$POTENTIAL_FREETYPE_LIB_PATH" 45151 has_space=`$ECHO "$path" | $GREP " "` 45152 if test "x$has_space" != x; then 45153 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45154 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45155 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45156 fi 45157 45158 # Use eval to expand a potential ~ 45159 eval path="$path" 45160 if test ! -f "$path" && test ! -d "$path"; then 45161 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45162 fi 45163 45164 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45165 fi 45166 45167 45168 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45170 $as_echo_n "checking for freetype includes... " >&6; } 45171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45172 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45173 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45175 $as_echo_n "checking for freetype libraries... " >&6; } 45176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45177 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45178 fi 45179 45180 fi 45181 45182 if test "x$FOUND_FREETYPE" != xyes; then 45183 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 45184 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 45185 45186 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45187 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 45188 METHOD="well-known location" 45189 45190 # First check if the files exists. 45191 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45192 # We found an arbitrary include file. That's a good sign. 45193 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45194 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45195 FOUND_FREETYPE=yes 45196 45197 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45198 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45199 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45200 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45201 FOUND_FREETYPE=no 45202 else 45203 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45204 # On Windows, we will need both .lib and .dll file. 45205 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45206 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45207 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45208 FOUND_FREETYPE=no 45209 fi 45210 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 45211 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45212 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45213 fi 45214 fi 45215 fi 45216 45217 if test "x$FOUND_FREETYPE" = xyes; then 45218 45219 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45220 45221 # Input might be given as Windows format, start by converting to 45222 # unix format. 45223 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45224 new_path=`$CYGPATH -u "$path"` 45225 45226 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45227 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45228 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45229 # "foo.exe" is OK but "foo" is an error. 45230 # 45231 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45232 # It is also a way to make sure we got the proper file name for the real test later on. 45233 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45234 if test "x$test_shortpath" = x; then 45235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45236 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45237 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45238 fi 45239 45240 # Call helper function which possibly converts this using DOS-style short mode. 45241 # If so, the updated path is stored in $new_path. 45242 45243 input_path="$new_path" 45244 # Check if we need to convert this using DOS-style short mode. If the path 45245 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45246 # take no chances and rewrite it. 45247 # Note: m4 eats our [], so we need to use [ and ] instead. 45248 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45249 if test "x$has_forbidden_chars" != x; then 45250 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45251 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45252 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45253 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45254 # Going to short mode and back again did indeed matter. Since short mode is 45255 # case insensitive, let's make it lowercase to improve readability. 45256 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45257 # Now convert it back to Unix-stile (cygpath) 45258 input_path=`$CYGPATH -u "$shortmode_path"` 45259 new_path="$input_path" 45260 fi 45261 fi 45262 45263 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45264 if test "x$test_cygdrive_prefix" = x; then 45265 # As a simple fix, exclude /usr/bin since it's not a real path. 45266 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45267 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45268 # a path prefixed by /cygdrive for fixpath to work. 45269 new_path="$CYGWIN_ROOT_PATH$input_path" 45270 fi 45271 fi 45272 45273 45274 if test "x$path" != "x$new_path"; then 45275 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45276 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45277 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45278 fi 45279 45280 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45281 45282 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45283 has_colon=`$ECHO $path | $GREP ^.:` 45284 new_path="$path" 45285 if test "x$has_colon" = x; then 45286 # Not in mixed or Windows style, start by that. 45287 new_path=`cmd //c echo $path` 45288 fi 45289 45290 45291 input_path="$new_path" 45292 # Check if we need to convert this using DOS-style short mode. If the path 45293 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45294 # take no chances and rewrite it. 45295 # Note: m4 eats our [], so we need to use [ and ] instead. 45296 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45297 if test "x$has_forbidden_chars" != x; then 45298 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45299 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45300 fi 45301 45302 45303 windows_path="$new_path" 45304 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45305 unix_path=`$CYGPATH -u "$windows_path"` 45306 new_path="$unix_path" 45307 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45308 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45309 new_path="$unix_path" 45310 fi 45311 45312 if test "x$path" != "x$new_path"; then 45313 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45314 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45315 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45316 fi 45317 45318 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45319 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45320 45321 else 45322 # We're on a posix platform. Hooray! :) 45323 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45324 has_space=`$ECHO "$path" | $GREP " "` 45325 if test "x$has_space" != x; then 45326 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45327 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45328 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45329 fi 45330 45331 # Use eval to expand a potential ~ 45332 eval path="$path" 45333 if test ! -f "$path" && test ! -d "$path"; then 45334 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45335 fi 45336 45337 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45338 fi 45339 45340 45341 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45342 45343 # Input might be given as Windows format, start by converting to 45344 # unix format. 45345 path="$POTENTIAL_FREETYPE_LIB_PATH" 45346 new_path=`$CYGPATH -u "$path"` 45347 45348 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45349 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45350 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45351 # "foo.exe" is OK but "foo" is an error. 45352 # 45353 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45354 # It is also a way to make sure we got the proper file name for the real test later on. 45355 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45356 if test "x$test_shortpath" = x; then 45357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45358 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45359 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45360 fi 45361 45362 # Call helper function which possibly converts this using DOS-style short mode. 45363 # If so, the updated path is stored in $new_path. 45364 45365 input_path="$new_path" 45366 # Check if we need to convert this using DOS-style short mode. If the path 45367 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45368 # take no chances and rewrite it. 45369 # Note: m4 eats our [], so we need to use [ and ] instead. 45370 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45371 if test "x$has_forbidden_chars" != x; then 45372 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45373 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45374 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45375 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45376 # Going to short mode and back again did indeed matter. Since short mode is 45377 # case insensitive, let's make it lowercase to improve readability. 45378 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45379 # Now convert it back to Unix-stile (cygpath) 45380 input_path=`$CYGPATH -u "$shortmode_path"` 45381 new_path="$input_path" 45382 fi 45383 fi 45384 45385 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45386 if test "x$test_cygdrive_prefix" = x; then 45387 # As a simple fix, exclude /usr/bin since it's not a real path. 45388 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45389 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45390 # a path prefixed by /cygdrive for fixpath to work. 45391 new_path="$CYGWIN_ROOT_PATH$input_path" 45392 fi 45393 fi 45394 45395 45396 if test "x$path" != "x$new_path"; then 45397 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45398 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45399 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45400 fi 45401 45402 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45403 45404 path="$POTENTIAL_FREETYPE_LIB_PATH" 45405 has_colon=`$ECHO $path | $GREP ^.:` 45406 new_path="$path" 45407 if test "x$has_colon" = x; then 45408 # Not in mixed or Windows style, start by that. 45409 new_path=`cmd //c echo $path` 45410 fi 45411 45412 45413 input_path="$new_path" 45414 # Check if we need to convert this using DOS-style short mode. If the path 45415 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45416 # take no chances and rewrite it. 45417 # Note: m4 eats our [], so we need to use [ and ] instead. 45418 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45419 if test "x$has_forbidden_chars" != x; then 45420 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45421 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45422 fi 45423 45424 45425 windows_path="$new_path" 45426 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45427 unix_path=`$CYGPATH -u "$windows_path"` 45428 new_path="$unix_path" 45429 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45430 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45431 new_path="$unix_path" 45432 fi 45433 45434 if test "x$path" != "x$new_path"; then 45435 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45436 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45437 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45438 fi 45439 45440 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45441 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45442 45443 else 45444 # We're on a posix platform. Hooray! :) 45445 path="$POTENTIAL_FREETYPE_LIB_PATH" 45446 has_space=`$ECHO "$path" | $GREP " "` 45447 if test "x$has_space" != x; then 45448 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45449 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45450 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45451 fi 45452 45453 # Use eval to expand a potential ~ 45454 eval path="$path" 45455 if test ! -f "$path" && test ! -d "$path"; then 45456 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45457 fi 45458 45459 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45460 fi 45461 45462 45463 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45465 $as_echo_n "checking for freetype includes... " >&6; } 45466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45467 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45468 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45470 $as_echo_n "checking for freetype libraries... " >&6; } 45471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45472 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45473 fi 45474 45475 else 45476 45477 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45478 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 45479 METHOD="well-known location" 45480 45481 # First check if the files exists. 45482 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45483 # We found an arbitrary include file. That's a good sign. 45484 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45485 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45486 FOUND_FREETYPE=yes 45487 45488 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45489 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45490 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45491 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45492 FOUND_FREETYPE=no 45493 else 45494 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45495 # On Windows, we will need both .lib and .dll file. 45496 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45497 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45498 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45499 FOUND_FREETYPE=no 45500 fi 45501 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 45502 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45503 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45504 fi 45505 fi 45506 fi 45507 45508 if test "x$FOUND_FREETYPE" = xyes; then 45509 45510 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45511 45512 # Input might be given as Windows format, start by converting to 45513 # unix format. 45514 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45515 new_path=`$CYGPATH -u "$path"` 45516 45517 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45518 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45519 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45520 # "foo.exe" is OK but "foo" is an error. 45521 # 45522 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45523 # It is also a way to make sure we got the proper file name for the real test later on. 45524 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45525 if test "x$test_shortpath" = x; then 45526 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45527 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45528 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45529 fi 45530 45531 # Call helper function which possibly converts this using DOS-style short mode. 45532 # If so, the updated path is stored in $new_path. 45533 45534 input_path="$new_path" 45535 # Check if we need to convert this using DOS-style short mode. If the path 45536 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45537 # take no chances and rewrite it. 45538 # Note: m4 eats our [], so we need to use [ and ] instead. 45539 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45540 if test "x$has_forbidden_chars" != x; then 45541 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45542 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45543 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45544 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45545 # Going to short mode and back again did indeed matter. Since short mode is 45546 # case insensitive, let's make it lowercase to improve readability. 45547 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45548 # Now convert it back to Unix-stile (cygpath) 45549 input_path=`$CYGPATH -u "$shortmode_path"` 45550 new_path="$input_path" 45551 fi 45552 fi 45553 45554 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45555 if test "x$test_cygdrive_prefix" = x; then 45556 # As a simple fix, exclude /usr/bin since it's not a real path. 45557 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45558 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45559 # a path prefixed by /cygdrive for fixpath to work. 45560 new_path="$CYGWIN_ROOT_PATH$input_path" 45561 fi 45562 fi 45563 45564 45565 if test "x$path" != "x$new_path"; then 45566 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45567 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45568 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45569 fi 45570 45571 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45572 45573 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45574 has_colon=`$ECHO $path | $GREP ^.:` 45575 new_path="$path" 45576 if test "x$has_colon" = x; then 45577 # Not in mixed or Windows style, start by that. 45578 new_path=`cmd //c echo $path` 45579 fi 45580 45581 45582 input_path="$new_path" 45583 # Check if we need to convert this using DOS-style short mode. If the path 45584 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45585 # take no chances and rewrite it. 45586 # Note: m4 eats our [], so we need to use [ and ] instead. 45587 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45588 if test "x$has_forbidden_chars" != x; then 45589 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45590 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45591 fi 45592 45593 45594 windows_path="$new_path" 45595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45596 unix_path=`$CYGPATH -u "$windows_path"` 45597 new_path="$unix_path" 45598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45600 new_path="$unix_path" 45601 fi 45602 45603 if test "x$path" != "x$new_path"; then 45604 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45605 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45606 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45607 fi 45608 45609 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45610 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45611 45612 else 45613 # We're on a posix platform. Hooray! :) 45614 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45615 has_space=`$ECHO "$path" | $GREP " "` 45616 if test "x$has_space" != x; then 45617 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45618 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45619 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45620 fi 45621 45622 # Use eval to expand a potential ~ 45623 eval path="$path" 45624 if test ! -f "$path" && test ! -d "$path"; then 45625 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45626 fi 45627 45628 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45629 fi 45630 45631 45632 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45633 45634 # Input might be given as Windows format, start by converting to 45635 # unix format. 45636 path="$POTENTIAL_FREETYPE_LIB_PATH" 45637 new_path=`$CYGPATH -u "$path"` 45638 45639 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45640 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45641 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45642 # "foo.exe" is OK but "foo" is an error. 45643 # 45644 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45645 # It is also a way to make sure we got the proper file name for the real test later on. 45646 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45647 if test "x$test_shortpath" = x; then 45648 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45649 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45650 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45651 fi 45652 45653 # Call helper function which possibly converts this using DOS-style short mode. 45654 # If so, the updated path is stored in $new_path. 45655 45656 input_path="$new_path" 45657 # Check if we need to convert this using DOS-style short mode. If the path 45658 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45659 # take no chances and rewrite it. 45660 # Note: m4 eats our [], so we need to use [ and ] instead. 45661 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45662 if test "x$has_forbidden_chars" != x; then 45663 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45664 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45665 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45666 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45667 # Going to short mode and back again did indeed matter. Since short mode is 45668 # case insensitive, let's make it lowercase to improve readability. 45669 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45670 # Now convert it back to Unix-stile (cygpath) 45671 input_path=`$CYGPATH -u "$shortmode_path"` 45672 new_path="$input_path" 45673 fi 45674 fi 45675 45676 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45677 if test "x$test_cygdrive_prefix" = x; then 45678 # As a simple fix, exclude /usr/bin since it's not a real path. 45679 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45680 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45681 # a path prefixed by /cygdrive for fixpath to work. 45682 new_path="$CYGWIN_ROOT_PATH$input_path" 45683 fi 45684 fi 45685 45686 45687 if test "x$path" != "x$new_path"; then 45688 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45689 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45690 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45691 fi 45692 45693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45694 45695 path="$POTENTIAL_FREETYPE_LIB_PATH" 45696 has_colon=`$ECHO $path | $GREP ^.:` 45697 new_path="$path" 45698 if test "x$has_colon" = x; then 45699 # Not in mixed or Windows style, start by that. 45700 new_path=`cmd //c echo $path` 45701 fi 45702 45703 45704 input_path="$new_path" 45705 # Check if we need to convert this using DOS-style short mode. If the path 45706 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45707 # take no chances and rewrite it. 45708 # Note: m4 eats our [], so we need to use [ and ] instead. 45709 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45710 if test "x$has_forbidden_chars" != x; then 45711 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45712 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45713 fi 45714 45715 45716 windows_path="$new_path" 45717 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45718 unix_path=`$CYGPATH -u "$windows_path"` 45719 new_path="$unix_path" 45720 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45721 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45722 new_path="$unix_path" 45723 fi 45724 45725 if test "x$path" != "x$new_path"; then 45726 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45727 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45728 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45729 fi 45730 45731 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45732 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45733 45734 else 45735 # We're on a posix platform. Hooray! :) 45736 path="$POTENTIAL_FREETYPE_LIB_PATH" 45737 has_space=`$ECHO "$path" | $GREP " "` 45738 if test "x$has_space" != x; then 45739 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45740 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45741 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45742 fi 45743 45744 # Use eval to expand a potential ~ 45745 eval path="$path" 45746 if test ! -f "$path" && test ! -d "$path"; then 45747 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45748 fi 45749 45750 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45751 fi 45752 45753 45754 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 45756 $as_echo_n "checking for freetype includes... " >&6; } 45757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 45758 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 45759 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 45760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 45761 $as_echo_n "checking for freetype libraries... " >&6; } 45762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 45763 $as_echo "$FREETYPE_LIB_PATH" >&6; } 45764 fi 45765 45766 if test "x$FOUND_FREETYPE" != xyes; then 45767 45768 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 45769 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 45770 METHOD="well-known location" 45771 45772 # First check if the files exists. 45773 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 45774 # We found an arbitrary include file. That's a good sign. 45775 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 45776 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 45777 FOUND_FREETYPE=yes 45778 45779 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 45780 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 45781 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 45782 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 45783 FOUND_FREETYPE=no 45784 else 45785 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45786 # On Windows, we will need both .lib and .dll file. 45787 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 45788 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 45789 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 45790 FOUND_FREETYPE=no 45791 fi 45792 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 45793 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 45794 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 45795 fi 45796 fi 45797 fi 45798 45799 if test "x$FOUND_FREETYPE" = xyes; then 45800 45801 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45802 45803 # Input might be given as Windows format, start by converting to 45804 # unix format. 45805 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45806 new_path=`$CYGPATH -u "$path"` 45807 45808 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45809 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45810 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45811 # "foo.exe" is OK but "foo" is an error. 45812 # 45813 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45814 # It is also a way to make sure we got the proper file name for the real test later on. 45815 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45816 if test "x$test_shortpath" = x; then 45817 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45818 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45819 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 45820 fi 45821 45822 # Call helper function which possibly converts this using DOS-style short mode. 45823 # If so, the updated path is stored in $new_path. 45824 45825 input_path="$new_path" 45826 # Check if we need to convert this using DOS-style short mode. If the path 45827 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45828 # take no chances and rewrite it. 45829 # Note: m4 eats our [], so we need to use [ and ] instead. 45830 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45831 if test "x$has_forbidden_chars" != x; then 45832 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45833 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45834 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45835 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45836 # Going to short mode and back again did indeed matter. Since short mode is 45837 # case insensitive, let's make it lowercase to improve readability. 45838 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45839 # Now convert it back to Unix-stile (cygpath) 45840 input_path=`$CYGPATH -u "$shortmode_path"` 45841 new_path="$input_path" 45842 fi 45843 fi 45844 45845 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45846 if test "x$test_cygdrive_prefix" = x; then 45847 # As a simple fix, exclude /usr/bin since it's not a real path. 45848 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45849 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45850 # a path prefixed by /cygdrive for fixpath to work. 45851 new_path="$CYGWIN_ROOT_PATH$input_path" 45852 fi 45853 fi 45854 45855 45856 if test "x$path" != "x$new_path"; then 45857 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45858 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45859 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45860 fi 45861 45862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45863 45864 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45865 has_colon=`$ECHO $path | $GREP ^.:` 45866 new_path="$path" 45867 if test "x$has_colon" = x; then 45868 # Not in mixed or Windows style, start by that. 45869 new_path=`cmd //c echo $path` 45870 fi 45871 45872 45873 input_path="$new_path" 45874 # Check if we need to convert this using DOS-style short mode. If the path 45875 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45876 # take no chances and rewrite it. 45877 # Note: m4 eats our [], so we need to use [ and ] instead. 45878 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45879 if test "x$has_forbidden_chars" != x; then 45880 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45881 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45882 fi 45883 45884 45885 windows_path="$new_path" 45886 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45887 unix_path=`$CYGPATH -u "$windows_path"` 45888 new_path="$unix_path" 45889 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45890 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45891 new_path="$unix_path" 45892 fi 45893 45894 if test "x$path" != "x$new_path"; then 45895 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 45896 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45897 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45898 fi 45899 45900 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45901 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45902 45903 else 45904 # We're on a posix platform. Hooray! :) 45905 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 45906 has_space=`$ECHO "$path" | $GREP " "` 45907 if test "x$has_space" != x; then 45908 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45909 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45910 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45911 fi 45912 45913 # Use eval to expand a potential ~ 45914 eval path="$path" 45915 if test ! -f "$path" && test ! -d "$path"; then 45916 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45917 fi 45918 45919 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45920 fi 45921 45922 45923 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45924 45925 # Input might be given as Windows format, start by converting to 45926 # unix format. 45927 path="$POTENTIAL_FREETYPE_LIB_PATH" 45928 new_path=`$CYGPATH -u "$path"` 45929 45930 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45931 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45932 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45933 # "foo.exe" is OK but "foo" is an error. 45934 # 45935 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45936 # It is also a way to make sure we got the proper file name for the real test later on. 45937 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45938 if test "x$test_shortpath" = x; then 45939 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45940 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45941 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 45942 fi 45943 45944 # Call helper function which possibly converts this using DOS-style short mode. 45945 # If so, the updated path is stored in $new_path. 45946 45947 input_path="$new_path" 45948 # Check if we need to convert this using DOS-style short mode. If the path 45949 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45950 # take no chances and rewrite it. 45951 # Note: m4 eats our [], so we need to use [ and ] instead. 45952 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45953 if test "x$has_forbidden_chars" != x; then 45954 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45955 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45956 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45957 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45958 # Going to short mode and back again did indeed matter. Since short mode is 45959 # case insensitive, let's make it lowercase to improve readability. 45960 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45961 # Now convert it back to Unix-stile (cygpath) 45962 input_path=`$CYGPATH -u "$shortmode_path"` 45963 new_path="$input_path" 45964 fi 45965 fi 45966 45967 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45968 if test "x$test_cygdrive_prefix" = x; then 45969 # As a simple fix, exclude /usr/bin since it's not a real path. 45970 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45971 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45972 # a path prefixed by /cygdrive for fixpath to work. 45973 new_path="$CYGWIN_ROOT_PATH$input_path" 45974 fi 45975 fi 45976 45977 45978 if test "x$path" != "x$new_path"; then 45979 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 45980 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 45981 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45982 fi 45983 45984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45985 45986 path="$POTENTIAL_FREETYPE_LIB_PATH" 45987 has_colon=`$ECHO $path | $GREP ^.:` 45988 new_path="$path" 45989 if test "x$has_colon" = x; then 45990 # Not in mixed or Windows style, start by that. 45991 new_path=`cmd //c echo $path` 45992 fi 45993 45994 45995 input_path="$new_path" 45996 # Check if we need to convert this using DOS-style short mode. If the path 45997 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45998 # take no chances and rewrite it. 45999 # Note: m4 eats our [], so we need to use [ and ] instead. 46000 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46001 if test "x$has_forbidden_chars" != x; then 46002 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46003 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46004 fi 46005 46006 46007 windows_path="$new_path" 46008 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46009 unix_path=`$CYGPATH -u "$windows_path"` 46010 new_path="$unix_path" 46011 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46012 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46013 new_path="$unix_path" 46014 fi 46015 46016 if test "x$path" != "x$new_path"; then 46017 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 46018 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 46019 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46020 fi 46021 46022 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46023 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46024 46025 else 46026 # We're on a posix platform. Hooray! :) 46027 path="$POTENTIAL_FREETYPE_LIB_PATH" 46028 has_space=`$ECHO "$path" | $GREP " "` 46029 if test "x$has_space" != x; then 46030 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46031 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46032 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46033 fi 46034 46035 # Use eval to expand a potential ~ 46036 eval path="$path" 46037 if test ! -f "$path" && test ! -d "$path"; then 46038 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46039 fi 46040 46041 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46042 fi 46043 46044 46045 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 46046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 46047 $as_echo_n "checking for freetype includes... " >&6; } 46048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 46049 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 46050 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 46051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 46052 $as_echo_n "checking for freetype libraries... " >&6; } 46053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 46054 $as_echo "$FREETYPE_LIB_PATH" >&6; } 46055 fi 46056 46057 fi 46058 fi 46059 fi 46060 fi 46061 fi # end check in well-known locations 46062 46063 if test "x$FOUND_FREETYPE" != xyes; then 46064 46065 # Print a helpful message on how to acquire the necessary build dependency. 46066 # freetype is the help tag: freetype, cups, pulse, alsa etc 46067 MISSING_DEPENDENCY=freetype 46068 46069 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46070 cygwin_help $MISSING_DEPENDENCY 46071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46072 msys_help $MISSING_DEPENDENCY 46073 else 46074 PKGHANDLER_COMMAND= 46075 46076 case $PKGHANDLER in 46077 apt-get) 46078 apt_help $MISSING_DEPENDENCY ;; 46079 yum) 46080 yum_help $MISSING_DEPENDENCY ;; 46081 port) 46082 port_help $MISSING_DEPENDENCY ;; 46083 pkgutil) 46084 pkgutil_help $MISSING_DEPENDENCY ;; 46085 pkgadd) 46086 pkgadd_help $MISSING_DEPENDENCY ;; 46087 esac 46088 46089 if test "x$PKGHANDLER_COMMAND" != x; then 46090 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46091 fi 46092 fi 46093 46094 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 46095 fi 46096 fi # end user specified settings 46097 46098 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 46099 if test "x$FREETYPE_CFLAGS" = x; then 46100 46101 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46102 46103 # Input might be given as Windows format, start by converting to 46104 # unix format. 46105 path="$FREETYPE_INCLUDE_PATH" 46106 new_path=`$CYGPATH -u "$path"` 46107 46108 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46109 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46110 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46111 # "foo.exe" is OK but "foo" is an error. 46112 # 46113 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46114 # It is also a way to make sure we got the proper file name for the real test later on. 46115 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46116 if test "x$test_shortpath" = x; then 46117 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46118 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46119 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 46120 fi 46121 46122 # Call helper function which possibly converts this using DOS-style short mode. 46123 # If so, the updated path is stored in $new_path. 46124 46125 input_path="$new_path" 46126 # Check if we need to convert this using DOS-style short mode. If the path 46127 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46128 # take no chances and rewrite it. 46129 # Note: m4 eats our [], so we need to use [ and ] instead. 46130 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46131 if test "x$has_forbidden_chars" != x; then 46132 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46133 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46134 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46135 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46136 # Going to short mode and back again did indeed matter. Since short mode is 46137 # case insensitive, let's make it lowercase to improve readability. 46138 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46139 # Now convert it back to Unix-stile (cygpath) 46140 input_path=`$CYGPATH -u "$shortmode_path"` 46141 new_path="$input_path" 46142 fi 46143 fi 46144 46145 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46146 if test "x$test_cygdrive_prefix" = x; then 46147 # As a simple fix, exclude /usr/bin since it's not a real path. 46148 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46149 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46150 # a path prefixed by /cygdrive for fixpath to work. 46151 new_path="$CYGWIN_ROOT_PATH$input_path" 46152 fi 46153 fi 46154 46155 46156 if test "x$path" != "x$new_path"; then 46157 FREETYPE_INCLUDE_PATH="$new_path" 46158 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46159 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46160 fi 46161 46162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46163 46164 path="$FREETYPE_INCLUDE_PATH" 46165 has_colon=`$ECHO $path | $GREP ^.:` 46166 new_path="$path" 46167 if test "x$has_colon" = x; then 46168 # Not in mixed or Windows style, start by that. 46169 new_path=`cmd //c echo $path` 46170 fi 46171 46172 46173 input_path="$new_path" 46174 # Check if we need to convert this using DOS-style short mode. If the path 46175 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46176 # take no chances and rewrite it. 46177 # Note: m4 eats our [], so we need to use [ and ] instead. 46178 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46179 if test "x$has_forbidden_chars" != x; then 46180 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46181 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46182 fi 46183 46184 46185 windows_path="$new_path" 46186 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46187 unix_path=`$CYGPATH -u "$windows_path"` 46188 new_path="$unix_path" 46189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46190 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46191 new_path="$unix_path" 46192 fi 46193 46194 if test "x$path" != "x$new_path"; then 46195 FREETYPE_INCLUDE_PATH="$new_path" 46196 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 46197 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 46198 fi 46199 46200 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46201 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46202 46203 else 46204 # We're on a posix platform. Hooray! :) 46205 path="$FREETYPE_INCLUDE_PATH" 46206 has_space=`$ECHO "$path" | $GREP " "` 46207 if test "x$has_space" != x; then 46208 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 46209 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 46210 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46211 fi 46212 46213 # Use eval to expand a potential ~ 46214 eval path="$path" 46215 if test ! -f "$path" && test ! -d "$path"; then 46216 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46217 fi 46218 46219 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 46220 fi 46221 46222 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 46223 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 46224 else 46225 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 46226 fi 46227 fi 46228 46229 if test "x$FREETYPE_LIBS" = x; then 46230 46231 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46232 46233 # Input might be given as Windows format, start by converting to 46234 # unix format. 46235 path="$FREETYPE_LIB_PATH" 46236 new_path=`$CYGPATH -u "$path"` 46237 46238 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46239 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46240 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46241 # "foo.exe" is OK but "foo" is an error. 46242 # 46243 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46244 # It is also a way to make sure we got the proper file name for the real test later on. 46245 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46246 if test "x$test_shortpath" = x; then 46247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46248 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46249 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 46250 fi 46251 46252 # Call helper function which possibly converts this using DOS-style short mode. 46253 # If so, the updated path is stored in $new_path. 46254 46255 input_path="$new_path" 46256 # Check if we need to convert this using DOS-style short mode. If the path 46257 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46258 # take no chances and rewrite it. 46259 # Note: m4 eats our [], so we need to use [ and ] instead. 46260 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46261 if test "x$has_forbidden_chars" != x; then 46262 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46263 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46264 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46265 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46266 # Going to short mode and back again did indeed matter. Since short mode is 46267 # case insensitive, let's make it lowercase to improve readability. 46268 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46269 # Now convert it back to Unix-stile (cygpath) 46270 input_path=`$CYGPATH -u "$shortmode_path"` 46271 new_path="$input_path" 46272 fi 46273 fi 46274 46275 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46276 if test "x$test_cygdrive_prefix" = x; then 46277 # As a simple fix, exclude /usr/bin since it's not a real path. 46278 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46279 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46280 # a path prefixed by /cygdrive for fixpath to work. 46281 new_path="$CYGWIN_ROOT_PATH$input_path" 46282 fi 46283 fi 46284 46285 46286 if test "x$path" != "x$new_path"; then 46287 FREETYPE_LIB_PATH="$new_path" 46288 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46289 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46290 fi 46291 46292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46293 46294 path="$FREETYPE_LIB_PATH" 46295 has_colon=`$ECHO $path | $GREP ^.:` 46296 new_path="$path" 46297 if test "x$has_colon" = x; then 46298 # Not in mixed or Windows style, start by that. 46299 new_path=`cmd //c echo $path` 46300 fi 46301 46302 46303 input_path="$new_path" 46304 # Check if we need to convert this using DOS-style short mode. If the path 46305 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46306 # take no chances and rewrite it. 46307 # Note: m4 eats our [], so we need to use [ and ] instead. 46308 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46309 if test "x$has_forbidden_chars" != x; then 46310 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46311 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46312 fi 46313 46314 46315 windows_path="$new_path" 46316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46317 unix_path=`$CYGPATH -u "$windows_path"` 46318 new_path="$unix_path" 46319 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46320 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46321 new_path="$unix_path" 46322 fi 46323 46324 if test "x$path" != "x$new_path"; then 46325 FREETYPE_LIB_PATH="$new_path" 46326 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 46327 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 46328 fi 46329 46330 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46331 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46332 46333 else 46334 # We're on a posix platform. Hooray! :) 46335 path="$FREETYPE_LIB_PATH" 46336 has_space=`$ECHO "$path" | $GREP " "` 46337 if test "x$has_space" != x; then 46338 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 46339 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 46340 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46341 fi 46342 46343 # Use eval to expand a potential ~ 46344 eval path="$path" 46345 if test ! -f "$path" && test ! -d "$path"; then 46346 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 46347 fi 46348 46349 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 46350 fi 46351 46352 if test "x$OPENJDK_TARGET_OS" = xwindows; then 46353 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 46354 else 46355 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 46356 fi 46357 fi 46358 46359 # Try to compile it 46360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 46361 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 46362 ac_ext=cpp 46363 ac_cpp='$CXXCPP $CPPFLAGS' 46364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46367 46368 PREV_CXXCFLAGS="$CXXFLAGS" 46369 PREV_LIBS="$LIBS" 46370 PREV_CXX="$CXX" 46371 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 46372 LIBS="$LIBS $FREETYPE_LIBS" 46373 CXX="$FIXPATH $CXX" 46374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46375 /* end confdefs.h. */ 46376 46377 #include<ft2build.h> 46378 #include FT_FREETYPE_H 46379 int main () { 46380 FT_Init_FreeType(NULL); 46381 return 0; 46382 } 46383 46384 _ACEOF 46385 if ac_fn_cxx_try_link "$LINENO"; then : 46386 46387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46388 $as_echo "yes" >&6; } 46389 46390 else 46391 46392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46393 $as_echo "no" >&6; } 46394 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 46395 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 46396 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 46397 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 46398 46399 46400 # Print a helpful message on how to acquire the necessary build dependency. 46401 # freetype is the help tag: freetype, cups, pulse, alsa etc 46402 MISSING_DEPENDENCY=freetype 46403 46404 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46405 cygwin_help $MISSING_DEPENDENCY 46406 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46407 msys_help $MISSING_DEPENDENCY 46408 else 46409 PKGHANDLER_COMMAND= 46410 46411 case $PKGHANDLER in 46412 apt-get) 46413 apt_help $MISSING_DEPENDENCY ;; 46414 yum) 46415 yum_help $MISSING_DEPENDENCY ;; 46416 port) 46417 port_help $MISSING_DEPENDENCY ;; 46418 pkgutil) 46419 pkgutil_help $MISSING_DEPENDENCY ;; 46420 pkgadd) 46421 pkgadd_help $MISSING_DEPENDENCY ;; 46422 esac 46423 46424 if test "x$PKGHANDLER_COMMAND" != x; then 46425 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46426 fi 46427 fi 46428 46429 46430 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 46431 46432 46433 fi 46434 rm -f core conftest.err conftest.$ac_objext \ 46435 conftest$ac_exeext conftest.$ac_ext 46436 CXXCFLAGS="$PREV_CXXFLAGS" 46437 LIBS="$PREV_LIBS" 46438 CXX="$PREV_CXX" 46439 ac_ext=cpp 46440 ac_cpp='$CXXCPP $CPPFLAGS' 46441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46444 46445 46446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 46447 $as_echo_n "checking if we should bundle freetype... " >&6; } 46448 if test "x$BUNDLE_FREETYPE" = xyes; then 46449 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 46450 fi 46451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 46452 $as_echo "$BUNDLE_FREETYPE" >&6; } 46453 46454 fi # end freetype needed 46455 46456 46457 46458 46459 46460 46461 46462 ############################################################################### 46463 # 46464 # Check for alsa headers and libraries. Used on Linux/GNU systems. 46465 # 46466 46467 # Check whether --with-alsa was given. 46468 if test "${with_alsa+set}" = set; then : 46469 withval=$with_alsa; 46470 fi 46471 46472 46473 # Check whether --with-alsa-include was given. 46474 if test "${with_alsa_include+set}" = set; then : 46475 withval=$with_alsa_include; 46476 fi 46477 46478 46479 # Check whether --with-alsa-lib was given. 46480 if test "${with_alsa_lib+set}" = set; then : 46481 withval=$with_alsa_lib; 46482 fi 46483 46484 46485 if test "x$ALSA_NOT_NEEDED" = xyes; then 46486 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 46487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 46488 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 46489 fi 46490 ALSA_CFLAGS= 46491 ALSA_LIBS= 46492 else 46493 ALSA_FOUND=no 46494 46495 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 46496 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 46497 fi 46498 46499 if test "x${with_alsa}" != x; then 46500 ALSA_LIBS="-L${with_alsa}/lib -lasound" 46501 ALSA_CFLAGS="-I${with_alsa}/include" 46502 ALSA_FOUND=yes 46503 fi 46504 if test "x${with_alsa_include}" != x; then 46505 ALSA_CFLAGS="-I${with_alsa_include}" 46506 ALSA_FOUND=yes 46507 fi 46508 if test "x${with_alsa_lib}" != x; then 46509 ALSA_LIBS="-L${with_alsa_lib} -lasound" 46510 ALSA_FOUND=yes 46511 fi 46512 if test "x$ALSA_FOUND" = xno; then 46513 46514 46515 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 46516 # Source the builddeps file again, to make sure it uses the latest variables! 46517 . $builddepsfile 46518 # Look for a target and build machine specific resource! 46519 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 46520 if test "x$resource" = x; then 46521 # Ok, lets instead look for a target specific resource 46522 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 46523 fi 46524 if test "x$resource" = x; then 46525 # Ok, lets instead look for a build specific resource 46526 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 46527 fi 46528 if test "x$resource" = x; then 46529 # Ok, lets instead look for a generic resource 46530 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 46531 resource=${builddep_alsa} 46532 fi 46533 if test "x$resource" != x; then 46534 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 46535 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 46536 # If the resource in the builddeps.conf file is an existing directory, 46537 # for example /java/linux/cups 46538 if test -d ${resource}; then 46539 depdir=${resource} 46540 else 46541 46542 # alsa is for example mymodule 46543 # $resource is for example libs/general/libmymod_1_2_3.zip 46544 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 46545 # $with_builddeps_dir is for example /localhome/builddeps 46546 # depdir is the name of the variable into which we store the depdir, eg MYMOD 46547 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 46548 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 46549 filename=`basename $resource` 46550 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 46551 filebase=${filename%%.*} 46552 extension=${filename#*.} 46553 installdir=$with_builddeps_dir/$filebase 46554 if test ! -f $installdir/$filename.unpacked; then 46555 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 46556 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 46557 if test ! -d $installdir; then 46558 mkdir -p $installdir 46559 fi 46560 if test ! -d $installdir; then 46561 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 46562 fi 46563 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 46564 touch $tmpfile 46565 if test ! -f $tmpfile; then 46566 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 46567 fi 46568 46569 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 46570 # $tmpfile is the local file name for the downloaded file. 46571 VALID_TOOL=no 46572 if test "x$BDEPS_FTP" = xwget; then 46573 VALID_TOOL=yes 46574 wget -O $tmpfile $with_builddeps_server/$resource 46575 fi 46576 if test "x$BDEPS_FTP" = xlftp; then 46577 VALID_TOOL=yes 46578 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 46579 fi 46580 if test "x$BDEPS_FTP" = xftp; then 46581 VALID_TOOL=yes 46582 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 46583 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 46584 FTPUSERPWD=${FTPSERVER%%@*} 46585 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 46586 FTPUSER=${userpwd%%:*} 46587 FTPPWD=${userpwd#*@} 46588 FTPSERVER=${FTPSERVER#*@} 46589 else 46590 FTPUSER=ftp 46591 FTPPWD=ftp 46592 fi 46593 # the "pass" command does not work on some 46594 # ftp clients (read ftp.exe) but if it works, 46595 # passive mode is better! 46596 ( \ 46597 echo "user $FTPUSER $FTPPWD" ; \ 46598 echo "pass" ; \ 46599 echo "bin" ; \ 46600 echo "get $FTPPATH $tmpfile" ; \ 46601 ) | ftp -in $FTPSERVER 46602 fi 46603 if test "x$VALID_TOOL" != xyes; then 46604 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 46605 fi 46606 46607 mv $tmpfile $installdir/$filename 46608 if test ! -s $installdir/$filename; then 46609 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 46610 fi 46611 case "$extension" in 46612 zip) echo "Unzipping $installdir/$filename..." 46613 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 46614 ;; 46615 tar.gz) echo "Untaring $installdir/$filename..." 46616 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46617 ;; 46618 tgz) echo "Untaring $installdir/$filename..." 46619 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 46620 ;; 46621 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 46622 ;; 46623 esac 46624 fi 46625 if test -f $installdir/$filename.unpacked; then 46626 depdir=$installdir 46627 fi 46628 46629 fi 46630 # Source the builddeps file again, because in the previous command, the depdir 46631 # was updated to point at the current build dependency install directory. 46632 . $builddepsfile 46633 # Now extract variables from the builddeps.conf files. 46634 theroot=${builddep_alsa_ROOT} 46635 thecflags=${builddep_alsa_CFLAGS} 46636 thelibs=${builddep_alsa_LIBS} 46637 if test "x$depdir" = x; then 46638 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 46639 fi 46640 ALSA=$depdir 46641 if test "x$theroot" != x; then 46642 ALSA="$theroot" 46643 fi 46644 if test "x$thecflags" != x; then 46645 ALSA_CFLAGS="$thecflags" 46646 fi 46647 if test "x$thelibs" != x; then 46648 ALSA_LIBS="$thelibs" 46649 fi 46650 ALSA_FOUND=yes 46651 else ALSA_FOUND=no 46652 46653 fi 46654 else ALSA_FOUND=no 46655 46656 fi 46657 46658 fi 46659 if test "x$ALSA_FOUND" = xno; then 46660 46661 pkg_failed=no 46662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 46663 $as_echo_n "checking for ALSA... " >&6; } 46664 46665 if test -n "$ALSA_CFLAGS"; then 46666 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 46667 elif test -n "$PKG_CONFIG"; then 46668 if test -n "$PKG_CONFIG" && \ 46669 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46670 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46671 ac_status=$? 46672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46673 test $ac_status = 0; }; then 46674 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 46675 else 46676 pkg_failed=yes 46677 fi 46678 else 46679 pkg_failed=untried 46680 fi 46681 if test -n "$ALSA_LIBS"; then 46682 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 46683 elif test -n "$PKG_CONFIG"; then 46684 if test -n "$PKG_CONFIG" && \ 46685 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 46686 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 46687 ac_status=$? 46688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46689 test $ac_status = 0; }; then 46690 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 46691 else 46692 pkg_failed=yes 46693 fi 46694 else 46695 pkg_failed=untried 46696 fi 46697 46698 46699 46700 if test $pkg_failed = yes; then 46701 46702 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 46703 _pkg_short_errors_supported=yes 46704 else 46705 _pkg_short_errors_supported=no 46706 fi 46707 if test $_pkg_short_errors_supported = yes; then 46708 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 46709 else 46710 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 46711 fi 46712 # Put the nasty error message in config.log where it belongs 46713 echo "$ALSA_PKG_ERRORS" >&5 46714 46715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46716 $as_echo "no" >&6; } 46717 ALSA_FOUND=no 46718 elif test $pkg_failed = untried; then 46719 ALSA_FOUND=no 46720 else 46721 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 46722 ALSA_LIBS=$pkg_cv_ALSA_LIBS 46723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46724 $as_echo "yes" >&6; } 46725 ALSA_FOUND=yes 46726 fi 46727 fi 46728 if test "x$ALSA_FOUND" = xno; then 46729 for ac_header in alsa/asoundlib.h 46730 do : 46731 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 46732 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 46733 cat >>confdefs.h <<_ACEOF 46734 #define HAVE_ALSA_ASOUNDLIB_H 1 46735 _ACEOF 46736 46737 ALSA_FOUND=yes 46738 ALSA_CFLAGS=-Iignoreme 46739 ALSA_LIBS=-lasound 46740 DEFAULT_ALSA=yes 46741 46742 else 46743 ALSA_FOUND=no 46744 fi 46745 46746 done 46747 46748 fi 46749 if test "x$ALSA_FOUND" = xno; then 46750 46751 # Print a helpful message on how to acquire the necessary build dependency. 46752 # alsa is the help tag: freetype, cups, pulse, alsa etc 46753 MISSING_DEPENDENCY=alsa 46754 46755 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46756 cygwin_help $MISSING_DEPENDENCY 46757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46758 msys_help $MISSING_DEPENDENCY 46759 else 46760 PKGHANDLER_COMMAND= 46761 46762 case $PKGHANDLER in 46763 apt-get) 46764 apt_help $MISSING_DEPENDENCY ;; 46765 yum) 46766 yum_help $MISSING_DEPENDENCY ;; 46767 port) 46768 port_help $MISSING_DEPENDENCY ;; 46769 pkgutil) 46770 pkgutil_help $MISSING_DEPENDENCY ;; 46771 pkgadd) 46772 pkgadd_help $MISSING_DEPENDENCY ;; 46773 esac 46774 46775 if test "x$PKGHANDLER_COMMAND" != x; then 46776 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 46777 fi 46778 fi 46779 46780 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 46781 fi 46782 fi 46783 46784 46785 46786 46787 46788 46789 ############################################################################### 46790 # 46791 # Check for the jpeg library 46792 # 46793 46794 USE_EXTERNAL_LIBJPEG=true 46795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 46796 $as_echo_n "checking for main in -ljpeg... " >&6; } 46797 if ${ac_cv_lib_jpeg_main+:} false; then : 46798 $as_echo_n "(cached) " >&6 46799 else 46800 ac_check_lib_save_LIBS=$LIBS 46801 LIBS="-ljpeg $LIBS" 46802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46803 /* end confdefs.h. */ 46804 46805 46806 int 46807 main () 46808 { 46809 return main (); 46810 ; 46811 return 0; 46812 } 46813 _ACEOF 46814 if ac_fn_cxx_try_link "$LINENO"; then : 46815 ac_cv_lib_jpeg_main=yes 46816 else 46817 ac_cv_lib_jpeg_main=no 46818 fi 46819 rm -f core conftest.err conftest.$ac_objext \ 46820 conftest$ac_exeext conftest.$ac_ext 46821 LIBS=$ac_check_lib_save_LIBS 46822 fi 46823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 46824 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 46825 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 46826 cat >>confdefs.h <<_ACEOF 46827 #define HAVE_LIBJPEG 1 46828 _ACEOF 46829 46830 LIBS="-ljpeg $LIBS" 46831 46832 else 46833 USE_EXTERNAL_LIBJPEG=false 46834 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 46835 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 46836 46837 fi 46838 46839 46840 46841 ############################################################################### 46842 # 46843 # Check for the gif library 46844 # 46845 46846 46847 # Check whether --with-giflib was given. 46848 if test "${with_giflib+set}" = set; then : 46849 withval=$with_giflib; 46850 fi 46851 46852 46853 46854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 46855 $as_echo_n "checking for which giflib to use... " >&6; } 46856 46857 # default is bundled 46858 DEFAULT_GIFLIB=bundled 46859 46860 # 46861 # if user didn't specify, use DEFAULT_GIFLIB 46862 # 46863 if test "x${with_giflib}" = "x"; then 46864 with_giflib=${DEFAULT_GIFLIB} 46865 fi 46866 46867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 46868 $as_echo "${with_giflib}" >&6; } 46869 46870 if test "x${with_giflib}" = "xbundled"; then 46871 USE_EXTERNAL_LIBGIF=false 46872 elif test "x${with_giflib}" = "xsystem"; then 46873 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 46874 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 46875 46876 else 46877 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 46878 fi 46879 46880 46881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 46882 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 46883 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 46884 $as_echo_n "(cached) " >&6 46885 else 46886 ac_check_lib_save_LIBS=$LIBS 46887 LIBS="-lgif $LIBS" 46888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46889 /* end confdefs.h. */ 46890 46891 /* Override any GCC internal prototype to avoid an error. 46892 Use char because int might match the return type of a GCC 46893 builtin and then its argument prototype would still apply. */ 46894 #ifdef __cplusplus 46895 extern "C" 46896 #endif 46897 char DGifGetCode (); 46898 int 46899 main () 46900 { 46901 return DGifGetCode (); 46902 ; 46903 return 0; 46904 } 46905 _ACEOF 46906 if ac_fn_cxx_try_link "$LINENO"; then : 46907 ac_cv_lib_gif_DGifGetCode=yes 46908 else 46909 ac_cv_lib_gif_DGifGetCode=no 46910 fi 46911 rm -f core conftest.err conftest.$ac_objext \ 46912 conftest$ac_exeext conftest.$ac_ext 46913 LIBS=$ac_check_lib_save_LIBS 46914 fi 46915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 46916 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 46917 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 46918 cat >>confdefs.h <<_ACEOF 46919 #define HAVE_LIBGIF 1 46920 _ACEOF 46921 46922 LIBS="-lgif $LIBS" 46923 46924 else 46925 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 46926 fi 46927 46928 46929 USE_EXTERNAL_LIBGIF=true 46930 else 46931 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 46932 fi 46933 46934 46935 ############################################################################### 46936 # 46937 # Check for the lcms2 library 46938 # 46939 46940 46941 # Check whether --with-lcms was given. 46942 if test "${with_lcms+set}" = set; then : 46943 withval=$with_lcms; 46944 fi 46945 46946 46947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which lcms to use" >&5 46948 $as_echo_n "checking for which lcms to use... " >&6; } 46949 46950 DEFAULT_LCMS=bundled 46951 46952 # 46953 # If user didn't specify, use DEFAULT_LCMS 46954 # 46955 if test "x${with_lcms}" = "x"; then 46956 with_lcms=${DEFAULT_LCMS} 46957 fi 46958 46959 if test "x${with_lcms}" = "xbundled"; then 46960 USE_EXTERNAL_LCMS=false 46961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 46962 $as_echo "bundled" >&6; } 46963 elif test "x${with_lcms}" = "xsystem"; then 46964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 46965 $as_echo "system" >&6; } 46966 46967 pkg_failed=no 46968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS" >&5 46969 $as_echo_n "checking for LCMS... " >&6; } 46970 46971 if test -n "$LCMS_CFLAGS"; then 46972 pkg_cv_LCMS_CFLAGS="$LCMS_CFLAGS" 46973 elif test -n "$PKG_CONFIG"; then 46974 if test -n "$PKG_CONFIG" && \ 46975 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 46976 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 46977 ac_status=$? 46978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46979 test $ac_status = 0; }; then 46980 pkg_cv_LCMS_CFLAGS=`$PKG_CONFIG --cflags "lcms2" 2>/dev/null` 46981 else 46982 pkg_failed=yes 46983 fi 46984 else 46985 pkg_failed=untried 46986 fi 46987 if test -n "$LCMS_LIBS"; then 46988 pkg_cv_LCMS_LIBS="$LCMS_LIBS" 46989 elif test -n "$PKG_CONFIG"; then 46990 if test -n "$PKG_CONFIG" && \ 46991 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lcms2\""; } >&5 46992 ($PKG_CONFIG --exists --print-errors "lcms2") 2>&5 46993 ac_status=$? 46994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46995 test $ac_status = 0; }; then 46996 pkg_cv_LCMS_LIBS=`$PKG_CONFIG --libs "lcms2" 2>/dev/null` 46997 else 46998 pkg_failed=yes 46999 fi 47000 else 47001 pkg_failed=untried 47002 fi 47003 47004 47005 47006 if test $pkg_failed = yes; then 47007 47008 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47009 _pkg_short_errors_supported=yes 47010 else 47011 _pkg_short_errors_supported=no 47012 fi 47013 if test $_pkg_short_errors_supported = yes; then 47014 LCMS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lcms2" 2>&1` 47015 else 47016 LCMS_PKG_ERRORS=`$PKG_CONFIG --print-errors "lcms2" 2>&1` 47017 fi 47018 # Put the nasty error message in config.log where it belongs 47019 echo "$LCMS_PKG_ERRORS" >&5 47020 47021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47022 $as_echo "no" >&6; } 47023 LCMS_FOUND=no 47024 elif test $pkg_failed = untried; then 47025 LCMS_FOUND=no 47026 else 47027 LCMS_CFLAGS=$pkg_cv_LCMS_CFLAGS 47028 LCMS_LIBS=$pkg_cv_LCMS_LIBS 47029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47030 $as_echo "yes" >&6; } 47031 LCMS_FOUND=yes 47032 fi 47033 if test "x${LCMS_FOUND}" = "xyes"; then 47034 USE_EXTERNAL_LCMS=true 47035 else 47036 as_fn_error $? "--with-lcms=system specified, but no lcms found!" "$LINENO" 5 47037 fi 47038 else 47039 as_fn_error $? "Invalid value for --with-lcms: ${with_lcms}, use 'system' or 'bundled'" "$LINENO" 5 47040 fi 47041 47042 47043 47044 ############################################################################### 47045 # 47046 # Check for the png library 47047 # 47048 47049 47050 # Check whether --with-libpng was given. 47051 if test "${with_libpng+set}" = set; then : 47052 withval=$with_libpng; 47053 fi 47054 47055 47056 47057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which libpng to use" >&5 47058 $as_echo_n "checking for which libpng to use... " >&6; } 47059 47060 # default is bundled 47061 DEFAULT_LIBPNG=bundled 47062 47063 # 47064 # if user didn't specify, use DEFAULT_LIBPNG 47065 # 47066 if test "x${with_libpng}" = "x"; then 47067 with_libpng=${DEFAULT_LIBPNG} 47068 fi 47069 47070 if test "x${with_libpng}" = "xbundled"; then 47071 USE_EXTERNAL_LIBPNG=false 47072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47073 $as_echo "bundled" >&6; } 47074 elif test "x${with_libpng}" = "xsystem"; then 47075 47076 pkg_failed=no 47077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG" >&5 47078 $as_echo_n "checking for PNG... " >&6; } 47079 47080 if test -n "$PNG_CFLAGS"; then 47081 pkg_cv_PNG_CFLAGS="$PNG_CFLAGS" 47082 elif test -n "$PKG_CONFIG"; then 47083 if test -n "$PKG_CONFIG" && \ 47084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47085 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47086 ac_status=$? 47087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47088 test $ac_status = 0; }; then 47089 pkg_cv_PNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null` 47090 else 47091 pkg_failed=yes 47092 fi 47093 else 47094 pkg_failed=untried 47095 fi 47096 if test -n "$PNG_LIBS"; then 47097 pkg_cv_PNG_LIBS="$PNG_LIBS" 47098 elif test -n "$PKG_CONFIG"; then 47099 if test -n "$PKG_CONFIG" && \ 47100 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5 47101 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5 47102 ac_status=$? 47103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47104 test $ac_status = 0; }; then 47105 pkg_cv_PNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null` 47106 else 47107 pkg_failed=yes 47108 fi 47109 else 47110 pkg_failed=untried 47111 fi 47112 47113 47114 47115 if test $pkg_failed = yes; then 47116 47117 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47118 _pkg_short_errors_supported=yes 47119 else 47120 _pkg_short_errors_supported=no 47121 fi 47122 if test $_pkg_short_errors_supported = yes; then 47123 PNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpng" 2>&1` 47124 else 47125 PNG_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpng" 2>&1` 47126 fi 47127 # Put the nasty error message in config.log where it belongs 47128 echo "$PNG_PKG_ERRORS" >&5 47129 47130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47131 $as_echo "no" >&6; } 47132 LIBPNG_FOUND=no 47133 elif test $pkg_failed = untried; then 47134 LIBPNG_FOUND=no 47135 else 47136 PNG_CFLAGS=$pkg_cv_PNG_CFLAGS 47137 PNG_LIBS=$pkg_cv_PNG_LIBS 47138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47139 $as_echo "yes" >&6; } 47140 LIBPNG_FOUND=yes 47141 fi 47142 if test "x${LIBPNG_FOUND}" = "xyes"; then 47143 USE_EXTERNAL_LIBPNG=true 47144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47145 $as_echo "system" >&6; } 47146 else 47147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47148 $as_echo "system not found" >&6; } 47149 as_fn_error $? "--with-libpng=system specified, but no libpng found!" "$LINENO" 5 47150 fi 47151 else 47152 as_fn_error $? "Invalid value of --with-libpng: ${with_libpng}, use 'system' or 'bundled'" "$LINENO" 5 47153 fi 47154 47155 47156 ############################################################################### 47157 # 47158 # Check for the zlib library 47159 # 47160 47161 47162 # Check whether --with-zlib was given. 47163 if test "${with_zlib+set}" = set; then : 47164 withval=$with_zlib; 47165 fi 47166 47167 47168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 47169 $as_echo_n "checking for compress in -lz... " >&6; } 47170 if ${ac_cv_lib_z_compress+:} false; then : 47171 $as_echo_n "(cached) " >&6 47172 else 47173 ac_check_lib_save_LIBS=$LIBS 47174 LIBS="-lz $LIBS" 47175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47176 /* end confdefs.h. */ 47177 47178 /* Override any GCC internal prototype to avoid an error. 47179 Use char because int might match the return type of a GCC 47180 builtin and then its argument prototype would still apply. */ 47181 #ifdef __cplusplus 47182 extern "C" 47183 #endif 47184 char compress (); 47185 int 47186 main () 47187 { 47188 return compress (); 47189 ; 47190 return 0; 47191 } 47192 _ACEOF 47193 if ac_fn_cxx_try_link "$LINENO"; then : 47194 ac_cv_lib_z_compress=yes 47195 else 47196 ac_cv_lib_z_compress=no 47197 fi 47198 rm -f core conftest.err conftest.$ac_objext \ 47199 conftest$ac_exeext conftest.$ac_ext 47200 LIBS=$ac_check_lib_save_LIBS 47201 fi 47202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 47203 $as_echo "$ac_cv_lib_z_compress" >&6; } 47204 if test "x$ac_cv_lib_z_compress" = xyes; then : 47205 ZLIB_FOUND=yes 47206 else 47207 ZLIB_FOUND=no 47208 fi 47209 47210 47211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 47212 $as_echo_n "checking for which zlib to use... " >&6; } 47213 47214 DEFAULT_ZLIB=bundled 47215 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 47216 # 47217 # On macosx default is system...on others default is 47218 # 47219 DEFAULT_ZLIB=system 47220 fi 47221 47222 if test "x${ZLIB_FOUND}" != "xyes"; then 47223 # 47224 # If we don't find any system...set default to bundled 47225 # 47226 DEFAULT_ZLIB=bundled 47227 fi 47228 47229 # 47230 # If user didn't specify, use DEFAULT_ZLIB 47231 # 47232 if test "x${with_zlib}" = "x"; then 47233 with_zlib=${DEFAULT_ZLIB} 47234 fi 47235 47236 if test "x${with_zlib}" = "xbundled"; then 47237 USE_EXTERNAL_LIBZ=false 47238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 47239 $as_echo "bundled" >&6; } 47240 elif test "x${with_zlib}" = "xsystem"; then 47241 if test "x${ZLIB_FOUND}" = "xyes"; then 47242 USE_EXTERNAL_LIBZ=true 47243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 47244 $as_echo "system" >&6; } 47245 else 47246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 47247 $as_echo "system not found" >&6; } 47248 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 47249 fi 47250 else 47251 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 47252 fi 47253 47254 47255 47256 ############################################################################### 47257 LIBZIP_CAN_USE_MMAP=true 47258 47259 47260 47261 ############################################################################### 47262 # 47263 # Check if altzone exists in time.h 47264 # 47265 47266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47267 /* end confdefs.h. */ 47268 #include <time.h> 47269 int 47270 main () 47271 { 47272 return (int)altzone; 47273 ; 47274 return 0; 47275 } 47276 _ACEOF 47277 if ac_fn_cxx_try_link "$LINENO"; then : 47278 has_altzone=yes 47279 else 47280 has_altzone=no 47281 fi 47282 rm -f core conftest.err conftest.$ac_objext \ 47283 conftest$ac_exeext conftest.$ac_ext 47284 if test "x$has_altzone" = xyes; then 47285 47286 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 47287 47288 fi 47289 47290 ############################################################################### 47291 # 47292 # Check the maths library 47293 # 47294 47295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 47296 $as_echo_n "checking for cos in -lm... " >&6; } 47297 if ${ac_cv_lib_m_cos+:} false; then : 47298 $as_echo_n "(cached) " >&6 47299 else 47300 ac_check_lib_save_LIBS=$LIBS 47301 LIBS="-lm $LIBS" 47302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47303 /* end confdefs.h. */ 47304 47305 /* Override any GCC internal prototype to avoid an error. 47306 Use char because int might match the return type of a GCC 47307 builtin and then its argument prototype would still apply. */ 47308 #ifdef __cplusplus 47309 extern "C" 47310 #endif 47311 char cos (); 47312 int 47313 main () 47314 { 47315 return cos (); 47316 ; 47317 return 0; 47318 } 47319 _ACEOF 47320 if ac_fn_cxx_try_link "$LINENO"; then : 47321 ac_cv_lib_m_cos=yes 47322 else 47323 ac_cv_lib_m_cos=no 47324 fi 47325 rm -f core conftest.err conftest.$ac_objext \ 47326 conftest$ac_exeext conftest.$ac_ext 47327 LIBS=$ac_check_lib_save_LIBS 47328 fi 47329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 47330 $as_echo "$ac_cv_lib_m_cos" >&6; } 47331 if test "x$ac_cv_lib_m_cos" = xyes; then : 47332 cat >>confdefs.h <<_ACEOF 47333 #define HAVE_LIBM 1 47334 _ACEOF 47335 47336 LIBS="-lm $LIBS" 47337 47338 else 47339 47340 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 47341 $as_echo "$as_me: Maths library was not found" >&6;} 47342 47343 47344 fi 47345 47346 47347 47348 ############################################################################### 47349 # 47350 # Check for libdl.so 47351 47352 save_LIBS="$LIBS" 47353 LIBS="" 47354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 47355 $as_echo_n "checking for dlopen in -ldl... " >&6; } 47356 if ${ac_cv_lib_dl_dlopen+:} false; then : 47357 $as_echo_n "(cached) " >&6 47358 else 47359 ac_check_lib_save_LIBS=$LIBS 47360 LIBS="-ldl $LIBS" 47361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47362 /* end confdefs.h. */ 47363 47364 /* Override any GCC internal prototype to avoid an error. 47365 Use char because int might match the return type of a GCC 47366 builtin and then its argument prototype would still apply. */ 47367 #ifdef __cplusplus 47368 extern "C" 47369 #endif 47370 char dlopen (); 47371 int 47372 main () 47373 { 47374 return dlopen (); 47375 ; 47376 return 0; 47377 } 47378 _ACEOF 47379 if ac_fn_cxx_try_link "$LINENO"; then : 47380 ac_cv_lib_dl_dlopen=yes 47381 else 47382 ac_cv_lib_dl_dlopen=no 47383 fi 47384 rm -f core conftest.err conftest.$ac_objext \ 47385 conftest$ac_exeext conftest.$ac_ext 47386 LIBS=$ac_check_lib_save_LIBS 47387 fi 47388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 47389 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 47390 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 47391 cat >>confdefs.h <<_ACEOF 47392 #define HAVE_LIBDL 1 47393 _ACEOF 47394 47395 LIBS="-ldl $LIBS" 47396 47397 fi 47398 47399 LIBDL="$LIBS" 47400 47401 LIBS="$save_LIBS" 47402 47403 47404 ############################################################################### 47405 # 47406 # statically link libstdc++ before C++ ABI is stablized on Linux unless 47407 # dynamic build is configured on command line. 47408 # 47409 47410 # Check whether --with-stdc++lib was given. 47411 if test "${with_stdc__lib+set}" = set; then : 47412 withval=$with_stdc__lib; 47413 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 47414 && test "x$with_stdc__lib" != xdefault; then 47415 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 47416 fi 47417 47418 else 47419 with_stdc__lib=default 47420 47421 fi 47422 47423 47424 if test "x$OPENJDK_TARGET_OS" = xlinux; then 47425 # Test if -lstdc++ works. 47426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 47427 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 47428 ac_ext=cpp 47429 ac_cpp='$CXXCPP $CPPFLAGS' 47430 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47431 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47432 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47433 47434 OLD_CXXFLAGS="$CXXFLAGS" 47435 CXXFLAGS="$CXXFLAGS -lstdc++" 47436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47437 /* end confdefs.h. */ 47438 47439 int 47440 main () 47441 { 47442 return 0; 47443 ; 47444 return 0; 47445 } 47446 _ACEOF 47447 if ac_fn_cxx_try_link "$LINENO"; then : 47448 has_dynamic_libstdcxx=yes 47449 else 47450 has_dynamic_libstdcxx=no 47451 fi 47452 rm -f core conftest.err conftest.$ac_objext \ 47453 conftest$ac_exeext conftest.$ac_ext 47454 CXXFLAGS="$OLD_CXXFLAGS" 47455 ac_ext=cpp 47456 ac_cpp='$CXXCPP $CPPFLAGS' 47457 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47458 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47459 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47460 47461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 47462 $as_echo "$has_dynamic_libstdcxx" >&6; } 47463 47464 # Test if stdc++ can be linked statically. 47465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 47466 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 47467 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 47468 ac_ext=cpp 47469 ac_cpp='$CXXCPP $CPPFLAGS' 47470 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47471 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47472 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47473 47474 OLD_LIBS="$LIBS" 47475 OLD_CXX="$CXX" 47476 LIBS="$STATIC_STDCXX_FLAGS" 47477 CXX="$CC" 47478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47479 /* end confdefs.h. */ 47480 47481 int 47482 main () 47483 { 47484 return 0; 47485 ; 47486 return 0; 47487 } 47488 _ACEOF 47489 if ac_fn_cxx_try_link "$LINENO"; then : 47490 has_static_libstdcxx=yes 47491 else 47492 has_static_libstdcxx=no 47493 fi 47494 rm -f core conftest.err conftest.$ac_objext \ 47495 conftest$ac_exeext conftest.$ac_ext 47496 LIBS="$OLD_LIBS" 47497 CXX="$OLD_CXX" 47498 ac_ext=cpp 47499 ac_cpp='$CXXCPP $CPPFLAGS' 47500 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 47501 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 47502 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 47503 47504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 47505 $as_echo "$has_static_libstdcxx" >&6; } 47506 47507 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 47508 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 47509 fi 47510 47511 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 47512 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 47513 fi 47514 47515 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 47516 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 47517 fi 47518 47519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 47520 $as_echo_n "checking how to link with libstdc++... " >&6; } 47521 # If dynamic was requested, it's available since it would fail above otherwise. 47522 # If dynamic wasn't requested, go with static unless it isn't available. 47523 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47524 LIBCXX="$LIBCXX -lstdc++" 47525 LDCXX="$CXX" 47526 STATIC_CXX_SETTING="STATIC_CXX=false" 47527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 47528 $as_echo "dynamic" >&6; } 47529 else 47530 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 47531 LDCXX="$CC" 47532 STATIC_CXX_SETTING="STATIC_CXX=true" 47533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 47534 $as_echo "static" >&6; } 47535 fi 47536 fi 47537 47538 47539 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47540 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 47541 47542 pkg_failed=no 47543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 47544 $as_echo_n "checking for LIBFFI... " >&6; } 47545 47546 if test -n "$LIBFFI_CFLAGS"; then 47547 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 47548 elif test -n "$PKG_CONFIG"; then 47549 if test -n "$PKG_CONFIG" && \ 47550 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47551 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47552 ac_status=$? 47553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47554 test $ac_status = 0; }; then 47555 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 47556 else 47557 pkg_failed=yes 47558 fi 47559 else 47560 pkg_failed=untried 47561 fi 47562 if test -n "$LIBFFI_LIBS"; then 47563 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 47564 elif test -n "$PKG_CONFIG"; then 47565 if test -n "$PKG_CONFIG" && \ 47566 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 47567 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 47568 ac_status=$? 47569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 47570 test $ac_status = 0; }; then 47571 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 47572 else 47573 pkg_failed=yes 47574 fi 47575 else 47576 pkg_failed=untried 47577 fi 47578 47579 47580 47581 if test $pkg_failed = yes; then 47582 47583 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 47584 _pkg_short_errors_supported=yes 47585 else 47586 _pkg_short_errors_supported=no 47587 fi 47588 if test $_pkg_short_errors_supported = yes; then 47589 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 47590 else 47591 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 47592 fi 47593 # Put the nasty error message in config.log where it belongs 47594 echo "$LIBFFI_PKG_ERRORS" >&5 47595 47596 as_fn_error $? "Package requirements (libffi) were not met: 47597 47598 $LIBFFI_PKG_ERRORS 47599 47600 Consider adjusting the PKG_CONFIG_PATH environment variable if you 47601 installed software in a non-standard prefix. 47602 47603 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47604 and LIBFFI_LIBS to avoid the need to call pkg-config. 47605 See the pkg-config man page for more details. 47606 " "$LINENO" 5 47607 elif test $pkg_failed = untried; then 47608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 47609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 47610 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 47611 is in your PATH or set the PKG_CONFIG environment variable to the full 47612 path to pkg-config. 47613 47614 Alternatively, you may set the environment variables LIBFFI_CFLAGS 47615 and LIBFFI_LIBS to avoid the need to call pkg-config. 47616 See the pkg-config man page for more details. 47617 47618 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 47619 See \`config.log' for more details" "$LINENO" 5; } 47620 else 47621 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 47622 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 47623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47624 $as_echo "yes" >&6; } 47625 : 47626 fi 47627 47628 fi 47629 47630 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 47631 # Extract the first word of "llvm-config", so it can be a program name with args. 47632 set dummy llvm-config; ac_word=$2 47633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47634 $as_echo_n "checking for $ac_word... " >&6; } 47635 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 47636 $as_echo_n "(cached) " >&6 47637 else 47638 if test -n "$LLVM_CONFIG"; then 47639 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 47640 else 47641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47642 for as_dir in $PATH 47643 do 47644 IFS=$as_save_IFS 47645 test -z "$as_dir" && as_dir=. 47646 for ac_exec_ext in '' $ac_executable_extensions; do 47647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47648 ac_cv_prog_LLVM_CONFIG="llvm-config" 47649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47650 break 2 47651 fi 47652 done 47653 done 47654 IFS=$as_save_IFS 47655 47656 fi 47657 fi 47658 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 47659 if test -n "$LLVM_CONFIG"; then 47660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 47661 $as_echo "$LLVM_CONFIG" >&6; } 47662 else 47663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47664 $as_echo "no" >&6; } 47665 fi 47666 47667 47668 47669 if test "x$LLVM_CONFIG" != xllvm-config; then 47670 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 47671 fi 47672 47673 llvm_components="jit mcjit engine nativecodegen native" 47674 unset LLVM_CFLAGS 47675 for flag in $("$LLVM_CONFIG" --cxxflags); do 47676 if echo "${flag}" | grep -q '^-[ID]'; then 47677 if test "${flag}" != "-D_DEBUG" ; then 47678 if test "${LLVM_CFLAGS}" != "" ; then 47679 LLVM_CFLAGS="${LLVM_CFLAGS} " 47680 fi 47681 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 47682 fi 47683 fi 47684 done 47685 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 47686 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 47687 47688 unset LLVM_LDFLAGS 47689 for flag in $("${LLVM_CONFIG}" --ldflags); do 47690 if echo "${flag}" | grep -q '^-L'; then 47691 if test "${LLVM_LDFLAGS}" != ""; then 47692 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 47693 fi 47694 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 47695 fi 47696 done 47697 47698 unset LLVM_LIBS 47699 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 47700 if echo "${flag}" | grep -q '^-l'; then 47701 if test "${LLVM_LIBS}" != ""; then 47702 LLVM_LIBS="${LLVM_LIBS} " 47703 fi 47704 LLVM_LIBS="${LLVM_LIBS}${flag}" 47705 fi 47706 done 47707 47708 47709 47710 47711 fi 47712 47713 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 47714 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 47715 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 47716 fi 47717 47718 # TODO better (platform agnostic) test 47719 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 47720 LIBCXX="-lstdc++" 47721 fi 47722 47723 47724 47725 47726 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 47727 47728 47729 # Check whether --with-msvcr-dll was given. 47730 if test "${with_msvcr_dll+set}" = set; then : 47731 withval=$with_msvcr_dll; 47732 fi 47733 47734 47735 if test "x$with_msvcr_dll" != x; then 47736 # If given explicitely by user, do not probe. If not present, fail directly. 47737 47738 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 47739 METHOD="--with-msvcr-dll" 47740 if test -e "$POSSIBLE_MSVCR_DLL"; then 47741 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47742 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47743 47744 # Need to check if the found msvcr is correct architecture 47745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47746 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47747 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47748 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47749 CORRECT_MSVCR_ARCH=386 47750 else 47751 CORRECT_MSVCR_ARCH=x86-64 47752 fi 47753 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47755 $as_echo "ok" >&6; } 47756 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47758 $as_echo_n "checking for msvcr100.dll... " >&6; } 47759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47760 $as_echo "$MSVCR_DLL" >&6; } 47761 else 47762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47763 $as_echo "incorrect, ignoring" >&6; } 47764 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47765 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47766 fi 47767 fi 47768 47769 if test "x$MSVCR_DLL" = x; then 47770 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 47771 fi 47772 fi 47773 47774 if test "x$MSVCR_DLL" = x; then 47775 # Probe: Using well-known location from Visual Studio 10.0 47776 if test "x$VCINSTALLDIR" != x; then 47777 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 47778 47779 windows_path="$CYGWIN_VC_INSTALL_DIR" 47780 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47781 unix_path=`$CYGPATH -u "$windows_path"` 47782 CYGWIN_VC_INSTALL_DIR="$unix_path" 47783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47784 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47785 CYGWIN_VC_INSTALL_DIR="$unix_path" 47786 fi 47787 47788 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47789 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 47790 else 47791 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 47792 fi 47793 47794 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47795 METHOD="well-known location in VCINSTALLDIR" 47796 if test -e "$POSSIBLE_MSVCR_DLL"; then 47797 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47798 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47799 47800 # Need to check if the found msvcr is correct architecture 47801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47802 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47803 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47804 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47805 CORRECT_MSVCR_ARCH=386 47806 else 47807 CORRECT_MSVCR_ARCH=x86-64 47808 fi 47809 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47811 $as_echo "ok" >&6; } 47812 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47814 $as_echo_n "checking for msvcr100.dll... " >&6; } 47815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47816 $as_echo "$MSVCR_DLL" >&6; } 47817 else 47818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47819 $as_echo "incorrect, ignoring" >&6; } 47820 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47821 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47822 fi 47823 fi 47824 47825 fi 47826 fi 47827 47828 if test "x$MSVCR_DLL" = x; then 47829 # Probe: Check in the Boot JDK directory. 47830 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 47831 47832 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47833 METHOD="well-known location in Boot JDK" 47834 if test -e "$POSSIBLE_MSVCR_DLL"; then 47835 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47836 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47837 47838 # Need to check if the found msvcr is correct architecture 47839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47840 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47841 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47842 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47843 CORRECT_MSVCR_ARCH=386 47844 else 47845 CORRECT_MSVCR_ARCH=x86-64 47846 fi 47847 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47849 $as_echo "ok" >&6; } 47850 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47852 $as_echo_n "checking for msvcr100.dll... " >&6; } 47853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47854 $as_echo "$MSVCR_DLL" >&6; } 47855 else 47856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47857 $as_echo "incorrect, ignoring" >&6; } 47858 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47859 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47860 fi 47861 fi 47862 47863 fi 47864 47865 if test "x$MSVCR_DLL" = x; then 47866 # Probe: Look in the Windows system32 directory 47867 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 47868 47869 windows_path="$CYGWIN_SYSTEMROOT" 47870 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47871 unix_path=`$CYGPATH -u "$windows_path"` 47872 CYGWIN_SYSTEMROOT="$unix_path" 47873 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47874 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47875 CYGWIN_SYSTEMROOT="$unix_path" 47876 fi 47877 47878 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 47879 47880 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47881 METHOD="well-known location in SYSTEMROOT" 47882 if test -e "$POSSIBLE_MSVCR_DLL"; then 47883 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47884 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47885 47886 # Need to check if the found msvcr is correct architecture 47887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47888 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47889 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47890 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47891 CORRECT_MSVCR_ARCH=386 47892 else 47893 CORRECT_MSVCR_ARCH=x86-64 47894 fi 47895 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47897 $as_echo "ok" >&6; } 47898 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47900 $as_echo_n "checking for msvcr100.dll... " >&6; } 47901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47902 $as_echo "$MSVCR_DLL" >&6; } 47903 else 47904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47905 $as_echo "incorrect, ignoring" >&6; } 47906 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47907 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47908 fi 47909 fi 47910 47911 fi 47912 47913 if test "x$MSVCR_DLL" = x; then 47914 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 47915 if test "x$VS100COMNTOOLS" != x; then 47916 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 47917 47918 windows_path="$CYGWIN_VS_TOOLS_DIR" 47919 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 47920 unix_path=`$CYGPATH -u "$windows_path"` 47921 CYGWIN_VS_TOOLS_DIR="$unix_path" 47922 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47923 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 47924 CYGWIN_VS_TOOLS_DIR="$unix_path" 47925 fi 47926 47927 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47928 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 47929 else 47930 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 47931 fi 47932 47933 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47934 METHOD="search of VS100COMNTOOLS" 47935 if test -e "$POSSIBLE_MSVCR_DLL"; then 47936 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47937 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47938 47939 # Need to check if the found msvcr is correct architecture 47940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47941 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47942 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47943 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47944 CORRECT_MSVCR_ARCH=386 47945 else 47946 CORRECT_MSVCR_ARCH=x86-64 47947 fi 47948 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47950 $as_echo "ok" >&6; } 47951 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 47953 $as_echo_n "checking for msvcr100.dll... " >&6; } 47954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 47955 $as_echo "$MSVCR_DLL" >&6; } 47956 else 47957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 47958 $as_echo "incorrect, ignoring" >&6; } 47959 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 47960 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 47961 fi 47962 fi 47963 47964 fi 47965 fi 47966 47967 if test "x$MSVCR_DLL" = x; then 47968 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 47969 # (This was the original behaviour; kept since it might turn up something) 47970 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 47971 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 47972 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 47973 else 47974 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 47975 if test "x$POSSIBLE_MSVCR_DLL" = x; then 47976 # We're grasping at straws now... 47977 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 47978 fi 47979 fi 47980 47981 47982 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 47983 METHOD="search of VCINSTALLDIR" 47984 if test -e "$POSSIBLE_MSVCR_DLL"; then 47985 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 47986 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 47987 47988 # Need to check if the found msvcr is correct architecture 47989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 47990 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 47991 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 47992 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 47993 CORRECT_MSVCR_ARCH=386 47994 else 47995 CORRECT_MSVCR_ARCH=x86-64 47996 fi 47997 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 47998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 47999 $as_echo "ok" >&6; } 48000 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 48001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48002 $as_echo_n "checking for msvcr100.dll... " >&6; } 48003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 48004 $as_echo "$MSVCR_DLL" >&6; } 48005 else 48006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 48007 $as_echo "incorrect, ignoring" >&6; } 48008 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 48009 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 48010 fi 48011 fi 48012 48013 fi 48014 fi 48015 48016 if test "x$MSVCR_DLL" = x; then 48017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 48018 $as_echo_n "checking for msvcr100.dll... " >&6; } 48019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48020 $as_echo "no" >&6; } 48021 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 48022 fi 48023 48024 48025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48026 48027 # Input might be given as Windows format, start by converting to 48028 # unix format. 48029 path="$MSVCR_DLL" 48030 new_path=`$CYGPATH -u "$path"` 48031 48032 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 48033 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 48034 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 48035 # "foo.exe" is OK but "foo" is an error. 48036 # 48037 # This test is therefore slightly more accurate than "test -f" to check for file precense. 48038 # It is also a way to make sure we got the proper file name for the real test later on. 48039 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 48040 if test "x$test_shortpath" = x; then 48041 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 48042 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 48043 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 48044 fi 48045 48046 # Call helper function which possibly converts this using DOS-style short mode. 48047 # If so, the updated path is stored in $new_path. 48048 48049 input_path="$new_path" 48050 # Check if we need to convert this using DOS-style short mode. If the path 48051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48052 # take no chances and rewrite it. 48053 # Note: m4 eats our [], so we need to use [ and ] instead. 48054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 48055 if test "x$has_forbidden_chars" != x; then 48056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48057 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 48058 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 48059 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 48060 # Going to short mode and back again did indeed matter. Since short mode is 48061 # case insensitive, let's make it lowercase to improve readability. 48062 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48063 # Now convert it back to Unix-stile (cygpath) 48064 input_path=`$CYGPATH -u "$shortmode_path"` 48065 new_path="$input_path" 48066 fi 48067 fi 48068 48069 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 48070 if test "x$test_cygdrive_prefix" = x; then 48071 # As a simple fix, exclude /usr/bin since it's not a real path. 48072 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 48073 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 48074 # a path prefixed by /cygdrive for fixpath to work. 48075 new_path="$CYGWIN_ROOT_PATH$input_path" 48076 fi 48077 fi 48078 48079 48080 if test "x$path" != "x$new_path"; then 48081 MSVCR_DLL="$new_path" 48082 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 48083 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 48084 fi 48085 48086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48087 48088 path="$MSVCR_DLL" 48089 has_colon=`$ECHO $path | $GREP ^.:` 48090 new_path="$path" 48091 if test "x$has_colon" = x; then 48092 # Not in mixed or Windows style, start by that. 48093 new_path=`cmd //c echo $path` 48094 fi 48095 48096 48097 input_path="$new_path" 48098 # Check if we need to convert this using DOS-style short mode. If the path 48099 # contains just simple characters, use it. Otherwise (spaces, weird characters), 48100 # take no chances and rewrite it. 48101 # Note: m4 eats our [], so we need to use [ and ] instead. 48102 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 48103 if test "x$has_forbidden_chars" != x; then 48104 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 48105 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 48106 fi 48107 48108 48109 windows_path="$new_path" 48110 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 48111 unix_path=`$CYGPATH -u "$windows_path"` 48112 new_path="$unix_path" 48113 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48114 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 48115 new_path="$unix_path" 48116 fi 48117 48118 if test "x$path" != "x$new_path"; then 48119 MSVCR_DLL="$new_path" 48120 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 48121 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 48122 fi 48123 48124 # Save the first 10 bytes of this path to the storage, so fixpath can work. 48125 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 48126 48127 else 48128 # We're on a posix platform. Hooray! :) 48129 path="$MSVCR_DLL" 48130 has_space=`$ECHO "$path" | $GREP " "` 48131 if test "x$has_space" != x; then 48132 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 48133 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 48134 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 48135 fi 48136 48137 # Use eval to expand a potential ~ 48138 eval path="$path" 48139 if test ! -f "$path" && test ! -d "$path"; then 48140 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 48141 fi 48142 48143 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 48144 fi 48145 48146 48147 48148 48149 # Check whether --with-dxsdk was given. 48150 if test "${with_dxsdk+set}" = set; then : 48151 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 48152 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 48153 fi 48154 48155 48156 48157 48158 # Check whether --with-dxsdk-lib was given. 48159 if test "${with_dxsdk_lib+set}" = set; then : 48160 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 48161 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 48162 fi 48163 48164 48165 48166 48167 # Check whether --with-dxsdk-include was given. 48168 if test "${with_dxsdk_include+set}" = set; then : 48169 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 48170 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 48171 fi 48172 48173 48174 fi 48175 48176 48177 48178 ############################################################################### 48179 # 48180 # We need to do some final tweaking, when everything else is done. 48181 # 48182 ############################################################################### 48183 48184 48185 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 48186 48187 48188 # The name of the Service Agent jar. 48189 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 48190 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 48191 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 48192 fi 48193 48194 48195 48196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 48197 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 48198 48199 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 48200 ENABLE_INTREE_EC=yes 48201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48202 $as_echo "yes" >&6; } 48203 else 48204 ENABLE_INTREE_EC=no 48205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48206 $as_echo "no" >&6; } 48207 fi 48208 48209 48210 48211 48212 ############################################################################### 48213 # 48214 # Configure parts of the build that only affect the build performance, 48215 # not the result. 48216 # 48217 ############################################################################### 48218 48219 48220 # How many cores do we have on this build system? 48221 48222 # Check whether --with-num-cores was given. 48223 if test "${with_num_cores+set}" = set; then : 48224 withval=$with_num_cores; 48225 fi 48226 48227 if test "x$with_num_cores" = x; then 48228 # The number of cores were not specified, try to probe them. 48229 48230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 48231 $as_echo_n "checking for number of cores... " >&6; } 48232 NUM_CORES=1 48233 FOUND_CORES=no 48234 48235 if test -f /proc/cpuinfo; then 48236 # Looks like a Linux (or cygwin) system 48237 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 48238 FOUND_CORES=yes 48239 elif test -x /usr/sbin/psrinfo; then 48240 # Looks like a Solaris system 48241 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 48242 FOUND_CORES=yes 48243 elif test -x /usr/sbin/system_profiler; then 48244 # Looks like a MacOSX system 48245 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 48246 FOUND_CORES=yes 48247 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 48248 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 48249 FOUND_CORES=yes 48250 elif test -n "$NUMBER_OF_PROCESSORS"; then 48251 # On windows, look in the env 48252 NUM_CORES=$NUMBER_OF_PROCESSORS 48253 FOUND_CORES=yes 48254 fi 48255 48256 if test "x$FOUND_CORES" = xyes; then 48257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 48258 $as_echo "$NUM_CORES" >&6; } 48259 else 48260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 48261 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 48262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 48263 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 48264 fi 48265 48266 else 48267 NUM_CORES=$with_num_cores 48268 fi 48269 48270 48271 48272 # How much memory do we have on this build system? 48273 48274 # Check whether --with-memory-size was given. 48275 if test "${with_memory_size+set}" = set; then : 48276 withval=$with_memory_size; 48277 fi 48278 48279 if test "x$with_memory_size" = x; then 48280 # The memory size was not specified, try to probe it. 48281 48282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 48283 $as_echo_n "checking for memory size... " >&6; } 48284 # Default to 1024 MB 48285 MEMORY_SIZE=1024 48286 FOUND_MEM=no 48287 48288 if test -f /proc/meminfo; then 48289 # Looks like a Linux (or cygwin) system 48290 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 48291 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 48292 FOUND_MEM=yes 48293 elif test -x /usr/sbin/prtconf; then 48294 # Looks like a Solaris or AIX system 48295 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 48296 FOUND_MEM=yes 48297 elif test -x /usr/sbin/system_profiler; then 48298 # Looks like a MacOSX system 48299 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 48300 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 48301 FOUND_MEM=yes 48302 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 48303 # Windows, but without cygwin 48304 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 48305 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 48306 FOUND_MEM=yes 48307 fi 48308 48309 if test "x$FOUND_MEM" = xyes; then 48310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 48311 $as_echo "$MEMORY_SIZE MB" >&6; } 48312 else 48313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 48314 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 48315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 48316 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 48317 fi 48318 48319 else 48320 MEMORY_SIZE=$with_memory_size 48321 fi 48322 48323 48324 48325 # Provide a decent default number of parallel jobs for make depending on 48326 # number of cores, amount of memory and machine architecture. 48327 48328 # Check whether --with-jobs was given. 48329 if test "${with_jobs+set}" = set; then : 48330 withval=$with_jobs; 48331 fi 48332 48333 if test "x$with_jobs" = x; then 48334 # Number of jobs was not specified, calculate. 48335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 48336 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 48337 # Approximate memory in GB, rounding up a bit. 48338 memory_gb=`expr $MEMORY_SIZE / 1100` 48339 # Pick the lowest of memory in gb and number of cores. 48340 if test "$memory_gb" -lt "$NUM_CORES"; then 48341 JOBS="$memory_gb" 48342 else 48343 JOBS="$NUM_CORES" 48344 # On bigger machines, leave some room for other processes to run 48345 if test "$JOBS" -gt "4"; then 48346 JOBS=`expr $JOBS '*' 90 / 100` 48347 fi 48348 fi 48349 # Cap number of jobs to 16 48350 if test "$JOBS" -gt "16"; then 48351 JOBS=16 48352 fi 48353 if test "$JOBS" -eq "0"; then 48354 JOBS=1 48355 fi 48356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 48357 $as_echo "$JOBS" >&6; } 48358 else 48359 JOBS=$with_jobs 48360 fi 48361 48362 48363 48364 # Setup smart javac (after cores and memory have been setup) 48365 48366 48367 # Check whether --with-sjavac-server-java was given. 48368 if test "${with_sjavac_server_java+set}" = set; then : 48369 withval=$with_sjavac_server_java; 48370 fi 48371 48372 48373 if test "x$with_sjavac_server_java" != x; then 48374 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 48375 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 48376 if test "x$FOUND_VERSION" = x; then 48377 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 48378 fi 48379 else 48380 SJAVAC_SERVER_JAVA="" 48381 # Hotspot specific options. 48382 48383 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 48384 $ECHO "Command: $JAVA -verbosegc -version" >&5 48385 OUTPUT=`$JAVA -verbosegc -version 2>&1` 48386 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48387 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48388 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48389 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 48390 JVM_ARG_OK=true 48391 else 48392 $ECHO "Arg failed:" >&5 48393 $ECHO "$OUTPUT" >&5 48394 JVM_ARG_OK=false 48395 fi 48396 48397 # JRockit specific options. 48398 48399 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 48400 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 48401 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 48402 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48403 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48404 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48405 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 48406 JVM_ARG_OK=true 48407 else 48408 $ECHO "Arg failed:" >&5 48409 $ECHO "$OUTPUT" >&5 48410 JVM_ARG_OK=false 48411 fi 48412 48413 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 48414 fi 48415 48416 48417 if test "$MEMORY_SIZE" -gt "2500"; then 48418 48419 $ECHO "Check if jvm arg is ok: -d64" >&5 48420 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 48421 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 48422 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48423 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48424 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48425 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 48426 JVM_ARG_OK=true 48427 else 48428 $ECHO "Arg failed:" >&5 48429 $ECHO "$OUTPUT" >&5 48430 JVM_ARG_OK=false 48431 fi 48432 48433 if test "$JVM_ARG_OK" = true; then 48434 JVM_64BIT=true 48435 JVM_ARG_OK=false 48436 fi 48437 fi 48438 48439 if test "$JVM_64BIT" = true; then 48440 if test "$MEMORY_SIZE" -gt "17000"; then 48441 48442 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 48443 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 48444 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 48445 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48446 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48447 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48448 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 48449 JVM_ARG_OK=true 48450 else 48451 $ECHO "Arg failed:" >&5 48452 $ECHO "$OUTPUT" >&5 48453 JVM_ARG_OK=false 48454 fi 48455 48456 fi 48457 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 48458 48459 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 48460 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 48461 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 48462 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48463 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48464 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48465 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 48466 JVM_ARG_OK=true 48467 else 48468 $ECHO "Arg failed:" >&5 48469 $ECHO "$OUTPUT" >&5 48470 JVM_ARG_OK=false 48471 fi 48472 48473 fi 48474 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 48475 48476 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 48477 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 48478 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 48479 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48480 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48481 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48482 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 48483 JVM_ARG_OK=true 48484 else 48485 $ECHO "Arg failed:" >&5 48486 $ECHO "$OUTPUT" >&5 48487 JVM_ARG_OK=false 48488 fi 48489 48490 fi 48491 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 48492 48493 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 48494 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 48495 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 48496 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48497 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48498 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48499 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 48500 JVM_ARG_OK=true 48501 else 48502 $ECHO "Arg failed:" >&5 48503 $ECHO "$OUTPUT" >&5 48504 JVM_ARG_OK=false 48505 fi 48506 48507 fi 48508 fi 48509 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 48510 48511 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 48512 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 48513 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 48514 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48515 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48516 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48517 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 48518 JVM_ARG_OK=true 48519 else 48520 $ECHO "Arg failed:" >&5 48521 $ECHO "$OUTPUT" >&5 48522 JVM_ARG_OK=false 48523 fi 48524 48525 fi 48526 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 48527 48528 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 48529 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 48530 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 48531 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48532 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48533 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48534 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 48535 JVM_ARG_OK=true 48536 else 48537 $ECHO "Arg failed:" >&5 48538 $ECHO "$OUTPUT" >&5 48539 JVM_ARG_OK=false 48540 fi 48541 48542 fi 48543 if test "$JVM_ARG_OK" = false; then 48544 48545 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 48546 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 48547 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 48548 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 48549 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 48550 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 48551 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 48552 JVM_ARG_OK=true 48553 else 48554 $ECHO "Arg failed:" >&5 48555 $ECHO "$OUTPUT" >&5 48556 JVM_ARG_OK=false 48557 fi 48558 48559 fi 48560 48561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 48562 $as_echo_n "checking whether to use sjavac... " >&6; } 48563 # Check whether --enable-sjavac was given. 48564 if test "${enable_sjavac+set}" = set; then : 48565 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 48566 else 48567 ENABLE_SJAVAC='no' 48568 fi 48569 48570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 48571 $as_echo "$ENABLE_SJAVAC" >&6; } 48572 48573 48574 if test "x$ENABLE_SJAVAC" = xyes; then 48575 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 48576 else 48577 SJAVAC_SERVER_DIR= 48578 fi 48579 48580 48581 48582 # Can the C/C++ compiler use precompiled headers? 48583 48584 48585 ############################################################################### 48586 # 48587 # Can the C/C++ compiler use precompiled headers? 48588 # 48589 # Check whether --enable-precompiled-headers was given. 48590 if test "${enable_precompiled_headers+set}" = set; then : 48591 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 48592 else 48593 ENABLE_PRECOMPH=yes 48594 fi 48595 48596 48597 USE_PRECOMPILED_HEADER=1 48598 if test "x$ENABLE_PRECOMPH" = xno; then 48599 USE_PRECOMPILED_HEADER=0 48600 fi 48601 48602 if test "x$ENABLE_PRECOMPH" = xyes; then 48603 # Check that the compiler actually supports precomp headers. 48604 if test "x$TOOLCHAIN_TYPE" = xgcc; then 48605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 48606 $as_echo_n "checking that precompiled headers work... " >&6; } 48607 echo "int alfa();" > conftest.h 48608 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 48609 if test ! -f conftest.hpp.gch; then 48610 USE_PRECOMPILED_HEADER=0 48611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48612 $as_echo "no" >&6; } 48613 else 48614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48615 $as_echo "yes" >&6; } 48616 fi 48617 rm -f conftest.h conftest.hpp.gch 48618 fi 48619 fi 48620 48621 48622 48623 48624 # Setup use of ccache, if available 48625 48626 # Check whether --enable-ccache was given. 48627 if test "${enable_ccache+set}" = set; then : 48628 enableval=$enable_ccache; 48629 fi 48630 48631 48632 CCACHE= 48633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 48634 $as_echo_n "checking is ccache enabled... " >&6; } 48635 ENABLE_CCACHE=$enable_ccache 48636 if test "x$enable_ccache" = xyes; then 48637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48638 $as_echo "yes" >&6; } 48639 OLD_PATH="$PATH" 48640 if test "x$TOOLS_DIR" != x; then 48641 PATH=$TOOLS_DIR:$PATH 48642 fi 48643 48644 48645 48646 # Publish this variable in the help. 48647 48648 48649 if test "x$CCACHE" = x; then 48650 # The variable is not set by user, try to locate tool using the code snippet 48651 for ac_prog in ccache 48652 do 48653 # Extract the first word of "$ac_prog", so it can be a program name with args. 48654 set dummy $ac_prog; ac_word=$2 48655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48656 $as_echo_n "checking for $ac_word... " >&6; } 48657 if ${ac_cv_path_CCACHE+:} false; then : 48658 $as_echo_n "(cached) " >&6 48659 else 48660 case $CCACHE in 48661 [\\/]* | ?:[\\/]*) 48662 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48663 ;; 48664 *) 48665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48666 for as_dir in $PATH 48667 do 48668 IFS=$as_save_IFS 48669 test -z "$as_dir" && as_dir=. 48670 for ac_exec_ext in '' $ac_executable_extensions; do 48671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48672 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48674 break 2 48675 fi 48676 done 48677 done 48678 IFS=$as_save_IFS 48679 48680 ;; 48681 esac 48682 fi 48683 CCACHE=$ac_cv_path_CCACHE 48684 if test -n "$CCACHE"; then 48685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48686 $as_echo "$CCACHE" >&6; } 48687 else 48688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48689 $as_echo "no" >&6; } 48690 fi 48691 48692 48693 test -n "$CCACHE" && break 48694 done 48695 48696 else 48697 # The variable is set, but is it from the command line or the environment? 48698 48699 # Try to remove the string !CCACHE! from our list. 48700 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 48701 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 48702 # If it failed, the variable was not from the command line. Ignore it, 48703 # but warn the user (except for BASH, which is always set by the calling BASH). 48704 if test "xCCACHE" != xBASH; then 48705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 48706 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 48707 fi 48708 # Try to locate tool using the code snippet 48709 for ac_prog in ccache 48710 do 48711 # Extract the first word of "$ac_prog", so it can be a program name with args. 48712 set dummy $ac_prog; ac_word=$2 48713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48714 $as_echo_n "checking for $ac_word... " >&6; } 48715 if ${ac_cv_path_CCACHE+:} false; then : 48716 $as_echo_n "(cached) " >&6 48717 else 48718 case $CCACHE in 48719 [\\/]* | ?:[\\/]*) 48720 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48721 ;; 48722 *) 48723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48724 for as_dir in $PATH 48725 do 48726 IFS=$as_save_IFS 48727 test -z "$as_dir" && as_dir=. 48728 for ac_exec_ext in '' $ac_executable_extensions; do 48729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48730 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48732 break 2 48733 fi 48734 done 48735 done 48736 IFS=$as_save_IFS 48737 48738 ;; 48739 esac 48740 fi 48741 CCACHE=$ac_cv_path_CCACHE 48742 if test -n "$CCACHE"; then 48743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48744 $as_echo "$CCACHE" >&6; } 48745 else 48746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48747 $as_echo "no" >&6; } 48748 fi 48749 48750 48751 test -n "$CCACHE" && break 48752 done 48753 48754 else 48755 # If it succeeded, then it was overridden by the user. We will use it 48756 # for the tool. 48757 48758 # First remove it from the list of overridden variables, so we can test 48759 # for unknown variables in the end. 48760 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 48761 48762 # Check if the provided tool contains a complete path. 48763 tool_specified="$CCACHE" 48764 tool_basename="${tool_specified##*/}" 48765 if test "x$tool_basename" = "x$tool_specified"; then 48766 # A command without a complete path is provided, search $PATH. 48767 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 48768 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 48769 # Extract the first word of "$tool_basename", so it can be a program name with args. 48770 set dummy $tool_basename; ac_word=$2 48771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 48772 $as_echo_n "checking for $ac_word... " >&6; } 48773 if ${ac_cv_path_CCACHE+:} false; then : 48774 $as_echo_n "(cached) " >&6 48775 else 48776 case $CCACHE in 48777 [\\/]* | ?:[\\/]*) 48778 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 48779 ;; 48780 *) 48781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 48782 for as_dir in $PATH 48783 do 48784 IFS=$as_save_IFS 48785 test -z "$as_dir" && as_dir=. 48786 for ac_exec_ext in '' $ac_executable_extensions; do 48787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 48788 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 48789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 48790 break 2 48791 fi 48792 done 48793 done 48794 IFS=$as_save_IFS 48795 48796 ;; 48797 esac 48798 fi 48799 CCACHE=$ac_cv_path_CCACHE 48800 if test -n "$CCACHE"; then 48801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 48802 $as_echo "$CCACHE" >&6; } 48803 else 48804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48805 $as_echo "no" >&6; } 48806 fi 48807 48808 48809 if test "x$CCACHE" = x; then 48810 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 48811 fi 48812 else 48813 # Otherwise we believe it is a complete path. Use it as it is. 48814 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 48815 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 48816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 48817 $as_echo_n "checking for CCACHE... " >&6; } 48818 if test ! -x "$tool_specified"; then 48819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 48820 $as_echo "not found" >&6; } 48821 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 48822 fi 48823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 48824 $as_echo "$tool_specified" >&6; } 48825 fi 48826 fi 48827 fi 48828 48829 48830 48831 if test "x$CCACHE" = x; then 48832 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 48833 fi 48834 48835 48836 CCACHE_STATUS="enabled" 48837 PATH="$OLD_PATH" 48838 elif test "x$enable_ccache" = xno; then 48839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 48840 $as_echo "no, explicitly disabled" >&6; } 48841 elif test "x$enable_ccache" = x; then 48842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 48843 $as_echo "no" >&6; } 48844 else 48845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 48846 $as_echo "unknown" >&6; } 48847 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 48848 fi 48849 48850 48851 48852 # Check whether --with-ccache-dir was given. 48853 if test "${with_ccache_dir+set}" = set; then : 48854 withval=$with_ccache_dir; 48855 fi 48856 48857 48858 if test "x$with_ccache_dir" != x; then 48859 # When using a non home ccache directory, assume the use is to share ccache files 48860 # with other users. Thus change the umask. 48861 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 48862 if test "x$CCACHE" = x; then 48863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 48864 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 48865 fi 48866 fi 48867 48868 if test "x$CCACHE" != x; then 48869 48870 if test "x$CCACHE" != x; then 48871 # Only use ccache if it is 3.1.4 or later, which supports 48872 # precompiled headers. 48873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 48874 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 48875 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 48876 if test "x$HAS_GOOD_CCACHE" = x; then 48877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 48878 $as_echo "no, disabling ccache" >&6; } 48879 CCACHE= 48880 CCACHE_STATUS="disabled" 48881 else 48882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48883 $as_echo "yes" >&6; } 48884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 48885 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 48886 PUSHED_FLAGS="$CXXFLAGS" 48887 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 48888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 48889 /* end confdefs.h. */ 48890 48891 int 48892 main () 48893 { 48894 48895 ; 48896 return 0; 48897 } 48898 _ACEOF 48899 if ac_fn_cxx_try_compile "$LINENO"; then : 48900 CC_KNOWS_CCACHE_TRICK=yes 48901 else 48902 CC_KNOWS_CCACHE_TRICK=no 48903 fi 48904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 48905 CXXFLAGS="$PUSHED_FLAGS" 48906 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 48907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 48908 $as_echo "yes" >&6; } 48909 else 48910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 48911 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 48912 CCACHE= 48913 CCACHE_STATUS="disabled" 48914 fi 48915 fi 48916 fi 48917 48918 if test "x$CCACHE" != x; then 48919 CCACHE_SLOPPINESS=time_macros 48920 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 48921 CCACHE_FLAGS=-fpch-preprocess 48922 48923 if test "x$SET_CCACHE_DIR" != x; then 48924 mkdir -p $CCACHE_DIR > /dev/null 2>&1 48925 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 48926 fi 48927 fi 48928 48929 fi 48930 48931 48932 ############################################################################### 48933 # 48934 # And now the finish... 48935 # 48936 ############################################################################### 48937 48938 # Check for some common pitfalls 48939 48940 if test x"$OPENJDK_BUILD_OS" = xwindows; then 48941 file_to_test="$SRC_ROOT/LICENSE" 48942 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 48943 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 48944 fi 48945 fi 48946 48947 48948 # Did user specify any unknown variables? 48949 48950 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 48951 # Replace the separating ! with spaces before presenting for end user. 48952 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 48953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 48954 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 48955 fi 48956 48957 48958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 48959 $as_echo_n "checking if build directory is on local disk... " >&6; } 48960 48961 # df -l lists only local disks; if the given directory is not found then 48962 # a non-zero exit code is given 48963 if test "x$DF" = x; then 48964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 48965 # msys does not have df; use Windows "net use" instead. 48966 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 48967 if test "x$IS_NETWORK_DISK" = x; then 48968 OUTPUT_DIR_IS_LOCAL="yes" 48969 else 48970 OUTPUT_DIR_IS_LOCAL="no" 48971 fi 48972 else 48973 # No df here, say it's local 48974 OUTPUT_DIR_IS_LOCAL="yes" 48975 fi 48976 else 48977 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 48978 OUTPUT_DIR_IS_LOCAL="yes" 48979 else 48980 OUTPUT_DIR_IS_LOCAL="no" 48981 fi 48982 fi 48983 48984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 48985 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 48986 48987 48988 48989 # Check if the user has any old-style ALT_ variables set. 48990 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 48991 48992 # Before generating output files, test if they exist. If they do, this is a reconfigure. 48993 # Since we can't properly handle the dependencies for this, warn the user about the situation 48994 if test -e $OUTPUT_ROOT/spec.gmk; then 48995 IS_RECONFIGURE=yes 48996 else 48997 IS_RECONFIGURE=no 48998 fi 48999 49000 49001 # At the end, call the custom hook. (Dummy macro if no custom sources available) 49002 49003 49004 # We're messing a bit with internal autoconf variables to put the config.status 49005 # in the output directory instead of the current directory. 49006 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 49007 49008 # Create the actual output files. Now the main work of configure is done. 49009 cat >confcache <<\_ACEOF 49010 # This file is a shell script that caches the results of configure 49011 # tests run on this system so they can be shared between configure 49012 # scripts and configure runs, see configure's option --config-cache. 49013 # It is not useful on other systems. If it contains results you don't 49014 # want to keep, you may remove or edit it. 49015 # 49016 # config.status only pays attention to the cache file if you give it 49017 # the --recheck option to rerun configure. 49018 # 49019 # `ac_cv_env_foo' variables (set or unset) will be overridden when 49020 # loading this file, other *unset* `ac_cv_foo' will be assigned the 49021 # following values. 49022 49023 _ACEOF 49024 49025 # The following way of writing the cache mishandles newlines in values, 49026 # but we know of no workaround that is simple, portable, and efficient. 49027 # So, we kill variables containing newlines. 49028 # Ultrix sh set writes to stderr and can't be redirected directly, 49029 # and sets the high bit in the cache file unless we assign to the vars. 49030 ( 49031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 49032 eval ac_val=\$$ac_var 49033 case $ac_val in #( 49034 *${as_nl}*) 49035 case $ac_var in #( 49036 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 49037 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 49038 esac 49039 case $ac_var in #( 49040 _ | IFS | as_nl) ;; #( 49041 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 49042 *) { eval $ac_var=; unset $ac_var;} ;; 49043 esac ;; 49044 esac 49045 done 49046 49047 (set) 2>&1 | 49048 case $as_nl`(ac_space=' '; set) 2>&1` in #( 49049 *${as_nl}ac_space=\ *) 49050 # `set' does not quote correctly, so add quotes: double-quote 49051 # substitution turns \\\\ into \\, and sed turns \\ into \. 49052 sed -n \ 49053 "s/'/'\\\\''/g; 49054 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 49055 ;; #( 49056 *) 49057 # `set' quotes correctly as required by POSIX, so do not add quotes. 49058 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 49059 ;; 49060 esac | 49061 sort 49062 ) | 49063 sed ' 49064 /^ac_cv_env_/b end 49065 t clear 49066 :clear 49067 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 49068 t end 49069 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 49070 :end' >>confcache 49071 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 49072 if test -w "$cache_file"; then 49073 if test "x$cache_file" != "x/dev/null"; then 49074 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 49075 $as_echo "$as_me: updating cache $cache_file" >&6;} 49076 if test ! -f "$cache_file" || test -h "$cache_file"; then 49077 cat confcache >"$cache_file" 49078 else 49079 case $cache_file in #( 49080 */* | ?:*) 49081 mv -f confcache "$cache_file"$$ && 49082 mv -f "$cache_file"$$ "$cache_file" ;; #( 49083 *) 49084 mv -f confcache "$cache_file" ;; 49085 esac 49086 fi 49087 fi 49088 else 49089 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 49090 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 49091 fi 49092 fi 49093 rm -f confcache 49094 49095 test "x$prefix" = xNONE && prefix=$ac_default_prefix 49096 # Let make expand exec_prefix. 49097 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 49098 49099 DEFS=-DHAVE_CONFIG_H 49100 49101 ac_libobjs= 49102 ac_ltlibobjs= 49103 U= 49104 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 49105 # 1. Remove the extension, and $U if already installed. 49106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 49107 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 49108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 49109 # will be set to the directory where LIBOBJS objects are built. 49110 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 49111 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 49112 done 49113 LIBOBJS=$ac_libobjs 49114 49115 LTLIBOBJS=$ac_ltlibobjs 49116 49117 49118 49119 : "${CONFIG_STATUS=./config.status}" 49120 ac_write_fail=0 49121 ac_clean_files_save=$ac_clean_files 49122 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 49123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 49124 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 49125 as_write_fail=0 49126 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 49127 #! $SHELL 49128 # Generated by $as_me. 49129 # Run this file to recreate the current configuration. 49130 # Compiler output produced by configure, useful for debugging 49131 # configure, is in config.log if it exists. 49132 49133 debug=false 49134 ac_cs_recheck=false 49135 ac_cs_silent=false 49136 49137 SHELL=\${CONFIG_SHELL-$SHELL} 49138 export SHELL 49139 _ASEOF 49140 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 49141 ## -------------------- ## 49142 ## M4sh Initialization. ## 49143 ## -------------------- ## 49144 49145 # Be more Bourne compatible 49146 DUALCASE=1; export DUALCASE # for MKS sh 49147 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 49148 emulate sh 49149 NULLCMD=: 49150 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 49151 # is contrary to our usage. Disable this feature. 49152 alias -g '${1+"$@"}'='"$@"' 49153 setopt NO_GLOB_SUBST 49154 else 49155 case `(set -o) 2>/dev/null` in #( 49156 *posix*) : 49157 set -o posix ;; #( 49158 *) : 49159 ;; 49160 esac 49161 fi 49162 49163 49164 as_nl=' 49165 ' 49166 export as_nl 49167 # Printing a long string crashes Solaris 7 /usr/bin/printf. 49168 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 49169 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 49170 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49171 # Prefer a ksh shell builtin over an external printf program on Solaris, 49172 # but without wasting forks for bash or zsh. 49173 if test -z "$BASH_VERSION$ZSH_VERSION" \ 49174 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49175 as_echo='print -r --' 49176 as_echo_n='print -rn --' 49177 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 49178 as_echo='printf %s\n' 49179 as_echo_n='printf %s' 49180 else 49181 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 49182 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 49183 as_echo_n='/usr/ucb/echo -n' 49184 else 49185 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 49186 as_echo_n_body='eval 49187 arg=$1; 49188 case $arg in #( 49189 *"$as_nl"*) 49190 expr "X$arg" : "X\\(.*\\)$as_nl"; 49191 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 49192 esac; 49193 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 49194 ' 49195 export as_echo_n_body 49196 as_echo_n='sh -c $as_echo_n_body as_echo' 49197 fi 49198 export as_echo_body 49199 as_echo='sh -c $as_echo_body as_echo' 49200 fi 49201 49202 # The user is always right. 49203 if test "${PATH_SEPARATOR+set}" != set; then 49204 PATH_SEPARATOR=: 49205 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 49206 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 49207 PATH_SEPARATOR=';' 49208 } 49209 fi 49210 49211 49212 # IFS 49213 # We need space, tab and new line, in precisely that order. Quoting is 49214 # there to prevent editors from complaining about space-tab. 49215 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 49216 # splitting by setting IFS to empty value.) 49217 IFS=" "" $as_nl" 49218 49219 # Find who we are. Look in the path if we contain no directory separator. 49220 as_myself= 49221 case $0 in #(( 49222 *[\\/]* ) as_myself=$0 ;; 49223 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 49224 for as_dir in $PATH 49225 do 49226 IFS=$as_save_IFS 49227 test -z "$as_dir" && as_dir=. 49228 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 49229 done 49230 IFS=$as_save_IFS 49231 49232 ;; 49233 esac 49234 # We did not find ourselves, most probably we were run as `sh COMMAND' 49235 # in which case we are not to be found in the path. 49236 if test "x$as_myself" = x; then 49237 as_myself=$0 49238 fi 49239 if test ! -f "$as_myself"; then 49240 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 49241 exit 1 49242 fi 49243 49244 # Unset variables that we do not need and which cause bugs (e.g. in 49245 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 49246 # suppresses any "Segmentation fault" message there. '((' could 49247 # trigger a bug in pdksh 5.2.14. 49248 for as_var in BASH_ENV ENV MAIL MAILPATH 49249 do eval test x\${$as_var+set} = xset \ 49250 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 49251 done 49252 PS1='$ ' 49253 PS2='> ' 49254 PS4='+ ' 49255 49256 # NLS nuisances. 49257 LC_ALL=C 49258 export LC_ALL 49259 LANGUAGE=C 49260 export LANGUAGE 49261 49262 # CDPATH. 49263 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 49264 49265 49266 # as_fn_error STATUS ERROR [LINENO LOG_FD] 49267 # ---------------------------------------- 49268 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 49269 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 49270 # script with STATUS, using 1 if that was 0. 49271 as_fn_error () 49272 { 49273 as_status=$1; test $as_status -eq 0 && as_status=1 49274 if test "$4"; then 49275 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 49276 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 49277 fi 49278 $as_echo "$as_me: error: $2" >&2 49279 as_fn_exit $as_status 49280 } # as_fn_error 49281 49282 49283 # as_fn_set_status STATUS 49284 # ----------------------- 49285 # Set $? to STATUS, without forking. 49286 as_fn_set_status () 49287 { 49288 return $1 49289 } # as_fn_set_status 49290 49291 # as_fn_exit STATUS 49292 # ----------------- 49293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 49294 as_fn_exit () 49295 { 49296 set +e 49297 as_fn_set_status $1 49298 exit $1 49299 } # as_fn_exit 49300 49301 # as_fn_unset VAR 49302 # --------------- 49303 # Portably unset VAR. 49304 as_fn_unset () 49305 { 49306 { eval $1=; unset $1;} 49307 } 49308 as_unset=as_fn_unset 49309 # as_fn_append VAR VALUE 49310 # ---------------------- 49311 # Append the text in VALUE to the end of the definition contained in VAR. Take 49312 # advantage of any shell optimizations that allow amortized linear growth over 49313 # repeated appends, instead of the typical quadratic growth present in naive 49314 # implementations. 49315 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 49316 eval 'as_fn_append () 49317 { 49318 eval $1+=\$2 49319 }' 49320 else 49321 as_fn_append () 49322 { 49323 eval $1=\$$1\$2 49324 } 49325 fi # as_fn_append 49326 49327 # as_fn_arith ARG... 49328 # ------------------ 49329 # Perform arithmetic evaluation on the ARGs, and store the result in the 49330 # global $as_val. Take advantage of shells that can avoid forks. The arguments 49331 # must be portable across $(()) and expr. 49332 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 49333 eval 'as_fn_arith () 49334 { 49335 as_val=$(( $* )) 49336 }' 49337 else 49338 as_fn_arith () 49339 { 49340 as_val=`expr "$@" || test $? -eq 1` 49341 } 49342 fi # as_fn_arith 49343 49344 49345 if expr a : '\(a\)' >/dev/null 2>&1 && 49346 test "X`expr 00001 : '.*\(...\)'`" = X001; then 49347 as_expr=expr 49348 else 49349 as_expr=false 49350 fi 49351 49352 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 49353 as_basename=basename 49354 else 49355 as_basename=false 49356 fi 49357 49358 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 49359 as_dirname=dirname 49360 else 49361 as_dirname=false 49362 fi 49363 49364 as_me=`$as_basename -- "$0" || 49365 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 49366 X"$0" : 'X\(//\)$' \| \ 49367 X"$0" : 'X\(/\)' \| . 2>/dev/null || 49368 $as_echo X/"$0" | 49369 sed '/^.*\/\([^/][^/]*\)\/*$/{ 49370 s//\1/ 49371 q 49372 } 49373 /^X\/\(\/\/\)$/{ 49374 s//\1/ 49375 q 49376 } 49377 /^X\/\(\/\).*/{ 49378 s//\1/ 49379 q 49380 } 49381 s/.*/./; q'` 49382 49383 # Avoid depending upon Character Ranges. 49384 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 49385 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 49386 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 49387 as_cr_digits='0123456789' 49388 as_cr_alnum=$as_cr_Letters$as_cr_digits 49389 49390 ECHO_C= ECHO_N= ECHO_T= 49391 case `echo -n x` in #((((( 49392 -n*) 49393 case `echo 'xy\c'` in 49394 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 49395 xy) ECHO_C='\c';; 49396 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 49397 ECHO_T=' ';; 49398 esac;; 49399 *) 49400 ECHO_N='-n';; 49401 esac 49402 49403 rm -f conf$$ conf$$.exe conf$$.file 49404 if test -d conf$$.dir; then 49405 rm -f conf$$.dir/conf$$.file 49406 else 49407 rm -f conf$$.dir 49408 mkdir conf$$.dir 2>/dev/null 49409 fi 49410 if (echo >conf$$.file) 2>/dev/null; then 49411 if ln -s conf$$.file conf$$ 2>/dev/null; then 49412 as_ln_s='ln -s' 49413 # ... but there are two gotchas: 49414 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 49415 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 49416 # In both cases, we have to default to `cp -pR'. 49417 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 49418 as_ln_s='cp -pR' 49419 elif ln conf$$.file conf$$ 2>/dev/null; then 49420 as_ln_s=ln 49421 else 49422 as_ln_s='cp -pR' 49423 fi 49424 else 49425 as_ln_s='cp -pR' 49426 fi 49427 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 49428 rmdir conf$$.dir 2>/dev/null 49429 49430 49431 # as_fn_mkdir_p 49432 # ------------- 49433 # Create "$as_dir" as a directory, including parents if necessary. 49434 as_fn_mkdir_p () 49435 { 49436 49437 case $as_dir in #( 49438 -*) as_dir=./$as_dir;; 49439 esac 49440 test -d "$as_dir" || eval $as_mkdir_p || { 49441 as_dirs= 49442 while :; do 49443 case $as_dir in #( 49444 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 49445 *) as_qdir=$as_dir;; 49446 esac 49447 as_dirs="'$as_qdir' $as_dirs" 49448 as_dir=`$as_dirname -- "$as_dir" || 49449 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 49450 X"$as_dir" : 'X\(//\)[^/]' \| \ 49451 X"$as_dir" : 'X\(//\)$' \| \ 49452 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 49453 $as_echo X"$as_dir" | 49454 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 49455 s//\1/ 49456 q 49457 } 49458 /^X\(\/\/\)[^/].*/{ 49459 s//\1/ 49460 q 49461 } 49462 /^X\(\/\/\)$/{ 49463 s//\1/ 49464 q 49465 } 49466 /^X\(\/\).*/{ 49467 s//\1/ 49468 q 49469 } 49470 s/.*/./; q'` 49471 test -d "$as_dir" && break 49472 done 49473 test -z "$as_dirs" || eval "mkdir $as_dirs" 49474 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 49475 49476 49477 } # as_fn_mkdir_p 49478 if mkdir -p . 2>/dev/null; then 49479 as_mkdir_p='mkdir -p "$as_dir"' 49480 else 49481 test -d ./-p && rmdir ./-p 49482 as_mkdir_p=false 49483 fi 49484 49485 49486 # as_fn_executable_p FILE 49487 # ----------------------- 49488 # Test if FILE is an executable regular file. 49489 as_fn_executable_p () 49490 { 49491 test -f "$1" && test -x "$1" 49492 } # as_fn_executable_p 49493 as_test_x='test -x' 49494 as_executable_p=as_fn_executable_p 49495 49496 # Sed expression to map a string onto a valid CPP name. 49497 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 49498 49499 # Sed expression to map a string onto a valid variable name. 49500 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 49501 49502 49503 exec 6>&1 49504 ## ----------------------------------- ## 49505 ## Main body of $CONFIG_STATUS script. ## 49506 ## ----------------------------------- ## 49507 _ASEOF 49508 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 49509 49510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49511 # Save the log message, to keep $0 and so on meaningful, and to 49512 # report actual input values of CONFIG_FILES etc. instead of their 49513 # values after options handling. 49514 ac_log=" 49515 This file was extended by OpenJDK $as_me jdk9, which was 49516 generated by GNU Autoconf 2.69. Invocation command line was 49517 49518 CONFIG_FILES = $CONFIG_FILES 49519 CONFIG_HEADERS = $CONFIG_HEADERS 49520 CONFIG_LINKS = $CONFIG_LINKS 49521 CONFIG_COMMANDS = $CONFIG_COMMANDS 49522 $ $0 $@ 49523 49524 on `(hostname || uname -n) 2>/dev/null | sed 1q` 49525 " 49526 49527 _ACEOF 49528 49529 case $ac_config_files in *" 49530 "*) set x $ac_config_files; shift; ac_config_files=$*;; 49531 esac 49532 49533 case $ac_config_headers in *" 49534 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 49535 esac 49536 49537 49538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49539 # Files that config.status was made for. 49540 config_files="$ac_config_files" 49541 config_headers="$ac_config_headers" 49542 49543 _ACEOF 49544 49545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49546 ac_cs_usage="\ 49547 \`$as_me' instantiates files and other configuration actions 49548 from templates according to the current configuration. Unless the files 49549 and actions are specified as TAGs, all are instantiated by default. 49550 49551 Usage: $0 [OPTION]... [TAG]... 49552 49553 -h, --help print this help, then exit 49554 -V, --version print version number and configuration settings, then exit 49555 --config print configuration, then exit 49556 -q, --quiet, --silent 49557 do not print progress messages 49558 -d, --debug don't remove temporary files 49559 --recheck update $as_me by reconfiguring in the same conditions 49560 --file=FILE[:TEMPLATE] 49561 instantiate the configuration file FILE 49562 --header=FILE[:TEMPLATE] 49563 instantiate the configuration header FILE 49564 49565 Configuration files: 49566 $config_files 49567 49568 Configuration headers: 49569 $config_headers 49570 49571 Report bugs to <build-dev@openjdk.java.net>. 49572 OpenJDK home page: <http://openjdk.java.net>." 49573 49574 _ACEOF 49575 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49576 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 49577 ac_cs_version="\\ 49578 OpenJDK config.status jdk9 49579 configured by $0, generated by GNU Autoconf 2.69, 49580 with options \\"\$ac_cs_config\\" 49581 49582 Copyright (C) 2012 Free Software Foundation, Inc. 49583 This config.status script is free software; the Free Software Foundation 49584 gives unlimited permission to copy, distribute and modify it." 49585 49586 ac_pwd='$ac_pwd' 49587 srcdir='$srcdir' 49588 AWK='$AWK' 49589 test -n "\$AWK" || AWK=awk 49590 _ACEOF 49591 49592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49593 # The default lists apply if the user does not specify any file. 49594 ac_need_defaults=: 49595 while test $# != 0 49596 do 49597 case $1 in 49598 --*=?*) 49599 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49600 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 49601 ac_shift=: 49602 ;; 49603 --*=) 49604 ac_option=`expr "X$1" : 'X\([^=]*\)='` 49605 ac_optarg= 49606 ac_shift=: 49607 ;; 49608 *) 49609 ac_option=$1 49610 ac_optarg=$2 49611 ac_shift=shift 49612 ;; 49613 esac 49614 49615 case $ac_option in 49616 # Handling of the options. 49617 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 49618 ac_cs_recheck=: ;; 49619 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 49620 $as_echo "$ac_cs_version"; exit ;; 49621 --config | --confi | --conf | --con | --co | --c ) 49622 $as_echo "$ac_cs_config"; exit ;; 49623 --debug | --debu | --deb | --de | --d | -d ) 49624 debug=: ;; 49625 --file | --fil | --fi | --f ) 49626 $ac_shift 49627 case $ac_optarg in 49628 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49629 '') as_fn_error $? "missing file argument" ;; 49630 esac 49631 as_fn_append CONFIG_FILES " '$ac_optarg'" 49632 ac_need_defaults=false;; 49633 --header | --heade | --head | --hea ) 49634 $ac_shift 49635 case $ac_optarg in 49636 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 49637 esac 49638 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 49639 ac_need_defaults=false;; 49640 --he | --h) 49641 # Conflict between --help and --header 49642 as_fn_error $? "ambiguous option: \`$1' 49643 Try \`$0 --help' for more information.";; 49644 --help | --hel | -h ) 49645 $as_echo "$ac_cs_usage"; exit ;; 49646 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 49647 | -silent | --silent | --silen | --sile | --sil | --si | --s) 49648 ac_cs_silent=: ;; 49649 49650 # This is an error. 49651 -*) as_fn_error $? "unrecognized option: \`$1' 49652 Try \`$0 --help' for more information." ;; 49653 49654 *) as_fn_append ac_config_targets " $1" 49655 ac_need_defaults=false ;; 49656 49657 esac 49658 shift 49659 done 49660 49661 ac_configure_extra_args= 49662 49663 if $ac_cs_silent; then 49664 exec 6>/dev/null 49665 ac_configure_extra_args="$ac_configure_extra_args --silent" 49666 fi 49667 49668 _ACEOF 49669 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49670 if \$ac_cs_recheck; then 49671 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 49672 shift 49673 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 49674 CONFIG_SHELL='$SHELL' 49675 export CONFIG_SHELL 49676 exec "\$@" 49677 fi 49678 49679 _ACEOF 49680 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49681 exec 5>>config.log 49682 { 49683 echo 49684 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 49685 ## Running $as_me. ## 49686 _ASBOX 49687 $as_echo "$ac_log" 49688 } >&5 49689 49690 _ACEOF 49691 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49692 _ACEOF 49693 49694 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49695 49696 # Handling of arguments. 49697 for ac_config_target in $ac_config_targets 49698 do 49699 case $ac_config_target in 49700 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 49701 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 49702 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 49703 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 49704 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 49705 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 49706 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 49707 49708 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 49709 esac 49710 done 49711 49712 49713 # If the user did not use the arguments to specify the items to instantiate, 49714 # then the envvar interface is used. Set only those that are not. 49715 # We use the long form for the default assignment because of an extremely 49716 # bizarre bug on SunOS 4.1.3. 49717 if $ac_need_defaults; then 49718 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 49719 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 49720 fi 49721 49722 # Have a temporary directory for convenience. Make it in the build tree 49723 # simply because there is no reason against having it here, and in addition, 49724 # creating and moving files from /tmp can sometimes cause problems. 49725 # Hook for its removal unless debugging. 49726 # Note that there is a small window in which the directory will not be cleaned: 49727 # after its creation but before its name has been assigned to `$tmp'. 49728 $debug || 49729 { 49730 tmp= ac_tmp= 49731 trap 'exit_status=$? 49732 : "${ac_tmp:=$tmp}" 49733 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 49734 ' 0 49735 trap 'as_fn_exit 1' 1 2 13 15 49736 } 49737 # Create a (secure) tmp directory for tmp files. 49738 49739 { 49740 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 49741 test -d "$tmp" 49742 } || 49743 { 49744 tmp=./conf$$-$RANDOM 49745 (umask 077 && mkdir "$tmp") 49746 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 49747 ac_tmp=$tmp 49748 49749 # Set up the scripts for CONFIG_FILES section. 49750 # No need to generate them if there are no CONFIG_FILES. 49751 # This happens for instance with `./config.status config.h'. 49752 if test -n "$CONFIG_FILES"; then 49753 49754 49755 ac_cr=`echo X | tr X '\015'` 49756 # On cygwin, bash can eat \r inside `` if the user requested igncr. 49757 # But we know of no other shell where ac_cr would be empty at this 49758 # point, so we can use a bashism as a fallback. 49759 if test "x$ac_cr" = x; then 49760 eval ac_cr=\$\'\\r\' 49761 fi 49762 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 49763 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 49764 ac_cs_awk_cr='\\r' 49765 else 49766 ac_cs_awk_cr=$ac_cr 49767 fi 49768 49769 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 49770 _ACEOF 49771 49772 49773 { 49774 echo "cat >conf$$subs.awk <<_ACEOF" && 49775 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 49776 echo "_ACEOF" 49777 } >conf$$subs.sh || 49778 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49779 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 49780 ac_delim='%!_!# ' 49781 for ac_last_try in false false false false false :; do 49782 . ./conf$$subs.sh || 49783 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49784 49785 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 49786 if test $ac_delim_n = $ac_delim_num; then 49787 break 49788 elif $ac_last_try; then 49789 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 49790 else 49791 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 49792 fi 49793 done 49794 rm -f conf$$subs.sh 49795 49796 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49797 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 49798 _ACEOF 49799 sed -n ' 49800 h 49801 s/^/S["/; s/!.*/"]=/ 49802 p 49803 g 49804 s/^[^!]*!// 49805 :repl 49806 t repl 49807 s/'"$ac_delim"'$// 49808 t delim 49809 :nl 49810 h 49811 s/\(.\{148\}\)..*/\1/ 49812 t more1 49813 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 49814 p 49815 n 49816 b repl 49817 :more1 49818 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 49819 p 49820 g 49821 s/.\{148\}// 49822 t nl 49823 :delim 49824 h 49825 s/\(.\{148\}\)..*/\1/ 49826 t more2 49827 s/["\\]/\\&/g; s/^/"/; s/$/"/ 49828 p 49829 b 49830 :more2 49831 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 49832 p 49833 g 49834 s/.\{148\}// 49835 t delim 49836 ' <conf$$subs.awk | sed ' 49837 /^[^""]/{ 49838 N 49839 s/\n// 49840 } 49841 ' >>$CONFIG_STATUS || ac_write_fail=1 49842 rm -f conf$$subs.awk 49843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49844 _ACAWK 49845 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 49846 for (key in S) S_is_set[key] = 1 49847 FS = "" 49848 49849 } 49850 { 49851 line = $ 0 49852 nfields = split(line, field, "@") 49853 substed = 0 49854 len = length(field[1]) 49855 for (i = 2; i < nfields; i++) { 49856 key = field[i] 49857 keylen = length(key) 49858 if (S_is_set[key]) { 49859 value = S[key] 49860 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 49861 len += length(value) + length(field[++i]) 49862 substed = 1 49863 } else 49864 len += 1 + keylen 49865 } 49866 49867 print line 49868 } 49869 49870 _ACAWK 49871 _ACEOF 49872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49873 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 49874 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 49875 else 49876 cat 49877 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 49878 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 49879 _ACEOF 49880 49881 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 49882 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 49883 # trailing colons and then remove the whole line if VPATH becomes empty 49884 # (actually we leave an empty line to preserve line numbers). 49885 if test "x$srcdir" = x.; then 49886 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 49887 h 49888 s/// 49889 s/^/:/ 49890 s/[ ]*$/:/ 49891 s/:\$(srcdir):/:/g 49892 s/:\${srcdir}:/:/g 49893 s/:@srcdir@:/:/g 49894 s/^:*// 49895 s/:*$// 49896 x 49897 s/\(=[ ]*\).*/\1/ 49898 G 49899 s/\n// 49900 s/^[^=]*=[ ]*$// 49901 }' 49902 fi 49903 49904 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 49905 fi # test -n "$CONFIG_FILES" 49906 49907 # Set up the scripts for CONFIG_HEADERS section. 49908 # No need to generate them if there are no CONFIG_HEADERS. 49909 # This happens for instance with `./config.status Makefile'. 49910 if test -n "$CONFIG_HEADERS"; then 49911 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 49912 BEGIN { 49913 _ACEOF 49914 49915 # Transform confdefs.h into an awk script `defines.awk', embedded as 49916 # here-document in config.status, that substitutes the proper values into 49917 # config.h.in to produce config.h. 49918 49919 # Create a delimiter string that does not exist in confdefs.h, to ease 49920 # handling of long lines. 49921 ac_delim='%!_!# ' 49922 for ac_last_try in false false :; do 49923 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 49924 if test -z "$ac_tt"; then 49925 break 49926 elif $ac_last_try; then 49927 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 49928 else 49929 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 49930 fi 49931 done 49932 49933 # For the awk script, D is an array of macro values keyed by name, 49934 # likewise P contains macro parameters if any. Preserve backslash 49935 # newline sequences. 49936 49937 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 49938 sed -n ' 49939 s/.\{148\}/&'"$ac_delim"'/g 49940 t rset 49941 :rset 49942 s/^[ ]*#[ ]*define[ ][ ]*/ / 49943 t def 49944 d 49945 :def 49946 s/\\$// 49947 t bsnl 49948 s/["\\]/\\&/g 49949 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 49950 D["\1"]=" \3"/p 49951 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 49952 d 49953 :bsnl 49954 s/["\\]/\\&/g 49955 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 49956 D["\1"]=" \3\\\\\\n"\\/p 49957 t cont 49958 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 49959 t cont 49960 d 49961 :cont 49962 n 49963 s/.\{148\}/&'"$ac_delim"'/g 49964 t clear 49965 :clear 49966 s/\\$// 49967 t bsnlc 49968 s/["\\]/\\&/g; s/^/"/; s/$/"/p 49969 d 49970 :bsnlc 49971 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 49972 b cont 49973 ' <confdefs.h | sed ' 49974 s/'"$ac_delim"'/"\\\ 49975 "/g' >>$CONFIG_STATUS || ac_write_fail=1 49976 49977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 49978 for (key in D) D_is_set[key] = 1 49979 FS = "" 49980 } 49981 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 49982 line = \$ 0 49983 split(line, arg, " ") 49984 if (arg[1] == "#") { 49985 defundef = arg[2] 49986 mac1 = arg[3] 49987 } else { 49988 defundef = substr(arg[1], 2) 49989 mac1 = arg[2] 49990 } 49991 split(mac1, mac2, "(") #) 49992 macro = mac2[1] 49993 prefix = substr(line, 1, index(line, defundef) - 1) 49994 if (D_is_set[macro]) { 49995 # Preserve the white space surrounding the "#". 49996 print prefix "define", macro P[macro] D[macro] 49997 next 49998 } else { 49999 # Replace #undef with comments. This is necessary, for example, 50000 # in the case of _POSIX_SOURCE, which is predefined and required 50001 # on some systems where configure will not decide to define it. 50002 if (defundef == "undef") { 50003 print "/*", prefix defundef, macro, "*/" 50004 next 50005 } 50006 } 50007 } 50008 { print } 50009 _ACAWK 50010 _ACEOF 50011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50012 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 50013 fi # test -n "$CONFIG_HEADERS" 50014 50015 50016 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 50017 shift 50018 for ac_tag 50019 do 50020 case $ac_tag in 50021 :[FHLC]) ac_mode=$ac_tag; continue;; 50022 esac 50023 case $ac_mode$ac_tag in 50024 :[FHL]*:*);; 50025 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 50026 :[FH]-) ac_tag=-:-;; 50027 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 50028 esac 50029 ac_save_IFS=$IFS 50030 IFS=: 50031 set x $ac_tag 50032 IFS=$ac_save_IFS 50033 shift 50034 ac_file=$1 50035 shift 50036 50037 case $ac_mode in 50038 :L) ac_source=$1;; 50039 :[FH]) 50040 ac_file_inputs= 50041 for ac_f 50042 do 50043 case $ac_f in 50044 -) ac_f="$ac_tmp/stdin";; 50045 *) # Look for the file first in the build tree, then in the source tree 50046 # (if the path is not absolute). The absolute path cannot be DOS-style, 50047 # because $ac_f cannot contain `:'. 50048 test -f "$ac_f" || 50049 case $ac_f in 50050 [\\/$]*) false;; 50051 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 50052 esac || 50053 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 50054 esac 50055 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 50056 as_fn_append ac_file_inputs " '$ac_f'" 50057 done 50058 50059 # Let's still pretend it is `configure' which instantiates (i.e., don't 50060 # use $as_me), people would be surprised to read: 50061 # /* config.h. Generated by config.status. */ 50062 configure_input='Generated from '` 50063 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 50064 `' by configure.' 50065 if test x"$ac_file" != x-; then 50066 configure_input="$ac_file. $configure_input" 50067 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 50068 $as_echo "$as_me: creating $ac_file" >&6;} 50069 fi 50070 # Neutralize special characters interpreted by sed in replacement strings. 50071 case $configure_input in #( 50072 *\&* | *\|* | *\\* ) 50073 ac_sed_conf_input=`$as_echo "$configure_input" | 50074 sed 's/[\\\\&|]/\\\\&/g'`;; #( 50075 *) ac_sed_conf_input=$configure_input;; 50076 esac 50077 50078 case $ac_tag in 50079 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 50080 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 50081 esac 50082 ;; 50083 esac 50084 50085 ac_dir=`$as_dirname -- "$ac_file" || 50086 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 50087 X"$ac_file" : 'X\(//\)[^/]' \| \ 50088 X"$ac_file" : 'X\(//\)$' \| \ 50089 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 50090 $as_echo X"$ac_file" | 50091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 50092 s//\1/ 50093 q 50094 } 50095 /^X\(\/\/\)[^/].*/{ 50096 s//\1/ 50097 q 50098 } 50099 /^X\(\/\/\)$/{ 50100 s//\1/ 50101 q 50102 } 50103 /^X\(\/\).*/{ 50104 s//\1/ 50105 q 50106 } 50107 s/.*/./; q'` 50108 as_dir="$ac_dir"; as_fn_mkdir_p 50109 ac_builddir=. 50110 50111 case "$ac_dir" in 50112 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 50113 *) 50114 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 50115 # A ".." for each directory in $ac_dir_suffix. 50116 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 50117 case $ac_top_builddir_sub in 50118 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 50119 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 50120 esac ;; 50121 esac 50122 ac_abs_top_builddir=$ac_pwd 50123 ac_abs_builddir=$ac_pwd$ac_dir_suffix 50124 # for backward compatibility: 50125 ac_top_builddir=$ac_top_build_prefix 50126 50127 case $srcdir in 50128 .) # We are building in place. 50129 ac_srcdir=. 50130 ac_top_srcdir=$ac_top_builddir_sub 50131 ac_abs_top_srcdir=$ac_pwd ;; 50132 [\\/]* | ?:[\\/]* ) # Absolute name. 50133 ac_srcdir=$srcdir$ac_dir_suffix; 50134 ac_top_srcdir=$srcdir 50135 ac_abs_top_srcdir=$srcdir ;; 50136 *) # Relative name. 50137 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 50138 ac_top_srcdir=$ac_top_build_prefix$srcdir 50139 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 50140 esac 50141 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 50142 50143 50144 case $ac_mode in 50145 :F) 50146 # 50147 # CONFIG_FILE 50148 # 50149 50150 _ACEOF 50151 50152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50153 # If the template does not know about datarootdir, expand it. 50154 # FIXME: This hack should be removed a few years after 2.60. 50155 ac_datarootdir_hack=; ac_datarootdir_seen= 50156 ac_sed_dataroot=' 50157 /datarootdir/ { 50158 p 50159 q 50160 } 50161 /@datadir@/p 50162 /@docdir@/p 50163 /@infodir@/p 50164 /@localedir@/p 50165 /@mandir@/p' 50166 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 50167 *datarootdir*) ac_datarootdir_seen=yes;; 50168 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 50169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 50170 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 50171 _ACEOF 50172 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50173 ac_datarootdir_hack=' 50174 s&@datadir@&$datadir&g 50175 s&@docdir@&$docdir&g 50176 s&@infodir@&$infodir&g 50177 s&@localedir@&$localedir&g 50178 s&@mandir@&$mandir&g 50179 s&\\\${datarootdir}&$datarootdir&g' ;; 50180 esac 50181 _ACEOF 50182 50183 # Neutralize VPATH when `$srcdir' = `.'. 50184 # Shell code in configure.ac might set extrasub. 50185 # FIXME: do we really want to maintain this feature? 50186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 50187 ac_sed_extra="$ac_vpsub 50188 $extrasub 50189 _ACEOF 50190 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 50191 :t 50192 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 50193 s|@configure_input@|$ac_sed_conf_input|;t t 50194 s&@top_builddir@&$ac_top_builddir_sub&;t t 50195 s&@top_build_prefix@&$ac_top_build_prefix&;t t 50196 s&@srcdir@&$ac_srcdir&;t t 50197 s&@abs_srcdir@&$ac_abs_srcdir&;t t 50198 s&@top_srcdir@&$ac_top_srcdir&;t t 50199 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 50200 s&@builddir@&$ac_builddir&;t t 50201 s&@abs_builddir@&$ac_abs_builddir&;t t 50202 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 50203 $ac_datarootdir_hack 50204 " 50205 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 50206 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50207 50208 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 50209 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 50210 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 50211 "$ac_tmp/out"`; test -z "$ac_out"; } && 50212 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 50213 which seems to be undefined. Please make sure it is defined" >&5 50214 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 50215 which seems to be undefined. Please make sure it is defined" >&2;} 50216 50217 rm -f "$ac_tmp/stdin" 50218 case $ac_file in 50219 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 50220 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 50221 esac \ 50222 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50223 ;; 50224 :H) 50225 # 50226 # CONFIG_HEADER 50227 # 50228 if test x"$ac_file" != x-; then 50229 { 50230 $as_echo "/* $configure_input */" \ 50231 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 50232 } >"$ac_tmp/config.h" \ 50233 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50234 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 50235 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 50236 $as_echo "$as_me: $ac_file is unchanged" >&6;} 50237 else 50238 rm -f "$ac_file" 50239 mv "$ac_tmp/config.h" "$ac_file" \ 50240 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 50241 fi 50242 else 50243 $as_echo "/* $configure_input */" \ 50244 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 50245 || as_fn_error $? "could not create -" "$LINENO" 5 50246 fi 50247 ;; 50248 50249 50250 esac 50251 50252 done # for ac_tag 50253 50254 50255 as_fn_exit 0 50256 _ACEOF 50257 ac_clean_files=$ac_clean_files_save 50258 50259 test $ac_write_fail = 0 || 50260 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 50261 50262 50263 # configure is writing to config.log, and then calls config.status. 50264 # config.status does its own redirection, appending to config.log. 50265 # Unfortunately, on DOS this fails, as config.log is still kept open 50266 # by configure, so config.status won't be able to write to it; its 50267 # output is simply discarded. So we exec the FD to /dev/null, 50268 # effectively closing config.log, so it can be properly (re)opened and 50269 # appended to by config.status. When coming back to configure, we 50270 # need to make the FD available again. 50271 if test "$no_create" != yes; then 50272 ac_cs_success=: 50273 ac_config_status_args= 50274 test "$silent" = yes && 50275 ac_config_status_args="$ac_config_status_args --quiet" 50276 exec 5>/dev/null 50277 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 50278 exec 5>>config.log 50279 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 50280 # would make configure fail if this is the last instruction. 50281 $ac_cs_success || as_fn_exit 1 50282 fi 50283 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 50284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 50285 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 50286 fi 50287 50288 50289 # Try to move the config.log file to the output directory. 50290 if test -e ./config.log; then 50291 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 50292 fi 50293 50294 # Make the compare script executable 50295 $CHMOD +x $OUTPUT_ROOT/compare.sh 50296 50297 # Finally output some useful information to the user 50298 50299 # Finally output some useful information to the user 50300 50301 printf "\n" 50302 printf "====================================================\n" 50303 if test "x$no_create" != "xyes"; then 50304 if test "x$IS_RECONFIGURE" != "xyes"; then 50305 printf "A new configuration has been successfully created in\n %s\n" "$OUTPUT_ROOT" 50306 else 50307 printf "The existing configuration has been successfully updated in\n %s\n" "$OUTPUT_ROOT" 50308 fi 50309 else 50310 if test "x$IS_RECONFIGURE" != "xyes"; then 50311 printf "A configuration has been successfully checked but not created\n" 50312 else 50313 printf "The existing configuration has been successfully checked in\n %s\n" "$OUTPUT_ROOT" 50314 fi 50315 fi 50316 if test "x$CONFIGURE_COMMAND_LINE" != x; then 50317 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 50318 else 50319 printf "using default settings.\n" 50320 fi 50321 50322 printf "\n" 50323 printf "Configuration summary:\n" 50324 printf "* Debug level: $DEBUG_LEVEL\n" 50325 printf "* JDK variant: $JDK_VARIANT\n" 50326 printf "* JVM variants: $with_jvm_variants\n" 50327 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 50328 50329 printf "\n" 50330 printf "Tools summary:\n" 50331 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 50332 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 50333 fi 50334 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 50335 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 50336 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 50337 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 50338 50339 printf "\n" 50340 printf "Build performance summary:\n" 50341 printf "* Cores to use: $JOBS\n" 50342 printf "* Memory limit: $MEMORY_SIZE MB\n" 50343 if test "x$CCACHE_STATUS" != "x"; then 50344 printf "* ccache status: $CCACHE_STATUS\n" 50345 fi 50346 printf "\n" 50347 50348 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 50349 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 50350 printf "will result in longer build times.\n" 50351 printf "\n" 50352 fi 50353 50354 if test "x$FOUND_ALT_VARIABLES" != "x"; then 50355 printf "WARNING: You have old-style ALT_ environment variables set.\n" 50356 printf "These are not respected, and will be ignored. It is recommended\n" 50357 printf "that you clean your environment. The following variables are set:\n" 50358 printf "$FOUND_ALT_VARIABLES\n" 50359 printf "\n" 50360 fi 50361 50362 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 50363 printf "WARNING: Your build output directory is not on a local disk.\n" 50364 printf "This will severely degrade build performance!\n" 50365 printf "It is recommended that you create an output directory on a local disk,\n" 50366 printf "and run the configure script again from that directory.\n" 50367 printf "\n" 50368 fi 50369 50370 if test "x$IS_RECONFIGURE" = "xyes" && test "x$no_create" != "xyes"; then 50371 printf "WARNING: The result of this configuration has overridden an older\n" 50372 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 50373 printf "proper build. Failure to do so might result in strange build problems.\n" 50374 printf "\n" 50375 fi 50376 50377 if test "x$IS_RECONFIGURE" != "xyes" && test "x$no_create" = "xyes"; then 50378 printf "WARNING: The result of this configuration was not saved.\n" 50379 printf "You should run without '--no-create | -n' to create the configuration.\n" 50380 printf "\n" 50381 fi 50382