1 #!/bin/bash 2 # 3 # ########################################################## 4 # ### THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT. ### 5 # ########################################################## 6 # 7 #! /bin/sh 8 # Guess values for system-dependent variables and create Makefiles. 9 # Generated by GNU Autoconf 2.69 for OpenJDK jdk8. 10 # 11 # Report bugs to <build-dev@openjdk.java.net>. 12 # 13 # 14 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 15 # 16 # 17 # This configure script is free software; the Free Software Foundation 18 # gives unlimited permission to copy, distribute and modify it. 19 ## -------------------- ## 20 ## M4sh Initialization. ## 21 ## -------------------- ## 22 23 # Be more Bourne compatible 24 DUALCASE=1; export DUALCASE # for MKS sh 25 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26 emulate sh 27 NULLCMD=: 28 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29 # is contrary to our usage. Disable this feature. 30 alias -g '${1+"$@"}'='"$@"' 31 setopt NO_GLOB_SUBST 32 else 33 case `(set -o) 2>/dev/null` in #( 34 *posix*) : 35 set -o posix ;; #( 36 *) : 37 ;; 38 esac 39 fi 40 41 42 as_nl=' 43 ' 44 export as_nl 45 # Printing a long string crashes Solaris 7 /usr/bin/printf. 46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 49 # Prefer a ksh shell builtin over an external printf program on Solaris, 50 # but without wasting forks for bash or zsh. 51 if test -z "$BASH_VERSION$ZSH_VERSION" \ 52 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 53 as_echo='print -r --' 54 as_echo_n='print -rn --' 55 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 56 as_echo='printf %s\n' 57 as_echo_n='printf %s' 58 else 59 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 60 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 61 as_echo_n='/usr/ucb/echo -n' 62 else 63 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 64 as_echo_n_body='eval 65 arg=$1; 66 case $arg in #( 67 *"$as_nl"*) 68 expr "X$arg" : "X\\(.*\\)$as_nl"; 69 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 70 esac; 71 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 72 ' 73 export as_echo_n_body 74 as_echo_n='sh -c $as_echo_n_body as_echo' 75 fi 76 export as_echo_body 77 as_echo='sh -c $as_echo_body as_echo' 78 fi 79 80 # The user is always right. 81 if test "${PATH_SEPARATOR+set}" != set; then 82 PATH_SEPARATOR=: 83 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 84 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 85 PATH_SEPARATOR=';' 86 } 87 fi 88 89 90 # IFS 91 # We need space, tab and new line, in precisely that order. Quoting is 92 # there to prevent editors from complaining about space-tab. 93 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 94 # splitting by setting IFS to empty value.) 95 IFS=" "" $as_nl" 96 97 # Find who we are. Look in the path if we contain no directory separator. 98 as_myself= 99 case $0 in #(( 100 *[\\/]* ) as_myself=$0 ;; 101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 102 for as_dir in $PATH 103 do 104 IFS=$as_save_IFS 105 test -z "$as_dir" && as_dir=. 106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 107 done 108 IFS=$as_save_IFS 109 110 ;; 111 esac 112 # We did not find ourselves, most probably we were run as `sh COMMAND' 113 # in which case we are not to be found in the path. 114 if test "x$as_myself" = x; then 115 as_myself=$0 116 fi 117 if test ! -f "$as_myself"; then 118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 119 exit 1 120 fi 121 122 # Unset variables that we do not need and which cause bugs (e.g. in 123 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 124 # suppresses any "Segmentation fault" message there. '((' could 125 # trigger a bug in pdksh 5.2.14. 126 for as_var in BASH_ENV ENV MAIL MAILPATH 127 do eval test x\${$as_var+set} = xset \ 128 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 129 done 130 PS1='$ ' 131 PS2='> ' 132 PS4='+ ' 133 134 # NLS nuisances. 135 LC_ALL=C 136 export LC_ALL 137 LANGUAGE=C 138 export LANGUAGE 139 140 # CDPATH. 141 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 142 143 # Use a proper internal environment variable to ensure we don't fall 144 # into an infinite loop, continuously re-executing ourselves. 145 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 146 _as_can_reexec=no; export _as_can_reexec; 147 # We cannot yet assume a decent shell, so we have to provide a 148 # neutralization value for shells without unset; and this also 149 # works around shells that cannot unset nonexistent variables. 150 # Preserve -v and -x to the replacement shell. 151 BASH_ENV=/dev/null 152 ENV=/dev/null 153 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 154 case $- in # (((( 155 *v*x* | *x*v* ) as_opts=-vx ;; 156 *v* ) as_opts=-v ;; 157 *x* ) as_opts=-x ;; 158 * ) as_opts= ;; 159 esac 160 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 161 # Admittedly, this is quite paranoid, since all the known shells bail 162 # out after a failed `exec'. 163 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 164 as_fn_exit 255 165 fi 166 # We don't want this to propagate to other subprocesses. 167 { _as_can_reexec=; unset _as_can_reexec;} 168 if test "x$CONFIG_SHELL" = x; then 169 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 170 emulate sh 171 NULLCMD=: 172 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 173 # is contrary to our usage. Disable this feature. 174 alias -g '\${1+\"\$@\"}'='\"\$@\"' 175 setopt NO_GLOB_SUBST 176 else 177 case \`(set -o) 2>/dev/null\` in #( 178 *posix*) : 179 set -o posix ;; #( 180 *) : 181 ;; 182 esac 183 fi 184 " 185 as_required="as_fn_return () { (exit \$1); } 186 as_fn_success () { as_fn_return 0; } 187 as_fn_failure () { as_fn_return 1; } 188 as_fn_ret_success () { return 0; } 189 as_fn_ret_failure () { return 1; } 190 191 exitcode=0 192 as_fn_success || { exitcode=1; echo as_fn_success failed.; } 193 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 194 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 195 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 196 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 197 198 else 199 exitcode=1; echo positional parameters were not saved. 200 fi 201 test x\$exitcode = x0 || exit 1 202 test -x / || exit 1" 203 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 204 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 205 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 206 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 207 test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210 else 211 as_have_required=no 212 fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215 else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217 as_found=false 218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219 do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233 fi 234 fi 235 done;; 236 esac 237 as_found=false 238 done 239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242 fi; } 243 IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249 # neutralization value for shells without unset; and this also 250 # works around shells that cannot unset nonexistent variables. 251 # Preserve -v and -x to the replacement shell. 252 BASH_ENV=/dev/null 253 ENV=/dev/null 254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255 case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260 esac 261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262 # Admittedly, this is quite paranoid, since all the known shells bail 263 # out after a failed `exec'. 264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265 exit 255 266 fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org and 276 $0: build-dev@openjdk.java.net about your system, including 277 $0: any error possibly output before this message. Then 278 $0: install a modern shell, or manually run the script 279 $0: under such a shell if you do have one." 280 fi 281 exit 1 282 fi 283 fi 284 fi 285 SHELL=${CONFIG_SHELL-/bin/sh} 286 export SHELL 287 # Unset more variables known to interfere with behavior of common tools. 288 CLICOLOR_FORCE= GREP_OPTIONS= 289 unset CLICOLOR_FORCE GREP_OPTIONS 290 291 ## --------------------- ## 292 ## M4sh Shell Functions. ## 293 ## --------------------- ## 294 # as_fn_unset VAR 295 # --------------- 296 # Portably unset VAR. 297 as_fn_unset () 298 { 299 { eval $1=; unset $1;} 300 } 301 as_unset=as_fn_unset 302 303 # as_fn_set_status STATUS 304 # ----------------------- 305 # Set $? to STATUS, without forking. 306 as_fn_set_status () 307 { 308 return $1 309 } # as_fn_set_status 310 311 # as_fn_exit STATUS 312 # ----------------- 313 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 as_fn_exit () 315 { 316 set +e 317 as_fn_set_status $1 318 exit $1 319 } # as_fn_exit 320 321 # as_fn_mkdir_p 322 # ------------- 323 # Create "$as_dir" as a directory, including parents if necessary. 324 as_fn_mkdir_p () 325 { 326 327 case $as_dir in #( 328 -*) as_dir=./$as_dir;; 329 esac 330 test -d "$as_dir" || eval $as_mkdir_p || { 331 as_dirs= 332 while :; do 333 case $as_dir in #( 334 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 335 *) as_qdir=$as_dir;; 336 esac 337 as_dirs="'$as_qdir' $as_dirs" 338 as_dir=`$as_dirname -- "$as_dir" || 339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 340 X"$as_dir" : 'X\(//\)[^/]' \| \ 341 X"$as_dir" : 'X\(//\)$' \| \ 342 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 343 $as_echo X"$as_dir" | 344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 345 s//\1/ 346 q 347 } 348 /^X\(\/\/\)[^/].*/{ 349 s//\1/ 350 q 351 } 352 /^X\(\/\/\)$/{ 353 s//\1/ 354 q 355 } 356 /^X\(\/\).*/{ 357 s//\1/ 358 q 359 } 360 s/.*/./; q'` 361 test -d "$as_dir" && break 362 done 363 test -z "$as_dirs" || eval "mkdir $as_dirs" 364 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 365 366 367 } # as_fn_mkdir_p 368 369 # as_fn_executable_p FILE 370 # ----------------------- 371 # Test if FILE is an executable regular file. 372 as_fn_executable_p () 373 { 374 test -f "$1" && test -x "$1" 375 } # as_fn_executable_p 376 # as_fn_append VAR VALUE 377 # ---------------------- 378 # Append the text in VALUE to the end of the definition contained in VAR. Take 379 # advantage of any shell optimizations that allow amortized linear growth over 380 # repeated appends, instead of the typical quadratic growth present in naive 381 # implementations. 382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 383 eval 'as_fn_append () 384 { 385 eval $1+=\$2 386 }' 387 else 388 as_fn_append () 389 { 390 eval $1=\$$1\$2 391 } 392 fi # as_fn_append 393 394 # as_fn_arith ARG... 395 # ------------------ 396 # Perform arithmetic evaluation on the ARGs, and store the result in the 397 # global $as_val. Take advantage of shells that can avoid forks. The arguments 398 # must be portable across $(()) and expr. 399 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 400 eval 'as_fn_arith () 401 { 402 as_val=$(( $* )) 403 }' 404 else 405 as_fn_arith () 406 { 407 as_val=`expr "$@" || test $? -eq 1` 408 } 409 fi # as_fn_arith 410 411 412 # as_fn_error STATUS ERROR [LINENO LOG_FD] 413 # ---------------------------------------- 414 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 415 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 416 # script with STATUS, using 1 if that was 0. 417 as_fn_error () 418 { 419 as_status=$1; test $as_status -eq 0 && as_status=1 420 if test "$4"; then 421 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 422 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 423 fi 424 $as_echo "$as_me: error: $2" >&2 425 as_fn_exit $as_status 426 } # as_fn_error 427 428 if expr a : '\(a\)' >/dev/null 2>&1 && 429 test "X`expr 00001 : '.*\(...\)'`" = X001; then 430 as_expr=expr 431 else 432 as_expr=false 433 fi 434 435 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 436 as_basename=basename 437 else 438 as_basename=false 439 fi 440 441 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 442 as_dirname=dirname 443 else 444 as_dirname=false 445 fi 446 447 as_me=`$as_basename -- "$0" || 448 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 449 X"$0" : 'X\(//\)$' \| \ 450 X"$0" : 'X\(/\)' \| . 2>/dev/null || 451 $as_echo X/"$0" | 452 sed '/^.*\/\([^/][^/]*\)\/*$/{ 453 s//\1/ 454 q 455 } 456 /^X\/\(\/\/\)$/{ 457 s//\1/ 458 q 459 } 460 /^X\/\(\/\).*/{ 461 s//\1/ 462 q 463 } 464 s/.*/./; q'` 465 466 # Avoid depending upon Character Ranges. 467 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 468 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 469 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 470 as_cr_digits='0123456789' 471 as_cr_alnum=$as_cr_Letters$as_cr_digits 472 473 474 as_lineno_1=$LINENO as_lineno_1a=$LINENO 475 as_lineno_2=$LINENO as_lineno_2a=$LINENO 476 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 477 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 478 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 479 sed -n ' 480 p 481 /[$]LINENO/= 482 ' <$as_myself | 483 sed ' 484 s/[$]LINENO.*/&-/ 485 t lineno 486 b 487 :lineno 488 N 489 :loop 490 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 491 t loop 492 s/-\n.*// 493 ' >$as_me.lineno && 494 chmod +x "$as_me.lineno" || 495 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 496 497 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 498 # already done that, so ensure we don't try to do so again and fall 499 # in an infinite loop. This has already happened in practice. 500 _as_can_reexec=no; export _as_can_reexec 501 # Don't try to exec as it changes $[0], causing all sort of problems 502 # (the dirname of $[0] is not the place where we might find the 503 # original and so on. Autoconf is especially sensitive to this). 504 . "./$as_me.lineno" 505 # Exit status is that of the last command. 506 exit 507 } 508 509 ECHO_C= ECHO_N= ECHO_T= 510 case `echo -n x` in #((((( 511 -n*) 512 case `echo 'xy\c'` in 513 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 514 xy) ECHO_C='\c';; 515 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 516 ECHO_T=' ';; 517 esac;; 518 *) 519 ECHO_N='-n';; 520 esac 521 522 rm -f conf$$ conf$$.exe conf$$.file 523 if test -d conf$$.dir; then 524 rm -f conf$$.dir/conf$$.file 525 else 526 rm -f conf$$.dir 527 mkdir conf$$.dir 2>/dev/null 528 fi 529 if (echo >conf$$.file) 2>/dev/null; then 530 if ln -s conf$$.file conf$$ 2>/dev/null; then 531 as_ln_s='ln -s' 532 # ... but there are two gotchas: 533 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 534 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 535 # In both cases, we have to default to `cp -pR'. 536 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 537 as_ln_s='cp -pR' 538 elif ln conf$$.file conf$$ 2>/dev/null; then 539 as_ln_s=ln 540 else 541 as_ln_s='cp -pR' 542 fi 543 else 544 as_ln_s='cp -pR' 545 fi 546 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 547 rmdir conf$$.dir 2>/dev/null 548 549 if mkdir -p . 2>/dev/null; then 550 as_mkdir_p='mkdir -p "$as_dir"' 551 else 552 test -d ./-p && rmdir ./-p 553 as_mkdir_p=false 554 fi 555 556 as_test_x='test -x' 557 as_executable_p=as_fn_executable_p 558 559 # Sed expression to map a string onto a valid CPP name. 560 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 561 562 # Sed expression to map a string onto a valid variable name. 563 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 564 565 566 test -n "$DJDIR" || exec 7<&0 </dev/null 567 exec 6>&1 568 569 # Name of the host. 570 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 571 # so uname gets run too. 572 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 573 574 # 575 # Initializations. 576 # 577 ac_default_prefix=/usr/local 578 ac_clean_files= 579 ac_config_libobj_dir=. 580 LIBOBJS= 581 cross_compiling=no 582 subdirs= 583 MFLAGS= 584 MAKEFLAGS= 585 586 # Identity of this package. 587 PACKAGE_NAME='OpenJDK' 588 PACKAGE_TARNAME='openjdk' 589 PACKAGE_VERSION='jdk8' 590 PACKAGE_STRING='OpenJDK jdk8' 591 PACKAGE_BUGREPORT='build-dev@openjdk.java.net' 592 PACKAGE_URL='http://openjdk.java.net' 593 594 # Factoring default headers for most tests. 595 ac_includes_default="\ 596 #include <stdio.h> 597 #ifdef HAVE_SYS_TYPES_H 598 # include <sys/types.h> 599 #endif 600 #ifdef HAVE_SYS_STAT_H 601 # include <sys/stat.h> 602 #endif 603 #ifdef STDC_HEADERS 604 # include <stdlib.h> 605 # include <stddef.h> 606 #else 607 # ifdef HAVE_STDLIB_H 608 # include <stdlib.h> 609 # endif 610 #endif 611 #ifdef HAVE_STRING_H 612 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613 # include <memory.h> 614 # endif 615 # include <string.h> 616 #endif 617 #ifdef HAVE_STRINGS_H 618 # include <strings.h> 619 #endif 620 #ifdef HAVE_INTTYPES_H 621 # include <inttypes.h> 622 #endif 623 #ifdef HAVE_STDINT_H 624 # include <stdint.h> 625 #endif 626 #ifdef HAVE_UNISTD_H 627 # include <unistd.h> 628 #endif" 629 630 ac_subst_vars='LTLIBOBJS 631 LIBOBJS 632 CCACHE 633 USE_PRECOMPILED_HEADER 634 SJAVAC_SERVER_DIR 635 ENABLE_SJAVAC 636 SJAVAC_SERVER_JAVA 637 JOBS 638 MEMORY_SIZE 639 NUM_CORES 640 ENABLE_INTREE_EC 641 SALIB_NAME 642 HOTSPOT_MAKE_ARGS 643 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_LIBGIF 657 USE_EXTERNAL_LIBJPEG 658 ALSA_LIBS 659 ALSA_CFLAGS 660 FREETYPE_BUNDLE_LIB_PATH 661 FREETYPE_LIBS 662 FREETYPE_CFLAGS 663 CUPS_CFLAGS 664 OPENWIN_HOME 665 X_EXTRA_LIBS 666 X_LIBS 667 X_PRE_LIBS 668 X_CFLAGS 669 XMKMF 670 FIXPATH 671 ZIP_DEBUGINFO_FILES 672 ENABLE_DEBUG_SYMBOLS 673 COMPILER_SUPPORTS_TARGET_BITS_FLAG 674 ZERO_ARCHFLAG 675 LDFLAGS_CXX_JDK 676 LDFLAGS_JDKEXE_SUFFIX 677 LDFLAGS_JDKLIB_SUFFIX 678 LDFLAGS_JDKEXE 679 LDFLAGS_JDKLIB 680 CXXFLAGS_JDKEXE 681 CXXFLAGS_JDKLIB 682 CFLAGS_JDKEXE 683 CFLAGS_JDKLIB 684 MACOSX_VERSION_MIN 685 NO_LIFETIME_DSE_CFLAG 686 NO_DELETE_NULL_POINTER_CHECKS_CFLAG 687 LEGACY_EXTRA_LDFLAGS 688 LEGACY_EXTRA_CXXFLAGS 689 LEGACY_EXTRA_CFLAGS 690 CXXSTD_CXXFLAG 691 CXX_O_FLAG_NONE 692 CXX_O_FLAG_NORM 693 CXX_O_FLAG_HI 694 CXX_O_FLAG_HIGHEST 695 C_O_FLAG_NONE 696 C_O_FLAG_NORM 697 C_O_FLAG_HI 698 C_O_FLAG_HIGHEST 699 CXXFLAGS_DEBUG_SYMBOLS 700 CFLAGS_DEBUG_SYMBOLS 701 CXX_FLAG_DEPS 702 C_FLAG_DEPS 703 SET_SHARED_LIBRARY_MAPFILE 704 SET_SHARED_LIBRARY_NAME 705 SET_SHARED_LIBRARY_ORIGIN 706 SET_EXECUTABLE_ORIGIN 707 SHARED_LIBRARY_FLAGS 708 CXX_FLAG_REORDER 709 C_FLAG_REORDER 710 RC_FLAGS 711 AR_OUT_OPTION 712 LD_OUT_OPTION 713 EXE_OUT_OPTION 714 CC_OUT_OPTION 715 POST_MCS_CMD 716 POST_STRIP_CMD 717 ARFLAGS 718 COMPILER_TARGET_BITS_FLAG 719 JT_HOME 720 JTREGEXE 721 USING_BROKEN_SUSE_LD 722 PACKAGE_PATH 723 LDEXECXX 724 LDEXE 725 USE_CLANG 726 HOTSPOT_LD 727 HOTSPOT_CXX 728 HOTSPOT_RC 729 HOTSPOT_MT 730 BUILD_LD 731 BUILD_CXX 732 BUILD_CC 733 ac_ct_OBJDUMP 734 OBJDUMP 735 ac_ct_OBJCOPY 736 OBJCOPY 737 ac_ct_NM 738 OTOOL 739 ac_ct_STRIP 740 MCS 741 GNM 742 NM 743 STRIP 744 DUMPBIN 745 RC 746 MT 747 LIPO 748 ac_ct_OBJC 749 OBJCFLAGS 750 OBJC 751 ac_ct_AR 752 AR 753 AS 754 LDCXX 755 LD 756 CXXCPP 757 CPP 758 CXX_VERSION_NUMBER 759 CC_VERSION_NUMBER 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 SDKPATH 779 XCODEBUILD 780 SET_DEVELOPER_DIR 781 VS_LIB 782 VS_INCLUDE 783 VS_PATH 784 CYGWIN_LINK 785 EXE_SUFFIX 786 OBJ_SUFFIX 787 STATIC_LIBRARY 788 SHARED_LIBRARY 789 STATIC_LIBRARY_SUFFIX 790 SHARED_LIBRARY_SUFFIX 791 LIBRARY_PREFIX 792 TOOLCHAIN_TYPE 793 BUILD_HOTSPOT 794 HOTSPOT_DIST 795 BUILD_OUTPUT 796 OVERRIDE_SRC_ROOT 797 ADD_SRC_ROOT 798 JDK_TOPDIR 799 NASHORN_TOPDIR 800 HOTSPOT_TOPDIR 801 JAXWS_TOPDIR 802 JAXP_TOPDIR 803 CORBA_TOPDIR 804 LANGTOOLS_TOPDIR 805 JAVA_FLAGS_SMALL 806 JAVA_FLAGS_BIG 807 JAVA_FLAGS 808 BOOT_JDK_BITS 809 JAVAC_FLAGS 810 BOOT_JDK_SOURCETARGET 811 BOOT_JDK 812 BOOT_TOOLSJAR 813 BOOT_RTJAR 814 JAVA_CHECK 815 JAVAC_CHECK 816 COOKED_BUILD_NUMBER 817 COOKED_JDK_UPDATE_VERSION 818 JDK_VERSION 819 COPYRIGHT_YEAR 820 MACOSX_BUNDLE_ID_BASE 821 MACOSX_BUNDLE_NAME_BASE 822 COMPANY_NAME 823 JDK_RC_PLATFORM_NAME 824 PRODUCT_SUFFIX 825 PRODUCT_NAME 826 LAUNCHER_NAME 827 MILESTONE 828 JDK_BUILD_NUMBER 829 JDK_UPDATE_VERSION 830 JDK_MICRO_VERSION 831 JDK_MINOR_VERSION 832 JDK_MAJOR_VERSION 833 USER_RELEASE_SUFFIX 834 COMPRESS_JARS 835 UNLIMITED_CRYPTO 836 CACERTS_FILE 837 TEST_IN_BUILD 838 BUILD_HEADLESS 839 SUPPORT_HEADFUL 840 SUPPORT_HEADLESS 841 BDEPS_FTP 842 BDEPS_UNZIP 843 OS_VERSION_MICRO 844 OS_VERSION_MINOR 845 OS_VERSION_MAJOR 846 PKG_CONFIG 847 CODESIGN 848 XATTR 849 DSYMUTIL 850 IS_GNU_TIME 851 TIME 852 STAT 853 HG 854 READELF 855 LDD 856 ZIP 857 UNZIP 858 FIND_DELETE 859 MAKE 860 CHECK_TOOLSDIR_MAKE 861 CHECK_TOOLSDIR_GMAKE 862 CHECK_MAKE 863 CHECK_GMAKE 864 PKGHANDLER 865 OUTPUT_ROOT 866 CONF_NAME 867 SPEC 868 BUILD_VARIANT_RELEASE 869 DEBUG_CLASSFILES 870 FASTDEBUG 871 VARIANT 872 DEBUG_LEVEL 873 MACOSX_UNIVERSAL 874 INCLUDE_SA 875 JVM_VARIANT_CORE 876 JVM_VARIANT_ZEROSHARK 877 JVM_VARIANT_ZERO 878 JVM_VARIANT_KERNEL 879 JVM_VARIANT_MINIMAL1 880 JVM_VARIANT_CLIENT 881 JVM_VARIANT_SERVER 882 JVM_VARIANTS 883 JVM_INTERPRETER 884 JDK_VARIANT 885 SET_OPENJDK 886 BUILD_LOG_WRAPPER 887 BUILD_LOG_PREVIOUS 888 BUILD_LOG 889 SYS_ROOT 890 TOPDIR 891 PATH_SEP 892 ZERO_ARCHDEF 893 DEFINE_CROSS_COMPILE_ARCH 894 LP64 895 OPENJDK_TARGET_OS_EXPORT_DIR 896 OPENJDK_TARGET_OS_API_DIR 897 OPENJDK_TARGET_CPU_JLI_CFLAGS 898 OPENJDK_TARGET_CPU_OSARCH 899 OPENJDK_TARGET_CPU_ISADIR 900 OPENJDK_TARGET_CPU_LIBDIR 901 OPENJDK_TARGET_CPU_LEGACY_LIB 902 OPENJDK_TARGET_CPU_LEGACY 903 REQUIRED_OS_VERSION 904 REQUIRED_OS_NAME 905 COMPILE_TYPE 906 OPENJDK_TARGET_CPU_ENDIAN 907 OPENJDK_TARGET_CPU_BITS 908 OPENJDK_TARGET_CPU_ARCH 909 OPENJDK_TARGET_CPU 910 OPENJDK_TARGET_OS_API 911 OPENJDK_TARGET_OS 912 OPENJDK_BUILD_CPU_ENDIAN 913 OPENJDK_BUILD_CPU_BITS 914 OPENJDK_BUILD_CPU_ARCH 915 OPENJDK_BUILD_CPU 916 OPENJDK_BUILD_OS_API 917 OPENJDK_BUILD_OS 918 OPENJDK_BUILD_AUTOCONF_NAME 919 OPENJDK_TARGET_AUTOCONF_NAME 920 target_os 921 target_vendor 922 target_cpu 923 target 924 host_os 925 host_vendor 926 host_cpu 927 host 928 build_os 929 build_vendor 930 build_cpu 931 build 932 SETFILE 933 DF 934 READLINK 935 CYGPATH 936 SED 937 FGREP 938 EGREP 939 GREP 940 AWK 941 XARGS 942 WHICH 943 WC 944 UNIQ 945 UNAME 946 TR 947 TOUCH 948 TEE 949 TAR 950 TAIL 951 SORT 952 SH 953 RM 954 PRINTF 955 NAWK 956 MV 957 MKTEMP 958 MKDIR 959 LS 960 LN 961 HEAD 962 FIND 963 FILE 964 EXPR 965 ECHO 966 DIRNAME 967 DIFF 968 DATE 969 CUT 970 CPIO 971 CP 972 COMM 973 CMP 974 CHMOD 975 CAT 976 BASH 977 BASENAME 978 DATE_WHEN_CONFIGURED 979 CONFIGURE_COMMAND_LINE 980 CUSTOM_MAKE_DIR 981 target_alias 982 host_alias 983 build_alias 984 LIBS 985 ECHO_T 986 ECHO_N 987 ECHO_C 988 DEFS 989 mandir 990 localedir 991 libdir 992 psdir 993 pdfdir 994 dvidir 995 htmldir 996 infodir 997 docdir 998 oldincludedir 999 includedir 1000 localstatedir 1001 sharedstatedir 1002 sysconfdir 1003 datadir 1004 datarootdir 1005 libexecdir 1006 sbindir 1007 bindir 1008 program_transform_name 1009 prefix 1010 exec_prefix 1011 PACKAGE_URL 1012 PACKAGE_BUGREPORT 1013 PACKAGE_STRING 1014 PACKAGE_VERSION 1015 PACKAGE_TARNAME 1016 PACKAGE_NAME 1017 PATH_SEPARATOR 1018 SHELL' 1019 ac_subst_files='' 1020 ac_user_opts=' 1021 enable_option_checking 1022 with_custom_make_dir 1023 with_target_bits 1024 with_sys_root 1025 with_tools_dir 1026 with_xcode_path 1027 with_devkit 1028 enable_openjdk_only 1029 with_jdk_variant 1030 with_jvm_interpreter 1031 with_jvm_variants 1032 enable_debug 1033 with_debug_level 1034 with_conf_name 1035 with_builddeps_conf 1036 with_builddeps_server 1037 with_builddeps_dir 1038 with_builddeps_group 1039 enable_headful 1040 enable_hotspot_test_in_build 1041 with_cacerts_file 1042 enable_unlimited_crypto 1043 with_milestone 1044 with_update_version 1045 with_user_release_suffix 1046 with_build_number 1047 with_copyright_year 1048 with_boot_jdk 1049 with_boot_jdk_jvmargs 1050 with_add_source_root 1051 with_override_source_root 1052 with_adds_and_overrides 1053 with_override_langtools 1054 with_override_corba 1055 with_override_jaxp 1056 with_override_jaxws 1057 with_override_hotspot 1058 with_override_nashorn 1059 with_override_jdk 1060 with_import_hotspot 1061 with_toolchain_type 1062 with_jtreg 1063 with_extra_cflags 1064 with_extra_cxxflags 1065 with_extra_ldflags 1066 enable_debug_symbols 1067 enable_zip_debug_info 1068 enable_macosx_runtime_support 1069 with_x 1070 with_cups 1071 with_cups_include 1072 with_freetype 1073 with_freetype_include 1074 with_freetype_lib 1075 enable_freetype_bundling 1076 with_alsa 1077 with_alsa_include 1078 with_alsa_lib 1079 with_giflib 1080 with_zlib 1081 with_stdc__lib 1082 with_msvcr_dll 1083 with_dxsdk 1084 with_dxsdk_lib 1085 with_dxsdk_include 1086 with_num_cores 1087 with_memory_size 1088 with_jobs 1089 with_sjavac_server_java 1090 enable_sjavac 1091 enable_precompiled_headers 1092 enable_ccache 1093 with_ccache_dir 1094 ' 1095 ac_precious_vars='build_alias 1096 host_alias 1097 target_alias 1098 BASENAME 1099 BASH 1100 CAT 1101 CHMOD 1102 CMP 1103 COMM 1104 CP 1105 CPIO 1106 CUT 1107 DATE 1108 DIFF 1109 DIRNAME 1110 ECHO 1111 EXPR 1112 FILE 1113 FIND 1114 HEAD 1115 LN 1116 LS 1117 MKDIR 1118 MKTEMP 1119 MV 1120 NAWK 1121 PRINTF 1122 RM 1123 SH 1124 SORT 1125 TAIL 1126 TAR 1127 TEE 1128 TOUCH 1129 TR 1130 UNAME 1131 UNIQ 1132 WC 1133 WHICH 1134 XARGS 1135 AWK 1136 GREP 1137 EGREP 1138 FGREP 1139 SED 1140 CYGPATH 1141 READLINK 1142 DF 1143 SETFILE 1144 UNZIP 1145 ZIP 1146 LDD 1147 READELF 1148 HG 1149 STAT 1150 TIME 1151 DSYMUTIL 1152 XATTR 1153 CODESIGN 1154 PKG_CONFIG 1155 CC 1156 CFLAGS 1157 LDFLAGS 1158 LIBS 1159 CPPFLAGS 1160 CXX 1161 CXXFLAGS 1162 CCC 1163 CPP 1164 CXXCPP 1165 AS 1166 AR 1167 OBJC 1168 OBJCFLAGS 1169 LIPO 1170 STRIP 1171 NM 1172 GNM 1173 MCS 1174 OBJCOPY 1175 OBJDUMP 1176 BUILD_CC 1177 BUILD_CXX 1178 BUILD_LD 1179 JTREGEXE 1180 XMKMF 1181 FREETYPE_CFLAGS 1182 FREETYPE_LIBS 1183 ALSA_CFLAGS 1184 ALSA_LIBS 1185 LIBFFI_CFLAGS 1186 LIBFFI_LIBS 1187 CCACHE' 1188 1189 1190 # Initialize some variables set by options. 1191 ac_init_help= 1192 ac_init_version=false 1193 ac_unrecognized_opts= 1194 ac_unrecognized_sep= 1195 # The variables have the same names as the options, with 1196 # dashes changed to underlines. 1197 cache_file=/dev/null 1198 exec_prefix=NONE 1199 no_create= 1200 no_recursion= 1201 prefix=NONE 1202 program_prefix=NONE 1203 program_suffix=NONE 1204 program_transform_name=s,x,x, 1205 silent= 1206 site= 1207 srcdir= 1208 verbose= 1209 x_includes=NONE 1210 x_libraries=NONE 1211 1212 # Installation directory options. 1213 # These are left unexpanded so users can "make install exec_prefix=/foo" 1214 # and all the variables that are supposed to be based on exec_prefix 1215 # by default will actually change. 1216 # Use braces instead of parens because sh, perl, etc. also accept them. 1217 # (The list follows the same order as the GNU Coding Standards.) 1218 bindir='${exec_prefix}/bin' 1219 sbindir='${exec_prefix}/sbin' 1220 libexecdir='${exec_prefix}/libexec' 1221 datarootdir='${prefix}/share' 1222 datadir='${datarootdir}' 1223 sysconfdir='${prefix}/etc' 1224 sharedstatedir='${prefix}/com' 1225 localstatedir='${prefix}/var' 1226 includedir='${prefix}/include' 1227 oldincludedir='/usr/include' 1228 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 1229 infodir='${datarootdir}/info' 1230 htmldir='${docdir}' 1231 dvidir='${docdir}' 1232 pdfdir='${docdir}' 1233 psdir='${docdir}' 1234 libdir='${exec_prefix}/lib' 1235 localedir='${datarootdir}/locale' 1236 mandir='${datarootdir}/man' 1237 1238 ac_prev= 1239 ac_dashdash= 1240 for ac_option 1241 do 1242 # If the previous option needs an argument, assign it. 1243 if test -n "$ac_prev"; then 1244 eval $ac_prev=\$ac_option 1245 ac_prev= 1246 continue 1247 fi 1248 1249 case $ac_option in 1250 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 1251 *=) ac_optarg= ;; 1252 *) ac_optarg=yes ;; 1253 esac 1254 1255 # Accept the important Cygnus configure options, so we can diagnose typos. 1256 1257 case $ac_dashdash$ac_option in 1258 --) 1259 ac_dashdash=yes ;; 1260 1261 -bindir | --bindir | --bindi | --bind | --bin | --bi) 1262 ac_prev=bindir ;; 1263 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 1264 bindir=$ac_optarg ;; 1265 1266 -build | --build | --buil | --bui | --bu) 1267 ac_prev=build_alias ;; 1268 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 1269 build_alias=$ac_optarg ;; 1270 1271 -cache-file | --cache-file | --cache-fil | --cache-fi \ 1272 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 1273 ac_prev=cache_file ;; 1274 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 1275 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 1276 cache_file=$ac_optarg ;; 1277 1278 --config-cache | -C) 1279 cache_file=config.cache ;; 1280 1281 -datadir | --datadir | --datadi | --datad) 1282 ac_prev=datadir ;; 1283 -datadir=* | --datadir=* | --datadi=* | --datad=*) 1284 datadir=$ac_optarg ;; 1285 1286 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 1287 | --dataroo | --dataro | --datar) 1288 ac_prev=datarootdir ;; 1289 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 1290 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 1291 datarootdir=$ac_optarg ;; 1292 1293 -disable-* | --disable-*) 1294 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 1295 # Reject names that are not valid shell variable names. 1296 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1297 as_fn_error $? "invalid feature name: $ac_useropt" 1298 ac_useropt_orig=$ac_useropt 1299 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1300 case $ac_user_opts in 1301 *" 1302 "enable_$ac_useropt" 1303 "*) ;; 1304 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1305 ac_unrecognized_sep=', ';; 1306 esac 1307 eval enable_$ac_useropt=no ;; 1308 1309 -docdir | --docdir | --docdi | --doc | --do) 1310 ac_prev=docdir ;; 1311 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1312 docdir=$ac_optarg ;; 1313 1314 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1315 ac_prev=dvidir ;; 1316 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1317 dvidir=$ac_optarg ;; 1318 1319 -enable-* | --enable-*) 1320 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1321 # Reject names that are not valid shell variable names. 1322 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1323 as_fn_error $? "invalid feature name: $ac_useropt" 1324 ac_useropt_orig=$ac_useropt 1325 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1326 case $ac_user_opts in 1327 *" 1328 "enable_$ac_useropt" 1329 "*) ;; 1330 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1331 ac_unrecognized_sep=', ';; 1332 esac 1333 eval enable_$ac_useropt=\$ac_optarg ;; 1334 1335 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1336 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1337 | --exec | --exe | --ex) 1338 ac_prev=exec_prefix ;; 1339 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1340 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1341 | --exec=* | --exe=* | --ex=*) 1342 exec_prefix=$ac_optarg ;; 1343 1344 -gas | --gas | --ga | --g) 1345 # Obsolete; use --with-gas. 1346 with_gas=yes ;; 1347 1348 -help | --help | --hel | --he | -h) 1349 ac_init_help=long ;; 1350 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1351 ac_init_help=recursive ;; 1352 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1353 ac_init_help=short ;; 1354 1355 -host | --host | --hos | --ho) 1356 ac_prev=host_alias ;; 1357 -host=* | --host=* | --hos=* | --ho=*) 1358 host_alias=$ac_optarg ;; 1359 1360 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1361 ac_prev=htmldir ;; 1362 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1363 | --ht=*) 1364 htmldir=$ac_optarg ;; 1365 1366 -includedir | --includedir | --includedi | --included | --include \ 1367 | --includ | --inclu | --incl | --inc) 1368 ac_prev=includedir ;; 1369 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1370 | --includ=* | --inclu=* | --incl=* | --inc=*) 1371 includedir=$ac_optarg ;; 1372 1373 -infodir | --infodir | --infodi | --infod | --info | --inf) 1374 ac_prev=infodir ;; 1375 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1376 infodir=$ac_optarg ;; 1377 1378 -libdir | --libdir | --libdi | --libd) 1379 ac_prev=libdir ;; 1380 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1381 libdir=$ac_optarg ;; 1382 1383 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1384 | --libexe | --libex | --libe) 1385 ac_prev=libexecdir ;; 1386 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1387 | --libexe=* | --libex=* | --libe=*) 1388 libexecdir=$ac_optarg ;; 1389 1390 -localedir | --localedir | --localedi | --localed | --locale) 1391 ac_prev=localedir ;; 1392 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1393 localedir=$ac_optarg ;; 1394 1395 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1396 | --localstate | --localstat | --localsta | --localst | --locals) 1397 ac_prev=localstatedir ;; 1398 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1399 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1400 localstatedir=$ac_optarg ;; 1401 1402 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1403 ac_prev=mandir ;; 1404 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1405 mandir=$ac_optarg ;; 1406 1407 -nfp | --nfp | --nf) 1408 # Obsolete; use --without-fp. 1409 with_fp=no ;; 1410 1411 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1412 | --no-cr | --no-c | -n) 1413 no_create=yes ;; 1414 1415 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1416 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1417 no_recursion=yes ;; 1418 1419 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1420 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1421 | --oldin | --oldi | --old | --ol | --o) 1422 ac_prev=oldincludedir ;; 1423 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1424 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1425 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1426 oldincludedir=$ac_optarg ;; 1427 1428 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1429 ac_prev=prefix ;; 1430 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1431 prefix=$ac_optarg ;; 1432 1433 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1434 | --program-pre | --program-pr | --program-p) 1435 ac_prev=program_prefix ;; 1436 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1437 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1438 program_prefix=$ac_optarg ;; 1439 1440 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1441 | --program-suf | --program-su | --program-s) 1442 ac_prev=program_suffix ;; 1443 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1444 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1445 program_suffix=$ac_optarg ;; 1446 1447 -program-transform-name | --program-transform-name \ 1448 | --program-transform-nam | --program-transform-na \ 1449 | --program-transform-n | --program-transform- \ 1450 | --program-transform | --program-transfor \ 1451 | --program-transfo | --program-transf \ 1452 | --program-trans | --program-tran \ 1453 | --progr-tra | --program-tr | --program-t) 1454 ac_prev=program_transform_name ;; 1455 -program-transform-name=* | --program-transform-name=* \ 1456 | --program-transform-nam=* | --program-transform-na=* \ 1457 | --program-transform-n=* | --program-transform-=* \ 1458 | --program-transform=* | --program-transfor=* \ 1459 | --program-transfo=* | --program-transf=* \ 1460 | --program-trans=* | --program-tran=* \ 1461 | --progr-tra=* | --program-tr=* | --program-t=*) 1462 program_transform_name=$ac_optarg ;; 1463 1464 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1465 ac_prev=pdfdir ;; 1466 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1467 pdfdir=$ac_optarg ;; 1468 1469 -psdir | --psdir | --psdi | --psd | --ps) 1470 ac_prev=psdir ;; 1471 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1472 psdir=$ac_optarg ;; 1473 1474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1475 | -silent | --silent | --silen | --sile | --sil) 1476 silent=yes ;; 1477 1478 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1479 ac_prev=sbindir ;; 1480 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1481 | --sbi=* | --sb=*) 1482 sbindir=$ac_optarg ;; 1483 1484 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1485 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1486 | --sharedst | --shareds | --shared | --share | --shar \ 1487 | --sha | --sh) 1488 ac_prev=sharedstatedir ;; 1489 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1490 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1491 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1492 | --sha=* | --sh=*) 1493 sharedstatedir=$ac_optarg ;; 1494 1495 -site | --site | --sit) 1496 ac_prev=site ;; 1497 -site=* | --site=* | --sit=*) 1498 site=$ac_optarg ;; 1499 1500 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1501 ac_prev=srcdir ;; 1502 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1503 srcdir=$ac_optarg ;; 1504 1505 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1506 | --syscon | --sysco | --sysc | --sys | --sy) 1507 ac_prev=sysconfdir ;; 1508 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1509 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1510 sysconfdir=$ac_optarg ;; 1511 1512 -target | --target | --targe | --targ | --tar | --ta | --t) 1513 ac_prev=target_alias ;; 1514 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1515 target_alias=$ac_optarg ;; 1516 1517 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1518 verbose=yes ;; 1519 1520 -version | --version | --versio | --versi | --vers | -V) 1521 ac_init_version=: ;; 1522 1523 -with-* | --with-*) 1524 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1525 # Reject names that are not valid shell variable names. 1526 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1527 as_fn_error $? "invalid package name: $ac_useropt" 1528 ac_useropt_orig=$ac_useropt 1529 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1530 case $ac_user_opts in 1531 *" 1532 "with_$ac_useropt" 1533 "*) ;; 1534 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1535 ac_unrecognized_sep=', ';; 1536 esac 1537 eval with_$ac_useropt=\$ac_optarg ;; 1538 1539 -without-* | --without-*) 1540 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1541 # Reject names that are not valid shell variable names. 1542 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1543 as_fn_error $? "invalid package name: $ac_useropt" 1544 ac_useropt_orig=$ac_useropt 1545 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1546 case $ac_user_opts in 1547 *" 1548 "with_$ac_useropt" 1549 "*) ;; 1550 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1551 ac_unrecognized_sep=', ';; 1552 esac 1553 eval with_$ac_useropt=no ;; 1554 1555 --x) 1556 # Obsolete; use --with-x. 1557 with_x=yes ;; 1558 1559 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1560 | --x-incl | --x-inc | --x-in | --x-i) 1561 ac_prev=x_includes ;; 1562 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1563 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1564 x_includes=$ac_optarg ;; 1565 1566 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1567 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1568 ac_prev=x_libraries ;; 1569 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1570 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1571 x_libraries=$ac_optarg ;; 1572 1573 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1574 Try \`$0 --help' for more information" 1575 ;; 1576 1577 *=*) 1578 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1579 # Reject names that are not valid shell variable names. 1580 case $ac_envvar in #( 1581 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1582 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1583 esac 1584 eval $ac_envvar=\$ac_optarg 1585 export $ac_envvar ;; 1586 1587 *) 1588 # FIXME: should be removed in autoconf 3.0. 1589 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1590 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1591 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1592 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1593 ;; 1594 1595 esac 1596 done 1597 1598 if test -n "$ac_prev"; then 1599 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1600 as_fn_error $? "missing argument to $ac_option" 1601 fi 1602 1603 if test -n "$ac_unrecognized_opts"; then 1604 case $enable_option_checking in 1605 no) ;; 1606 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1607 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1608 esac 1609 fi 1610 1611 # Check all directory arguments for consistency. 1612 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1613 datadir sysconfdir sharedstatedir localstatedir includedir \ 1614 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1615 libdir localedir mandir 1616 do 1617 eval ac_val=\$$ac_var 1618 # Remove trailing slashes. 1619 case $ac_val in 1620 */ ) 1621 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1622 eval $ac_var=\$ac_val;; 1623 esac 1624 # Be sure to have absolute directory names. 1625 case $ac_val in 1626 [\\/$]* | ?:[\\/]* ) continue;; 1627 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1628 esac 1629 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1630 done 1631 1632 # There might be people who depend on the old broken behavior: `$host' 1633 # used to hold the argument of --host etc. 1634 # FIXME: To remove some day. 1635 build=$build_alias 1636 host=$host_alias 1637 target=$target_alias 1638 1639 # FIXME: To remove some day. 1640 if test "x$host_alias" != x; then 1641 if test "x$build_alias" = x; then 1642 cross_compiling=maybe 1643 elif test "x$build_alias" != "x$host_alias"; then 1644 cross_compiling=yes 1645 fi 1646 fi 1647 1648 ac_tool_prefix= 1649 test -n "$host_alias" && ac_tool_prefix=$host_alias- 1650 1651 test "$silent" = yes && exec 6>/dev/null 1652 1653 1654 ac_pwd=`pwd` && test -n "$ac_pwd" && 1655 ac_ls_di=`ls -di .` && 1656 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1657 as_fn_error $? "working directory cannot be determined" 1658 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1659 as_fn_error $? "pwd does not report name of working directory" 1660 1661 1662 # Find the source files, if location was not specified. 1663 if test -z "$srcdir"; then 1664 ac_srcdir_defaulted=yes 1665 # Try the directory containing this script, then the parent directory. 1666 ac_confdir=`$as_dirname -- "$as_myself" || 1667 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1668 X"$as_myself" : 'X\(//\)[^/]' \| \ 1669 X"$as_myself" : 'X\(//\)$' \| \ 1670 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1671 $as_echo X"$as_myself" | 1672 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1673 s//\1/ 1674 q 1675 } 1676 /^X\(\/\/\)[^/].*/{ 1677 s//\1/ 1678 q 1679 } 1680 /^X\(\/\/\)$/{ 1681 s//\1/ 1682 q 1683 } 1684 /^X\(\/\).*/{ 1685 s//\1/ 1686 q 1687 } 1688 s/.*/./; q'` 1689 srcdir=$ac_confdir 1690 if test ! -r "$srcdir/$ac_unique_file"; then 1691 srcdir=.. 1692 fi 1693 else 1694 ac_srcdir_defaulted=no 1695 fi 1696 if test ! -r "$srcdir/$ac_unique_file"; then 1697 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1698 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1699 fi 1700 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1701 ac_abs_confdir=`( 1702 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1703 pwd)` 1704 # When building in place, set srcdir=. 1705 if test "$ac_abs_confdir" = "$ac_pwd"; then 1706 srcdir=. 1707 fi 1708 # Remove unnecessary trailing slashes from srcdir. 1709 # Double slashes in file names in object file debugging info 1710 # mess up M-x gdb in Emacs. 1711 case $srcdir in 1712 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1713 esac 1714 for ac_var in $ac_precious_vars; do 1715 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1716 eval ac_env_${ac_var}_value=\$${ac_var} 1717 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1718 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1719 done 1720 1721 # 1722 # Report the --help message. 1723 # 1724 if test "$ac_init_help" = "long"; then 1725 # Omit some internal or obsolete options to make the list less imposing. 1726 # This message is too long to be a string in the A/UX 3.1 sh. 1727 cat <<_ACEOF 1728 \`configure' configures OpenJDK jdk8 to adapt to many kinds of systems. 1729 1730 Usage: $0 [OPTION]... [VAR=VALUE]... 1731 1732 To assign environment variables (e.g., CC, CFLAGS...), specify them as 1733 VAR=VALUE. See below for descriptions of some of the useful variables. 1734 1735 Defaults for the options are specified in brackets. 1736 1737 Configuration: 1738 -h, --help display this help and exit 1739 --help=short display options specific to this package 1740 --help=recursive display the short help of all the included packages 1741 -V, --version display version information and exit 1742 -q, --quiet, --silent do not print \`checking ...' messages 1743 --cache-file=FILE cache test results in FILE [disabled] 1744 -C, --config-cache alias for \`--cache-file=config.cache' 1745 -n, --no-create do not create output files 1746 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1747 1748 Installation directories: 1749 --prefix=PREFIX install architecture-independent files in PREFIX 1750 [$ac_default_prefix] 1751 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1752 [PREFIX] 1753 1754 By default, \`make install' will install all the files in 1755 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1756 an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1757 for instance \`--prefix=\$HOME'. 1758 1759 For better control, use the options below. 1760 1761 Fine tuning of the installation directories: 1762 --bindir=DIR user executables [EPREFIX/bin] 1763 --sbindir=DIR system admin executables [EPREFIX/sbin] 1764 --libexecdir=DIR program executables [EPREFIX/libexec] 1765 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1766 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1767 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1768 --libdir=DIR object code libraries [EPREFIX/lib] 1769 --includedir=DIR C header files [PREFIX/include] 1770 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1771 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1772 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1773 --infodir=DIR info documentation [DATAROOTDIR/info] 1774 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1775 --mandir=DIR man documentation [DATAROOTDIR/man] 1776 --docdir=DIR documentation root [DATAROOTDIR/doc/openjdk] 1777 --htmldir=DIR html documentation [DOCDIR] 1778 --dvidir=DIR dvi documentation [DOCDIR] 1779 --pdfdir=DIR pdf documentation [DOCDIR] 1780 --psdir=DIR ps documentation [DOCDIR] 1781 _ACEOF 1782 1783 cat <<\_ACEOF 1784 1785 X features: 1786 --x-includes=DIR X include files are in DIR 1787 --x-libraries=DIR X library files are in DIR 1788 1789 System types: 1790 --build=BUILD configure for building on BUILD [guessed] 1791 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1792 --target=TARGET configure for building compilers for TARGET [HOST] 1793 _ACEOF 1794 fi 1795 1796 if test -n "$ac_init_help"; then 1797 case $ac_init_help in 1798 short | recursive ) echo "Configuration of OpenJDK jdk8:";; 1799 esac 1800 cat <<\_ACEOF 1801 1802 Optional Features: 1803 --disable-option-checking ignore unrecognized --enable/--with options 1804 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1805 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1806 --enable-openjdk-only suppress building custom source even if present 1807 [disabled] 1808 --enable-debug set the debug level to fastdebug (shorthand for 1809 --with-debug-level=fastdebug) [disabled] 1810 --disable-headful disable building headful support (graphical UI 1811 support) [enabled] 1812 --enable-hotspot-test-in-build 1813 run the Queens test after Hotspot build [disabled] 1814 --enable-unlimited-crypto 1815 Enable unlimited crypto policy [disabled] 1816 --disable-debug-symbols disable generation of debug symbols [enabled] 1817 --disable-zip-debug-info 1818 disable zipping of debug-info files [enabled] 1819 --enable-macosx-runtime-support 1820 Deprecated. Option is kept for backwards 1821 compatibility and is ignored 1822 --disable-freetype-bundling 1823 disable bundling of the freetype library with the 1824 build result [enabled on Windows or when using 1825 --with-freetype, disabled otherwise] 1826 --enable-sjavac use sjavac to do fast incremental compiles 1827 [disabled] 1828 --disable-precompiled-headers 1829 disable using precompiled headers when compiling C++ 1830 [enabled] 1831 --enable-ccache enable using ccache to speed up recompilations 1832 [disabled] 1833 1834 Optional Packages: 1835 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1836 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1837 --with-custom-make-dir use this directory for custom build/make files 1838 --with-target-bits build 32-bit or 64-bit binaries (for platforms that 1839 support it), e.g. --with-target-bits=32 [guessed] 1840 --with-sys-root pass this sys-root to the compilers and tools (for 1841 cross-compiling) 1842 --with-tools-dir search this directory for compilers and tools (for 1843 cross-compiling) 1844 --with-xcode-path explicit path to Xcode 4 (generally for building on 1845 10.9 and later) 1846 --with-devkit use this directory as base for tools-dir and 1847 sys-root (for cross-compiling) 1848 --with-jdk-variant JDK variant to build (normal) [normal] 1849 --with-jvm-interpreter JVM interpreter to build (template, cpp) [template] 1850 --with-jvm-variants JVM variants (separated by commas) to build (server, 1851 client, minimal1, kernel, zero, zeroshark, core) 1852 [server] 1853 --with-debug-level set the debug level (release, fastdebug, slowdebug) 1854 [release] 1855 --with-conf-name use this as the name of the configuration [generated 1856 from important configuration options] 1857 --with-builddeps-conf use this configuration file for the builddeps 1858 --with-builddeps-server download and use build dependencies from this server 1859 url 1860 --with-builddeps-dir store downloaded build dependencies here 1861 [/localhome/builddeps] 1862 --with-builddeps-group chgrp the downloaded build dependencies to this 1863 group 1864 --with-cacerts-file specify alternative cacerts file 1865 --with-milestone Set milestone value for build [internal] 1866 --with-update-version Set update version value for build [b00] 1867 --with-user-release-suffix 1868 Add a custom string to the version string if build 1869 number isn't set.[username_builddateb00] 1870 --with-build-number Set build number value for build [b00] 1871 --with-copyright-year Set copyright year value for build [current year] 1872 --with-boot-jdk path to Boot JDK (used to bootstrap build) [probed] 1873 --with-boot-jdk-jvmargs specify JVM arguments to be passed to all 1874 invocations of the Boot JDK, overriding the default 1875 values, e.g --with-boot-jdk-jvmargs="-Xmx8G 1876 -enableassertions" 1877 --with-add-source-root for each and every source directory, look in this 1878 additional source root for the same directory; if it 1879 exists and have files in it, include it in the build 1880 --with-override-source-root 1881 for each and every source directory, look in this 1882 override source root for the same directory; if it 1883 exists, use that directory instead and ignore the 1884 directory in the original source root 1885 --with-adds-and-overrides 1886 use the subdirs 'adds' and 'overrides' in the 1887 specified directory as add-source-root and 1888 override-source-root 1889 --with-override-langtools 1890 use this langtools dir for the build 1891 --with-override-corba use this corba dir for the build 1892 --with-override-jaxp use this jaxp dir for the build 1893 --with-override-jaxws use this jaxws dir for the build 1894 --with-override-hotspot use this hotspot dir for the build 1895 --with-override-nashorn use this nashorn dir for the build 1896 --with-override-jdk use this jdk dir for the build 1897 --with-import-hotspot import hotspot binaries from this jdk image or 1898 hotspot build dist dir instead of building from 1899 source 1900 --with-toolchain-type the toolchain type (or family) to use, use '--help' 1901 to show possible values [platform dependent] 1902 --with-jtreg Regression Test Harness [probed] 1903 --with-extra-cflags extra flags to be used when compiling jdk c-files 1904 --with-extra-cxxflags extra flags to be used when compiling jdk c++-files 1905 --with-extra-ldflags extra flags to be used when linking jdk 1906 --with-x use the X Window System 1907 --with-cups specify prefix directory for the cups package 1908 (expecting the headers under PATH/include) 1909 --with-cups-include specify directory for the cups include files 1910 --with-freetype specify prefix directory for the freetype package 1911 (expecting the libraries under PATH/lib and the 1912 headers under PATH/include) 1913 --with-freetype-include specify directory for the freetype include files 1914 --with-freetype-lib specify directory for the freetype library 1915 --with-alsa specify prefix directory for the alsa package 1916 (expecting the libraries under PATH/lib and the 1917 headers under PATH/include) 1918 --with-alsa-include specify directory for the alsa include files 1919 --with-alsa-lib specify directory for the alsa library 1920 --with-giflib use giflib from build system or OpenJDK source 1921 (system, bundled) [bundled] 1922 --with-zlib use zlib from build system or OpenJDK source 1923 (system, bundled) [bundled] 1924 --with-stdc++lib=<static>,<dynamic>,<default> 1925 force linking of the C++ runtime on Linux to either 1926 static or dynamic, default is static with dynamic as 1927 fallback 1928 --with-msvcr-dll copy this msvcr100.dll into the built JDK (Windows 1929 only) [probed] 1930 --with-dxsdk Deprecated. Option is kept for backwards 1931 compatibility and is ignored 1932 --with-dxsdk-lib Deprecated. Option is kept for backwards 1933 compatibility and is ignored 1934 --with-dxsdk-include Deprecated. Option is kept for backwards 1935 compatibility and is ignored 1936 --with-num-cores number of cores in the build system, e.g. 1937 --with-num-cores=8 [probed] 1938 --with-memory-size memory (in MB) available in the build system, e.g. 1939 --with-memory-size=1024 [probed] 1940 --with-jobs number of parallel jobs to let make run [calculated 1941 based on cores and memory] 1942 --with-sjavac-server-java 1943 use this java binary for running the sjavac 1944 background server [Boot JDK java] 1945 --with-ccache-dir where to store ccache files [~/.ccache] 1946 1947 Some influential environment variables: 1948 BASENAME Override default value for BASENAME 1949 BASH Override default value for BASH 1950 CAT Override default value for CAT 1951 CHMOD Override default value for CHMOD 1952 CMP Override default value for CMP 1953 COMM Override default value for COMM 1954 CP Override default value for CP 1955 CPIO Override default value for CPIO 1956 CUT Override default value for CUT 1957 DATE Override default value for DATE 1958 DIFF Override default value for DIFF 1959 DIRNAME Override default value for DIRNAME 1960 ECHO Override default value for ECHO 1961 EXPR Override default value for EXPR 1962 FILE Override default value for FILE 1963 FIND Override default value for FIND 1964 HEAD Override default value for HEAD 1965 LN Override default value for LN 1966 LS Override default value for LS 1967 MKDIR Override default value for MKDIR 1968 MKTEMP Override default value for MKTEMP 1969 MV Override default value for MV 1970 NAWK Override default value for NAWK 1971 PRINTF Override default value for PRINTF 1972 RM Override default value for RM 1973 SH Override default value for SH 1974 SORT Override default value for SORT 1975 TAIL Override default value for TAIL 1976 TAR Override default value for TAR 1977 TEE Override default value for TEE 1978 TOUCH Override default value for TOUCH 1979 TR Override default value for TR 1980 UNAME Override default value for UNAME 1981 UNIQ Override default value for UNIQ 1982 WC Override default value for WC 1983 WHICH Override default value for WHICH 1984 XARGS Override default value for XARGS 1985 AWK Override default value for AWK 1986 GREP Override default value for GREP 1987 EGREP Override default value for EGREP 1988 FGREP Override default value for FGREP 1989 SED Override default value for SED 1990 CYGPATH Override default value for CYGPATH 1991 READLINK Override default value for READLINK 1992 DF Override default value for DF 1993 SETFILE Override default value for SETFILE 1994 UNZIP Override default value for UNZIP 1995 ZIP Override default value for ZIP 1996 LDD Override default value for LDD 1997 READELF Override default value for READELF 1998 HG Override default value for HG 1999 STAT Override default value for STAT 2000 TIME Override default value for TIME 2001 DSYMUTIL Override default value for DSYMUTIL 2002 XATTR Override default value for XATTR 2003 CODESIGN Override default value for CODESIGN 2004 PKG_CONFIG path to pkg-config utility 2005 CC C compiler command 2006 CFLAGS C compiler flags 2007 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 2008 nonstandard directory <lib dir> 2009 LIBS libraries to pass to the linker, e.g. -l<library> 2010 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 2011 you have headers in a nonstandard directory <include dir> 2012 CXX C++ compiler command 2013 CXXFLAGS C++ compiler flags 2014 CPP C preprocessor 2015 CXXCPP C++ preprocessor 2016 AS Override default value for AS 2017 AR Override default value for AR 2018 OBJC Objective C compiler command 2019 OBJCFLAGS Objective C compiler flags 2020 LIPO Override default value for LIPO 2021 STRIP Override default value for STRIP 2022 NM Override default value for NM 2023 GNM Override default value for GNM 2024 MCS Override default value for MCS 2025 OBJCOPY Override default value for OBJCOPY 2026 OBJDUMP Override default value for OBJDUMP 2027 BUILD_CC Override default value for BUILD_CC 2028 BUILD_CXX Override default value for BUILD_CXX 2029 BUILD_LD Override default value for BUILD_LD 2030 JTREGEXE Override default value for JTREGEXE 2031 XMKMF Path to xmkmf, Makefile generator for X Window System 2032 FREETYPE_CFLAGS 2033 C compiler flags for FREETYPE, overriding pkg-config 2034 FREETYPE_LIBS 2035 linker flags for FREETYPE, overriding pkg-config 2036 ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config 2037 ALSA_LIBS linker flags for ALSA, overriding pkg-config 2038 LIBFFI_CFLAGS 2039 C compiler flags for LIBFFI, overriding pkg-config 2040 LIBFFI_LIBS linker flags for LIBFFI, overriding pkg-config 2041 CCACHE Override default value for CCACHE 2042 2043 Use these variables to override the choices made by `configure' or to help 2044 it to find libraries and programs with nonstandard names/locations. 2045 2046 Report bugs to <build-dev@openjdk.java.net>. 2047 OpenJDK home page: <http://openjdk.java.net>. 2048 _ACEOF 2049 ac_status=$? 2050 fi 2051 2052 if test "$ac_init_help" = "recursive"; then 2053 # If there are subdirs, report their specific --help. 2054 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 2055 test -d "$ac_dir" || 2056 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 2057 continue 2058 ac_builddir=. 2059 2060 case "$ac_dir" in 2061 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 2062 *) 2063 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 2064 # A ".." for each directory in $ac_dir_suffix. 2065 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 2066 case $ac_top_builddir_sub in 2067 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 2068 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 2069 esac ;; 2070 esac 2071 ac_abs_top_builddir=$ac_pwd 2072 ac_abs_builddir=$ac_pwd$ac_dir_suffix 2073 # for backward compatibility: 2074 ac_top_builddir=$ac_top_build_prefix 2075 2076 case $srcdir in 2077 .) # We are building in place. 2078 ac_srcdir=. 2079 ac_top_srcdir=$ac_top_builddir_sub 2080 ac_abs_top_srcdir=$ac_pwd ;; 2081 [\\/]* | ?:[\\/]* ) # Absolute name. 2082 ac_srcdir=$srcdir$ac_dir_suffix; 2083 ac_top_srcdir=$srcdir 2084 ac_abs_top_srcdir=$srcdir ;; 2085 *) # Relative name. 2086 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 2087 ac_top_srcdir=$ac_top_build_prefix$srcdir 2088 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 2089 esac 2090 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 2091 2092 cd "$ac_dir" || { ac_status=$?; continue; } 2093 # Check for guested configure. 2094 if test -f "$ac_srcdir/configure.gnu"; then 2095 echo && 2096 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 2097 elif test -f "$ac_srcdir/configure"; then 2098 echo && 2099 $SHELL "$ac_srcdir/configure" --help=recursive 2100 else 2101 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 2102 fi || ac_status=$? 2103 cd "$ac_pwd" || { ac_status=$?; break; } 2104 done 2105 fi 2106 2107 test -n "$ac_init_help" && exit $ac_status 2108 if $ac_init_version; then 2109 cat <<\_ACEOF 2110 OpenJDK configure jdk8 2111 generated by GNU Autoconf 2.69 2112 2113 Copyright (C) 2012 Free Software Foundation, Inc. 2114 This configure script is free software; the Free Software Foundation 2115 gives unlimited permission to copy, distribute and modify it. 2116 _ACEOF 2117 exit 2118 fi 2119 2120 ## ------------------------ ## 2121 ## Autoconf initialization. ## 2122 ## ------------------------ ## 2123 2124 # ac_fn_c_try_compile LINENO 2125 # -------------------------- 2126 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2127 ac_fn_c_try_compile () 2128 { 2129 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2130 rm -f conftest.$ac_objext 2131 if { { ac_try="$ac_compile" 2132 case "(($ac_try" in 2133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2134 *) ac_try_echo=$ac_try;; 2135 esac 2136 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2137 $as_echo "$ac_try_echo"; } >&5 2138 (eval "$ac_compile") 2>conftest.err 2139 ac_status=$? 2140 if test -s conftest.err; then 2141 grep -v '^ *+' conftest.err >conftest.er1 2142 cat conftest.er1 >&5 2143 mv -f conftest.er1 conftest.err 2144 fi 2145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2146 test $ac_status = 0; } && { 2147 test -z "$ac_c_werror_flag" || 2148 test ! -s conftest.err 2149 } && test -s conftest.$ac_objext; then : 2150 ac_retval=0 2151 else 2152 $as_echo "$as_me: failed program was:" >&5 2153 sed 's/^/| /' conftest.$ac_ext >&5 2154 2155 ac_retval=1 2156 fi 2157 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2158 as_fn_set_status $ac_retval 2159 2160 } # ac_fn_c_try_compile 2161 2162 # ac_fn_cxx_try_compile LINENO 2163 # ---------------------------- 2164 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2165 ac_fn_cxx_try_compile () 2166 { 2167 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2168 rm -f conftest.$ac_objext 2169 if { { ac_try="$ac_compile" 2170 case "(($ac_try" in 2171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2172 *) ac_try_echo=$ac_try;; 2173 esac 2174 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2175 $as_echo "$ac_try_echo"; } >&5 2176 (eval "$ac_compile") 2>conftest.err 2177 ac_status=$? 2178 if test -s conftest.err; then 2179 grep -v '^ *+' conftest.err >conftest.er1 2180 cat conftest.er1 >&5 2181 mv -f conftest.er1 conftest.err 2182 fi 2183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2184 test $ac_status = 0; } && { 2185 test -z "$ac_cxx_werror_flag" || 2186 test ! -s conftest.err 2187 } && test -s conftest.$ac_objext; then : 2188 ac_retval=0 2189 else 2190 $as_echo "$as_me: failed program was:" >&5 2191 sed 's/^/| /' conftest.$ac_ext >&5 2192 2193 ac_retval=1 2194 fi 2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2196 as_fn_set_status $ac_retval 2197 2198 } # ac_fn_cxx_try_compile 2199 2200 # ac_fn_c_try_cpp LINENO 2201 # ---------------------- 2202 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2203 ac_fn_c_try_cpp () 2204 { 2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2206 if { { ac_try="$ac_cpp conftest.$ac_ext" 2207 case "(($ac_try" in 2208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2209 *) ac_try_echo=$ac_try;; 2210 esac 2211 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2212 $as_echo "$ac_try_echo"; } >&5 2213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2214 ac_status=$? 2215 if test -s conftest.err; then 2216 grep -v '^ *+' conftest.err >conftest.er1 2217 cat conftest.er1 >&5 2218 mv -f conftest.er1 conftest.err 2219 fi 2220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2221 test $ac_status = 0; } > conftest.i && { 2222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 2223 test ! -s conftest.err 2224 }; then : 2225 ac_retval=0 2226 else 2227 $as_echo "$as_me: failed program was:" >&5 2228 sed 's/^/| /' conftest.$ac_ext >&5 2229 2230 ac_retval=1 2231 fi 2232 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2233 as_fn_set_status $ac_retval 2234 2235 } # ac_fn_c_try_cpp 2236 2237 # ac_fn_cxx_try_cpp LINENO 2238 # ------------------------ 2239 # Try to preprocess conftest.$ac_ext, and return whether this succeeded. 2240 ac_fn_cxx_try_cpp () 2241 { 2242 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2243 if { { ac_try="$ac_cpp conftest.$ac_ext" 2244 case "(($ac_try" in 2245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2246 *) ac_try_echo=$ac_try;; 2247 esac 2248 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2249 $as_echo "$ac_try_echo"; } >&5 2250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 2251 ac_status=$? 2252 if test -s conftest.err; then 2253 grep -v '^ *+' conftest.err >conftest.er1 2254 cat conftest.er1 >&5 2255 mv -f conftest.er1 conftest.err 2256 fi 2257 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2258 test $ac_status = 0; } > conftest.i && { 2259 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 2260 test ! -s conftest.err 2261 }; then : 2262 ac_retval=0 2263 else 2264 $as_echo "$as_me: failed program was:" >&5 2265 sed 's/^/| /' conftest.$ac_ext >&5 2266 2267 ac_retval=1 2268 fi 2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2270 as_fn_set_status $ac_retval 2271 2272 } # ac_fn_cxx_try_cpp 2273 2274 # ac_fn_objc_try_compile LINENO 2275 # ----------------------------- 2276 # Try to compile conftest.$ac_ext, and return whether this succeeded. 2277 ac_fn_objc_try_compile () 2278 { 2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2280 rm -f conftest.$ac_objext 2281 if { { ac_try="$ac_compile" 2282 case "(($ac_try" in 2283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2284 *) ac_try_echo=$ac_try;; 2285 esac 2286 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2287 $as_echo "$ac_try_echo"; } >&5 2288 (eval "$ac_compile") 2>conftest.err 2289 ac_status=$? 2290 if test -s conftest.err; then 2291 grep -v '^ *+' conftest.err >conftest.er1 2292 cat conftest.er1 >&5 2293 mv -f conftest.er1 conftest.err 2294 fi 2295 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2296 test $ac_status = 0; } && { 2297 test -z "$ac_objc_werror_flag" || 2298 test ! -s conftest.err 2299 } && test -s conftest.$ac_objext; then : 2300 ac_retval=0 2301 else 2302 $as_echo "$as_me: failed program was:" >&5 2303 sed 's/^/| /' conftest.$ac_ext >&5 2304 2305 ac_retval=1 2306 fi 2307 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2308 as_fn_set_status $ac_retval 2309 2310 } # ac_fn_objc_try_compile 2311 2312 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2313 # --------------------------------------------------------- 2314 # Tests whether HEADER exists, giving a warning if it cannot be compiled using 2315 # the include files in INCLUDES and setting the cache variable VAR 2316 # accordingly. 2317 ac_fn_cxx_check_header_mongrel () 2318 { 2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2320 if eval \${$3+:} false; then : 2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2322 $as_echo_n "checking for $2... " >&6; } 2323 if eval \${$3+:} false; then : 2324 $as_echo_n "(cached) " >&6 2325 fi 2326 eval ac_res=\$$3 2327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2328 $as_echo "$ac_res" >&6; } 2329 else 2330 # Is the header compilable? 2331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2332 $as_echo_n "checking $2 usability... " >&6; } 2333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2334 /* end confdefs.h. */ 2335 $4 2336 #include <$2> 2337 _ACEOF 2338 if ac_fn_cxx_try_compile "$LINENO"; then : 2339 ac_header_compiler=yes 2340 else 2341 ac_header_compiler=no 2342 fi 2343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2345 $as_echo "$ac_header_compiler" >&6; } 2346 2347 # Is the header present? 2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2349 $as_echo_n "checking $2 presence... " >&6; } 2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2351 /* end confdefs.h. */ 2352 #include <$2> 2353 _ACEOF 2354 if ac_fn_cxx_try_cpp "$LINENO"; then : 2355 ac_header_preproc=yes 2356 else 2357 ac_header_preproc=no 2358 fi 2359 rm -f conftest.err conftest.i conftest.$ac_ext 2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2361 $as_echo "$ac_header_preproc" >&6; } 2362 2363 # So? What about this header? 2364 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2365 yes:no: ) 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2367 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2368 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2369 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2370 ;; 2371 no:yes:* ) 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2373 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2375 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2377 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2379 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2381 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2382 ( $as_echo "## ----------------------------------------- ## 2383 ## Report this to build-dev@openjdk.java.net ## 2384 ## ----------------------------------------- ##" 2385 ) | sed "s/^/$as_me: WARNING: /" >&2 2386 ;; 2387 esac 2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2389 $as_echo_n "checking for $2... " >&6; } 2390 if eval \${$3+:} false; then : 2391 $as_echo_n "(cached) " >&6 2392 else 2393 eval "$3=\$ac_header_compiler" 2394 fi 2395 eval ac_res=\$$3 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2397 $as_echo "$ac_res" >&6; } 2398 fi 2399 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2400 2401 } # ac_fn_cxx_check_header_mongrel 2402 2403 # ac_fn_cxx_try_run LINENO 2404 # ------------------------ 2405 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2406 # that executables *can* be run. 2407 ac_fn_cxx_try_run () 2408 { 2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2410 if { { ac_try="$ac_link" 2411 case "(($ac_try" in 2412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2413 *) ac_try_echo=$ac_try;; 2414 esac 2415 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2416 $as_echo "$ac_try_echo"; } >&5 2417 (eval "$ac_link") 2>&5 2418 ac_status=$? 2419 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2420 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2421 { { case "(($ac_try" in 2422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2423 *) ac_try_echo=$ac_try;; 2424 esac 2425 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2426 $as_echo "$ac_try_echo"; } >&5 2427 (eval "$ac_try") 2>&5 2428 ac_status=$? 2429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2430 test $ac_status = 0; }; }; then : 2431 ac_retval=0 2432 else 2433 $as_echo "$as_me: program exited with status $ac_status" >&5 2434 $as_echo "$as_me: failed program was:" >&5 2435 sed 's/^/| /' conftest.$ac_ext >&5 2436 2437 ac_retval=$ac_status 2438 fi 2439 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2441 as_fn_set_status $ac_retval 2442 2443 } # ac_fn_cxx_try_run 2444 2445 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2446 # --------------------------------------------------------- 2447 # Tests whether HEADER exists and can be compiled using the include files in 2448 # INCLUDES, setting the cache variable VAR accordingly. 2449 ac_fn_cxx_check_header_compile () 2450 { 2451 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2453 $as_echo_n "checking for $2... " >&6; } 2454 if eval \${$3+:} false; then : 2455 $as_echo_n "(cached) " >&6 2456 else 2457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2458 /* end confdefs.h. */ 2459 $4 2460 #include <$2> 2461 _ACEOF 2462 if ac_fn_cxx_try_compile "$LINENO"; then : 2463 eval "$3=yes" 2464 else 2465 eval "$3=no" 2466 fi 2467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2468 fi 2469 eval ac_res=\$$3 2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2471 $as_echo "$ac_res" >&6; } 2472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2473 2474 } # ac_fn_cxx_check_header_compile 2475 2476 # ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2477 # ---------------------------------------------- 2478 # Tries to find the compile-time value of EXPR in a program that includes 2479 # INCLUDES, setting VAR accordingly. Returns whether the value could be 2480 # computed 2481 ac_fn_cxx_compute_int () 2482 { 2483 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2484 if test "$cross_compiling" = yes; then 2485 # Depending upon the size, compute the lo and hi bounds. 2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2487 /* end confdefs.h. */ 2488 $4 2489 int 2490 main () 2491 { 2492 static int test_array [1 - 2 * !(($2) >= 0)]; 2493 test_array [0] = 0; 2494 return test_array [0]; 2495 2496 ; 2497 return 0; 2498 } 2499 _ACEOF 2500 if ac_fn_cxx_try_compile "$LINENO"; then : 2501 ac_lo=0 ac_mid=0 2502 while :; do 2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2504 /* end confdefs.h. */ 2505 $4 2506 int 2507 main () 2508 { 2509 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2510 test_array [0] = 0; 2511 return test_array [0]; 2512 2513 ; 2514 return 0; 2515 } 2516 _ACEOF 2517 if ac_fn_cxx_try_compile "$LINENO"; then : 2518 ac_hi=$ac_mid; break 2519 else 2520 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2521 if test $ac_lo -le $ac_mid; then 2522 ac_lo= ac_hi= 2523 break 2524 fi 2525 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2526 fi 2527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2528 done 2529 else 2530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2531 /* end confdefs.h. */ 2532 $4 2533 int 2534 main () 2535 { 2536 static int test_array [1 - 2 * !(($2) < 0)]; 2537 test_array [0] = 0; 2538 return test_array [0]; 2539 2540 ; 2541 return 0; 2542 } 2543 _ACEOF 2544 if ac_fn_cxx_try_compile "$LINENO"; then : 2545 ac_hi=-1 ac_mid=-1 2546 while :; do 2547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2548 /* end confdefs.h. */ 2549 $4 2550 int 2551 main () 2552 { 2553 static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2554 test_array [0] = 0; 2555 return test_array [0]; 2556 2557 ; 2558 return 0; 2559 } 2560 _ACEOF 2561 if ac_fn_cxx_try_compile "$LINENO"; then : 2562 ac_lo=$ac_mid; break 2563 else 2564 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2565 if test $ac_mid -le $ac_hi; then 2566 ac_lo= ac_hi= 2567 break 2568 fi 2569 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2570 fi 2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2572 done 2573 else 2574 ac_lo= ac_hi= 2575 fi 2576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2577 fi 2578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2579 # Binary search between lo and hi bounds. 2580 while test "x$ac_lo" != "x$ac_hi"; do 2581 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2583 /* end confdefs.h. */ 2584 $4 2585 int 2586 main () 2587 { 2588 static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2589 test_array [0] = 0; 2590 return test_array [0]; 2591 2592 ; 2593 return 0; 2594 } 2595 _ACEOF 2596 if ac_fn_cxx_try_compile "$LINENO"; then : 2597 ac_hi=$ac_mid 2598 else 2599 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2600 fi 2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2602 done 2603 case $ac_lo in #(( 2604 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2605 '') ac_retval=1 ;; 2606 esac 2607 else 2608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2609 /* end confdefs.h. */ 2610 $4 2611 static long int longval () { return $2; } 2612 static unsigned long int ulongval () { return $2; } 2613 #include <stdio.h> 2614 #include <stdlib.h> 2615 int 2616 main () 2617 { 2618 2619 FILE *f = fopen ("conftest.val", "w"); 2620 if (! f) 2621 return 1; 2622 if (($2) < 0) 2623 { 2624 long int i = longval (); 2625 if (i != ($2)) 2626 return 1; 2627 fprintf (f, "%ld", i); 2628 } 2629 else 2630 { 2631 unsigned long int i = ulongval (); 2632 if (i != ($2)) 2633 return 1; 2634 fprintf (f, "%lu", i); 2635 } 2636 /* Do not output a trailing newline, as this causes \r\n confusion 2637 on some platforms. */ 2638 return ferror (f) || fclose (f) != 0; 2639 2640 ; 2641 return 0; 2642 } 2643 _ACEOF 2644 if ac_fn_cxx_try_run "$LINENO"; then : 2645 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2646 else 2647 ac_retval=1 2648 fi 2649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2650 conftest.$ac_objext conftest.beam conftest.$ac_ext 2651 rm -f conftest.val 2652 2653 fi 2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2655 as_fn_set_status $ac_retval 2656 2657 } # ac_fn_cxx_compute_int 2658 2659 # ac_fn_cxx_try_link LINENO 2660 # ------------------------- 2661 # Try to link conftest.$ac_ext, and return whether this succeeded. 2662 ac_fn_cxx_try_link () 2663 { 2664 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2665 rm -f conftest.$ac_objext conftest$ac_exeext 2666 if { { ac_try="$ac_link" 2667 case "(($ac_try" in 2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2669 *) ac_try_echo=$ac_try;; 2670 esac 2671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2672 $as_echo "$ac_try_echo"; } >&5 2673 (eval "$ac_link") 2>conftest.err 2674 ac_status=$? 2675 if test -s conftest.err; then 2676 grep -v '^ *+' conftest.err >conftest.er1 2677 cat conftest.er1 >&5 2678 mv -f conftest.er1 conftest.err 2679 fi 2680 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2681 test $ac_status = 0; } && { 2682 test -z "$ac_cxx_werror_flag" || 2683 test ! -s conftest.err 2684 } && test -s conftest$ac_exeext && { 2685 test "$cross_compiling" = yes || 2686 test -x conftest$ac_exeext 2687 }; then : 2688 ac_retval=0 2689 else 2690 $as_echo "$as_me: failed program was:" >&5 2691 sed 's/^/| /' conftest.$ac_ext >&5 2692 2693 ac_retval=1 2694 fi 2695 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2696 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2697 # interfere with the next link command; also delete a directory that is 2698 # left behind by Apple's compiler. We do this before executing the actions. 2699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2701 as_fn_set_status $ac_retval 2702 2703 } # ac_fn_cxx_try_link 2704 2705 # ac_fn_cxx_check_func LINENO FUNC VAR 2706 # ------------------------------------ 2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly 2708 ac_fn_cxx_check_func () 2709 { 2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2712 $as_echo_n "checking for $2... " >&6; } 2713 if eval \${$3+:} false; then : 2714 $as_echo_n "(cached) " >&6 2715 else 2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2717 /* end confdefs.h. */ 2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2719 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2720 #define $2 innocuous_$2 2721 2722 /* System header to define __stub macros and hopefully few prototypes, 2723 which can conflict with char $2 (); below. 2724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2725 <limits.h> exists even on freestanding compilers. */ 2726 2727 #ifdef __STDC__ 2728 # include <limits.h> 2729 #else 2730 # include <assert.h> 2731 #endif 2732 2733 #undef $2 2734 2735 /* Override any GCC internal prototype to avoid an error. 2736 Use char because int might match the return type of a GCC 2737 builtin and then its argument prototype would still apply. */ 2738 #ifdef __cplusplus 2739 extern "C" 2740 #endif 2741 char $2 (); 2742 /* The GNU C library defines this for functions which it implements 2743 to always fail with ENOSYS. Some functions are actually named 2744 something starting with __ and the normal name is an alias. */ 2745 #if defined __stub_$2 || defined __stub___$2 2746 choke me 2747 #endif 2748 2749 int 2750 main () 2751 { 2752 return $2 (); 2753 ; 2754 return 0; 2755 } 2756 _ACEOF 2757 if ac_fn_cxx_try_link "$LINENO"; then : 2758 eval "$3=yes" 2759 else 2760 eval "$3=no" 2761 fi 2762 rm -f core conftest.err conftest.$ac_objext \ 2763 conftest$ac_exeext conftest.$ac_ext 2764 fi 2765 eval ac_res=\$$3 2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2767 $as_echo "$ac_res" >&6; } 2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2769 2770 } # ac_fn_cxx_check_func 2771 2772 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 2773 # ------------------------------------------------------- 2774 # Tests whether HEADER exists and can be compiled using the include files in 2775 # INCLUDES, setting the cache variable VAR accordingly. 2776 ac_fn_c_check_header_compile () 2777 { 2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2780 $as_echo_n "checking for $2... " >&6; } 2781 if eval \${$3+:} false; then : 2782 $as_echo_n "(cached) " >&6 2783 else 2784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2785 /* end confdefs.h. */ 2786 $4 2787 #include <$2> 2788 _ACEOF 2789 if ac_fn_c_try_compile "$LINENO"; then : 2790 eval "$3=yes" 2791 else 2792 eval "$3=no" 2793 fi 2794 rm -f core conftest.err conftest.$ac_objext 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_c_check_header_compile 2802 cat >config.log <<_ACEOF 2803 This file contains any messages produced by compilers while 2804 running configure, to aid debugging if configure makes a mistake. 2805 2806 It was created by OpenJDK $as_me jdk8, which was 2807 generated by GNU Autoconf 2.69. Invocation command line was 2808 2809 $ $0 $@ 2810 2811 _ACEOF 2812 exec 5>>config.log 2813 { 2814 cat <<_ASUNAME 2815 ## --------- ## 2816 ## Platform. ## 2817 ## --------- ## 2818 2819 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2820 uname -m = `(uname -m) 2>/dev/null || echo unknown` 2821 uname -r = `(uname -r) 2>/dev/null || echo unknown` 2822 uname -s = `(uname -s) 2>/dev/null || echo unknown` 2823 uname -v = `(uname -v) 2>/dev/null || echo unknown` 2824 2825 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2826 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2827 2828 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2829 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2830 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2831 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2832 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2833 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2834 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2835 2836 _ASUNAME 2837 2838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2839 for as_dir in $PATH 2840 do 2841 IFS=$as_save_IFS 2842 test -z "$as_dir" && as_dir=. 2843 $as_echo "PATH: $as_dir" 2844 done 2845 IFS=$as_save_IFS 2846 2847 } >&5 2848 2849 cat >&5 <<_ACEOF 2850 2851 2852 ## ----------- ## 2853 ## Core tests. ## 2854 ## ----------- ## 2855 2856 _ACEOF 2857 2858 2859 # Keep a trace of the command line. 2860 # Strip out --no-create and --no-recursion so they do not pile up. 2861 # Strip out --silent because we don't want to record it for future runs. 2862 # Also quote any args containing shell meta-characters. 2863 # Make two passes to allow for proper duplicate-argument suppression. 2864 ac_configure_args= 2865 ac_configure_args0= 2866 ac_configure_args1= 2867 ac_must_keep_next=false 2868 for ac_pass in 1 2 2869 do 2870 for ac_arg 2871 do 2872 case $ac_arg in 2873 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2874 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2875 | -silent | --silent | --silen | --sile | --sil) 2876 continue ;; 2877 *\'*) 2878 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2879 esac 2880 case $ac_pass in 2881 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2882 2) 2883 as_fn_append ac_configure_args1 " '$ac_arg'" 2884 if test $ac_must_keep_next = true; then 2885 ac_must_keep_next=false # Got value, back to normal. 2886 else 2887 case $ac_arg in 2888 *=* | --config-cache | -C | -disable-* | --disable-* \ 2889 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2890 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2891 | -with-* | --with-* | -without-* | --without-* | --x) 2892 case "$ac_configure_args0 " in 2893 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2894 esac 2895 ;; 2896 -* ) ac_must_keep_next=true ;; 2897 esac 2898 fi 2899 as_fn_append ac_configure_args " '$ac_arg'" 2900 ;; 2901 esac 2902 done 2903 done 2904 { ac_configure_args0=; unset ac_configure_args0;} 2905 { ac_configure_args1=; unset ac_configure_args1;} 2906 2907 # When interrupted or exit'd, cleanup temporary files, and complete 2908 # config.log. We remove comments because anyway the quotes in there 2909 # would cause problems or look ugly. 2910 # WARNING: Use '\'' to represent an apostrophe within the trap. 2911 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2912 trap 'exit_status=$? 2913 # Save into config.log some information that might help in debugging. 2914 { 2915 echo 2916 2917 $as_echo "## ---------------- ## 2918 ## Cache variables. ## 2919 ## ---------------- ##" 2920 echo 2921 # The following way of writing the cache mishandles newlines in values, 2922 ( 2923 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2924 eval ac_val=\$$ac_var 2925 case $ac_val in #( 2926 *${as_nl}*) 2927 case $ac_var in #( 2928 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2929 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2930 esac 2931 case $ac_var in #( 2932 _ | IFS | as_nl) ;; #( 2933 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2934 *) { eval $ac_var=; unset $ac_var;} ;; 2935 esac ;; 2936 esac 2937 done 2938 (set) 2>&1 | 2939 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2940 *${as_nl}ac_space=\ *) 2941 sed -n \ 2942 "s/'\''/'\''\\\\'\'''\''/g; 2943 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2944 ;; #( 2945 *) 2946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2947 ;; 2948 esac | 2949 sort 2950 ) 2951 echo 2952 2953 $as_echo "## ----------------- ## 2954 ## Output variables. ## 2955 ## ----------------- ##" 2956 echo 2957 for ac_var in $ac_subst_vars 2958 do 2959 eval ac_val=\$$ac_var 2960 case $ac_val in 2961 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2962 esac 2963 $as_echo "$ac_var='\''$ac_val'\''" 2964 done | sort 2965 echo 2966 2967 if test -n "$ac_subst_files"; then 2968 $as_echo "## ------------------- ## 2969 ## File substitutions. ## 2970 ## ------------------- ##" 2971 echo 2972 for ac_var in $ac_subst_files 2973 do 2974 eval ac_val=\$$ac_var 2975 case $ac_val in 2976 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2977 esac 2978 $as_echo "$ac_var='\''$ac_val'\''" 2979 done | sort 2980 echo 2981 fi 2982 2983 if test -s confdefs.h; then 2984 $as_echo "## ----------- ## 2985 ## confdefs.h. ## 2986 ## ----------- ##" 2987 echo 2988 cat confdefs.h 2989 echo 2990 fi 2991 test "$ac_signal" != 0 && 2992 $as_echo "$as_me: caught signal $ac_signal" 2993 $as_echo "$as_me: exit $exit_status" 2994 } >&5 2995 rm -f core *.core core.conftest.* && 2996 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2997 exit $exit_status 2998 ' 0 2999 for ac_signal in 1 2 13 15; do 3000 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 3001 done 3002 ac_signal=0 3003 3004 # confdefs.h avoids OS command line length limits that DEFS can exceed. 3005 rm -f -r conftest* confdefs.h 3006 3007 $as_echo "/* confdefs.h */" > confdefs.h 3008 3009 # Predefined preprocessor variables. 3010 3011 cat >>confdefs.h <<_ACEOF 3012 #define PACKAGE_NAME "$PACKAGE_NAME" 3013 _ACEOF 3014 3015 cat >>confdefs.h <<_ACEOF 3016 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 3017 _ACEOF 3018 3019 cat >>confdefs.h <<_ACEOF 3020 #define PACKAGE_VERSION "$PACKAGE_VERSION" 3021 _ACEOF 3022 3023 cat >>confdefs.h <<_ACEOF 3024 #define PACKAGE_STRING "$PACKAGE_STRING" 3025 _ACEOF 3026 3027 cat >>confdefs.h <<_ACEOF 3028 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 3029 _ACEOF 3030 3031 cat >>confdefs.h <<_ACEOF 3032 #define PACKAGE_URL "$PACKAGE_URL" 3033 _ACEOF 3034 3035 3036 # Let the site file select an alternate cache file if it wants to. 3037 # Prefer an explicitly selected file to automatically selected ones. 3038 ac_site_file1=NONE 3039 ac_site_file2=NONE 3040 if test -n "$CONFIG_SITE"; then 3041 # We do not want a PATH search for config.site. 3042 case $CONFIG_SITE in #(( 3043 -*) ac_site_file1=./$CONFIG_SITE;; 3044 */*) ac_site_file1=$CONFIG_SITE;; 3045 *) ac_site_file1=./$CONFIG_SITE;; 3046 esac 3047 elif test "x$prefix" != xNONE; then 3048 ac_site_file1=$prefix/share/config.site 3049 ac_site_file2=$prefix/etc/config.site 3050 else 3051 ac_site_file1=$ac_default_prefix/share/config.site 3052 ac_site_file2=$ac_default_prefix/etc/config.site 3053 fi 3054 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 3055 do 3056 test "x$ac_site_file" = xNONE && continue 3057 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 3059 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 3060 sed 's/^/| /' "$ac_site_file" >&5 3061 . "$ac_site_file" \ 3062 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3064 as_fn_error $? "failed to load site script $ac_site_file 3065 See \`config.log' for more details" "$LINENO" 5; } 3066 fi 3067 done 3068 3069 if test -r "$cache_file"; then 3070 # Some versions of bash will fail to source /dev/null (special files 3071 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 3072 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 3074 $as_echo "$as_me: loading cache $cache_file" >&6;} 3075 case $cache_file in 3076 [\\/]* | ?:[\\/]* ) . "$cache_file";; 3077 *) . "./$cache_file";; 3078 esac 3079 fi 3080 else 3081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 3082 $as_echo "$as_me: creating cache $cache_file" >&6;} 3083 >$cache_file 3084 fi 3085 3086 # Check that the precious variables saved in the cache have kept the same 3087 # value. 3088 ac_cache_corrupted=false 3089 for ac_var in $ac_precious_vars; do 3090 eval ac_old_set=\$ac_cv_env_${ac_var}_set 3091 eval ac_new_set=\$ac_env_${ac_var}_set 3092 eval ac_old_val=\$ac_cv_env_${ac_var}_value 3093 eval ac_new_val=\$ac_env_${ac_var}_value 3094 case $ac_old_set,$ac_new_set in 3095 set,) 3096 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 3097 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 3098 ac_cache_corrupted=: ;; 3099 ,set) 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 3101 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 3102 ac_cache_corrupted=: ;; 3103 ,);; 3104 *) 3105 if test "x$ac_old_val" != "x$ac_new_val"; then 3106 # differences in whitespace do not lead to failure. 3107 ac_old_val_w=`echo x $ac_old_val` 3108 ac_new_val_w=`echo x $ac_new_val` 3109 if test "$ac_old_val_w" != "$ac_new_val_w"; then 3110 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 3111 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 3112 ac_cache_corrupted=: 3113 else 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 3115 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 3116 eval $ac_var=\$ac_old_val 3117 fi 3118 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 3119 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 3120 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 3121 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 3122 fi;; 3123 esac 3124 # Pass precious variables to config.status. 3125 if test "$ac_new_set" = set; then 3126 case $ac_new_val in 3127 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 3128 *) ac_arg=$ac_var=$ac_new_val ;; 3129 esac 3130 case " $ac_configure_args " in 3131 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 3132 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 3133 esac 3134 fi 3135 done 3136 if $ac_cache_corrupted; then 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3138 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3139 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 3140 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 3141 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 3142 fi 3143 ## -------------------- ## 3144 ## Main body of script. ## 3145 ## -------------------- ## 3146 3147 ac_ext=c 3148 ac_cpp='$CPP $CPPFLAGS' 3149 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3150 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3151 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3152 3153 3154 3155 ac_aux_dir= 3156 for ac_dir in $TOPDIR/common/autoconf/build-aux "$srcdir"/$TOPDIR/common/autoconf/build-aux; do 3157 if test -f "$ac_dir/install-sh"; then 3158 ac_aux_dir=$ac_dir 3159 ac_install_sh="$ac_aux_dir/install-sh -c" 3160 break 3161 elif test -f "$ac_dir/install.sh"; then 3162 ac_aux_dir=$ac_dir 3163 ac_install_sh="$ac_aux_dir/install.sh -c" 3164 break 3165 elif test -f "$ac_dir/shtool"; then 3166 ac_aux_dir=$ac_dir 3167 ac_install_sh="$ac_aux_dir/shtool install -c" 3168 break 3169 fi 3170 done 3171 if test -z "$ac_aux_dir"; then 3172 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 3173 fi 3174 3175 # These three variables are undocumented and unsupported, 3176 # and are intended to be withdrawn in a future Autoconf release. 3177 # They can cause serious problems if a builder's source tree is in a directory 3178 # whose full name contains unusual characters. 3179 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3180 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3181 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3182 3183 3184 # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- 3185 3186 # 3187 # Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved. 3188 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3189 # 3190 # This code is free software; you can redistribute it and/or modify it 3191 # under the terms of the GNU General Public License version 2 only, as 3192 # published by the Free Software Foundation. Oracle designates this 3193 # particular file as subject to the "Classpath" exception as provided 3194 # by Oracle in the LICENSE file that accompanied this code. 3195 # 3196 # This code is distributed in the hope that it will be useful, but WITHOUT 3197 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3198 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3199 # version 2 for more details (a copy is included in the LICENSE file that 3200 # accompanied this code). 3201 # 3202 # You should have received a copy of the GNU General Public License version 3203 # 2 along with this work; if not, write to the Free Software Foundation, 3204 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3205 # 3206 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3207 # or visit www.oracle.com if you need additional information or have any 3208 # questions. 3209 # 3210 3211 # 3212 # Copyright © 2004 Scott James Remnant <scott@netsplit.com>. 3213 # 3214 # This program is free software; you can redistribute it and/or modify 3215 # it under the terms of the GNU General Public License as published by 3216 # the Free Software Foundation; either version 2 of the License, or 3217 # (at your option) any later version. 3218 # 3219 # This program is distributed in the hope that it will be useful, but 3220 # WITHOUT ANY WARRANTY; without even the implied warranty of 3221 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 3222 # General Public License for more details. 3223 # 3224 # You should have received a copy of the GNU General Public License 3225 # along with this program; if not, write to the Free Software 3226 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 3227 # 3228 # As a special exception to the GNU General Public License, if you 3229 # distribute this file as part of a program that contains a 3230 # configuration script generated by Autoconf, you may include it under 3231 # the same distribution terms that you use for the rest of that program. 3232 3233 # PKG_PROG_PKG_CONFIG([MIN-VERSION]) 3234 # ---------------------------------- 3235 # PKG_PROG_PKG_CONFIG 3236 3237 # PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND]) 3238 # 3239 # Check to see whether a particular set of modules exists. Similar 3240 # to PKG_CHECK_MODULES(), but does not set variables or print errors. 3241 # 3242 # 3243 # Similar to PKG_CHECK_MODULES, make sure that the first instance of 3244 # this or PKG_CHECK_MODULES is called, or make sure to call 3245 # PKG_CHECK_EXISTS manually 3246 # -------------------------------------------------------------- 3247 3248 3249 3250 # _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES]) 3251 # --------------------------------------------- 3252 # _PKG_CONFIG 3253 3254 # _PKG_SHORT_ERRORS_SUPPORTED 3255 # ----------------------------- 3256 # _PKG_SHORT_ERRORS_SUPPORTED 3257 3258 3259 # PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND], 3260 # [ACTION-IF-NOT-FOUND]) 3261 # 3262 # 3263 # Note that if there is a possibility the first call to 3264 # PKG_CHECK_MODULES might not happen, you should be sure to include an 3265 # explicit call to PKG_PROG_PKG_CONFIG in your configure.ac 3266 # 3267 # 3268 # -------------------------------------------------------------- 3269 # PKG_CHECK_MODULES 3270 3271 3272 # Include these first... 3273 # 3274 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3275 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3276 # 3277 # This code is free software; you can redistribute it and/or modify it 3278 # under the terms of the GNU General Public License version 2 only, as 3279 # published by the Free Software Foundation. Oracle designates this 3280 # particular file as subject to the "Classpath" exception as provided 3281 # by Oracle in the LICENSE file that accompanied this code. 3282 # 3283 # This code is distributed in the hope that it will be useful, but WITHOUT 3284 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3285 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3286 # version 2 for more details (a copy is included in the LICENSE file that 3287 # accompanied this code). 3288 # 3289 # You should have received a copy of the GNU General Public License version 3290 # 2 along with this work; if not, write to the Free Software Foundation, 3291 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3292 # 3293 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3294 # or visit www.oracle.com if you need additional information or have any 3295 # questions. 3296 # 3297 3298 # Test if $1 is a valid argument to $3 (often is $JAVA passed as $3) 3299 # If so, then append $1 to $2 \ 3300 # Also set JVM_ARG_OK to true/false depending on outcome. 3301 3302 3303 # Appends a string to a path variable, only adding the : when needed. 3304 3305 3306 # This will make sure the given variable points to a full and proper 3307 # path. This means: 3308 # 1) There will be no spaces in the path. On posix platforms, 3309 # spaces in the path will result in an error. On Windows, 3310 # the path will be rewritten using short-style to be space-free. 3311 # 2) The path will be absolute, and it will be in unix-style (on 3312 # cygwin). 3313 # $1: The name of the variable to fix 3314 3315 3316 # This will make sure the given variable points to a executable 3317 # with a full and proper path. This means: 3318 # 1) There will be no spaces in the path. On posix platforms, 3319 # spaces in the path will result in an error. On Windows, 3320 # the path will be rewritten using short-style to be space-free. 3321 # 2) The path will be absolute, and it will be in unix-style (on 3322 # cygwin). 3323 # Any arguments given to the executable is preserved. 3324 # If the input variable does not have a directory specification, then 3325 # it need to be in the PATH. 3326 # $1: The name of the variable to fix 3327 3328 3329 3330 3331 # Register a --with argument but mark it as deprecated 3332 # $1: The name of the with argument to deprecate, not including --with- 3333 3334 3335 # Register a --enable argument but mark it as deprecated 3336 # $1: The name of the with argument to deprecate, not including --enable- 3337 # $2: The name of the argument to deprecate, in shell variable style (i.e. with _ instead of -) 3338 3339 3340 3341 3342 # Test that variable $1 denoting a program is not empty. If empty, exit with an error. 3343 # $1: variable to check 3344 3345 3346 # Check that there are no unprocessed overridden variables left. 3347 # If so, they are an incorrect argument and we will exit with an error. 3348 3349 3350 # Setup a tool for the given variable. If correctly specified by the user, 3351 # use that value, otherwise search for the tool using the supplied code snippet. 3352 # $1: variable to set 3353 # $2: code snippet to call to look for the tool 3354 3355 3356 # Call BASIC_SETUP_TOOL with AC_PATH_PROGS to locate the tool 3357 # $1: variable to set 3358 # $2: executable name (or list of names) to look for 3359 3360 3361 # Call BASIC_SETUP_TOOL with AC_CHECK_TOOLS to locate the tool 3362 # $1: variable to set 3363 # $2: executable name (or list of names) to look for 3364 3365 3366 # Like BASIC_PATH_PROGS but fails if no tool was found. 3367 # $1: variable to set 3368 # $2: executable name (or list of names) to look for 3369 3370 3371 # Like BASIC_SETUP_TOOL but fails if no tool was found. 3372 # $1: variable to set 3373 # $2: autoconf macro to call to look for the special tool 3374 3375 3376 # Setup the most fundamental tools that relies on not much else to set up, 3377 # but is used by much of the early bootstrap code. 3378 3379 3380 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3381 3382 3383 3384 3385 3386 3387 3388 #%%% Simple tools %%% 3389 3390 # Check if we have found a usable version of make 3391 # $1: the path to a potential make binary (or empty) 3392 # $2: the description on how we found this 3393 3394 3395 # Goes looking for a usable version of GNU make. 3396 3397 3398 3399 3400 3401 3402 # Check if build directory is on local disk. If not possible to determine, 3403 # we prefer to claim it's local. 3404 # Argument 1: directory to test 3405 # Argument 2: what to do if it is on local disk 3406 # Argument 3: what to do otherwise (remote disk or failure) 3407 3408 3409 # Check that source files have basic read permissions set. This might 3410 # not be the case in cygwin in certain conditions. 3411 3412 3413 3414 3415 # 3416 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3417 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3418 # 3419 # This code is free software; you can redistribute it and/or modify it 3420 # under the terms of the GNU General Public License version 2 only, as 3421 # published by the Free Software Foundation. Oracle designates this 3422 # particular file as subject to the "Classpath" exception as provided 3423 # by Oracle in the LICENSE file that accompanied this code. 3424 # 3425 # This code is distributed in the hope that it will be useful, but WITHOUT 3426 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3427 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3428 # version 2 for more details (a copy is included in the LICENSE file that 3429 # accompanied this code). 3430 # 3431 # You should have received a copy of the GNU General Public License version 3432 # 2 along with this work; if not, write to the Free Software Foundation, 3433 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3434 # 3435 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3436 # or visit www.oracle.com if you need additional information or have any 3437 # questions. 3438 # 3439 3440 3441 3442 3443 3444 # Helper function which possibly converts a path using DOS-style short mode. 3445 # If so, the updated path is stored in $new_path. 3446 # $1: The path to check 3447 3448 3449 # Helper function which possibly converts a path using DOS-style short mode. 3450 # If so, the updated path is stored in $new_path. 3451 # $1: The path to check 3452 3453 3454 # FIXME: The BASIC_FIXUP_*_CYGWIN/MSYS is most likely too convoluted 3455 # and could probably be heavily simplified. However, all changes in this 3456 # area tend to need lot of testing in different scenarios, and in lack of 3457 # proper unit testing, cleaning this up has not been deemed worth the effort 3458 # at the moment. 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 # Setup basic configuration paths, and platform-specific stuff related to PATHs. 3469 3470 3471 3472 3473 # 3474 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3475 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3476 # 3477 # This code is free software; you can redistribute it and/or modify it 3478 # under the terms of the GNU General Public License version 2 only, as 3479 # published by the Free Software Foundation. Oracle designates this 3480 # particular file as subject to the "Classpath" exception as provided 3481 # by Oracle in the LICENSE file that accompanied this code. 3482 # 3483 # This code is distributed in the hope that it will be useful, but WITHOUT 3484 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3485 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3486 # version 2 for more details (a copy is included in the LICENSE file that 3487 # accompanied this code). 3488 # 3489 # You should have received a copy of the GNU General Public License version 3490 # 2 along with this work; if not, write to the Free Software Foundation, 3491 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3492 # 3493 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3494 # or visit www.oracle.com if you need additional information or have any 3495 # questions. 3496 # 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 # ... then the rest 3509 # 3510 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 3511 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3512 # 3513 # This code is free software; you can redistribute it and/or modify it 3514 # under the terms of the GNU General Public License version 2 only, as 3515 # published by the Free Software Foundation. Oracle designates this 3516 # particular file as subject to the "Classpath" exception as provided 3517 # by Oracle in the LICENSE file that accompanied this code. 3518 # 3519 # This code is distributed in the hope that it will be useful, but WITHOUT 3520 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3521 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3522 # version 2 for more details (a copy is included in the LICENSE file that 3523 # accompanied this code). 3524 # 3525 # You should have received a copy of the GNU General Public License version 3526 # 2 along with this work; if not, write to the Free Software Foundation, 3527 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3528 # 3529 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3530 # or visit www.oracle.com if you need additional information or have any 3531 # questions. 3532 # 3533 3534 # Execute the check given as argument, and verify the result 3535 # If the Boot JDK was previously found, do nothing 3536 # $1 A command line (typically autoconf macro) to execute 3537 3538 3539 # Test: Is bootjdk explicitely set by command line arguments? 3540 3541 3542 # Test: Is bootjdk available from builddeps? 3543 3544 3545 # Test: Is $JAVA_HOME set? 3546 3547 3548 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 3549 3550 3551 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 3552 3553 3554 # Look for a jdk in the given path. If there are multiple, try to select the newest. 3555 # If found, set BOOT_JDK and BOOT_JDK_FOUND. 3556 # $1 = Path to directory containing jdk installations. 3557 # $2 = String to append to the found JDK directory to get the proper JDK home 3558 3559 3560 # Call BOOTJDK_FIND_BEST_JDK_IN_DIRECTORY, but use the given 3561 # environmental variable as base for where to look. 3562 # $1 Name of an environmal variable, assumed to point to the Program Files directory. 3563 3564 3565 # Test: Is there a JDK installed in default, well-known locations? 3566 3567 3568 # Check that a command-line tool in the Boot JDK is correct 3569 # $1 = name of variable to assign 3570 # $2 = name of binary 3571 3572 3573 ############################################################################### 3574 # 3575 # We need a Boot JDK to bootstrap the build. 3576 # 3577 3578 3579 3580 3581 3582 # 3583 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3584 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3585 # 3586 # This code is free software; you can redistribute it and/or modify it 3587 # under the terms of the GNU General Public License version 2 only, as 3588 # published by the Free Software Foundation. Oracle designates this 3589 # particular file as subject to the "Classpath" exception as provided 3590 # by Oracle in the LICENSE file that accompanied this code. 3591 # 3592 # This code is distributed in the hope that it will be useful, but WITHOUT 3593 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3594 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3595 # version 2 for more details (a copy is included in the LICENSE file that 3596 # accompanied this code). 3597 # 3598 # You should have received a copy of the GNU General Public License version 3599 # 2 along with this work; if not, write to the Free Software Foundation, 3600 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3601 # 3602 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3603 # or visit www.oracle.com if you need additional information or have any 3604 # questions. 3605 # 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 # 3627 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3628 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3629 # 3630 # This code is free software; you can redistribute it and/or modify it 3631 # under the terms of the GNU General Public License version 2 only, as 3632 # published by the Free Software Foundation. Oracle designates this 3633 # particular file as subject to the "Classpath" exception as provided 3634 # by Oracle in the LICENSE file that accompanied this code. 3635 # 3636 # This code is distributed in the hope that it will be useful, but WITHOUT 3637 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3638 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3639 # version 2 for more details (a copy is included in the LICENSE file that 3640 # accompanied this code). 3641 # 3642 # You should have received a copy of the GNU General Public License version 3643 # 2 along with this work; if not, write to the Free Software Foundation, 3644 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3645 # 3646 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3647 # or visit www.oracle.com if you need additional information or have any 3648 # questions. 3649 # 3650 3651 3652 3653 3654 3655 # Documentation on common flags used for solstudio in HIGHEST. 3656 # 3657 # WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be 3658 # done with care, there are some assumptions below that need to 3659 # be understood about the use of pointers, and IEEE behavior. 3660 # 3661 # -fns: Use non-standard floating point mode (not IEEE 754) 3662 # -fsimple: Do some simplification of floating point arithmetic (not IEEE 754) 3663 # -fsingle: Use single precision floating point with 'float' 3664 # -xalias_level=basic: Assume memory references via basic pointer types do not alias 3665 # (Source with excessing pointer casting and data access with mixed 3666 # pointer types are not recommended) 3667 # -xbuiltin=%all: Use intrinsic or inline versions for math/std functions 3668 # (If you expect perfect errno behavior, do not use this) 3669 # -xdepend: Loop data dependency optimizations (need -xO3 or higher) 3670 # -xrestrict: Pointer parameters to functions do not overlap 3671 # (Similar to -xalias_level=basic usage, but less obvious sometimes. 3672 # If you pass in multiple pointers to the same data, do not use this) 3673 # -xlibmil: Inline some library routines 3674 # (If you expect perfect errno behavior, do not use this) 3675 # -xlibmopt: Use optimized math routines (CURRENTLY DISABLED) 3676 # (If you expect perfect errno behavior, do not use this) 3677 # Can cause undefined external on Solaris 8 X86 on __sincos, removing for now 3678 3679 # FIXME: this will never happen since sparc != sparcv9, ie 32 bit, which we don't build anymore. 3680 # Bug? 3681 #if test "x$OPENJDK_TARGET_CPU" = xsparc; then 3682 # CFLAGS_JDK="${CFLAGS_JDK} -xmemalign=4s" 3683 # CXXFLAGS_JDK="${CXXFLAGS_JDK} -xmemalign=4s" 3684 #fi 3685 3686 3687 3688 3689 3690 3691 # FLAGS_C_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3692 # [RUN-IF-FALSE]) 3693 # ------------------------------------------------------------ 3694 # Check that the C compiler supports an argument 3695 3696 3697 # FLAGS_CXX_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3698 # [RUN-IF-FALSE]) 3699 # ------------------------------------------------------------ 3700 # Check that the C++ compiler supports an argument 3701 3702 3703 # FLAGS_COMPILER_CHECK_ARGUMENTS([ARGUMENT], [RUN-IF-TRUE], 3704 # [RUN-IF-FALSE]) 3705 # ------------------------------------------------------------ 3706 # Check that the C and C++ compilers support an argument 3707 3708 3709 3710 3711 3712 3713 3714 # 3715 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3716 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3717 # 3718 # This code is free software; you can redistribute it and/or modify it 3719 # under the terms of the GNU General Public License version 2 only, as 3720 # published by the Free Software Foundation. Oracle designates this 3721 # particular file as subject to the "Classpath" exception as provided 3722 # by Oracle in the LICENSE file that accompanied this code. 3723 # 3724 # This code is distributed in the hope that it will be useful, but WITHOUT 3725 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3726 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3727 # version 2 for more details (a copy is included in the LICENSE file that 3728 # accompanied this code). 3729 # 3730 # You should have received a copy of the GNU General Public License version 3731 # 2 along with this work; if not, write to the Free Software Foundation, 3732 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3733 # 3734 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3735 # or visit www.oracle.com if you need additional information or have any 3736 # questions. 3737 # 3738 3739 3740 3741 3742 3743 cygwin_help() { 3744 case $1 in 3745 unzip) 3746 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P unzip )" 3747 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3748 ;; 3749 zip) 3750 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P zip )" 3751 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3752 ;; 3753 make) 3754 PKGHANDLER_COMMAND="( cd <location of cygwin setup.exe> && cmd /c setup -q -P make )" 3755 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 3756 ;; 3757 freetype) 3758 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 3759 HELP_MSG="To install freetype, run: 3760 wget \"http://gnuwin32.sourceforge.net/downlinks/freetype.php\" -O /tmp/freetype-setup.exe 3761 chmod +x /tmp/freetype-setup.exe 3762 /tmp/freetype-setup.exe 3763 Follow GUI prompts, and install to default directory \"C:\Program Files (x86)\GnuWin32\". 3764 After installation, locate lib/libfreetype.dll.a and make a copy with the name freetype.dll." 3765 else 3766 HELP_MSG="You need to build a 64-bit version of freetype. 3767 This is not readily available. 3768 You can find source code and build instructions on 3769 http://www.freetype.org/ 3770 If you put the resulting build in \"C:\Program Files\GnuWin32\", it will be found automatically." 3771 fi 3772 ;; 3773 esac 3774 } 3775 3776 msys_help() { 3777 PKGHANDLER_COMMAND="" 3778 } 3779 3780 apt_help() { 3781 case $1 in 3782 devkit) 3783 PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;; 3784 openjdk) 3785 PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;; 3786 alsa) 3787 PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;; 3788 cups) 3789 PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;; 3790 freetype) 3791 PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;; 3792 pulse) 3793 PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;; 3794 x11) 3795 PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev libxt-dev" ;; 3796 ccache) 3797 PKGHANDLER_COMMAND="sudo apt-get install ccache" ;; 3798 esac 3799 } 3800 3801 yum_help() { 3802 case $1 in 3803 devkit) 3804 PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;; 3805 openjdk) 3806 PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;; 3807 alsa) 3808 PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;; 3809 cups) 3810 PKGHANDLER_COMMAND="sudo yum install cups-devel" ;; 3811 freetype) 3812 PKGHANDLER_COMMAND="sudo yum install freetype-devel" ;; 3813 pulse) 3814 PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;; 3815 x11) 3816 PKGHANDLER_COMMAND="sudo yum install libXtst-devel libXt-devel libXrender-devel" ;; 3817 ccache) 3818 PKGHANDLER_COMMAND="sudo yum install ccache" ;; 3819 esac 3820 } 3821 3822 port_help() { 3823 PKGHANDLER_COMMAND="" 3824 } 3825 3826 pkgutil_help() { 3827 PKGHANDLER_COMMAND="" 3828 } 3829 3830 pkgadd_help() { 3831 PKGHANDLER_COMMAND="" 3832 } 3833 3834 # This function will check if we're called from the "configure" wrapper while 3835 # printing --help. If so, we will print out additional information that can 3836 # only be extracted within the autoconf script, and then exit. This must be 3837 # called at the very beginning in configure.ac. 3838 3839 3840 3841 3842 # 3843 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3844 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3845 # 3846 # This code is free software; you can redistribute it and/or modify it 3847 # under the terms of the GNU General Public License version 2 only, as 3848 # published by the Free Software Foundation. Oracle designates this 3849 # particular file as subject to the "Classpath" exception as provided 3850 # by Oracle in the LICENSE file that accompanied this code. 3851 # 3852 # This code is distributed in the hope that it will be useful, but WITHOUT 3853 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3854 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3855 # version 2 for more details (a copy is included in the LICENSE file that 3856 # accompanied this code). 3857 # 3858 # You should have received a copy of the GNU General Public License version 3859 # 2 along with this work; if not, write to the Free Software Foundation, 3860 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3861 # 3862 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3863 # or visit www.oracle.com if you need additional information or have any 3864 # questions. 3865 # 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 ############################################################################### 3877 # 3878 # Should we build only OpenJDK even if closed sources are present? 3879 # 3880 3881 3882 3883 3884 ############################################################################### 3885 # 3886 # Setup version numbers 3887 # 3888 3889 3890 3891 3892 3893 3894 # Support for customization of the build process. Some build files 3895 # will include counterparts from this location, if they exist. This allows 3896 # for a degree of customization of the build targets and the rules/recipes 3897 # to create them 3898 3899 # Check whether --with-custom-make-dir was given. 3900 if test "${with_custom_make_dir+set}" = set; then : 3901 withval=$with_custom_make_dir; CUSTOM_MAKE_DIR=$with_custom_make_dir 3902 fi 3903 3904 3905 3906 # 3907 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 3908 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3909 # 3910 # This code is free software; you can redistribute it and/or modify it 3911 # under the terms of the GNU General Public License version 2 only, as 3912 # published by the Free Software Foundation. Oracle designates this 3913 # particular file as subject to the "Classpath" exception as provided 3914 # by Oracle in the LICENSE file that accompanied this code. 3915 # 3916 # This code is distributed in the hope that it will be useful, but WITHOUT 3917 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3918 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3919 # version 2 for more details (a copy is included in the LICENSE file that 3920 # accompanied this code). 3921 # 3922 # You should have received a copy of the GNU General Public License version 3923 # 2 along with this work; if not, write to the Free Software Foundation, 3924 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3925 # 3926 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3927 # or visit www.oracle.com if you need additional information or have any 3928 # questions. 3929 # 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 # 3950 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved. 3951 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 3952 # 3953 # This code is free software; you can redistribute it and/or modify it 3954 # under the terms of the GNU General Public License version 2 only, as 3955 # published by the Free Software Foundation. Oracle designates this 3956 # particular file as subject to the "Classpath" exception as provided 3957 # by Oracle in the LICENSE file that accompanied this code. 3958 # 3959 # This code is distributed in the hope that it will be useful, but WITHOUT 3960 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 3961 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 3962 # version 2 for more details (a copy is included in the LICENSE file that 3963 # accompanied this code). 3964 # 3965 # You should have received a copy of the GNU General Public License version 3966 # 2 along with this work; if not, write to the Free Software Foundation, 3967 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 3968 # 3969 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 3970 # or visit www.oracle.com if you need additional information or have any 3971 # questions. 3972 # 3973 3974 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3975 # Converts autoconf style CPU name to OpenJDK style, into 3976 # VAR_CPU, VAR_CPU_ARCH, VAR_CPU_BITS and VAR_CPU_ENDIAN. 3977 3978 3979 # Support macro for PLATFORM_EXTRACT_TARGET_AND_BUILD. 3980 # Converts autoconf style OS name to OpenJDK style, into 3981 # VAR_OS and VAR_OS_API. 3982 3983 3984 # Expects $host_os $host_cpu $build_os and $build_cpu 3985 # and $with_target_bits to have been setup! 3986 # 3987 # Translate the standard triplet(quadruplet) definition 3988 # of the target/build system into OPENJDK_TARGET_OS, OPENJDK_TARGET_CPU, 3989 # OPENJDK_BUILD_OS, etc. 3990 3991 3992 # Check if a reduced build (32-bit on 64-bit platforms) is requested, and modify behaviour 3993 # accordingly. Must be done after setting up build and target system, but before 3994 # doing anything else with these values. 3995 3996 3997 # Setup the legacy variables, for controlling the old makefiles. 3998 # 3999 4000 4001 4002 4003 #%%% Build and target systems %%% 4004 4005 4006 4007 4008 # Support macro for PLATFORM_SETUP_OPENJDK_TARGET_BITS. 4009 # Add -mX to various FLAGS variables. 4010 4011 4012 4013 4014 4015 4016 # 4017 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4018 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4019 # 4020 # This code is free software; you can redistribute it and/or modify it 4021 # under the terms of the GNU General Public License version 2 only, as 4022 # published by the Free Software Foundation. Oracle designates this 4023 # particular file as subject to the "Classpath" exception as provided 4024 # by Oracle in the LICENSE file that accompanied this code. 4025 # 4026 # This code is distributed in the hope that it will be useful, but WITHOUT 4027 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4028 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4029 # version 2 for more details (a copy is included in the LICENSE file that 4030 # accompanied this code). 4031 # 4032 # You should have received a copy of the GNU General Public License version 4033 # 2 along with this work; if not, write to the Free Software Foundation, 4034 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4035 # 4036 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4037 # or visit www.oracle.com if you need additional information or have any 4038 # questions. 4039 # 4040 4041 4042 4043 4044 4045 4046 4047 4048 # 4049 # Copyright (c) 2011, 2018, Oracle and/or its affiliates. All rights reserved. 4050 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4051 # 4052 # This code is free software; you can redistribute it and/or modify it 4053 # under the terms of the GNU General Public License version 2 only, as 4054 # published by the Free Software Foundation. Oracle designates this 4055 # particular file as subject to the "Classpath" exception as provided 4056 # by Oracle in the LICENSE file that accompanied this code. 4057 # 4058 # This code is distributed in the hope that it will be useful, but WITHOUT 4059 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4060 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4061 # version 2 for more details (a copy is included in the LICENSE file that 4062 # accompanied this code). 4063 # 4064 # You should have received a copy of the GNU General Public License version 4065 # 2 along with this work; if not, write to the Free Software Foundation, 4066 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4067 # 4068 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4069 # or visit www.oracle.com if you need additional information or have any 4070 # questions. 4071 # 4072 4073 ######################################################################## 4074 # This file is responsible for detecting, verifying and setting up the 4075 # toolchain, i.e. the compiler, linker and related utilities. It will setup 4076 # proper paths to the binaries, but it will not setup any flags. 4077 # 4078 # The binaries used is determined by the toolchain type, which is the family of 4079 # compilers and related tools that are used. 4080 ######################################################################## 4081 4082 4083 # All valid toolchains, regardless of platform (used by help.m4) 4084 VALID_TOOLCHAINS_all="gcc clang solstudio xlc microsoft" 4085 4086 # These toolchains are valid on different platforms 4087 VALID_TOOLCHAINS_linux="gcc clang" 4088 VALID_TOOLCHAINS_solaris="solstudio" 4089 VALID_TOOLCHAINS_macosx="gcc clang" 4090 VALID_TOOLCHAINS_aix="xlc" 4091 VALID_TOOLCHAINS_windows="microsoft" 4092 4093 # Toolchain descriptions 4094 TOOLCHAIN_DESCRIPTION_clang="clang/LLVM" 4095 TOOLCHAIN_DESCRIPTION_gcc="GNU Compiler Collection" 4096 TOOLCHAIN_DESCRIPTION_microsoft="Microsoft Visual Studio" 4097 TOOLCHAIN_DESCRIPTION_solstudio="Oracle Solaris Studio" 4098 TOOLCHAIN_DESCRIPTION_xlc="IBM XL C/C++" 4099 4100 # Prepare the system so that TOOLCHAIN_CHECK_COMPILER_VERSION can be called. 4101 # Must have CC_VERSION_NUMBER and CXX_VERSION_NUMBER. 4102 # $1 - optional variable prefix for compiler and version variables (BUILD_) 4103 # $2 - optional variable prefix for comparable variable (OPENJDK_BUILD_) 4104 4105 4106 # Check if the configured compiler (C and C++) is of a specific version or 4107 # newer. TOOLCHAIN_PREPARE_FOR_VERSION_COMPARISONS must have been called before. 4108 # 4109 # Arguments: 4110 # $1: The version string to check against the found version 4111 # $2: block to run if the compiler is at least this version (>=) 4112 # $3: block to run if the compiler is older than this version (<) 4113 4114 4115 4116 # Setup a number of variables describing how native output files are 4117 # named on this platform/toolchain. 4118 4119 4120 # Determine which toolchain type to use, and make sure it is valid for this 4121 # platform. Setup various information about the selected toolchain. 4122 4123 4124 # Before we start detecting the toolchain executables, we might need some 4125 # special setup, e.g. additional paths etc. 4126 4127 4128 # Restore path, etc 4129 4130 4131 # Check if a compiler is of the toolchain type we expect, and save the version 4132 # information from it. If the compiler does not match the expected type, 4133 # this function will abort using AC_MSG_ERROR. If it matches, the version will 4134 # be stored in CC_VERSION_NUMBER/CXX_VERSION_NUMBER (as a dotted number), and 4135 # the full version string in CC_VERSION_STRING/CXX_VERSION_STRING. 4136 # 4137 # $1 = compiler to test (CC or CXX) 4138 # $2 = human readable name of compiler (C or C++) 4139 4140 4141 4142 # Try to locate the given C or C++ compiler in the path, or otherwise. 4143 # 4144 # $1 = compiler to test (CC or CXX) 4145 # $2 = human readable name of compiler (C or C++) 4146 # $3 = list of compiler names to search for 4147 4148 4149 # Detect the core components of the toolchain, i.e. the compilers (CC and CXX), 4150 # preprocessor (CPP and CXXCPP), the linker (LD), the assembler (AS) and the 4151 # archiver (AR). Verify that the compilers are correct according to the 4152 # toolchain type. 4153 4154 4155 # Setup additional tools that is considered a part of the toolchain, but not the 4156 # core part. Many of these are highly platform-specific and do not exist, 4157 # and/or are not needed on all platforms. 4158 4159 4160 # Setup the build tools (i.e, the compiler and linker used to build programs 4161 # that should be run on the build platform, not the target platform, as a build 4162 # helper). Since the non-cross-compile case uses the normal, target compilers 4163 # for this, we can only do this after these have been setup. 4164 4165 4166 # Setup legacy variables that are still needed as alternative ways to refer to 4167 # parts of the toolchain. 4168 4169 4170 # Do some additional checks on the detected tools. 4171 4172 4173 # Setup the JTReg Regression Test Harness. 4174 4175 4176 4177 # 4178 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. 4179 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4180 # 4181 # This code is free software; you can redistribute it and/or modify it 4182 # under the terms of the GNU General Public License version 2 only, as 4183 # published by the Free Software Foundation. Oracle designates this 4184 # particular file as subject to the "Classpath" exception as provided 4185 # by Oracle in the LICENSE file that accompanied this code. 4186 # 4187 # This code is distributed in the hope that it will be useful, but WITHOUT 4188 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 4189 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 4190 # version 2 for more details (a copy is included in the LICENSE file that 4191 # accompanied this code). 4192 # 4193 # You should have received a copy of the GNU General Public License version 4194 # 2 along with this work; if not, write to the Free Software Foundation, 4195 # Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 4196 # 4197 # Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 4198 # or visit www.oracle.com if you need additional information or have any 4199 # questions. 4200 # 4201 4202 4203 4204 4205 4206 4207 4208 # Check if the VS env variables were setup prior to running configure. 4209 # If not, then find vcvarsall.bat and run it automatically, and integrate 4210 # the set env variables into the spec file. 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 # This line needs to be here, verbatim, after all includes and the dummy hook 4223 # definitions. It is replaced with custom functionality when building 4224 # custom sources. 4225 #CUSTOM_AUTOCONF_INCLUDE 4226 4227 # Do not change or remove the following line, it is needed for consistency checks: 4228 DATE_WHEN_GENERATED=1523526861 4229 4230 ############################################################################### 4231 # 4232 # Initialization / Boot-strapping 4233 # 4234 # The bootstrapping process needs to solve the "chicken or the egg" problem, 4235 # thus it jumps back and forth, each time gaining something needed later on. 4236 # 4237 ############################################################################### 4238 4239 # If we are requested to print additional help, do that and then exit. 4240 # This must be the very first call. 4241 4242 if test "x$CONFIGURE_PRINT_TOOLCHAIN_LIST" != x; then 4243 $PRINTF "The following toolchains are available as arguments to --with-toolchain-type.\n" 4244 $PRINTF "Which are valid to use depends on the build platform.\n" 4245 for toolchain in $VALID_TOOLCHAINS_all; do 4246 # Use indirect variable referencing 4247 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 4248 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 4249 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 4250 done 4251 4252 # And now exit directly 4253 exit 0 4254 fi 4255 4256 4257 # Basic initialization that must happen first of all in the normal process. 4258 4259 # Save the original command line. This is passed to us by the wrapper configure script. 4260 4261 DATE_WHEN_CONFIGURED=`LANG=C date` 4262 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration created at $DATE_WHEN_CONFIGURED." >&5 4264 $as_echo "$as_me: Configuration created at $DATE_WHEN_CONFIGURED." >&6;} 4265 { $as_echo "$as_me:${as_lineno-$LINENO}: configure script generated at timestamp $DATE_WHEN_GENERATED." >&5 4266 $as_echo "$as_me: configure script generated at timestamp $DATE_WHEN_GENERATED." >&6;} 4267 4268 4269 # Start with tools that do not need have cross compilation support 4270 # and can be expected to be found in the default PATH. These tools are 4271 # used by configure. Nor are these tools expected to be found in the 4272 # devkit from the builddeps server either, since they are 4273 # needed to download the devkit. 4274 4275 # First are all the simple required tools. 4276 4277 4278 4279 # Publish this variable in the help. 4280 4281 4282 if test "x$BASENAME" = x; then 4283 # The variable is not set by user, try to locate tool using the code snippet 4284 for ac_prog in basename 4285 do 4286 # Extract the first word of "$ac_prog", so it can be a program name with args. 4287 set dummy $ac_prog; ac_word=$2 4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4289 $as_echo_n "checking for $ac_word... " >&6; } 4290 if ${ac_cv_path_BASENAME+:} false; then : 4291 $as_echo_n "(cached) " >&6 4292 else 4293 case $BASENAME in 4294 [\\/]* | ?:[\\/]*) 4295 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4296 ;; 4297 *) 4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4299 for as_dir in $PATH 4300 do 4301 IFS=$as_save_IFS 4302 test -z "$as_dir" && as_dir=. 4303 for ac_exec_ext in '' $ac_executable_extensions; do 4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4305 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4307 break 2 4308 fi 4309 done 4310 done 4311 IFS=$as_save_IFS 4312 4313 ;; 4314 esac 4315 fi 4316 BASENAME=$ac_cv_path_BASENAME 4317 if test -n "$BASENAME"; then 4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4319 $as_echo "$BASENAME" >&6; } 4320 else 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4322 $as_echo "no" >&6; } 4323 fi 4324 4325 4326 test -n "$BASENAME" && break 4327 done 4328 4329 else 4330 # The variable is set, but is it from the command line or the environment? 4331 4332 # Try to remove the string !BASENAME! from our list. 4333 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASENAME!/} 4334 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4335 # If it failed, the variable was not from the command line. Ignore it, 4336 # but warn the user (except for BASH, which is always set by the calling BASH). 4337 if test "xBASENAME" != xBASH; then 4338 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&5 4339 $as_echo "$as_me: WARNING: Ignoring value of BASENAME from the environment. Use command line variables instead." >&2;} 4340 fi 4341 # Try to locate tool using the code snippet 4342 for ac_prog in basename 4343 do 4344 # Extract the first word of "$ac_prog", so it can be a program name with args. 4345 set dummy $ac_prog; ac_word=$2 4346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4347 $as_echo_n "checking for $ac_word... " >&6; } 4348 if ${ac_cv_path_BASENAME+:} false; then : 4349 $as_echo_n "(cached) " >&6 4350 else 4351 case $BASENAME in 4352 [\\/]* | ?:[\\/]*) 4353 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4354 ;; 4355 *) 4356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4357 for as_dir in $PATH 4358 do 4359 IFS=$as_save_IFS 4360 test -z "$as_dir" && as_dir=. 4361 for ac_exec_ext in '' $ac_executable_extensions; do 4362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4363 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4365 break 2 4366 fi 4367 done 4368 done 4369 IFS=$as_save_IFS 4370 4371 ;; 4372 esac 4373 fi 4374 BASENAME=$ac_cv_path_BASENAME 4375 if test -n "$BASENAME"; then 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4377 $as_echo "$BASENAME" >&6; } 4378 else 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4380 $as_echo "no" >&6; } 4381 fi 4382 4383 4384 test -n "$BASENAME" && break 4385 done 4386 4387 else 4388 # If it succeeded, then it was overridden by the user. We will use it 4389 # for the tool. 4390 4391 # First remove it from the list of overridden variables, so we can test 4392 # for unknown variables in the end. 4393 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4394 4395 # Check if the provided tool contains a complete path. 4396 tool_specified="$BASENAME" 4397 tool_basename="${tool_specified##*/}" 4398 if test "x$tool_basename" = "x$tool_specified"; then 4399 # A command without a complete path is provided, search $PATH. 4400 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASENAME=$tool_basename" >&5 4401 $as_echo "$as_me: Will search for user supplied tool BASENAME=$tool_basename" >&6;} 4402 # Extract the first word of "$tool_basename", so it can be a program name with args. 4403 set dummy $tool_basename; ac_word=$2 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4405 $as_echo_n "checking for $ac_word... " >&6; } 4406 if ${ac_cv_path_BASENAME+:} false; then : 4407 $as_echo_n "(cached) " >&6 4408 else 4409 case $BASENAME in 4410 [\\/]* | ?:[\\/]*) 4411 ac_cv_path_BASENAME="$BASENAME" # Let the user override the test with a path. 4412 ;; 4413 *) 4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4415 for as_dir in $PATH 4416 do 4417 IFS=$as_save_IFS 4418 test -z "$as_dir" && as_dir=. 4419 for ac_exec_ext in '' $ac_executable_extensions; do 4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4421 ac_cv_path_BASENAME="$as_dir/$ac_word$ac_exec_ext" 4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4423 break 2 4424 fi 4425 done 4426 done 4427 IFS=$as_save_IFS 4428 4429 ;; 4430 esac 4431 fi 4432 BASENAME=$ac_cv_path_BASENAME 4433 if test -n "$BASENAME"; then 4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASENAME" >&5 4435 $as_echo "$BASENAME" >&6; } 4436 else 4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4438 $as_echo "no" >&6; } 4439 fi 4440 4441 4442 if test "x$BASENAME" = x; then 4443 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4444 fi 4445 else 4446 # Otherwise we believe it is a complete path. Use it as it is. 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASENAME=$tool_specified" >&5 4448 $as_echo "$as_me: Will use user supplied tool BASENAME=$tool_specified" >&6;} 4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASENAME" >&5 4450 $as_echo_n "checking for BASENAME... " >&6; } 4451 if test ! -x "$tool_specified"; then 4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4453 $as_echo "not found" >&6; } 4454 as_fn_error $? "User supplied tool BASENAME=$tool_specified does not exist or is not executable" "$LINENO" 5 4455 fi 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4457 $as_echo "$tool_specified" >&6; } 4458 fi 4459 fi 4460 fi 4461 4462 4463 4464 if test "x$BASENAME" = x; then 4465 as_fn_error $? "Could not find required tool for BASENAME" "$LINENO" 5 4466 fi 4467 4468 4469 4470 4471 4472 # Publish this variable in the help. 4473 4474 4475 if test "x$BASH" = x; then 4476 # The variable is not set by user, try to locate tool using the code snippet 4477 for ac_prog in bash 4478 do 4479 # Extract the first word of "$ac_prog", so it can be a program name with args. 4480 set dummy $ac_prog; ac_word=$2 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4482 $as_echo_n "checking for $ac_word... " >&6; } 4483 if ${ac_cv_path_BASH+:} false; then : 4484 $as_echo_n "(cached) " >&6 4485 else 4486 case $BASH in 4487 [\\/]* | ?:[\\/]*) 4488 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4489 ;; 4490 *) 4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492 for as_dir in $PATH 4493 do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4498 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502 done 4503 done 4504 IFS=$as_save_IFS 4505 4506 ;; 4507 esac 4508 fi 4509 BASH=$ac_cv_path_BASH 4510 if test -n "$BASH"; then 4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4512 $as_echo "$BASH" >&6; } 4513 else 4514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4515 $as_echo "no" >&6; } 4516 fi 4517 4518 4519 test -n "$BASH" && break 4520 done 4521 4522 else 4523 # The variable is set, but is it from the command line or the environment? 4524 4525 # Try to remove the string !BASH! from our list. 4526 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BASH!/} 4527 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4528 # If it failed, the variable was not from the command line. Ignore it, 4529 # but warn the user (except for BASH, which is always set by the calling BASH). 4530 if test "xBASH" != xBASH; then 4531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&5 4532 $as_echo "$as_me: WARNING: Ignoring value of BASH from the environment. Use command line variables instead." >&2;} 4533 fi 4534 # Try to locate tool using the code snippet 4535 for ac_prog in bash 4536 do 4537 # Extract the first word of "$ac_prog", so it can be a program name with args. 4538 set dummy $ac_prog; ac_word=$2 4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4540 $as_echo_n "checking for $ac_word... " >&6; } 4541 if ${ac_cv_path_BASH+:} false; then : 4542 $as_echo_n "(cached) " >&6 4543 else 4544 case $BASH in 4545 [\\/]* | ?:[\\/]*) 4546 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4547 ;; 4548 *) 4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4550 for as_dir in $PATH 4551 do 4552 IFS=$as_save_IFS 4553 test -z "$as_dir" && as_dir=. 4554 for ac_exec_ext in '' $ac_executable_extensions; do 4555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4556 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4558 break 2 4559 fi 4560 done 4561 done 4562 IFS=$as_save_IFS 4563 4564 ;; 4565 esac 4566 fi 4567 BASH=$ac_cv_path_BASH 4568 if test -n "$BASH"; then 4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4570 $as_echo "$BASH" >&6; } 4571 else 4572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4573 $as_echo "no" >&6; } 4574 fi 4575 4576 4577 test -n "$BASH" && break 4578 done 4579 4580 else 4581 # If it succeeded, then it was overridden by the user. We will use it 4582 # for the tool. 4583 4584 # First remove it from the list of overridden variables, so we can test 4585 # for unknown variables in the end. 4586 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4587 4588 # Check if the provided tool contains a complete path. 4589 tool_specified="$BASH" 4590 tool_basename="${tool_specified##*/}" 4591 if test "x$tool_basename" = "x$tool_specified"; then 4592 # A command without a complete path is provided, search $PATH. 4593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BASH=$tool_basename" >&5 4594 $as_echo "$as_me: Will search for user supplied tool BASH=$tool_basename" >&6;} 4595 # Extract the first word of "$tool_basename", so it can be a program name with args. 4596 set dummy $tool_basename; ac_word=$2 4597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4598 $as_echo_n "checking for $ac_word... " >&6; } 4599 if ${ac_cv_path_BASH+:} false; then : 4600 $as_echo_n "(cached) " >&6 4601 else 4602 case $BASH in 4603 [\\/]* | ?:[\\/]*) 4604 ac_cv_path_BASH="$BASH" # Let the user override the test with a path. 4605 ;; 4606 *) 4607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4608 for as_dir in $PATH 4609 do 4610 IFS=$as_save_IFS 4611 test -z "$as_dir" && as_dir=. 4612 for ac_exec_ext in '' $ac_executable_extensions; do 4613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4614 ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" 4615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4616 break 2 4617 fi 4618 done 4619 done 4620 IFS=$as_save_IFS 4621 4622 ;; 4623 esac 4624 fi 4625 BASH=$ac_cv_path_BASH 4626 if test -n "$BASH"; then 4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BASH" >&5 4628 $as_echo "$BASH" >&6; } 4629 else 4630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4631 $as_echo "no" >&6; } 4632 fi 4633 4634 4635 if test "x$BASH" = x; then 4636 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4637 fi 4638 else 4639 # Otherwise we believe it is a complete path. Use it as it is. 4640 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BASH=$tool_specified" >&5 4641 $as_echo "$as_me: Will use user supplied tool BASH=$tool_specified" >&6;} 4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BASH" >&5 4643 $as_echo_n "checking for BASH... " >&6; } 4644 if test ! -x "$tool_specified"; then 4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4646 $as_echo "not found" >&6; } 4647 as_fn_error $? "User supplied tool BASH=$tool_specified does not exist or is not executable" "$LINENO" 5 4648 fi 4649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4650 $as_echo "$tool_specified" >&6; } 4651 fi 4652 fi 4653 fi 4654 4655 4656 4657 if test "x$BASH" = x; then 4658 as_fn_error $? "Could not find required tool for BASH" "$LINENO" 5 4659 fi 4660 4661 4662 4663 4664 4665 # Publish this variable in the help. 4666 4667 4668 if test "x$CAT" = x; then 4669 # The variable is not set by user, try to locate tool using the code snippet 4670 for ac_prog in cat 4671 do 4672 # Extract the first word of "$ac_prog", so it can be a program name with args. 4673 set dummy $ac_prog; ac_word=$2 4674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4675 $as_echo_n "checking for $ac_word... " >&6; } 4676 if ${ac_cv_path_CAT+:} false; then : 4677 $as_echo_n "(cached) " >&6 4678 else 4679 case $CAT in 4680 [\\/]* | ?:[\\/]*) 4681 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4682 ;; 4683 *) 4684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4685 for as_dir in $PATH 4686 do 4687 IFS=$as_save_IFS 4688 test -z "$as_dir" && as_dir=. 4689 for ac_exec_ext in '' $ac_executable_extensions; do 4690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4691 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4693 break 2 4694 fi 4695 done 4696 done 4697 IFS=$as_save_IFS 4698 4699 ;; 4700 esac 4701 fi 4702 CAT=$ac_cv_path_CAT 4703 if test -n "$CAT"; then 4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4705 $as_echo "$CAT" >&6; } 4706 else 4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4708 $as_echo "no" >&6; } 4709 fi 4710 4711 4712 test -n "$CAT" && break 4713 done 4714 4715 else 4716 # The variable is set, but is it from the command line or the environment? 4717 4718 # Try to remove the string !CAT! from our list. 4719 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CAT!/} 4720 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4721 # If it failed, the variable was not from the command line. Ignore it, 4722 # but warn the user (except for BASH, which is always set by the calling BASH). 4723 if test "xCAT" != xBASH; then 4724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&5 4725 $as_echo "$as_me: WARNING: Ignoring value of CAT from the environment. Use command line variables instead." >&2;} 4726 fi 4727 # Try to locate tool using the code snippet 4728 for ac_prog in cat 4729 do 4730 # Extract the first word of "$ac_prog", so it can be a program name with args. 4731 set dummy $ac_prog; ac_word=$2 4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4733 $as_echo_n "checking for $ac_word... " >&6; } 4734 if ${ac_cv_path_CAT+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736 else 4737 case $CAT in 4738 [\\/]* | ?:[\\/]*) 4739 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4740 ;; 4741 *) 4742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4743 for as_dir in $PATH 4744 do 4745 IFS=$as_save_IFS 4746 test -z "$as_dir" && as_dir=. 4747 for ac_exec_ext in '' $ac_executable_extensions; do 4748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4749 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4751 break 2 4752 fi 4753 done 4754 done 4755 IFS=$as_save_IFS 4756 4757 ;; 4758 esac 4759 fi 4760 CAT=$ac_cv_path_CAT 4761 if test -n "$CAT"; then 4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4763 $as_echo "$CAT" >&6; } 4764 else 4765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4766 $as_echo "no" >&6; } 4767 fi 4768 4769 4770 test -n "$CAT" && break 4771 done 4772 4773 else 4774 # If it succeeded, then it was overridden by the user. We will use it 4775 # for the tool. 4776 4777 # First remove it from the list of overridden variables, so we can test 4778 # for unknown variables in the end. 4779 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4780 4781 # Check if the provided tool contains a complete path. 4782 tool_specified="$CAT" 4783 tool_basename="${tool_specified##*/}" 4784 if test "x$tool_basename" = "x$tool_specified"; then 4785 # A command without a complete path is provided, search $PATH. 4786 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CAT=$tool_basename" >&5 4787 $as_echo "$as_me: Will search for user supplied tool CAT=$tool_basename" >&6;} 4788 # Extract the first word of "$tool_basename", so it can be a program name with args. 4789 set dummy $tool_basename; ac_word=$2 4790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4791 $as_echo_n "checking for $ac_word... " >&6; } 4792 if ${ac_cv_path_CAT+:} false; then : 4793 $as_echo_n "(cached) " >&6 4794 else 4795 case $CAT in 4796 [\\/]* | ?:[\\/]*) 4797 ac_cv_path_CAT="$CAT" # Let the user override the test with a path. 4798 ;; 4799 *) 4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4801 for as_dir in $PATH 4802 do 4803 IFS=$as_save_IFS 4804 test -z "$as_dir" && as_dir=. 4805 for ac_exec_ext in '' $ac_executable_extensions; do 4806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4807 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext" 4808 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4809 break 2 4810 fi 4811 done 4812 done 4813 IFS=$as_save_IFS 4814 4815 ;; 4816 esac 4817 fi 4818 CAT=$ac_cv_path_CAT 4819 if test -n "$CAT"; then 4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5 4821 $as_echo "$CAT" >&6; } 4822 else 4823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4824 $as_echo "no" >&6; } 4825 fi 4826 4827 4828 if test "x$CAT" = x; then 4829 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 4830 fi 4831 else 4832 # Otherwise we believe it is a complete path. Use it as it is. 4833 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CAT=$tool_specified" >&5 4834 $as_echo "$as_me: Will use user supplied tool CAT=$tool_specified" >&6;} 4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAT" >&5 4836 $as_echo_n "checking for CAT... " >&6; } 4837 if test ! -x "$tool_specified"; then 4838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 4839 $as_echo "not found" >&6; } 4840 as_fn_error $? "User supplied tool CAT=$tool_specified does not exist or is not executable" "$LINENO" 5 4841 fi 4842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 4843 $as_echo "$tool_specified" >&6; } 4844 fi 4845 fi 4846 fi 4847 4848 4849 4850 if test "x$CAT" = x; then 4851 as_fn_error $? "Could not find required tool for CAT" "$LINENO" 5 4852 fi 4853 4854 4855 4856 4857 4858 # Publish this variable in the help. 4859 4860 4861 if test "x$CHMOD" = x; then 4862 # The variable is not set by user, try to locate tool using the code snippet 4863 for ac_prog in chmod 4864 do 4865 # Extract the first word of "$ac_prog", so it can be a program name with args. 4866 set dummy $ac_prog; ac_word=$2 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4868 $as_echo_n "checking for $ac_word... " >&6; } 4869 if ${ac_cv_path_CHMOD+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871 else 4872 case $CHMOD in 4873 [\\/]* | ?:[\\/]*) 4874 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4875 ;; 4876 *) 4877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4878 for as_dir in $PATH 4879 do 4880 IFS=$as_save_IFS 4881 test -z "$as_dir" && as_dir=. 4882 for ac_exec_ext in '' $ac_executable_extensions; do 4883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4884 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4886 break 2 4887 fi 4888 done 4889 done 4890 IFS=$as_save_IFS 4891 4892 ;; 4893 esac 4894 fi 4895 CHMOD=$ac_cv_path_CHMOD 4896 if test -n "$CHMOD"; then 4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4898 $as_echo "$CHMOD" >&6; } 4899 else 4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4901 $as_echo "no" >&6; } 4902 fi 4903 4904 4905 test -n "$CHMOD" && break 4906 done 4907 4908 else 4909 # The variable is set, but is it from the command line or the environment? 4910 4911 # Try to remove the string !CHMOD! from our list. 4912 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CHMOD!/} 4913 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 4914 # If it failed, the variable was not from the command line. Ignore it, 4915 # but warn the user (except for BASH, which is always set by the calling BASH). 4916 if test "xCHMOD" != xBASH; then 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&5 4918 $as_echo "$as_me: WARNING: Ignoring value of CHMOD from the environment. Use command line variables instead." >&2;} 4919 fi 4920 # Try to locate tool using the code snippet 4921 for ac_prog in chmod 4922 do 4923 # Extract the first word of "$ac_prog", so it can be a program name with args. 4924 set dummy $ac_prog; ac_word=$2 4925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4926 $as_echo_n "checking for $ac_word... " >&6; } 4927 if ${ac_cv_path_CHMOD+:} false; then : 4928 $as_echo_n "(cached) " >&6 4929 else 4930 case $CHMOD in 4931 [\\/]* | ?:[\\/]*) 4932 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4933 ;; 4934 *) 4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4936 for as_dir in $PATH 4937 do 4938 IFS=$as_save_IFS 4939 test -z "$as_dir" && as_dir=. 4940 for ac_exec_ext in '' $ac_executable_extensions; do 4941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4942 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 4943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4944 break 2 4945 fi 4946 done 4947 done 4948 IFS=$as_save_IFS 4949 4950 ;; 4951 esac 4952 fi 4953 CHMOD=$ac_cv_path_CHMOD 4954 if test -n "$CHMOD"; then 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 4956 $as_echo "$CHMOD" >&6; } 4957 else 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4959 $as_echo "no" >&6; } 4960 fi 4961 4962 4963 test -n "$CHMOD" && break 4964 done 4965 4966 else 4967 # If it succeeded, then it was overridden by the user. We will use it 4968 # for the tool. 4969 4970 # First remove it from the list of overridden variables, so we can test 4971 # for unknown variables in the end. 4972 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 4973 4974 # Check if the provided tool contains a complete path. 4975 tool_specified="$CHMOD" 4976 tool_basename="${tool_specified##*/}" 4977 if test "x$tool_basename" = "x$tool_specified"; then 4978 # A command without a complete path is provided, search $PATH. 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CHMOD=$tool_basename" >&5 4980 $as_echo "$as_me: Will search for user supplied tool CHMOD=$tool_basename" >&6;} 4981 # Extract the first word of "$tool_basename", so it can be a program name with args. 4982 set dummy $tool_basename; ac_word=$2 4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4984 $as_echo_n "checking for $ac_word... " >&6; } 4985 if ${ac_cv_path_CHMOD+:} false; then : 4986 $as_echo_n "(cached) " >&6 4987 else 4988 case $CHMOD in 4989 [\\/]* | ?:[\\/]*) 4990 ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path. 4991 ;; 4992 *) 4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4994 for as_dir in $PATH 4995 do 4996 IFS=$as_save_IFS 4997 test -z "$as_dir" && as_dir=. 4998 for ac_exec_ext in '' $ac_executable_extensions; do 4999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5000 ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext" 5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5002 break 2 5003 fi 5004 done 5005 done 5006 IFS=$as_save_IFS 5007 5008 ;; 5009 esac 5010 fi 5011 CHMOD=$ac_cv_path_CHMOD 5012 if test -n "$CHMOD"; then 5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5 5014 $as_echo "$CHMOD" >&6; } 5015 else 5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5017 $as_echo "no" >&6; } 5018 fi 5019 5020 5021 if test "x$CHMOD" = x; then 5022 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5023 fi 5024 else 5025 # Otherwise we believe it is a complete path. Use it as it is. 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CHMOD=$tool_specified" >&5 5027 $as_echo "$as_me: Will use user supplied tool CHMOD=$tool_specified" >&6;} 5028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHMOD" >&5 5029 $as_echo_n "checking for CHMOD... " >&6; } 5030 if test ! -x "$tool_specified"; then 5031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5032 $as_echo "not found" >&6; } 5033 as_fn_error $? "User supplied tool CHMOD=$tool_specified does not exist or is not executable" "$LINENO" 5 5034 fi 5035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5036 $as_echo "$tool_specified" >&6; } 5037 fi 5038 fi 5039 fi 5040 5041 5042 5043 if test "x$CHMOD" = x; then 5044 as_fn_error $? "Could not find required tool for CHMOD" "$LINENO" 5 5045 fi 5046 5047 5048 5049 5050 5051 # Publish this variable in the help. 5052 5053 5054 if test "x$CMP" = x; then 5055 # The variable is not set by user, try to locate tool using the code snippet 5056 for ac_prog in cmp 5057 do 5058 # Extract the first word of "$ac_prog", so it can be a program name with args. 5059 set dummy $ac_prog; ac_word=$2 5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5061 $as_echo_n "checking for $ac_word... " >&6; } 5062 if ${ac_cv_path_CMP+:} false; then : 5063 $as_echo_n "(cached) " >&6 5064 else 5065 case $CMP in 5066 [\\/]* | ?:[\\/]*) 5067 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5068 ;; 5069 *) 5070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5071 for as_dir in $PATH 5072 do 5073 IFS=$as_save_IFS 5074 test -z "$as_dir" && as_dir=. 5075 for ac_exec_ext in '' $ac_executable_extensions; do 5076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5077 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5079 break 2 5080 fi 5081 done 5082 done 5083 IFS=$as_save_IFS 5084 5085 ;; 5086 esac 5087 fi 5088 CMP=$ac_cv_path_CMP 5089 if test -n "$CMP"; then 5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5091 $as_echo "$CMP" >&6; } 5092 else 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5094 $as_echo "no" >&6; } 5095 fi 5096 5097 5098 test -n "$CMP" && break 5099 done 5100 5101 else 5102 # The variable is set, but is it from the command line or the environment? 5103 5104 # Try to remove the string !CMP! from our list. 5105 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CMP!/} 5106 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5107 # If it failed, the variable was not from the command line. Ignore it, 5108 # but warn the user (except for BASH, which is always set by the calling BASH). 5109 if test "xCMP" != xBASH; then 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&5 5111 $as_echo "$as_me: WARNING: Ignoring value of CMP from the environment. Use command line variables instead." >&2;} 5112 fi 5113 # Try to locate tool using the code snippet 5114 for ac_prog in cmp 5115 do 5116 # Extract the first word of "$ac_prog", so it can be a program name with args. 5117 set dummy $ac_prog; ac_word=$2 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5119 $as_echo_n "checking for $ac_word... " >&6; } 5120 if ${ac_cv_path_CMP+:} false; then : 5121 $as_echo_n "(cached) " >&6 5122 else 5123 case $CMP in 5124 [\\/]* | ?:[\\/]*) 5125 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5126 ;; 5127 *) 5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129 for as_dir in $PATH 5130 do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_exec_ext in '' $ac_executable_extensions; do 5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5135 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5137 break 2 5138 fi 5139 done 5140 done 5141 IFS=$as_save_IFS 5142 5143 ;; 5144 esac 5145 fi 5146 CMP=$ac_cv_path_CMP 5147 if test -n "$CMP"; then 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5149 $as_echo "$CMP" >&6; } 5150 else 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5152 $as_echo "no" >&6; } 5153 fi 5154 5155 5156 test -n "$CMP" && break 5157 done 5158 5159 else 5160 # If it succeeded, then it was overridden by the user. We will use it 5161 # for the tool. 5162 5163 # First remove it from the list of overridden variables, so we can test 5164 # for unknown variables in the end. 5165 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5166 5167 # Check if the provided tool contains a complete path. 5168 tool_specified="$CMP" 5169 tool_basename="${tool_specified##*/}" 5170 if test "x$tool_basename" = "x$tool_specified"; then 5171 # A command without a complete path is provided, search $PATH. 5172 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CMP=$tool_basename" >&5 5173 $as_echo "$as_me: Will search for user supplied tool CMP=$tool_basename" >&6;} 5174 # Extract the first word of "$tool_basename", so it can be a program name with args. 5175 set dummy $tool_basename; ac_word=$2 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5177 $as_echo_n "checking for $ac_word... " >&6; } 5178 if ${ac_cv_path_CMP+:} false; then : 5179 $as_echo_n "(cached) " >&6 5180 else 5181 case $CMP in 5182 [\\/]* | ?:[\\/]*) 5183 ac_cv_path_CMP="$CMP" # Let the user override the test with a path. 5184 ;; 5185 *) 5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5187 for as_dir in $PATH 5188 do 5189 IFS=$as_save_IFS 5190 test -z "$as_dir" && as_dir=. 5191 for ac_exec_ext in '' $ac_executable_extensions; do 5192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5193 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext" 5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5195 break 2 5196 fi 5197 done 5198 done 5199 IFS=$as_save_IFS 5200 5201 ;; 5202 esac 5203 fi 5204 CMP=$ac_cv_path_CMP 5205 if test -n "$CMP"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5 5207 $as_echo "$CMP" >&6; } 5208 else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5210 $as_echo "no" >&6; } 5211 fi 5212 5213 5214 if test "x$CMP" = x; then 5215 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5216 fi 5217 else 5218 # Otherwise we believe it is a complete path. Use it as it is. 5219 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CMP=$tool_specified" >&5 5220 $as_echo "$as_me: Will use user supplied tool CMP=$tool_specified" >&6;} 5221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CMP" >&5 5222 $as_echo_n "checking for CMP... " >&6; } 5223 if test ! -x "$tool_specified"; then 5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5225 $as_echo "not found" >&6; } 5226 as_fn_error $? "User supplied tool CMP=$tool_specified does not exist or is not executable" "$LINENO" 5 5227 fi 5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5229 $as_echo "$tool_specified" >&6; } 5230 fi 5231 fi 5232 fi 5233 5234 5235 5236 if test "x$CMP" = x; then 5237 as_fn_error $? "Could not find required tool for CMP" "$LINENO" 5 5238 fi 5239 5240 5241 5242 5243 5244 # Publish this variable in the help. 5245 5246 5247 if test "x$COMM" = x; then 5248 # The variable is not set by user, try to locate tool using the code snippet 5249 for ac_prog in comm 5250 do 5251 # Extract the first word of "$ac_prog", so it can be a program name with args. 5252 set dummy $ac_prog; ac_word=$2 5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5254 $as_echo_n "checking for $ac_word... " >&6; } 5255 if ${ac_cv_path_COMM+:} false; then : 5256 $as_echo_n "(cached) " >&6 5257 else 5258 case $COMM in 5259 [\\/]* | ?:[\\/]*) 5260 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5261 ;; 5262 *) 5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5264 for as_dir in $PATH 5265 do 5266 IFS=$as_save_IFS 5267 test -z "$as_dir" && as_dir=. 5268 for ac_exec_ext in '' $ac_executable_extensions; do 5269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5270 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5272 break 2 5273 fi 5274 done 5275 done 5276 IFS=$as_save_IFS 5277 5278 ;; 5279 esac 5280 fi 5281 COMM=$ac_cv_path_COMM 5282 if test -n "$COMM"; then 5283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5284 $as_echo "$COMM" >&6; } 5285 else 5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5287 $as_echo "no" >&6; } 5288 fi 5289 5290 5291 test -n "$COMM" && break 5292 done 5293 5294 else 5295 # The variable is set, but is it from the command line or the environment? 5296 5297 # Try to remove the string !COMM! from our list. 5298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 5299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5300 # If it failed, the variable was not from the command line. Ignore it, 5301 # but warn the user (except for BASH, which is always set by the calling BASH). 5302 if test "xCOMM" != xBASH; then 5303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 5304 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 5305 fi 5306 # Try to locate tool using the code snippet 5307 for ac_prog in comm 5308 do 5309 # Extract the first word of "$ac_prog", so it can be a program name with args. 5310 set dummy $ac_prog; ac_word=$2 5311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5312 $as_echo_n "checking for $ac_word... " >&6; } 5313 if ${ac_cv_path_COMM+:} false; then : 5314 $as_echo_n "(cached) " >&6 5315 else 5316 case $COMM in 5317 [\\/]* | ?:[\\/]*) 5318 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5319 ;; 5320 *) 5321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5322 for as_dir in $PATH 5323 do 5324 IFS=$as_save_IFS 5325 test -z "$as_dir" && as_dir=. 5326 for ac_exec_ext in '' $ac_executable_extensions; do 5327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5328 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5330 break 2 5331 fi 5332 done 5333 done 5334 IFS=$as_save_IFS 5335 5336 ;; 5337 esac 5338 fi 5339 COMM=$ac_cv_path_COMM 5340 if test -n "$COMM"; then 5341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5342 $as_echo "$COMM" >&6; } 5343 else 5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5345 $as_echo "no" >&6; } 5346 fi 5347 5348 5349 test -n "$COMM" && break 5350 done 5351 5352 else 5353 # If it succeeded, then it was overridden by the user. We will use it 5354 # for the tool. 5355 5356 # First remove it from the list of overridden variables, so we can test 5357 # for unknown variables in the end. 5358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5359 5360 # Check if the provided tool contains a complete path. 5361 tool_specified="$COMM" 5362 tool_basename="${tool_specified##*/}" 5363 if test "x$tool_basename" = "x$tool_specified"; then 5364 # A command without a complete path is provided, search $PATH. 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 5366 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 5367 # Extract the first word of "$tool_basename", so it can be a program name with args. 5368 set dummy $tool_basename; ac_word=$2 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5370 $as_echo_n "checking for $ac_word... " >&6; } 5371 if ${ac_cv_path_COMM+:} false; then : 5372 $as_echo_n "(cached) " >&6 5373 else 5374 case $COMM in 5375 [\\/]* | ?:[\\/]*) 5376 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 5377 ;; 5378 *) 5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5380 for as_dir in $PATH 5381 do 5382 IFS=$as_save_IFS 5383 test -z "$as_dir" && as_dir=. 5384 for ac_exec_ext in '' $ac_executable_extensions; do 5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5386 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5388 break 2 5389 fi 5390 done 5391 done 5392 IFS=$as_save_IFS 5393 5394 ;; 5395 esac 5396 fi 5397 COMM=$ac_cv_path_COMM 5398 if test -n "$COMM"; then 5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 5400 $as_echo "$COMM" >&6; } 5401 else 5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5403 $as_echo "no" >&6; } 5404 fi 5405 5406 5407 if test "x$COMM" = x; then 5408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5409 fi 5410 else 5411 # Otherwise we believe it is a complete path. Use it as it is. 5412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 5413 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 5415 $as_echo_n "checking for COMM... " >&6; } 5416 if test ! -x "$tool_specified"; then 5417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5418 $as_echo "not found" >&6; } 5419 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 5420 fi 5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5422 $as_echo "$tool_specified" >&6; } 5423 fi 5424 fi 5425 fi 5426 5427 5428 5429 if test "x$COMM" = x; then 5430 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 5431 fi 5432 5433 5434 5435 5436 5437 # Publish this variable in the help. 5438 5439 5440 if test "x$CP" = x; then 5441 # The variable is not set by user, try to locate tool using the code snippet 5442 for ac_prog in cp 5443 do 5444 # Extract the first word of "$ac_prog", so it can be a program name with args. 5445 set dummy $ac_prog; ac_word=$2 5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5447 $as_echo_n "checking for $ac_word... " >&6; } 5448 if ${ac_cv_path_CP+:} false; then : 5449 $as_echo_n "(cached) " >&6 5450 else 5451 case $CP in 5452 [\\/]* | ?:[\\/]*) 5453 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5454 ;; 5455 *) 5456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5457 for as_dir in $PATH 5458 do 5459 IFS=$as_save_IFS 5460 test -z "$as_dir" && as_dir=. 5461 for ac_exec_ext in '' $ac_executable_extensions; do 5462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5463 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5465 break 2 5466 fi 5467 done 5468 done 5469 IFS=$as_save_IFS 5470 5471 ;; 5472 esac 5473 fi 5474 CP=$ac_cv_path_CP 5475 if test -n "$CP"; then 5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5477 $as_echo "$CP" >&6; } 5478 else 5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5480 $as_echo "no" >&6; } 5481 fi 5482 5483 5484 test -n "$CP" && break 5485 done 5486 5487 else 5488 # The variable is set, but is it from the command line or the environment? 5489 5490 # Try to remove the string !CP! from our list. 5491 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CP!/} 5492 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5493 # If it failed, the variable was not from the command line. Ignore it, 5494 # but warn the user (except for BASH, which is always set by the calling BASH). 5495 if test "xCP" != xBASH; then 5496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&5 5497 $as_echo "$as_me: WARNING: Ignoring value of CP from the environment. Use command line variables instead." >&2;} 5498 fi 5499 # Try to locate tool using the code snippet 5500 for ac_prog in cp 5501 do 5502 # Extract the first word of "$ac_prog", so it can be a program name with args. 5503 set dummy $ac_prog; ac_word=$2 5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5505 $as_echo_n "checking for $ac_word... " >&6; } 5506 if ${ac_cv_path_CP+:} false; then : 5507 $as_echo_n "(cached) " >&6 5508 else 5509 case $CP in 5510 [\\/]* | ?:[\\/]*) 5511 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5512 ;; 5513 *) 5514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5515 for as_dir in $PATH 5516 do 5517 IFS=$as_save_IFS 5518 test -z "$as_dir" && as_dir=. 5519 for ac_exec_ext in '' $ac_executable_extensions; do 5520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5521 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5523 break 2 5524 fi 5525 done 5526 done 5527 IFS=$as_save_IFS 5528 5529 ;; 5530 esac 5531 fi 5532 CP=$ac_cv_path_CP 5533 if test -n "$CP"; then 5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5535 $as_echo "$CP" >&6; } 5536 else 5537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5538 $as_echo "no" >&6; } 5539 fi 5540 5541 5542 test -n "$CP" && break 5543 done 5544 5545 else 5546 # If it succeeded, then it was overridden by the user. We will use it 5547 # for the tool. 5548 5549 # First remove it from the list of overridden variables, so we can test 5550 # for unknown variables in the end. 5551 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5552 5553 # Check if the provided tool contains a complete path. 5554 tool_specified="$CP" 5555 tool_basename="${tool_specified##*/}" 5556 if test "x$tool_basename" = "x$tool_specified"; then 5557 # A command without a complete path is provided, search $PATH. 5558 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CP=$tool_basename" >&5 5559 $as_echo "$as_me: Will search for user supplied tool CP=$tool_basename" >&6;} 5560 # Extract the first word of "$tool_basename", so it can be a program name with args. 5561 set dummy $tool_basename; ac_word=$2 5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5563 $as_echo_n "checking for $ac_word... " >&6; } 5564 if ${ac_cv_path_CP+:} false; then : 5565 $as_echo_n "(cached) " >&6 5566 else 5567 case $CP in 5568 [\\/]* | ?:[\\/]*) 5569 ac_cv_path_CP="$CP" # Let the user override the test with a path. 5570 ;; 5571 *) 5572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5573 for as_dir in $PATH 5574 do 5575 IFS=$as_save_IFS 5576 test -z "$as_dir" && as_dir=. 5577 for ac_exec_ext in '' $ac_executable_extensions; do 5578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5579 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext" 5580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5581 break 2 5582 fi 5583 done 5584 done 5585 IFS=$as_save_IFS 5586 5587 ;; 5588 esac 5589 fi 5590 CP=$ac_cv_path_CP 5591 if test -n "$CP"; then 5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5 5593 $as_echo "$CP" >&6; } 5594 else 5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5596 $as_echo "no" >&6; } 5597 fi 5598 5599 5600 if test "x$CP" = x; then 5601 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5602 fi 5603 else 5604 # Otherwise we believe it is a complete path. Use it as it is. 5605 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CP=$tool_specified" >&5 5606 $as_echo "$as_me: Will use user supplied tool CP=$tool_specified" >&6;} 5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CP" >&5 5608 $as_echo_n "checking for CP... " >&6; } 5609 if test ! -x "$tool_specified"; then 5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5611 $as_echo "not found" >&6; } 5612 as_fn_error $? "User supplied tool CP=$tool_specified does not exist or is not executable" "$LINENO" 5 5613 fi 5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5615 $as_echo "$tool_specified" >&6; } 5616 fi 5617 fi 5618 fi 5619 5620 5621 5622 if test "x$CP" = x; then 5623 as_fn_error $? "Could not find required tool for CP" "$LINENO" 5 5624 fi 5625 5626 5627 5628 5629 5630 # Publish this variable in the help. 5631 5632 5633 if test "x$CPIO" = x; then 5634 # The variable is not set by user, try to locate tool using the code snippet 5635 for ac_prog in cpio 5636 do 5637 # Extract the first word of "$ac_prog", so it can be a program name with args. 5638 set dummy $ac_prog; ac_word=$2 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5640 $as_echo_n "checking for $ac_word... " >&6; } 5641 if ${ac_cv_path_CPIO+:} false; then : 5642 $as_echo_n "(cached) " >&6 5643 else 5644 case $CPIO in 5645 [\\/]* | ?:[\\/]*) 5646 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5647 ;; 5648 *) 5649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5650 for as_dir in $PATH 5651 do 5652 IFS=$as_save_IFS 5653 test -z "$as_dir" && as_dir=. 5654 for ac_exec_ext in '' $ac_executable_extensions; do 5655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5656 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5658 break 2 5659 fi 5660 done 5661 done 5662 IFS=$as_save_IFS 5663 5664 ;; 5665 esac 5666 fi 5667 CPIO=$ac_cv_path_CPIO 5668 if test -n "$CPIO"; then 5669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5670 $as_echo "$CPIO" >&6; } 5671 else 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5673 $as_echo "no" >&6; } 5674 fi 5675 5676 5677 test -n "$CPIO" && break 5678 done 5679 5680 else 5681 # The variable is set, but is it from the command line or the environment? 5682 5683 # Try to remove the string !CPIO! from our list. 5684 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CPIO!/} 5685 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5686 # If it failed, the variable was not from the command line. Ignore it, 5687 # but warn the user (except for BASH, which is always set by the calling BASH). 5688 if test "xCPIO" != xBASH; then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&5 5690 $as_echo "$as_me: WARNING: Ignoring value of CPIO from the environment. Use command line variables instead." >&2;} 5691 fi 5692 # Try to locate tool using the code snippet 5693 for ac_prog in cpio 5694 do 5695 # Extract the first word of "$ac_prog", so it can be a program name with args. 5696 set dummy $ac_prog; ac_word=$2 5697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5698 $as_echo_n "checking for $ac_word... " >&6; } 5699 if ${ac_cv_path_CPIO+:} false; then : 5700 $as_echo_n "(cached) " >&6 5701 else 5702 case $CPIO in 5703 [\\/]* | ?:[\\/]*) 5704 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5705 ;; 5706 *) 5707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5708 for as_dir in $PATH 5709 do 5710 IFS=$as_save_IFS 5711 test -z "$as_dir" && as_dir=. 5712 for ac_exec_ext in '' $ac_executable_extensions; do 5713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5714 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5716 break 2 5717 fi 5718 done 5719 done 5720 IFS=$as_save_IFS 5721 5722 ;; 5723 esac 5724 fi 5725 CPIO=$ac_cv_path_CPIO 5726 if test -n "$CPIO"; then 5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5728 $as_echo "$CPIO" >&6; } 5729 else 5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5731 $as_echo "no" >&6; } 5732 fi 5733 5734 5735 test -n "$CPIO" && break 5736 done 5737 5738 else 5739 # If it succeeded, then it was overridden by the user. We will use it 5740 # for the tool. 5741 5742 # First remove it from the list of overridden variables, so we can test 5743 # for unknown variables in the end. 5744 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5745 5746 # Check if the provided tool contains a complete path. 5747 tool_specified="$CPIO" 5748 tool_basename="${tool_specified##*/}" 5749 if test "x$tool_basename" = "x$tool_specified"; then 5750 # A command without a complete path is provided, search $PATH. 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CPIO=$tool_basename" >&5 5752 $as_echo "$as_me: Will search for user supplied tool CPIO=$tool_basename" >&6;} 5753 # Extract the first word of "$tool_basename", so it can be a program name with args. 5754 set dummy $tool_basename; ac_word=$2 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5756 $as_echo_n "checking for $ac_word... " >&6; } 5757 if ${ac_cv_path_CPIO+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759 else 5760 case $CPIO in 5761 [\\/]* | ?:[\\/]*) 5762 ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path. 5763 ;; 5764 *) 5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5766 for as_dir in $PATH 5767 do 5768 IFS=$as_save_IFS 5769 test -z "$as_dir" && as_dir=. 5770 for ac_exec_ext in '' $ac_executable_extensions; do 5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5772 ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext" 5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5774 break 2 5775 fi 5776 done 5777 done 5778 IFS=$as_save_IFS 5779 5780 ;; 5781 esac 5782 fi 5783 CPIO=$ac_cv_path_CPIO 5784 if test -n "$CPIO"; then 5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5 5786 $as_echo "$CPIO" >&6; } 5787 else 5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5789 $as_echo "no" >&6; } 5790 fi 5791 5792 5793 if test "x$CPIO" = x; then 5794 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5795 fi 5796 else 5797 # Otherwise we believe it is a complete path. Use it as it is. 5798 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CPIO=$tool_specified" >&5 5799 $as_echo "$as_me: Will use user supplied tool CPIO=$tool_specified" >&6;} 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CPIO" >&5 5801 $as_echo_n "checking for CPIO... " >&6; } 5802 if test ! -x "$tool_specified"; then 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5804 $as_echo "not found" >&6; } 5805 as_fn_error $? "User supplied tool CPIO=$tool_specified does not exist or is not executable" "$LINENO" 5 5806 fi 5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 5808 $as_echo "$tool_specified" >&6; } 5809 fi 5810 fi 5811 fi 5812 5813 5814 5815 if test "x$CPIO" = x; then 5816 as_fn_error $? "Could not find required tool for CPIO" "$LINENO" 5 5817 fi 5818 5819 5820 5821 5822 5823 # Publish this variable in the help. 5824 5825 5826 if test "x$CUT" = x; then 5827 # The variable is not set by user, try to locate tool using the code snippet 5828 for ac_prog in cut 5829 do 5830 # Extract the first word of "$ac_prog", so it can be a program name with args. 5831 set dummy $ac_prog; ac_word=$2 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5833 $as_echo_n "checking for $ac_word... " >&6; } 5834 if ${ac_cv_path_CUT+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836 else 5837 case $CUT in 5838 [\\/]* | ?:[\\/]*) 5839 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5840 ;; 5841 *) 5842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5843 for as_dir in $PATH 5844 do 5845 IFS=$as_save_IFS 5846 test -z "$as_dir" && as_dir=. 5847 for ac_exec_ext in '' $ac_executable_extensions; do 5848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5849 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5851 break 2 5852 fi 5853 done 5854 done 5855 IFS=$as_save_IFS 5856 5857 ;; 5858 esac 5859 fi 5860 CUT=$ac_cv_path_CUT 5861 if test -n "$CUT"; then 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5863 $as_echo "$CUT" >&6; } 5864 else 5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5866 $as_echo "no" >&6; } 5867 fi 5868 5869 5870 test -n "$CUT" && break 5871 done 5872 5873 else 5874 # The variable is set, but is it from the command line or the environment? 5875 5876 # Try to remove the string !CUT! from our list. 5877 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CUT!/} 5878 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 5879 # If it failed, the variable was not from the command line. Ignore it, 5880 # but warn the user (except for BASH, which is always set by the calling BASH). 5881 if test "xCUT" != xBASH; then 5882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&5 5883 $as_echo "$as_me: WARNING: Ignoring value of CUT from the environment. Use command line variables instead." >&2;} 5884 fi 5885 # Try to locate tool using the code snippet 5886 for ac_prog in cut 5887 do 5888 # Extract the first word of "$ac_prog", so it can be a program name with args. 5889 set dummy $ac_prog; ac_word=$2 5890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5891 $as_echo_n "checking for $ac_word... " >&6; } 5892 if ${ac_cv_path_CUT+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894 else 5895 case $CUT in 5896 [\\/]* | ?:[\\/]*) 5897 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5898 ;; 5899 *) 5900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5901 for as_dir in $PATH 5902 do 5903 IFS=$as_save_IFS 5904 test -z "$as_dir" && as_dir=. 5905 for ac_exec_ext in '' $ac_executable_extensions; do 5906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5907 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5909 break 2 5910 fi 5911 done 5912 done 5913 IFS=$as_save_IFS 5914 5915 ;; 5916 esac 5917 fi 5918 CUT=$ac_cv_path_CUT 5919 if test -n "$CUT"; then 5920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5921 $as_echo "$CUT" >&6; } 5922 else 5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5924 $as_echo "no" >&6; } 5925 fi 5926 5927 5928 test -n "$CUT" && break 5929 done 5930 5931 else 5932 # If it succeeded, then it was overridden by the user. We will use it 5933 # for the tool. 5934 5935 # First remove it from the list of overridden variables, so we can test 5936 # for unknown variables in the end. 5937 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 5938 5939 # Check if the provided tool contains a complete path. 5940 tool_specified="$CUT" 5941 tool_basename="${tool_specified##*/}" 5942 if test "x$tool_basename" = "x$tool_specified"; then 5943 # A command without a complete path is provided, search $PATH. 5944 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CUT=$tool_basename" >&5 5945 $as_echo "$as_me: Will search for user supplied tool CUT=$tool_basename" >&6;} 5946 # Extract the first word of "$tool_basename", so it can be a program name with args. 5947 set dummy $tool_basename; ac_word=$2 5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5949 $as_echo_n "checking for $ac_word... " >&6; } 5950 if ${ac_cv_path_CUT+:} false; then : 5951 $as_echo_n "(cached) " >&6 5952 else 5953 case $CUT in 5954 [\\/]* | ?:[\\/]*) 5955 ac_cv_path_CUT="$CUT" # Let the user override the test with a path. 5956 ;; 5957 *) 5958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5959 for as_dir in $PATH 5960 do 5961 IFS=$as_save_IFS 5962 test -z "$as_dir" && as_dir=. 5963 for ac_exec_ext in '' $ac_executable_extensions; do 5964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5965 ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext" 5966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5967 break 2 5968 fi 5969 done 5970 done 5971 IFS=$as_save_IFS 5972 5973 ;; 5974 esac 5975 fi 5976 CUT=$ac_cv_path_CUT 5977 if test -n "$CUT"; then 5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5 5979 $as_echo "$CUT" >&6; } 5980 else 5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5982 $as_echo "no" >&6; } 5983 fi 5984 5985 5986 if test "x$CUT" = x; then 5987 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 5988 fi 5989 else 5990 # Otherwise we believe it is a complete path. Use it as it is. 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CUT=$tool_specified" >&5 5992 $as_echo "$as_me: Will use user supplied tool CUT=$tool_specified" >&6;} 5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CUT" >&5 5994 $as_echo_n "checking for CUT... " >&6; } 5995 if test ! -x "$tool_specified"; then 5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 5997 $as_echo "not found" >&6; } 5998 as_fn_error $? "User supplied tool CUT=$tool_specified does not exist or is not executable" "$LINENO" 5 5999 fi 6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6001 $as_echo "$tool_specified" >&6; } 6002 fi 6003 fi 6004 fi 6005 6006 6007 6008 if test "x$CUT" = x; then 6009 as_fn_error $? "Could not find required tool for CUT" "$LINENO" 5 6010 fi 6011 6012 6013 6014 6015 6016 # Publish this variable in the help. 6017 6018 6019 if test "x$DATE" = x; then 6020 # The variable is not set by user, try to locate tool using the code snippet 6021 for ac_prog in date 6022 do 6023 # Extract the first word of "$ac_prog", so it can be a program name with args. 6024 set dummy $ac_prog; ac_word=$2 6025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6026 $as_echo_n "checking for $ac_word... " >&6; } 6027 if ${ac_cv_path_DATE+:} false; then : 6028 $as_echo_n "(cached) " >&6 6029 else 6030 case $DATE in 6031 [\\/]* | ?:[\\/]*) 6032 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6033 ;; 6034 *) 6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6036 for as_dir in $PATH 6037 do 6038 IFS=$as_save_IFS 6039 test -z "$as_dir" && as_dir=. 6040 for ac_exec_ext in '' $ac_executable_extensions; do 6041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6042 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6044 break 2 6045 fi 6046 done 6047 done 6048 IFS=$as_save_IFS 6049 6050 ;; 6051 esac 6052 fi 6053 DATE=$ac_cv_path_DATE 6054 if test -n "$DATE"; then 6055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6056 $as_echo "$DATE" >&6; } 6057 else 6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6059 $as_echo "no" >&6; } 6060 fi 6061 6062 6063 test -n "$DATE" && break 6064 done 6065 6066 else 6067 # The variable is set, but is it from the command line or the environment? 6068 6069 # Try to remove the string !DATE! from our list. 6070 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DATE!/} 6071 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6072 # If it failed, the variable was not from the command line. Ignore it, 6073 # but warn the user (except for BASH, which is always set by the calling BASH). 6074 if test "xDATE" != xBASH; then 6075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&5 6076 $as_echo "$as_me: WARNING: Ignoring value of DATE from the environment. Use command line variables instead." >&2;} 6077 fi 6078 # Try to locate tool using the code snippet 6079 for ac_prog in date 6080 do 6081 # Extract the first word of "$ac_prog", so it can be a program name with args. 6082 set dummy $ac_prog; ac_word=$2 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6084 $as_echo_n "checking for $ac_word... " >&6; } 6085 if ${ac_cv_path_DATE+:} false; then : 6086 $as_echo_n "(cached) " >&6 6087 else 6088 case $DATE in 6089 [\\/]* | ?:[\\/]*) 6090 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6091 ;; 6092 *) 6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6094 for as_dir in $PATH 6095 do 6096 IFS=$as_save_IFS 6097 test -z "$as_dir" && as_dir=. 6098 for ac_exec_ext in '' $ac_executable_extensions; do 6099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6100 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6102 break 2 6103 fi 6104 done 6105 done 6106 IFS=$as_save_IFS 6107 6108 ;; 6109 esac 6110 fi 6111 DATE=$ac_cv_path_DATE 6112 if test -n "$DATE"; then 6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6114 $as_echo "$DATE" >&6; } 6115 else 6116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6117 $as_echo "no" >&6; } 6118 fi 6119 6120 6121 test -n "$DATE" && break 6122 done 6123 6124 else 6125 # If it succeeded, then it was overridden by the user. We will use it 6126 # for the tool. 6127 6128 # First remove it from the list of overridden variables, so we can test 6129 # for unknown variables in the end. 6130 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6131 6132 # Check if the provided tool contains a complete path. 6133 tool_specified="$DATE" 6134 tool_basename="${tool_specified##*/}" 6135 if test "x$tool_basename" = "x$tool_specified"; then 6136 # A command without a complete path is provided, search $PATH. 6137 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DATE=$tool_basename" >&5 6138 $as_echo "$as_me: Will search for user supplied tool DATE=$tool_basename" >&6;} 6139 # Extract the first word of "$tool_basename", so it can be a program name with args. 6140 set dummy $tool_basename; ac_word=$2 6141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6142 $as_echo_n "checking for $ac_word... " >&6; } 6143 if ${ac_cv_path_DATE+:} false; then : 6144 $as_echo_n "(cached) " >&6 6145 else 6146 case $DATE in 6147 [\\/]* | ?:[\\/]*) 6148 ac_cv_path_DATE="$DATE" # Let the user override the test with a path. 6149 ;; 6150 *) 6151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6152 for as_dir in $PATH 6153 do 6154 IFS=$as_save_IFS 6155 test -z "$as_dir" && as_dir=. 6156 for ac_exec_ext in '' $ac_executable_extensions; do 6157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6158 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext" 6159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6160 break 2 6161 fi 6162 done 6163 done 6164 IFS=$as_save_IFS 6165 6166 ;; 6167 esac 6168 fi 6169 DATE=$ac_cv_path_DATE 6170 if test -n "$DATE"; then 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5 6172 $as_echo "$DATE" >&6; } 6173 else 6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6175 $as_echo "no" >&6; } 6176 fi 6177 6178 6179 if test "x$DATE" = x; then 6180 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6181 fi 6182 else 6183 # Otherwise we believe it is a complete path. Use it as it is. 6184 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DATE=$tool_specified" >&5 6185 $as_echo "$as_me: Will use user supplied tool DATE=$tool_specified" >&6;} 6186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DATE" >&5 6187 $as_echo_n "checking for DATE... " >&6; } 6188 if test ! -x "$tool_specified"; then 6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6190 $as_echo "not found" >&6; } 6191 as_fn_error $? "User supplied tool DATE=$tool_specified does not exist or is not executable" "$LINENO" 5 6192 fi 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6194 $as_echo "$tool_specified" >&6; } 6195 fi 6196 fi 6197 fi 6198 6199 6200 6201 if test "x$DATE" = x; then 6202 as_fn_error $? "Could not find required tool for DATE" "$LINENO" 5 6203 fi 6204 6205 6206 6207 6208 6209 # Publish this variable in the help. 6210 6211 6212 if test "x$DIFF" = x; then 6213 # The variable is not set by user, try to locate tool using the code snippet 6214 for ac_prog in gdiff diff 6215 do 6216 # Extract the first word of "$ac_prog", so it can be a program name with args. 6217 set dummy $ac_prog; ac_word=$2 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6219 $as_echo_n "checking for $ac_word... " >&6; } 6220 if ${ac_cv_path_DIFF+:} false; then : 6221 $as_echo_n "(cached) " >&6 6222 else 6223 case $DIFF in 6224 [\\/]* | ?:[\\/]*) 6225 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6226 ;; 6227 *) 6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6229 for as_dir in $PATH 6230 do 6231 IFS=$as_save_IFS 6232 test -z "$as_dir" && as_dir=. 6233 for ac_exec_ext in '' $ac_executable_extensions; do 6234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6235 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6237 break 2 6238 fi 6239 done 6240 done 6241 IFS=$as_save_IFS 6242 6243 ;; 6244 esac 6245 fi 6246 DIFF=$ac_cv_path_DIFF 6247 if test -n "$DIFF"; then 6248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6249 $as_echo "$DIFF" >&6; } 6250 else 6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6252 $as_echo "no" >&6; } 6253 fi 6254 6255 6256 test -n "$DIFF" && break 6257 done 6258 6259 else 6260 # The variable is set, but is it from the command line or the environment? 6261 6262 # Try to remove the string !DIFF! from our list. 6263 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIFF!/} 6264 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6265 # If it failed, the variable was not from the command line. Ignore it, 6266 # but warn the user (except for BASH, which is always set by the calling BASH). 6267 if test "xDIFF" != xBASH; then 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&5 6269 $as_echo "$as_me: WARNING: Ignoring value of DIFF from the environment. Use command line variables instead." >&2;} 6270 fi 6271 # Try to locate tool using the code snippet 6272 for ac_prog in gdiff diff 6273 do 6274 # Extract the first word of "$ac_prog", so it can be a program name with args. 6275 set dummy $ac_prog; ac_word=$2 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6277 $as_echo_n "checking for $ac_word... " >&6; } 6278 if ${ac_cv_path_DIFF+:} false; then : 6279 $as_echo_n "(cached) " >&6 6280 else 6281 case $DIFF in 6282 [\\/]* | ?:[\\/]*) 6283 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6284 ;; 6285 *) 6286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6287 for as_dir in $PATH 6288 do 6289 IFS=$as_save_IFS 6290 test -z "$as_dir" && as_dir=. 6291 for ac_exec_ext in '' $ac_executable_extensions; do 6292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6293 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6295 break 2 6296 fi 6297 done 6298 done 6299 IFS=$as_save_IFS 6300 6301 ;; 6302 esac 6303 fi 6304 DIFF=$ac_cv_path_DIFF 6305 if test -n "$DIFF"; then 6306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6307 $as_echo "$DIFF" >&6; } 6308 else 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6310 $as_echo "no" >&6; } 6311 fi 6312 6313 6314 test -n "$DIFF" && break 6315 done 6316 6317 else 6318 # If it succeeded, then it was overridden by the user. We will use it 6319 # for the tool. 6320 6321 # First remove it from the list of overridden variables, so we can test 6322 # for unknown variables in the end. 6323 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6324 6325 # Check if the provided tool contains a complete path. 6326 tool_specified="$DIFF" 6327 tool_basename="${tool_specified##*/}" 6328 if test "x$tool_basename" = "x$tool_specified"; then 6329 # A command without a complete path is provided, search $PATH. 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIFF=$tool_basename" >&5 6331 $as_echo "$as_me: Will search for user supplied tool DIFF=$tool_basename" >&6;} 6332 # Extract the first word of "$tool_basename", so it can be a program name with args. 6333 set dummy $tool_basename; ac_word=$2 6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6335 $as_echo_n "checking for $ac_word... " >&6; } 6336 if ${ac_cv_path_DIFF+:} false; then : 6337 $as_echo_n "(cached) " >&6 6338 else 6339 case $DIFF in 6340 [\\/]* | ?:[\\/]*) 6341 ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path. 6342 ;; 6343 *) 6344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6345 for as_dir in $PATH 6346 do 6347 IFS=$as_save_IFS 6348 test -z "$as_dir" && as_dir=. 6349 for ac_exec_ext in '' $ac_executable_extensions; do 6350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6351 ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext" 6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6353 break 2 6354 fi 6355 done 6356 done 6357 IFS=$as_save_IFS 6358 6359 ;; 6360 esac 6361 fi 6362 DIFF=$ac_cv_path_DIFF 6363 if test -n "$DIFF"; then 6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5 6365 $as_echo "$DIFF" >&6; } 6366 else 6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6368 $as_echo "no" >&6; } 6369 fi 6370 6371 6372 if test "x$DIFF" = x; then 6373 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6374 fi 6375 else 6376 # Otherwise we believe it is a complete path. Use it as it is. 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIFF=$tool_specified" >&5 6378 $as_echo "$as_me: Will use user supplied tool DIFF=$tool_specified" >&6;} 6379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIFF" >&5 6380 $as_echo_n "checking for DIFF... " >&6; } 6381 if test ! -x "$tool_specified"; then 6382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6383 $as_echo "not found" >&6; } 6384 as_fn_error $? "User supplied tool DIFF=$tool_specified does not exist or is not executable" "$LINENO" 5 6385 fi 6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6387 $as_echo "$tool_specified" >&6; } 6388 fi 6389 fi 6390 fi 6391 6392 6393 6394 if test "x$DIFF" = x; then 6395 as_fn_error $? "Could not find required tool for DIFF" "$LINENO" 5 6396 fi 6397 6398 6399 6400 6401 6402 # Publish this variable in the help. 6403 6404 6405 if test "x$DIRNAME" = x; then 6406 # The variable is not set by user, try to locate tool using the code snippet 6407 for ac_prog in dirname 6408 do 6409 # Extract the first word of "$ac_prog", so it can be a program name with args. 6410 set dummy $ac_prog; ac_word=$2 6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6412 $as_echo_n "checking for $ac_word... " >&6; } 6413 if ${ac_cv_path_DIRNAME+:} false; then : 6414 $as_echo_n "(cached) " >&6 6415 else 6416 case $DIRNAME in 6417 [\\/]* | ?:[\\/]*) 6418 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6419 ;; 6420 *) 6421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6422 for as_dir in $PATH 6423 do 6424 IFS=$as_save_IFS 6425 test -z "$as_dir" && as_dir=. 6426 for ac_exec_ext in '' $ac_executable_extensions; do 6427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6428 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6430 break 2 6431 fi 6432 done 6433 done 6434 IFS=$as_save_IFS 6435 6436 ;; 6437 esac 6438 fi 6439 DIRNAME=$ac_cv_path_DIRNAME 6440 if test -n "$DIRNAME"; then 6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6442 $as_echo "$DIRNAME" >&6; } 6443 else 6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6445 $as_echo "no" >&6; } 6446 fi 6447 6448 6449 test -n "$DIRNAME" && break 6450 done 6451 6452 else 6453 # The variable is set, but is it from the command line or the environment? 6454 6455 # Try to remove the string !DIRNAME! from our list. 6456 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DIRNAME!/} 6457 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6458 # If it failed, the variable was not from the command line. Ignore it, 6459 # but warn the user (except for BASH, which is always set by the calling BASH). 6460 if test "xDIRNAME" != xBASH; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&5 6462 $as_echo "$as_me: WARNING: Ignoring value of DIRNAME from the environment. Use command line variables instead." >&2;} 6463 fi 6464 # Try to locate tool using the code snippet 6465 for ac_prog in dirname 6466 do 6467 # Extract the first word of "$ac_prog", so it can be a program name with args. 6468 set dummy $ac_prog; ac_word=$2 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6470 $as_echo_n "checking for $ac_word... " >&6; } 6471 if ${ac_cv_path_DIRNAME+:} false; then : 6472 $as_echo_n "(cached) " >&6 6473 else 6474 case $DIRNAME in 6475 [\\/]* | ?:[\\/]*) 6476 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6477 ;; 6478 *) 6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6480 for as_dir in $PATH 6481 do 6482 IFS=$as_save_IFS 6483 test -z "$as_dir" && as_dir=. 6484 for ac_exec_ext in '' $ac_executable_extensions; do 6485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6486 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6488 break 2 6489 fi 6490 done 6491 done 6492 IFS=$as_save_IFS 6493 6494 ;; 6495 esac 6496 fi 6497 DIRNAME=$ac_cv_path_DIRNAME 6498 if test -n "$DIRNAME"; then 6499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6500 $as_echo "$DIRNAME" >&6; } 6501 else 6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6503 $as_echo "no" >&6; } 6504 fi 6505 6506 6507 test -n "$DIRNAME" && break 6508 done 6509 6510 else 6511 # If it succeeded, then it was overridden by the user. We will use it 6512 # for the tool. 6513 6514 # First remove it from the list of overridden variables, so we can test 6515 # for unknown variables in the end. 6516 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6517 6518 # Check if the provided tool contains a complete path. 6519 tool_specified="$DIRNAME" 6520 tool_basename="${tool_specified##*/}" 6521 if test "x$tool_basename" = "x$tool_specified"; then 6522 # A command without a complete path is provided, search $PATH. 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DIRNAME=$tool_basename" >&5 6524 $as_echo "$as_me: Will search for user supplied tool DIRNAME=$tool_basename" >&6;} 6525 # Extract the first word of "$tool_basename", so it can be a program name with args. 6526 set dummy $tool_basename; ac_word=$2 6527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6528 $as_echo_n "checking for $ac_word... " >&6; } 6529 if ${ac_cv_path_DIRNAME+:} false; then : 6530 $as_echo_n "(cached) " >&6 6531 else 6532 case $DIRNAME in 6533 [\\/]* | ?:[\\/]*) 6534 ac_cv_path_DIRNAME="$DIRNAME" # Let the user override the test with a path. 6535 ;; 6536 *) 6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6538 for as_dir in $PATH 6539 do 6540 IFS=$as_save_IFS 6541 test -z "$as_dir" && as_dir=. 6542 for ac_exec_ext in '' $ac_executable_extensions; do 6543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6544 ac_cv_path_DIRNAME="$as_dir/$ac_word$ac_exec_ext" 6545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6546 break 2 6547 fi 6548 done 6549 done 6550 IFS=$as_save_IFS 6551 6552 ;; 6553 esac 6554 fi 6555 DIRNAME=$ac_cv_path_DIRNAME 6556 if test -n "$DIRNAME"; then 6557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIRNAME" >&5 6558 $as_echo "$DIRNAME" >&6; } 6559 else 6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6561 $as_echo "no" >&6; } 6562 fi 6563 6564 6565 if test "x$DIRNAME" = x; then 6566 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6567 fi 6568 else 6569 # Otherwise we believe it is a complete path. Use it as it is. 6570 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DIRNAME=$tool_specified" >&5 6571 $as_echo "$as_me: Will use user supplied tool DIRNAME=$tool_specified" >&6;} 6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DIRNAME" >&5 6573 $as_echo_n "checking for DIRNAME... " >&6; } 6574 if test ! -x "$tool_specified"; then 6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6576 $as_echo "not found" >&6; } 6577 as_fn_error $? "User supplied tool DIRNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 6578 fi 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6580 $as_echo "$tool_specified" >&6; } 6581 fi 6582 fi 6583 fi 6584 6585 6586 6587 if test "x$DIRNAME" = x; then 6588 as_fn_error $? "Could not find required tool for DIRNAME" "$LINENO" 5 6589 fi 6590 6591 6592 6593 6594 6595 # Publish this variable in the help. 6596 6597 6598 if test "x$ECHO" = x; then 6599 # The variable is not set by user, try to locate tool using the code snippet 6600 for ac_prog in echo 6601 do 6602 # Extract the first word of "$ac_prog", so it can be a program name with args. 6603 set dummy $ac_prog; ac_word=$2 6604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6605 $as_echo_n "checking for $ac_word... " >&6; } 6606 if ${ac_cv_path_ECHO+:} false; then : 6607 $as_echo_n "(cached) " >&6 6608 else 6609 case $ECHO in 6610 [\\/]* | ?:[\\/]*) 6611 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6612 ;; 6613 *) 6614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615 for as_dir in $PATH 6616 do 6617 IFS=$as_save_IFS 6618 test -z "$as_dir" && as_dir=. 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6621 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625 done 6626 done 6627 IFS=$as_save_IFS 6628 6629 ;; 6630 esac 6631 fi 6632 ECHO=$ac_cv_path_ECHO 6633 if test -n "$ECHO"; then 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6635 $as_echo "$ECHO" >&6; } 6636 else 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6638 $as_echo "no" >&6; } 6639 fi 6640 6641 6642 test -n "$ECHO" && break 6643 done 6644 6645 else 6646 # The variable is set, but is it from the command line or the environment? 6647 6648 # Try to remove the string !ECHO! from our list. 6649 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ECHO!/} 6650 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6651 # If it failed, the variable was not from the command line. Ignore it, 6652 # but warn the user (except for BASH, which is always set by the calling BASH). 6653 if test "xECHO" != xBASH; then 6654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&5 6655 $as_echo "$as_me: WARNING: Ignoring value of ECHO from the environment. Use command line variables instead." >&2;} 6656 fi 6657 # Try to locate tool using the code snippet 6658 for ac_prog in echo 6659 do 6660 # Extract the first word of "$ac_prog", so it can be a program name with args. 6661 set dummy $ac_prog; ac_word=$2 6662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6663 $as_echo_n "checking for $ac_word... " >&6; } 6664 if ${ac_cv_path_ECHO+:} false; then : 6665 $as_echo_n "(cached) " >&6 6666 else 6667 case $ECHO in 6668 [\\/]* | ?:[\\/]*) 6669 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6670 ;; 6671 *) 6672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6673 for as_dir in $PATH 6674 do 6675 IFS=$as_save_IFS 6676 test -z "$as_dir" && as_dir=. 6677 for ac_exec_ext in '' $ac_executable_extensions; do 6678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6679 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6681 break 2 6682 fi 6683 done 6684 done 6685 IFS=$as_save_IFS 6686 6687 ;; 6688 esac 6689 fi 6690 ECHO=$ac_cv_path_ECHO 6691 if test -n "$ECHO"; then 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6693 $as_echo "$ECHO" >&6; } 6694 else 6695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6696 $as_echo "no" >&6; } 6697 fi 6698 6699 6700 test -n "$ECHO" && break 6701 done 6702 6703 else 6704 # If it succeeded, then it was overridden by the user. We will use it 6705 # for the tool. 6706 6707 # First remove it from the list of overridden variables, so we can test 6708 # for unknown variables in the end. 6709 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6710 6711 # Check if the provided tool contains a complete path. 6712 tool_specified="$ECHO" 6713 tool_basename="${tool_specified##*/}" 6714 if test "x$tool_basename" = "x$tool_specified"; then 6715 # A command without a complete path is provided, search $PATH. 6716 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ECHO=$tool_basename" >&5 6717 $as_echo "$as_me: Will search for user supplied tool ECHO=$tool_basename" >&6;} 6718 # Extract the first word of "$tool_basename", so it can be a program name with args. 6719 set dummy $tool_basename; ac_word=$2 6720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6721 $as_echo_n "checking for $ac_word... " >&6; } 6722 if ${ac_cv_path_ECHO+:} false; then : 6723 $as_echo_n "(cached) " >&6 6724 else 6725 case $ECHO in 6726 [\\/]* | ?:[\\/]*) 6727 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path. 6728 ;; 6729 *) 6730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6731 for as_dir in $PATH 6732 do 6733 IFS=$as_save_IFS 6734 test -z "$as_dir" && as_dir=. 6735 for ac_exec_ext in '' $ac_executable_extensions; do 6736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6737 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext" 6738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6739 break 2 6740 fi 6741 done 6742 done 6743 IFS=$as_save_IFS 6744 6745 ;; 6746 esac 6747 fi 6748 ECHO=$ac_cv_path_ECHO 6749 if test -n "$ECHO"; then 6750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5 6751 $as_echo "$ECHO" >&6; } 6752 else 6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6754 $as_echo "no" >&6; } 6755 fi 6756 6757 6758 if test "x$ECHO" = x; then 6759 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6760 fi 6761 else 6762 # Otherwise we believe it is a complete path. Use it as it is. 6763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ECHO=$tool_specified" >&5 6764 $as_echo "$as_me: Will use user supplied tool ECHO=$tool_specified" >&6;} 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ECHO" >&5 6766 $as_echo_n "checking for ECHO... " >&6; } 6767 if test ! -x "$tool_specified"; then 6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6769 $as_echo "not found" >&6; } 6770 as_fn_error $? "User supplied tool ECHO=$tool_specified does not exist or is not executable" "$LINENO" 5 6771 fi 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6773 $as_echo "$tool_specified" >&6; } 6774 fi 6775 fi 6776 fi 6777 6778 6779 6780 if test "x$ECHO" = x; then 6781 as_fn_error $? "Could not find required tool for ECHO" "$LINENO" 5 6782 fi 6783 6784 6785 6786 6787 6788 # Publish this variable in the help. 6789 6790 6791 if test "x$EXPR" = x; then 6792 # The variable is not set by user, try to locate tool using the code snippet 6793 for ac_prog in expr 6794 do 6795 # Extract the first word of "$ac_prog", so it can be a program name with args. 6796 set dummy $ac_prog; ac_word=$2 6797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6798 $as_echo_n "checking for $ac_word... " >&6; } 6799 if ${ac_cv_path_EXPR+:} false; then : 6800 $as_echo_n "(cached) " >&6 6801 else 6802 case $EXPR in 6803 [\\/]* | ?:[\\/]*) 6804 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6805 ;; 6806 *) 6807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6808 for as_dir in $PATH 6809 do 6810 IFS=$as_save_IFS 6811 test -z "$as_dir" && as_dir=. 6812 for ac_exec_ext in '' $ac_executable_extensions; do 6813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6814 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6816 break 2 6817 fi 6818 done 6819 done 6820 IFS=$as_save_IFS 6821 6822 ;; 6823 esac 6824 fi 6825 EXPR=$ac_cv_path_EXPR 6826 if test -n "$EXPR"; then 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6828 $as_echo "$EXPR" >&6; } 6829 else 6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6831 $as_echo "no" >&6; } 6832 fi 6833 6834 6835 test -n "$EXPR" && break 6836 done 6837 6838 else 6839 # The variable is set, but is it from the command line or the environment? 6840 6841 # Try to remove the string !EXPR! from our list. 6842 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EXPR!/} 6843 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 6844 # If it failed, the variable was not from the command line. Ignore it, 6845 # but warn the user (except for BASH, which is always set by the calling BASH). 6846 if test "xEXPR" != xBASH; then 6847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&5 6848 $as_echo "$as_me: WARNING: Ignoring value of EXPR from the environment. Use command line variables instead." >&2;} 6849 fi 6850 # Try to locate tool using the code snippet 6851 for ac_prog in expr 6852 do 6853 # Extract the first word of "$ac_prog", so it can be a program name with args. 6854 set dummy $ac_prog; ac_word=$2 6855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6856 $as_echo_n "checking for $ac_word... " >&6; } 6857 if ${ac_cv_path_EXPR+:} false; then : 6858 $as_echo_n "(cached) " >&6 6859 else 6860 case $EXPR in 6861 [\\/]* | ?:[\\/]*) 6862 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6863 ;; 6864 *) 6865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6866 for as_dir in $PATH 6867 do 6868 IFS=$as_save_IFS 6869 test -z "$as_dir" && as_dir=. 6870 for ac_exec_ext in '' $ac_executable_extensions; do 6871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6872 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6874 break 2 6875 fi 6876 done 6877 done 6878 IFS=$as_save_IFS 6879 6880 ;; 6881 esac 6882 fi 6883 EXPR=$ac_cv_path_EXPR 6884 if test -n "$EXPR"; then 6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6886 $as_echo "$EXPR" >&6; } 6887 else 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6889 $as_echo "no" >&6; } 6890 fi 6891 6892 6893 test -n "$EXPR" && break 6894 done 6895 6896 else 6897 # If it succeeded, then it was overridden by the user. We will use it 6898 # for the tool. 6899 6900 # First remove it from the list of overridden variables, so we can test 6901 # for unknown variables in the end. 6902 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 6903 6904 # Check if the provided tool contains a complete path. 6905 tool_specified="$EXPR" 6906 tool_basename="${tool_specified##*/}" 6907 if test "x$tool_basename" = "x$tool_specified"; then 6908 # A command without a complete path is provided, search $PATH. 6909 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EXPR=$tool_basename" >&5 6910 $as_echo "$as_me: Will search for user supplied tool EXPR=$tool_basename" >&6;} 6911 # Extract the first word of "$tool_basename", so it can be a program name with args. 6912 set dummy $tool_basename; ac_word=$2 6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6914 $as_echo_n "checking for $ac_word... " >&6; } 6915 if ${ac_cv_path_EXPR+:} false; then : 6916 $as_echo_n "(cached) " >&6 6917 else 6918 case $EXPR in 6919 [\\/]* | ?:[\\/]*) 6920 ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path. 6921 ;; 6922 *) 6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6924 for as_dir in $PATH 6925 do 6926 IFS=$as_save_IFS 6927 test -z "$as_dir" && as_dir=. 6928 for ac_exec_ext in '' $ac_executable_extensions; do 6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6930 ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext" 6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6932 break 2 6933 fi 6934 done 6935 done 6936 IFS=$as_save_IFS 6937 6938 ;; 6939 esac 6940 fi 6941 EXPR=$ac_cv_path_EXPR 6942 if test -n "$EXPR"; then 6943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5 6944 $as_echo "$EXPR" >&6; } 6945 else 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6947 $as_echo "no" >&6; } 6948 fi 6949 6950 6951 if test "x$EXPR" = x; then 6952 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 6953 fi 6954 else 6955 # Otherwise we believe it is a complete path. Use it as it is. 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EXPR=$tool_specified" >&5 6957 $as_echo "$as_me: Will use user supplied tool EXPR=$tool_specified" >&6;} 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EXPR" >&5 6959 $as_echo_n "checking for EXPR... " >&6; } 6960 if test ! -x "$tool_specified"; then 6961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 6962 $as_echo "not found" >&6; } 6963 as_fn_error $? "User supplied tool EXPR=$tool_specified does not exist or is not executable" "$LINENO" 5 6964 fi 6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 6966 $as_echo "$tool_specified" >&6; } 6967 fi 6968 fi 6969 fi 6970 6971 6972 6973 if test "x$EXPR" = x; then 6974 as_fn_error $? "Could not find required tool for EXPR" "$LINENO" 5 6975 fi 6976 6977 6978 6979 6980 6981 # Publish this variable in the help. 6982 6983 6984 if test "x$FILE" = x; then 6985 # The variable is not set by user, try to locate tool using the code snippet 6986 for ac_prog in file 6987 do 6988 # Extract the first word of "$ac_prog", so it can be a program name with args. 6989 set dummy $ac_prog; ac_word=$2 6990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6991 $as_echo_n "checking for $ac_word... " >&6; } 6992 if ${ac_cv_path_FILE+:} false; then : 6993 $as_echo_n "(cached) " >&6 6994 else 6995 case $FILE in 6996 [\\/]* | ?:[\\/]*) 6997 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 6998 ;; 6999 *) 7000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7001 for as_dir in $PATH 7002 do 7003 IFS=$as_save_IFS 7004 test -z "$as_dir" && as_dir=. 7005 for ac_exec_ext in '' $ac_executable_extensions; do 7006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7007 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7009 break 2 7010 fi 7011 done 7012 done 7013 IFS=$as_save_IFS 7014 7015 ;; 7016 esac 7017 fi 7018 FILE=$ac_cv_path_FILE 7019 if test -n "$FILE"; then 7020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7021 $as_echo "$FILE" >&6; } 7022 else 7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7024 $as_echo "no" >&6; } 7025 fi 7026 7027 7028 test -n "$FILE" && break 7029 done 7030 7031 else 7032 # The variable is set, but is it from the command line or the environment? 7033 7034 # Try to remove the string !FILE! from our list. 7035 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FILE!/} 7036 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7037 # If it failed, the variable was not from the command line. Ignore it, 7038 # but warn the user (except for BASH, which is always set by the calling BASH). 7039 if test "xFILE" != xBASH; then 7040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&5 7041 $as_echo "$as_me: WARNING: Ignoring value of FILE from the environment. Use command line variables instead." >&2;} 7042 fi 7043 # Try to locate tool using the code snippet 7044 for ac_prog in file 7045 do 7046 # Extract the first word of "$ac_prog", so it can be a program name with args. 7047 set dummy $ac_prog; ac_word=$2 7048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7049 $as_echo_n "checking for $ac_word... " >&6; } 7050 if ${ac_cv_path_FILE+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052 else 7053 case $FILE in 7054 [\\/]* | ?:[\\/]*) 7055 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7056 ;; 7057 *) 7058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7059 for as_dir in $PATH 7060 do 7061 IFS=$as_save_IFS 7062 test -z "$as_dir" && as_dir=. 7063 for ac_exec_ext in '' $ac_executable_extensions; do 7064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7065 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7067 break 2 7068 fi 7069 done 7070 done 7071 IFS=$as_save_IFS 7072 7073 ;; 7074 esac 7075 fi 7076 FILE=$ac_cv_path_FILE 7077 if test -n "$FILE"; then 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7079 $as_echo "$FILE" >&6; } 7080 else 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7082 $as_echo "no" >&6; } 7083 fi 7084 7085 7086 test -n "$FILE" && break 7087 done 7088 7089 else 7090 # If it succeeded, then it was overridden by the user. We will use it 7091 # for the tool. 7092 7093 # First remove it from the list of overridden variables, so we can test 7094 # for unknown variables in the end. 7095 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7096 7097 # Check if the provided tool contains a complete path. 7098 tool_specified="$FILE" 7099 tool_basename="${tool_specified##*/}" 7100 if test "x$tool_basename" = "x$tool_specified"; then 7101 # A command without a complete path is provided, search $PATH. 7102 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FILE=$tool_basename" >&5 7103 $as_echo "$as_me: Will search for user supplied tool FILE=$tool_basename" >&6;} 7104 # Extract the first word of "$tool_basename", so it can be a program name with args. 7105 set dummy $tool_basename; ac_word=$2 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7107 $as_echo_n "checking for $ac_word... " >&6; } 7108 if ${ac_cv_path_FILE+:} false; then : 7109 $as_echo_n "(cached) " >&6 7110 else 7111 case $FILE in 7112 [\\/]* | ?:[\\/]*) 7113 ac_cv_path_FILE="$FILE" # Let the user override the test with a path. 7114 ;; 7115 *) 7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7117 for as_dir in $PATH 7118 do 7119 IFS=$as_save_IFS 7120 test -z "$as_dir" && as_dir=. 7121 for ac_exec_ext in '' $ac_executable_extensions; do 7122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7123 ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext" 7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7125 break 2 7126 fi 7127 done 7128 done 7129 IFS=$as_save_IFS 7130 7131 ;; 7132 esac 7133 fi 7134 FILE=$ac_cv_path_FILE 7135 if test -n "$FILE"; then 7136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5 7137 $as_echo "$FILE" >&6; } 7138 else 7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7140 $as_echo "no" >&6; } 7141 fi 7142 7143 7144 if test "x$FILE" = x; then 7145 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7146 fi 7147 else 7148 # Otherwise we believe it is a complete path. Use it as it is. 7149 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FILE=$tool_specified" >&5 7150 $as_echo "$as_me: Will use user supplied tool FILE=$tool_specified" >&6;} 7151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FILE" >&5 7152 $as_echo_n "checking for FILE... " >&6; } 7153 if test ! -x "$tool_specified"; then 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7155 $as_echo "not found" >&6; } 7156 as_fn_error $? "User supplied tool FILE=$tool_specified does not exist or is not executable" "$LINENO" 5 7157 fi 7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7159 $as_echo "$tool_specified" >&6; } 7160 fi 7161 fi 7162 fi 7163 7164 7165 7166 if test "x$FILE" = x; then 7167 as_fn_error $? "Could not find required tool for FILE" "$LINENO" 5 7168 fi 7169 7170 7171 7172 7173 7174 # Publish this variable in the help. 7175 7176 7177 if test "x$FIND" = x; then 7178 # The variable is not set by user, try to locate tool using the code snippet 7179 for ac_prog in find 7180 do 7181 # Extract the first word of "$ac_prog", so it can be a program name with args. 7182 set dummy $ac_prog; ac_word=$2 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7184 $as_echo_n "checking for $ac_word... " >&6; } 7185 if ${ac_cv_path_FIND+:} false; then : 7186 $as_echo_n "(cached) " >&6 7187 else 7188 case $FIND in 7189 [\\/]* | ?:[\\/]*) 7190 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7191 ;; 7192 *) 7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7194 for as_dir in $PATH 7195 do 7196 IFS=$as_save_IFS 7197 test -z "$as_dir" && as_dir=. 7198 for ac_exec_ext in '' $ac_executable_extensions; do 7199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7200 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7202 break 2 7203 fi 7204 done 7205 done 7206 IFS=$as_save_IFS 7207 7208 ;; 7209 esac 7210 fi 7211 FIND=$ac_cv_path_FIND 7212 if test -n "$FIND"; then 7213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7214 $as_echo "$FIND" >&6; } 7215 else 7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7217 $as_echo "no" >&6; } 7218 fi 7219 7220 7221 test -n "$FIND" && break 7222 done 7223 7224 else 7225 # The variable is set, but is it from the command line or the environment? 7226 7227 # Try to remove the string !FIND! from our list. 7228 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FIND!/} 7229 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7230 # If it failed, the variable was not from the command line. Ignore it, 7231 # but warn the user (except for BASH, which is always set by the calling BASH). 7232 if test "xFIND" != xBASH; then 7233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&5 7234 $as_echo "$as_me: WARNING: Ignoring value of FIND from the environment. Use command line variables instead." >&2;} 7235 fi 7236 # Try to locate tool using the code snippet 7237 for ac_prog in find 7238 do 7239 # Extract the first word of "$ac_prog", so it can be a program name with args. 7240 set dummy $ac_prog; ac_word=$2 7241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7242 $as_echo_n "checking for $ac_word... " >&6; } 7243 if ${ac_cv_path_FIND+:} false; then : 7244 $as_echo_n "(cached) " >&6 7245 else 7246 case $FIND in 7247 [\\/]* | ?:[\\/]*) 7248 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7249 ;; 7250 *) 7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7252 for as_dir in $PATH 7253 do 7254 IFS=$as_save_IFS 7255 test -z "$as_dir" && as_dir=. 7256 for ac_exec_ext in '' $ac_executable_extensions; do 7257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7258 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7260 break 2 7261 fi 7262 done 7263 done 7264 IFS=$as_save_IFS 7265 7266 ;; 7267 esac 7268 fi 7269 FIND=$ac_cv_path_FIND 7270 if test -n "$FIND"; then 7271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7272 $as_echo "$FIND" >&6; } 7273 else 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7275 $as_echo "no" >&6; } 7276 fi 7277 7278 7279 test -n "$FIND" && break 7280 done 7281 7282 else 7283 # If it succeeded, then it was overridden by the user. We will use it 7284 # for the tool. 7285 7286 # First remove it from the list of overridden variables, so we can test 7287 # for unknown variables in the end. 7288 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7289 7290 # Check if the provided tool contains a complete path. 7291 tool_specified="$FIND" 7292 tool_basename="${tool_specified##*/}" 7293 if test "x$tool_basename" = "x$tool_specified"; then 7294 # A command without a complete path is provided, search $PATH. 7295 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FIND=$tool_basename" >&5 7296 $as_echo "$as_me: Will search for user supplied tool FIND=$tool_basename" >&6;} 7297 # Extract the first word of "$tool_basename", so it can be a program name with args. 7298 set dummy $tool_basename; ac_word=$2 7299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7300 $as_echo_n "checking for $ac_word... " >&6; } 7301 if ${ac_cv_path_FIND+:} false; then : 7302 $as_echo_n "(cached) " >&6 7303 else 7304 case $FIND in 7305 [\\/]* | ?:[\\/]*) 7306 ac_cv_path_FIND="$FIND" # Let the user override the test with a path. 7307 ;; 7308 *) 7309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7310 for as_dir in $PATH 7311 do 7312 IFS=$as_save_IFS 7313 test -z "$as_dir" && as_dir=. 7314 for ac_exec_ext in '' $ac_executable_extensions; do 7315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7316 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext" 7317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7318 break 2 7319 fi 7320 done 7321 done 7322 IFS=$as_save_IFS 7323 7324 ;; 7325 esac 7326 fi 7327 FIND=$ac_cv_path_FIND 7328 if test -n "$FIND"; then 7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5 7330 $as_echo "$FIND" >&6; } 7331 else 7332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7333 $as_echo "no" >&6; } 7334 fi 7335 7336 7337 if test "x$FIND" = x; then 7338 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7339 fi 7340 else 7341 # Otherwise we believe it is a complete path. Use it as it is. 7342 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FIND=$tool_specified" >&5 7343 $as_echo "$as_me: Will use user supplied tool FIND=$tool_specified" >&6;} 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIND" >&5 7345 $as_echo_n "checking for FIND... " >&6; } 7346 if test ! -x "$tool_specified"; then 7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7348 $as_echo "not found" >&6; } 7349 as_fn_error $? "User supplied tool FIND=$tool_specified does not exist or is not executable" "$LINENO" 5 7350 fi 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7352 $as_echo "$tool_specified" >&6; } 7353 fi 7354 fi 7355 fi 7356 7357 7358 7359 if test "x$FIND" = x; then 7360 as_fn_error $? "Could not find required tool for FIND" "$LINENO" 5 7361 fi 7362 7363 7364 7365 7366 7367 # Publish this variable in the help. 7368 7369 7370 if test "x$HEAD" = x; then 7371 # The variable is not set by user, try to locate tool using the code snippet 7372 for ac_prog in head 7373 do 7374 # Extract the first word of "$ac_prog", so it can be a program name with args. 7375 set dummy $ac_prog; ac_word=$2 7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7377 $as_echo_n "checking for $ac_word... " >&6; } 7378 if ${ac_cv_path_HEAD+:} false; then : 7379 $as_echo_n "(cached) " >&6 7380 else 7381 case $HEAD in 7382 [\\/]* | ?:[\\/]*) 7383 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7384 ;; 7385 *) 7386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7387 for as_dir in $PATH 7388 do 7389 IFS=$as_save_IFS 7390 test -z "$as_dir" && as_dir=. 7391 for ac_exec_ext in '' $ac_executable_extensions; do 7392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7393 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7395 break 2 7396 fi 7397 done 7398 done 7399 IFS=$as_save_IFS 7400 7401 ;; 7402 esac 7403 fi 7404 HEAD=$ac_cv_path_HEAD 7405 if test -n "$HEAD"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7407 $as_echo "$HEAD" >&6; } 7408 else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410 $as_echo "no" >&6; } 7411 fi 7412 7413 7414 test -n "$HEAD" && break 7415 done 7416 7417 else 7418 # The variable is set, but is it from the command line or the environment? 7419 7420 # Try to remove the string !HEAD! from our list. 7421 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HEAD!/} 7422 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7423 # If it failed, the variable was not from the command line. Ignore it, 7424 # but warn the user (except for BASH, which is always set by the calling BASH). 7425 if test "xHEAD" != xBASH; then 7426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&5 7427 $as_echo "$as_me: WARNING: Ignoring value of HEAD from the environment. Use command line variables instead." >&2;} 7428 fi 7429 # Try to locate tool using the code snippet 7430 for ac_prog in head 7431 do 7432 # Extract the first word of "$ac_prog", so it can be a program name with args. 7433 set dummy $ac_prog; ac_word=$2 7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7435 $as_echo_n "checking for $ac_word... " >&6; } 7436 if ${ac_cv_path_HEAD+:} false; then : 7437 $as_echo_n "(cached) " >&6 7438 else 7439 case $HEAD in 7440 [\\/]* | ?:[\\/]*) 7441 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7442 ;; 7443 *) 7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7445 for as_dir in $PATH 7446 do 7447 IFS=$as_save_IFS 7448 test -z "$as_dir" && as_dir=. 7449 for ac_exec_ext in '' $ac_executable_extensions; do 7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7451 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7453 break 2 7454 fi 7455 done 7456 done 7457 IFS=$as_save_IFS 7458 7459 ;; 7460 esac 7461 fi 7462 HEAD=$ac_cv_path_HEAD 7463 if test -n "$HEAD"; then 7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7465 $as_echo "$HEAD" >&6; } 7466 else 7467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7468 $as_echo "no" >&6; } 7469 fi 7470 7471 7472 test -n "$HEAD" && break 7473 done 7474 7475 else 7476 # If it succeeded, then it was overridden by the user. We will use it 7477 # for the tool. 7478 7479 # First remove it from the list of overridden variables, so we can test 7480 # for unknown variables in the end. 7481 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7482 7483 # Check if the provided tool contains a complete path. 7484 tool_specified="$HEAD" 7485 tool_basename="${tool_specified##*/}" 7486 if test "x$tool_basename" = "x$tool_specified"; then 7487 # A command without a complete path is provided, search $PATH. 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HEAD=$tool_basename" >&5 7489 $as_echo "$as_me: Will search for user supplied tool HEAD=$tool_basename" >&6;} 7490 # Extract the first word of "$tool_basename", so it can be a program name with args. 7491 set dummy $tool_basename; ac_word=$2 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7493 $as_echo_n "checking for $ac_word... " >&6; } 7494 if ${ac_cv_path_HEAD+:} false; then : 7495 $as_echo_n "(cached) " >&6 7496 else 7497 case $HEAD in 7498 [\\/]* | ?:[\\/]*) 7499 ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path. 7500 ;; 7501 *) 7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7503 for as_dir in $PATH 7504 do 7505 IFS=$as_save_IFS 7506 test -z "$as_dir" && as_dir=. 7507 for ac_exec_ext in '' $ac_executable_extensions; do 7508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7509 ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext" 7510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7511 break 2 7512 fi 7513 done 7514 done 7515 IFS=$as_save_IFS 7516 7517 ;; 7518 esac 7519 fi 7520 HEAD=$ac_cv_path_HEAD 7521 if test -n "$HEAD"; then 7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5 7523 $as_echo "$HEAD" >&6; } 7524 else 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7526 $as_echo "no" >&6; } 7527 fi 7528 7529 7530 if test "x$HEAD" = x; then 7531 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7532 fi 7533 else 7534 # Otherwise we believe it is a complete path. Use it as it is. 7535 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HEAD=$tool_specified" >&5 7536 $as_echo "$as_me: Will use user supplied tool HEAD=$tool_specified" >&6;} 7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HEAD" >&5 7538 $as_echo_n "checking for HEAD... " >&6; } 7539 if test ! -x "$tool_specified"; then 7540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7541 $as_echo "not found" >&6; } 7542 as_fn_error $? "User supplied tool HEAD=$tool_specified does not exist or is not executable" "$LINENO" 5 7543 fi 7544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7545 $as_echo "$tool_specified" >&6; } 7546 fi 7547 fi 7548 fi 7549 7550 7551 7552 if test "x$HEAD" = x; then 7553 as_fn_error $? "Could not find required tool for HEAD" "$LINENO" 5 7554 fi 7555 7556 7557 7558 7559 7560 # Publish this variable in the help. 7561 7562 7563 if test "x$LN" = x; then 7564 # The variable is not set by user, try to locate tool using the code snippet 7565 for ac_prog in ln 7566 do 7567 # Extract the first word of "$ac_prog", so it can be a program name with args. 7568 set dummy $ac_prog; ac_word=$2 7569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7570 $as_echo_n "checking for $ac_word... " >&6; } 7571 if ${ac_cv_path_LN+:} false; then : 7572 $as_echo_n "(cached) " >&6 7573 else 7574 case $LN in 7575 [\\/]* | ?:[\\/]*) 7576 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7577 ;; 7578 *) 7579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7580 for as_dir in $PATH 7581 do 7582 IFS=$as_save_IFS 7583 test -z "$as_dir" && as_dir=. 7584 for ac_exec_ext in '' $ac_executable_extensions; do 7585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7586 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7588 break 2 7589 fi 7590 done 7591 done 7592 IFS=$as_save_IFS 7593 7594 ;; 7595 esac 7596 fi 7597 LN=$ac_cv_path_LN 7598 if test -n "$LN"; then 7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7600 $as_echo "$LN" >&6; } 7601 else 7602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7603 $as_echo "no" >&6; } 7604 fi 7605 7606 7607 test -n "$LN" && break 7608 done 7609 7610 else 7611 # The variable is set, but is it from the command line or the environment? 7612 7613 # Try to remove the string !LN! from our list. 7614 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LN!/} 7615 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7616 # If it failed, the variable was not from the command line. Ignore it, 7617 # but warn the user (except for BASH, which is always set by the calling BASH). 7618 if test "xLN" != xBASH; then 7619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&5 7620 $as_echo "$as_me: WARNING: Ignoring value of LN from the environment. Use command line variables instead." >&2;} 7621 fi 7622 # Try to locate tool using the code snippet 7623 for ac_prog in ln 7624 do 7625 # Extract the first word of "$ac_prog", so it can be a program name with args. 7626 set dummy $ac_prog; ac_word=$2 7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7628 $as_echo_n "checking for $ac_word... " >&6; } 7629 if ${ac_cv_path_LN+:} false; then : 7630 $as_echo_n "(cached) " >&6 7631 else 7632 case $LN in 7633 [\\/]* | ?:[\\/]*) 7634 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7635 ;; 7636 *) 7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7638 for as_dir in $PATH 7639 do 7640 IFS=$as_save_IFS 7641 test -z "$as_dir" && as_dir=. 7642 for ac_exec_ext in '' $ac_executable_extensions; do 7643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7644 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7646 break 2 7647 fi 7648 done 7649 done 7650 IFS=$as_save_IFS 7651 7652 ;; 7653 esac 7654 fi 7655 LN=$ac_cv_path_LN 7656 if test -n "$LN"; then 7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7658 $as_echo "$LN" >&6; } 7659 else 7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7661 $as_echo "no" >&6; } 7662 fi 7663 7664 7665 test -n "$LN" && break 7666 done 7667 7668 else 7669 # If it succeeded, then it was overridden by the user. We will use it 7670 # for the tool. 7671 7672 # First remove it from the list of overridden variables, so we can test 7673 # for unknown variables in the end. 7674 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7675 7676 # Check if the provided tool contains a complete path. 7677 tool_specified="$LN" 7678 tool_basename="${tool_specified##*/}" 7679 if test "x$tool_basename" = "x$tool_specified"; then 7680 # A command without a complete path is provided, search $PATH. 7681 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LN=$tool_basename" >&5 7682 $as_echo "$as_me: Will search for user supplied tool LN=$tool_basename" >&6;} 7683 # Extract the first word of "$tool_basename", so it can be a program name with args. 7684 set dummy $tool_basename; ac_word=$2 7685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7686 $as_echo_n "checking for $ac_word... " >&6; } 7687 if ${ac_cv_path_LN+:} false; then : 7688 $as_echo_n "(cached) " >&6 7689 else 7690 case $LN in 7691 [\\/]* | ?:[\\/]*) 7692 ac_cv_path_LN="$LN" # Let the user override the test with a path. 7693 ;; 7694 *) 7695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7696 for as_dir in $PATH 7697 do 7698 IFS=$as_save_IFS 7699 test -z "$as_dir" && as_dir=. 7700 for ac_exec_ext in '' $ac_executable_extensions; do 7701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7702 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext" 7703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7704 break 2 7705 fi 7706 done 7707 done 7708 IFS=$as_save_IFS 7709 7710 ;; 7711 esac 7712 fi 7713 LN=$ac_cv_path_LN 7714 if test -n "$LN"; then 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5 7716 $as_echo "$LN" >&6; } 7717 else 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7719 $as_echo "no" >&6; } 7720 fi 7721 7722 7723 if test "x$LN" = x; then 7724 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7725 fi 7726 else 7727 # Otherwise we believe it is a complete path. Use it as it is. 7728 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LN=$tool_specified" >&5 7729 $as_echo "$as_me: Will use user supplied tool LN=$tool_specified" >&6;} 7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LN" >&5 7731 $as_echo_n "checking for LN... " >&6; } 7732 if test ! -x "$tool_specified"; then 7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7734 $as_echo "not found" >&6; } 7735 as_fn_error $? "User supplied tool LN=$tool_specified does not exist or is not executable" "$LINENO" 5 7736 fi 7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7738 $as_echo "$tool_specified" >&6; } 7739 fi 7740 fi 7741 fi 7742 7743 7744 7745 if test "x$LN" = x; then 7746 as_fn_error $? "Could not find required tool for LN" "$LINENO" 5 7747 fi 7748 7749 7750 7751 7752 7753 # Publish this variable in the help. 7754 7755 7756 if test "x$LS" = x; then 7757 # The variable is not set by user, try to locate tool using the code snippet 7758 for ac_prog in ls 7759 do 7760 # Extract the first word of "$ac_prog", so it can be a program name with args. 7761 set dummy $ac_prog; ac_word=$2 7762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7763 $as_echo_n "checking for $ac_word... " >&6; } 7764 if ${ac_cv_path_LS+:} false; then : 7765 $as_echo_n "(cached) " >&6 7766 else 7767 case $LS in 7768 [\\/]* | ?:[\\/]*) 7769 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7770 ;; 7771 *) 7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7773 for as_dir in $PATH 7774 do 7775 IFS=$as_save_IFS 7776 test -z "$as_dir" && as_dir=. 7777 for ac_exec_ext in '' $ac_executable_extensions; do 7778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7779 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7781 break 2 7782 fi 7783 done 7784 done 7785 IFS=$as_save_IFS 7786 7787 ;; 7788 esac 7789 fi 7790 LS=$ac_cv_path_LS 7791 if test -n "$LS"; then 7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7793 $as_echo "$LS" >&6; } 7794 else 7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7796 $as_echo "no" >&6; } 7797 fi 7798 7799 7800 test -n "$LS" && break 7801 done 7802 7803 else 7804 # The variable is set, but is it from the command line or the environment? 7805 7806 # Try to remove the string !LS! from our list. 7807 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LS!/} 7808 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 7809 # If it failed, the variable was not from the command line. Ignore it, 7810 # but warn the user (except for BASH, which is always set by the calling BASH). 7811 if test "xLS" != xBASH; then 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&5 7813 $as_echo "$as_me: WARNING: Ignoring value of LS from the environment. Use command line variables instead." >&2;} 7814 fi 7815 # Try to locate tool using the code snippet 7816 for ac_prog in ls 7817 do 7818 # Extract the first word of "$ac_prog", so it can be a program name with args. 7819 set dummy $ac_prog; ac_word=$2 7820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7821 $as_echo_n "checking for $ac_word... " >&6; } 7822 if ${ac_cv_path_LS+:} false; then : 7823 $as_echo_n "(cached) " >&6 7824 else 7825 case $LS in 7826 [\\/]* | ?:[\\/]*) 7827 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7828 ;; 7829 *) 7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7831 for as_dir in $PATH 7832 do 7833 IFS=$as_save_IFS 7834 test -z "$as_dir" && as_dir=. 7835 for ac_exec_ext in '' $ac_executable_extensions; do 7836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7837 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7839 break 2 7840 fi 7841 done 7842 done 7843 IFS=$as_save_IFS 7844 7845 ;; 7846 esac 7847 fi 7848 LS=$ac_cv_path_LS 7849 if test -n "$LS"; then 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7851 $as_echo "$LS" >&6; } 7852 else 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7854 $as_echo "no" >&6; } 7855 fi 7856 7857 7858 test -n "$LS" && break 7859 done 7860 7861 else 7862 # If it succeeded, then it was overridden by the user. We will use it 7863 # for the tool. 7864 7865 # First remove it from the list of overridden variables, so we can test 7866 # for unknown variables in the end. 7867 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 7868 7869 # Check if the provided tool contains a complete path. 7870 tool_specified="$LS" 7871 tool_basename="${tool_specified##*/}" 7872 if test "x$tool_basename" = "x$tool_specified"; then 7873 # A command without a complete path is provided, search $PATH. 7874 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LS=$tool_basename" >&5 7875 $as_echo "$as_me: Will search for user supplied tool LS=$tool_basename" >&6;} 7876 # Extract the first word of "$tool_basename", so it can be a program name with args. 7877 set dummy $tool_basename; ac_word=$2 7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7879 $as_echo_n "checking for $ac_word... " >&6; } 7880 if ${ac_cv_path_LS+:} false; then : 7881 $as_echo_n "(cached) " >&6 7882 else 7883 case $LS in 7884 [\\/]* | ?:[\\/]*) 7885 ac_cv_path_LS="$LS" # Let the user override the test with a path. 7886 ;; 7887 *) 7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889 for as_dir in $PATH 7890 do 7891 IFS=$as_save_IFS 7892 test -z "$as_dir" && as_dir=. 7893 for ac_exec_ext in '' $ac_executable_extensions; do 7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext" 7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 break 2 7898 fi 7899 done 7900 done 7901 IFS=$as_save_IFS 7902 7903 ;; 7904 esac 7905 fi 7906 LS=$ac_cv_path_LS 7907 if test -n "$LS"; then 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5 7909 $as_echo "$LS" >&6; } 7910 else 7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7912 $as_echo "no" >&6; } 7913 fi 7914 7915 7916 if test "x$LS" = x; then 7917 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 7918 fi 7919 else 7920 # Otherwise we believe it is a complete path. Use it as it is. 7921 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LS=$tool_specified" >&5 7922 $as_echo "$as_me: Will use user supplied tool LS=$tool_specified" >&6;} 7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LS" >&5 7924 $as_echo_n "checking for LS... " >&6; } 7925 if test ! -x "$tool_specified"; then 7926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 7927 $as_echo "not found" >&6; } 7928 as_fn_error $? "User supplied tool LS=$tool_specified does not exist or is not executable" "$LINENO" 5 7929 fi 7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 7931 $as_echo "$tool_specified" >&6; } 7932 fi 7933 fi 7934 fi 7935 7936 7937 7938 if test "x$LS" = x; then 7939 as_fn_error $? "Could not find required tool for LS" "$LINENO" 5 7940 fi 7941 7942 7943 7944 7945 7946 # Publish this variable in the help. 7947 7948 7949 if test "x$MKDIR" = x; then 7950 # The variable is not set by user, try to locate tool using the code snippet 7951 for ac_prog in mkdir 7952 do 7953 # Extract the first word of "$ac_prog", so it can be a program name with args. 7954 set dummy $ac_prog; ac_word=$2 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7956 $as_echo_n "checking for $ac_word... " >&6; } 7957 if ${ac_cv_path_MKDIR+:} false; then : 7958 $as_echo_n "(cached) " >&6 7959 else 7960 case $MKDIR in 7961 [\\/]* | ?:[\\/]*) 7962 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 7963 ;; 7964 *) 7965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7966 for as_dir in $PATH 7967 do 7968 IFS=$as_save_IFS 7969 test -z "$as_dir" && as_dir=. 7970 for ac_exec_ext in '' $ac_executable_extensions; do 7971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7972 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 7973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7974 break 2 7975 fi 7976 done 7977 done 7978 IFS=$as_save_IFS 7979 7980 ;; 7981 esac 7982 fi 7983 MKDIR=$ac_cv_path_MKDIR 7984 if test -n "$MKDIR"; then 7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 7986 $as_echo "$MKDIR" >&6; } 7987 else 7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7989 $as_echo "no" >&6; } 7990 fi 7991 7992 7993 test -n "$MKDIR" && break 7994 done 7995 7996 else 7997 # The variable is set, but is it from the command line or the environment? 7998 7999 # Try to remove the string !MKDIR! from our list. 8000 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKDIR!/} 8001 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8002 # If it failed, the variable was not from the command line. Ignore it, 8003 # but warn the user (except for BASH, which is always set by the calling BASH). 8004 if test "xMKDIR" != xBASH; then 8005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&5 8006 $as_echo "$as_me: WARNING: Ignoring value of MKDIR from the environment. Use command line variables instead." >&2;} 8007 fi 8008 # Try to locate tool using the code snippet 8009 for ac_prog in mkdir 8010 do 8011 # Extract the first word of "$ac_prog", so it can be a program name with args. 8012 set dummy $ac_prog; ac_word=$2 8013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8014 $as_echo_n "checking for $ac_word... " >&6; } 8015 if ${ac_cv_path_MKDIR+:} false; then : 8016 $as_echo_n "(cached) " >&6 8017 else 8018 case $MKDIR in 8019 [\\/]* | ?:[\\/]*) 8020 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8021 ;; 8022 *) 8023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8024 for as_dir in $PATH 8025 do 8026 IFS=$as_save_IFS 8027 test -z "$as_dir" && as_dir=. 8028 for ac_exec_ext in '' $ac_executable_extensions; do 8029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8030 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8032 break 2 8033 fi 8034 done 8035 done 8036 IFS=$as_save_IFS 8037 8038 ;; 8039 esac 8040 fi 8041 MKDIR=$ac_cv_path_MKDIR 8042 if test -n "$MKDIR"; then 8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8044 $as_echo "$MKDIR" >&6; } 8045 else 8046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8047 $as_echo "no" >&6; } 8048 fi 8049 8050 8051 test -n "$MKDIR" && break 8052 done 8053 8054 else 8055 # If it succeeded, then it was overridden by the user. We will use it 8056 # for the tool. 8057 8058 # First remove it from the list of overridden variables, so we can test 8059 # for unknown variables in the end. 8060 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8061 8062 # Check if the provided tool contains a complete path. 8063 tool_specified="$MKDIR" 8064 tool_basename="${tool_specified##*/}" 8065 if test "x$tool_basename" = "x$tool_specified"; then 8066 # A command without a complete path is provided, search $PATH. 8067 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKDIR=$tool_basename" >&5 8068 $as_echo "$as_me: Will search for user supplied tool MKDIR=$tool_basename" >&6;} 8069 # Extract the first word of "$tool_basename", so it can be a program name with args. 8070 set dummy $tool_basename; ac_word=$2 8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8072 $as_echo_n "checking for $ac_word... " >&6; } 8073 if ${ac_cv_path_MKDIR+:} false; then : 8074 $as_echo_n "(cached) " >&6 8075 else 8076 case $MKDIR in 8077 [\\/]* | ?:[\\/]*) 8078 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path. 8079 ;; 8080 *) 8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8082 for as_dir in $PATH 8083 do 8084 IFS=$as_save_IFS 8085 test -z "$as_dir" && as_dir=. 8086 for ac_exec_ext in '' $ac_executable_extensions; do 8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8088 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext" 8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8090 break 2 8091 fi 8092 done 8093 done 8094 IFS=$as_save_IFS 8095 8096 ;; 8097 esac 8098 fi 8099 MKDIR=$ac_cv_path_MKDIR 8100 if test -n "$MKDIR"; then 8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5 8102 $as_echo "$MKDIR" >&6; } 8103 else 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8105 $as_echo "no" >&6; } 8106 fi 8107 8108 8109 if test "x$MKDIR" = x; then 8110 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8111 fi 8112 else 8113 # Otherwise we believe it is a complete path. Use it as it is. 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKDIR=$tool_specified" >&5 8115 $as_echo "$as_me: Will use user supplied tool MKDIR=$tool_specified" >&6;} 8116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKDIR" >&5 8117 $as_echo_n "checking for MKDIR... " >&6; } 8118 if test ! -x "$tool_specified"; then 8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8120 $as_echo "not found" >&6; } 8121 as_fn_error $? "User supplied tool MKDIR=$tool_specified does not exist or is not executable" "$LINENO" 5 8122 fi 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8124 $as_echo "$tool_specified" >&6; } 8125 fi 8126 fi 8127 fi 8128 8129 8130 8131 if test "x$MKDIR" = x; then 8132 as_fn_error $? "Could not find required tool for MKDIR" "$LINENO" 5 8133 fi 8134 8135 8136 8137 8138 8139 # Publish this variable in the help. 8140 8141 8142 if test "x$MKTEMP" = x; then 8143 # The variable is not set by user, try to locate tool using the code snippet 8144 for ac_prog in mktemp 8145 do 8146 # Extract the first word of "$ac_prog", so it can be a program name with args. 8147 set dummy $ac_prog; ac_word=$2 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8149 $as_echo_n "checking for $ac_word... " >&6; } 8150 if ${ac_cv_path_MKTEMP+:} false; then : 8151 $as_echo_n "(cached) " >&6 8152 else 8153 case $MKTEMP in 8154 [\\/]* | ?:[\\/]*) 8155 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8156 ;; 8157 *) 8158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8159 for as_dir in $PATH 8160 do 8161 IFS=$as_save_IFS 8162 test -z "$as_dir" && as_dir=. 8163 for ac_exec_ext in '' $ac_executable_extensions; do 8164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8165 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8167 break 2 8168 fi 8169 done 8170 done 8171 IFS=$as_save_IFS 8172 8173 ;; 8174 esac 8175 fi 8176 MKTEMP=$ac_cv_path_MKTEMP 8177 if test -n "$MKTEMP"; then 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8179 $as_echo "$MKTEMP" >&6; } 8180 else 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8182 $as_echo "no" >&6; } 8183 fi 8184 8185 8186 test -n "$MKTEMP" && break 8187 done 8188 8189 else 8190 # The variable is set, but is it from the command line or the environment? 8191 8192 # Try to remove the string !MKTEMP! from our list. 8193 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MKTEMP!/} 8194 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8195 # If it failed, the variable was not from the command line. Ignore it, 8196 # but warn the user (except for BASH, which is always set by the calling BASH). 8197 if test "xMKTEMP" != xBASH; then 8198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&5 8199 $as_echo "$as_me: WARNING: Ignoring value of MKTEMP from the environment. Use command line variables instead." >&2;} 8200 fi 8201 # Try to locate tool using the code snippet 8202 for ac_prog in mktemp 8203 do 8204 # Extract the first word of "$ac_prog", so it can be a program name with args. 8205 set dummy $ac_prog; ac_word=$2 8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8207 $as_echo_n "checking for $ac_word... " >&6; } 8208 if ${ac_cv_path_MKTEMP+:} false; then : 8209 $as_echo_n "(cached) " >&6 8210 else 8211 case $MKTEMP in 8212 [\\/]* | ?:[\\/]*) 8213 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8214 ;; 8215 *) 8216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8217 for as_dir in $PATH 8218 do 8219 IFS=$as_save_IFS 8220 test -z "$as_dir" && as_dir=. 8221 for ac_exec_ext in '' $ac_executable_extensions; do 8222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8223 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8225 break 2 8226 fi 8227 done 8228 done 8229 IFS=$as_save_IFS 8230 8231 ;; 8232 esac 8233 fi 8234 MKTEMP=$ac_cv_path_MKTEMP 8235 if test -n "$MKTEMP"; then 8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8237 $as_echo "$MKTEMP" >&6; } 8238 else 8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8240 $as_echo "no" >&6; } 8241 fi 8242 8243 8244 test -n "$MKTEMP" && break 8245 done 8246 8247 else 8248 # If it succeeded, then it was overridden by the user. We will use it 8249 # for the tool. 8250 8251 # First remove it from the list of overridden variables, so we can test 8252 # for unknown variables in the end. 8253 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8254 8255 # Check if the provided tool contains a complete path. 8256 tool_specified="$MKTEMP" 8257 tool_basename="${tool_specified##*/}" 8258 if test "x$tool_basename" = "x$tool_specified"; then 8259 # A command without a complete path is provided, search $PATH. 8260 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MKTEMP=$tool_basename" >&5 8261 $as_echo "$as_me: Will search for user supplied tool MKTEMP=$tool_basename" >&6;} 8262 # Extract the first word of "$tool_basename", so it can be a program name with args. 8263 set dummy $tool_basename; ac_word=$2 8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8265 $as_echo_n "checking for $ac_word... " >&6; } 8266 if ${ac_cv_path_MKTEMP+:} false; then : 8267 $as_echo_n "(cached) " >&6 8268 else 8269 case $MKTEMP in 8270 [\\/]* | ?:[\\/]*) 8271 ac_cv_path_MKTEMP="$MKTEMP" # Let the user override the test with a path. 8272 ;; 8273 *) 8274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8275 for as_dir in $PATH 8276 do 8277 IFS=$as_save_IFS 8278 test -z "$as_dir" && as_dir=. 8279 for ac_exec_ext in '' $ac_executable_extensions; do 8280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8281 ac_cv_path_MKTEMP="$as_dir/$ac_word$ac_exec_ext" 8282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8283 break 2 8284 fi 8285 done 8286 done 8287 IFS=$as_save_IFS 8288 8289 ;; 8290 esac 8291 fi 8292 MKTEMP=$ac_cv_path_MKTEMP 8293 if test -n "$MKTEMP"; then 8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKTEMP" >&5 8295 $as_echo "$MKTEMP" >&6; } 8296 else 8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8298 $as_echo "no" >&6; } 8299 fi 8300 8301 8302 if test "x$MKTEMP" = x; then 8303 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8304 fi 8305 else 8306 # Otherwise we believe it is a complete path. Use it as it is. 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MKTEMP=$tool_specified" >&5 8308 $as_echo "$as_me: Will use user supplied tool MKTEMP=$tool_specified" >&6;} 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MKTEMP" >&5 8310 $as_echo_n "checking for MKTEMP... " >&6; } 8311 if test ! -x "$tool_specified"; then 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8313 $as_echo "not found" >&6; } 8314 as_fn_error $? "User supplied tool MKTEMP=$tool_specified does not exist or is not executable" "$LINENO" 5 8315 fi 8316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8317 $as_echo "$tool_specified" >&6; } 8318 fi 8319 fi 8320 fi 8321 8322 8323 8324 if test "x$MKTEMP" = x; then 8325 as_fn_error $? "Could not find required tool for MKTEMP" "$LINENO" 5 8326 fi 8327 8328 8329 8330 8331 8332 # Publish this variable in the help. 8333 8334 8335 if test "x$MV" = x; then 8336 # The variable is not set by user, try to locate tool using the code snippet 8337 for ac_prog in mv 8338 do 8339 # Extract the first word of "$ac_prog", so it can be a program name with args. 8340 set dummy $ac_prog; ac_word=$2 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8342 $as_echo_n "checking for $ac_word... " >&6; } 8343 if ${ac_cv_path_MV+:} false; then : 8344 $as_echo_n "(cached) " >&6 8345 else 8346 case $MV in 8347 [\\/]* | ?:[\\/]*) 8348 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8349 ;; 8350 *) 8351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8352 for as_dir in $PATH 8353 do 8354 IFS=$as_save_IFS 8355 test -z "$as_dir" && as_dir=. 8356 for ac_exec_ext in '' $ac_executable_extensions; do 8357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8358 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8359 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8360 break 2 8361 fi 8362 done 8363 done 8364 IFS=$as_save_IFS 8365 8366 ;; 8367 esac 8368 fi 8369 MV=$ac_cv_path_MV 8370 if test -n "$MV"; then 8371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8372 $as_echo "$MV" >&6; } 8373 else 8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8375 $as_echo "no" >&6; } 8376 fi 8377 8378 8379 test -n "$MV" && break 8380 done 8381 8382 else 8383 # The variable is set, but is it from the command line or the environment? 8384 8385 # Try to remove the string !MV! from our list. 8386 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MV!/} 8387 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8388 # If it failed, the variable was not from the command line. Ignore it, 8389 # but warn the user (except for BASH, which is always set by the calling BASH). 8390 if test "xMV" != xBASH; then 8391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&5 8392 $as_echo "$as_me: WARNING: Ignoring value of MV from the environment. Use command line variables instead." >&2;} 8393 fi 8394 # Try to locate tool using the code snippet 8395 for ac_prog in mv 8396 do 8397 # Extract the first word of "$ac_prog", so it can be a program name with args. 8398 set dummy $ac_prog; ac_word=$2 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8400 $as_echo_n "checking for $ac_word... " >&6; } 8401 if ${ac_cv_path_MV+:} false; then : 8402 $as_echo_n "(cached) " >&6 8403 else 8404 case $MV in 8405 [\\/]* | ?:[\\/]*) 8406 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8407 ;; 8408 *) 8409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8410 for as_dir in $PATH 8411 do 8412 IFS=$as_save_IFS 8413 test -z "$as_dir" && as_dir=. 8414 for ac_exec_ext in '' $ac_executable_extensions; do 8415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8416 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8418 break 2 8419 fi 8420 done 8421 done 8422 IFS=$as_save_IFS 8423 8424 ;; 8425 esac 8426 fi 8427 MV=$ac_cv_path_MV 8428 if test -n "$MV"; then 8429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8430 $as_echo "$MV" >&6; } 8431 else 8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8433 $as_echo "no" >&6; } 8434 fi 8435 8436 8437 test -n "$MV" && break 8438 done 8439 8440 else 8441 # If it succeeded, then it was overridden by the user. We will use it 8442 # for the tool. 8443 8444 # First remove it from the list of overridden variables, so we can test 8445 # for unknown variables in the end. 8446 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8447 8448 # Check if the provided tool contains a complete path. 8449 tool_specified="$MV" 8450 tool_basename="${tool_specified##*/}" 8451 if test "x$tool_basename" = "x$tool_specified"; then 8452 # A command without a complete path is provided, search $PATH. 8453 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MV=$tool_basename" >&5 8454 $as_echo "$as_me: Will search for user supplied tool MV=$tool_basename" >&6;} 8455 # Extract the first word of "$tool_basename", so it can be a program name with args. 8456 set dummy $tool_basename; ac_word=$2 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8458 $as_echo_n "checking for $ac_word... " >&6; } 8459 if ${ac_cv_path_MV+:} false; then : 8460 $as_echo_n "(cached) " >&6 8461 else 8462 case $MV in 8463 [\\/]* | ?:[\\/]*) 8464 ac_cv_path_MV="$MV" # Let the user override the test with a path. 8465 ;; 8466 *) 8467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8468 for as_dir in $PATH 8469 do 8470 IFS=$as_save_IFS 8471 test -z "$as_dir" && as_dir=. 8472 for ac_exec_ext in '' $ac_executable_extensions; do 8473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8474 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" 8475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8476 break 2 8477 fi 8478 done 8479 done 8480 IFS=$as_save_IFS 8481 8482 ;; 8483 esac 8484 fi 8485 MV=$ac_cv_path_MV 8486 if test -n "$MV"; then 8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5 8488 $as_echo "$MV" >&6; } 8489 else 8490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8491 $as_echo "no" >&6; } 8492 fi 8493 8494 8495 if test "x$MV" = x; then 8496 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8497 fi 8498 else 8499 # Otherwise we believe it is a complete path. Use it as it is. 8500 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MV=$tool_specified" >&5 8501 $as_echo "$as_me: Will use user supplied tool MV=$tool_specified" >&6;} 8502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MV" >&5 8503 $as_echo_n "checking for MV... " >&6; } 8504 if test ! -x "$tool_specified"; then 8505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8506 $as_echo "not found" >&6; } 8507 as_fn_error $? "User supplied tool MV=$tool_specified does not exist or is not executable" "$LINENO" 5 8508 fi 8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8510 $as_echo "$tool_specified" >&6; } 8511 fi 8512 fi 8513 fi 8514 8515 8516 8517 if test "x$MV" = x; then 8518 as_fn_error $? "Could not find required tool for MV" "$LINENO" 5 8519 fi 8520 8521 8522 8523 8524 8525 # Publish this variable in the help. 8526 8527 8528 if test "x$NAWK" = x; then 8529 # The variable is not set by user, try to locate tool using the code snippet 8530 for ac_prog in nawk gawk awk 8531 do 8532 # Extract the first word of "$ac_prog", so it can be a program name with args. 8533 set dummy $ac_prog; ac_word=$2 8534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8535 $as_echo_n "checking for $ac_word... " >&6; } 8536 if ${ac_cv_path_NAWK+:} false; then : 8537 $as_echo_n "(cached) " >&6 8538 else 8539 case $NAWK in 8540 [\\/]* | ?:[\\/]*) 8541 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8542 ;; 8543 *) 8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8545 for as_dir in $PATH 8546 do 8547 IFS=$as_save_IFS 8548 test -z "$as_dir" && as_dir=. 8549 for ac_exec_ext in '' $ac_executable_extensions; do 8550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8551 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8553 break 2 8554 fi 8555 done 8556 done 8557 IFS=$as_save_IFS 8558 8559 ;; 8560 esac 8561 fi 8562 NAWK=$ac_cv_path_NAWK 8563 if test -n "$NAWK"; then 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8565 $as_echo "$NAWK" >&6; } 8566 else 8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8568 $as_echo "no" >&6; } 8569 fi 8570 8571 8572 test -n "$NAWK" && break 8573 done 8574 8575 else 8576 # The variable is set, but is it from the command line or the environment? 8577 8578 # Try to remove the string !NAWK! from our list. 8579 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NAWK!/} 8580 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8581 # If it failed, the variable was not from the command line. Ignore it, 8582 # but warn the user (except for BASH, which is always set by the calling BASH). 8583 if test "xNAWK" != xBASH; then 8584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&5 8585 $as_echo "$as_me: WARNING: Ignoring value of NAWK from the environment. Use command line variables instead." >&2;} 8586 fi 8587 # Try to locate tool using the code snippet 8588 for ac_prog in nawk gawk awk 8589 do 8590 # Extract the first word of "$ac_prog", so it can be a program name with args. 8591 set dummy $ac_prog; ac_word=$2 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8593 $as_echo_n "checking for $ac_word... " >&6; } 8594 if ${ac_cv_path_NAWK+:} false; then : 8595 $as_echo_n "(cached) " >&6 8596 else 8597 case $NAWK in 8598 [\\/]* | ?:[\\/]*) 8599 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8600 ;; 8601 *) 8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8603 for as_dir in $PATH 8604 do 8605 IFS=$as_save_IFS 8606 test -z "$as_dir" && as_dir=. 8607 for ac_exec_ext in '' $ac_executable_extensions; do 8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8609 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8611 break 2 8612 fi 8613 done 8614 done 8615 IFS=$as_save_IFS 8616 8617 ;; 8618 esac 8619 fi 8620 NAWK=$ac_cv_path_NAWK 8621 if test -n "$NAWK"; then 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8623 $as_echo "$NAWK" >&6; } 8624 else 8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8626 $as_echo "no" >&6; } 8627 fi 8628 8629 8630 test -n "$NAWK" && break 8631 done 8632 8633 else 8634 # If it succeeded, then it was overridden by the user. We will use it 8635 # for the tool. 8636 8637 # First remove it from the list of overridden variables, so we can test 8638 # for unknown variables in the end. 8639 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8640 8641 # Check if the provided tool contains a complete path. 8642 tool_specified="$NAWK" 8643 tool_basename="${tool_specified##*/}" 8644 if test "x$tool_basename" = "x$tool_specified"; then 8645 # A command without a complete path is provided, search $PATH. 8646 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NAWK=$tool_basename" >&5 8647 $as_echo "$as_me: Will search for user supplied tool NAWK=$tool_basename" >&6;} 8648 # Extract the first word of "$tool_basename", so it can be a program name with args. 8649 set dummy $tool_basename; ac_word=$2 8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8651 $as_echo_n "checking for $ac_word... " >&6; } 8652 if ${ac_cv_path_NAWK+:} false; then : 8653 $as_echo_n "(cached) " >&6 8654 else 8655 case $NAWK in 8656 [\\/]* | ?:[\\/]*) 8657 ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path. 8658 ;; 8659 *) 8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8661 for as_dir in $PATH 8662 do 8663 IFS=$as_save_IFS 8664 test -z "$as_dir" && as_dir=. 8665 for ac_exec_ext in '' $ac_executable_extensions; do 8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8667 ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext" 8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8669 break 2 8670 fi 8671 done 8672 done 8673 IFS=$as_save_IFS 8674 8675 ;; 8676 esac 8677 fi 8678 NAWK=$ac_cv_path_NAWK 8679 if test -n "$NAWK"; then 8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5 8681 $as_echo "$NAWK" >&6; } 8682 else 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8684 $as_echo "no" >&6; } 8685 fi 8686 8687 8688 if test "x$NAWK" = x; then 8689 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8690 fi 8691 else 8692 # Otherwise we believe it is a complete path. Use it as it is. 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NAWK=$tool_specified" >&5 8694 $as_echo "$as_me: Will use user supplied tool NAWK=$tool_specified" >&6;} 8695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NAWK" >&5 8696 $as_echo_n "checking for NAWK... " >&6; } 8697 if test ! -x "$tool_specified"; then 8698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8699 $as_echo "not found" >&6; } 8700 as_fn_error $? "User supplied tool NAWK=$tool_specified does not exist or is not executable" "$LINENO" 5 8701 fi 8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8703 $as_echo "$tool_specified" >&6; } 8704 fi 8705 fi 8706 fi 8707 8708 8709 8710 if test "x$NAWK" = x; then 8711 as_fn_error $? "Could not find required tool for NAWK" "$LINENO" 5 8712 fi 8713 8714 8715 8716 8717 8718 # Publish this variable in the help. 8719 8720 8721 if test "x$PRINTF" = x; then 8722 # The variable is not set by user, try to locate tool using the code snippet 8723 for ac_prog in printf 8724 do 8725 # Extract the first word of "$ac_prog", so it can be a program name with args. 8726 set dummy $ac_prog; ac_word=$2 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8728 $as_echo_n "checking for $ac_word... " >&6; } 8729 if ${ac_cv_path_PRINTF+:} false; then : 8730 $as_echo_n "(cached) " >&6 8731 else 8732 case $PRINTF in 8733 [\\/]* | ?:[\\/]*) 8734 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8735 ;; 8736 *) 8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8738 for as_dir in $PATH 8739 do 8740 IFS=$as_save_IFS 8741 test -z "$as_dir" && as_dir=. 8742 for ac_exec_ext in '' $ac_executable_extensions; do 8743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8744 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8746 break 2 8747 fi 8748 done 8749 done 8750 IFS=$as_save_IFS 8751 8752 ;; 8753 esac 8754 fi 8755 PRINTF=$ac_cv_path_PRINTF 8756 if test -n "$PRINTF"; then 8757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8758 $as_echo "$PRINTF" >&6; } 8759 else 8760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8761 $as_echo "no" >&6; } 8762 fi 8763 8764 8765 test -n "$PRINTF" && break 8766 done 8767 8768 else 8769 # The variable is set, but is it from the command line or the environment? 8770 8771 # Try to remove the string !PRINTF! from our list. 8772 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!PRINTF!/} 8773 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8774 # If it failed, the variable was not from the command line. Ignore it, 8775 # but warn the user (except for BASH, which is always set by the calling BASH). 8776 if test "xPRINTF" != xBASH; then 8777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&5 8778 $as_echo "$as_me: WARNING: Ignoring value of PRINTF from the environment. Use command line variables instead." >&2;} 8779 fi 8780 # Try to locate tool using the code snippet 8781 for ac_prog in printf 8782 do 8783 # Extract the first word of "$ac_prog", so it can be a program name with args. 8784 set dummy $ac_prog; ac_word=$2 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8786 $as_echo_n "checking for $ac_word... " >&6; } 8787 if ${ac_cv_path_PRINTF+:} false; then : 8788 $as_echo_n "(cached) " >&6 8789 else 8790 case $PRINTF in 8791 [\\/]* | ?:[\\/]*) 8792 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8793 ;; 8794 *) 8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8796 for as_dir in $PATH 8797 do 8798 IFS=$as_save_IFS 8799 test -z "$as_dir" && as_dir=. 8800 for ac_exec_ext in '' $ac_executable_extensions; do 8801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8802 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8804 break 2 8805 fi 8806 done 8807 done 8808 IFS=$as_save_IFS 8809 8810 ;; 8811 esac 8812 fi 8813 PRINTF=$ac_cv_path_PRINTF 8814 if test -n "$PRINTF"; then 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8816 $as_echo "$PRINTF" >&6; } 8817 else 8818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8819 $as_echo "no" >&6; } 8820 fi 8821 8822 8823 test -n "$PRINTF" && break 8824 done 8825 8826 else 8827 # If it succeeded, then it was overridden by the user. We will use it 8828 # for the tool. 8829 8830 # First remove it from the list of overridden variables, so we can test 8831 # for unknown variables in the end. 8832 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 8833 8834 # Check if the provided tool contains a complete path. 8835 tool_specified="$PRINTF" 8836 tool_basename="${tool_specified##*/}" 8837 if test "x$tool_basename" = "x$tool_specified"; then 8838 # A command without a complete path is provided, search $PATH. 8839 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool PRINTF=$tool_basename" >&5 8840 $as_echo "$as_me: Will search for user supplied tool PRINTF=$tool_basename" >&6;} 8841 # Extract the first word of "$tool_basename", so it can be a program name with args. 8842 set dummy $tool_basename; ac_word=$2 8843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8844 $as_echo_n "checking for $ac_word... " >&6; } 8845 if ${ac_cv_path_PRINTF+:} false; then : 8846 $as_echo_n "(cached) " >&6 8847 else 8848 case $PRINTF in 8849 [\\/]* | ?:[\\/]*) 8850 ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path. 8851 ;; 8852 *) 8853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8854 for as_dir in $PATH 8855 do 8856 IFS=$as_save_IFS 8857 test -z "$as_dir" && as_dir=. 8858 for ac_exec_ext in '' $ac_executable_extensions; do 8859 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8860 ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext" 8861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8862 break 2 8863 fi 8864 done 8865 done 8866 IFS=$as_save_IFS 8867 8868 ;; 8869 esac 8870 fi 8871 PRINTF=$ac_cv_path_PRINTF 8872 if test -n "$PRINTF"; then 8873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5 8874 $as_echo "$PRINTF" >&6; } 8875 else 8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8877 $as_echo "no" >&6; } 8878 fi 8879 8880 8881 if test "x$PRINTF" = x; then 8882 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 8883 fi 8884 else 8885 # Otherwise we believe it is a complete path. Use it as it is. 8886 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool PRINTF=$tool_specified" >&5 8887 $as_echo "$as_me: Will use user supplied tool PRINTF=$tool_specified" >&6;} 8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PRINTF" >&5 8889 $as_echo_n "checking for PRINTF... " >&6; } 8890 if test ! -x "$tool_specified"; then 8891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 8892 $as_echo "not found" >&6; } 8893 as_fn_error $? "User supplied tool PRINTF=$tool_specified does not exist or is not executable" "$LINENO" 5 8894 fi 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 8896 $as_echo "$tool_specified" >&6; } 8897 fi 8898 fi 8899 fi 8900 8901 8902 8903 if test "x$PRINTF" = x; then 8904 as_fn_error $? "Could not find required tool for PRINTF" "$LINENO" 5 8905 fi 8906 8907 8908 8909 8910 8911 # Publish this variable in the help. 8912 8913 8914 if test "x$RM" = x; then 8915 # The variable is not set by user, try to locate tool using the code snippet 8916 for ac_prog in rm 8917 do 8918 # Extract the first word of "$ac_prog", so it can be a program name with args. 8919 set dummy $ac_prog; ac_word=$2 8920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8921 $as_echo_n "checking for $ac_word... " >&6; } 8922 if ${ac_cv_path_RM+:} false; then : 8923 $as_echo_n "(cached) " >&6 8924 else 8925 case $RM in 8926 [\\/]* | ?:[\\/]*) 8927 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8928 ;; 8929 *) 8930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8931 for as_dir in $PATH 8932 do 8933 IFS=$as_save_IFS 8934 test -z "$as_dir" && as_dir=. 8935 for ac_exec_ext in '' $ac_executable_extensions; do 8936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8937 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8939 break 2 8940 fi 8941 done 8942 done 8943 IFS=$as_save_IFS 8944 8945 ;; 8946 esac 8947 fi 8948 RM=$ac_cv_path_RM 8949 if test -n "$RM"; then 8950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 8951 $as_echo "$RM" >&6; } 8952 else 8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8954 $as_echo "no" >&6; } 8955 fi 8956 8957 8958 test -n "$RM" && break 8959 done 8960 8961 else 8962 # The variable is set, but is it from the command line or the environment? 8963 8964 # Try to remove the string !RM! from our list. 8965 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!RM!/} 8966 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 8967 # If it failed, the variable was not from the command line. Ignore it, 8968 # but warn the user (except for BASH, which is always set by the calling BASH). 8969 if test "xRM" != xBASH; then 8970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&5 8971 $as_echo "$as_me: WARNING: Ignoring value of RM from the environment. Use command line variables instead." >&2;} 8972 fi 8973 # Try to locate tool using the code snippet 8974 for ac_prog in rm 8975 do 8976 # Extract the first word of "$ac_prog", so it can be a program name with args. 8977 set dummy $ac_prog; ac_word=$2 8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8979 $as_echo_n "checking for $ac_word... " >&6; } 8980 if ${ac_cv_path_RM+:} false; then : 8981 $as_echo_n "(cached) " >&6 8982 else 8983 case $RM in 8984 [\\/]* | ?:[\\/]*) 8985 ac_cv_path_RM="$RM" # Let the user override the test with a path. 8986 ;; 8987 *) 8988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8989 for as_dir in $PATH 8990 do 8991 IFS=$as_save_IFS 8992 test -z "$as_dir" && as_dir=. 8993 for ac_exec_ext in '' $ac_executable_extensions; do 8994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8995 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 8996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8997 break 2 8998 fi 8999 done 9000 done 9001 IFS=$as_save_IFS 9002 9003 ;; 9004 esac 9005 fi 9006 RM=$ac_cv_path_RM 9007 if test -n "$RM"; then 9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9009 $as_echo "$RM" >&6; } 9010 else 9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9012 $as_echo "no" >&6; } 9013 fi 9014 9015 9016 test -n "$RM" && break 9017 done 9018 9019 else 9020 # If it succeeded, then it was overridden by the user. We will use it 9021 # for the tool. 9022 9023 # First remove it from the list of overridden variables, so we can test 9024 # for unknown variables in the end. 9025 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9026 9027 # Check if the provided tool contains a complete path. 9028 tool_specified="$RM" 9029 tool_basename="${tool_specified##*/}" 9030 if test "x$tool_basename" = "x$tool_specified"; then 9031 # A command without a complete path is provided, search $PATH. 9032 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool RM=$tool_basename" >&5 9033 $as_echo "$as_me: Will search for user supplied tool RM=$tool_basename" >&6;} 9034 # Extract the first word of "$tool_basename", so it can be a program name with args. 9035 set dummy $tool_basename; ac_word=$2 9036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9037 $as_echo_n "checking for $ac_word... " >&6; } 9038 if ${ac_cv_path_RM+:} false; then : 9039 $as_echo_n "(cached) " >&6 9040 else 9041 case $RM in 9042 [\\/]* | ?:[\\/]*) 9043 ac_cv_path_RM="$RM" # Let the user override the test with a path. 9044 ;; 9045 *) 9046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9047 for as_dir in $PATH 9048 do 9049 IFS=$as_save_IFS 9050 test -z "$as_dir" && as_dir=. 9051 for ac_exec_ext in '' $ac_executable_extensions; do 9052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9053 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" 9054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9055 break 2 9056 fi 9057 done 9058 done 9059 IFS=$as_save_IFS 9060 9061 ;; 9062 esac 9063 fi 9064 RM=$ac_cv_path_RM 9065 if test -n "$RM"; then 9066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5 9067 $as_echo "$RM" >&6; } 9068 else 9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9070 $as_echo "no" >&6; } 9071 fi 9072 9073 9074 if test "x$RM" = x; then 9075 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9076 fi 9077 else 9078 # Otherwise we believe it is a complete path. Use it as it is. 9079 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool RM=$tool_specified" >&5 9080 $as_echo "$as_me: Will use user supplied tool RM=$tool_specified" >&6;} 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RM" >&5 9082 $as_echo_n "checking for RM... " >&6; } 9083 if test ! -x "$tool_specified"; then 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9085 $as_echo "not found" >&6; } 9086 as_fn_error $? "User supplied tool RM=$tool_specified does not exist or is not executable" "$LINENO" 5 9087 fi 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9089 $as_echo "$tool_specified" >&6; } 9090 fi 9091 fi 9092 fi 9093 9094 9095 9096 if test "x$RM" = x; then 9097 as_fn_error $? "Could not find required tool for RM" "$LINENO" 5 9098 fi 9099 9100 9101 9102 9103 9104 # Publish this variable in the help. 9105 9106 9107 if test "x$SH" = x; then 9108 # The variable is not set by user, try to locate tool using the code snippet 9109 for ac_prog in sh 9110 do 9111 # Extract the first word of "$ac_prog", so it can be a program name with args. 9112 set dummy $ac_prog; ac_word=$2 9113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9114 $as_echo_n "checking for $ac_word... " >&6; } 9115 if ${ac_cv_path_SH+:} false; then : 9116 $as_echo_n "(cached) " >&6 9117 else 9118 case $SH in 9119 [\\/]* | ?:[\\/]*) 9120 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9121 ;; 9122 *) 9123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9124 for as_dir in $PATH 9125 do 9126 IFS=$as_save_IFS 9127 test -z "$as_dir" && as_dir=. 9128 for ac_exec_ext in '' $ac_executable_extensions; do 9129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9130 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9132 break 2 9133 fi 9134 done 9135 done 9136 IFS=$as_save_IFS 9137 9138 ;; 9139 esac 9140 fi 9141 SH=$ac_cv_path_SH 9142 if test -n "$SH"; then 9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9144 $as_echo "$SH" >&6; } 9145 else 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9147 $as_echo "no" >&6; } 9148 fi 9149 9150 9151 test -n "$SH" && break 9152 done 9153 9154 else 9155 # The variable is set, but is it from the command line or the environment? 9156 9157 # Try to remove the string !SH! from our list. 9158 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SH!/} 9159 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9160 # If it failed, the variable was not from the command line. Ignore it, 9161 # but warn the user (except for BASH, which is always set by the calling BASH). 9162 if test "xSH" != xBASH; then 9163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&5 9164 $as_echo "$as_me: WARNING: Ignoring value of SH from the environment. Use command line variables instead." >&2;} 9165 fi 9166 # Try to locate tool using the code snippet 9167 for ac_prog in sh 9168 do 9169 # Extract the first word of "$ac_prog", so it can be a program name with args. 9170 set dummy $ac_prog; ac_word=$2 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9172 $as_echo_n "checking for $ac_word... " >&6; } 9173 if ${ac_cv_path_SH+:} false; then : 9174 $as_echo_n "(cached) " >&6 9175 else 9176 case $SH in 9177 [\\/]* | ?:[\\/]*) 9178 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9179 ;; 9180 *) 9181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9182 for as_dir in $PATH 9183 do 9184 IFS=$as_save_IFS 9185 test -z "$as_dir" && as_dir=. 9186 for ac_exec_ext in '' $ac_executable_extensions; do 9187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9188 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9190 break 2 9191 fi 9192 done 9193 done 9194 IFS=$as_save_IFS 9195 9196 ;; 9197 esac 9198 fi 9199 SH=$ac_cv_path_SH 9200 if test -n "$SH"; then 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9202 $as_echo "$SH" >&6; } 9203 else 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9205 $as_echo "no" >&6; } 9206 fi 9207 9208 9209 test -n "$SH" && break 9210 done 9211 9212 else 9213 # If it succeeded, then it was overridden by the user. We will use it 9214 # for the tool. 9215 9216 # First remove it from the list of overridden variables, so we can test 9217 # for unknown variables in the end. 9218 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9219 9220 # Check if the provided tool contains a complete path. 9221 tool_specified="$SH" 9222 tool_basename="${tool_specified##*/}" 9223 if test "x$tool_basename" = "x$tool_specified"; then 9224 # A command without a complete path is provided, search $PATH. 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SH=$tool_basename" >&5 9226 $as_echo "$as_me: Will search for user supplied tool SH=$tool_basename" >&6;} 9227 # Extract the first word of "$tool_basename", so it can be a program name with args. 9228 set dummy $tool_basename; ac_word=$2 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9230 $as_echo_n "checking for $ac_word... " >&6; } 9231 if ${ac_cv_path_SH+:} false; then : 9232 $as_echo_n "(cached) " >&6 9233 else 9234 case $SH in 9235 [\\/]* | ?:[\\/]*) 9236 ac_cv_path_SH="$SH" # Let the user override the test with a path. 9237 ;; 9238 *) 9239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9240 for as_dir in $PATH 9241 do 9242 IFS=$as_save_IFS 9243 test -z "$as_dir" && as_dir=. 9244 for ac_exec_ext in '' $ac_executable_extensions; do 9245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9246 ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext" 9247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9248 break 2 9249 fi 9250 done 9251 done 9252 IFS=$as_save_IFS 9253 9254 ;; 9255 esac 9256 fi 9257 SH=$ac_cv_path_SH 9258 if test -n "$SH"; then 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5 9260 $as_echo "$SH" >&6; } 9261 else 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9263 $as_echo "no" >&6; } 9264 fi 9265 9266 9267 if test "x$SH" = x; then 9268 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9269 fi 9270 else 9271 # Otherwise we believe it is a complete path. Use it as it is. 9272 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SH=$tool_specified" >&5 9273 $as_echo "$as_me: Will use user supplied tool SH=$tool_specified" >&6;} 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SH" >&5 9275 $as_echo_n "checking for SH... " >&6; } 9276 if test ! -x "$tool_specified"; then 9277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9278 $as_echo "not found" >&6; } 9279 as_fn_error $? "User supplied tool SH=$tool_specified does not exist or is not executable" "$LINENO" 5 9280 fi 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9282 $as_echo "$tool_specified" >&6; } 9283 fi 9284 fi 9285 fi 9286 9287 9288 9289 if test "x$SH" = x; then 9290 as_fn_error $? "Could not find required tool for SH" "$LINENO" 5 9291 fi 9292 9293 9294 9295 9296 9297 # Publish this variable in the help. 9298 9299 9300 if test "x$SORT" = x; then 9301 # The variable is not set by user, try to locate tool using the code snippet 9302 for ac_prog in sort 9303 do 9304 # Extract the first word of "$ac_prog", so it can be a program name with args. 9305 set dummy $ac_prog; ac_word=$2 9306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9307 $as_echo_n "checking for $ac_word... " >&6; } 9308 if ${ac_cv_path_SORT+:} false; then : 9309 $as_echo_n "(cached) " >&6 9310 else 9311 case $SORT in 9312 [\\/]* | ?:[\\/]*) 9313 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9314 ;; 9315 *) 9316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9317 for as_dir in $PATH 9318 do 9319 IFS=$as_save_IFS 9320 test -z "$as_dir" && as_dir=. 9321 for ac_exec_ext in '' $ac_executable_extensions; do 9322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9323 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9325 break 2 9326 fi 9327 done 9328 done 9329 IFS=$as_save_IFS 9330 9331 ;; 9332 esac 9333 fi 9334 SORT=$ac_cv_path_SORT 9335 if test -n "$SORT"; then 9336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9337 $as_echo "$SORT" >&6; } 9338 else 9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9340 $as_echo "no" >&6; } 9341 fi 9342 9343 9344 test -n "$SORT" && break 9345 done 9346 9347 else 9348 # The variable is set, but is it from the command line or the environment? 9349 9350 # Try to remove the string !SORT! from our list. 9351 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SORT!/} 9352 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9353 # If it failed, the variable was not from the command line. Ignore it, 9354 # but warn the user (except for BASH, which is always set by the calling BASH). 9355 if test "xSORT" != xBASH; then 9356 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&5 9357 $as_echo "$as_me: WARNING: Ignoring value of SORT from the environment. Use command line variables instead." >&2;} 9358 fi 9359 # Try to locate tool using the code snippet 9360 for ac_prog in sort 9361 do 9362 # Extract the first word of "$ac_prog", so it can be a program name with args. 9363 set dummy $ac_prog; ac_word=$2 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9365 $as_echo_n "checking for $ac_word... " >&6; } 9366 if ${ac_cv_path_SORT+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368 else 9369 case $SORT in 9370 [\\/]* | ?:[\\/]*) 9371 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9372 ;; 9373 *) 9374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9375 for as_dir in $PATH 9376 do 9377 IFS=$as_save_IFS 9378 test -z "$as_dir" && as_dir=. 9379 for ac_exec_ext in '' $ac_executable_extensions; do 9380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9381 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9383 break 2 9384 fi 9385 done 9386 done 9387 IFS=$as_save_IFS 9388 9389 ;; 9390 esac 9391 fi 9392 SORT=$ac_cv_path_SORT 9393 if test -n "$SORT"; then 9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9395 $as_echo "$SORT" >&6; } 9396 else 9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9398 $as_echo "no" >&6; } 9399 fi 9400 9401 9402 test -n "$SORT" && break 9403 done 9404 9405 else 9406 # If it succeeded, then it was overridden by the user. We will use it 9407 # for the tool. 9408 9409 # First remove it from the list of overridden variables, so we can test 9410 # for unknown variables in the end. 9411 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9412 9413 # Check if the provided tool contains a complete path. 9414 tool_specified="$SORT" 9415 tool_basename="${tool_specified##*/}" 9416 if test "x$tool_basename" = "x$tool_specified"; then 9417 # A command without a complete path is provided, search $PATH. 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SORT=$tool_basename" >&5 9419 $as_echo "$as_me: Will search for user supplied tool SORT=$tool_basename" >&6;} 9420 # Extract the first word of "$tool_basename", so it can be a program name with args. 9421 set dummy $tool_basename; ac_word=$2 9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9423 $as_echo_n "checking for $ac_word... " >&6; } 9424 if ${ac_cv_path_SORT+:} false; then : 9425 $as_echo_n "(cached) " >&6 9426 else 9427 case $SORT in 9428 [\\/]* | ?:[\\/]*) 9429 ac_cv_path_SORT="$SORT" # Let the user override the test with a path. 9430 ;; 9431 *) 9432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9433 for as_dir in $PATH 9434 do 9435 IFS=$as_save_IFS 9436 test -z "$as_dir" && as_dir=. 9437 for ac_exec_ext in '' $ac_executable_extensions; do 9438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9439 ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext" 9440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9441 break 2 9442 fi 9443 done 9444 done 9445 IFS=$as_save_IFS 9446 9447 ;; 9448 esac 9449 fi 9450 SORT=$ac_cv_path_SORT 9451 if test -n "$SORT"; then 9452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5 9453 $as_echo "$SORT" >&6; } 9454 else 9455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9456 $as_echo "no" >&6; } 9457 fi 9458 9459 9460 if test "x$SORT" = x; then 9461 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9462 fi 9463 else 9464 # Otherwise we believe it is a complete path. Use it as it is. 9465 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SORT=$tool_specified" >&5 9466 $as_echo "$as_me: Will use user supplied tool SORT=$tool_specified" >&6;} 9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SORT" >&5 9468 $as_echo_n "checking for SORT... " >&6; } 9469 if test ! -x "$tool_specified"; then 9470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9471 $as_echo "not found" >&6; } 9472 as_fn_error $? "User supplied tool SORT=$tool_specified does not exist or is not executable" "$LINENO" 5 9473 fi 9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9475 $as_echo "$tool_specified" >&6; } 9476 fi 9477 fi 9478 fi 9479 9480 9481 9482 if test "x$SORT" = x; then 9483 as_fn_error $? "Could not find required tool for SORT" "$LINENO" 5 9484 fi 9485 9486 9487 9488 9489 9490 # Publish this variable in the help. 9491 9492 9493 if test "x$TAIL" = x; then 9494 # The variable is not set by user, try to locate tool using the code snippet 9495 for ac_prog in tail 9496 do 9497 # Extract the first word of "$ac_prog", so it can be a program name with args. 9498 set dummy $ac_prog; ac_word=$2 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9500 $as_echo_n "checking for $ac_word... " >&6; } 9501 if ${ac_cv_path_TAIL+:} false; then : 9502 $as_echo_n "(cached) " >&6 9503 else 9504 case $TAIL in 9505 [\\/]* | ?:[\\/]*) 9506 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9507 ;; 9508 *) 9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9510 for as_dir in $PATH 9511 do 9512 IFS=$as_save_IFS 9513 test -z "$as_dir" && as_dir=. 9514 for ac_exec_ext in '' $ac_executable_extensions; do 9515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9516 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9518 break 2 9519 fi 9520 done 9521 done 9522 IFS=$as_save_IFS 9523 9524 ;; 9525 esac 9526 fi 9527 TAIL=$ac_cv_path_TAIL 9528 if test -n "$TAIL"; then 9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9530 $as_echo "$TAIL" >&6; } 9531 else 9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9533 $as_echo "no" >&6; } 9534 fi 9535 9536 9537 test -n "$TAIL" && break 9538 done 9539 9540 else 9541 # The variable is set, but is it from the command line or the environment? 9542 9543 # Try to remove the string !TAIL! from our list. 9544 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAIL!/} 9545 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9546 # If it failed, the variable was not from the command line. Ignore it, 9547 # but warn the user (except for BASH, which is always set by the calling BASH). 9548 if test "xTAIL" != xBASH; then 9549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&5 9550 $as_echo "$as_me: WARNING: Ignoring value of TAIL from the environment. Use command line variables instead." >&2;} 9551 fi 9552 # Try to locate tool using the code snippet 9553 for ac_prog in tail 9554 do 9555 # Extract the first word of "$ac_prog", so it can be a program name with args. 9556 set dummy $ac_prog; ac_word=$2 9557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9558 $as_echo_n "checking for $ac_word... " >&6; } 9559 if ${ac_cv_path_TAIL+:} false; then : 9560 $as_echo_n "(cached) " >&6 9561 else 9562 case $TAIL in 9563 [\\/]* | ?:[\\/]*) 9564 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9565 ;; 9566 *) 9567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9568 for as_dir in $PATH 9569 do 9570 IFS=$as_save_IFS 9571 test -z "$as_dir" && as_dir=. 9572 for ac_exec_ext in '' $ac_executable_extensions; do 9573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9574 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9576 break 2 9577 fi 9578 done 9579 done 9580 IFS=$as_save_IFS 9581 9582 ;; 9583 esac 9584 fi 9585 TAIL=$ac_cv_path_TAIL 9586 if test -n "$TAIL"; then 9587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9588 $as_echo "$TAIL" >&6; } 9589 else 9590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9591 $as_echo "no" >&6; } 9592 fi 9593 9594 9595 test -n "$TAIL" && break 9596 done 9597 9598 else 9599 # If it succeeded, then it was overridden by the user. We will use it 9600 # for the tool. 9601 9602 # First remove it from the list of overridden variables, so we can test 9603 # for unknown variables in the end. 9604 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9605 9606 # Check if the provided tool contains a complete path. 9607 tool_specified="$TAIL" 9608 tool_basename="${tool_specified##*/}" 9609 if test "x$tool_basename" = "x$tool_specified"; then 9610 # A command without a complete path is provided, search $PATH. 9611 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAIL=$tool_basename" >&5 9612 $as_echo "$as_me: Will search for user supplied tool TAIL=$tool_basename" >&6;} 9613 # Extract the first word of "$tool_basename", so it can be a program name with args. 9614 set dummy $tool_basename; ac_word=$2 9615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9616 $as_echo_n "checking for $ac_word... " >&6; } 9617 if ${ac_cv_path_TAIL+:} false; then : 9618 $as_echo_n "(cached) " >&6 9619 else 9620 case $TAIL in 9621 [\\/]* | ?:[\\/]*) 9622 ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path. 9623 ;; 9624 *) 9625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9626 for as_dir in $PATH 9627 do 9628 IFS=$as_save_IFS 9629 test -z "$as_dir" && as_dir=. 9630 for ac_exec_ext in '' $ac_executable_extensions; do 9631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9632 ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext" 9633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9634 break 2 9635 fi 9636 done 9637 done 9638 IFS=$as_save_IFS 9639 9640 ;; 9641 esac 9642 fi 9643 TAIL=$ac_cv_path_TAIL 9644 if test -n "$TAIL"; then 9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5 9646 $as_echo "$TAIL" >&6; } 9647 else 9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9649 $as_echo "no" >&6; } 9650 fi 9651 9652 9653 if test "x$TAIL" = x; then 9654 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9655 fi 9656 else 9657 # Otherwise we believe it is a complete path. Use it as it is. 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAIL=$tool_specified" >&5 9659 $as_echo "$as_me: Will use user supplied tool TAIL=$tool_specified" >&6;} 9660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAIL" >&5 9661 $as_echo_n "checking for TAIL... " >&6; } 9662 if test ! -x "$tool_specified"; then 9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9664 $as_echo "not found" >&6; } 9665 as_fn_error $? "User supplied tool TAIL=$tool_specified does not exist or is not executable" "$LINENO" 5 9666 fi 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9668 $as_echo "$tool_specified" >&6; } 9669 fi 9670 fi 9671 fi 9672 9673 9674 9675 if test "x$TAIL" = x; then 9676 as_fn_error $? "Could not find required tool for TAIL" "$LINENO" 5 9677 fi 9678 9679 9680 9681 9682 9683 # Publish this variable in the help. 9684 9685 9686 if test "x$TAR" = x; then 9687 # The variable is not set by user, try to locate tool using the code snippet 9688 for ac_prog in tar 9689 do 9690 # Extract the first word of "$ac_prog", so it can be a program name with args. 9691 set dummy $ac_prog; ac_word=$2 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9693 $as_echo_n "checking for $ac_word... " >&6; } 9694 if ${ac_cv_path_TAR+:} false; then : 9695 $as_echo_n "(cached) " >&6 9696 else 9697 case $TAR in 9698 [\\/]* | ?:[\\/]*) 9699 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9700 ;; 9701 *) 9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9703 for as_dir in $PATH 9704 do 9705 IFS=$as_save_IFS 9706 test -z "$as_dir" && as_dir=. 9707 for ac_exec_ext in '' $ac_executable_extensions; do 9708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9709 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9711 break 2 9712 fi 9713 done 9714 done 9715 IFS=$as_save_IFS 9716 9717 ;; 9718 esac 9719 fi 9720 TAR=$ac_cv_path_TAR 9721 if test -n "$TAR"; then 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9723 $as_echo "$TAR" >&6; } 9724 else 9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9726 $as_echo "no" >&6; } 9727 fi 9728 9729 9730 test -n "$TAR" && break 9731 done 9732 9733 else 9734 # The variable is set, but is it from the command line or the environment? 9735 9736 # Try to remove the string !TAR! from our list. 9737 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TAR!/} 9738 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9739 # If it failed, the variable was not from the command line. Ignore it, 9740 # but warn the user (except for BASH, which is always set by the calling BASH). 9741 if test "xTAR" != xBASH; then 9742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&5 9743 $as_echo "$as_me: WARNING: Ignoring value of TAR from the environment. Use command line variables instead." >&2;} 9744 fi 9745 # Try to locate tool using the code snippet 9746 for ac_prog in tar 9747 do 9748 # Extract the first word of "$ac_prog", so it can be a program name with args. 9749 set dummy $ac_prog; ac_word=$2 9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9751 $as_echo_n "checking for $ac_word... " >&6; } 9752 if ${ac_cv_path_TAR+:} false; then : 9753 $as_echo_n "(cached) " >&6 9754 else 9755 case $TAR in 9756 [\\/]* | ?:[\\/]*) 9757 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9758 ;; 9759 *) 9760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9761 for as_dir in $PATH 9762 do 9763 IFS=$as_save_IFS 9764 test -z "$as_dir" && as_dir=. 9765 for ac_exec_ext in '' $ac_executable_extensions; do 9766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9767 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9769 break 2 9770 fi 9771 done 9772 done 9773 IFS=$as_save_IFS 9774 9775 ;; 9776 esac 9777 fi 9778 TAR=$ac_cv_path_TAR 9779 if test -n "$TAR"; then 9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9781 $as_echo "$TAR" >&6; } 9782 else 9783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9784 $as_echo "no" >&6; } 9785 fi 9786 9787 9788 test -n "$TAR" && break 9789 done 9790 9791 else 9792 # If it succeeded, then it was overridden by the user. We will use it 9793 # for the tool. 9794 9795 # First remove it from the list of overridden variables, so we can test 9796 # for unknown variables in the end. 9797 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9798 9799 # Check if the provided tool contains a complete path. 9800 tool_specified="$TAR" 9801 tool_basename="${tool_specified##*/}" 9802 if test "x$tool_basename" = "x$tool_specified"; then 9803 # A command without a complete path is provided, search $PATH. 9804 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TAR=$tool_basename" >&5 9805 $as_echo "$as_me: Will search for user supplied tool TAR=$tool_basename" >&6;} 9806 # Extract the first word of "$tool_basename", so it can be a program name with args. 9807 set dummy $tool_basename; ac_word=$2 9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9809 $as_echo_n "checking for $ac_word... " >&6; } 9810 if ${ac_cv_path_TAR+:} false; then : 9811 $as_echo_n "(cached) " >&6 9812 else 9813 case $TAR in 9814 [\\/]* | ?:[\\/]*) 9815 ac_cv_path_TAR="$TAR" # Let the user override the test with a path. 9816 ;; 9817 *) 9818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9819 for as_dir in $PATH 9820 do 9821 IFS=$as_save_IFS 9822 test -z "$as_dir" && as_dir=. 9823 for ac_exec_ext in '' $ac_executable_extensions; do 9824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9825 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext" 9826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9827 break 2 9828 fi 9829 done 9830 done 9831 IFS=$as_save_IFS 9832 9833 ;; 9834 esac 9835 fi 9836 TAR=$ac_cv_path_TAR 9837 if test -n "$TAR"; then 9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5 9839 $as_echo "$TAR" >&6; } 9840 else 9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9842 $as_echo "no" >&6; } 9843 fi 9844 9845 9846 if test "x$TAR" = x; then 9847 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 9848 fi 9849 else 9850 # Otherwise we believe it is a complete path. Use it as it is. 9851 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TAR=$tool_specified" >&5 9852 $as_echo "$as_me: Will use user supplied tool TAR=$tool_specified" >&6;} 9853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TAR" >&5 9854 $as_echo_n "checking for TAR... " >&6; } 9855 if test ! -x "$tool_specified"; then 9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 9857 $as_echo "not found" >&6; } 9858 as_fn_error $? "User supplied tool TAR=$tool_specified does not exist or is not executable" "$LINENO" 5 9859 fi 9860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 9861 $as_echo "$tool_specified" >&6; } 9862 fi 9863 fi 9864 fi 9865 9866 9867 9868 if test "x$TAR" = x; then 9869 as_fn_error $? "Could not find required tool for TAR" "$LINENO" 5 9870 fi 9871 9872 9873 9874 9875 9876 # Publish this variable in the help. 9877 9878 9879 if test "x$TEE" = x; then 9880 # The variable is not set by user, try to locate tool using the code snippet 9881 for ac_prog in tee 9882 do 9883 # Extract the first word of "$ac_prog", so it can be a program name with args. 9884 set dummy $ac_prog; ac_word=$2 9885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9886 $as_echo_n "checking for $ac_word... " >&6; } 9887 if ${ac_cv_path_TEE+:} false; then : 9888 $as_echo_n "(cached) " >&6 9889 else 9890 case $TEE in 9891 [\\/]* | ?:[\\/]*) 9892 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9893 ;; 9894 *) 9895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9896 for as_dir in $PATH 9897 do 9898 IFS=$as_save_IFS 9899 test -z "$as_dir" && as_dir=. 9900 for ac_exec_ext in '' $ac_executable_extensions; do 9901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9902 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9904 break 2 9905 fi 9906 done 9907 done 9908 IFS=$as_save_IFS 9909 9910 ;; 9911 esac 9912 fi 9913 TEE=$ac_cv_path_TEE 9914 if test -n "$TEE"; then 9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9916 $as_echo "$TEE" >&6; } 9917 else 9918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9919 $as_echo "no" >&6; } 9920 fi 9921 9922 9923 test -n "$TEE" && break 9924 done 9925 9926 else 9927 # The variable is set, but is it from the command line or the environment? 9928 9929 # Try to remove the string !TEE! from our list. 9930 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TEE!/} 9931 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 9932 # If it failed, the variable was not from the command line. Ignore it, 9933 # but warn the user (except for BASH, which is always set by the calling BASH). 9934 if test "xTEE" != xBASH; then 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&5 9936 $as_echo "$as_me: WARNING: Ignoring value of TEE from the environment. Use command line variables instead." >&2;} 9937 fi 9938 # Try to locate tool using the code snippet 9939 for ac_prog in tee 9940 do 9941 # Extract the first word of "$ac_prog", so it can be a program name with args. 9942 set dummy $ac_prog; ac_word=$2 9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9944 $as_echo_n "checking for $ac_word... " >&6; } 9945 if ${ac_cv_path_TEE+:} false; then : 9946 $as_echo_n "(cached) " >&6 9947 else 9948 case $TEE in 9949 [\\/]* | ?:[\\/]*) 9950 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 9951 ;; 9952 *) 9953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9954 for as_dir in $PATH 9955 do 9956 IFS=$as_save_IFS 9957 test -z "$as_dir" && as_dir=. 9958 for ac_exec_ext in '' $ac_executable_extensions; do 9959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 9960 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 9961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9962 break 2 9963 fi 9964 done 9965 done 9966 IFS=$as_save_IFS 9967 9968 ;; 9969 esac 9970 fi 9971 TEE=$ac_cv_path_TEE 9972 if test -n "$TEE"; then 9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 9974 $as_echo "$TEE" >&6; } 9975 else 9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9977 $as_echo "no" >&6; } 9978 fi 9979 9980 9981 test -n "$TEE" && break 9982 done 9983 9984 else 9985 # If it succeeded, then it was overridden by the user. We will use it 9986 # for the tool. 9987 9988 # First remove it from the list of overridden variables, so we can test 9989 # for unknown variables in the end. 9990 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 9991 9992 # Check if the provided tool contains a complete path. 9993 tool_specified="$TEE" 9994 tool_basename="${tool_specified##*/}" 9995 if test "x$tool_basename" = "x$tool_specified"; then 9996 # A command without a complete path is provided, search $PATH. 9997 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TEE=$tool_basename" >&5 9998 $as_echo "$as_me: Will search for user supplied tool TEE=$tool_basename" >&6;} 9999 # Extract the first word of "$tool_basename", so it can be a program name with args. 10000 set dummy $tool_basename; ac_word=$2 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10002 $as_echo_n "checking for $ac_word... " >&6; } 10003 if ${ac_cv_path_TEE+:} false; then : 10004 $as_echo_n "(cached) " >&6 10005 else 10006 case $TEE in 10007 [\\/]* | ?:[\\/]*) 10008 ac_cv_path_TEE="$TEE" # Let the user override the test with a path. 10009 ;; 10010 *) 10011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10012 for as_dir in $PATH 10013 do 10014 IFS=$as_save_IFS 10015 test -z "$as_dir" && as_dir=. 10016 for ac_exec_ext in '' $ac_executable_extensions; do 10017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10018 ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext" 10019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10020 break 2 10021 fi 10022 done 10023 done 10024 IFS=$as_save_IFS 10025 10026 ;; 10027 esac 10028 fi 10029 TEE=$ac_cv_path_TEE 10030 if test -n "$TEE"; then 10031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5 10032 $as_echo "$TEE" >&6; } 10033 else 10034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10035 $as_echo "no" >&6; } 10036 fi 10037 10038 10039 if test "x$TEE" = x; then 10040 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10041 fi 10042 else 10043 # Otherwise we believe it is a complete path. Use it as it is. 10044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TEE=$tool_specified" >&5 10045 $as_echo "$as_me: Will use user supplied tool TEE=$tool_specified" >&6;} 10046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TEE" >&5 10047 $as_echo_n "checking for TEE... " >&6; } 10048 if test ! -x "$tool_specified"; then 10049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10050 $as_echo "not found" >&6; } 10051 as_fn_error $? "User supplied tool TEE=$tool_specified does not exist or is not executable" "$LINENO" 5 10052 fi 10053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10054 $as_echo "$tool_specified" >&6; } 10055 fi 10056 fi 10057 fi 10058 10059 10060 10061 if test "x$TEE" = x; then 10062 as_fn_error $? "Could not find required tool for TEE" "$LINENO" 5 10063 fi 10064 10065 10066 10067 10068 10069 # Publish this variable in the help. 10070 10071 10072 if test "x$TOUCH" = x; then 10073 # The variable is not set by user, try to locate tool using the code snippet 10074 for ac_prog in touch 10075 do 10076 # Extract the first word of "$ac_prog", so it can be a program name with args. 10077 set dummy $ac_prog; ac_word=$2 10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10079 $as_echo_n "checking for $ac_word... " >&6; } 10080 if ${ac_cv_path_TOUCH+:} false; then : 10081 $as_echo_n "(cached) " >&6 10082 else 10083 case $TOUCH in 10084 [\\/]* | ?:[\\/]*) 10085 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10086 ;; 10087 *) 10088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10089 for as_dir in $PATH 10090 do 10091 IFS=$as_save_IFS 10092 test -z "$as_dir" && as_dir=. 10093 for ac_exec_ext in '' $ac_executable_extensions; do 10094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10095 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10097 break 2 10098 fi 10099 done 10100 done 10101 IFS=$as_save_IFS 10102 10103 ;; 10104 esac 10105 fi 10106 TOUCH=$ac_cv_path_TOUCH 10107 if test -n "$TOUCH"; then 10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10109 $as_echo "$TOUCH" >&6; } 10110 else 10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10112 $as_echo "no" >&6; } 10113 fi 10114 10115 10116 test -n "$TOUCH" && break 10117 done 10118 10119 else 10120 # The variable is set, but is it from the command line or the environment? 10121 10122 # Try to remove the string !TOUCH! from our list. 10123 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TOUCH!/} 10124 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10125 # If it failed, the variable was not from the command line. Ignore it, 10126 # but warn the user (except for BASH, which is always set by the calling BASH). 10127 if test "xTOUCH" != xBASH; then 10128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&5 10129 $as_echo "$as_me: WARNING: Ignoring value of TOUCH from the environment. Use command line variables instead." >&2;} 10130 fi 10131 # Try to locate tool using the code snippet 10132 for ac_prog in touch 10133 do 10134 # Extract the first word of "$ac_prog", so it can be a program name with args. 10135 set dummy $ac_prog; ac_word=$2 10136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10137 $as_echo_n "checking for $ac_word... " >&6; } 10138 if ${ac_cv_path_TOUCH+:} false; then : 10139 $as_echo_n "(cached) " >&6 10140 else 10141 case $TOUCH in 10142 [\\/]* | ?:[\\/]*) 10143 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10144 ;; 10145 *) 10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10147 for as_dir in $PATH 10148 do 10149 IFS=$as_save_IFS 10150 test -z "$as_dir" && as_dir=. 10151 for ac_exec_ext in '' $ac_executable_extensions; do 10152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10153 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10155 break 2 10156 fi 10157 done 10158 done 10159 IFS=$as_save_IFS 10160 10161 ;; 10162 esac 10163 fi 10164 TOUCH=$ac_cv_path_TOUCH 10165 if test -n "$TOUCH"; then 10166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10167 $as_echo "$TOUCH" >&6; } 10168 else 10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10170 $as_echo "no" >&6; } 10171 fi 10172 10173 10174 test -n "$TOUCH" && break 10175 done 10176 10177 else 10178 # If it succeeded, then it was overridden by the user. We will use it 10179 # for the tool. 10180 10181 # First remove it from the list of overridden variables, so we can test 10182 # for unknown variables in the end. 10183 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10184 10185 # Check if the provided tool contains a complete path. 10186 tool_specified="$TOUCH" 10187 tool_basename="${tool_specified##*/}" 10188 if test "x$tool_basename" = "x$tool_specified"; then 10189 # A command without a complete path is provided, search $PATH. 10190 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TOUCH=$tool_basename" >&5 10191 $as_echo "$as_me: Will search for user supplied tool TOUCH=$tool_basename" >&6;} 10192 # Extract the first word of "$tool_basename", so it can be a program name with args. 10193 set dummy $tool_basename; ac_word=$2 10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10195 $as_echo_n "checking for $ac_word... " >&6; } 10196 if ${ac_cv_path_TOUCH+:} false; then : 10197 $as_echo_n "(cached) " >&6 10198 else 10199 case $TOUCH in 10200 [\\/]* | ?:[\\/]*) 10201 ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path. 10202 ;; 10203 *) 10204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10205 for as_dir in $PATH 10206 do 10207 IFS=$as_save_IFS 10208 test -z "$as_dir" && as_dir=. 10209 for ac_exec_ext in '' $ac_executable_extensions; do 10210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10211 ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext" 10212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10213 break 2 10214 fi 10215 done 10216 done 10217 IFS=$as_save_IFS 10218 10219 ;; 10220 esac 10221 fi 10222 TOUCH=$ac_cv_path_TOUCH 10223 if test -n "$TOUCH"; then 10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5 10225 $as_echo "$TOUCH" >&6; } 10226 else 10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10228 $as_echo "no" >&6; } 10229 fi 10230 10231 10232 if test "x$TOUCH" = x; then 10233 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10234 fi 10235 else 10236 # Otherwise we believe it is a complete path. Use it as it is. 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TOUCH=$tool_specified" >&5 10238 $as_echo "$as_me: Will use user supplied tool TOUCH=$tool_specified" >&6;} 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TOUCH" >&5 10240 $as_echo_n "checking for TOUCH... " >&6; } 10241 if test ! -x "$tool_specified"; then 10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10243 $as_echo "not found" >&6; } 10244 as_fn_error $? "User supplied tool TOUCH=$tool_specified does not exist or is not executable" "$LINENO" 5 10245 fi 10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10247 $as_echo "$tool_specified" >&6; } 10248 fi 10249 fi 10250 fi 10251 10252 10253 10254 if test "x$TOUCH" = x; then 10255 as_fn_error $? "Could not find required tool for TOUCH" "$LINENO" 5 10256 fi 10257 10258 10259 10260 10261 10262 # Publish this variable in the help. 10263 10264 10265 if test "x$TR" = x; then 10266 # The variable is not set by user, try to locate tool using the code snippet 10267 for ac_prog in tr 10268 do 10269 # Extract the first word of "$ac_prog", so it can be a program name with args. 10270 set dummy $ac_prog; ac_word=$2 10271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10272 $as_echo_n "checking for $ac_word... " >&6; } 10273 if ${ac_cv_path_TR+:} false; then : 10274 $as_echo_n "(cached) " >&6 10275 else 10276 case $TR in 10277 [\\/]* | ?:[\\/]*) 10278 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10279 ;; 10280 *) 10281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10282 for as_dir in $PATH 10283 do 10284 IFS=$as_save_IFS 10285 test -z "$as_dir" && as_dir=. 10286 for ac_exec_ext in '' $ac_executable_extensions; do 10287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10288 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10290 break 2 10291 fi 10292 done 10293 done 10294 IFS=$as_save_IFS 10295 10296 ;; 10297 esac 10298 fi 10299 TR=$ac_cv_path_TR 10300 if test -n "$TR"; then 10301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10302 $as_echo "$TR" >&6; } 10303 else 10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10305 $as_echo "no" >&6; } 10306 fi 10307 10308 10309 test -n "$TR" && break 10310 done 10311 10312 else 10313 # The variable is set, but is it from the command line or the environment? 10314 10315 # Try to remove the string !TR! from our list. 10316 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TR!/} 10317 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10318 # If it failed, the variable was not from the command line. Ignore it, 10319 # but warn the user (except for BASH, which is always set by the calling BASH). 10320 if test "xTR" != xBASH; then 10321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&5 10322 $as_echo "$as_me: WARNING: Ignoring value of TR from the environment. Use command line variables instead." >&2;} 10323 fi 10324 # Try to locate tool using the code snippet 10325 for ac_prog in tr 10326 do 10327 # Extract the first word of "$ac_prog", so it can be a program name with args. 10328 set dummy $ac_prog; ac_word=$2 10329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10330 $as_echo_n "checking for $ac_word... " >&6; } 10331 if ${ac_cv_path_TR+:} false; then : 10332 $as_echo_n "(cached) " >&6 10333 else 10334 case $TR in 10335 [\\/]* | ?:[\\/]*) 10336 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10337 ;; 10338 *) 10339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10340 for as_dir in $PATH 10341 do 10342 IFS=$as_save_IFS 10343 test -z "$as_dir" && as_dir=. 10344 for ac_exec_ext in '' $ac_executable_extensions; do 10345 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10346 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10347 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10348 break 2 10349 fi 10350 done 10351 done 10352 IFS=$as_save_IFS 10353 10354 ;; 10355 esac 10356 fi 10357 TR=$ac_cv_path_TR 10358 if test -n "$TR"; then 10359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10360 $as_echo "$TR" >&6; } 10361 else 10362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10363 $as_echo "no" >&6; } 10364 fi 10365 10366 10367 test -n "$TR" && break 10368 done 10369 10370 else 10371 # If it succeeded, then it was overridden by the user. We will use it 10372 # for the tool. 10373 10374 # First remove it from the list of overridden variables, so we can test 10375 # for unknown variables in the end. 10376 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10377 10378 # Check if the provided tool contains a complete path. 10379 tool_specified="$TR" 10380 tool_basename="${tool_specified##*/}" 10381 if test "x$tool_basename" = "x$tool_specified"; then 10382 # A command without a complete path is provided, search $PATH. 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TR=$tool_basename" >&5 10384 $as_echo "$as_me: Will search for user supplied tool TR=$tool_basename" >&6;} 10385 # Extract the first word of "$tool_basename", so it can be a program name with args. 10386 set dummy $tool_basename; ac_word=$2 10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10388 $as_echo_n "checking for $ac_word... " >&6; } 10389 if ${ac_cv_path_TR+:} false; then : 10390 $as_echo_n "(cached) " >&6 10391 else 10392 case $TR in 10393 [\\/]* | ?:[\\/]*) 10394 ac_cv_path_TR="$TR" # Let the user override the test with a path. 10395 ;; 10396 *) 10397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10398 for as_dir in $PATH 10399 do 10400 IFS=$as_save_IFS 10401 test -z "$as_dir" && as_dir=. 10402 for ac_exec_ext in '' $ac_executable_extensions; do 10403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10404 ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext" 10405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10406 break 2 10407 fi 10408 done 10409 done 10410 IFS=$as_save_IFS 10411 10412 ;; 10413 esac 10414 fi 10415 TR=$ac_cv_path_TR 10416 if test -n "$TR"; then 10417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5 10418 $as_echo "$TR" >&6; } 10419 else 10420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10421 $as_echo "no" >&6; } 10422 fi 10423 10424 10425 if test "x$TR" = x; then 10426 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10427 fi 10428 else 10429 # Otherwise we believe it is a complete path. Use it as it is. 10430 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TR=$tool_specified" >&5 10431 $as_echo "$as_me: Will use user supplied tool TR=$tool_specified" >&6;} 10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TR" >&5 10433 $as_echo_n "checking for TR... " >&6; } 10434 if test ! -x "$tool_specified"; then 10435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10436 $as_echo "not found" >&6; } 10437 as_fn_error $? "User supplied tool TR=$tool_specified does not exist or is not executable" "$LINENO" 5 10438 fi 10439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10440 $as_echo "$tool_specified" >&6; } 10441 fi 10442 fi 10443 fi 10444 10445 10446 10447 if test "x$TR" = x; then 10448 as_fn_error $? "Could not find required tool for TR" "$LINENO" 5 10449 fi 10450 10451 10452 10453 10454 10455 # Publish this variable in the help. 10456 10457 10458 if test "x$UNAME" = x; then 10459 # The variable is not set by user, try to locate tool using the code snippet 10460 for ac_prog in uname 10461 do 10462 # Extract the first word of "$ac_prog", so it can be a program name with args. 10463 set dummy $ac_prog; ac_word=$2 10464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10465 $as_echo_n "checking for $ac_word... " >&6; } 10466 if ${ac_cv_path_UNAME+:} false; then : 10467 $as_echo_n "(cached) " >&6 10468 else 10469 case $UNAME in 10470 [\\/]* | ?:[\\/]*) 10471 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10472 ;; 10473 *) 10474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10475 for as_dir in $PATH 10476 do 10477 IFS=$as_save_IFS 10478 test -z "$as_dir" && as_dir=. 10479 for ac_exec_ext in '' $ac_executable_extensions; do 10480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10481 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10483 break 2 10484 fi 10485 done 10486 done 10487 IFS=$as_save_IFS 10488 10489 ;; 10490 esac 10491 fi 10492 UNAME=$ac_cv_path_UNAME 10493 if test -n "$UNAME"; then 10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10495 $as_echo "$UNAME" >&6; } 10496 else 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10498 $as_echo "no" >&6; } 10499 fi 10500 10501 10502 test -n "$UNAME" && break 10503 done 10504 10505 else 10506 # The variable is set, but is it from the command line or the environment? 10507 10508 # Try to remove the string !UNAME! from our list. 10509 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNAME!/} 10510 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10511 # If it failed, the variable was not from the command line. Ignore it, 10512 # but warn the user (except for BASH, which is always set by the calling BASH). 10513 if test "xUNAME" != xBASH; then 10514 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&5 10515 $as_echo "$as_me: WARNING: Ignoring value of UNAME from the environment. Use command line variables instead." >&2;} 10516 fi 10517 # Try to locate tool using the code snippet 10518 for ac_prog in uname 10519 do 10520 # Extract the first word of "$ac_prog", so it can be a program name with args. 10521 set dummy $ac_prog; ac_word=$2 10522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10523 $as_echo_n "checking for $ac_word... " >&6; } 10524 if ${ac_cv_path_UNAME+:} false; then : 10525 $as_echo_n "(cached) " >&6 10526 else 10527 case $UNAME in 10528 [\\/]* | ?:[\\/]*) 10529 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10530 ;; 10531 *) 10532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10533 for as_dir in $PATH 10534 do 10535 IFS=$as_save_IFS 10536 test -z "$as_dir" && as_dir=. 10537 for ac_exec_ext in '' $ac_executable_extensions; do 10538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10539 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10541 break 2 10542 fi 10543 done 10544 done 10545 IFS=$as_save_IFS 10546 10547 ;; 10548 esac 10549 fi 10550 UNAME=$ac_cv_path_UNAME 10551 if test -n "$UNAME"; then 10552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10553 $as_echo "$UNAME" >&6; } 10554 else 10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10556 $as_echo "no" >&6; } 10557 fi 10558 10559 10560 test -n "$UNAME" && break 10561 done 10562 10563 else 10564 # If it succeeded, then it was overridden by the user. We will use it 10565 # for the tool. 10566 10567 # First remove it from the list of overridden variables, so we can test 10568 # for unknown variables in the end. 10569 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10570 10571 # Check if the provided tool contains a complete path. 10572 tool_specified="$UNAME" 10573 tool_basename="${tool_specified##*/}" 10574 if test "x$tool_basename" = "x$tool_specified"; then 10575 # A command without a complete path is provided, search $PATH. 10576 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNAME=$tool_basename" >&5 10577 $as_echo "$as_me: Will search for user supplied tool UNAME=$tool_basename" >&6;} 10578 # Extract the first word of "$tool_basename", so it can be a program name with args. 10579 set dummy $tool_basename; ac_word=$2 10580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10581 $as_echo_n "checking for $ac_word... " >&6; } 10582 if ${ac_cv_path_UNAME+:} false; then : 10583 $as_echo_n "(cached) " >&6 10584 else 10585 case $UNAME in 10586 [\\/]* | ?:[\\/]*) 10587 ac_cv_path_UNAME="$UNAME" # Let the user override the test with a path. 10588 ;; 10589 *) 10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10591 for as_dir in $PATH 10592 do 10593 IFS=$as_save_IFS 10594 test -z "$as_dir" && as_dir=. 10595 for ac_exec_ext in '' $ac_executable_extensions; do 10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10597 ac_cv_path_UNAME="$as_dir/$ac_word$ac_exec_ext" 10598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10599 break 2 10600 fi 10601 done 10602 done 10603 IFS=$as_save_IFS 10604 10605 ;; 10606 esac 10607 fi 10608 UNAME=$ac_cv_path_UNAME 10609 if test -n "$UNAME"; then 10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNAME" >&5 10611 $as_echo "$UNAME" >&6; } 10612 else 10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10614 $as_echo "no" >&6; } 10615 fi 10616 10617 10618 if test "x$UNAME" = x; then 10619 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10620 fi 10621 else 10622 # Otherwise we believe it is a complete path. Use it as it is. 10623 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNAME=$tool_specified" >&5 10624 $as_echo "$as_me: Will use user supplied tool UNAME=$tool_specified" >&6;} 10625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNAME" >&5 10626 $as_echo_n "checking for UNAME... " >&6; } 10627 if test ! -x "$tool_specified"; then 10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10629 $as_echo "not found" >&6; } 10630 as_fn_error $? "User supplied tool UNAME=$tool_specified does not exist or is not executable" "$LINENO" 5 10631 fi 10632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10633 $as_echo "$tool_specified" >&6; } 10634 fi 10635 fi 10636 fi 10637 10638 10639 10640 if test "x$UNAME" = x; then 10641 as_fn_error $? "Could not find required tool for UNAME" "$LINENO" 5 10642 fi 10643 10644 10645 10646 10647 10648 # Publish this variable in the help. 10649 10650 10651 if test "x$UNIQ" = x; then 10652 # The variable is not set by user, try to locate tool using the code snippet 10653 for ac_prog in uniq 10654 do 10655 # Extract the first word of "$ac_prog", so it can be a program name with args. 10656 set dummy $ac_prog; ac_word=$2 10657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10658 $as_echo_n "checking for $ac_word... " >&6; } 10659 if ${ac_cv_path_UNIQ+:} false; then : 10660 $as_echo_n "(cached) " >&6 10661 else 10662 case $UNIQ in 10663 [\\/]* | ?:[\\/]*) 10664 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10665 ;; 10666 *) 10667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10668 for as_dir in $PATH 10669 do 10670 IFS=$as_save_IFS 10671 test -z "$as_dir" && as_dir=. 10672 for ac_exec_ext in '' $ac_executable_extensions; do 10673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10674 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10676 break 2 10677 fi 10678 done 10679 done 10680 IFS=$as_save_IFS 10681 10682 ;; 10683 esac 10684 fi 10685 UNIQ=$ac_cv_path_UNIQ 10686 if test -n "$UNIQ"; then 10687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10688 $as_echo "$UNIQ" >&6; } 10689 else 10690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10691 $as_echo "no" >&6; } 10692 fi 10693 10694 10695 test -n "$UNIQ" && break 10696 done 10697 10698 else 10699 # The variable is set, but is it from the command line or the environment? 10700 10701 # Try to remove the string !UNIQ! from our list. 10702 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNIQ!/} 10703 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10704 # If it failed, the variable was not from the command line. Ignore it, 10705 # but warn the user (except for BASH, which is always set by the calling BASH). 10706 if test "xUNIQ" != xBASH; then 10707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&5 10708 $as_echo "$as_me: WARNING: Ignoring value of UNIQ from the environment. Use command line variables instead." >&2;} 10709 fi 10710 # Try to locate tool using the code snippet 10711 for ac_prog in uniq 10712 do 10713 # Extract the first word of "$ac_prog", so it can be a program name with args. 10714 set dummy $ac_prog; ac_word=$2 10715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10716 $as_echo_n "checking for $ac_word... " >&6; } 10717 if ${ac_cv_path_UNIQ+:} false; then : 10718 $as_echo_n "(cached) " >&6 10719 else 10720 case $UNIQ in 10721 [\\/]* | ?:[\\/]*) 10722 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10723 ;; 10724 *) 10725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10726 for as_dir in $PATH 10727 do 10728 IFS=$as_save_IFS 10729 test -z "$as_dir" && as_dir=. 10730 for ac_exec_ext in '' $ac_executable_extensions; do 10731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10732 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10734 break 2 10735 fi 10736 done 10737 done 10738 IFS=$as_save_IFS 10739 10740 ;; 10741 esac 10742 fi 10743 UNIQ=$ac_cv_path_UNIQ 10744 if test -n "$UNIQ"; then 10745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10746 $as_echo "$UNIQ" >&6; } 10747 else 10748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10749 $as_echo "no" >&6; } 10750 fi 10751 10752 10753 test -n "$UNIQ" && break 10754 done 10755 10756 else 10757 # If it succeeded, then it was overridden by the user. We will use it 10758 # for the tool. 10759 10760 # First remove it from the list of overridden variables, so we can test 10761 # for unknown variables in the end. 10762 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10763 10764 # Check if the provided tool contains a complete path. 10765 tool_specified="$UNIQ" 10766 tool_basename="${tool_specified##*/}" 10767 if test "x$tool_basename" = "x$tool_specified"; then 10768 # A command without a complete path is provided, search $PATH. 10769 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNIQ=$tool_basename" >&5 10770 $as_echo "$as_me: Will search for user supplied tool UNIQ=$tool_basename" >&6;} 10771 # Extract the first word of "$tool_basename", so it can be a program name with args. 10772 set dummy $tool_basename; ac_word=$2 10773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10774 $as_echo_n "checking for $ac_word... " >&6; } 10775 if ${ac_cv_path_UNIQ+:} false; then : 10776 $as_echo_n "(cached) " >&6 10777 else 10778 case $UNIQ in 10779 [\\/]* | ?:[\\/]*) 10780 ac_cv_path_UNIQ="$UNIQ" # Let the user override the test with a path. 10781 ;; 10782 *) 10783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10784 for as_dir in $PATH 10785 do 10786 IFS=$as_save_IFS 10787 test -z "$as_dir" && as_dir=. 10788 for ac_exec_ext in '' $ac_executable_extensions; do 10789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10790 ac_cv_path_UNIQ="$as_dir/$ac_word$ac_exec_ext" 10791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10792 break 2 10793 fi 10794 done 10795 done 10796 IFS=$as_save_IFS 10797 10798 ;; 10799 esac 10800 fi 10801 UNIQ=$ac_cv_path_UNIQ 10802 if test -n "$UNIQ"; then 10803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNIQ" >&5 10804 $as_echo "$UNIQ" >&6; } 10805 else 10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10807 $as_echo "no" >&6; } 10808 fi 10809 10810 10811 if test "x$UNIQ" = x; then 10812 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 10813 fi 10814 else 10815 # Otherwise we believe it is a complete path. Use it as it is. 10816 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNIQ=$tool_specified" >&5 10817 $as_echo "$as_me: Will use user supplied tool UNIQ=$tool_specified" >&6;} 10818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIQ" >&5 10819 $as_echo_n "checking for UNIQ... " >&6; } 10820 if test ! -x "$tool_specified"; then 10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 10822 $as_echo "not found" >&6; } 10823 as_fn_error $? "User supplied tool UNIQ=$tool_specified does not exist or is not executable" "$LINENO" 5 10824 fi 10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 10826 $as_echo "$tool_specified" >&6; } 10827 fi 10828 fi 10829 fi 10830 10831 10832 10833 if test "x$UNIQ" = x; then 10834 as_fn_error $? "Could not find required tool for UNIQ" "$LINENO" 5 10835 fi 10836 10837 10838 10839 10840 10841 # Publish this variable in the help. 10842 10843 10844 if test "x$WC" = x; then 10845 # The variable is not set by user, try to locate tool using the code snippet 10846 for ac_prog in wc 10847 do 10848 # Extract the first word of "$ac_prog", so it can be a program name with args. 10849 set dummy $ac_prog; ac_word=$2 10850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10851 $as_echo_n "checking for $ac_word... " >&6; } 10852 if ${ac_cv_path_WC+:} false; then : 10853 $as_echo_n "(cached) " >&6 10854 else 10855 case $WC in 10856 [\\/]* | ?:[\\/]*) 10857 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10858 ;; 10859 *) 10860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10861 for as_dir in $PATH 10862 do 10863 IFS=$as_save_IFS 10864 test -z "$as_dir" && as_dir=. 10865 for ac_exec_ext in '' $ac_executable_extensions; do 10866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10867 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10869 break 2 10870 fi 10871 done 10872 done 10873 IFS=$as_save_IFS 10874 10875 ;; 10876 esac 10877 fi 10878 WC=$ac_cv_path_WC 10879 if test -n "$WC"; then 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10881 $as_echo "$WC" >&6; } 10882 else 10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10884 $as_echo "no" >&6; } 10885 fi 10886 10887 10888 test -n "$WC" && break 10889 done 10890 10891 else 10892 # The variable is set, but is it from the command line or the environment? 10893 10894 # Try to remove the string !WC! from our list. 10895 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WC!/} 10896 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 10897 # If it failed, the variable was not from the command line. Ignore it, 10898 # but warn the user (except for BASH, which is always set by the calling BASH). 10899 if test "xWC" != xBASH; then 10900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&5 10901 $as_echo "$as_me: WARNING: Ignoring value of WC from the environment. Use command line variables instead." >&2;} 10902 fi 10903 # Try to locate tool using the code snippet 10904 for ac_prog in wc 10905 do 10906 # Extract the first word of "$ac_prog", so it can be a program name with args. 10907 set dummy $ac_prog; ac_word=$2 10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10909 $as_echo_n "checking for $ac_word... " >&6; } 10910 if ${ac_cv_path_WC+:} false; then : 10911 $as_echo_n "(cached) " >&6 10912 else 10913 case $WC in 10914 [\\/]* | ?:[\\/]*) 10915 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10916 ;; 10917 *) 10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10919 for as_dir in $PATH 10920 do 10921 IFS=$as_save_IFS 10922 test -z "$as_dir" && as_dir=. 10923 for ac_exec_ext in '' $ac_executable_extensions; do 10924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10925 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10927 break 2 10928 fi 10929 done 10930 done 10931 IFS=$as_save_IFS 10932 10933 ;; 10934 esac 10935 fi 10936 WC=$ac_cv_path_WC 10937 if test -n "$WC"; then 10938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10939 $as_echo "$WC" >&6; } 10940 else 10941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10942 $as_echo "no" >&6; } 10943 fi 10944 10945 10946 test -n "$WC" && break 10947 done 10948 10949 else 10950 # If it succeeded, then it was overridden by the user. We will use it 10951 # for the tool. 10952 10953 # First remove it from the list of overridden variables, so we can test 10954 # for unknown variables in the end. 10955 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 10956 10957 # Check if the provided tool contains a complete path. 10958 tool_specified="$WC" 10959 tool_basename="${tool_specified##*/}" 10960 if test "x$tool_basename" = "x$tool_specified"; then 10961 # A command without a complete path is provided, search $PATH. 10962 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WC=$tool_basename" >&5 10963 $as_echo "$as_me: Will search for user supplied tool WC=$tool_basename" >&6;} 10964 # Extract the first word of "$tool_basename", so it can be a program name with args. 10965 set dummy $tool_basename; ac_word=$2 10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10967 $as_echo_n "checking for $ac_word... " >&6; } 10968 if ${ac_cv_path_WC+:} false; then : 10969 $as_echo_n "(cached) " >&6 10970 else 10971 case $WC in 10972 [\\/]* | ?:[\\/]*) 10973 ac_cv_path_WC="$WC" # Let the user override the test with a path. 10974 ;; 10975 *) 10976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10977 for as_dir in $PATH 10978 do 10979 IFS=$as_save_IFS 10980 test -z "$as_dir" && as_dir=. 10981 for ac_exec_ext in '' $ac_executable_extensions; do 10982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10983 ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext" 10984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10985 break 2 10986 fi 10987 done 10988 done 10989 IFS=$as_save_IFS 10990 10991 ;; 10992 esac 10993 fi 10994 WC=$ac_cv_path_WC 10995 if test -n "$WC"; then 10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5 10997 $as_echo "$WC" >&6; } 10998 else 10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11000 $as_echo "no" >&6; } 11001 fi 11002 11003 11004 if test "x$WC" = x; then 11005 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11006 fi 11007 else 11008 # Otherwise we believe it is a complete path. Use it as it is. 11009 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WC=$tool_specified" >&5 11010 $as_echo "$as_me: Will use user supplied tool WC=$tool_specified" >&6;} 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WC" >&5 11012 $as_echo_n "checking for WC... " >&6; } 11013 if test ! -x "$tool_specified"; then 11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11015 $as_echo "not found" >&6; } 11016 as_fn_error $? "User supplied tool WC=$tool_specified does not exist or is not executable" "$LINENO" 5 11017 fi 11018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11019 $as_echo "$tool_specified" >&6; } 11020 fi 11021 fi 11022 fi 11023 11024 11025 11026 if test "x$WC" = x; then 11027 as_fn_error $? "Could not find required tool for WC" "$LINENO" 5 11028 fi 11029 11030 11031 11032 11033 11034 # Publish this variable in the help. 11035 11036 11037 if test "x$WHICH" = x; then 11038 # The variable is not set by user, try to locate tool using the code snippet 11039 for ac_prog in which 11040 do 11041 # Extract the first word of "$ac_prog", so it can be a program name with args. 11042 set dummy $ac_prog; ac_word=$2 11043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11044 $as_echo_n "checking for $ac_word... " >&6; } 11045 if ${ac_cv_path_WHICH+:} false; then : 11046 $as_echo_n "(cached) " >&6 11047 else 11048 case $WHICH in 11049 [\\/]* | ?:[\\/]*) 11050 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11051 ;; 11052 *) 11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11054 for as_dir in $PATH 11055 do 11056 IFS=$as_save_IFS 11057 test -z "$as_dir" && as_dir=. 11058 for ac_exec_ext in '' $ac_executable_extensions; do 11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11060 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11062 break 2 11063 fi 11064 done 11065 done 11066 IFS=$as_save_IFS 11067 11068 ;; 11069 esac 11070 fi 11071 WHICH=$ac_cv_path_WHICH 11072 if test -n "$WHICH"; then 11073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11074 $as_echo "$WHICH" >&6; } 11075 else 11076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11077 $as_echo "no" >&6; } 11078 fi 11079 11080 11081 test -n "$WHICH" && break 11082 done 11083 11084 else 11085 # The variable is set, but is it from the command line or the environment? 11086 11087 # Try to remove the string !WHICH! from our list. 11088 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!WHICH!/} 11089 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11090 # If it failed, the variable was not from the command line. Ignore it, 11091 # but warn the user (except for BASH, which is always set by the calling BASH). 11092 if test "xWHICH" != xBASH; then 11093 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&5 11094 $as_echo "$as_me: WARNING: Ignoring value of WHICH from the environment. Use command line variables instead." >&2;} 11095 fi 11096 # Try to locate tool using the code snippet 11097 for ac_prog in which 11098 do 11099 # Extract the first word of "$ac_prog", so it can be a program name with args. 11100 set dummy $ac_prog; ac_word=$2 11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11102 $as_echo_n "checking for $ac_word... " >&6; } 11103 if ${ac_cv_path_WHICH+:} false; then : 11104 $as_echo_n "(cached) " >&6 11105 else 11106 case $WHICH in 11107 [\\/]* | ?:[\\/]*) 11108 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11109 ;; 11110 *) 11111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11112 for as_dir in $PATH 11113 do 11114 IFS=$as_save_IFS 11115 test -z "$as_dir" && as_dir=. 11116 for ac_exec_ext in '' $ac_executable_extensions; do 11117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11118 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11120 break 2 11121 fi 11122 done 11123 done 11124 IFS=$as_save_IFS 11125 11126 ;; 11127 esac 11128 fi 11129 WHICH=$ac_cv_path_WHICH 11130 if test -n "$WHICH"; then 11131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11132 $as_echo "$WHICH" >&6; } 11133 else 11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11135 $as_echo "no" >&6; } 11136 fi 11137 11138 11139 test -n "$WHICH" && break 11140 done 11141 11142 else 11143 # If it succeeded, then it was overridden by the user. We will use it 11144 # for the tool. 11145 11146 # First remove it from the list of overridden variables, so we can test 11147 # for unknown variables in the end. 11148 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11149 11150 # Check if the provided tool contains a complete path. 11151 tool_specified="$WHICH" 11152 tool_basename="${tool_specified##*/}" 11153 if test "x$tool_basename" = "x$tool_specified"; then 11154 # A command without a complete path is provided, search $PATH. 11155 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool WHICH=$tool_basename" >&5 11156 $as_echo "$as_me: Will search for user supplied tool WHICH=$tool_basename" >&6;} 11157 # Extract the first word of "$tool_basename", so it can be a program name with args. 11158 set dummy $tool_basename; ac_word=$2 11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11160 $as_echo_n "checking for $ac_word... " >&6; } 11161 if ${ac_cv_path_WHICH+:} false; then : 11162 $as_echo_n "(cached) " >&6 11163 else 11164 case $WHICH in 11165 [\\/]* | ?:[\\/]*) 11166 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path. 11167 ;; 11168 *) 11169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11170 for as_dir in $PATH 11171 do 11172 IFS=$as_save_IFS 11173 test -z "$as_dir" && as_dir=. 11174 for ac_exec_ext in '' $ac_executable_extensions; do 11175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11176 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext" 11177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11178 break 2 11179 fi 11180 done 11181 done 11182 IFS=$as_save_IFS 11183 11184 ;; 11185 esac 11186 fi 11187 WHICH=$ac_cv_path_WHICH 11188 if test -n "$WHICH"; then 11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5 11190 $as_echo "$WHICH" >&6; } 11191 else 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11193 $as_echo "no" >&6; } 11194 fi 11195 11196 11197 if test "x$WHICH" = x; then 11198 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11199 fi 11200 else 11201 # Otherwise we believe it is a complete path. Use it as it is. 11202 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool WHICH=$tool_specified" >&5 11203 $as_echo "$as_me: Will use user supplied tool WHICH=$tool_specified" >&6;} 11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WHICH" >&5 11205 $as_echo_n "checking for WHICH... " >&6; } 11206 if test ! -x "$tool_specified"; then 11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11208 $as_echo "not found" >&6; } 11209 as_fn_error $? "User supplied tool WHICH=$tool_specified does not exist or is not executable" "$LINENO" 5 11210 fi 11211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11212 $as_echo "$tool_specified" >&6; } 11213 fi 11214 fi 11215 fi 11216 11217 11218 11219 if test "x$WHICH" = x; then 11220 as_fn_error $? "Could not find required tool for WHICH" "$LINENO" 5 11221 fi 11222 11223 11224 11225 11226 11227 # Publish this variable in the help. 11228 11229 11230 if test "x$XARGS" = x; then 11231 # The variable is not set by user, try to locate tool using the code snippet 11232 for ac_prog in xargs 11233 do 11234 # Extract the first word of "$ac_prog", so it can be a program name with args. 11235 set dummy $ac_prog; ac_word=$2 11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11237 $as_echo_n "checking for $ac_word... " >&6; } 11238 if ${ac_cv_path_XARGS+:} false; then : 11239 $as_echo_n "(cached) " >&6 11240 else 11241 case $XARGS in 11242 [\\/]* | ?:[\\/]*) 11243 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11244 ;; 11245 *) 11246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11247 for as_dir in $PATH 11248 do 11249 IFS=$as_save_IFS 11250 test -z "$as_dir" && as_dir=. 11251 for ac_exec_ext in '' $ac_executable_extensions; do 11252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11253 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11255 break 2 11256 fi 11257 done 11258 done 11259 IFS=$as_save_IFS 11260 11261 ;; 11262 esac 11263 fi 11264 XARGS=$ac_cv_path_XARGS 11265 if test -n "$XARGS"; then 11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11267 $as_echo "$XARGS" >&6; } 11268 else 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11270 $as_echo "no" >&6; } 11271 fi 11272 11273 11274 test -n "$XARGS" && break 11275 done 11276 11277 else 11278 # The variable is set, but is it from the command line or the environment? 11279 11280 # Try to remove the string !XARGS! from our list. 11281 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XARGS!/} 11282 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11283 # If it failed, the variable was not from the command line. Ignore it, 11284 # but warn the user (except for BASH, which is always set by the calling BASH). 11285 if test "xXARGS" != xBASH; then 11286 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&5 11287 $as_echo "$as_me: WARNING: Ignoring value of XARGS from the environment. Use command line variables instead." >&2;} 11288 fi 11289 # Try to locate tool using the code snippet 11290 for ac_prog in xargs 11291 do 11292 # Extract the first word of "$ac_prog", so it can be a program name with args. 11293 set dummy $ac_prog; ac_word=$2 11294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11295 $as_echo_n "checking for $ac_word... " >&6; } 11296 if ${ac_cv_path_XARGS+:} false; then : 11297 $as_echo_n "(cached) " >&6 11298 else 11299 case $XARGS in 11300 [\\/]* | ?:[\\/]*) 11301 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11302 ;; 11303 *) 11304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11305 for as_dir in $PATH 11306 do 11307 IFS=$as_save_IFS 11308 test -z "$as_dir" && as_dir=. 11309 for ac_exec_ext in '' $ac_executable_extensions; do 11310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11311 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11313 break 2 11314 fi 11315 done 11316 done 11317 IFS=$as_save_IFS 11318 11319 ;; 11320 esac 11321 fi 11322 XARGS=$ac_cv_path_XARGS 11323 if test -n "$XARGS"; then 11324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11325 $as_echo "$XARGS" >&6; } 11326 else 11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11328 $as_echo "no" >&6; } 11329 fi 11330 11331 11332 test -n "$XARGS" && break 11333 done 11334 11335 else 11336 # If it succeeded, then it was overridden by the user. We will use it 11337 # for the tool. 11338 11339 # First remove it from the list of overridden variables, so we can test 11340 # for unknown variables in the end. 11341 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11342 11343 # Check if the provided tool contains a complete path. 11344 tool_specified="$XARGS" 11345 tool_basename="${tool_specified##*/}" 11346 if test "x$tool_basename" = "x$tool_specified"; then 11347 # A command without a complete path is provided, search $PATH. 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XARGS=$tool_basename" >&5 11349 $as_echo "$as_me: Will search for user supplied tool XARGS=$tool_basename" >&6;} 11350 # Extract the first word of "$tool_basename", so it can be a program name with args. 11351 set dummy $tool_basename; ac_word=$2 11352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11353 $as_echo_n "checking for $ac_word... " >&6; } 11354 if ${ac_cv_path_XARGS+:} false; then : 11355 $as_echo_n "(cached) " >&6 11356 else 11357 case $XARGS in 11358 [\\/]* | ?:[\\/]*) 11359 ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path. 11360 ;; 11361 *) 11362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11363 for as_dir in $PATH 11364 do 11365 IFS=$as_save_IFS 11366 test -z "$as_dir" && as_dir=. 11367 for ac_exec_ext in '' $ac_executable_extensions; do 11368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11369 ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext" 11370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11371 break 2 11372 fi 11373 done 11374 done 11375 IFS=$as_save_IFS 11376 11377 ;; 11378 esac 11379 fi 11380 XARGS=$ac_cv_path_XARGS 11381 if test -n "$XARGS"; then 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5 11383 $as_echo "$XARGS" >&6; } 11384 else 11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11386 $as_echo "no" >&6; } 11387 fi 11388 11389 11390 if test "x$XARGS" = x; then 11391 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11392 fi 11393 else 11394 # Otherwise we believe it is a complete path. Use it as it is. 11395 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XARGS=$tool_specified" >&5 11396 $as_echo "$as_me: Will use user supplied tool XARGS=$tool_specified" >&6;} 11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XARGS" >&5 11398 $as_echo_n "checking for XARGS... " >&6; } 11399 if test ! -x "$tool_specified"; then 11400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11401 $as_echo "not found" >&6; } 11402 as_fn_error $? "User supplied tool XARGS=$tool_specified does not exist or is not executable" "$LINENO" 5 11403 fi 11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11405 $as_echo "$tool_specified" >&6; } 11406 fi 11407 fi 11408 fi 11409 11410 11411 11412 if test "x$XARGS" = x; then 11413 as_fn_error $? "Could not find required tool for XARGS" "$LINENO" 5 11414 fi 11415 11416 11417 11418 # Then required tools that require some special treatment. 11419 11420 11421 # Publish this variable in the help. 11422 11423 11424 if test "x$AWK" = x; then 11425 # The variable is not set by user, try to locate tool using the code snippet 11426 for ac_prog in gawk mawk nawk awk 11427 do 11428 # Extract the first word of "$ac_prog", so it can be a program name with args. 11429 set dummy $ac_prog; ac_word=$2 11430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11431 $as_echo_n "checking for $ac_word... " >&6; } 11432 if ${ac_cv_prog_AWK+:} false; then : 11433 $as_echo_n "(cached) " >&6 11434 else 11435 if test -n "$AWK"; then 11436 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11437 else 11438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11439 for as_dir in $PATH 11440 do 11441 IFS=$as_save_IFS 11442 test -z "$as_dir" && as_dir=. 11443 for ac_exec_ext in '' $ac_executable_extensions; do 11444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11445 ac_cv_prog_AWK="$ac_prog" 11446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11447 break 2 11448 fi 11449 done 11450 done 11451 IFS=$as_save_IFS 11452 11453 fi 11454 fi 11455 AWK=$ac_cv_prog_AWK 11456 if test -n "$AWK"; then 11457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11458 $as_echo "$AWK" >&6; } 11459 else 11460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11461 $as_echo "no" >&6; } 11462 fi 11463 11464 11465 test -n "$AWK" && break 11466 done 11467 11468 else 11469 # The variable is set, but is it from the command line or the environment? 11470 11471 # Try to remove the string !AWK! from our list. 11472 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AWK!/} 11473 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11474 # If it failed, the variable was not from the command line. Ignore it, 11475 # but warn the user (except for BASH, which is always set by the calling BASH). 11476 if test "xAWK" != xBASH; then 11477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&5 11478 $as_echo "$as_me: WARNING: Ignoring value of AWK from the environment. Use command line variables instead." >&2;} 11479 fi 11480 # Try to locate tool using the code snippet 11481 for ac_prog in gawk mawk nawk awk 11482 do 11483 # Extract the first word of "$ac_prog", so it can be a program name with args. 11484 set dummy $ac_prog; ac_word=$2 11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11486 $as_echo_n "checking for $ac_word... " >&6; } 11487 if ${ac_cv_prog_AWK+:} false; then : 11488 $as_echo_n "(cached) " >&6 11489 else 11490 if test -n "$AWK"; then 11491 ac_cv_prog_AWK="$AWK" # Let the user override the test. 11492 else 11493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11494 for as_dir in $PATH 11495 do 11496 IFS=$as_save_IFS 11497 test -z "$as_dir" && as_dir=. 11498 for ac_exec_ext in '' $ac_executable_extensions; do 11499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11500 ac_cv_prog_AWK="$ac_prog" 11501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11502 break 2 11503 fi 11504 done 11505 done 11506 IFS=$as_save_IFS 11507 11508 fi 11509 fi 11510 AWK=$ac_cv_prog_AWK 11511 if test -n "$AWK"; then 11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11513 $as_echo "$AWK" >&6; } 11514 else 11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11516 $as_echo "no" >&6; } 11517 fi 11518 11519 11520 test -n "$AWK" && break 11521 done 11522 11523 else 11524 # If it succeeded, then it was overridden by the user. We will use it 11525 # for the tool. 11526 11527 # First remove it from the list of overridden variables, so we can test 11528 # for unknown variables in the end. 11529 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11530 11531 # Check if the provided tool contains a complete path. 11532 tool_specified="$AWK" 11533 tool_basename="${tool_specified##*/}" 11534 if test "x$tool_basename" = "x$tool_specified"; then 11535 # A command without a complete path is provided, search $PATH. 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AWK=$tool_basename" >&5 11537 $as_echo "$as_me: Will search for user supplied tool AWK=$tool_basename" >&6;} 11538 # Extract the first word of "$tool_basename", so it can be a program name with args. 11539 set dummy $tool_basename; ac_word=$2 11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11541 $as_echo_n "checking for $ac_word... " >&6; } 11542 if ${ac_cv_path_AWK+:} false; then : 11543 $as_echo_n "(cached) " >&6 11544 else 11545 case $AWK in 11546 [\\/]* | ?:[\\/]*) 11547 ac_cv_path_AWK="$AWK" # Let the user override the test with a path. 11548 ;; 11549 *) 11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11551 for as_dir in $PATH 11552 do 11553 IFS=$as_save_IFS 11554 test -z "$as_dir" && as_dir=. 11555 for ac_exec_ext in '' $ac_executable_extensions; do 11556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11557 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext" 11558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11559 break 2 11560 fi 11561 done 11562 done 11563 IFS=$as_save_IFS 11564 11565 ;; 11566 esac 11567 fi 11568 AWK=$ac_cv_path_AWK 11569 if test -n "$AWK"; then 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 11571 $as_echo "$AWK" >&6; } 11572 else 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11574 $as_echo "no" >&6; } 11575 fi 11576 11577 11578 if test "x$AWK" = x; then 11579 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11580 fi 11581 else 11582 # Otherwise we believe it is a complete path. Use it as it is. 11583 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AWK=$tool_specified" >&5 11584 $as_echo "$as_me: Will use user supplied tool AWK=$tool_specified" >&6;} 11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AWK" >&5 11586 $as_echo_n "checking for AWK... " >&6; } 11587 if test ! -x "$tool_specified"; then 11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11589 $as_echo "not found" >&6; } 11590 as_fn_error $? "User supplied tool AWK=$tool_specified does not exist or is not executable" "$LINENO" 5 11591 fi 11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11593 $as_echo "$tool_specified" >&6; } 11594 fi 11595 fi 11596 fi 11597 11598 11599 if test "x$AWK" = x; then 11600 as_fn_error $? "Could not find required tool for AWK" "$LINENO" 5 11601 fi 11602 11603 11604 11605 11606 # Publish this variable in the help. 11607 11608 11609 if test "x$GREP" = x; then 11610 # The variable is not set by user, try to locate tool using the code snippet 11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11612 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11613 if ${ac_cv_path_GREP+:} false; then : 11614 $as_echo_n "(cached) " >&6 11615 else 11616 if test -z "$GREP"; then 11617 ac_path_GREP_found=false 11618 # Loop through the user's path and test for each of PROGNAME-LIST 11619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11620 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11621 do 11622 IFS=$as_save_IFS 11623 test -z "$as_dir" && as_dir=. 11624 for ac_prog in grep ggrep; do 11625 for ac_exec_ext in '' $ac_executable_extensions; do 11626 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11627 as_fn_executable_p "$ac_path_GREP" || continue 11628 # Check for GNU ac_path_GREP and select it if it is found. 11629 # Check for GNU $ac_path_GREP 11630 case `"$ac_path_GREP" --version 2>&1` in 11631 *GNU*) 11632 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11633 *) 11634 ac_count=0 11635 $as_echo_n 0123456789 >"conftest.in" 11636 while : 11637 do 11638 cat "conftest.in" "conftest.in" >"conftest.tmp" 11639 mv "conftest.tmp" "conftest.in" 11640 cp "conftest.in" "conftest.nl" 11641 $as_echo 'GREP' >> "conftest.nl" 11642 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11643 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11644 as_fn_arith $ac_count + 1 && ac_count=$as_val 11645 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11646 # Best one so far, save it but keep looking for a better one 11647 ac_cv_path_GREP="$ac_path_GREP" 11648 ac_path_GREP_max=$ac_count 11649 fi 11650 # 10*(2^10) chars as input seems more than enough 11651 test $ac_count -gt 10 && break 11652 done 11653 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11654 esac 11655 11656 $ac_path_GREP_found && break 3 11657 done 11658 done 11659 done 11660 IFS=$as_save_IFS 11661 if test -z "$ac_cv_path_GREP"; then 11662 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11663 fi 11664 else 11665 ac_cv_path_GREP=$GREP 11666 fi 11667 11668 fi 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11670 $as_echo "$ac_cv_path_GREP" >&6; } 11671 GREP="$ac_cv_path_GREP" 11672 11673 11674 else 11675 # The variable is set, but is it from the command line or the environment? 11676 11677 # Try to remove the string !GREP! from our list. 11678 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GREP!/} 11679 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11680 # If it failed, the variable was not from the command line. Ignore it, 11681 # but warn the user (except for BASH, which is always set by the calling BASH). 11682 if test "xGREP" != xBASH; then 11683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&5 11684 $as_echo "$as_me: WARNING: Ignoring value of GREP from the environment. Use command line variables instead." >&2;} 11685 fi 11686 # Try to locate tool using the code snippet 11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 11688 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 11689 if ${ac_cv_path_GREP+:} false; then : 11690 $as_echo_n "(cached) " >&6 11691 else 11692 if test -z "$GREP"; then 11693 ac_path_GREP_found=false 11694 # Loop through the user's path and test for each of PROGNAME-LIST 11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11696 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11697 do 11698 IFS=$as_save_IFS 11699 test -z "$as_dir" && as_dir=. 11700 for ac_prog in grep ggrep; do 11701 for ac_exec_ext in '' $ac_executable_extensions; do 11702 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 11703 as_fn_executable_p "$ac_path_GREP" || continue 11704 # Check for GNU ac_path_GREP and select it if it is found. 11705 # Check for GNU $ac_path_GREP 11706 case `"$ac_path_GREP" --version 2>&1` in 11707 *GNU*) 11708 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 11709 *) 11710 ac_count=0 11711 $as_echo_n 0123456789 >"conftest.in" 11712 while : 11713 do 11714 cat "conftest.in" "conftest.in" >"conftest.tmp" 11715 mv "conftest.tmp" "conftest.in" 11716 cp "conftest.in" "conftest.nl" 11717 $as_echo 'GREP' >> "conftest.nl" 11718 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11719 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11720 as_fn_arith $ac_count + 1 && ac_count=$as_val 11721 if test $ac_count -gt ${ac_path_GREP_max-0}; then 11722 # Best one so far, save it but keep looking for a better one 11723 ac_cv_path_GREP="$ac_path_GREP" 11724 ac_path_GREP_max=$ac_count 11725 fi 11726 # 10*(2^10) chars as input seems more than enough 11727 test $ac_count -gt 10 && break 11728 done 11729 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11730 esac 11731 11732 $ac_path_GREP_found && break 3 11733 done 11734 done 11735 done 11736 IFS=$as_save_IFS 11737 if test -z "$ac_cv_path_GREP"; then 11738 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11739 fi 11740 else 11741 ac_cv_path_GREP=$GREP 11742 fi 11743 11744 fi 11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 11746 $as_echo "$ac_cv_path_GREP" >&6; } 11747 GREP="$ac_cv_path_GREP" 11748 11749 11750 else 11751 # If it succeeded, then it was overridden by the user. We will use it 11752 # for the tool. 11753 11754 # First remove it from the list of overridden variables, so we can test 11755 # for unknown variables in the end. 11756 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11757 11758 # Check if the provided tool contains a complete path. 11759 tool_specified="$GREP" 11760 tool_basename="${tool_specified##*/}" 11761 if test "x$tool_basename" = "x$tool_specified"; then 11762 # A command without a complete path is provided, search $PATH. 11763 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GREP=$tool_basename" >&5 11764 $as_echo "$as_me: Will search for user supplied tool GREP=$tool_basename" >&6;} 11765 # Extract the first word of "$tool_basename", so it can be a program name with args. 11766 set dummy $tool_basename; ac_word=$2 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11768 $as_echo_n "checking for $ac_word... " >&6; } 11769 if ${ac_cv_path_GREP+:} false; then : 11770 $as_echo_n "(cached) " >&6 11771 else 11772 case $GREP in 11773 [\\/]* | ?:[\\/]*) 11774 ac_cv_path_GREP="$GREP" # Let the user override the test with a path. 11775 ;; 11776 *) 11777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11778 for as_dir in $PATH 11779 do 11780 IFS=$as_save_IFS 11781 test -z "$as_dir" && as_dir=. 11782 for ac_exec_ext in '' $ac_executable_extensions; do 11783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11784 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext" 11785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11786 break 2 11787 fi 11788 done 11789 done 11790 IFS=$as_save_IFS 11791 11792 ;; 11793 esac 11794 fi 11795 GREP=$ac_cv_path_GREP 11796 if test -n "$GREP"; then 11797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5 11798 $as_echo "$GREP" >&6; } 11799 else 11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11801 $as_echo "no" >&6; } 11802 fi 11803 11804 11805 if test "x$GREP" = x; then 11806 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 11807 fi 11808 else 11809 # Otherwise we believe it is a complete path. Use it as it is. 11810 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GREP=$tool_specified" >&5 11811 $as_echo "$as_me: Will use user supplied tool GREP=$tool_specified" >&6;} 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GREP" >&5 11813 $as_echo_n "checking for GREP... " >&6; } 11814 if test ! -x "$tool_specified"; then 11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 11816 $as_echo "not found" >&6; } 11817 as_fn_error $? "User supplied tool GREP=$tool_specified does not exist or is not executable" "$LINENO" 5 11818 fi 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 11820 $as_echo "$tool_specified" >&6; } 11821 fi 11822 fi 11823 fi 11824 11825 11826 if test "x$GREP" = x; then 11827 as_fn_error $? "Could not find required tool for GREP" "$LINENO" 5 11828 fi 11829 11830 11831 11832 11833 # Publish this variable in the help. 11834 11835 11836 if test "x$EGREP" = x; then 11837 # The variable is not set by user, try to locate tool using the code snippet 11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11839 $as_echo_n "checking for egrep... " >&6; } 11840 if ${ac_cv_path_EGREP+:} false; then : 11841 $as_echo_n "(cached) " >&6 11842 else 11843 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11844 then ac_cv_path_EGREP="$GREP -E" 11845 else 11846 if test -z "$EGREP"; then 11847 ac_path_EGREP_found=false 11848 # Loop through the user's path and test for each of PROGNAME-LIST 11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11850 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11851 do 11852 IFS=$as_save_IFS 11853 test -z "$as_dir" && as_dir=. 11854 for ac_prog in egrep; do 11855 for ac_exec_ext in '' $ac_executable_extensions; do 11856 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11857 as_fn_executable_p "$ac_path_EGREP" || continue 11858 # Check for GNU ac_path_EGREP and select it if it is found. 11859 # Check for GNU $ac_path_EGREP 11860 case `"$ac_path_EGREP" --version 2>&1` in 11861 *GNU*) 11862 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11863 *) 11864 ac_count=0 11865 $as_echo_n 0123456789 >"conftest.in" 11866 while : 11867 do 11868 cat "conftest.in" "conftest.in" >"conftest.tmp" 11869 mv "conftest.tmp" "conftest.in" 11870 cp "conftest.in" "conftest.nl" 11871 $as_echo 'EGREP' >> "conftest.nl" 11872 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11873 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11874 as_fn_arith $ac_count + 1 && ac_count=$as_val 11875 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11876 # Best one so far, save it but keep looking for a better one 11877 ac_cv_path_EGREP="$ac_path_EGREP" 11878 ac_path_EGREP_max=$ac_count 11879 fi 11880 # 10*(2^10) chars as input seems more than enough 11881 test $ac_count -gt 10 && break 11882 done 11883 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11884 esac 11885 11886 $ac_path_EGREP_found && break 3 11887 done 11888 done 11889 done 11890 IFS=$as_save_IFS 11891 if test -z "$ac_cv_path_EGREP"; then 11892 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11893 fi 11894 else 11895 ac_cv_path_EGREP=$EGREP 11896 fi 11897 11898 fi 11899 fi 11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11901 $as_echo "$ac_cv_path_EGREP" >&6; } 11902 EGREP="$ac_cv_path_EGREP" 11903 11904 11905 else 11906 # The variable is set, but is it from the command line or the environment? 11907 11908 # Try to remove the string !EGREP! from our list. 11909 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!EGREP!/} 11910 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 11911 # If it failed, the variable was not from the command line. Ignore it, 11912 # but warn the user (except for BASH, which is always set by the calling BASH). 11913 if test "xEGREP" != xBASH; then 11914 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&5 11915 $as_echo "$as_me: WARNING: Ignoring value of EGREP from the environment. Use command line variables instead." >&2;} 11916 fi 11917 # Try to locate tool using the code snippet 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 11919 $as_echo_n "checking for egrep... " >&6; } 11920 if ${ac_cv_path_EGREP+:} false; then : 11921 $as_echo_n "(cached) " >&6 11922 else 11923 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 11924 then ac_cv_path_EGREP="$GREP -E" 11925 else 11926 if test -z "$EGREP"; then 11927 ac_path_EGREP_found=false 11928 # Loop through the user's path and test for each of PROGNAME-LIST 11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11931 do 11932 IFS=$as_save_IFS 11933 test -z "$as_dir" && as_dir=. 11934 for ac_prog in egrep; do 11935 for ac_exec_ext in '' $ac_executable_extensions; do 11936 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 11937 as_fn_executable_p "$ac_path_EGREP" || continue 11938 # Check for GNU ac_path_EGREP and select it if it is found. 11939 # Check for GNU $ac_path_EGREP 11940 case `"$ac_path_EGREP" --version 2>&1` in 11941 *GNU*) 11942 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 11943 *) 11944 ac_count=0 11945 $as_echo_n 0123456789 >"conftest.in" 11946 while : 11947 do 11948 cat "conftest.in" "conftest.in" >"conftest.tmp" 11949 mv "conftest.tmp" "conftest.in" 11950 cp "conftest.in" "conftest.nl" 11951 $as_echo 'EGREP' >> "conftest.nl" 11952 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 11953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11954 as_fn_arith $ac_count + 1 && ac_count=$as_val 11955 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 11956 # Best one so far, save it but keep looking for a better one 11957 ac_cv_path_EGREP="$ac_path_EGREP" 11958 ac_path_EGREP_max=$ac_count 11959 fi 11960 # 10*(2^10) chars as input seems more than enough 11961 test $ac_count -gt 10 && break 11962 done 11963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11964 esac 11965 11966 $ac_path_EGREP_found && break 3 11967 done 11968 done 11969 done 11970 IFS=$as_save_IFS 11971 if test -z "$ac_cv_path_EGREP"; then 11972 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 11973 fi 11974 else 11975 ac_cv_path_EGREP=$EGREP 11976 fi 11977 11978 fi 11979 fi 11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 11981 $as_echo "$ac_cv_path_EGREP" >&6; } 11982 EGREP="$ac_cv_path_EGREP" 11983 11984 11985 else 11986 # If it succeeded, then it was overridden by the user. We will use it 11987 # for the tool. 11988 11989 # First remove it from the list of overridden variables, so we can test 11990 # for unknown variables in the end. 11991 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 11992 11993 # Check if the provided tool contains a complete path. 11994 tool_specified="$EGREP" 11995 tool_basename="${tool_specified##*/}" 11996 if test "x$tool_basename" = "x$tool_specified"; then 11997 # A command without a complete path is provided, search $PATH. 11998 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool EGREP=$tool_basename" >&5 11999 $as_echo "$as_me: Will search for user supplied tool EGREP=$tool_basename" >&6;} 12000 # Extract the first word of "$tool_basename", so it can be a program name with args. 12001 set dummy $tool_basename; ac_word=$2 12002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12003 $as_echo_n "checking for $ac_word... " >&6; } 12004 if ${ac_cv_path_EGREP+:} false; then : 12005 $as_echo_n "(cached) " >&6 12006 else 12007 case $EGREP in 12008 [\\/]* | ?:[\\/]*) 12009 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path. 12010 ;; 12011 *) 12012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12013 for as_dir in $PATH 12014 do 12015 IFS=$as_save_IFS 12016 test -z "$as_dir" && as_dir=. 12017 for ac_exec_ext in '' $ac_executable_extensions; do 12018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12019 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext" 12020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12021 break 2 12022 fi 12023 done 12024 done 12025 IFS=$as_save_IFS 12026 12027 ;; 12028 esac 12029 fi 12030 EGREP=$ac_cv_path_EGREP 12031 if test -n "$EGREP"; then 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5 12033 $as_echo "$EGREP" >&6; } 12034 else 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12036 $as_echo "no" >&6; } 12037 fi 12038 12039 12040 if test "x$EGREP" = x; then 12041 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12042 fi 12043 else 12044 # Otherwise we believe it is a complete path. Use it as it is. 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool EGREP=$tool_specified" >&5 12046 $as_echo "$as_me: Will use user supplied tool EGREP=$tool_specified" >&6;} 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGREP" >&5 12048 $as_echo_n "checking for EGREP... " >&6; } 12049 if test ! -x "$tool_specified"; then 12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12051 $as_echo "not found" >&6; } 12052 as_fn_error $? "User supplied tool EGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12053 fi 12054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12055 $as_echo "$tool_specified" >&6; } 12056 fi 12057 fi 12058 fi 12059 12060 12061 if test "x$EGREP" = x; then 12062 as_fn_error $? "Could not find required tool for EGREP" "$LINENO" 5 12063 fi 12064 12065 12066 12067 12068 # Publish this variable in the help. 12069 12070 12071 if test "x$FGREP" = x; then 12072 # The variable is not set by user, try to locate tool using the code snippet 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12074 $as_echo_n "checking for fgrep... " >&6; } 12075 if ${ac_cv_path_FGREP+:} false; then : 12076 $as_echo_n "(cached) " >&6 12077 else 12078 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12079 then ac_cv_path_FGREP="$GREP -F" 12080 else 12081 if test -z "$FGREP"; then 12082 ac_path_FGREP_found=false 12083 # Loop through the user's path and test for each of PROGNAME-LIST 12084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12085 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12086 do 12087 IFS=$as_save_IFS 12088 test -z "$as_dir" && as_dir=. 12089 for ac_prog in fgrep; do 12090 for ac_exec_ext in '' $ac_executable_extensions; do 12091 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12092 as_fn_executable_p "$ac_path_FGREP" || continue 12093 # Check for GNU ac_path_FGREP and select it if it is found. 12094 # Check for GNU $ac_path_FGREP 12095 case `"$ac_path_FGREP" --version 2>&1` in 12096 *GNU*) 12097 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12098 *) 12099 ac_count=0 12100 $as_echo_n 0123456789 >"conftest.in" 12101 while : 12102 do 12103 cat "conftest.in" "conftest.in" >"conftest.tmp" 12104 mv "conftest.tmp" "conftest.in" 12105 cp "conftest.in" "conftest.nl" 12106 $as_echo 'FGREP' >> "conftest.nl" 12107 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12108 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12109 as_fn_arith $ac_count + 1 && ac_count=$as_val 12110 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12111 # Best one so far, save it but keep looking for a better one 12112 ac_cv_path_FGREP="$ac_path_FGREP" 12113 ac_path_FGREP_max=$ac_count 12114 fi 12115 # 10*(2^10) chars as input seems more than enough 12116 test $ac_count -gt 10 && break 12117 done 12118 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12119 esac 12120 12121 $ac_path_FGREP_found && break 3 12122 done 12123 done 12124 done 12125 IFS=$as_save_IFS 12126 if test -z "$ac_cv_path_FGREP"; then 12127 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12128 fi 12129 else 12130 ac_cv_path_FGREP=$FGREP 12131 fi 12132 12133 fi 12134 fi 12135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12136 $as_echo "$ac_cv_path_FGREP" >&6; } 12137 FGREP="$ac_cv_path_FGREP" 12138 12139 12140 else 12141 # The variable is set, but is it from the command line or the environment? 12142 12143 # Try to remove the string !FGREP! from our list. 12144 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!FGREP!/} 12145 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12146 # If it failed, the variable was not from the command line. Ignore it, 12147 # but warn the user (except for BASH, which is always set by the calling BASH). 12148 if test "xFGREP" != xBASH; then 12149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&5 12150 $as_echo "$as_me: WARNING: Ignoring value of FGREP from the environment. Use command line variables instead." >&2;} 12151 fi 12152 # Try to locate tool using the code snippet 12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 12154 $as_echo_n "checking for fgrep... " >&6; } 12155 if ${ac_cv_path_FGREP+:} false; then : 12156 $as_echo_n "(cached) " >&6 12157 else 12158 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 12159 then ac_cv_path_FGREP="$GREP -F" 12160 else 12161 if test -z "$FGREP"; then 12162 ac_path_FGREP_found=false 12163 # Loop through the user's path and test for each of PROGNAME-LIST 12164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12165 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 12166 do 12167 IFS=$as_save_IFS 12168 test -z "$as_dir" && as_dir=. 12169 for ac_prog in fgrep; do 12170 for ac_exec_ext in '' $ac_executable_extensions; do 12171 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 12172 as_fn_executable_p "$ac_path_FGREP" || continue 12173 # Check for GNU ac_path_FGREP and select it if it is found. 12174 # Check for GNU $ac_path_FGREP 12175 case `"$ac_path_FGREP" --version 2>&1` in 12176 *GNU*) 12177 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12178 *) 12179 ac_count=0 12180 $as_echo_n 0123456789 >"conftest.in" 12181 while : 12182 do 12183 cat "conftest.in" "conftest.in" >"conftest.tmp" 12184 mv "conftest.tmp" "conftest.in" 12185 cp "conftest.in" "conftest.nl" 12186 $as_echo 'FGREP' >> "conftest.nl" 12187 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12188 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12189 as_fn_arith $ac_count + 1 && ac_count=$as_val 12190 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12191 # Best one so far, save it but keep looking for a better one 12192 ac_cv_path_FGREP="$ac_path_FGREP" 12193 ac_path_FGREP_max=$ac_count 12194 fi 12195 # 10*(2^10) chars as input seems more than enough 12196 test $ac_count -gt 10 && break 12197 done 12198 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12199 esac 12200 12201 $ac_path_FGREP_found && break 3 12202 done 12203 done 12204 done 12205 IFS=$as_save_IFS 12206 if test -z "$ac_cv_path_FGREP"; then 12207 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12208 fi 12209 else 12210 ac_cv_path_FGREP=$FGREP 12211 fi 12212 12213 fi 12214 fi 12215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12216 $as_echo "$ac_cv_path_FGREP" >&6; } 12217 FGREP="$ac_cv_path_FGREP" 12218 12219 12220 else 12221 # If it succeeded, then it was overridden by the user. We will use it 12222 # for the tool. 12223 12224 # First remove it from the list of overridden variables, so we can test 12225 # for unknown variables in the end. 12226 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12227 12228 # Check if the provided tool contains a complete path. 12229 tool_specified="$FGREP" 12230 tool_basename="${tool_specified##*/}" 12231 if test "x$tool_basename" = "x$tool_specified"; then 12232 # A command without a complete path is provided, search $PATH. 12233 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool FGREP=$tool_basename" >&5 12234 $as_echo "$as_me: Will search for user supplied tool FGREP=$tool_basename" >&6;} 12235 # Extract the first word of "$tool_basename", so it can be a program name with args. 12236 set dummy $tool_basename; ac_word=$2 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12238 $as_echo_n "checking for $ac_word... " >&6; } 12239 if ${ac_cv_path_FGREP+:} false; then : 12240 $as_echo_n "(cached) " >&6 12241 else 12242 case $FGREP in 12243 [\\/]* | ?:[\\/]*) 12244 ac_cv_path_FGREP="$FGREP" # Let the user override the test with a path. 12245 ;; 12246 *) 12247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12248 for as_dir in $PATH 12249 do 12250 IFS=$as_save_IFS 12251 test -z "$as_dir" && as_dir=. 12252 for ac_exec_ext in '' $ac_executable_extensions; do 12253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12254 ac_cv_path_FGREP="$as_dir/$ac_word$ac_exec_ext" 12255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12256 break 2 12257 fi 12258 done 12259 done 12260 IFS=$as_save_IFS 12261 12262 ;; 12263 esac 12264 fi 12265 FGREP=$ac_cv_path_FGREP 12266 if test -n "$FGREP"; then 12267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FGREP" >&5 12268 $as_echo "$FGREP" >&6; } 12269 else 12270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12271 $as_echo "no" >&6; } 12272 fi 12273 12274 12275 if test "x$FGREP" = x; then 12276 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12277 fi 12278 else 12279 # Otherwise we believe it is a complete path. Use it as it is. 12280 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool FGREP=$tool_specified" >&5 12281 $as_echo "$as_me: Will use user supplied tool FGREP=$tool_specified" >&6;} 12282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FGREP" >&5 12283 $as_echo_n "checking for FGREP... " >&6; } 12284 if test ! -x "$tool_specified"; then 12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12286 $as_echo "not found" >&6; } 12287 as_fn_error $? "User supplied tool FGREP=$tool_specified does not exist or is not executable" "$LINENO" 5 12288 fi 12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12290 $as_echo "$tool_specified" >&6; } 12291 fi 12292 fi 12293 fi 12294 12295 12296 if test "x$FGREP" = x; then 12297 as_fn_error $? "Could not find required tool for FGREP" "$LINENO" 5 12298 fi 12299 12300 12301 12302 12303 # Publish this variable in the help. 12304 12305 12306 if test "x$SED" = x; then 12307 # The variable is not set by user, try to locate tool using the code snippet 12308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12309 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12310 if ${ac_cv_path_SED+:} false; then : 12311 $as_echo_n "(cached) " >&6 12312 else 12313 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12314 for ac_i in 1 2 3 4 5 6 7; do 12315 ac_script="$ac_script$as_nl$ac_script" 12316 done 12317 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12318 { ac_script=; unset ac_script;} 12319 if test -z "$SED"; then 12320 ac_path_SED_found=false 12321 # Loop through the user's path and test for each of PROGNAME-LIST 12322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12323 for as_dir in $PATH 12324 do 12325 IFS=$as_save_IFS 12326 test -z "$as_dir" && as_dir=. 12327 for ac_prog in sed gsed; do 12328 for ac_exec_ext in '' $ac_executable_extensions; do 12329 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12330 as_fn_executable_p "$ac_path_SED" || continue 12331 # Check for GNU ac_path_SED and select it if it is found. 12332 # Check for GNU $ac_path_SED 12333 case `"$ac_path_SED" --version 2>&1` in 12334 *GNU*) 12335 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12336 *) 12337 ac_count=0 12338 $as_echo_n 0123456789 >"conftest.in" 12339 while : 12340 do 12341 cat "conftest.in" "conftest.in" >"conftest.tmp" 12342 mv "conftest.tmp" "conftest.in" 12343 cp "conftest.in" "conftest.nl" 12344 $as_echo '' >> "conftest.nl" 12345 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12346 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12347 as_fn_arith $ac_count + 1 && ac_count=$as_val 12348 if test $ac_count -gt ${ac_path_SED_max-0}; then 12349 # Best one so far, save it but keep looking for a better one 12350 ac_cv_path_SED="$ac_path_SED" 12351 ac_path_SED_max=$ac_count 12352 fi 12353 # 10*(2^10) chars as input seems more than enough 12354 test $ac_count -gt 10 && break 12355 done 12356 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12357 esac 12358 12359 $ac_path_SED_found && break 3 12360 done 12361 done 12362 done 12363 IFS=$as_save_IFS 12364 if test -z "$ac_cv_path_SED"; then 12365 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12366 fi 12367 else 12368 ac_cv_path_SED=$SED 12369 fi 12370 12371 fi 12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12373 $as_echo "$ac_cv_path_SED" >&6; } 12374 SED="$ac_cv_path_SED" 12375 rm -f conftest.sed 12376 12377 else 12378 # The variable is set, but is it from the command line or the environment? 12379 12380 # Try to remove the string !SED! from our list. 12381 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SED!/} 12382 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12383 # If it failed, the variable was not from the command line. Ignore it, 12384 # but warn the user (except for BASH, which is always set by the calling BASH). 12385 if test "xSED" != xBASH; then 12386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&5 12387 $as_echo "$as_me: WARNING: Ignoring value of SED from the environment. Use command line variables instead." >&2;} 12388 fi 12389 # Try to locate tool using the code snippet 12390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 12391 $as_echo_n "checking for a sed that does not truncate output... " >&6; } 12392 if ${ac_cv_path_SED+:} false; then : 12393 $as_echo_n "(cached) " >&6 12394 else 12395 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 12396 for ac_i in 1 2 3 4 5 6 7; do 12397 ac_script="$ac_script$as_nl$ac_script" 12398 done 12399 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 12400 { ac_script=; unset ac_script;} 12401 if test -z "$SED"; then 12402 ac_path_SED_found=false 12403 # Loop through the user's path and test for each of PROGNAME-LIST 12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12405 for as_dir in $PATH 12406 do 12407 IFS=$as_save_IFS 12408 test -z "$as_dir" && as_dir=. 12409 for ac_prog in sed gsed; do 12410 for ac_exec_ext in '' $ac_executable_extensions; do 12411 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 12412 as_fn_executable_p "$ac_path_SED" || continue 12413 # Check for GNU ac_path_SED and select it if it is found. 12414 # Check for GNU $ac_path_SED 12415 case `"$ac_path_SED" --version 2>&1` in 12416 *GNU*) 12417 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 12418 *) 12419 ac_count=0 12420 $as_echo_n 0123456789 >"conftest.in" 12421 while : 12422 do 12423 cat "conftest.in" "conftest.in" >"conftest.tmp" 12424 mv "conftest.tmp" "conftest.in" 12425 cp "conftest.in" "conftest.nl" 12426 $as_echo '' >> "conftest.nl" 12427 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 12428 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12429 as_fn_arith $ac_count + 1 && ac_count=$as_val 12430 if test $ac_count -gt ${ac_path_SED_max-0}; then 12431 # Best one so far, save it but keep looking for a better one 12432 ac_cv_path_SED="$ac_path_SED" 12433 ac_path_SED_max=$ac_count 12434 fi 12435 # 10*(2^10) chars as input seems more than enough 12436 test $ac_count -gt 10 && break 12437 done 12438 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12439 esac 12440 12441 $ac_path_SED_found && break 3 12442 done 12443 done 12444 done 12445 IFS=$as_save_IFS 12446 if test -z "$ac_cv_path_SED"; then 12447 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 12448 fi 12449 else 12450 ac_cv_path_SED=$SED 12451 fi 12452 12453 fi 12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 12455 $as_echo "$ac_cv_path_SED" >&6; } 12456 SED="$ac_cv_path_SED" 12457 rm -f conftest.sed 12458 12459 else 12460 # If it succeeded, then it was overridden by the user. We will use it 12461 # for the tool. 12462 12463 # First remove it from the list of overridden variables, so we can test 12464 # for unknown variables in the end. 12465 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12466 12467 # Check if the provided tool contains a complete path. 12468 tool_specified="$SED" 12469 tool_basename="${tool_specified##*/}" 12470 if test "x$tool_basename" = "x$tool_specified"; then 12471 # A command without a complete path is provided, search $PATH. 12472 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SED=$tool_basename" >&5 12473 $as_echo "$as_me: Will search for user supplied tool SED=$tool_basename" >&6;} 12474 # Extract the first word of "$tool_basename", so it can be a program name with args. 12475 set dummy $tool_basename; ac_word=$2 12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12477 $as_echo_n "checking for $ac_word... " >&6; } 12478 if ${ac_cv_path_SED+:} false; then : 12479 $as_echo_n "(cached) " >&6 12480 else 12481 case $SED in 12482 [\\/]* | ?:[\\/]*) 12483 ac_cv_path_SED="$SED" # Let the user override the test with a path. 12484 ;; 12485 *) 12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12487 for as_dir in $PATH 12488 do 12489 IFS=$as_save_IFS 12490 test -z "$as_dir" && as_dir=. 12491 for ac_exec_ext in '' $ac_executable_extensions; do 12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12493 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" 12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12495 break 2 12496 fi 12497 done 12498 done 12499 IFS=$as_save_IFS 12500 12501 ;; 12502 esac 12503 fi 12504 SED=$ac_cv_path_SED 12505 if test -n "$SED"; then 12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5 12507 $as_echo "$SED" >&6; } 12508 else 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12510 $as_echo "no" >&6; } 12511 fi 12512 12513 12514 if test "x$SED" = x; then 12515 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12516 fi 12517 else 12518 # Otherwise we believe it is a complete path. Use it as it is. 12519 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SED=$tool_specified" >&5 12520 $as_echo "$as_me: Will use user supplied tool SED=$tool_specified" >&6;} 12521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SED" >&5 12522 $as_echo_n "checking for SED... " >&6; } 12523 if test ! -x "$tool_specified"; then 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12525 $as_echo "not found" >&6; } 12526 as_fn_error $? "User supplied tool SED=$tool_specified does not exist or is not executable" "$LINENO" 5 12527 fi 12528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12529 $as_echo "$tool_specified" >&6; } 12530 fi 12531 fi 12532 fi 12533 12534 12535 if test "x$SED" = x; then 12536 as_fn_error $? "Could not find required tool for SED" "$LINENO" 5 12537 fi 12538 12539 12540 12541 # Always force rm. 12542 RM="$RM -f" 12543 12544 # pwd behaves differently on various platforms and some don't support the -L flag. 12545 # Always use the bash builtin pwd to get uniform behavior. 12546 THEPWDCMD=pwd 12547 12548 # These are not required on all platforms 12549 12550 12551 # Publish this variable in the help. 12552 12553 12554 if test "x$CYGPATH" = x; then 12555 # The variable is not set by user, try to locate tool using the code snippet 12556 for ac_prog in cygpath 12557 do 12558 # Extract the first word of "$ac_prog", so it can be a program name with args. 12559 set dummy $ac_prog; ac_word=$2 12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12561 $as_echo_n "checking for $ac_word... " >&6; } 12562 if ${ac_cv_path_CYGPATH+:} false; then : 12563 $as_echo_n "(cached) " >&6 12564 else 12565 case $CYGPATH in 12566 [\\/]* | ?:[\\/]*) 12567 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12568 ;; 12569 *) 12570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12571 for as_dir in $PATH 12572 do 12573 IFS=$as_save_IFS 12574 test -z "$as_dir" && as_dir=. 12575 for ac_exec_ext in '' $ac_executable_extensions; do 12576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12577 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12579 break 2 12580 fi 12581 done 12582 done 12583 IFS=$as_save_IFS 12584 12585 ;; 12586 esac 12587 fi 12588 CYGPATH=$ac_cv_path_CYGPATH 12589 if test -n "$CYGPATH"; then 12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12591 $as_echo "$CYGPATH" >&6; } 12592 else 12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12594 $as_echo "no" >&6; } 12595 fi 12596 12597 12598 test -n "$CYGPATH" && break 12599 done 12600 12601 else 12602 # The variable is set, but is it from the command line or the environment? 12603 12604 # Try to remove the string !CYGPATH! from our list. 12605 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CYGPATH!/} 12606 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12607 # If it failed, the variable was not from the command line. Ignore it, 12608 # but warn the user (except for BASH, which is always set by the calling BASH). 12609 if test "xCYGPATH" != xBASH; then 12610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&5 12611 $as_echo "$as_me: WARNING: Ignoring value of CYGPATH from the environment. Use command line variables instead." >&2;} 12612 fi 12613 # Try to locate tool using the code snippet 12614 for ac_prog in cygpath 12615 do 12616 # Extract the first word of "$ac_prog", so it can be a program name with args. 12617 set dummy $ac_prog; ac_word=$2 12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12619 $as_echo_n "checking for $ac_word... " >&6; } 12620 if ${ac_cv_path_CYGPATH+:} false; then : 12621 $as_echo_n "(cached) " >&6 12622 else 12623 case $CYGPATH in 12624 [\\/]* | ?:[\\/]*) 12625 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12626 ;; 12627 *) 12628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12629 for as_dir in $PATH 12630 do 12631 IFS=$as_save_IFS 12632 test -z "$as_dir" && as_dir=. 12633 for ac_exec_ext in '' $ac_executable_extensions; do 12634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12635 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12637 break 2 12638 fi 12639 done 12640 done 12641 IFS=$as_save_IFS 12642 12643 ;; 12644 esac 12645 fi 12646 CYGPATH=$ac_cv_path_CYGPATH 12647 if test -n "$CYGPATH"; then 12648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12649 $as_echo "$CYGPATH" >&6; } 12650 else 12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12652 $as_echo "no" >&6; } 12653 fi 12654 12655 12656 test -n "$CYGPATH" && break 12657 done 12658 12659 else 12660 # If it succeeded, then it was overridden by the user. We will use it 12661 # for the tool. 12662 12663 # First remove it from the list of overridden variables, so we can test 12664 # for unknown variables in the end. 12665 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12666 12667 # Check if the provided tool contains a complete path. 12668 tool_specified="$CYGPATH" 12669 tool_basename="${tool_specified##*/}" 12670 if test "x$tool_basename" = "x$tool_specified"; then 12671 # A command without a complete path is provided, search $PATH. 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CYGPATH=$tool_basename" >&5 12673 $as_echo "$as_me: Will search for user supplied tool CYGPATH=$tool_basename" >&6;} 12674 # Extract the first word of "$tool_basename", so it can be a program name with args. 12675 set dummy $tool_basename; ac_word=$2 12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12677 $as_echo_n "checking for $ac_word... " >&6; } 12678 if ${ac_cv_path_CYGPATH+:} false; then : 12679 $as_echo_n "(cached) " >&6 12680 else 12681 case $CYGPATH in 12682 [\\/]* | ?:[\\/]*) 12683 ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path. 12684 ;; 12685 *) 12686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12687 for as_dir in $PATH 12688 do 12689 IFS=$as_save_IFS 12690 test -z "$as_dir" && as_dir=. 12691 for ac_exec_ext in '' $ac_executable_extensions; do 12692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12693 ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext" 12694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12695 break 2 12696 fi 12697 done 12698 done 12699 IFS=$as_save_IFS 12700 12701 ;; 12702 esac 12703 fi 12704 CYGPATH=$ac_cv_path_CYGPATH 12705 if test -n "$CYGPATH"; then 12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5 12707 $as_echo "$CYGPATH" >&6; } 12708 else 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12710 $as_echo "no" >&6; } 12711 fi 12712 12713 12714 if test "x$CYGPATH" = x; then 12715 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12716 fi 12717 else 12718 # Otherwise we believe it is a complete path. Use it as it is. 12719 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CYGPATH=$tool_specified" >&5 12720 $as_echo "$as_me: Will use user supplied tool CYGPATH=$tool_specified" >&6;} 12721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CYGPATH" >&5 12722 $as_echo_n "checking for CYGPATH... " >&6; } 12723 if test ! -x "$tool_specified"; then 12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12725 $as_echo "not found" >&6; } 12726 as_fn_error $? "User supplied tool CYGPATH=$tool_specified does not exist or is not executable" "$LINENO" 5 12727 fi 12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12729 $as_echo "$tool_specified" >&6; } 12730 fi 12731 fi 12732 fi 12733 12734 12735 12736 12737 # Publish this variable in the help. 12738 12739 12740 if test "x$READLINK" = x; then 12741 # The variable is not set by user, try to locate tool using the code snippet 12742 for ac_prog in greadlink readlink 12743 do 12744 # Extract the first word of "$ac_prog", so it can be a program name with args. 12745 set dummy $ac_prog; ac_word=$2 12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12747 $as_echo_n "checking for $ac_word... " >&6; } 12748 if ${ac_cv_path_READLINK+:} false; then : 12749 $as_echo_n "(cached) " >&6 12750 else 12751 case $READLINK in 12752 [\\/]* | ?:[\\/]*) 12753 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12754 ;; 12755 *) 12756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12757 for as_dir in $PATH 12758 do 12759 IFS=$as_save_IFS 12760 test -z "$as_dir" && as_dir=. 12761 for ac_exec_ext in '' $ac_executable_extensions; do 12762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12763 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12765 break 2 12766 fi 12767 done 12768 done 12769 IFS=$as_save_IFS 12770 12771 ;; 12772 esac 12773 fi 12774 READLINK=$ac_cv_path_READLINK 12775 if test -n "$READLINK"; then 12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12777 $as_echo "$READLINK" >&6; } 12778 else 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12780 $as_echo "no" >&6; } 12781 fi 12782 12783 12784 test -n "$READLINK" && break 12785 done 12786 12787 else 12788 # The variable is set, but is it from the command line or the environment? 12789 12790 # Try to remove the string !READLINK! from our list. 12791 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READLINK!/} 12792 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12793 # If it failed, the variable was not from the command line. Ignore it, 12794 # but warn the user (except for BASH, which is always set by the calling BASH). 12795 if test "xREADLINK" != xBASH; then 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&5 12797 $as_echo "$as_me: WARNING: Ignoring value of READLINK from the environment. Use command line variables instead." >&2;} 12798 fi 12799 # Try to locate tool using the code snippet 12800 for ac_prog in greadlink readlink 12801 do 12802 # Extract the first word of "$ac_prog", so it can be a program name with args. 12803 set dummy $ac_prog; ac_word=$2 12804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12805 $as_echo_n "checking for $ac_word... " >&6; } 12806 if ${ac_cv_path_READLINK+:} false; then : 12807 $as_echo_n "(cached) " >&6 12808 else 12809 case $READLINK in 12810 [\\/]* | ?:[\\/]*) 12811 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12812 ;; 12813 *) 12814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12815 for as_dir in $PATH 12816 do 12817 IFS=$as_save_IFS 12818 test -z "$as_dir" && as_dir=. 12819 for ac_exec_ext in '' $ac_executable_extensions; do 12820 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12821 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12822 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12823 break 2 12824 fi 12825 done 12826 done 12827 IFS=$as_save_IFS 12828 12829 ;; 12830 esac 12831 fi 12832 READLINK=$ac_cv_path_READLINK 12833 if test -n "$READLINK"; then 12834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12835 $as_echo "$READLINK" >&6; } 12836 else 12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12838 $as_echo "no" >&6; } 12839 fi 12840 12841 12842 test -n "$READLINK" && break 12843 done 12844 12845 else 12846 # If it succeeded, then it was overridden by the user. We will use it 12847 # for the tool. 12848 12849 # First remove it from the list of overridden variables, so we can test 12850 # for unknown variables in the end. 12851 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 12852 12853 # Check if the provided tool contains a complete path. 12854 tool_specified="$READLINK" 12855 tool_basename="${tool_specified##*/}" 12856 if test "x$tool_basename" = "x$tool_specified"; then 12857 # A command without a complete path is provided, search $PATH. 12858 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READLINK=$tool_basename" >&5 12859 $as_echo "$as_me: Will search for user supplied tool READLINK=$tool_basename" >&6;} 12860 # Extract the first word of "$tool_basename", so it can be a program name with args. 12861 set dummy $tool_basename; ac_word=$2 12862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12863 $as_echo_n "checking for $ac_word... " >&6; } 12864 if ${ac_cv_path_READLINK+:} false; then : 12865 $as_echo_n "(cached) " >&6 12866 else 12867 case $READLINK in 12868 [\\/]* | ?:[\\/]*) 12869 ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path. 12870 ;; 12871 *) 12872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12873 for as_dir in $PATH 12874 do 12875 IFS=$as_save_IFS 12876 test -z "$as_dir" && as_dir=. 12877 for ac_exec_ext in '' $ac_executable_extensions; do 12878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12879 ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext" 12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12881 break 2 12882 fi 12883 done 12884 done 12885 IFS=$as_save_IFS 12886 12887 ;; 12888 esac 12889 fi 12890 READLINK=$ac_cv_path_READLINK 12891 if test -n "$READLINK"; then 12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5 12893 $as_echo "$READLINK" >&6; } 12894 else 12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12896 $as_echo "no" >&6; } 12897 fi 12898 12899 12900 if test "x$READLINK" = x; then 12901 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 12902 fi 12903 else 12904 # Otherwise we believe it is a complete path. Use it as it is. 12905 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READLINK=$tool_specified" >&5 12906 $as_echo "$as_me: Will use user supplied tool READLINK=$tool_specified" >&6;} 12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READLINK" >&5 12908 $as_echo_n "checking for READLINK... " >&6; } 12909 if test ! -x "$tool_specified"; then 12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 12911 $as_echo "not found" >&6; } 12912 as_fn_error $? "User supplied tool READLINK=$tool_specified does not exist or is not executable" "$LINENO" 5 12913 fi 12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 12915 $as_echo "$tool_specified" >&6; } 12916 fi 12917 fi 12918 fi 12919 12920 12921 12922 12923 # Publish this variable in the help. 12924 12925 12926 if test "x$DF" = x; then 12927 # The variable is not set by user, try to locate tool using the code snippet 12928 for ac_prog in df 12929 do 12930 # Extract the first word of "$ac_prog", so it can be a program name with args. 12931 set dummy $ac_prog; ac_word=$2 12932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12933 $as_echo_n "checking for $ac_word... " >&6; } 12934 if ${ac_cv_path_DF+:} false; then : 12935 $as_echo_n "(cached) " >&6 12936 else 12937 case $DF in 12938 [\\/]* | ?:[\\/]*) 12939 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12940 ;; 12941 *) 12942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12943 for as_dir in $PATH 12944 do 12945 IFS=$as_save_IFS 12946 test -z "$as_dir" && as_dir=. 12947 for ac_exec_ext in '' $ac_executable_extensions; do 12948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12949 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 12950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12951 break 2 12952 fi 12953 done 12954 done 12955 IFS=$as_save_IFS 12956 12957 ;; 12958 esac 12959 fi 12960 DF=$ac_cv_path_DF 12961 if test -n "$DF"; then 12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 12963 $as_echo "$DF" >&6; } 12964 else 12965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12966 $as_echo "no" >&6; } 12967 fi 12968 12969 12970 test -n "$DF" && break 12971 done 12972 12973 else 12974 # The variable is set, but is it from the command line or the environment? 12975 12976 # Try to remove the string !DF! from our list. 12977 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DF!/} 12978 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 12979 # If it failed, the variable was not from the command line. Ignore it, 12980 # but warn the user (except for BASH, which is always set by the calling BASH). 12981 if test "xDF" != xBASH; then 12982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&5 12983 $as_echo "$as_me: WARNING: Ignoring value of DF from the environment. Use command line variables instead." >&2;} 12984 fi 12985 # Try to locate tool using the code snippet 12986 for ac_prog in df 12987 do 12988 # Extract the first word of "$ac_prog", so it can be a program name with args. 12989 set dummy $ac_prog; ac_word=$2 12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12991 $as_echo_n "checking for $ac_word... " >&6; } 12992 if ${ac_cv_path_DF+:} false; then : 12993 $as_echo_n "(cached) " >&6 12994 else 12995 case $DF in 12996 [\\/]* | ?:[\\/]*) 12997 ac_cv_path_DF="$DF" # Let the user override the test with a path. 12998 ;; 12999 *) 13000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13001 for as_dir in $PATH 13002 do 13003 IFS=$as_save_IFS 13004 test -z "$as_dir" && as_dir=. 13005 for ac_exec_ext in '' $ac_executable_extensions; do 13006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13007 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13009 break 2 13010 fi 13011 done 13012 done 13013 IFS=$as_save_IFS 13014 13015 ;; 13016 esac 13017 fi 13018 DF=$ac_cv_path_DF 13019 if test -n "$DF"; then 13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13021 $as_echo "$DF" >&6; } 13022 else 13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13024 $as_echo "no" >&6; } 13025 fi 13026 13027 13028 test -n "$DF" && break 13029 done 13030 13031 else 13032 # If it succeeded, then it was overridden by the user. We will use it 13033 # for the tool. 13034 13035 # First remove it from the list of overridden variables, so we can test 13036 # for unknown variables in the end. 13037 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13038 13039 # Check if the provided tool contains a complete path. 13040 tool_specified="$DF" 13041 tool_basename="${tool_specified##*/}" 13042 if test "x$tool_basename" = "x$tool_specified"; then 13043 # A command without a complete path is provided, search $PATH. 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DF=$tool_basename" >&5 13045 $as_echo "$as_me: Will search for user supplied tool DF=$tool_basename" >&6;} 13046 # Extract the first word of "$tool_basename", so it can be a program name with args. 13047 set dummy $tool_basename; ac_word=$2 13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13049 $as_echo_n "checking for $ac_word... " >&6; } 13050 if ${ac_cv_path_DF+:} false; then : 13051 $as_echo_n "(cached) " >&6 13052 else 13053 case $DF in 13054 [\\/]* | ?:[\\/]*) 13055 ac_cv_path_DF="$DF" # Let the user override the test with a path. 13056 ;; 13057 *) 13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13059 for as_dir in $PATH 13060 do 13061 IFS=$as_save_IFS 13062 test -z "$as_dir" && as_dir=. 13063 for ac_exec_ext in '' $ac_executable_extensions; do 13064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13065 ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext" 13066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13067 break 2 13068 fi 13069 done 13070 done 13071 IFS=$as_save_IFS 13072 13073 ;; 13074 esac 13075 fi 13076 DF=$ac_cv_path_DF 13077 if test -n "$DF"; then 13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5 13079 $as_echo "$DF" >&6; } 13080 else 13081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13082 $as_echo "no" >&6; } 13083 fi 13084 13085 13086 if test "x$DF" = x; then 13087 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13088 fi 13089 else 13090 # Otherwise we believe it is a complete path. Use it as it is. 13091 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DF=$tool_specified" >&5 13092 $as_echo "$as_me: Will use user supplied tool DF=$tool_specified" >&6;} 13093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DF" >&5 13094 $as_echo_n "checking for DF... " >&6; } 13095 if test ! -x "$tool_specified"; then 13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13097 $as_echo "not found" >&6; } 13098 as_fn_error $? "User supplied tool DF=$tool_specified does not exist or is not executable" "$LINENO" 5 13099 fi 13100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13101 $as_echo "$tool_specified" >&6; } 13102 fi 13103 fi 13104 fi 13105 13106 13107 13108 13109 # Publish this variable in the help. 13110 13111 13112 if test "x$SETFILE" = x; then 13113 # The variable is not set by user, try to locate tool using the code snippet 13114 for ac_prog in SetFile 13115 do 13116 # Extract the first word of "$ac_prog", so it can be a program name with args. 13117 set dummy $ac_prog; ac_word=$2 13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13119 $as_echo_n "checking for $ac_word... " >&6; } 13120 if ${ac_cv_path_SETFILE+:} false; then : 13121 $as_echo_n "(cached) " >&6 13122 else 13123 case $SETFILE in 13124 [\\/]* | ?:[\\/]*) 13125 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13126 ;; 13127 *) 13128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13129 for as_dir in $PATH 13130 do 13131 IFS=$as_save_IFS 13132 test -z "$as_dir" && as_dir=. 13133 for ac_exec_ext in '' $ac_executable_extensions; do 13134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13135 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13137 break 2 13138 fi 13139 done 13140 done 13141 IFS=$as_save_IFS 13142 13143 ;; 13144 esac 13145 fi 13146 SETFILE=$ac_cv_path_SETFILE 13147 if test -n "$SETFILE"; then 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13149 $as_echo "$SETFILE" >&6; } 13150 else 13151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13152 $as_echo "no" >&6; } 13153 fi 13154 13155 13156 test -n "$SETFILE" && break 13157 done 13158 13159 else 13160 # The variable is set, but is it from the command line or the environment? 13161 13162 # Try to remove the string !SETFILE! from our list. 13163 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!SETFILE!/} 13164 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 13165 # If it failed, the variable was not from the command line. Ignore it, 13166 # but warn the user (except for BASH, which is always set by the calling BASH). 13167 if test "xSETFILE" != xBASH; then 13168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&5 13169 $as_echo "$as_me: WARNING: Ignoring value of SETFILE from the environment. Use command line variables instead." >&2;} 13170 fi 13171 # Try to locate tool using the code snippet 13172 for ac_prog in SetFile 13173 do 13174 # Extract the first word of "$ac_prog", so it can be a program name with args. 13175 set dummy $ac_prog; ac_word=$2 13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13177 $as_echo_n "checking for $ac_word... " >&6; } 13178 if ${ac_cv_path_SETFILE+:} false; then : 13179 $as_echo_n "(cached) " >&6 13180 else 13181 case $SETFILE in 13182 [\\/]* | ?:[\\/]*) 13183 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13184 ;; 13185 *) 13186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13187 for as_dir in $PATH 13188 do 13189 IFS=$as_save_IFS 13190 test -z "$as_dir" && as_dir=. 13191 for ac_exec_ext in '' $ac_executable_extensions; do 13192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13193 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13195 break 2 13196 fi 13197 done 13198 done 13199 IFS=$as_save_IFS 13200 13201 ;; 13202 esac 13203 fi 13204 SETFILE=$ac_cv_path_SETFILE 13205 if test -n "$SETFILE"; then 13206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13207 $as_echo "$SETFILE" >&6; } 13208 else 13209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13210 $as_echo "no" >&6; } 13211 fi 13212 13213 13214 test -n "$SETFILE" && break 13215 done 13216 13217 else 13218 # If it succeeded, then it was overridden by the user. We will use it 13219 # for the tool. 13220 13221 # First remove it from the list of overridden variables, so we can test 13222 # for unknown variables in the end. 13223 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 13224 13225 # Check if the provided tool contains a complete path. 13226 tool_specified="$SETFILE" 13227 tool_basename="${tool_specified##*/}" 13228 if test "x$tool_basename" = "x$tool_specified"; then 13229 # A command without a complete path is provided, search $PATH. 13230 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool SETFILE=$tool_basename" >&5 13231 $as_echo "$as_me: Will search for user supplied tool SETFILE=$tool_basename" >&6;} 13232 # Extract the first word of "$tool_basename", so it can be a program name with args. 13233 set dummy $tool_basename; ac_word=$2 13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13235 $as_echo_n "checking for $ac_word... " >&6; } 13236 if ${ac_cv_path_SETFILE+:} false; then : 13237 $as_echo_n "(cached) " >&6 13238 else 13239 case $SETFILE in 13240 [\\/]* | ?:[\\/]*) 13241 ac_cv_path_SETFILE="$SETFILE" # Let the user override the test with a path. 13242 ;; 13243 *) 13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13245 for as_dir in $PATH 13246 do 13247 IFS=$as_save_IFS 13248 test -z "$as_dir" && as_dir=. 13249 for ac_exec_ext in '' $ac_executable_extensions; do 13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 13251 ac_cv_path_SETFILE="$as_dir/$ac_word$ac_exec_ext" 13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13253 break 2 13254 fi 13255 done 13256 done 13257 IFS=$as_save_IFS 13258 13259 ;; 13260 esac 13261 fi 13262 SETFILE=$ac_cv_path_SETFILE 13263 if test -n "$SETFILE"; then 13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SETFILE" >&5 13265 $as_echo "$SETFILE" >&6; } 13266 else 13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13268 $as_echo "no" >&6; } 13269 fi 13270 13271 13272 if test "x$SETFILE" = x; then 13273 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 13274 fi 13275 else 13276 # Otherwise we believe it is a complete path. Use it as it is. 13277 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool SETFILE=$tool_specified" >&5 13278 $as_echo "$as_me: Will use user supplied tool SETFILE=$tool_specified" >&6;} 13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SETFILE" >&5 13280 $as_echo_n "checking for SETFILE... " >&6; } 13281 if test ! -x "$tool_specified"; then 13282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 13283 $as_echo "not found" >&6; } 13284 as_fn_error $? "User supplied tool SETFILE=$tool_specified does not exist or is not executable" "$LINENO" 5 13285 fi 13286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 13287 $as_echo "$tool_specified" >&6; } 13288 fi 13289 fi 13290 fi 13291 13292 13293 13294 13295 # Now we can determine OpenJDK build and target platforms. This is required to 13296 # have early on. 13297 # Make sure we can run config.sub. 13298 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 13299 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 13300 13301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 13302 $as_echo_n "checking build system type... " >&6; } 13303 if ${ac_cv_build+:} false; then : 13304 $as_echo_n "(cached) " >&6 13305 else 13306 ac_build_alias=$build_alias 13307 test "x$ac_build_alias" = x && 13308 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 13309 test "x$ac_build_alias" = x && 13310 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 13311 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 13312 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 13313 13314 fi 13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 13316 $as_echo "$ac_cv_build" >&6; } 13317 case $ac_cv_build in 13318 *-*-*) ;; 13319 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 13320 esac 13321 build=$ac_cv_build 13322 ac_save_IFS=$IFS; IFS='-' 13323 set x $ac_cv_build 13324 shift 13325 build_cpu=$1 13326 build_vendor=$2 13327 shift; shift 13328 # Remember, the first character of IFS is used to create $*, 13329 # except with old shells: 13330 build_os=$* 13331 IFS=$ac_save_IFS 13332 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 13333 13334 13335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 13336 $as_echo_n "checking host system type... " >&6; } 13337 if ${ac_cv_host+:} false; then : 13338 $as_echo_n "(cached) " >&6 13339 else 13340 if test "x$host_alias" = x; then 13341 ac_cv_host=$ac_cv_build 13342 else 13343 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 13344 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 13345 fi 13346 13347 fi 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 13349 $as_echo "$ac_cv_host" >&6; } 13350 case $ac_cv_host in 13351 *-*-*) ;; 13352 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 13353 esac 13354 host=$ac_cv_host 13355 ac_save_IFS=$IFS; IFS='-' 13356 set x $ac_cv_host 13357 shift 13358 host_cpu=$1 13359 host_vendor=$2 13360 shift; shift 13361 # Remember, the first character of IFS is used to create $*, 13362 # except with old shells: 13363 host_os=$* 13364 IFS=$ac_save_IFS 13365 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 13366 13367 13368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 13369 $as_echo_n "checking target system type... " >&6; } 13370 if ${ac_cv_target+:} false; then : 13371 $as_echo_n "(cached) " >&6 13372 else 13373 if test "x$target_alias" = x; then 13374 ac_cv_target=$ac_cv_host 13375 else 13376 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 13377 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 13378 fi 13379 13380 fi 13381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 13382 $as_echo "$ac_cv_target" >&6; } 13383 case $ac_cv_target in 13384 *-*-*) ;; 13385 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;; 13386 esac 13387 target=$ac_cv_target 13388 ac_save_IFS=$IFS; IFS='-' 13389 set x $ac_cv_target 13390 shift 13391 target_cpu=$1 13392 target_vendor=$2 13393 shift; shift 13394 # Remember, the first character of IFS is used to create $*, 13395 # except with old shells: 13396 target_os=$* 13397 IFS=$ac_save_IFS 13398 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 13399 13400 13401 # The aliases save the names the user supplied, while $host etc. 13402 # will get canonicalized. 13403 test -n "$target_alias" && 13404 test "$program_prefix$program_suffix$program_transform_name" = \ 13405 NONENONEs,x,x, && 13406 program_prefix=${target_alias}- 13407 13408 # Figure out the build and target systems. # Note that in autoconf terminology, "build" is obvious, but "target" 13409 # is confusing; it assumes you are cross-compiling a cross-compiler (!) and "target" is thus the target of the 13410 # product you're building. The target of this build is called "host". Since this is confusing to most people, we 13411 # have not adopted that system, but use "target" as the platform we are building for. In some places though we need 13412 # to use the configure naming style. 13413 13414 13415 13416 13417 13418 # Copy the autoconf trip/quadruplet verbatim to OPENJDK_TARGET_AUTOCONF_NAME 13419 # (from the autoconf "host") and OPENJDK_BUILD_AUTOCONF_NAME 13420 # Note that we might later on rewrite e.g. OPENJDK_TARGET_CPU due to reduced build, 13421 # but this will not change the value of OPENJDK_TARGET_AUTOCONF_NAME. 13422 OPENJDK_TARGET_AUTOCONF_NAME="$host" 13423 OPENJDK_BUILD_AUTOCONF_NAME="$build" 13424 13425 13426 13427 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13428 13429 case "$build_os" in 13430 *linux*) 13431 VAR_OS=linux 13432 VAR_OS_API=posix 13433 VAR_OS_ENV=linux 13434 ;; 13435 *solaris*) 13436 VAR_OS=solaris 13437 VAR_OS_API=posix 13438 VAR_OS_ENV=solaris 13439 ;; 13440 *darwin*) 13441 VAR_OS=macosx 13442 VAR_OS_API=posix 13443 VAR_OS_ENV=macosx 13444 ;; 13445 *bsd*) 13446 VAR_OS=bsd 13447 VAR_OS_API=posix 13448 VAR_OS_ENV=bsd 13449 ;; 13450 *cygwin*) 13451 VAR_OS=windows 13452 VAR_OS_API=winapi 13453 VAR_OS_ENV=windows.cygwin 13454 ;; 13455 *mingw*) 13456 VAR_OS=windows 13457 VAR_OS_API=winapi 13458 VAR_OS_ENV=windows.msys 13459 ;; 13460 *aix*) 13461 VAR_OS=aix 13462 VAR_OS_API=posix 13463 VAR_OS_ENV=aix 13464 ;; 13465 *) 13466 as_fn_error $? "unsupported operating system $build_os" "$LINENO" 5 13467 ;; 13468 esac 13469 13470 13471 # First argument is the cpu name from the trip/quad 13472 case "$build_cpu" in 13473 x86_64) 13474 VAR_CPU=x86_64 13475 VAR_CPU_ARCH=x86 13476 VAR_CPU_BITS=64 13477 VAR_CPU_ENDIAN=little 13478 ;; 13479 i?86) 13480 VAR_CPU=x86 13481 VAR_CPU_ARCH=x86 13482 VAR_CPU_BITS=32 13483 VAR_CPU_ENDIAN=little 13484 ;; 13485 arm*) 13486 VAR_CPU=arm 13487 VAR_CPU_ARCH=arm 13488 VAR_CPU_BITS=32 13489 VAR_CPU_ENDIAN=little 13490 ;; 13491 aarch64) 13492 VAR_CPU=aarch64 13493 VAR_CPU_ARCH=aarch64 13494 VAR_CPU_BITS=64 13495 VAR_CPU_ENDIAN=little 13496 ;; 13497 powerpc) 13498 VAR_CPU=ppc 13499 VAR_CPU_ARCH=ppc 13500 VAR_CPU_BITS=32 13501 VAR_CPU_ENDIAN=big 13502 ;; 13503 powerpc64) 13504 VAR_CPU=ppc64 13505 VAR_CPU_ARCH=ppc 13506 VAR_CPU_BITS=64 13507 VAR_CPU_ENDIAN=big 13508 ;; 13509 powerpc64le) 13510 VAR_CPU=ppc64 13511 VAR_CPU_ARCH=ppc 13512 VAR_CPU_BITS=64 13513 VAR_CPU_ENDIAN=little 13514 ;; 13515 s390) 13516 VAR_CPU=s390 13517 VAR_CPU_ARCH=s390 13518 VAR_CPU_BITS=32 13519 VAR_CPU_ENDIAN=big 13520 ;; 13521 s390x) 13522 VAR_CPU=s390x 13523 VAR_CPU_ARCH=s390 13524 VAR_CPU_BITS=64 13525 VAR_CPU_ENDIAN=big 13526 ;; 13527 sparc) 13528 VAR_CPU=sparc 13529 VAR_CPU_ARCH=sparc 13530 VAR_CPU_BITS=32 13531 VAR_CPU_ENDIAN=big 13532 ;; 13533 sparcv9|sparc64) 13534 VAR_CPU=sparcv9 13535 VAR_CPU_ARCH=sparc 13536 VAR_CPU_BITS=64 13537 VAR_CPU_ENDIAN=big 13538 ;; 13539 *) 13540 as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5 13541 ;; 13542 esac 13543 13544 # ..and setup our own variables. (Do this explicitely to facilitate searching) 13545 OPENJDK_BUILD_OS="$VAR_OS" 13546 OPENJDK_BUILD_OS_API="$VAR_OS_API" 13547 OPENJDK_BUILD_OS_ENV="$VAR_OS_ENV" 13548 OPENJDK_BUILD_CPU="$VAR_CPU" 13549 OPENJDK_BUILD_CPU_ARCH="$VAR_CPU_ARCH" 13550 OPENJDK_BUILD_CPU_BITS="$VAR_CPU_BITS" 13551 OPENJDK_BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13552 13553 13554 13555 13556 13557 13558 13559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-build os-cpu" >&5 13560 $as_echo_n "checking openjdk-build os-cpu... " >&6; } 13561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&5 13562 $as_echo "$OPENJDK_BUILD_OS-$OPENJDK_BUILD_CPU" >&6; } 13563 13564 # Convert the autoconf OS/CPU value to our own data, into the VAR_OS/CPU variables. 13565 13566 case "$host_os" in 13567 *linux*) 13568 VAR_OS=linux 13569 VAR_OS_API=posix 13570 VAR_OS_ENV=linux 13571 ;; 13572 *solaris*) 13573 VAR_OS=solaris 13574 VAR_OS_API=posix 13575 VAR_OS_ENV=solaris 13576 ;; 13577 *darwin*) 13578 VAR_OS=macosx 13579 VAR_OS_API=posix 13580 VAR_OS_ENV=macosx 13581 ;; 13582 *bsd*) 13583 VAR_OS=bsd 13584 VAR_OS_API=posix 13585 VAR_OS_ENV=bsd 13586 ;; 13587 *cygwin*) 13588 VAR_OS=windows 13589 VAR_OS_API=winapi 13590 VAR_OS_ENV=windows.cygwin 13591 ;; 13592 *mingw*) 13593 VAR_OS=windows 13594 VAR_OS_API=winapi 13595 VAR_OS_ENV=windows.msys 13596 ;; 13597 *aix*) 13598 VAR_OS=aix 13599 VAR_OS_API=posix 13600 VAR_OS_ENV=aix 13601 ;; 13602 *) 13603 as_fn_error $? "unsupported operating system $host_os" "$LINENO" 5 13604 ;; 13605 esac 13606 13607 13608 # First argument is the cpu name from the trip/quad 13609 case "$host_cpu" in 13610 x86_64) 13611 VAR_CPU=x86_64 13612 VAR_CPU_ARCH=x86 13613 VAR_CPU_BITS=64 13614 VAR_CPU_ENDIAN=little 13615 ;; 13616 i?86) 13617 VAR_CPU=x86 13618 VAR_CPU_ARCH=x86 13619 VAR_CPU_BITS=32 13620 VAR_CPU_ENDIAN=little 13621 ;; 13622 arm*) 13623 VAR_CPU=arm 13624 VAR_CPU_ARCH=arm 13625 VAR_CPU_BITS=32 13626 VAR_CPU_ENDIAN=little 13627 ;; 13628 aarch64) 13629 VAR_CPU=aarch64 13630 VAR_CPU_ARCH=aarch64 13631 VAR_CPU_BITS=64 13632 VAR_CPU_ENDIAN=little 13633 ;; 13634 powerpc) 13635 VAR_CPU=ppc 13636 VAR_CPU_ARCH=ppc 13637 VAR_CPU_BITS=32 13638 VAR_CPU_ENDIAN=big 13639 ;; 13640 powerpc64) 13641 VAR_CPU=ppc64 13642 VAR_CPU_ARCH=ppc 13643 VAR_CPU_BITS=64 13644 VAR_CPU_ENDIAN=big 13645 ;; 13646 powerpc64le) 13647 VAR_CPU=ppc64 13648 VAR_CPU_ARCH=ppc 13649 VAR_CPU_BITS=64 13650 VAR_CPU_ENDIAN=little 13651 ;; 13652 s390) 13653 VAR_CPU=s390 13654 VAR_CPU_ARCH=s390 13655 VAR_CPU_BITS=32 13656 VAR_CPU_ENDIAN=big 13657 ;; 13658 s390x) 13659 VAR_CPU=s390x 13660 VAR_CPU_ARCH=s390 13661 VAR_CPU_BITS=64 13662 VAR_CPU_ENDIAN=big 13663 ;; 13664 sparc) 13665 VAR_CPU=sparc 13666 VAR_CPU_ARCH=sparc 13667 VAR_CPU_BITS=32 13668 VAR_CPU_ENDIAN=big 13669 ;; 13670 sparcv9|sparc64) 13671 VAR_CPU=sparcv9 13672 VAR_CPU_ARCH=sparc 13673 VAR_CPU_BITS=64 13674 VAR_CPU_ENDIAN=big 13675 ;; 13676 *) 13677 as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5 13678 ;; 13679 esac 13680 13681 # ... and setup our own variables. (Do this explicitely to facilitate searching) 13682 OPENJDK_TARGET_OS="$VAR_OS" 13683 OPENJDK_TARGET_OS_API="$VAR_OS_API" 13684 OPENJDK_TARGET_OS_ENV="$VAR_OS_ENV" 13685 OPENJDK_TARGET_CPU="$VAR_CPU" 13686 OPENJDK_TARGET_CPU_ARCH="$VAR_CPU_ARCH" 13687 OPENJDK_TARGET_CPU_BITS="$VAR_CPU_BITS" 13688 OPENJDK_TARGET_CPU_ENDIAN="$VAR_CPU_ENDIAN" 13689 13690 13691 13692 13693 13694 13695 13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openjdk-target os-cpu" >&5 13697 $as_echo_n "checking openjdk-target os-cpu... " >&6; } 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&5 13699 $as_echo "$OPENJDK_TARGET_OS-$OPENJDK_TARGET_CPU" >&6; } 13700 13701 13702 13703 # Check whether --with-target-bits was given. 13704 if test "${with_target_bits+set}" = set; then : 13705 withval=$with_target_bits; 13706 fi 13707 13708 13709 # We have three types of compiles: 13710 # native == normal compilation, target system == build system 13711 # cross == traditional cross compilation, target system != build system; special toolchain needed 13712 # reduced == using native compilers, but with special flags (e.g. -m32) to produce 32-bit builds on 64-bit machines 13713 # 13714 if test "x$OPENJDK_BUILD_AUTOCONF_NAME" != "x$OPENJDK_TARGET_AUTOCONF_NAME"; then 13715 # We're doing a proper cross-compilation 13716 COMPILE_TYPE="cross" 13717 else 13718 COMPILE_TYPE="native" 13719 fi 13720 13721 if test "x$with_target_bits" != x; then 13722 if test "x$COMPILE_TYPE" = "xcross"; then 13723 as_fn_error $? "It is not possible to combine --with-target-bits=X and proper cross-compilation. Choose either." "$LINENO" 5 13724 fi 13725 13726 if test "x$with_target_bits" = x32 && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13727 # A reduced build is requested 13728 COMPILE_TYPE="reduced" 13729 OPENJDK_TARGET_CPU_BITS=32 13730 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 13731 OPENJDK_TARGET_CPU=x86 13732 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 13733 OPENJDK_TARGET_CPU=sparc 13734 else 13735 as_fn_error $? "Reduced build (--with-target-bits=32) is only supported on x86_64 and sparcv9" "$LINENO" 5 13736 fi 13737 elif test "x$with_target_bits" = x64 && test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 13738 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 13739 elif test "x$with_target_bits" = "x$OPENJDK_TARGET_CPU_BITS"; then 13740 { $as_echo "$as_me:${as_lineno-$LINENO}: --with-target-bits are set to build platform address size; argument has no meaning" >&5 13741 $as_echo "$as_me: --with-target-bits are set to build platform address size; argument has no meaning" >&6;} 13742 else 13743 as_fn_error $? "--with-target-bits can only be 32 or 64, you specified $with_target_bits!" "$LINENO" 5 13744 fi 13745 fi 13746 13747 13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation type" >&5 13749 $as_echo_n "checking compilation type... " >&6; } 13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPILE_TYPE" >&5 13751 $as_echo "$COMPILE_TYPE" >&6; } 13752 13753 13754 if test "x$OPENJDK_TARGET_OS" = "xsolaris"; then 13755 REQUIRED_OS_NAME=SunOS 13756 REQUIRED_OS_VERSION=5.10 13757 fi 13758 if test "x$OPENJDK_TARGET_OS" = "xlinux"; then 13759 REQUIRED_OS_NAME=Linux 13760 REQUIRED_OS_VERSION=2.6 13761 fi 13762 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13763 REQUIRED_OS_NAME=Windows 13764 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 13765 REQUIRED_OS_VERSION=5.2 13766 else 13767 REQUIRED_OS_VERSION=5.1 13768 fi 13769 fi 13770 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 13771 REQUIRED_OS_NAME=Darwin 13772 REQUIRED_OS_VERSION=11.2 13773 fi 13774 13775 13776 13777 13778 13779 # Also store the legacy naming of the cpu. 13780 # Ie i586 and amd64 instead of x86 and x86_64 13781 OPENJDK_TARGET_CPU_LEGACY="$OPENJDK_TARGET_CPU" 13782 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13783 OPENJDK_TARGET_CPU_LEGACY="i586" 13784 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13785 # On all platforms except MacOSX replace x86_64 with amd64. 13786 OPENJDK_TARGET_CPU_LEGACY="amd64" 13787 fi 13788 13789 13790 # And the second legacy naming of the cpu. 13791 # Ie i386 and amd64 instead of x86 and x86_64. 13792 OPENJDK_TARGET_CPU_LEGACY_LIB="$OPENJDK_TARGET_CPU" 13793 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13794 OPENJDK_TARGET_CPU_LEGACY_LIB="i386" 13795 elif test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13796 OPENJDK_TARGET_CPU_LEGACY_LIB="amd64" 13797 fi 13798 13799 13800 # This is the name of the cpu (but using i386 and amd64 instead of 13801 # x86 and x86_64, respectively), preceeded by a /, to be used when 13802 # locating libraries. On macosx, it's empty, though. 13803 OPENJDK_TARGET_CPU_LIBDIR="/$OPENJDK_TARGET_CPU_LEGACY_LIB" 13804 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13805 OPENJDK_TARGET_CPU_LIBDIR="" 13806 fi 13807 13808 13809 # OPENJDK_TARGET_CPU_ISADIR is normally empty. On 64-bit Solaris systems, it is set to 13810 # /amd64 or /sparcv9. This string is appended to some library paths, like this: 13811 # /usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libexample.so 13812 OPENJDK_TARGET_CPU_ISADIR="" 13813 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13814 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13815 OPENJDK_TARGET_CPU_ISADIR="/amd64" 13816 elif test "x$OPENJDK_TARGET_CPU" = xsparcv9; then 13817 OPENJDK_TARGET_CPU_ISADIR="/sparcv9" 13818 fi 13819 fi 13820 13821 13822 # Setup OPENJDK_TARGET_CPU_OSARCH, which is used to set the os.arch Java system property 13823 OPENJDK_TARGET_CPU_OSARCH="$OPENJDK_TARGET_CPU" 13824 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$OPENJDK_TARGET_CPU" = xx86; then 13825 # On linux only, we replace x86 with i386. 13826 OPENJDK_TARGET_CPU_OSARCH="i386" 13827 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13828 # On all platforms except macosx, we replace x86_64 with amd64. 13829 OPENJDK_TARGET_CPU_OSARCH="amd64" 13830 fi 13831 13832 13833 OPENJDK_TARGET_CPU_JLI="$OPENJDK_TARGET_CPU" 13834 if test "x$OPENJDK_TARGET_CPU" = xx86; then 13835 OPENJDK_TARGET_CPU_JLI="i386" 13836 elif test "x$OPENJDK_TARGET_OS" != xmacosx && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 13837 # On all platforms except macosx, we replace x86_64 with amd64. 13838 OPENJDK_TARGET_CPU_JLI="amd64" 13839 fi 13840 # Now setup the -D flags for building libjli. 13841 OPENJDK_TARGET_CPU_JLI_CFLAGS="-DLIBARCHNAME='\"$OPENJDK_TARGET_CPU_JLI\"'" 13842 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 13843 if test "x$OPENJDK_TARGET_CPU_ARCH" = xsparc; then 13844 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"sparc\"' -DLIBARCH64NAME='\"sparcv9\"'" 13845 elif test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 13846 OPENJDK_TARGET_CPU_JLI_CFLAGS="$OPENJDK_TARGET_CPU_JLI_CFLAGS -DLIBARCH32NAME='\"i386\"' -DLIBARCH64NAME='\"amd64\"'" 13847 fi 13848 fi 13849 13850 13851 # Setup OPENJDK_TARGET_OS_API_DIR, used in source paths. 13852 if test "x$OPENJDK_TARGET_OS_API" = xposix; then 13853 OPENJDK_TARGET_OS_API_DIR="solaris" 13854 fi 13855 if test "x$OPENJDK_TARGET_OS_API" = xwinapi; then 13856 OPENJDK_TARGET_OS_API_DIR="windows" 13857 fi 13858 13859 13860 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 13861 OPENJDK_TARGET_OS_EXPORT_DIR=macosx 13862 else 13863 OPENJDK_TARGET_OS_EXPORT_DIR=${OPENJDK_TARGET_OS_API_DIR} 13864 fi 13865 13866 13867 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 13868 A_LP64="LP64:=" 13869 # -D_LP64=1 is only set on linux and mac. Setting on windows causes diff in 13870 # unpack200.exe 13871 if test "x$OPENJDK_TARGET_OS" = xlinux || test "x$OPENJDK_TARGET_OS" = xmacosx; then 13872 ADD_LP64="-D_LP64=1" 13873 fi 13874 fi 13875 LP64=$A_LP64 13876 13877 13878 if test "x$COMPILE_TYPE" = "xcross"; then 13879 # FIXME: ... or should this include reduced builds..? 13880 DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$OPENJDK_TARGET_CPU_LEGACY" 13881 else 13882 DEFINE_CROSS_COMPILE_ARCH="" 13883 fi 13884 13885 13886 # ZERO_ARCHDEF is used to enable architecture-specific code 13887 case "${OPENJDK_TARGET_CPU}" in 13888 ppc) ZERO_ARCHDEF=PPC32 ;; 13889 ppc64) ZERO_ARCHDEF=PPC64 ;; 13890 s390*) ZERO_ARCHDEF=S390 ;; 13891 sparc*) ZERO_ARCHDEF=SPARC ;; 13892 x86_64*) ZERO_ARCHDEF=AMD64 ;; 13893 x86) ZERO_ARCHDEF=IA32 ;; 13894 *) ZERO_ARCHDEF=$(echo "${OPENJDK_TARGET_CPU_LEGACY_LIB}" | tr a-z A-Z) 13895 esac 13896 13897 13898 13899 13900 # Continue setting up basic stuff. Most remaining code require fundamental tools. 13901 13902 # Save the current directory this script was started from 13903 CURDIR="$PWD" 13904 13905 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 13906 PATH_SEP=";" 13907 13908 SRC_ROOT_LENGTH=`$THEPWDCMD -L|$WC -m` 13909 if test $SRC_ROOT_LENGTH -gt 100; then 13910 as_fn_error $? "Your base path is too long. It is $SRC_ROOT_LENGTH characters long, but only 100 is supported" "$LINENO" 5 13911 fi 13912 13913 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin release" >&5 13915 $as_echo_n "checking cygwin release... " >&6; } 13916 CYGWIN_VERSION=`$UNAME -r` 13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_VERSION" >&5 13918 $as_echo "$CYGWIN_VERSION" >&6; } 13919 WINDOWS_ENV_VENDOR='cygwin' 13920 WINDOWS_ENV_VERSION="$CYGWIN_VERSION" 13921 13922 CYGWIN_VERSION_OLD=`$ECHO $CYGWIN_VERSION | $GREP -e '^1\.0-6'` 13923 if test "x$CYGWIN_VERSION_OLD" != x; then 13924 { $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 13925 $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;} 13926 as_fn_error $? "Cannot continue" "$LINENO" 5 13927 fi 13928 if test "x$CYGPATH" = x; then 13929 as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5 13930 fi 13931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking cygwin root directory as unix-style path" >&5 13932 $as_echo_n "checking cygwin root directory as unix-style path... " >&6; } 13933 # The cmd output ends with Windows line endings (CR/LF) 13934 cygwin_winpath_root=`cd / ; cmd /c cd | $TR -d '\r\n'` 13935 # Force cygpath to report the proper root by including a trailing space, and then stripping it off again. 13936 CYGWIN_ROOT_PATH=`$CYGPATH -u "$cygwin_winpath_root " | $CUT -f 1 -d " "` 13937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_ROOT_PATH" >&5 13938 $as_echo "$CYGWIN_ROOT_PATH" >&6; } 13939 WINDOWS_ENV_ROOT_PATH="$CYGWIN_ROOT_PATH" 13940 test_cygdrive_prefix=`$ECHO $CYGWIN_ROOT_PATH | $GREP ^/cygdrive/` 13941 if test "x$test_cygdrive_prefix" = x; then 13942 as_fn_error $? "Your cygdrive prefix is not /cygdrive. This is currently not supported. Change with mount -c." "$LINENO" 5 13943 fi 13944 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys release" >&5 13946 $as_echo_n "checking msys release... " >&6; } 13947 MSYS_VERSION=`$UNAME -r` 13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_VERSION" >&5 13949 $as_echo "$MSYS_VERSION" >&6; } 13950 13951 WINDOWS_ENV_VENDOR='msys' 13952 WINDOWS_ENV_VERSION="$MSYS_VERSION" 13953 13954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking msys root directory as unix-style path" >&5 13955 $as_echo_n "checking msys root directory as unix-style path... " >&6; } 13956 # The cmd output ends with Windows line endings (CR/LF), the grep command will strip that away 13957 MSYS_ROOT_PATH=`cd / ; cmd /c cd | grep ".*"` 13958 13959 windows_path="$MSYS_ROOT_PATH" 13960 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 13961 unix_path=`$CYGPATH -u "$windows_path"` 13962 MSYS_ROOT_PATH="$unix_path" 13963 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 13964 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 13965 MSYS_ROOT_PATH="$unix_path" 13966 fi 13967 13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSYS_ROOT_PATH" >&5 13969 $as_echo "$MSYS_ROOT_PATH" >&6; } 13970 WINDOWS_ENV_ROOT_PATH="$MSYS_ROOT_PATH" 13971 else 13972 as_fn_error $? "Unknown Windows environment. Neither cygwin nor msys was detected." "$LINENO" 5 13973 fi 13974 13975 # Test if windows or unix (cygwin/msys) find is first in path. 13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what kind of 'find' is first on the PATH" >&5 13977 $as_echo_n "checking what kind of 'find' is first on the PATH... " >&6; } 13978 FIND_BINARY_OUTPUT=`find --version 2>&1` 13979 if test "x`echo $FIND_BINARY_OUTPUT | $GREP GNU`" != x; then 13980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unix style" >&5 13981 $as_echo "unix style" >&6; } 13982 elif test "x`echo $FIND_BINARY_OUTPUT | $GREP FIND`" != x; then 13983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Windows" >&5 13984 $as_echo "Windows" >&6; } 13985 { $as_echo "$as_me:${as_lineno-$LINENO}: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&5 13986 $as_echo "$as_me: Your path contains Windows tools (C:\Windows\system32) before your unix (cygwin or msys) tools." >&6;} 13987 { $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 13988 $as_echo "$as_me: This will not work. Please correct and make sure /usr/bin (or similar) is first in path." >&6;} 13989 as_fn_error $? "Cannot continue" "$LINENO" 5 13990 else 13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 13992 $as_echo "unknown" >&6; } 13993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: It seems that your find utility is non-standard." >&5 13994 $as_echo "$as_me: WARNING: It seems that your find utility is non-standard." >&2;} 13995 fi 13996 13997 else 13998 PATH_SEP=":" 13999 fi 14000 14001 14002 # We get the top-level directory from the supporting wrappers. 14003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for top-level directory" >&5 14004 $as_echo_n "checking for top-level directory... " >&6; } 14005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOPDIR" >&5 14006 $as_echo "$TOPDIR" >&6; } 14007 14008 14009 # We can only call BASIC_FIXUP_PATH after BASIC_CHECK_PATHS_WINDOWS. 14010 14011 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14012 14013 # Input might be given as Windows format, start by converting to 14014 # unix format. 14015 path="$CURDIR" 14016 new_path=`$CYGPATH -u "$path"` 14017 14018 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14019 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14020 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14021 # "foo.exe" is OK but "foo" is an error. 14022 # 14023 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14024 # It is also a way to make sure we got the proper file name for the real test later on. 14025 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14026 if test "x$test_shortpath" = x; then 14027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14028 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14029 as_fn_error $? "Cannot locate the the path of CURDIR" "$LINENO" 5 14030 fi 14031 14032 # Call helper function which possibly converts this using DOS-style short mode. 14033 # If so, the updated path is stored in $new_path. 14034 14035 input_path="$new_path" 14036 # Check if we need to convert this using DOS-style short mode. If the path 14037 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14038 # take no chances and rewrite it. 14039 # Note: m4 eats our [], so we need to use [ and ] instead. 14040 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14041 if test "x$has_forbidden_chars" != x; then 14042 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14043 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14044 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14045 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14046 # Going to short mode and back again did indeed matter. Since short mode is 14047 # case insensitive, let's make it lowercase to improve readability. 14048 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14049 # Now convert it back to Unix-stile (cygpath) 14050 input_path=`$CYGPATH -u "$shortmode_path"` 14051 new_path="$input_path" 14052 fi 14053 fi 14054 14055 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14056 if test "x$test_cygdrive_prefix" = x; then 14057 # As a simple fix, exclude /usr/bin since it's not a real path. 14058 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14059 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14060 # a path prefixed by /cygdrive for fixpath to work. 14061 new_path="$CYGWIN_ROOT_PATH$input_path" 14062 fi 14063 fi 14064 14065 14066 if test "x$path" != "x$new_path"; then 14067 CURDIR="$new_path" 14068 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14069 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14070 fi 14071 14072 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14073 14074 path="$CURDIR" 14075 has_colon=`$ECHO $path | $GREP ^.:` 14076 new_path="$path" 14077 if test "x$has_colon" = x; then 14078 # Not in mixed or Windows style, start by that. 14079 new_path=`cmd //c echo $path` 14080 fi 14081 14082 14083 input_path="$new_path" 14084 # Check if we need to convert this using DOS-style short mode. If the path 14085 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14086 # take no chances and rewrite it. 14087 # Note: m4 eats our [], so we need to use [ and ] instead. 14088 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14089 if test "x$has_forbidden_chars" != x; then 14090 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14091 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14092 fi 14093 14094 14095 windows_path="$new_path" 14096 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14097 unix_path=`$CYGPATH -u "$windows_path"` 14098 new_path="$unix_path" 14099 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14100 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14101 new_path="$unix_path" 14102 fi 14103 14104 if test "x$path" != "x$new_path"; then 14105 CURDIR="$new_path" 14106 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CURDIR to \"$new_path\"" >&5 14107 $as_echo "$as_me: Rewriting CURDIR to \"$new_path\"" >&6;} 14108 fi 14109 14110 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14111 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14112 14113 else 14114 # We're on a posix platform. Hooray! :) 14115 path="$CURDIR" 14116 has_space=`$ECHO "$path" | $GREP " "` 14117 if test "x$has_space" != x; then 14118 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CURDIR, which resolves as \"$path\", is invalid." >&5 14119 $as_echo "$as_me: The path of CURDIR, which resolves as \"$path\", is invalid." >&6;} 14120 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14121 fi 14122 14123 # Use eval to expand a potential ~ 14124 eval path="$path" 14125 if test ! -f "$path" && test ! -d "$path"; then 14126 as_fn_error $? "The path of CURDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14127 fi 14128 14129 CURDIR="`cd "$path"; $THEPWDCMD -L`" 14130 fi 14131 14132 14133 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14134 14135 # Input might be given as Windows format, start by converting to 14136 # unix format. 14137 path="$TOPDIR" 14138 new_path=`$CYGPATH -u "$path"` 14139 14140 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14141 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14142 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14143 # "foo.exe" is OK but "foo" is an error. 14144 # 14145 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14146 # It is also a way to make sure we got the proper file name for the real test later on. 14147 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14148 if test "x$test_shortpath" = x; then 14149 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14150 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14151 as_fn_error $? "Cannot locate the the path of TOPDIR" "$LINENO" 5 14152 fi 14153 14154 # Call helper function which possibly converts this using DOS-style short mode. 14155 # If so, the updated path is stored in $new_path. 14156 14157 input_path="$new_path" 14158 # Check if we need to convert this using DOS-style short mode. If the path 14159 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14160 # take no chances and rewrite it. 14161 # Note: m4 eats our [], so we need to use [ and ] instead. 14162 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14163 if test "x$has_forbidden_chars" != x; then 14164 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14165 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14166 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14167 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14168 # Going to short mode and back again did indeed matter. Since short mode is 14169 # case insensitive, let's make it lowercase to improve readability. 14170 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14171 # Now convert it back to Unix-stile (cygpath) 14172 input_path=`$CYGPATH -u "$shortmode_path"` 14173 new_path="$input_path" 14174 fi 14175 fi 14176 14177 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14178 if test "x$test_cygdrive_prefix" = x; then 14179 # As a simple fix, exclude /usr/bin since it's not a real path. 14180 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14181 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14182 # a path prefixed by /cygdrive for fixpath to work. 14183 new_path="$CYGWIN_ROOT_PATH$input_path" 14184 fi 14185 fi 14186 14187 14188 if test "x$path" != "x$new_path"; then 14189 TOPDIR="$new_path" 14190 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14191 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14192 fi 14193 14194 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14195 14196 path="$TOPDIR" 14197 has_colon=`$ECHO $path | $GREP ^.:` 14198 new_path="$path" 14199 if test "x$has_colon" = x; then 14200 # Not in mixed or Windows style, start by that. 14201 new_path=`cmd //c echo $path` 14202 fi 14203 14204 14205 input_path="$new_path" 14206 # Check if we need to convert this using DOS-style short mode. If the path 14207 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14208 # take no chances and rewrite it. 14209 # Note: m4 eats our [], so we need to use [ and ] instead. 14210 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14211 if test "x$has_forbidden_chars" != x; then 14212 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14213 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14214 fi 14215 14216 14217 windows_path="$new_path" 14218 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14219 unix_path=`$CYGPATH -u "$windows_path"` 14220 new_path="$unix_path" 14221 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14222 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14223 new_path="$unix_path" 14224 fi 14225 14226 if test "x$path" != "x$new_path"; then 14227 TOPDIR="$new_path" 14228 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting TOPDIR to \"$new_path\"" >&5 14229 $as_echo "$as_me: Rewriting TOPDIR to \"$new_path\"" >&6;} 14230 fi 14231 14232 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14233 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14234 14235 else 14236 # We're on a posix platform. Hooray! :) 14237 path="$TOPDIR" 14238 has_space=`$ECHO "$path" | $GREP " "` 14239 if test "x$has_space" != x; then 14240 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of TOPDIR, which resolves as \"$path\", is invalid." >&5 14241 $as_echo "$as_me: The path of TOPDIR, which resolves as \"$path\", is invalid." >&6;} 14242 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14243 fi 14244 14245 # Use eval to expand a potential ~ 14246 eval path="$path" 14247 if test ! -f "$path" && test ! -d "$path"; then 14248 as_fn_error $? "The path of TOPDIR, which resolves as \"$path\", is not found." "$LINENO" 5 14249 fi 14250 14251 TOPDIR="`cd "$path"; $THEPWDCMD -L`" 14252 fi 14253 14254 # SRC_ROOT is a traditional alias for TOPDIR. 14255 SRC_ROOT=$TOPDIR 14256 14257 # Locate the directory of this script. 14258 AUTOCONF_DIR=$TOPDIR/common/autoconf 14259 14260 if test "x$OPENJDK_BUILD_OS" = "xsolaris"; then 14261 # Add extra search paths on solaris for utilities like ar and as etc... 14262 PATH="$PATH:/usr/ccs/bin:/usr/sfw/bin:/opt/csw/bin" 14263 fi 14264 14265 # You can force the sys-root if the sys-root encoded into the cross compiler tools 14266 # is not correct. 14267 14268 # Check whether --with-sys-root was given. 14269 if test "${with_sys_root+set}" = set; then : 14270 withval=$with_sys_root; 14271 fi 14272 14273 14274 if test "x$with_sys_root" != x; then 14275 SYS_ROOT=$with_sys_root 14276 else 14277 SYS_ROOT=/ 14278 fi 14279 14280 14281 14282 # Check whether --with-tools-dir was given. 14283 if test "${with_tools_dir+set}" = set; then : 14284 withval=$with_tools_dir; TOOLS_DIR=$with_tools_dir 14285 14286 fi 14287 14288 14289 # Xcode version will be validated later 14290 14291 # Check whether --with-xcode-path was given. 14292 if test "${with_xcode_path+set}" = set; then : 14293 withval=$with_xcode_path; XCODE_PATH=$with_xcode_path 14294 14295 fi 14296 14297 14298 14299 # Check whether --with-devkit was given. 14300 if test "${with_devkit+set}" = set; then : 14301 withval=$with_devkit; 14302 if test "x$with_sys_root" != x; then 14303 as_fn_error $? "Cannot specify both --with-devkit and --with-sys-root at the same time" "$LINENO" 5 14304 fi 14305 14306 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14307 14308 # Input might be given as Windows format, start by converting to 14309 # unix format. 14310 path="$with_devkit" 14311 new_path=`$CYGPATH -u "$path"` 14312 14313 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14314 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14315 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14316 # "foo.exe" is OK but "foo" is an error. 14317 # 14318 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14319 # It is also a way to make sure we got the proper file name for the real test later on. 14320 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14321 if test "x$test_shortpath" = x; then 14322 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14323 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14324 as_fn_error $? "Cannot locate the the path of with_devkit" "$LINENO" 5 14325 fi 14326 14327 # Call helper function which possibly converts this using DOS-style short mode. 14328 # If so, the updated path is stored in $new_path. 14329 14330 input_path="$new_path" 14331 # Check if we need to convert this using DOS-style short mode. If the path 14332 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14333 # take no chances and rewrite it. 14334 # Note: m4 eats our [], so we need to use [ and ] instead. 14335 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14336 if test "x$has_forbidden_chars" != x; then 14337 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14338 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14339 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14340 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14341 # Going to short mode and back again did indeed matter. Since short mode is 14342 # case insensitive, let's make it lowercase to improve readability. 14343 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14344 # Now convert it back to Unix-stile (cygpath) 14345 input_path=`$CYGPATH -u "$shortmode_path"` 14346 new_path="$input_path" 14347 fi 14348 fi 14349 14350 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14351 if test "x$test_cygdrive_prefix" = x; then 14352 # As a simple fix, exclude /usr/bin since it's not a real path. 14353 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14354 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14355 # a path prefixed by /cygdrive for fixpath to work. 14356 new_path="$CYGWIN_ROOT_PATH$input_path" 14357 fi 14358 fi 14359 14360 14361 if test "x$path" != "x$new_path"; then 14362 with_devkit="$new_path" 14363 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14364 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14365 fi 14366 14367 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14368 14369 path="$with_devkit" 14370 has_colon=`$ECHO $path | $GREP ^.:` 14371 new_path="$path" 14372 if test "x$has_colon" = x; then 14373 # Not in mixed or Windows style, start by that. 14374 new_path=`cmd //c echo $path` 14375 fi 14376 14377 14378 input_path="$new_path" 14379 # Check if we need to convert this using DOS-style short mode. If the path 14380 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14381 # take no chances and rewrite it. 14382 # Note: m4 eats our [], so we need to use [ and ] instead. 14383 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14384 if test "x$has_forbidden_chars" != x; then 14385 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14386 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14387 fi 14388 14389 14390 windows_path="$new_path" 14391 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14392 unix_path=`$CYGPATH -u "$windows_path"` 14393 new_path="$unix_path" 14394 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14395 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14396 new_path="$unix_path" 14397 fi 14398 14399 if test "x$path" != "x$new_path"; then 14400 with_devkit="$new_path" 14401 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting with_devkit to \"$new_path\"" >&5 14402 $as_echo "$as_me: Rewriting with_devkit to \"$new_path\"" >&6;} 14403 fi 14404 14405 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14406 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14407 14408 else 14409 # We're on a posix platform. Hooray! :) 14410 path="$with_devkit" 14411 has_space=`$ECHO "$path" | $GREP " "` 14412 if test "x$has_space" != x; then 14413 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of with_devkit, which resolves as \"$path\", is invalid." >&5 14414 $as_echo "$as_me: The path of with_devkit, which resolves as \"$path\", is invalid." >&6;} 14415 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14416 fi 14417 14418 # Use eval to expand a potential ~ 14419 eval path="$path" 14420 if test ! -f "$path" && test ! -d "$path"; then 14421 as_fn_error $? "The path of with_devkit, which resolves as \"$path\", is not found." "$LINENO" 5 14422 fi 14423 14424 with_devkit="`cd "$path"; $THEPWDCMD -L`" 14425 fi 14426 14427 14428 if test "x$TOOLS_DIR" = x; then 14429 TOOLS_DIR="$with_devkit/bin" 14430 else 14431 TOOLS_DIR="$TOOLS_DIR:$with_devkit/bin" 14432 fi 14433 14434 if test -d "$with_devkit/$host_alias/libc"; then 14435 SYS_ROOT=$with_devkit/$host_alias/libc 14436 elif test -d "$with_devkit/$host/sys-root"; then 14437 SYS_ROOT=$with_devkit/$host/sys-root 14438 fi 14439 14440 fi 14441 14442 14443 14444 # Setup default logging of stdout and stderr to build.log in the output root. 14445 BUILD_LOG='$(OUTPUT_ROOT)/build.log' 14446 BUILD_LOG_PREVIOUS='$(OUTPUT_ROOT)/build.log.old' 14447 BUILD_LOG_WRAPPER='$(BASH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)' 14448 14449 14450 14451 14452 14453 # Check if it's a pure open build or if custom sources are to be used. 14454 14455 # Check whether --enable-openjdk-only was given. 14456 if test "${enable_openjdk_only+set}" = set; then : 14457 enableval=$enable_openjdk_only; 14458 else 14459 enable_openjdk_only="no" 14460 fi 14461 14462 14463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for presence of closed sources" >&5 14464 $as_echo_n "checking for presence of closed sources... " >&6; } 14465 if test -d "$SRC_ROOT/jdk/src/closed"; then 14466 CLOSED_SOURCE_PRESENT=yes 14467 else 14468 CLOSED_SOURCE_PRESENT=no 14469 fi 14470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CLOSED_SOURCE_PRESENT" >&5 14471 $as_echo "$CLOSED_SOURCE_PRESENT" >&6; } 14472 14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closed source is suppressed (openjdk-only)" >&5 14474 $as_echo_n "checking if closed source is suppressed (openjdk-only)... " >&6; } 14475 SUPPRESS_CLOSED_SOURCE="$enable_openjdk_only" 14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SUPPRESS_CLOSED_SOURCE" >&5 14477 $as_echo "$SUPPRESS_CLOSED_SOURCE" >&6; } 14478 14479 if test "x$CLOSED_SOURCE_PRESENT" = xno; then 14480 OPENJDK=true 14481 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&5 14483 $as_echo "$as_me: WARNING: No closed source present, --enable-openjdk-only makes no sense" >&2;} 14484 fi 14485 else 14486 if test "x$SUPPRESS_CLOSED_SOURCE" = "xyes"; then 14487 OPENJDK=true 14488 else 14489 OPENJDK=false 14490 fi 14491 fi 14492 14493 if test "x$OPENJDK" = "xtrue"; then 14494 SET_OPENJDK="OPENJDK=true" 14495 fi 14496 14497 14498 14499 14500 # These are needed to be able to create a configuration name (and thus the output directory) 14501 14502 ############################################################################### 14503 # 14504 # Check which variant of the JDK that we want to build. 14505 # Currently we have: 14506 # normal: standard edition 14507 # but the custom make system may add other variants 14508 # 14509 # Effectively the JDK variant gives a name to a specific set of 14510 # modules to compile into the JDK. In the future, these modules 14511 # might even be Jigsaw modules. 14512 # 14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5 14514 $as_echo_n "checking which variant of the JDK to build... " >&6; } 14515 14516 # Check whether --with-jdk-variant was given. 14517 if test "${with_jdk_variant+set}" = set; then : 14518 withval=$with_jdk_variant; 14519 fi 14520 14521 14522 if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then 14523 JDK_VARIANT="normal" 14524 else 14525 as_fn_error $? "The available JDK variants are: normal" "$LINENO" 5 14526 fi 14527 14528 14529 14530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5 14531 $as_echo "$JDK_VARIANT" >&6; } 14532 14533 14534 ############################################################################### 14535 # 14536 # Check which interpreter of the JVM we want to build. 14537 # Currently we have: 14538 # template: Template interpreter (the default) 14539 # cpp : C++ interpreter 14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which interpreter of the JVM to build" >&5 14541 $as_echo_n "checking which interpreter of the JVM to build... " >&6; } 14542 14543 # Check whether --with-jvm-interpreter was given. 14544 if test "${with_jvm_interpreter+set}" = set; then : 14545 withval=$with_jvm_interpreter; 14546 fi 14547 14548 14549 if test "x$with_jvm_interpreter" = x; then 14550 with_jvm_interpreter="template" 14551 fi 14552 14553 JVM_INTERPRETER="$with_jvm_interpreter" 14554 14555 if test "x$JVM_INTERPRETER" != xtemplate && test "x$JVM_INTERPRETER" != xcpp; then 14556 as_fn_error $? "The available JVM interpreters are: template, cpp" "$LINENO" 5 14557 fi 14558 14559 14560 14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_interpreter" >&5 14562 $as_echo "$with_jvm_interpreter" >&6; } 14563 14564 14565 14566 ############################################################################### 14567 # 14568 # Check which variants of the JVM that we want to build. 14569 # Currently we have: 14570 # server: normal interpreter and a tiered C1/C2 compiler 14571 # client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms) 14572 # minimal1: reduced form of client with optional VM services and features stripped out 14573 # kernel: kernel footprint JVM that passes the TCK without major performance problems, 14574 # ie normal interpreter and C1, only the serial GC, kernel jvmti etc 14575 # zero: no machine code interpreter, no compiler 14576 # zeroshark: zero interpreter and shark/llvm compiler backend 14577 # core: interpreter only, no compiler (only works on some platforms) 14578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM to build" >&5 14579 $as_echo_n "checking which variants of the JVM to build... " >&6; } 14580 14581 # Check whether --with-jvm-variants was given. 14582 if test "${with_jvm_variants+set}" = set; then : 14583 withval=$with_jvm_variants; 14584 fi 14585 14586 14587 if test "x$with_jvm_variants" = x; then 14588 with_jvm_variants="server" 14589 fi 14590 14591 JVM_VARIANTS=",$with_jvm_variants," 14592 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,//'` 14593 14594 if test "x$TEST_VARIANTS" != "x,"; then 14595 as_fn_error $? "The available JVM variants are: server, client, minimal1, kernel, zero, zeroshark, core" "$LINENO" 5 14596 fi 14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5 14598 $as_echo "$with_jvm_variants" >&6; } 14599 14600 JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'` 14601 JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'` 14602 JVM_VARIANT_MINIMAL1=`$ECHO "$JVM_VARIANTS" | $SED -e '/,minimal1,/!s/.*/false/g' -e '/,minimal1,/s/.*/true/g'` 14603 JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'` 14604 JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'` 14605 JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'` 14606 JVM_VARIANT_CORE=`$ECHO "$JVM_VARIANTS" | $SED -e '/,core,/!s/.*/false/g' -e '/,core,/s/.*/true/g'` 14607 14608 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14609 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14610 as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5 14611 fi 14612 fi 14613 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14614 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14615 as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5 14616 fi 14617 fi 14618 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14619 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 14620 as_fn_error $? "You cannot build a minimal JVM for a 64-bit machine." "$LINENO" 5 14621 fi 14622 fi 14623 14624 # Replace the commas with AND for use in the build directory name. 14625 ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/g'` 14626 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/'` 14627 if test "x$COUNT_VARIANTS" != "x,1"; then 14628 BUILDING_MULTIPLE_JVM_VARIANTS=yes 14629 else 14630 BUILDING_MULTIPLE_JVM_VARIANTS=no 14631 fi 14632 14633 14634 14635 14636 14637 14638 14639 14640 14641 14642 INCLUDE_SA=true 14643 if test "x$JVM_VARIANT_ZERO" = xtrue ; then 14644 INCLUDE_SA=false 14645 fi 14646 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue ; then 14647 INCLUDE_SA=false 14648 fi 14649 if test "x$VAR_CPU" = xppc64 ; then 14650 INCLUDE_SA=false 14651 fi 14652 if test "x$OPENJDK_TARGET_CPU" = xaarch64; then 14653 INCLUDE_SA=false 14654 fi 14655 14656 14657 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 14658 MACOSX_UNIVERSAL="false" 14659 fi 14660 14661 14662 14663 14664 ############################################################################### 14665 # 14666 # Set the debug level 14667 # release: no debug information, all optimizations, no asserts. 14668 # fastdebug: debug information (-g), all optimizations, all asserts 14669 # slowdebug: debug information (-g), no optimizations, all asserts 14670 # 14671 DEBUG_LEVEL="release" 14672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5 14673 $as_echo_n "checking which debug level to use... " >&6; } 14674 # Check whether --enable-debug was given. 14675 if test "${enable_debug+set}" = set; then : 14676 enableval=$enable_debug; 14677 ENABLE_DEBUG="${enableval}" 14678 DEBUG_LEVEL="fastdebug" 14679 14680 else 14681 ENABLE_DEBUG="no" 14682 fi 14683 14684 14685 14686 # Check whether --with-debug-level was given. 14687 if test "${with_debug_level+set}" = set; then : 14688 withval=$with_debug_level; 14689 DEBUG_LEVEL="${withval}" 14690 if test "x$ENABLE_DEBUG" = xyes; then 14691 as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5 14692 fi 14693 14694 fi 14695 14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5 14697 $as_echo "$DEBUG_LEVEL" >&6; } 14698 14699 if test "x$DEBUG_LEVEL" != xrelease && \ 14700 test "x$DEBUG_LEVEL" != xfastdebug && \ 14701 test "x$DEBUG_LEVEL" != xslowdebug; then 14702 as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5 14703 fi 14704 14705 14706 ############################################################################### 14707 # 14708 # Setup legacy vars/targets and new vars to deal with different debug levels. 14709 # 14710 14711 case $DEBUG_LEVEL in 14712 release ) 14713 VARIANT="OPT" 14714 FASTDEBUG="false" 14715 DEBUG_CLASSFILES="false" 14716 BUILD_VARIANT_RELEASE="" 14717 HOTSPOT_DEBUG_LEVEL="product" 14718 HOTSPOT_EXPORT="product" 14719 ;; 14720 fastdebug ) 14721 VARIANT="DBG" 14722 FASTDEBUG="true" 14723 DEBUG_CLASSFILES="true" 14724 BUILD_VARIANT_RELEASE="-fastdebug" 14725 HOTSPOT_DEBUG_LEVEL="fastdebug" 14726 HOTSPOT_EXPORT="fastdebug" 14727 ;; 14728 slowdebug ) 14729 VARIANT="DBG" 14730 FASTDEBUG="false" 14731 DEBUG_CLASSFILES="true" 14732 BUILD_VARIANT_RELEASE="-debug" 14733 HOTSPOT_DEBUG_LEVEL="jvmg" 14734 HOTSPOT_EXPORT="debug" 14735 ;; 14736 esac 14737 14738 ##### 14739 # Generate the legacy makefile targets for hotspot. 14740 # The hotspot api for selecting the build artifacts, really, needs to be improved. 14741 # JDK-7195896 will fix this on the hotspot side by using the JVM_VARIANT_* variables to 14742 # determine what needs to be built. All we will need to set here is all_product, all_fastdebug etc 14743 # But until then ... 14744 HOTSPOT_TARGET="" 14745 14746 if test "x$JVM_VARIANT_SERVER" = xtrue; then 14747 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} " 14748 fi 14749 14750 if test "x$JVM_VARIANT_CLIENT" = xtrue; then 14751 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 " 14752 fi 14753 14754 if test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 14755 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}minimal1 " 14756 fi 14757 14758 if test "x$JVM_VARIANT_KERNEL" = xtrue; then 14759 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel " 14760 fi 14761 14762 if test "x$JVM_VARIANT_ZERO" = xtrue; then 14763 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero " 14764 fi 14765 14766 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 14767 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark " 14768 fi 14769 14770 if test "x$JVM_VARIANT_CORE" = xtrue; then 14771 HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}core " 14772 fi 14773 14774 HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT" 14775 14776 # On Macosx universal binaries are produced, but they only contain 14777 # 64 bit intel. This invalidates control of which jvms are built 14778 # from configure, but only server is valid anyway. Fix this 14779 # when hotspot makefiles are rewritten. 14780 if test "x$MACOSX_UNIVERSAL" = xtrue; then 14781 HOTSPOT_TARGET=universal_${HOTSPOT_EXPORT} 14782 fi 14783 14784 ##### 14785 14786 14787 14788 14789 14790 14791 14792 14793 # With basic setup done, call the custom early hook. 14794 14795 14796 # To properly create a configuration name, we need to have the OpenJDK target 14797 # and options (variants and debug level) parsed. 14798 14799 14800 14801 # Check whether --with-conf-name was given. 14802 if test "${with_conf_name+set}" = set; then : 14803 withval=$with_conf_name; CONF_NAME=${with_conf_name} 14804 fi 14805 14806 14807 # Test from where we are running configure, in or outside of src root. 14808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to store configuration" >&5 14809 $as_echo_n "checking where to store configuration... " >&6; } 14810 if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" \ 14811 || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" \ 14812 || test "x$CURDIR" = "x$SRC_ROOT/make" ; then 14813 # We are running configure from the src root. 14814 # Create a default ./build/target-variant-debuglevel output root. 14815 if test "x${CONF_NAME}" = x; then 14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in default location" >&5 14817 $as_echo "in default location" >&6; } 14818 CONF_NAME="${OPENJDK_TARGET_OS}-${OPENJDK_TARGET_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}" 14819 else 14820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in build directory with custom name" >&5 14821 $as_echo "in build directory with custom name" >&6; } 14822 fi 14823 OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}" 14824 $MKDIR -p "$OUTPUT_ROOT" 14825 if test ! -d "$OUTPUT_ROOT"; then 14826 as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5 14827 fi 14828 else 14829 # We are running configure from outside of the src dir. 14830 # Then use the current directory as output dir! 14831 # If configuration is situated in normal build directory, just use the build 14832 # directory name as configuration name, otherwise use the complete path. 14833 if test "x${CONF_NAME}" = x; then 14834 CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"` 14835 fi 14836 OUTPUT_ROOT="$CURDIR" 14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: in current directory" >&5 14838 $as_echo "in current directory" >&6; } 14839 14840 # WARNING: This might be a bad thing to do. You need to be sure you want to 14841 # have a configuration in this directory. Do some sanity checks! 14842 14843 if test ! -e "$OUTPUT_ROOT/spec.gmk"; then 14844 # If we have a spec.gmk, we have run here before and we are OK. Otherwise, check for 14845 # other files 14846 files_present=`$LS $OUTPUT_ROOT` 14847 # Configure has already touched config.log and confdefs.h in the current dir when this check 14848 # is performed. 14849 filtered_files=`$ECHO "$files_present" | $SED -e 's/config.log//g' -e 's/confdefs.h//g' -e 's/ //g' \ 14850 | $TR -d '\n'` 14851 if test "x$filtered_files" != x; then 14852 { $as_echo "$as_me:${as_lineno-$LINENO}: Current directory is $CURDIR." >&5 14853 $as_echo "$as_me: Current directory is $CURDIR." >&6;} 14854 { $as_echo "$as_me:${as_lineno-$LINENO}: Since this is not the source root, configure will output the configuration here" >&5 14855 $as_echo "$as_me: Since this is not the source root, configure will output the configuration here" >&6;} 14856 { $as_echo "$as_me:${as_lineno-$LINENO}: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&5 14857 $as_echo "$as_me: (as opposed to creating a configuration in <src_root>/build/<conf-name>)." >&6;} 14858 { $as_echo "$as_me:${as_lineno-$LINENO}: However, this directory is not empty. This is not allowed, since it could" >&5 14859 $as_echo "$as_me: However, this directory is not empty. This is not allowed, since it could" >&6;} 14860 { $as_echo "$as_me:${as_lineno-$LINENO}: seriously mess up just about everything." >&5 14861 $as_echo "$as_me: seriously mess up just about everything." >&6;} 14862 { $as_echo "$as_me:${as_lineno-$LINENO}: Try 'cd $SRC_ROOT' and restart configure" >&5 14863 $as_echo "$as_me: Try 'cd $SRC_ROOT' and restart configure" >&6;} 14864 { $as_echo "$as_me:${as_lineno-$LINENO}: (or create a new empty directory and cd to it)." >&5 14865 $as_echo "$as_me: (or create a new empty directory and cd to it)." >&6;} 14866 as_fn_error $? "Will not continue creating configuration in $CURDIR" "$LINENO" 5 14867 fi 14868 fi 14869 fi 14870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what configuration name to use" >&5 14871 $as_echo_n "checking what configuration name to use... " >&6; } 14872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONF_NAME" >&5 14873 $as_echo "$CONF_NAME" >&6; } 14874 14875 14876 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14877 14878 # Input might be given as Windows format, start by converting to 14879 # unix format. 14880 path="$OUTPUT_ROOT" 14881 new_path=`$CYGPATH -u "$path"` 14882 14883 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 14884 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 14885 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 14886 # "foo.exe" is OK but "foo" is an error. 14887 # 14888 # This test is therefore slightly more accurate than "test -f" to check for file precense. 14889 # It is also a way to make sure we got the proper file name for the real test later on. 14890 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 14891 if test "x$test_shortpath" = x; then 14892 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14893 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14894 as_fn_error $? "Cannot locate the the path of OUTPUT_ROOT" "$LINENO" 5 14895 fi 14896 14897 # Call helper function which possibly converts this using DOS-style short mode. 14898 # If so, the updated path is stored in $new_path. 14899 14900 input_path="$new_path" 14901 # Check if we need to convert this using DOS-style short mode. If the path 14902 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14903 # take no chances and rewrite it. 14904 # Note: m4 eats our [], so we need to use [ and ] instead. 14905 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 14906 if test "x$has_forbidden_chars" != x; then 14907 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14908 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 14909 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 14910 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 14911 # Going to short mode and back again did indeed matter. Since short mode is 14912 # case insensitive, let's make it lowercase to improve readability. 14913 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14914 # Now convert it back to Unix-stile (cygpath) 14915 input_path=`$CYGPATH -u "$shortmode_path"` 14916 new_path="$input_path" 14917 fi 14918 fi 14919 14920 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 14921 if test "x$test_cygdrive_prefix" = x; then 14922 # As a simple fix, exclude /usr/bin since it's not a real path. 14923 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 14924 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 14925 # a path prefixed by /cygdrive for fixpath to work. 14926 new_path="$CYGWIN_ROOT_PATH$input_path" 14927 fi 14928 fi 14929 14930 14931 if test "x$path" != "x$new_path"; then 14932 OUTPUT_ROOT="$new_path" 14933 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14934 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14935 fi 14936 14937 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14938 14939 path="$OUTPUT_ROOT" 14940 has_colon=`$ECHO $path | $GREP ^.:` 14941 new_path="$path" 14942 if test "x$has_colon" = x; then 14943 # Not in mixed or Windows style, start by that. 14944 new_path=`cmd //c echo $path` 14945 fi 14946 14947 14948 input_path="$new_path" 14949 # Check if we need to convert this using DOS-style short mode. If the path 14950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 14951 # take no chances and rewrite it. 14952 # Note: m4 eats our [], so we need to use [ and ] instead. 14953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 14954 if test "x$has_forbidden_chars" != x; then 14955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 14956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 14957 fi 14958 14959 14960 windows_path="$new_path" 14961 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 14962 unix_path=`$CYGPATH -u "$windows_path"` 14963 new_path="$unix_path" 14964 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 14965 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 14966 new_path="$unix_path" 14967 fi 14968 14969 if test "x$path" != "x$new_path"; then 14970 OUTPUT_ROOT="$new_path" 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OUTPUT_ROOT to \"$new_path\"" >&5 14972 $as_echo "$as_me: Rewriting OUTPUT_ROOT to \"$new_path\"" >&6;} 14973 fi 14974 14975 # Save the first 10 bytes of this path to the storage, so fixpath can work. 14976 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 14977 14978 else 14979 # We're on a posix platform. Hooray! :) 14980 path="$OUTPUT_ROOT" 14981 has_space=`$ECHO "$path" | $GREP " "` 14982 if test "x$has_space" != x; then 14983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&5 14984 $as_echo "$as_me: The path of OUTPUT_ROOT, which resolves as \"$path\", is invalid." >&6;} 14985 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 14986 fi 14987 14988 # Use eval to expand a potential ~ 14989 eval path="$path" 14990 if test ! -f "$path" && test ! -d "$path"; then 14991 as_fn_error $? "The path of OUTPUT_ROOT, which resolves as \"$path\", is not found." "$LINENO" 5 14992 fi 14993 14994 OUTPUT_ROOT="`cd "$path"; $THEPWDCMD -L`" 14995 fi 14996 14997 14998 SPEC=$OUTPUT_ROOT/spec.gmk 14999 15000 CONF_NAME=$CONF_NAME 15001 15002 OUTPUT_ROOT=$OUTPUT_ROOT 15003 15004 15005 # Most of the probed defines are put into config.h 15006 ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" 15007 15008 # The spec.gmk file contains all variables for the make system. 15009 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" 15010 15011 # The hotspot-spec.gmk file contains legacy variables for the hotspot make system. 15012 ac_config_files="$ac_config_files $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" 15013 15014 # The bootcycle-spec.gmk file contains support for boot cycle builds. 15015 ac_config_files="$ac_config_files $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" 15016 15017 # The compare.sh is used to compare the build output to other builds. 15018 ac_config_files="$ac_config_files $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" 15019 15020 # Spec.sh is currently used by compare-objects.sh 15021 ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" 15022 15023 # The generated Makefile knows where the spec.gmk is and where the source is. 15024 # You can run make from the OUTPUT_ROOT, or from the top-level Makefile 15025 # which will look for generated configurations 15026 ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" 15027 15028 15029 15030 # Must be done before we can call HELP_MSG_MISSING_DEPENDENCY. 15031 15032 for ac_prog in apt-get yum port pkgutil pkgadd 15033 do 15034 # Extract the first word of "$ac_prog", so it can be a program name with args. 15035 set dummy $ac_prog; ac_word=$2 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15037 $as_echo_n "checking for $ac_word... " >&6; } 15038 if ${ac_cv_prog_PKGHANDLER+:} false; then : 15039 $as_echo_n "(cached) " >&6 15040 else 15041 if test -n "$PKGHANDLER"; then 15042 ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test. 15043 else 15044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15045 for as_dir in $PATH 15046 do 15047 IFS=$as_save_IFS 15048 test -z "$as_dir" && as_dir=. 15049 for ac_exec_ext in '' $ac_executable_extensions; do 15050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15051 ac_cv_prog_PKGHANDLER="$ac_prog" 15052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15053 break 2 15054 fi 15055 done 15056 done 15057 IFS=$as_save_IFS 15058 15059 fi 15060 fi 15061 PKGHANDLER=$ac_cv_prog_PKGHANDLER 15062 if test -n "$PKGHANDLER"; then 15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5 15064 $as_echo "$PKGHANDLER" >&6; } 15065 else 15066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15067 $as_echo "no" >&6; } 15068 fi 15069 15070 15071 test -n "$PKGHANDLER" && break 15072 done 15073 15074 15075 15076 # Setup tools that requires more complex handling, or that is not needed by the configure script. 15077 15078 15079 # We need to find a recent version of GNU make. Especially on Solaris, this can be tricky. 15080 if test "x$MAKE" != x; then 15081 # User has supplied a make, test it. 15082 if test ! -f "$MAKE"; then 15083 as_fn_error $? "The specified make (by MAKE=$MAKE) is not found." "$LINENO" 5 15084 fi 15085 15086 MAKE_CANDIDATE=""$MAKE"" 15087 DESCRIPTION="user supplied MAKE=$MAKE" 15088 if test "x$MAKE_CANDIDATE" != x; then 15089 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15090 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15091 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15092 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15093 if test "x$IS_GNU_MAKE" = x; then 15094 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15095 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15096 else 15097 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15098 if test "x$IS_MODERN_MAKE" = x; then 15099 { $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 15100 $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;} 15101 else 15102 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15103 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15104 MAKE_EXPECTED_ENV='cygwin' 15105 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15106 MAKE_EXPECTED_ENV='msys' 15107 else 15108 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15109 fi 15110 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15111 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15112 else 15113 # Not relevant for non-Windows 15114 IS_MAKE_CORRECT_ENV=true 15115 fi 15116 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15117 { $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 15118 $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;} 15119 else 15120 FOUND_MAKE=$MAKE_CANDIDATE 15121 15122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15123 15124 # First separate the path from the arguments. This will split at the first 15125 # space. 15126 complete="$FOUND_MAKE" 15127 path="${complete%% *}" 15128 tmp="$complete EOL" 15129 arguments="${tmp#* }" 15130 15131 # Input might be given as Windows format, start by converting to 15132 # unix format. 15133 new_path=`$CYGPATH -u "$path"` 15134 15135 # Now try to locate executable using which 15136 new_path=`$WHICH "$new_path" 2> /dev/null` 15137 # bat and cmd files are not always considered executable in cygwin causing which 15138 # to not find them 15139 if test "x$new_path" = x \ 15140 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15141 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15142 new_path=`$CYGPATH -u "$path"` 15143 fi 15144 if test "x$new_path" = x; then 15145 # Oops. Which didn't find the executable. 15146 # The splitting of arguments from the executable at a space might have been incorrect, 15147 # since paths with space are more likely in Windows. Give it another try with the whole 15148 # argument. 15149 path="$complete" 15150 arguments="EOL" 15151 new_path=`$CYGPATH -u "$path"` 15152 new_path=`$WHICH "$new_path" 2> /dev/null` 15153 # bat and cmd files are not always considered executable in cygwin causing which 15154 # to not find them 15155 if test "x$new_path" = x \ 15156 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15157 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15158 new_path=`$CYGPATH -u "$path"` 15159 fi 15160 if test "x$new_path" = x; then 15161 # It's still not found. Now this is an unrecoverable error. 15162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15163 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15164 has_space=`$ECHO "$complete" | $GREP " "` 15165 if test "x$has_space" != x; then 15166 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15167 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15168 fi 15169 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15170 fi 15171 fi 15172 15173 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15174 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15175 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15176 # "foo.exe" is OK but "foo" is an error. 15177 # 15178 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15179 # It is also a way to make sure we got the proper file name for the real test later on. 15180 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15181 if test "x$test_shortpath" = x; then 15182 # Short path failed, file does not exist as specified. 15183 # Try adding .exe or .cmd 15184 if test -f "${new_path}.exe"; then 15185 input_to_shortpath="${new_path}.exe" 15186 elif test -f "${new_path}.cmd"; then 15187 input_to_shortpath="${new_path}.cmd" 15188 else 15189 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15190 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15191 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15192 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15193 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15194 fi 15195 else 15196 input_to_shortpath="$new_path" 15197 fi 15198 15199 # Call helper function which possibly converts this using DOS-style short mode. 15200 # If so, the updated path is stored in $new_path. 15201 new_path="$input_to_shortpath" 15202 15203 input_path="$input_to_shortpath" 15204 # Check if we need to convert this using DOS-style short mode. If the path 15205 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15206 # take no chances and rewrite it. 15207 # Note: m4 eats our [], so we need to use [ and ] instead. 15208 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15209 if test "x$has_forbidden_chars" != x; then 15210 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15211 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15212 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15213 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15214 # Going to short mode and back again did indeed matter. Since short mode is 15215 # case insensitive, let's make it lowercase to improve readability. 15216 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15217 # Now convert it back to Unix-stile (cygpath) 15218 input_path=`$CYGPATH -u "$shortmode_path"` 15219 new_path="$input_path" 15220 fi 15221 fi 15222 15223 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15224 if test "x$test_cygdrive_prefix" = x; then 15225 # As a simple fix, exclude /usr/bin since it's not a real path. 15226 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15227 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15228 # a path prefixed by /cygdrive for fixpath to work. 15229 new_path="$CYGWIN_ROOT_PATH$input_path" 15230 fi 15231 fi 15232 15233 # remove trailing .exe if any 15234 new_path="${new_path/%.exe/}" 15235 15236 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15237 15238 # First separate the path from the arguments. This will split at the first 15239 # space. 15240 complete="$FOUND_MAKE" 15241 path="${complete%% *}" 15242 tmp="$complete EOL" 15243 arguments="${tmp#* }" 15244 15245 # Input might be given as Windows format, start by converting to 15246 # unix format. 15247 new_path="$path" 15248 15249 windows_path="$new_path" 15250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15251 unix_path=`$CYGPATH -u "$windows_path"` 15252 new_path="$unix_path" 15253 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15254 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15255 new_path="$unix_path" 15256 fi 15257 15258 15259 # Now try to locate executable using which 15260 new_path=`$WHICH "$new_path" 2> /dev/null` 15261 15262 if test "x$new_path" = x; then 15263 # Oops. Which didn't find the executable. 15264 # The splitting of arguments from the executable at a space might have been incorrect, 15265 # since paths with space are more likely in Windows. Give it another try with the whole 15266 # argument. 15267 path="$complete" 15268 arguments="EOL" 15269 new_path="$path" 15270 15271 windows_path="$new_path" 15272 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15273 unix_path=`$CYGPATH -u "$windows_path"` 15274 new_path="$unix_path" 15275 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15276 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15277 new_path="$unix_path" 15278 fi 15279 15280 15281 new_path=`$WHICH "$new_path" 2> /dev/null` 15282 15283 if test "x$new_path" = x; then 15284 # It's still not found. Now this is an unrecoverable error. 15285 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15286 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15287 has_space=`$ECHO "$complete" | $GREP " "` 15288 if test "x$has_space" != x; then 15289 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15290 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15291 fi 15292 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15293 fi 15294 fi 15295 15296 # Now new_path has a complete unix path to the binary 15297 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15298 # Keep paths in /bin as-is, but remove trailing .exe if any 15299 new_path="${new_path/%.exe/}" 15300 # Do not save /bin paths to all_fixpath_prefixes! 15301 else 15302 # Not in mixed or Windows style, start by that. 15303 new_path=`cmd //c echo $new_path` 15304 15305 input_path="$new_path" 15306 # Check if we need to convert this using DOS-style short mode. If the path 15307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15308 # take no chances and rewrite it. 15309 # Note: m4 eats our [], so we need to use [ and ] instead. 15310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15311 if test "x$has_forbidden_chars" != x; then 15312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15313 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15314 fi 15315 15316 # Output is in $new_path 15317 15318 windows_path="$new_path" 15319 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15320 unix_path=`$CYGPATH -u "$windows_path"` 15321 new_path="$unix_path" 15322 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15323 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15324 new_path="$unix_path" 15325 fi 15326 15327 # remove trailing .exe if any 15328 new_path="${new_path/%.exe/}" 15329 15330 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15331 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15332 fi 15333 15334 else 15335 # We're on a posix platform. Hooray! :) 15336 # First separate the path from the arguments. This will split at the first 15337 # space. 15338 complete="$FOUND_MAKE" 15339 path="${complete%% *}" 15340 tmp="$complete EOL" 15341 arguments="${tmp#* }" 15342 15343 # Cannot rely on the command "which" here since it doesn't always work. 15344 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15345 if test -z "$is_absolute_path"; then 15346 # Path to executable is not absolute. Find it. 15347 IFS_save="$IFS" 15348 IFS=: 15349 for p in $PATH; do 15350 if test -f "$p/$path" && test -x "$p/$path"; then 15351 new_path="$p/$path" 15352 break 15353 fi 15354 done 15355 IFS="$IFS_save" 15356 else 15357 # This is an absolute path, we can use it without further modifications. 15358 new_path="$path" 15359 fi 15360 15361 if test "x$new_path" = x; then 15362 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15363 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15364 has_space=`$ECHO "$complete" | $GREP " "` 15365 if test "x$has_space" != x; then 15366 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15367 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15368 fi 15369 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15370 fi 15371 fi 15372 15373 # Now join together the path and the arguments once again 15374 if test "x$arguments" != xEOL; then 15375 new_complete="$new_path ${arguments% *}" 15376 else 15377 new_complete="$new_path" 15378 fi 15379 15380 if test "x$complete" != "x$new_complete"; then 15381 FOUND_MAKE="$new_complete" 15382 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15383 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15384 fi 15385 15386 fi 15387 fi 15388 fi 15389 fi 15390 15391 if test "x$FOUND_MAKE" = x; then 15392 as_fn_error $? "The specified make (by MAKE=$MAKE) is not GNU make 3.81 or newer." "$LINENO" 5 15393 fi 15394 else 15395 # Try our hardest to locate a correct version of GNU make 15396 for ac_prog in gmake 15397 do 15398 # Extract the first word of "$ac_prog", so it can be a program name with args. 15399 set dummy $ac_prog; ac_word=$2 15400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15401 $as_echo_n "checking for $ac_word... " >&6; } 15402 if ${ac_cv_path_CHECK_GMAKE+:} false; then : 15403 $as_echo_n "(cached) " >&6 15404 else 15405 case $CHECK_GMAKE in 15406 [\\/]* | ?:[\\/]*) 15407 ac_cv_path_CHECK_GMAKE="$CHECK_GMAKE" # Let the user override the test with a path. 15408 ;; 15409 *) 15410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15411 for as_dir in $PATH 15412 do 15413 IFS=$as_save_IFS 15414 test -z "$as_dir" && as_dir=. 15415 for ac_exec_ext in '' $ac_executable_extensions; do 15416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15417 ac_cv_path_CHECK_GMAKE="$as_dir/$ac_word$ac_exec_ext" 15418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15419 break 2 15420 fi 15421 done 15422 done 15423 IFS=$as_save_IFS 15424 15425 ;; 15426 esac 15427 fi 15428 CHECK_GMAKE=$ac_cv_path_CHECK_GMAKE 15429 if test -n "$CHECK_GMAKE"; then 15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_GMAKE" >&5 15431 $as_echo "$CHECK_GMAKE" >&6; } 15432 else 15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15434 $as_echo "no" >&6; } 15435 fi 15436 15437 15438 test -n "$CHECK_GMAKE" && break 15439 done 15440 15441 15442 MAKE_CANDIDATE=""$CHECK_GMAKE"" 15443 DESCRIPTION="gmake in PATH" 15444 if test "x$MAKE_CANDIDATE" != x; then 15445 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15446 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15447 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15448 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15449 if test "x$IS_GNU_MAKE" = x; then 15450 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15451 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15452 else 15453 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15454 if test "x$IS_MODERN_MAKE" = x; then 15455 { $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 15456 $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;} 15457 else 15458 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15459 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15460 MAKE_EXPECTED_ENV='cygwin' 15461 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15462 MAKE_EXPECTED_ENV='msys' 15463 else 15464 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15465 fi 15466 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15467 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15468 else 15469 # Not relevant for non-Windows 15470 IS_MAKE_CORRECT_ENV=true 15471 fi 15472 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15473 { $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 15474 $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;} 15475 else 15476 FOUND_MAKE=$MAKE_CANDIDATE 15477 15478 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15479 15480 # First separate the path from the arguments. This will split at the first 15481 # space. 15482 complete="$FOUND_MAKE" 15483 path="${complete%% *}" 15484 tmp="$complete EOL" 15485 arguments="${tmp#* }" 15486 15487 # Input might be given as Windows format, start by converting to 15488 # unix format. 15489 new_path=`$CYGPATH -u "$path"` 15490 15491 # Now try to locate executable using which 15492 new_path=`$WHICH "$new_path" 2> /dev/null` 15493 # bat and cmd files are not always considered executable in cygwin causing which 15494 # to not find them 15495 if test "x$new_path" = x \ 15496 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15497 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15498 new_path=`$CYGPATH -u "$path"` 15499 fi 15500 if test "x$new_path" = x; then 15501 # Oops. Which didn't find the executable. 15502 # The splitting of arguments from the executable at a space might have been incorrect, 15503 # since paths with space are more likely in Windows. Give it another try with the whole 15504 # argument. 15505 path="$complete" 15506 arguments="EOL" 15507 new_path=`$CYGPATH -u "$path"` 15508 new_path=`$WHICH "$new_path" 2> /dev/null` 15509 # bat and cmd files are not always considered executable in cygwin causing which 15510 # to not find them 15511 if test "x$new_path" = x \ 15512 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15513 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15514 new_path=`$CYGPATH -u "$path"` 15515 fi 15516 if test "x$new_path" = x; then 15517 # It's still not found. Now this is an unrecoverable error. 15518 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15519 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15520 has_space=`$ECHO "$complete" | $GREP " "` 15521 if test "x$has_space" != x; then 15522 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15523 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15524 fi 15525 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15526 fi 15527 fi 15528 15529 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15530 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15531 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15532 # "foo.exe" is OK but "foo" is an error. 15533 # 15534 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15535 # It is also a way to make sure we got the proper file name for the real test later on. 15536 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15537 if test "x$test_shortpath" = x; then 15538 # Short path failed, file does not exist as specified. 15539 # Try adding .exe or .cmd 15540 if test -f "${new_path}.exe"; then 15541 input_to_shortpath="${new_path}.exe" 15542 elif test -f "${new_path}.cmd"; then 15543 input_to_shortpath="${new_path}.cmd" 15544 else 15545 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15546 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15547 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15548 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15549 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15550 fi 15551 else 15552 input_to_shortpath="$new_path" 15553 fi 15554 15555 # Call helper function which possibly converts this using DOS-style short mode. 15556 # If so, the updated path is stored in $new_path. 15557 new_path="$input_to_shortpath" 15558 15559 input_path="$input_to_shortpath" 15560 # Check if we need to convert this using DOS-style short mode. If the path 15561 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15562 # take no chances and rewrite it. 15563 # Note: m4 eats our [], so we need to use [ and ] instead. 15564 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15565 if test "x$has_forbidden_chars" != x; then 15566 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15567 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15568 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15569 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15570 # Going to short mode and back again did indeed matter. Since short mode is 15571 # case insensitive, let's make it lowercase to improve readability. 15572 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15573 # Now convert it back to Unix-stile (cygpath) 15574 input_path=`$CYGPATH -u "$shortmode_path"` 15575 new_path="$input_path" 15576 fi 15577 fi 15578 15579 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15580 if test "x$test_cygdrive_prefix" = x; then 15581 # As a simple fix, exclude /usr/bin since it's not a real path. 15582 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15583 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15584 # a path prefixed by /cygdrive for fixpath to work. 15585 new_path="$CYGWIN_ROOT_PATH$input_path" 15586 fi 15587 fi 15588 15589 # remove trailing .exe if any 15590 new_path="${new_path/%.exe/}" 15591 15592 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15593 15594 # First separate the path from the arguments. This will split at the first 15595 # space. 15596 complete="$FOUND_MAKE" 15597 path="${complete%% *}" 15598 tmp="$complete EOL" 15599 arguments="${tmp#* }" 15600 15601 # Input might be given as Windows format, start by converting to 15602 # unix format. 15603 new_path="$path" 15604 15605 windows_path="$new_path" 15606 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15607 unix_path=`$CYGPATH -u "$windows_path"` 15608 new_path="$unix_path" 15609 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15610 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15611 new_path="$unix_path" 15612 fi 15613 15614 15615 # Now try to locate executable using which 15616 new_path=`$WHICH "$new_path" 2> /dev/null` 15617 15618 if test "x$new_path" = x; then 15619 # Oops. Which didn't find the executable. 15620 # The splitting of arguments from the executable at a space might have been incorrect, 15621 # since paths with space are more likely in Windows. Give it another try with the whole 15622 # argument. 15623 path="$complete" 15624 arguments="EOL" 15625 new_path="$path" 15626 15627 windows_path="$new_path" 15628 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15629 unix_path=`$CYGPATH -u "$windows_path"` 15630 new_path="$unix_path" 15631 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15632 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15633 new_path="$unix_path" 15634 fi 15635 15636 15637 new_path=`$WHICH "$new_path" 2> /dev/null` 15638 15639 if test "x$new_path" = x; then 15640 # It's still not found. Now this is an unrecoverable error. 15641 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15642 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15643 has_space=`$ECHO "$complete" | $GREP " "` 15644 if test "x$has_space" != x; then 15645 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15646 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15647 fi 15648 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15649 fi 15650 fi 15651 15652 # Now new_path has a complete unix path to the binary 15653 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 15654 # Keep paths in /bin as-is, but remove trailing .exe if any 15655 new_path="${new_path/%.exe/}" 15656 # Do not save /bin paths to all_fixpath_prefixes! 15657 else 15658 # Not in mixed or Windows style, start by that. 15659 new_path=`cmd //c echo $new_path` 15660 15661 input_path="$new_path" 15662 # Check if we need to convert this using DOS-style short mode. If the path 15663 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15664 # take no chances and rewrite it. 15665 # Note: m4 eats our [], so we need to use [ and ] instead. 15666 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 15667 if test "x$has_forbidden_chars" != x; then 15668 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15669 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15670 fi 15671 15672 # Output is in $new_path 15673 15674 windows_path="$new_path" 15675 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15676 unix_path=`$CYGPATH -u "$windows_path"` 15677 new_path="$unix_path" 15678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15679 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15680 new_path="$unix_path" 15681 fi 15682 15683 # remove trailing .exe if any 15684 new_path="${new_path/%.exe/}" 15685 15686 # Save the first 10 bytes of this path to the storage, so fixpath can work. 15687 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 15688 fi 15689 15690 else 15691 # We're on a posix platform. Hooray! :) 15692 # First separate the path from the arguments. This will split at the first 15693 # space. 15694 complete="$FOUND_MAKE" 15695 path="${complete%% *}" 15696 tmp="$complete EOL" 15697 arguments="${tmp#* }" 15698 15699 # Cannot rely on the command "which" here since it doesn't always work. 15700 is_absolute_path=`$ECHO "$path" | $GREP ^/` 15701 if test -z "$is_absolute_path"; then 15702 # Path to executable is not absolute. Find it. 15703 IFS_save="$IFS" 15704 IFS=: 15705 for p in $PATH; do 15706 if test -f "$p/$path" && test -x "$p/$path"; then 15707 new_path="$p/$path" 15708 break 15709 fi 15710 done 15711 IFS="$IFS_save" 15712 else 15713 # This is an absolute path, we can use it without further modifications. 15714 new_path="$path" 15715 fi 15716 15717 if test "x$new_path" = x; then 15718 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15719 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15720 has_space=`$ECHO "$complete" | $GREP " "` 15721 if test "x$has_space" != x; then 15722 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 15723 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 15724 fi 15725 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15726 fi 15727 fi 15728 15729 # Now join together the path and the arguments once again 15730 if test "x$arguments" != xEOL; then 15731 new_complete="$new_path ${arguments% *}" 15732 else 15733 new_complete="$new_path" 15734 fi 15735 15736 if test "x$complete" != "x$new_complete"; then 15737 FOUND_MAKE="$new_complete" 15738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 15739 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 15740 fi 15741 15742 fi 15743 fi 15744 fi 15745 fi 15746 15747 15748 if test "x$FOUND_MAKE" = x; then 15749 for ac_prog in make 15750 do 15751 # Extract the first word of "$ac_prog", so it can be a program name with args. 15752 set dummy $ac_prog; ac_word=$2 15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15754 $as_echo_n "checking for $ac_word... " >&6; } 15755 if ${ac_cv_path_CHECK_MAKE+:} false; then : 15756 $as_echo_n "(cached) " >&6 15757 else 15758 case $CHECK_MAKE in 15759 [\\/]* | ?:[\\/]*) 15760 ac_cv_path_CHECK_MAKE="$CHECK_MAKE" # Let the user override the test with a path. 15761 ;; 15762 *) 15763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15764 for as_dir in $PATH 15765 do 15766 IFS=$as_save_IFS 15767 test -z "$as_dir" && as_dir=. 15768 for ac_exec_ext in '' $ac_executable_extensions; do 15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15770 ac_cv_path_CHECK_MAKE="$as_dir/$ac_word$ac_exec_ext" 15771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15772 break 2 15773 fi 15774 done 15775 done 15776 IFS=$as_save_IFS 15777 15778 ;; 15779 esac 15780 fi 15781 CHECK_MAKE=$ac_cv_path_CHECK_MAKE 15782 if test -n "$CHECK_MAKE"; then 15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_MAKE" >&5 15784 $as_echo "$CHECK_MAKE" >&6; } 15785 else 15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15787 $as_echo "no" >&6; } 15788 fi 15789 15790 15791 test -n "$CHECK_MAKE" && break 15792 done 15793 15794 15795 MAKE_CANDIDATE=""$CHECK_MAKE"" 15796 DESCRIPTION="make in PATH" 15797 if test "x$MAKE_CANDIDATE" != x; then 15798 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 15799 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 15800 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 15801 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 15802 if test "x$IS_GNU_MAKE" = x; then 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 15804 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 15805 else 15806 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 15807 if test "x$IS_MODERN_MAKE" = x; then 15808 { $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 15809 $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;} 15810 else 15811 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 15812 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15813 MAKE_EXPECTED_ENV='cygwin' 15814 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15815 MAKE_EXPECTED_ENV='msys' 15816 else 15817 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 15818 fi 15819 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 15820 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 15821 else 15822 # Not relevant for non-Windows 15823 IS_MAKE_CORRECT_ENV=true 15824 fi 15825 if test "x$IS_MAKE_CORRECT_ENV" = x; then 15826 { $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 15827 $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;} 15828 else 15829 FOUND_MAKE=$MAKE_CANDIDATE 15830 15831 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15832 15833 # First separate the path from the arguments. This will split at the first 15834 # space. 15835 complete="$FOUND_MAKE" 15836 path="${complete%% *}" 15837 tmp="$complete EOL" 15838 arguments="${tmp#* }" 15839 15840 # Input might be given as Windows format, start by converting to 15841 # unix format. 15842 new_path=`$CYGPATH -u "$path"` 15843 15844 # Now try to locate executable using which 15845 new_path=`$WHICH "$new_path" 2> /dev/null` 15846 # bat and cmd files are not always considered executable in cygwin causing which 15847 # to not find them 15848 if test "x$new_path" = x \ 15849 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15850 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15851 new_path=`$CYGPATH -u "$path"` 15852 fi 15853 if test "x$new_path" = x; then 15854 # Oops. Which didn't find the executable. 15855 # The splitting of arguments from the executable at a space might have been incorrect, 15856 # since paths with space are more likely in Windows. Give it another try with the whole 15857 # argument. 15858 path="$complete" 15859 arguments="EOL" 15860 new_path=`$CYGPATH -u "$path"` 15861 new_path=`$WHICH "$new_path" 2> /dev/null` 15862 # bat and cmd files are not always considered executable in cygwin causing which 15863 # to not find them 15864 if test "x$new_path" = x \ 15865 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 15866 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 15867 new_path=`$CYGPATH -u "$path"` 15868 fi 15869 if test "x$new_path" = x; then 15870 # It's still not found. Now this is an unrecoverable error. 15871 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15872 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15873 has_space=`$ECHO "$complete" | $GREP " "` 15874 if test "x$has_space" != x; then 15875 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15876 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 15877 fi 15878 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15879 fi 15880 fi 15881 15882 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 15883 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 15884 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 15885 # "foo.exe" is OK but "foo" is an error. 15886 # 15887 # This test is therefore slightly more accurate than "test -f" to check for file presence. 15888 # It is also a way to make sure we got the proper file name for the real test later on. 15889 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 15890 if test "x$test_shortpath" = x; then 15891 # Short path failed, file does not exist as specified. 15892 # Try adding .exe or .cmd 15893 if test -f "${new_path}.exe"; then 15894 input_to_shortpath="${new_path}.exe" 15895 elif test -f "${new_path}.cmd"; then 15896 input_to_shortpath="${new_path}.cmd" 15897 else 15898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 15899 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 15900 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 15901 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 15902 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 15903 fi 15904 else 15905 input_to_shortpath="$new_path" 15906 fi 15907 15908 # Call helper function which possibly converts this using DOS-style short mode. 15909 # If so, the updated path is stored in $new_path. 15910 new_path="$input_to_shortpath" 15911 15912 input_path="$input_to_shortpath" 15913 # Check if we need to convert this using DOS-style short mode. If the path 15914 # contains just simple characters, use it. Otherwise (spaces, weird characters), 15915 # take no chances and rewrite it. 15916 # Note: m4 eats our [], so we need to use [ and ] instead. 15917 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 15918 if test "x$has_forbidden_chars" != x; then 15919 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 15920 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 15921 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 15922 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 15923 # Going to short mode and back again did indeed matter. Since short mode is 15924 # case insensitive, let's make it lowercase to improve readability. 15925 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 15926 # Now convert it back to Unix-stile (cygpath) 15927 input_path=`$CYGPATH -u "$shortmode_path"` 15928 new_path="$input_path" 15929 fi 15930 fi 15931 15932 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 15933 if test "x$test_cygdrive_prefix" = x; then 15934 # As a simple fix, exclude /usr/bin since it's not a real path. 15935 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 15936 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 15937 # a path prefixed by /cygdrive for fixpath to work. 15938 new_path="$CYGWIN_ROOT_PATH$input_path" 15939 fi 15940 fi 15941 15942 # remove trailing .exe if any 15943 new_path="${new_path/%.exe/}" 15944 15945 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15946 15947 # First separate the path from the arguments. This will split at the first 15948 # space. 15949 complete="$FOUND_MAKE" 15950 path="${complete%% *}" 15951 tmp="$complete EOL" 15952 arguments="${tmp#* }" 15953 15954 # Input might be given as Windows format, start by converting to 15955 # unix format. 15956 new_path="$path" 15957 15958 windows_path="$new_path" 15959 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15960 unix_path=`$CYGPATH -u "$windows_path"` 15961 new_path="$unix_path" 15962 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15963 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15964 new_path="$unix_path" 15965 fi 15966 15967 15968 # Now try to locate executable using which 15969 new_path=`$WHICH "$new_path" 2> /dev/null` 15970 15971 if test "x$new_path" = x; then 15972 # Oops. Which didn't find the executable. 15973 # The splitting of arguments from the executable at a space might have been incorrect, 15974 # since paths with space are more likely in Windows. Give it another try with the whole 15975 # argument. 15976 path="$complete" 15977 arguments="EOL" 15978 new_path="$path" 15979 15980 windows_path="$new_path" 15981 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 15982 unix_path=`$CYGPATH -u "$windows_path"` 15983 new_path="$unix_path" 15984 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 15985 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 15986 new_path="$unix_path" 15987 fi 15988 15989 15990 new_path=`$WHICH "$new_path" 2> /dev/null` 15991 15992 if test "x$new_path" = x; then 15993 # It's still not found. Now this is an unrecoverable error. 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 15995 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 15996 has_space=`$ECHO "$complete" | $GREP " "` 15997 if test "x$has_space" != x; then 15998 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 15999 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16000 fi 16001 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16002 fi 16003 fi 16004 16005 # Now new_path has a complete unix path to the binary 16006 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16007 # Keep paths in /bin as-is, but remove trailing .exe if any 16008 new_path="${new_path/%.exe/}" 16009 # Do not save /bin paths to all_fixpath_prefixes! 16010 else 16011 # Not in mixed or Windows style, start by that. 16012 new_path=`cmd //c echo $new_path` 16013 16014 input_path="$new_path" 16015 # Check if we need to convert this using DOS-style short mode. If the path 16016 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16017 # take no chances and rewrite it. 16018 # Note: m4 eats our [], so we need to use [ and ] instead. 16019 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16020 if test "x$has_forbidden_chars" != x; then 16021 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16022 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16023 fi 16024 16025 # Output is in $new_path 16026 16027 windows_path="$new_path" 16028 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16029 unix_path=`$CYGPATH -u "$windows_path"` 16030 new_path="$unix_path" 16031 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16032 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16033 new_path="$unix_path" 16034 fi 16035 16036 # remove trailing .exe if any 16037 new_path="${new_path/%.exe/}" 16038 16039 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16040 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16041 fi 16042 16043 else 16044 # We're on a posix platform. Hooray! :) 16045 # First separate the path from the arguments. This will split at the first 16046 # space. 16047 complete="$FOUND_MAKE" 16048 path="${complete%% *}" 16049 tmp="$complete EOL" 16050 arguments="${tmp#* }" 16051 16052 # Cannot rely on the command "which" here since it doesn't always work. 16053 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16054 if test -z "$is_absolute_path"; then 16055 # Path to executable is not absolute. Find it. 16056 IFS_save="$IFS" 16057 IFS=: 16058 for p in $PATH; do 16059 if test -f "$p/$path" && test -x "$p/$path"; then 16060 new_path="$p/$path" 16061 break 16062 fi 16063 done 16064 IFS="$IFS_save" 16065 else 16066 # This is an absolute path, we can use it without further modifications. 16067 new_path="$path" 16068 fi 16069 16070 if test "x$new_path" = x; then 16071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16072 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16073 has_space=`$ECHO "$complete" | $GREP " "` 16074 if test "x$has_space" != x; then 16075 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16076 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16077 fi 16078 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16079 fi 16080 fi 16081 16082 # Now join together the path and the arguments once again 16083 if test "x$arguments" != xEOL; then 16084 new_complete="$new_path ${arguments% *}" 16085 else 16086 new_complete="$new_path" 16087 fi 16088 16089 if test "x$complete" != "x$new_complete"; then 16090 FOUND_MAKE="$new_complete" 16091 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16092 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16093 fi 16094 16095 fi 16096 fi 16097 fi 16098 fi 16099 16100 fi 16101 16102 if test "x$FOUND_MAKE" = x; then 16103 if test "x$TOOLS_DIR" != x; then 16104 # We have a tools-dir, check that as well before giving up. 16105 OLD_PATH=$PATH 16106 PATH=$TOOLS_DIR:$PATH 16107 for ac_prog in gmake 16108 do 16109 # Extract the first word of "$ac_prog", so it can be a program name with args. 16110 set dummy $ac_prog; ac_word=$2 16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16112 $as_echo_n "checking for $ac_word... " >&6; } 16113 if ${ac_cv_path_CHECK_TOOLSDIR_GMAKE+:} false; then : 16114 $as_echo_n "(cached) " >&6 16115 else 16116 case $CHECK_TOOLSDIR_GMAKE in 16117 [\\/]* | ?:[\\/]*) 16118 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$CHECK_TOOLSDIR_GMAKE" # Let the user override the test with a path. 16119 ;; 16120 *) 16121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16122 for as_dir in $PATH 16123 do 16124 IFS=$as_save_IFS 16125 test -z "$as_dir" && as_dir=. 16126 for ac_exec_ext in '' $ac_executable_extensions; do 16127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16128 ac_cv_path_CHECK_TOOLSDIR_GMAKE="$as_dir/$ac_word$ac_exec_ext" 16129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16130 break 2 16131 fi 16132 done 16133 done 16134 IFS=$as_save_IFS 16135 16136 ;; 16137 esac 16138 fi 16139 CHECK_TOOLSDIR_GMAKE=$ac_cv_path_CHECK_TOOLSDIR_GMAKE 16140 if test -n "$CHECK_TOOLSDIR_GMAKE"; then 16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_GMAKE" >&5 16142 $as_echo "$CHECK_TOOLSDIR_GMAKE" >&6; } 16143 else 16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16145 $as_echo "no" >&6; } 16146 fi 16147 16148 16149 test -n "$CHECK_TOOLSDIR_GMAKE" && break 16150 done 16151 16152 16153 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_GMAKE"" 16154 DESCRIPTION="gmake in tools-dir" 16155 if test "x$MAKE_CANDIDATE" != x; then 16156 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16157 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16158 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16159 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16160 if test "x$IS_GNU_MAKE" = x; then 16161 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16162 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16163 else 16164 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16165 if test "x$IS_MODERN_MAKE" = x; then 16166 { $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 16167 $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;} 16168 else 16169 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16171 MAKE_EXPECTED_ENV='cygwin' 16172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16173 MAKE_EXPECTED_ENV='msys' 16174 else 16175 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16176 fi 16177 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16178 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16179 else 16180 # Not relevant for non-Windows 16181 IS_MAKE_CORRECT_ENV=true 16182 fi 16183 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16184 { $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 16185 $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;} 16186 else 16187 FOUND_MAKE=$MAKE_CANDIDATE 16188 16189 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16190 16191 # First separate the path from the arguments. This will split at the first 16192 # space. 16193 complete="$FOUND_MAKE" 16194 path="${complete%% *}" 16195 tmp="$complete EOL" 16196 arguments="${tmp#* }" 16197 16198 # Input might be given as Windows format, start by converting to 16199 # unix format. 16200 new_path=`$CYGPATH -u "$path"` 16201 16202 # Now try to locate executable using which 16203 new_path=`$WHICH "$new_path" 2> /dev/null` 16204 # bat and cmd files are not always considered executable in cygwin causing which 16205 # to not find them 16206 if test "x$new_path" = x \ 16207 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16208 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16209 new_path=`$CYGPATH -u "$path"` 16210 fi 16211 if test "x$new_path" = x; then 16212 # Oops. Which didn't find the executable. 16213 # The splitting of arguments from the executable at a space might have been incorrect, 16214 # since paths with space are more likely in Windows. Give it another try with the whole 16215 # argument. 16216 path="$complete" 16217 arguments="EOL" 16218 new_path=`$CYGPATH -u "$path"` 16219 new_path=`$WHICH "$new_path" 2> /dev/null` 16220 # bat and cmd files are not always considered executable in cygwin causing which 16221 # to not find them 16222 if test "x$new_path" = x \ 16223 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16224 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16225 new_path=`$CYGPATH -u "$path"` 16226 fi 16227 if test "x$new_path" = x; then 16228 # It's still not found. Now this is an unrecoverable error. 16229 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16230 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16231 has_space=`$ECHO "$complete" | $GREP " "` 16232 if test "x$has_space" != x; then 16233 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16234 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16235 fi 16236 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16237 fi 16238 fi 16239 16240 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16241 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16242 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16243 # "foo.exe" is OK but "foo" is an error. 16244 # 16245 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16246 # It is also a way to make sure we got the proper file name for the real test later on. 16247 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16248 if test "x$test_shortpath" = x; then 16249 # Short path failed, file does not exist as specified. 16250 # Try adding .exe or .cmd 16251 if test -f "${new_path}.exe"; then 16252 input_to_shortpath="${new_path}.exe" 16253 elif test -f "${new_path}.cmd"; then 16254 input_to_shortpath="${new_path}.cmd" 16255 else 16256 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16257 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16258 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16259 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16260 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16261 fi 16262 else 16263 input_to_shortpath="$new_path" 16264 fi 16265 16266 # Call helper function which possibly converts this using DOS-style short mode. 16267 # If so, the updated path is stored in $new_path. 16268 new_path="$input_to_shortpath" 16269 16270 input_path="$input_to_shortpath" 16271 # Check if we need to convert this using DOS-style short mode. If the path 16272 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16273 # take no chances and rewrite it. 16274 # Note: m4 eats our [], so we need to use [ and ] instead. 16275 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16276 if test "x$has_forbidden_chars" != x; then 16277 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16278 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16279 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16280 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16281 # Going to short mode and back again did indeed matter. Since short mode is 16282 # case insensitive, let's make it lowercase to improve readability. 16283 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16284 # Now convert it back to Unix-stile (cygpath) 16285 input_path=`$CYGPATH -u "$shortmode_path"` 16286 new_path="$input_path" 16287 fi 16288 fi 16289 16290 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16291 if test "x$test_cygdrive_prefix" = x; then 16292 # As a simple fix, exclude /usr/bin since it's not a real path. 16293 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16294 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16295 # a path prefixed by /cygdrive for fixpath to work. 16296 new_path="$CYGWIN_ROOT_PATH$input_path" 16297 fi 16298 fi 16299 16300 # remove trailing .exe if any 16301 new_path="${new_path/%.exe/}" 16302 16303 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16304 16305 # First separate the path from the arguments. This will split at the first 16306 # space. 16307 complete="$FOUND_MAKE" 16308 path="${complete%% *}" 16309 tmp="$complete EOL" 16310 arguments="${tmp#* }" 16311 16312 # Input might be given as Windows format, start by converting to 16313 # unix format. 16314 new_path="$path" 16315 16316 windows_path="$new_path" 16317 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16318 unix_path=`$CYGPATH -u "$windows_path"` 16319 new_path="$unix_path" 16320 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16321 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16322 new_path="$unix_path" 16323 fi 16324 16325 16326 # Now try to locate executable using which 16327 new_path=`$WHICH "$new_path" 2> /dev/null` 16328 16329 if test "x$new_path" = x; then 16330 # Oops. Which didn't find the executable. 16331 # The splitting of arguments from the executable at a space might have been incorrect, 16332 # since paths with space are more likely in Windows. Give it another try with the whole 16333 # argument. 16334 path="$complete" 16335 arguments="EOL" 16336 new_path="$path" 16337 16338 windows_path="$new_path" 16339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16340 unix_path=`$CYGPATH -u "$windows_path"` 16341 new_path="$unix_path" 16342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16344 new_path="$unix_path" 16345 fi 16346 16347 16348 new_path=`$WHICH "$new_path" 2> /dev/null` 16349 16350 if test "x$new_path" = x; then 16351 # It's still not found. Now this is an unrecoverable error. 16352 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16353 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16354 has_space=`$ECHO "$complete" | $GREP " "` 16355 if test "x$has_space" != x; then 16356 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16357 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16358 fi 16359 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16360 fi 16361 fi 16362 16363 # Now new_path has a complete unix path to the binary 16364 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16365 # Keep paths in /bin as-is, but remove trailing .exe if any 16366 new_path="${new_path/%.exe/}" 16367 # Do not save /bin paths to all_fixpath_prefixes! 16368 else 16369 # Not in mixed or Windows style, start by that. 16370 new_path=`cmd //c echo $new_path` 16371 16372 input_path="$new_path" 16373 # Check if we need to convert this using DOS-style short mode. If the path 16374 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16375 # take no chances and rewrite it. 16376 # Note: m4 eats our [], so we need to use [ and ] instead. 16377 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16378 if test "x$has_forbidden_chars" != x; then 16379 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16380 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16381 fi 16382 16383 # Output is in $new_path 16384 16385 windows_path="$new_path" 16386 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16387 unix_path=`$CYGPATH -u "$windows_path"` 16388 new_path="$unix_path" 16389 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16390 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16391 new_path="$unix_path" 16392 fi 16393 16394 # remove trailing .exe if any 16395 new_path="${new_path/%.exe/}" 16396 16397 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16398 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16399 fi 16400 16401 else 16402 # We're on a posix platform. Hooray! :) 16403 # First separate the path from the arguments. This will split at the first 16404 # space. 16405 complete="$FOUND_MAKE" 16406 path="${complete%% *}" 16407 tmp="$complete EOL" 16408 arguments="${tmp#* }" 16409 16410 # Cannot rely on the command "which" here since it doesn't always work. 16411 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16412 if test -z "$is_absolute_path"; then 16413 # Path to executable is not absolute. Find it. 16414 IFS_save="$IFS" 16415 IFS=: 16416 for p in $PATH; do 16417 if test -f "$p/$path" && test -x "$p/$path"; then 16418 new_path="$p/$path" 16419 break 16420 fi 16421 done 16422 IFS="$IFS_save" 16423 else 16424 # This is an absolute path, we can use it without further modifications. 16425 new_path="$path" 16426 fi 16427 16428 if test "x$new_path" = x; then 16429 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16430 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16431 has_space=`$ECHO "$complete" | $GREP " "` 16432 if test "x$has_space" != x; then 16433 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16434 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16435 fi 16436 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16437 fi 16438 fi 16439 16440 # Now join together the path and the arguments once again 16441 if test "x$arguments" != xEOL; then 16442 new_complete="$new_path ${arguments% *}" 16443 else 16444 new_complete="$new_path" 16445 fi 16446 16447 if test "x$complete" != "x$new_complete"; then 16448 FOUND_MAKE="$new_complete" 16449 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16450 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16451 fi 16452 16453 fi 16454 fi 16455 fi 16456 fi 16457 16458 if test "x$FOUND_MAKE" = x; then 16459 for ac_prog in make 16460 do 16461 # Extract the first word of "$ac_prog", so it can be a program name with args. 16462 set dummy $ac_prog; ac_word=$2 16463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16464 $as_echo_n "checking for $ac_word... " >&6; } 16465 if ${ac_cv_path_CHECK_TOOLSDIR_MAKE+:} false; then : 16466 $as_echo_n "(cached) " >&6 16467 else 16468 case $CHECK_TOOLSDIR_MAKE in 16469 [\\/]* | ?:[\\/]*) 16470 ac_cv_path_CHECK_TOOLSDIR_MAKE="$CHECK_TOOLSDIR_MAKE" # Let the user override the test with a path. 16471 ;; 16472 *) 16473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16474 for as_dir in $PATH 16475 do 16476 IFS=$as_save_IFS 16477 test -z "$as_dir" && as_dir=. 16478 for ac_exec_ext in '' $ac_executable_extensions; do 16479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16480 ac_cv_path_CHECK_TOOLSDIR_MAKE="$as_dir/$ac_word$ac_exec_ext" 16481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16482 break 2 16483 fi 16484 done 16485 done 16486 IFS=$as_save_IFS 16487 16488 ;; 16489 esac 16490 fi 16491 CHECK_TOOLSDIR_MAKE=$ac_cv_path_CHECK_TOOLSDIR_MAKE 16492 if test -n "$CHECK_TOOLSDIR_MAKE"; then 16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHECK_TOOLSDIR_MAKE" >&5 16494 $as_echo "$CHECK_TOOLSDIR_MAKE" >&6; } 16495 else 16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16497 $as_echo "no" >&6; } 16498 fi 16499 16500 16501 test -n "$CHECK_TOOLSDIR_MAKE" && break 16502 done 16503 16504 16505 MAKE_CANDIDATE=""$CHECK_TOOLSDIR_MAKE"" 16506 DESCRIPTION="make in tools-dir" 16507 if test "x$MAKE_CANDIDATE" != x; then 16508 { $as_echo "$as_me:${as_lineno-$LINENO}: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&5 16509 $as_echo "$as_me: Testing potential make at $MAKE_CANDIDATE, found using $DESCRIPTION" >&6;} 16510 MAKE_VERSION_STRING=`$MAKE_CANDIDATE --version | $HEAD -n 1` 16511 IS_GNU_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP 'GNU Make'` 16512 if test "x$IS_GNU_MAKE" = x; then 16513 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&5 16514 $as_echo "$as_me: Found potential make at $MAKE_CANDIDATE, however, this is not GNU Make. Ignoring." >&6;} 16515 else 16516 IS_MODERN_MAKE=`$ECHO $MAKE_VERSION_STRING | $GREP -e '3\.8[12]' -e '4\.'` 16517 if test "x$IS_MODERN_MAKE" = x; then 16518 { $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 16519 $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;} 16520 else 16521 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 16522 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16523 MAKE_EXPECTED_ENV='cygwin' 16524 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16525 MAKE_EXPECTED_ENV='msys' 16526 else 16527 as_fn_error $? "Unknown Windows environment" "$LINENO" 5 16528 fi 16529 MAKE_BUILT_FOR=`$MAKE_CANDIDATE --version | $GREP -i 'built for'` 16530 IS_MAKE_CORRECT_ENV=`$ECHO $MAKE_BUILT_FOR | $GREP $MAKE_EXPECTED_ENV` 16531 else 16532 # Not relevant for non-Windows 16533 IS_MAKE_CORRECT_ENV=true 16534 fi 16535 if test "x$IS_MAKE_CORRECT_ENV" = x; then 16536 { $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 16537 $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;} 16538 else 16539 FOUND_MAKE=$MAKE_CANDIDATE 16540 16541 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16542 16543 # First separate the path from the arguments. This will split at the first 16544 # space. 16545 complete="$FOUND_MAKE" 16546 path="${complete%% *}" 16547 tmp="$complete EOL" 16548 arguments="${tmp#* }" 16549 16550 # Input might be given as Windows format, start by converting to 16551 # unix format. 16552 new_path=`$CYGPATH -u "$path"` 16553 16554 # Now try to locate executable using which 16555 new_path=`$WHICH "$new_path" 2> /dev/null` 16556 # bat and cmd files are not always considered executable in cygwin causing which 16557 # to not find them 16558 if test "x$new_path" = x \ 16559 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16560 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16561 new_path=`$CYGPATH -u "$path"` 16562 fi 16563 if test "x$new_path" = x; then 16564 # Oops. Which didn't find the executable. 16565 # The splitting of arguments from the executable at a space might have been incorrect, 16566 # since paths with space are more likely in Windows. Give it another try with the whole 16567 # argument. 16568 path="$complete" 16569 arguments="EOL" 16570 new_path=`$CYGPATH -u "$path"` 16571 new_path=`$WHICH "$new_path" 2> /dev/null` 16572 # bat and cmd files are not always considered executable in cygwin causing which 16573 # to not find them 16574 if test "x$new_path" = x \ 16575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 16576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 16577 new_path=`$CYGPATH -u "$path"` 16578 fi 16579 if test "x$new_path" = x; then 16580 # It's still not found. Now this is an unrecoverable error. 16581 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16582 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16583 has_space=`$ECHO "$complete" | $GREP " "` 16584 if test "x$has_space" != x; then 16585 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16586 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16587 fi 16588 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16589 fi 16590 fi 16591 16592 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 16593 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 16594 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 16595 # "foo.exe" is OK but "foo" is an error. 16596 # 16597 # This test is therefore slightly more accurate than "test -f" to check for file presence. 16598 # It is also a way to make sure we got the proper file name for the real test later on. 16599 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 16600 if test "x$test_shortpath" = x; then 16601 # Short path failed, file does not exist as specified. 16602 # Try adding .exe or .cmd 16603 if test -f "${new_path}.exe"; then 16604 input_to_shortpath="${new_path}.exe" 16605 elif test -f "${new_path}.cmd"; then 16606 input_to_shortpath="${new_path}.cmd" 16607 else 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&5 16609 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$new_path\", is invalid." >&6;} 16610 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 16611 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 16612 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16613 fi 16614 else 16615 input_to_shortpath="$new_path" 16616 fi 16617 16618 # Call helper function which possibly converts this using DOS-style short mode. 16619 # If so, the updated path is stored in $new_path. 16620 new_path="$input_to_shortpath" 16621 16622 input_path="$input_to_shortpath" 16623 # Check if we need to convert this using DOS-style short mode. If the path 16624 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16625 # take no chances and rewrite it. 16626 # Note: m4 eats our [], so we need to use [ and ] instead. 16627 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 16628 if test "x$has_forbidden_chars" != x; then 16629 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16630 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 16631 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 16632 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 16633 # Going to short mode and back again did indeed matter. Since short mode is 16634 # case insensitive, let's make it lowercase to improve readability. 16635 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16636 # Now convert it back to Unix-stile (cygpath) 16637 input_path=`$CYGPATH -u "$shortmode_path"` 16638 new_path="$input_path" 16639 fi 16640 fi 16641 16642 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 16643 if test "x$test_cygdrive_prefix" = x; then 16644 # As a simple fix, exclude /usr/bin since it's not a real path. 16645 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 16646 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 16647 # a path prefixed by /cygdrive for fixpath to work. 16648 new_path="$CYGWIN_ROOT_PATH$input_path" 16649 fi 16650 fi 16651 16652 # remove trailing .exe if any 16653 new_path="${new_path/%.exe/}" 16654 16655 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16656 16657 # First separate the path from the arguments. This will split at the first 16658 # space. 16659 complete="$FOUND_MAKE" 16660 path="${complete%% *}" 16661 tmp="$complete EOL" 16662 arguments="${tmp#* }" 16663 16664 # Input might be given as Windows format, start by converting to 16665 # unix format. 16666 new_path="$path" 16667 16668 windows_path="$new_path" 16669 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16670 unix_path=`$CYGPATH -u "$windows_path"` 16671 new_path="$unix_path" 16672 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16673 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16674 new_path="$unix_path" 16675 fi 16676 16677 16678 # Now try to locate executable using which 16679 new_path=`$WHICH "$new_path" 2> /dev/null` 16680 16681 if test "x$new_path" = x; then 16682 # Oops. Which didn't find the executable. 16683 # The splitting of arguments from the executable at a space might have been incorrect, 16684 # since paths with space are more likely in Windows. Give it another try with the whole 16685 # argument. 16686 path="$complete" 16687 arguments="EOL" 16688 new_path="$path" 16689 16690 windows_path="$new_path" 16691 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16692 unix_path=`$CYGPATH -u "$windows_path"` 16693 new_path="$unix_path" 16694 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16695 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16696 new_path="$unix_path" 16697 fi 16698 16699 16700 new_path=`$WHICH "$new_path" 2> /dev/null` 16701 16702 if test "x$new_path" = x; then 16703 # It's still not found. Now this is an unrecoverable error. 16704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16705 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16706 has_space=`$ECHO "$complete" | $GREP " "` 16707 if test "x$has_space" != x; then 16708 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 16709 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 16710 fi 16711 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16712 fi 16713 fi 16714 16715 # Now new_path has a complete unix path to the binary 16716 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 16717 # Keep paths in /bin as-is, but remove trailing .exe if any 16718 new_path="${new_path/%.exe/}" 16719 # Do not save /bin paths to all_fixpath_prefixes! 16720 else 16721 # Not in mixed or Windows style, start by that. 16722 new_path=`cmd //c echo $new_path` 16723 16724 input_path="$new_path" 16725 # Check if we need to convert this using DOS-style short mode. If the path 16726 # contains just simple characters, use it. Otherwise (spaces, weird characters), 16727 # take no chances and rewrite it. 16728 # Note: m4 eats our [], so we need to use [ and ] instead. 16729 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 16730 if test "x$has_forbidden_chars" != x; then 16731 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 16732 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 16733 fi 16734 16735 # Output is in $new_path 16736 16737 windows_path="$new_path" 16738 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 16739 unix_path=`$CYGPATH -u "$windows_path"` 16740 new_path="$unix_path" 16741 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 16742 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 16743 new_path="$unix_path" 16744 fi 16745 16746 # remove trailing .exe if any 16747 new_path="${new_path/%.exe/}" 16748 16749 # Save the first 10 bytes of this path to the storage, so fixpath can work. 16750 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 16751 fi 16752 16753 else 16754 # We're on a posix platform. Hooray! :) 16755 # First separate the path from the arguments. This will split at the first 16756 # space. 16757 complete="$FOUND_MAKE" 16758 path="${complete%% *}" 16759 tmp="$complete EOL" 16760 arguments="${tmp#* }" 16761 16762 # Cannot rely on the command "which" here since it doesn't always work. 16763 is_absolute_path=`$ECHO "$path" | $GREP ^/` 16764 if test -z "$is_absolute_path"; then 16765 # Path to executable is not absolute. Find it. 16766 IFS_save="$IFS" 16767 IFS=: 16768 for p in $PATH; do 16769 if test -f "$p/$path" && test -x "$p/$path"; then 16770 new_path="$p/$path" 16771 break 16772 fi 16773 done 16774 IFS="$IFS_save" 16775 else 16776 # This is an absolute path, we can use it without further modifications. 16777 new_path="$path" 16778 fi 16779 16780 if test "x$new_path" = x; then 16781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&5 16782 $as_echo "$as_me: The path of FOUND_MAKE, which resolves as \"$complete\", is not found." >&6;} 16783 has_space=`$ECHO "$complete" | $GREP " "` 16784 if test "x$has_space" != x; then 16785 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 16786 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 16787 fi 16788 as_fn_error $? "Cannot locate the the path of FOUND_MAKE" "$LINENO" 5 16789 fi 16790 fi 16791 16792 # Now join together the path and the arguments once again 16793 if test "x$arguments" != xEOL; then 16794 new_complete="$new_path ${arguments% *}" 16795 else 16796 new_complete="$new_path" 16797 fi 16798 16799 if test "x$complete" != "x$new_complete"; then 16800 FOUND_MAKE="$new_complete" 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FOUND_MAKE to \"$new_complete\"" >&5 16802 $as_echo "$as_me: Rewriting FOUND_MAKE to \"$new_complete\"" >&6;} 16803 fi 16804 16805 fi 16806 fi 16807 fi 16808 fi 16809 16810 fi 16811 PATH=$OLD_PATH 16812 fi 16813 fi 16814 16815 if test "x$FOUND_MAKE" = x; then 16816 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 16817 fi 16818 fi 16819 16820 MAKE=$FOUND_MAKE 16821 16822 { $as_echo "$as_me:${as_lineno-$LINENO}: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&5 16823 $as_echo "$as_me: Using GNU make 3.81 (or later) at $FOUND_MAKE (version: $MAKE_VERSION_STRING)" >&6;} 16824 16825 16826 16827 # Test if find supports -delete 16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5 16829 $as_echo_n "checking if find supports -delete... " >&6; } 16830 FIND_DELETE="-delete" 16831 16832 DELETEDIR=`$MKTEMP -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?) 16833 16834 echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete 16835 16836 TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1` 16837 if test -f $DELETEDIR/TestIfFindSupportsDelete; then 16838 # No, it does not. 16839 rm $DELETEDIR/TestIfFindSupportsDelete 16840 FIND_DELETE="-exec rm \{\} \+" 16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16842 $as_echo "no" >&6; } 16843 else 16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 16845 $as_echo "yes" >&6; } 16846 fi 16847 rmdir $DELETEDIR 16848 16849 16850 16851 # These tools might not be installed by default, 16852 # need hint on how to install them. 16853 16854 16855 16856 # Publish this variable in the help. 16857 16858 16859 if test "x$UNZIP" = x; then 16860 # The variable is not set by user, try to locate tool using the code snippet 16861 for ac_prog in unzip 16862 do 16863 # Extract the first word of "$ac_prog", so it can be a program name with args. 16864 set dummy $ac_prog; ac_word=$2 16865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16866 $as_echo_n "checking for $ac_word... " >&6; } 16867 if ${ac_cv_path_UNZIP+:} false; then : 16868 $as_echo_n "(cached) " >&6 16869 else 16870 case $UNZIP in 16871 [\\/]* | ?:[\\/]*) 16872 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16873 ;; 16874 *) 16875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16876 for as_dir in $PATH 16877 do 16878 IFS=$as_save_IFS 16879 test -z "$as_dir" && as_dir=. 16880 for ac_exec_ext in '' $ac_executable_extensions; do 16881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16882 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16884 break 2 16885 fi 16886 done 16887 done 16888 IFS=$as_save_IFS 16889 16890 ;; 16891 esac 16892 fi 16893 UNZIP=$ac_cv_path_UNZIP 16894 if test -n "$UNZIP"; then 16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16896 $as_echo "$UNZIP" >&6; } 16897 else 16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16899 $as_echo "no" >&6; } 16900 fi 16901 16902 16903 test -n "$UNZIP" && break 16904 done 16905 16906 else 16907 # The variable is set, but is it from the command line or the environment? 16908 16909 # Try to remove the string !UNZIP! from our list. 16910 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!UNZIP!/} 16911 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 16912 # If it failed, the variable was not from the command line. Ignore it, 16913 # but warn the user (except for BASH, which is always set by the calling BASH). 16914 if test "xUNZIP" != xBASH; then 16915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&5 16916 $as_echo "$as_me: WARNING: Ignoring value of UNZIP from the environment. Use command line variables instead." >&2;} 16917 fi 16918 # Try to locate tool using the code snippet 16919 for ac_prog in unzip 16920 do 16921 # Extract the first word of "$ac_prog", so it can be a program name with args. 16922 set dummy $ac_prog; ac_word=$2 16923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16924 $as_echo_n "checking for $ac_word... " >&6; } 16925 if ${ac_cv_path_UNZIP+:} false; then : 16926 $as_echo_n "(cached) " >&6 16927 else 16928 case $UNZIP in 16929 [\\/]* | ?:[\\/]*) 16930 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16931 ;; 16932 *) 16933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16934 for as_dir in $PATH 16935 do 16936 IFS=$as_save_IFS 16937 test -z "$as_dir" && as_dir=. 16938 for ac_exec_ext in '' $ac_executable_extensions; do 16939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16940 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16942 break 2 16943 fi 16944 done 16945 done 16946 IFS=$as_save_IFS 16947 16948 ;; 16949 esac 16950 fi 16951 UNZIP=$ac_cv_path_UNZIP 16952 if test -n "$UNZIP"; then 16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 16954 $as_echo "$UNZIP" >&6; } 16955 else 16956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16957 $as_echo "no" >&6; } 16958 fi 16959 16960 16961 test -n "$UNZIP" && break 16962 done 16963 16964 else 16965 # If it succeeded, then it was overridden by the user. We will use it 16966 # for the tool. 16967 16968 # First remove it from the list of overridden variables, so we can test 16969 # for unknown variables in the end. 16970 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 16971 16972 # Check if the provided tool contains a complete path. 16973 tool_specified="$UNZIP" 16974 tool_basename="${tool_specified##*/}" 16975 if test "x$tool_basename" = "x$tool_specified"; then 16976 # A command without a complete path is provided, search $PATH. 16977 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool UNZIP=$tool_basename" >&5 16978 $as_echo "$as_me: Will search for user supplied tool UNZIP=$tool_basename" >&6;} 16979 # Extract the first word of "$tool_basename", so it can be a program name with args. 16980 set dummy $tool_basename; ac_word=$2 16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16982 $as_echo_n "checking for $ac_word... " >&6; } 16983 if ${ac_cv_path_UNZIP+:} false; then : 16984 $as_echo_n "(cached) " >&6 16985 else 16986 case $UNZIP in 16987 [\\/]* | ?:[\\/]*) 16988 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path. 16989 ;; 16990 *) 16991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16992 for as_dir in $PATH 16993 do 16994 IFS=$as_save_IFS 16995 test -z "$as_dir" && as_dir=. 16996 for ac_exec_ext in '' $ac_executable_extensions; do 16997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 16998 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext" 16999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17000 break 2 17001 fi 17002 done 17003 done 17004 IFS=$as_save_IFS 17005 17006 ;; 17007 esac 17008 fi 17009 UNZIP=$ac_cv_path_UNZIP 17010 if test -n "$UNZIP"; then 17011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5 17012 $as_echo "$UNZIP" >&6; } 17013 else 17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17015 $as_echo "no" >&6; } 17016 fi 17017 17018 17019 if test "x$UNZIP" = x; then 17020 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17021 fi 17022 else 17023 # Otherwise we believe it is a complete path. Use it as it is. 17024 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool UNZIP=$tool_specified" >&5 17025 $as_echo "$as_me: Will use user supplied tool UNZIP=$tool_specified" >&6;} 17026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNZIP" >&5 17027 $as_echo_n "checking for UNZIP... " >&6; } 17028 if test ! -x "$tool_specified"; then 17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17030 $as_echo "not found" >&6; } 17031 as_fn_error $? "User supplied tool UNZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17032 fi 17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17034 $as_echo "$tool_specified" >&6; } 17035 fi 17036 fi 17037 fi 17038 17039 17040 17041 if test "x$UNZIP" = x; then 17042 as_fn_error $? "Could not find required tool for UNZIP" "$LINENO" 5 17043 fi 17044 17045 17046 17047 17048 17049 # Publish this variable in the help. 17050 17051 17052 if test "x$ZIP" = x; then 17053 # The variable is not set by user, try to locate tool using the code snippet 17054 for ac_prog in zip 17055 do 17056 # Extract the first word of "$ac_prog", so it can be a program name with args. 17057 set dummy $ac_prog; ac_word=$2 17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17059 $as_echo_n "checking for $ac_word... " >&6; } 17060 if ${ac_cv_path_ZIP+:} false; then : 17061 $as_echo_n "(cached) " >&6 17062 else 17063 case $ZIP in 17064 [\\/]* | ?:[\\/]*) 17065 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17066 ;; 17067 *) 17068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17069 for as_dir in $PATH 17070 do 17071 IFS=$as_save_IFS 17072 test -z "$as_dir" && as_dir=. 17073 for ac_exec_ext in '' $ac_executable_extensions; do 17074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17075 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17077 break 2 17078 fi 17079 done 17080 done 17081 IFS=$as_save_IFS 17082 17083 ;; 17084 esac 17085 fi 17086 ZIP=$ac_cv_path_ZIP 17087 if test -n "$ZIP"; then 17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17089 $as_echo "$ZIP" >&6; } 17090 else 17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17092 $as_echo "no" >&6; } 17093 fi 17094 17095 17096 test -n "$ZIP" && break 17097 done 17098 17099 else 17100 # The variable is set, but is it from the command line or the environment? 17101 17102 # Try to remove the string !ZIP! from our list. 17103 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!ZIP!/} 17104 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17105 # If it failed, the variable was not from the command line. Ignore it, 17106 # but warn the user (except for BASH, which is always set by the calling BASH). 17107 if test "xZIP" != xBASH; then 17108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&5 17109 $as_echo "$as_me: WARNING: Ignoring value of ZIP from the environment. Use command line variables instead." >&2;} 17110 fi 17111 # Try to locate tool using the code snippet 17112 for ac_prog in zip 17113 do 17114 # Extract the first word of "$ac_prog", so it can be a program name with args. 17115 set dummy $ac_prog; ac_word=$2 17116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17117 $as_echo_n "checking for $ac_word... " >&6; } 17118 if ${ac_cv_path_ZIP+:} false; then : 17119 $as_echo_n "(cached) " >&6 17120 else 17121 case $ZIP in 17122 [\\/]* | ?:[\\/]*) 17123 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17124 ;; 17125 *) 17126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17127 for as_dir in $PATH 17128 do 17129 IFS=$as_save_IFS 17130 test -z "$as_dir" && as_dir=. 17131 for ac_exec_ext in '' $ac_executable_extensions; do 17132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17133 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17135 break 2 17136 fi 17137 done 17138 done 17139 IFS=$as_save_IFS 17140 17141 ;; 17142 esac 17143 fi 17144 ZIP=$ac_cv_path_ZIP 17145 if test -n "$ZIP"; then 17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17147 $as_echo "$ZIP" >&6; } 17148 else 17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17150 $as_echo "no" >&6; } 17151 fi 17152 17153 17154 test -n "$ZIP" && break 17155 done 17156 17157 else 17158 # If it succeeded, then it was overridden by the user. We will use it 17159 # for the tool. 17160 17161 # First remove it from the list of overridden variables, so we can test 17162 # for unknown variables in the end. 17163 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17164 17165 # Check if the provided tool contains a complete path. 17166 tool_specified="$ZIP" 17167 tool_basename="${tool_specified##*/}" 17168 if test "x$tool_basename" = "x$tool_specified"; then 17169 # A command without a complete path is provided, search $PATH. 17170 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool ZIP=$tool_basename" >&5 17171 $as_echo "$as_me: Will search for user supplied tool ZIP=$tool_basename" >&6;} 17172 # Extract the first word of "$tool_basename", so it can be a program name with args. 17173 set dummy $tool_basename; ac_word=$2 17174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17175 $as_echo_n "checking for $ac_word... " >&6; } 17176 if ${ac_cv_path_ZIP+:} false; then : 17177 $as_echo_n "(cached) " >&6 17178 else 17179 case $ZIP in 17180 [\\/]* | ?:[\\/]*) 17181 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path. 17182 ;; 17183 *) 17184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17185 for as_dir in $PATH 17186 do 17187 IFS=$as_save_IFS 17188 test -z "$as_dir" && as_dir=. 17189 for ac_exec_ext in '' $ac_executable_extensions; do 17190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17191 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext" 17192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17193 break 2 17194 fi 17195 done 17196 done 17197 IFS=$as_save_IFS 17198 17199 ;; 17200 esac 17201 fi 17202 ZIP=$ac_cv_path_ZIP 17203 if test -n "$ZIP"; then 17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5 17205 $as_echo "$ZIP" >&6; } 17206 else 17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17208 $as_echo "no" >&6; } 17209 fi 17210 17211 17212 if test "x$ZIP" = x; then 17213 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17214 fi 17215 else 17216 # Otherwise we believe it is a complete path. Use it as it is. 17217 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool ZIP=$tool_specified" >&5 17218 $as_echo "$as_me: Will use user supplied tool ZIP=$tool_specified" >&6;} 17219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZIP" >&5 17220 $as_echo_n "checking for ZIP... " >&6; } 17221 if test ! -x "$tool_specified"; then 17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17223 $as_echo "not found" >&6; } 17224 as_fn_error $? "User supplied tool ZIP=$tool_specified does not exist or is not executable" "$LINENO" 5 17225 fi 17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17227 $as_echo "$tool_specified" >&6; } 17228 fi 17229 fi 17230 fi 17231 17232 17233 17234 if test "x$ZIP" = x; then 17235 as_fn_error $? "Could not find required tool for ZIP" "$LINENO" 5 17236 fi 17237 17238 17239 17240 # Non-required basic tools 17241 17242 17243 17244 # Publish this variable in the help. 17245 17246 17247 if test "x$LDD" = x; then 17248 # The variable is not set by user, try to locate tool using the code snippet 17249 for ac_prog in ldd 17250 do 17251 # Extract the first word of "$ac_prog", so it can be a program name with args. 17252 set dummy $ac_prog; ac_word=$2 17253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17254 $as_echo_n "checking for $ac_word... " >&6; } 17255 if ${ac_cv_path_LDD+:} false; then : 17256 $as_echo_n "(cached) " >&6 17257 else 17258 case $LDD in 17259 [\\/]* | ?:[\\/]*) 17260 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17261 ;; 17262 *) 17263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17264 for as_dir in $PATH 17265 do 17266 IFS=$as_save_IFS 17267 test -z "$as_dir" && as_dir=. 17268 for ac_exec_ext in '' $ac_executable_extensions; do 17269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17270 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17272 break 2 17273 fi 17274 done 17275 done 17276 IFS=$as_save_IFS 17277 17278 ;; 17279 esac 17280 fi 17281 LDD=$ac_cv_path_LDD 17282 if test -n "$LDD"; then 17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17284 $as_echo "$LDD" >&6; } 17285 else 17286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17287 $as_echo "no" >&6; } 17288 fi 17289 17290 17291 test -n "$LDD" && break 17292 done 17293 17294 else 17295 # The variable is set, but is it from the command line or the environment? 17296 17297 # Try to remove the string !LDD! from our list. 17298 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LDD!/} 17299 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17300 # If it failed, the variable was not from the command line. Ignore it, 17301 # but warn the user (except for BASH, which is always set by the calling BASH). 17302 if test "xLDD" != xBASH; then 17303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&5 17304 $as_echo "$as_me: WARNING: Ignoring value of LDD from the environment. Use command line variables instead." >&2;} 17305 fi 17306 # Try to locate tool using the code snippet 17307 for ac_prog in ldd 17308 do 17309 # Extract the first word of "$ac_prog", so it can be a program name with args. 17310 set dummy $ac_prog; ac_word=$2 17311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17312 $as_echo_n "checking for $ac_word... " >&6; } 17313 if ${ac_cv_path_LDD+:} false; then : 17314 $as_echo_n "(cached) " >&6 17315 else 17316 case $LDD in 17317 [\\/]* | ?:[\\/]*) 17318 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17319 ;; 17320 *) 17321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17322 for as_dir in $PATH 17323 do 17324 IFS=$as_save_IFS 17325 test -z "$as_dir" && as_dir=. 17326 for ac_exec_ext in '' $ac_executable_extensions; do 17327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17328 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17329 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17330 break 2 17331 fi 17332 done 17333 done 17334 IFS=$as_save_IFS 17335 17336 ;; 17337 esac 17338 fi 17339 LDD=$ac_cv_path_LDD 17340 if test -n "$LDD"; then 17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17342 $as_echo "$LDD" >&6; } 17343 else 17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17345 $as_echo "no" >&6; } 17346 fi 17347 17348 17349 test -n "$LDD" && break 17350 done 17351 17352 else 17353 # If it succeeded, then it was overridden by the user. We will use it 17354 # for the tool. 17355 17356 # First remove it from the list of overridden variables, so we can test 17357 # for unknown variables in the end. 17358 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17359 17360 # Check if the provided tool contains a complete path. 17361 tool_specified="$LDD" 17362 tool_basename="${tool_specified##*/}" 17363 if test "x$tool_basename" = "x$tool_specified"; then 17364 # A command without a complete path is provided, search $PATH. 17365 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LDD=$tool_basename" >&5 17366 $as_echo "$as_me: Will search for user supplied tool LDD=$tool_basename" >&6;} 17367 # Extract the first word of "$tool_basename", so it can be a program name with args. 17368 set dummy $tool_basename; ac_word=$2 17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17370 $as_echo_n "checking for $ac_word... " >&6; } 17371 if ${ac_cv_path_LDD+:} false; then : 17372 $as_echo_n "(cached) " >&6 17373 else 17374 case $LDD in 17375 [\\/]* | ?:[\\/]*) 17376 ac_cv_path_LDD="$LDD" # Let the user override the test with a path. 17377 ;; 17378 *) 17379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17380 for as_dir in $PATH 17381 do 17382 IFS=$as_save_IFS 17383 test -z "$as_dir" && as_dir=. 17384 for ac_exec_ext in '' $ac_executable_extensions; do 17385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17386 ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext" 17387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17388 break 2 17389 fi 17390 done 17391 done 17392 IFS=$as_save_IFS 17393 17394 ;; 17395 esac 17396 fi 17397 LDD=$ac_cv_path_LDD 17398 if test -n "$LDD"; then 17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5 17400 $as_echo "$LDD" >&6; } 17401 else 17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17403 $as_echo "no" >&6; } 17404 fi 17405 17406 17407 if test "x$LDD" = x; then 17408 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17409 fi 17410 else 17411 # Otherwise we believe it is a complete path. Use it as it is. 17412 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LDD=$tool_specified" >&5 17413 $as_echo "$as_me: Will use user supplied tool LDD=$tool_specified" >&6;} 17414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDD" >&5 17415 $as_echo_n "checking for LDD... " >&6; } 17416 if test ! -x "$tool_specified"; then 17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17418 $as_echo "not found" >&6; } 17419 as_fn_error $? "User supplied tool LDD=$tool_specified does not exist or is not executable" "$LINENO" 5 17420 fi 17421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17422 $as_echo "$tool_specified" >&6; } 17423 fi 17424 fi 17425 fi 17426 17427 17428 if test "x$LDD" = "x"; then 17429 # List shared lib dependencies is used for 17430 # debug output and checking for forbidden dependencies. 17431 # We can build without it. 17432 LDD="true" 17433 fi 17434 17435 17436 # Publish this variable in the help. 17437 17438 17439 if test "x$READELF" = x; then 17440 # The variable is not set by user, try to locate tool using the code snippet 17441 for ac_prog in readelf greadelf 17442 do 17443 # Extract the first word of "$ac_prog", so it can be a program name with args. 17444 set dummy $ac_prog; ac_word=$2 17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17446 $as_echo_n "checking for $ac_word... " >&6; } 17447 if ${ac_cv_path_READELF+:} false; then : 17448 $as_echo_n "(cached) " >&6 17449 else 17450 case $READELF in 17451 [\\/]* | ?:[\\/]*) 17452 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17453 ;; 17454 *) 17455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17456 for as_dir in $PATH 17457 do 17458 IFS=$as_save_IFS 17459 test -z "$as_dir" && as_dir=. 17460 for ac_exec_ext in '' $ac_executable_extensions; do 17461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17462 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17464 break 2 17465 fi 17466 done 17467 done 17468 IFS=$as_save_IFS 17469 17470 ;; 17471 esac 17472 fi 17473 READELF=$ac_cv_path_READELF 17474 if test -n "$READELF"; then 17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17476 $as_echo "$READELF" >&6; } 17477 else 17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17479 $as_echo "no" >&6; } 17480 fi 17481 17482 17483 test -n "$READELF" && break 17484 done 17485 17486 else 17487 # The variable is set, but is it from the command line or the environment? 17488 17489 # Try to remove the string !READELF! from our list. 17490 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!READELF!/} 17491 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17492 # If it failed, the variable was not from the command line. Ignore it, 17493 # but warn the user (except for BASH, which is always set by the calling BASH). 17494 if test "xREADELF" != xBASH; then 17495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&5 17496 $as_echo "$as_me: WARNING: Ignoring value of READELF from the environment. Use command line variables instead." >&2;} 17497 fi 17498 # Try to locate tool using the code snippet 17499 for ac_prog in readelf greadelf 17500 do 17501 # Extract the first word of "$ac_prog", so it can be a program name with args. 17502 set dummy $ac_prog; ac_word=$2 17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17504 $as_echo_n "checking for $ac_word... " >&6; } 17505 if ${ac_cv_path_READELF+:} false; then : 17506 $as_echo_n "(cached) " >&6 17507 else 17508 case $READELF in 17509 [\\/]* | ?:[\\/]*) 17510 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17511 ;; 17512 *) 17513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17514 for as_dir in $PATH 17515 do 17516 IFS=$as_save_IFS 17517 test -z "$as_dir" && as_dir=. 17518 for ac_exec_ext in '' $ac_executable_extensions; do 17519 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17520 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17522 break 2 17523 fi 17524 done 17525 done 17526 IFS=$as_save_IFS 17527 17528 ;; 17529 esac 17530 fi 17531 READELF=$ac_cv_path_READELF 17532 if test -n "$READELF"; then 17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17534 $as_echo "$READELF" >&6; } 17535 else 17536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17537 $as_echo "no" >&6; } 17538 fi 17539 17540 17541 test -n "$READELF" && break 17542 done 17543 17544 else 17545 # If it succeeded, then it was overridden by the user. We will use it 17546 # for the tool. 17547 17548 # First remove it from the list of overridden variables, so we can test 17549 # for unknown variables in the end. 17550 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17551 17552 # Check if the provided tool contains a complete path. 17553 tool_specified="$READELF" 17554 tool_basename="${tool_specified##*/}" 17555 if test "x$tool_basename" = "x$tool_specified"; then 17556 # A command without a complete path is provided, search $PATH. 17557 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool READELF=$tool_basename" >&5 17558 $as_echo "$as_me: Will search for user supplied tool READELF=$tool_basename" >&6;} 17559 # Extract the first word of "$tool_basename", so it can be a program name with args. 17560 set dummy $tool_basename; ac_word=$2 17561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17562 $as_echo_n "checking for $ac_word... " >&6; } 17563 if ${ac_cv_path_READELF+:} false; then : 17564 $as_echo_n "(cached) " >&6 17565 else 17566 case $READELF in 17567 [\\/]* | ?:[\\/]*) 17568 ac_cv_path_READELF="$READELF" # Let the user override the test with a path. 17569 ;; 17570 *) 17571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17572 for as_dir in $PATH 17573 do 17574 IFS=$as_save_IFS 17575 test -z "$as_dir" && as_dir=. 17576 for ac_exec_ext in '' $ac_executable_extensions; do 17577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17578 ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext" 17579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17580 break 2 17581 fi 17582 done 17583 done 17584 IFS=$as_save_IFS 17585 17586 ;; 17587 esac 17588 fi 17589 READELF=$ac_cv_path_READELF 17590 if test -n "$READELF"; then 17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5 17592 $as_echo "$READELF" >&6; } 17593 else 17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17595 $as_echo "no" >&6; } 17596 fi 17597 17598 17599 if test "x$READELF" = x; then 17600 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17601 fi 17602 else 17603 # Otherwise we believe it is a complete path. Use it as it is. 17604 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool READELF=$tool_specified" >&5 17605 $as_echo "$as_me: Will use user supplied tool READELF=$tool_specified" >&6;} 17606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for READELF" >&5 17607 $as_echo_n "checking for READELF... " >&6; } 17608 if test ! -x "$tool_specified"; then 17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17610 $as_echo "not found" >&6; } 17611 as_fn_error $? "User supplied tool READELF=$tool_specified does not exist or is not executable" "$LINENO" 5 17612 fi 17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17614 $as_echo "$tool_specified" >&6; } 17615 fi 17616 fi 17617 fi 17618 17619 17620 17621 17622 # Publish this variable in the help. 17623 17624 17625 if test "x$HG" = x; then 17626 # The variable is not set by user, try to locate tool using the code snippet 17627 for ac_prog in hg 17628 do 17629 # Extract the first word of "$ac_prog", so it can be a program name with args. 17630 set dummy $ac_prog; ac_word=$2 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17632 $as_echo_n "checking for $ac_word... " >&6; } 17633 if ${ac_cv_path_HG+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635 else 17636 case $HG in 17637 [\\/]* | ?:[\\/]*) 17638 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17639 ;; 17640 *) 17641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17642 for as_dir in $PATH 17643 do 17644 IFS=$as_save_IFS 17645 test -z "$as_dir" && as_dir=. 17646 for ac_exec_ext in '' $ac_executable_extensions; do 17647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17648 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17650 break 2 17651 fi 17652 done 17653 done 17654 IFS=$as_save_IFS 17655 17656 ;; 17657 esac 17658 fi 17659 HG=$ac_cv_path_HG 17660 if test -n "$HG"; then 17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17662 $as_echo "$HG" >&6; } 17663 else 17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17665 $as_echo "no" >&6; } 17666 fi 17667 17668 17669 test -n "$HG" && break 17670 done 17671 17672 else 17673 # The variable is set, but is it from the command line or the environment? 17674 17675 # Try to remove the string !HG! from our list. 17676 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!HG!/} 17677 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17678 # If it failed, the variable was not from the command line. Ignore it, 17679 # but warn the user (except for BASH, which is always set by the calling BASH). 17680 if test "xHG" != xBASH; then 17681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&5 17682 $as_echo "$as_me: WARNING: Ignoring value of HG from the environment. Use command line variables instead." >&2;} 17683 fi 17684 # Try to locate tool using the code snippet 17685 for ac_prog in hg 17686 do 17687 # Extract the first word of "$ac_prog", so it can be a program name with args. 17688 set dummy $ac_prog; ac_word=$2 17689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17690 $as_echo_n "checking for $ac_word... " >&6; } 17691 if ${ac_cv_path_HG+:} false; then : 17692 $as_echo_n "(cached) " >&6 17693 else 17694 case $HG in 17695 [\\/]* | ?:[\\/]*) 17696 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17697 ;; 17698 *) 17699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17700 for as_dir in $PATH 17701 do 17702 IFS=$as_save_IFS 17703 test -z "$as_dir" && as_dir=. 17704 for ac_exec_ext in '' $ac_executable_extensions; do 17705 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17706 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17708 break 2 17709 fi 17710 done 17711 done 17712 IFS=$as_save_IFS 17713 17714 ;; 17715 esac 17716 fi 17717 HG=$ac_cv_path_HG 17718 if test -n "$HG"; then 17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17720 $as_echo "$HG" >&6; } 17721 else 17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17723 $as_echo "no" >&6; } 17724 fi 17725 17726 17727 test -n "$HG" && break 17728 done 17729 17730 else 17731 # If it succeeded, then it was overridden by the user. We will use it 17732 # for the tool. 17733 17734 # First remove it from the list of overridden variables, so we can test 17735 # for unknown variables in the end. 17736 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17737 17738 # Check if the provided tool contains a complete path. 17739 tool_specified="$HG" 17740 tool_basename="${tool_specified##*/}" 17741 if test "x$tool_basename" = "x$tool_specified"; then 17742 # A command without a complete path is provided, search $PATH. 17743 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool HG=$tool_basename" >&5 17744 $as_echo "$as_me: Will search for user supplied tool HG=$tool_basename" >&6;} 17745 # Extract the first word of "$tool_basename", so it can be a program name with args. 17746 set dummy $tool_basename; ac_word=$2 17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17748 $as_echo_n "checking for $ac_word... " >&6; } 17749 if ${ac_cv_path_HG+:} false; then : 17750 $as_echo_n "(cached) " >&6 17751 else 17752 case $HG in 17753 [\\/]* | ?:[\\/]*) 17754 ac_cv_path_HG="$HG" # Let the user override the test with a path. 17755 ;; 17756 *) 17757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17758 for as_dir in $PATH 17759 do 17760 IFS=$as_save_IFS 17761 test -z "$as_dir" && as_dir=. 17762 for ac_exec_ext in '' $ac_executable_extensions; do 17763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17764 ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext" 17765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17766 break 2 17767 fi 17768 done 17769 done 17770 IFS=$as_save_IFS 17771 17772 ;; 17773 esac 17774 fi 17775 HG=$ac_cv_path_HG 17776 if test -n "$HG"; then 17777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5 17778 $as_echo "$HG" >&6; } 17779 else 17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17781 $as_echo "no" >&6; } 17782 fi 17783 17784 17785 if test "x$HG" = x; then 17786 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17787 fi 17788 else 17789 # Otherwise we believe it is a complete path. Use it as it is. 17790 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool HG=$tool_specified" >&5 17791 $as_echo "$as_me: Will use user supplied tool HG=$tool_specified" >&6;} 17792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HG" >&5 17793 $as_echo_n "checking for HG... " >&6; } 17794 if test ! -x "$tool_specified"; then 17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17796 $as_echo "not found" >&6; } 17797 as_fn_error $? "User supplied tool HG=$tool_specified does not exist or is not executable" "$LINENO" 5 17798 fi 17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17800 $as_echo "$tool_specified" >&6; } 17801 fi 17802 fi 17803 fi 17804 17805 17806 17807 17808 # Publish this variable in the help. 17809 17810 17811 if test "x$STAT" = x; then 17812 # The variable is not set by user, try to locate tool using the code snippet 17813 for ac_prog in stat 17814 do 17815 # Extract the first word of "$ac_prog", so it can be a program name with args. 17816 set dummy $ac_prog; ac_word=$2 17817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17818 $as_echo_n "checking for $ac_word... " >&6; } 17819 if ${ac_cv_path_STAT+:} false; then : 17820 $as_echo_n "(cached) " >&6 17821 else 17822 case $STAT in 17823 [\\/]* | ?:[\\/]*) 17824 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17825 ;; 17826 *) 17827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17828 for as_dir in $PATH 17829 do 17830 IFS=$as_save_IFS 17831 test -z "$as_dir" && as_dir=. 17832 for ac_exec_ext in '' $ac_executable_extensions; do 17833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17834 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17836 break 2 17837 fi 17838 done 17839 done 17840 IFS=$as_save_IFS 17841 17842 ;; 17843 esac 17844 fi 17845 STAT=$ac_cv_path_STAT 17846 if test -n "$STAT"; then 17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17848 $as_echo "$STAT" >&6; } 17849 else 17850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17851 $as_echo "no" >&6; } 17852 fi 17853 17854 17855 test -n "$STAT" && break 17856 done 17857 17858 else 17859 # The variable is set, but is it from the command line or the environment? 17860 17861 # Try to remove the string !STAT! from our list. 17862 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STAT!/} 17863 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 17864 # If it failed, the variable was not from the command line. Ignore it, 17865 # but warn the user (except for BASH, which is always set by the calling BASH). 17866 if test "xSTAT" != xBASH; then 17867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&5 17868 $as_echo "$as_me: WARNING: Ignoring value of STAT from the environment. Use command line variables instead." >&2;} 17869 fi 17870 # Try to locate tool using the code snippet 17871 for ac_prog in stat 17872 do 17873 # Extract the first word of "$ac_prog", so it can be a program name with args. 17874 set dummy $ac_prog; ac_word=$2 17875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17876 $as_echo_n "checking for $ac_word... " >&6; } 17877 if ${ac_cv_path_STAT+:} false; then : 17878 $as_echo_n "(cached) " >&6 17879 else 17880 case $STAT in 17881 [\\/]* | ?:[\\/]*) 17882 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17883 ;; 17884 *) 17885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17886 for as_dir in $PATH 17887 do 17888 IFS=$as_save_IFS 17889 test -z "$as_dir" && as_dir=. 17890 for ac_exec_ext in '' $ac_executable_extensions; do 17891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17892 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17894 break 2 17895 fi 17896 done 17897 done 17898 IFS=$as_save_IFS 17899 17900 ;; 17901 esac 17902 fi 17903 STAT=$ac_cv_path_STAT 17904 if test -n "$STAT"; then 17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17906 $as_echo "$STAT" >&6; } 17907 else 17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17909 $as_echo "no" >&6; } 17910 fi 17911 17912 17913 test -n "$STAT" && break 17914 done 17915 17916 else 17917 # If it succeeded, then it was overridden by the user. We will use it 17918 # for the tool. 17919 17920 # First remove it from the list of overridden variables, so we can test 17921 # for unknown variables in the end. 17922 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 17923 17924 # Check if the provided tool contains a complete path. 17925 tool_specified="$STAT" 17926 tool_basename="${tool_specified##*/}" 17927 if test "x$tool_basename" = "x$tool_specified"; then 17928 # A command without a complete path is provided, search $PATH. 17929 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STAT=$tool_basename" >&5 17930 $as_echo "$as_me: Will search for user supplied tool STAT=$tool_basename" >&6;} 17931 # Extract the first word of "$tool_basename", so it can be a program name with args. 17932 set dummy $tool_basename; ac_word=$2 17933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17934 $as_echo_n "checking for $ac_word... " >&6; } 17935 if ${ac_cv_path_STAT+:} false; then : 17936 $as_echo_n "(cached) " >&6 17937 else 17938 case $STAT in 17939 [\\/]* | ?:[\\/]*) 17940 ac_cv_path_STAT="$STAT" # Let the user override the test with a path. 17941 ;; 17942 *) 17943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17944 for as_dir in $PATH 17945 do 17946 IFS=$as_save_IFS 17947 test -z "$as_dir" && as_dir=. 17948 for ac_exec_ext in '' $ac_executable_extensions; do 17949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17950 ac_cv_path_STAT="$as_dir/$ac_word$ac_exec_ext" 17951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17952 break 2 17953 fi 17954 done 17955 done 17956 IFS=$as_save_IFS 17957 17958 ;; 17959 esac 17960 fi 17961 STAT=$ac_cv_path_STAT 17962 if test -n "$STAT"; then 17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STAT" >&5 17964 $as_echo "$STAT" >&6; } 17965 else 17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17967 $as_echo "no" >&6; } 17968 fi 17969 17970 17971 if test "x$STAT" = x; then 17972 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 17973 fi 17974 else 17975 # Otherwise we believe it is a complete path. Use it as it is. 17976 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STAT=$tool_specified" >&5 17977 $as_echo "$as_me: Will use user supplied tool STAT=$tool_specified" >&6;} 17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STAT" >&5 17979 $as_echo_n "checking for STAT... " >&6; } 17980 if test ! -x "$tool_specified"; then 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 17982 $as_echo "not found" >&6; } 17983 as_fn_error $? "User supplied tool STAT=$tool_specified does not exist or is not executable" "$LINENO" 5 17984 fi 17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 17986 $as_echo "$tool_specified" >&6; } 17987 fi 17988 fi 17989 fi 17990 17991 17992 17993 17994 # Publish this variable in the help. 17995 17996 17997 if test "x$TIME" = x; then 17998 # The variable is not set by user, try to locate tool using the code snippet 17999 for ac_prog in time 18000 do 18001 # Extract the first word of "$ac_prog", so it can be a program name with args. 18002 set dummy $ac_prog; ac_word=$2 18003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18004 $as_echo_n "checking for $ac_word... " >&6; } 18005 if ${ac_cv_path_TIME+:} false; then : 18006 $as_echo_n "(cached) " >&6 18007 else 18008 case $TIME in 18009 [\\/]* | ?:[\\/]*) 18010 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18011 ;; 18012 *) 18013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18014 for as_dir in $PATH 18015 do 18016 IFS=$as_save_IFS 18017 test -z "$as_dir" && as_dir=. 18018 for ac_exec_ext in '' $ac_executable_extensions; do 18019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18020 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18022 break 2 18023 fi 18024 done 18025 done 18026 IFS=$as_save_IFS 18027 18028 ;; 18029 esac 18030 fi 18031 TIME=$ac_cv_path_TIME 18032 if test -n "$TIME"; then 18033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18034 $as_echo "$TIME" >&6; } 18035 else 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18037 $as_echo "no" >&6; } 18038 fi 18039 18040 18041 test -n "$TIME" && break 18042 done 18043 18044 else 18045 # The variable is set, but is it from the command line or the environment? 18046 18047 # Try to remove the string !TIME! from our list. 18048 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!TIME!/} 18049 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18050 # If it failed, the variable was not from the command line. Ignore it, 18051 # but warn the user (except for BASH, which is always set by the calling BASH). 18052 if test "xTIME" != xBASH; then 18053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&5 18054 $as_echo "$as_me: WARNING: Ignoring value of TIME from the environment. Use command line variables instead." >&2;} 18055 fi 18056 # Try to locate tool using the code snippet 18057 for ac_prog in time 18058 do 18059 # Extract the first word of "$ac_prog", so it can be a program name with args. 18060 set dummy $ac_prog; ac_word=$2 18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18062 $as_echo_n "checking for $ac_word... " >&6; } 18063 if ${ac_cv_path_TIME+:} false; then : 18064 $as_echo_n "(cached) " >&6 18065 else 18066 case $TIME in 18067 [\\/]* | ?:[\\/]*) 18068 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18069 ;; 18070 *) 18071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18072 for as_dir in $PATH 18073 do 18074 IFS=$as_save_IFS 18075 test -z "$as_dir" && as_dir=. 18076 for ac_exec_ext in '' $ac_executable_extensions; do 18077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18078 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18080 break 2 18081 fi 18082 done 18083 done 18084 IFS=$as_save_IFS 18085 18086 ;; 18087 esac 18088 fi 18089 TIME=$ac_cv_path_TIME 18090 if test -n "$TIME"; then 18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18092 $as_echo "$TIME" >&6; } 18093 else 18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18095 $as_echo "no" >&6; } 18096 fi 18097 18098 18099 test -n "$TIME" && break 18100 done 18101 18102 else 18103 # If it succeeded, then it was overridden by the user. We will use it 18104 # for the tool. 18105 18106 # First remove it from the list of overridden variables, so we can test 18107 # for unknown variables in the end. 18108 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18109 18110 # Check if the provided tool contains a complete path. 18111 tool_specified="$TIME" 18112 tool_basename="${tool_specified##*/}" 18113 if test "x$tool_basename" = "x$tool_specified"; then 18114 # A command without a complete path is provided, search $PATH. 18115 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool TIME=$tool_basename" >&5 18116 $as_echo "$as_me: Will search for user supplied tool TIME=$tool_basename" >&6;} 18117 # Extract the first word of "$tool_basename", so it can be a program name with args. 18118 set dummy $tool_basename; ac_word=$2 18119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18120 $as_echo_n "checking for $ac_word... " >&6; } 18121 if ${ac_cv_path_TIME+:} false; then : 18122 $as_echo_n "(cached) " >&6 18123 else 18124 case $TIME in 18125 [\\/]* | ?:[\\/]*) 18126 ac_cv_path_TIME="$TIME" # Let the user override the test with a path. 18127 ;; 18128 *) 18129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18130 for as_dir in $PATH 18131 do 18132 IFS=$as_save_IFS 18133 test -z "$as_dir" && as_dir=. 18134 for ac_exec_ext in '' $ac_executable_extensions; do 18135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18136 ac_cv_path_TIME="$as_dir/$ac_word$ac_exec_ext" 18137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18138 break 2 18139 fi 18140 done 18141 done 18142 IFS=$as_save_IFS 18143 18144 ;; 18145 esac 18146 fi 18147 TIME=$ac_cv_path_TIME 18148 if test -n "$TIME"; then 18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIME" >&5 18150 $as_echo "$TIME" >&6; } 18151 else 18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18153 $as_echo "no" >&6; } 18154 fi 18155 18156 18157 if test "x$TIME" = x; then 18158 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18159 fi 18160 else 18161 # Otherwise we believe it is a complete path. Use it as it is. 18162 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool TIME=$tool_specified" >&5 18163 $as_echo "$as_me: Will use user supplied tool TIME=$tool_specified" >&6;} 18164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIME" >&5 18165 $as_echo_n "checking for TIME... " >&6; } 18166 if test ! -x "$tool_specified"; then 18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18168 $as_echo "not found" >&6; } 18169 as_fn_error $? "User supplied tool TIME=$tool_specified does not exist or is not executable" "$LINENO" 5 18170 fi 18171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18172 $as_echo "$tool_specified" >&6; } 18173 fi 18174 fi 18175 fi 18176 18177 18178 # Check if it's GNU time 18179 IS_GNU_TIME=`$TIME --version 2>&1 | $GREP 'GNU time'` 18180 if test "x$IS_GNU_TIME" != x; then 18181 IS_GNU_TIME=yes 18182 else 18183 IS_GNU_TIME=no 18184 fi 18185 18186 18187 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 18188 18189 18190 18191 # Publish this variable in the help. 18192 18193 18194 if test "x$COMM" = x; then 18195 # The variable is not set by user, try to locate tool using the code snippet 18196 for ac_prog in comm 18197 do 18198 # Extract the first word of "$ac_prog", so it can be a program name with args. 18199 set dummy $ac_prog; ac_word=$2 18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18201 $as_echo_n "checking for $ac_word... " >&6; } 18202 if ${ac_cv_path_COMM+:} false; then : 18203 $as_echo_n "(cached) " >&6 18204 else 18205 case $COMM in 18206 [\\/]* | ?:[\\/]*) 18207 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18208 ;; 18209 *) 18210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18211 for as_dir in $PATH 18212 do 18213 IFS=$as_save_IFS 18214 test -z "$as_dir" && as_dir=. 18215 for ac_exec_ext in '' $ac_executable_extensions; do 18216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18217 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18219 break 2 18220 fi 18221 done 18222 done 18223 IFS=$as_save_IFS 18224 18225 ;; 18226 esac 18227 fi 18228 COMM=$ac_cv_path_COMM 18229 if test -n "$COMM"; then 18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18231 $as_echo "$COMM" >&6; } 18232 else 18233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18234 $as_echo "no" >&6; } 18235 fi 18236 18237 18238 test -n "$COMM" && break 18239 done 18240 18241 else 18242 # The variable is set, but is it from the command line or the environment? 18243 18244 # Try to remove the string !COMM! from our list. 18245 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!COMM!/} 18246 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18247 # If it failed, the variable was not from the command line. Ignore it, 18248 # but warn the user (except for BASH, which is always set by the calling BASH). 18249 if test "xCOMM" != xBASH; then 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&5 18251 $as_echo "$as_me: WARNING: Ignoring value of COMM from the environment. Use command line variables instead." >&2;} 18252 fi 18253 # Try to locate tool using the code snippet 18254 for ac_prog in comm 18255 do 18256 # Extract the first word of "$ac_prog", so it can be a program name with args. 18257 set dummy $ac_prog; ac_word=$2 18258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18259 $as_echo_n "checking for $ac_word... " >&6; } 18260 if ${ac_cv_path_COMM+:} false; then : 18261 $as_echo_n "(cached) " >&6 18262 else 18263 case $COMM in 18264 [\\/]* | ?:[\\/]*) 18265 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18266 ;; 18267 *) 18268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18269 for as_dir in $PATH 18270 do 18271 IFS=$as_save_IFS 18272 test -z "$as_dir" && as_dir=. 18273 for ac_exec_ext in '' $ac_executable_extensions; do 18274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18275 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18277 break 2 18278 fi 18279 done 18280 done 18281 IFS=$as_save_IFS 18282 18283 ;; 18284 esac 18285 fi 18286 COMM=$ac_cv_path_COMM 18287 if test -n "$COMM"; then 18288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18289 $as_echo "$COMM" >&6; } 18290 else 18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18292 $as_echo "no" >&6; } 18293 fi 18294 18295 18296 test -n "$COMM" && break 18297 done 18298 18299 else 18300 # If it succeeded, then it was overridden by the user. We will use it 18301 # for the tool. 18302 18303 # First remove it from the list of overridden variables, so we can test 18304 # for unknown variables in the end. 18305 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18306 18307 # Check if the provided tool contains a complete path. 18308 tool_specified="$COMM" 18309 tool_basename="${tool_specified##*/}" 18310 if test "x$tool_basename" = "x$tool_specified"; then 18311 # A command without a complete path is provided, search $PATH. 18312 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool COMM=$tool_basename" >&5 18313 $as_echo "$as_me: Will search for user supplied tool COMM=$tool_basename" >&6;} 18314 # Extract the first word of "$tool_basename", so it can be a program name with args. 18315 set dummy $tool_basename; ac_word=$2 18316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18317 $as_echo_n "checking for $ac_word... " >&6; } 18318 if ${ac_cv_path_COMM+:} false; then : 18319 $as_echo_n "(cached) " >&6 18320 else 18321 case $COMM in 18322 [\\/]* | ?:[\\/]*) 18323 ac_cv_path_COMM="$COMM" # Let the user override the test with a path. 18324 ;; 18325 *) 18326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18327 for as_dir in $PATH 18328 do 18329 IFS=$as_save_IFS 18330 test -z "$as_dir" && as_dir=. 18331 for ac_exec_ext in '' $ac_executable_extensions; do 18332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18333 ac_cv_path_COMM="$as_dir/$ac_word$ac_exec_ext" 18334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18335 break 2 18336 fi 18337 done 18338 done 18339 IFS=$as_save_IFS 18340 18341 ;; 18342 esac 18343 fi 18344 COMM=$ac_cv_path_COMM 18345 if test -n "$COMM"; then 18346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMM" >&5 18347 $as_echo "$COMM" >&6; } 18348 else 18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18350 $as_echo "no" >&6; } 18351 fi 18352 18353 18354 if test "x$COMM" = x; then 18355 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18356 fi 18357 else 18358 # Otherwise we believe it is a complete path. Use it as it is. 18359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool COMM=$tool_specified" >&5 18360 $as_echo "$as_me: Will use user supplied tool COMM=$tool_specified" >&6;} 18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for COMM" >&5 18362 $as_echo_n "checking for COMM... " >&6; } 18363 if test ! -x "$tool_specified"; then 18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18365 $as_echo "not found" >&6; } 18366 as_fn_error $? "User supplied tool COMM=$tool_specified does not exist or is not executable" "$LINENO" 5 18367 fi 18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18369 $as_echo "$tool_specified" >&6; } 18370 fi 18371 fi 18372 fi 18373 18374 18375 18376 if test "x$COMM" = x; then 18377 as_fn_error $? "Could not find required tool for COMM" "$LINENO" 5 18378 fi 18379 18380 18381 fi 18382 18383 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 18384 18385 18386 18387 # Publish this variable in the help. 18388 18389 18390 if test "x$DSYMUTIL" = x; then 18391 # The variable is not set by user, try to locate tool using the code snippet 18392 for ac_prog in dsymutil 18393 do 18394 # Extract the first word of "$ac_prog", so it can be a program name with args. 18395 set dummy $ac_prog; ac_word=$2 18396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18397 $as_echo_n "checking for $ac_word... " >&6; } 18398 if ${ac_cv_path_DSYMUTIL+:} false; then : 18399 $as_echo_n "(cached) " >&6 18400 else 18401 case $DSYMUTIL in 18402 [\\/]* | ?:[\\/]*) 18403 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18404 ;; 18405 *) 18406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18407 for as_dir in $PATH 18408 do 18409 IFS=$as_save_IFS 18410 test -z "$as_dir" && as_dir=. 18411 for ac_exec_ext in '' $ac_executable_extensions; do 18412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18413 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18415 break 2 18416 fi 18417 done 18418 done 18419 IFS=$as_save_IFS 18420 18421 ;; 18422 esac 18423 fi 18424 DSYMUTIL=$ac_cv_path_DSYMUTIL 18425 if test -n "$DSYMUTIL"; then 18426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18427 $as_echo "$DSYMUTIL" >&6; } 18428 else 18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18430 $as_echo "no" >&6; } 18431 fi 18432 18433 18434 test -n "$DSYMUTIL" && break 18435 done 18436 18437 else 18438 # The variable is set, but is it from the command line or the environment? 18439 18440 # Try to remove the string !DSYMUTIL! from our list. 18441 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!DSYMUTIL!/} 18442 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18443 # If it failed, the variable was not from the command line. Ignore it, 18444 # but warn the user (except for BASH, which is always set by the calling BASH). 18445 if test "xDSYMUTIL" != xBASH; then 18446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&5 18447 $as_echo "$as_me: WARNING: Ignoring value of DSYMUTIL from the environment. Use command line variables instead." >&2;} 18448 fi 18449 # Try to locate tool using the code snippet 18450 for ac_prog in dsymutil 18451 do 18452 # Extract the first word of "$ac_prog", so it can be a program name with args. 18453 set dummy $ac_prog; ac_word=$2 18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18455 $as_echo_n "checking for $ac_word... " >&6; } 18456 if ${ac_cv_path_DSYMUTIL+:} false; then : 18457 $as_echo_n "(cached) " >&6 18458 else 18459 case $DSYMUTIL in 18460 [\\/]* | ?:[\\/]*) 18461 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18462 ;; 18463 *) 18464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18465 for as_dir in $PATH 18466 do 18467 IFS=$as_save_IFS 18468 test -z "$as_dir" && as_dir=. 18469 for ac_exec_ext in '' $ac_executable_extensions; do 18470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18471 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18473 break 2 18474 fi 18475 done 18476 done 18477 IFS=$as_save_IFS 18478 18479 ;; 18480 esac 18481 fi 18482 DSYMUTIL=$ac_cv_path_DSYMUTIL 18483 if test -n "$DSYMUTIL"; then 18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18485 $as_echo "$DSYMUTIL" >&6; } 18486 else 18487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18488 $as_echo "no" >&6; } 18489 fi 18490 18491 18492 test -n "$DSYMUTIL" && break 18493 done 18494 18495 else 18496 # If it succeeded, then it was overridden by the user. We will use it 18497 # for the tool. 18498 18499 # First remove it from the list of overridden variables, so we can test 18500 # for unknown variables in the end. 18501 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18502 18503 # Check if the provided tool contains a complete path. 18504 tool_specified="$DSYMUTIL" 18505 tool_basename="${tool_specified##*/}" 18506 if test "x$tool_basename" = "x$tool_specified"; then 18507 # A command without a complete path is provided, search $PATH. 18508 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool DSYMUTIL=$tool_basename" >&5 18509 $as_echo "$as_me: Will search for user supplied tool DSYMUTIL=$tool_basename" >&6;} 18510 # Extract the first word of "$tool_basename", so it can be a program name with args. 18511 set dummy $tool_basename; ac_word=$2 18512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18513 $as_echo_n "checking for $ac_word... " >&6; } 18514 if ${ac_cv_path_DSYMUTIL+:} false; then : 18515 $as_echo_n "(cached) " >&6 18516 else 18517 case $DSYMUTIL in 18518 [\\/]* | ?:[\\/]*) 18519 ac_cv_path_DSYMUTIL="$DSYMUTIL" # Let the user override the test with a path. 18520 ;; 18521 *) 18522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18523 for as_dir in $PATH 18524 do 18525 IFS=$as_save_IFS 18526 test -z "$as_dir" && as_dir=. 18527 for ac_exec_ext in '' $ac_executable_extensions; do 18528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18529 ac_cv_path_DSYMUTIL="$as_dir/$ac_word$ac_exec_ext" 18530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18531 break 2 18532 fi 18533 done 18534 done 18535 IFS=$as_save_IFS 18536 18537 ;; 18538 esac 18539 fi 18540 DSYMUTIL=$ac_cv_path_DSYMUTIL 18541 if test -n "$DSYMUTIL"; then 18542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 18543 $as_echo "$DSYMUTIL" >&6; } 18544 else 18545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18546 $as_echo "no" >&6; } 18547 fi 18548 18549 18550 if test "x$DSYMUTIL" = x; then 18551 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18552 fi 18553 else 18554 # Otherwise we believe it is a complete path. Use it as it is. 18555 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool DSYMUTIL=$tool_specified" >&5 18556 $as_echo "$as_me: Will use user supplied tool DSYMUTIL=$tool_specified" >&6;} 18557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DSYMUTIL" >&5 18558 $as_echo_n "checking for DSYMUTIL... " >&6; } 18559 if test ! -x "$tool_specified"; then 18560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18561 $as_echo "not found" >&6; } 18562 as_fn_error $? "User supplied tool DSYMUTIL=$tool_specified does not exist or is not executable" "$LINENO" 5 18563 fi 18564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18565 $as_echo "$tool_specified" >&6; } 18566 fi 18567 fi 18568 fi 18569 18570 18571 18572 if test "x$DSYMUTIL" = x; then 18573 as_fn_error $? "Could not find required tool for DSYMUTIL" "$LINENO" 5 18574 fi 18575 18576 18577 18578 18579 18580 # Publish this variable in the help. 18581 18582 18583 if test "x$XATTR" = x; then 18584 # The variable is not set by user, try to locate tool using the code snippet 18585 for ac_prog in xattr 18586 do 18587 # Extract the first word of "$ac_prog", so it can be a program name with args. 18588 set dummy $ac_prog; ac_word=$2 18589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18590 $as_echo_n "checking for $ac_word... " >&6; } 18591 if ${ac_cv_path_XATTR+:} false; then : 18592 $as_echo_n "(cached) " >&6 18593 else 18594 case $XATTR in 18595 [\\/]* | ?:[\\/]*) 18596 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18597 ;; 18598 *) 18599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18600 for as_dir in $PATH 18601 do 18602 IFS=$as_save_IFS 18603 test -z "$as_dir" && as_dir=. 18604 for ac_exec_ext in '' $ac_executable_extensions; do 18605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18606 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18608 break 2 18609 fi 18610 done 18611 done 18612 IFS=$as_save_IFS 18613 18614 ;; 18615 esac 18616 fi 18617 XATTR=$ac_cv_path_XATTR 18618 if test -n "$XATTR"; then 18619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18620 $as_echo "$XATTR" >&6; } 18621 else 18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18623 $as_echo "no" >&6; } 18624 fi 18625 18626 18627 test -n "$XATTR" && break 18628 done 18629 18630 else 18631 # The variable is set, but is it from the command line or the environment? 18632 18633 # Try to remove the string !XATTR! from our list. 18634 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!XATTR!/} 18635 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18636 # If it failed, the variable was not from the command line. Ignore it, 18637 # but warn the user (except for BASH, which is always set by the calling BASH). 18638 if test "xXATTR" != xBASH; then 18639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&5 18640 $as_echo "$as_me: WARNING: Ignoring value of XATTR from the environment. Use command line variables instead." >&2;} 18641 fi 18642 # Try to locate tool using the code snippet 18643 for ac_prog in xattr 18644 do 18645 # Extract the first word of "$ac_prog", so it can be a program name with args. 18646 set dummy $ac_prog; ac_word=$2 18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18648 $as_echo_n "checking for $ac_word... " >&6; } 18649 if ${ac_cv_path_XATTR+:} false; then : 18650 $as_echo_n "(cached) " >&6 18651 else 18652 case $XATTR in 18653 [\\/]* | ?:[\\/]*) 18654 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18655 ;; 18656 *) 18657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18658 for as_dir in $PATH 18659 do 18660 IFS=$as_save_IFS 18661 test -z "$as_dir" && as_dir=. 18662 for ac_exec_ext in '' $ac_executable_extensions; do 18663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18664 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18666 break 2 18667 fi 18668 done 18669 done 18670 IFS=$as_save_IFS 18671 18672 ;; 18673 esac 18674 fi 18675 XATTR=$ac_cv_path_XATTR 18676 if test -n "$XATTR"; then 18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18678 $as_echo "$XATTR" >&6; } 18679 else 18680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18681 $as_echo "no" >&6; } 18682 fi 18683 18684 18685 test -n "$XATTR" && break 18686 done 18687 18688 else 18689 # If it succeeded, then it was overridden by the user. We will use it 18690 # for the tool. 18691 18692 # First remove it from the list of overridden variables, so we can test 18693 # for unknown variables in the end. 18694 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18695 18696 # Check if the provided tool contains a complete path. 18697 tool_specified="$XATTR" 18698 tool_basename="${tool_specified##*/}" 18699 if test "x$tool_basename" = "x$tool_specified"; then 18700 # A command without a complete path is provided, search $PATH. 18701 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool XATTR=$tool_basename" >&5 18702 $as_echo "$as_me: Will search for user supplied tool XATTR=$tool_basename" >&6;} 18703 # Extract the first word of "$tool_basename", so it can be a program name with args. 18704 set dummy $tool_basename; ac_word=$2 18705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18706 $as_echo_n "checking for $ac_word... " >&6; } 18707 if ${ac_cv_path_XATTR+:} false; then : 18708 $as_echo_n "(cached) " >&6 18709 else 18710 case $XATTR in 18711 [\\/]* | ?:[\\/]*) 18712 ac_cv_path_XATTR="$XATTR" # Let the user override the test with a path. 18713 ;; 18714 *) 18715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18716 for as_dir in $PATH 18717 do 18718 IFS=$as_save_IFS 18719 test -z "$as_dir" && as_dir=. 18720 for ac_exec_ext in '' $ac_executable_extensions; do 18721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18722 ac_cv_path_XATTR="$as_dir/$ac_word$ac_exec_ext" 18723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18724 break 2 18725 fi 18726 done 18727 done 18728 IFS=$as_save_IFS 18729 18730 ;; 18731 esac 18732 fi 18733 XATTR=$ac_cv_path_XATTR 18734 if test -n "$XATTR"; then 18735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XATTR" >&5 18736 $as_echo "$XATTR" >&6; } 18737 else 18738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18739 $as_echo "no" >&6; } 18740 fi 18741 18742 18743 if test "x$XATTR" = x; then 18744 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18745 fi 18746 else 18747 # Otherwise we believe it is a complete path. Use it as it is. 18748 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool XATTR=$tool_specified" >&5 18749 $as_echo "$as_me: Will use user supplied tool XATTR=$tool_specified" >&6;} 18750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XATTR" >&5 18751 $as_echo_n "checking for XATTR... " >&6; } 18752 if test ! -x "$tool_specified"; then 18753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18754 $as_echo "not found" >&6; } 18755 as_fn_error $? "User supplied tool XATTR=$tool_specified does not exist or is not executable" "$LINENO" 5 18756 fi 18757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18758 $as_echo "$tool_specified" >&6; } 18759 fi 18760 fi 18761 fi 18762 18763 18764 18765 if test "x$XATTR" = x; then 18766 as_fn_error $? "Could not find required tool for XATTR" "$LINENO" 5 18767 fi 18768 18769 18770 18771 18772 # Publish this variable in the help. 18773 18774 18775 if test "x$CODESIGN" = x; then 18776 # The variable is not set by user, try to locate tool using the code snippet 18777 for ac_prog in codesign 18778 do 18779 # Extract the first word of "$ac_prog", so it can be a program name with args. 18780 set dummy $ac_prog; ac_word=$2 18781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18782 $as_echo_n "checking for $ac_word... " >&6; } 18783 if ${ac_cv_path_CODESIGN+:} false; then : 18784 $as_echo_n "(cached) " >&6 18785 else 18786 case $CODESIGN in 18787 [\\/]* | ?:[\\/]*) 18788 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18789 ;; 18790 *) 18791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18792 for as_dir in $PATH 18793 do 18794 IFS=$as_save_IFS 18795 test -z "$as_dir" && as_dir=. 18796 for ac_exec_ext in '' $ac_executable_extensions; do 18797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18798 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18800 break 2 18801 fi 18802 done 18803 done 18804 IFS=$as_save_IFS 18805 18806 ;; 18807 esac 18808 fi 18809 CODESIGN=$ac_cv_path_CODESIGN 18810 if test -n "$CODESIGN"; then 18811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18812 $as_echo "$CODESIGN" >&6; } 18813 else 18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18815 $as_echo "no" >&6; } 18816 fi 18817 18818 18819 test -n "$CODESIGN" && break 18820 done 18821 18822 else 18823 # The variable is set, but is it from the command line or the environment? 18824 18825 # Try to remove the string !CODESIGN! from our list. 18826 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CODESIGN!/} 18827 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 18828 # If it failed, the variable was not from the command line. Ignore it, 18829 # but warn the user (except for BASH, which is always set by the calling BASH). 18830 if test "xCODESIGN" != xBASH; then 18831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&5 18832 $as_echo "$as_me: WARNING: Ignoring value of CODESIGN from the environment. Use command line variables instead." >&2;} 18833 fi 18834 # Try to locate tool using the code snippet 18835 for ac_prog in codesign 18836 do 18837 # Extract the first word of "$ac_prog", so it can be a program name with args. 18838 set dummy $ac_prog; ac_word=$2 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18840 $as_echo_n "checking for $ac_word... " >&6; } 18841 if ${ac_cv_path_CODESIGN+:} false; then : 18842 $as_echo_n "(cached) " >&6 18843 else 18844 case $CODESIGN in 18845 [\\/]* | ?:[\\/]*) 18846 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18847 ;; 18848 *) 18849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18850 for as_dir in $PATH 18851 do 18852 IFS=$as_save_IFS 18853 test -z "$as_dir" && as_dir=. 18854 for ac_exec_ext in '' $ac_executable_extensions; do 18855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18856 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18857 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18858 break 2 18859 fi 18860 done 18861 done 18862 IFS=$as_save_IFS 18863 18864 ;; 18865 esac 18866 fi 18867 CODESIGN=$ac_cv_path_CODESIGN 18868 if test -n "$CODESIGN"; then 18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18870 $as_echo "$CODESIGN" >&6; } 18871 else 18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18873 $as_echo "no" >&6; } 18874 fi 18875 18876 18877 test -n "$CODESIGN" && break 18878 done 18879 18880 else 18881 # If it succeeded, then it was overridden by the user. We will use it 18882 # for the tool. 18883 18884 # First remove it from the list of overridden variables, so we can test 18885 # for unknown variables in the end. 18886 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 18887 18888 # Check if the provided tool contains a complete path. 18889 tool_specified="$CODESIGN" 18890 tool_basename="${tool_specified##*/}" 18891 if test "x$tool_basename" = "x$tool_specified"; then 18892 # A command without a complete path is provided, search $PATH. 18893 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CODESIGN=$tool_basename" >&5 18894 $as_echo "$as_me: Will search for user supplied tool CODESIGN=$tool_basename" >&6;} 18895 # Extract the first word of "$tool_basename", so it can be a program name with args. 18896 set dummy $tool_basename; ac_word=$2 18897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18898 $as_echo_n "checking for $ac_word... " >&6; } 18899 if ${ac_cv_path_CODESIGN+:} false; then : 18900 $as_echo_n "(cached) " >&6 18901 else 18902 case $CODESIGN in 18903 [\\/]* | ?:[\\/]*) 18904 ac_cv_path_CODESIGN="$CODESIGN" # Let the user override the test with a path. 18905 ;; 18906 *) 18907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18908 for as_dir in $PATH 18909 do 18910 IFS=$as_save_IFS 18911 test -z "$as_dir" && as_dir=. 18912 for ac_exec_ext in '' $ac_executable_extensions; do 18913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18914 ac_cv_path_CODESIGN="$as_dir/$ac_word$ac_exec_ext" 18915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18916 break 2 18917 fi 18918 done 18919 done 18920 IFS=$as_save_IFS 18921 18922 ;; 18923 esac 18924 fi 18925 CODESIGN=$ac_cv_path_CODESIGN 18926 if test -n "$CODESIGN"; then 18927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CODESIGN" >&5 18928 $as_echo "$CODESIGN" >&6; } 18929 else 18930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18931 $as_echo "no" >&6; } 18932 fi 18933 18934 18935 if test "x$CODESIGN" = x; then 18936 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 18937 fi 18938 else 18939 # Otherwise we believe it is a complete path. Use it as it is. 18940 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CODESIGN=$tool_specified" >&5 18941 $as_echo "$as_me: Will use user supplied tool CODESIGN=$tool_specified" >&6;} 18942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CODESIGN" >&5 18943 $as_echo_n "checking for CODESIGN... " >&6; } 18944 if test ! -x "$tool_specified"; then 18945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 18946 $as_echo "not found" >&6; } 18947 as_fn_error $? "User supplied tool CODESIGN=$tool_specified does not exist or is not executable" "$LINENO" 5 18948 fi 18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 18950 $as_echo "$tool_specified" >&6; } 18951 fi 18952 fi 18953 fi 18954 18955 18956 if test "x$CODESIGN" != "x"; then 18957 # Verify that the openjdk_codesign certificate is present 18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if openjdk_codesign certificate is present" >&5 18959 $as_echo_n "checking if openjdk_codesign certificate is present... " >&6; } 18960 rm -f codesign-testfile 18961 touch codesign-testfile 18962 codesign -s openjdk_codesign codesign-testfile 2>&5 >&5 || CODESIGN= 18963 rm -f codesign-testfile 18964 if test "x$CODESIGN" = x; then 18965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18966 $as_echo "no" >&6; } 18967 else 18968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18969 $as_echo "yes" >&6; } 18970 fi 18971 fi 18972 fi 18973 18974 18975 # Check if pkg-config is available. 18976 18977 18978 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 18979 if test -n "$ac_tool_prefix"; then 18980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 18981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18983 $as_echo_n "checking for $ac_word... " >&6; } 18984 if ${ac_cv_path_PKG_CONFIG+:} false; then : 18985 $as_echo_n "(cached) " >&6 18986 else 18987 case $PKG_CONFIG in 18988 [\\/]* | ?:[\\/]*) 18989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 18990 ;; 18991 *) 18992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18993 for as_dir in $PATH 18994 do 18995 IFS=$as_save_IFS 18996 test -z "$as_dir" && as_dir=. 18997 for ac_exec_ext in '' $ac_executable_extensions; do 18998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19001 break 2 19002 fi 19003 done 19004 done 19005 IFS=$as_save_IFS 19006 19007 ;; 19008 esac 19009 fi 19010 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 19011 if test -n "$PKG_CONFIG"; then 19012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 19013 $as_echo "$PKG_CONFIG" >&6; } 19014 else 19015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19016 $as_echo "no" >&6; } 19017 fi 19018 19019 19020 fi 19021 if test -z "$ac_cv_path_PKG_CONFIG"; then 19022 ac_pt_PKG_CONFIG=$PKG_CONFIG 19023 # Extract the first word of "pkg-config", so it can be a program name with args. 19024 set dummy pkg-config; ac_word=$2 19025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19026 $as_echo_n "checking for $ac_word... " >&6; } 19027 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 19028 $as_echo_n "(cached) " >&6 19029 else 19030 case $ac_pt_PKG_CONFIG in 19031 [\\/]* | ?:[\\/]*) 19032 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 19033 ;; 19034 *) 19035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19036 for as_dir in $PATH 19037 do 19038 IFS=$as_save_IFS 19039 test -z "$as_dir" && as_dir=. 19040 for ac_exec_ext in '' $ac_executable_extensions; do 19041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19042 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 19043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19044 break 2 19045 fi 19046 done 19047 done 19048 IFS=$as_save_IFS 19049 19050 ;; 19051 esac 19052 fi 19053 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 19054 if test -n "$ac_pt_PKG_CONFIG"; then 19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 19056 $as_echo "$ac_pt_PKG_CONFIG" >&6; } 19057 else 19058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19059 $as_echo "no" >&6; } 19060 fi 19061 19062 if test "x$ac_pt_PKG_CONFIG" = x; then 19063 PKG_CONFIG="" 19064 else 19065 case $cross_compiling:$ac_tool_warned in 19066 yes:) 19067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 19068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 19069 ac_tool_warned=yes ;; 19070 esac 19071 PKG_CONFIG=$ac_pt_PKG_CONFIG 19072 fi 19073 else 19074 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 19075 fi 19076 19077 fi 19078 if test -n "$PKG_CONFIG"; then 19079 _pkg_min_version=0.9.0 19080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 19081 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 19082 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 19083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19084 $as_echo "yes" >&6; } 19085 else 19086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19087 $as_echo "no" >&6; } 19088 PKG_CONFIG="" 19089 fi 19090 19091 fi 19092 19093 # After basic tools have been setup, we can check build os specific details. 19094 19095 ############################################################################### 19096 19097 # Note that this is the build platform OS version! 19098 19099 OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`" 19100 OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`" 19101 OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`" 19102 OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`" 19103 19104 19105 19106 19107 19108 # Setup builddeps, for automatic downloading of tools we need. 19109 # This is needed before we can call BDEPS_CHECK_MODULE, which is done in 19110 # boot-jdk setup, but we need to have basic tools setup first. 19111 19112 19113 # Check whether --with-builddeps-conf was given. 19114 if test "${with_builddeps_conf+set}" = set; then : 19115 withval=$with_builddeps_conf; 19116 fi 19117 19118 19119 19120 # Check whether --with-builddeps-server was given. 19121 if test "${with_builddeps_server+set}" = set; then : 19122 withval=$with_builddeps_server; 19123 fi 19124 19125 19126 19127 # Check whether --with-builddeps-dir was given. 19128 if test "${with_builddeps_dir+set}" = set; then : 19129 withval=$with_builddeps_dir; 19130 else 19131 with_builddeps_dir=/localhome/builddeps 19132 fi 19133 19134 19135 19136 # Check whether --with-builddeps-group was given. 19137 if test "${with_builddeps_group+set}" = set; then : 19138 withval=$with_builddeps_group; 19139 fi 19140 19141 19142 19143 19144 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19145 if test "x$with_builddeps_conf" != x; then 19146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5 19147 $as_echo_n "checking for supplied builddeps configuration file... " >&6; } 19148 builddepsfile=$with_builddeps_conf 19149 if test -s $builddepsfile; then 19150 . $builddepsfile 19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5 19152 $as_echo "loaded!" >&6; } 19153 else 19154 as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5 19155 fi 19156 else 19157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5 19158 $as_echo_n "checking for builddeps.conf files in sources...... " >&6; } 19159 builddepsfile=`mktemp` 19160 touch $builddepsfile 19161 # Put all found confs into a single file. 19162 find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile 19163 # Source the file to acquire the variables 19164 if test -s $builddepsfile; then 19165 . $builddepsfile 19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5 19167 $as_echo "found at least one!" >&6; } 19168 else 19169 as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5 19170 fi 19171 fi 19172 # Create build and target names that use _ instead of "-" and ".". 19173 # This is necessary to use them in variable names. 19174 build_var=`echo ${OPENJDK_BUILD_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19175 target_var=`echo ${OPENJDK_TARGET_AUTOCONF_NAME} | tr '-' '_' | tr '.' '_'` 19176 # Extract rewrite information for build and target 19177 eval rewritten_build=\${REWRITE_${build_var}} 19178 if test "x$rewritten_build" = x; then 19179 rewritten_build=${OPENJDK_BUILD_AUTOCONF_NAME} 19180 echo Build stays the same $rewritten_build 19181 else 19182 echo Rewriting build for builddeps into $rewritten_build 19183 fi 19184 eval rewritten_target=\${REWRITE_${target_var}} 19185 if test "x$rewritten_target" = x; then 19186 rewritten_target=${OPENJDK_TARGET_AUTOCONF_NAME} 19187 echo Target stays the same $rewritten_target 19188 else 19189 echo Rewriting target for builddeps into $rewritten_target 19190 fi 19191 rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'` 19192 rewritten_target_var=`echo ${rewritten_target} | tr '-' '_' | tr '.' '_'` 19193 fi 19194 for ac_prog in 7z unzip 19195 do 19196 # Extract the first word of "$ac_prog", so it can be a program name with args. 19197 set dummy $ac_prog; ac_word=$2 19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19199 $as_echo_n "checking for $ac_word... " >&6; } 19200 if ${ac_cv_prog_BDEPS_UNZIP+:} false; then : 19201 $as_echo_n "(cached) " >&6 19202 else 19203 if test -n "$BDEPS_UNZIP"; then 19204 ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test. 19205 else 19206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19207 for as_dir in $PATH 19208 do 19209 IFS=$as_save_IFS 19210 test -z "$as_dir" && as_dir=. 19211 for ac_exec_ext in '' $ac_executable_extensions; do 19212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19213 ac_cv_prog_BDEPS_UNZIP="$ac_prog" 19214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19215 break 2 19216 fi 19217 done 19218 done 19219 IFS=$as_save_IFS 19220 19221 fi 19222 fi 19223 BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP 19224 if test -n "$BDEPS_UNZIP"; then 19225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5 19226 $as_echo "$BDEPS_UNZIP" >&6; } 19227 else 19228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19229 $as_echo "no" >&6; } 19230 fi 19231 19232 19233 test -n "$BDEPS_UNZIP" && break 19234 done 19235 19236 if test "x$BDEPS_UNZIP" = x7z; then 19237 BDEPS_UNZIP="7z x" 19238 fi 19239 19240 for ac_prog in wget lftp ftp 19241 do 19242 # Extract the first word of "$ac_prog", so it can be a program name with args. 19243 set dummy $ac_prog; ac_word=$2 19244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 19245 $as_echo_n "checking for $ac_word... " >&6; } 19246 if ${ac_cv_prog_BDEPS_FTP+:} false; then : 19247 $as_echo_n "(cached) " >&6 19248 else 19249 if test -n "$BDEPS_FTP"; then 19250 ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test. 19251 else 19252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19253 for as_dir in $PATH 19254 do 19255 IFS=$as_save_IFS 19256 test -z "$as_dir" && as_dir=. 19257 for ac_exec_ext in '' $ac_executable_extensions; do 19258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 19259 ac_cv_prog_BDEPS_FTP="$ac_prog" 19260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 19261 break 2 19262 fi 19263 done 19264 done 19265 IFS=$as_save_IFS 19266 19267 fi 19268 fi 19269 BDEPS_FTP=$ac_cv_prog_BDEPS_FTP 19270 if test -n "$BDEPS_FTP"; then 19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5 19272 $as_echo "$BDEPS_FTP" >&6; } 19273 else 19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19275 $as_echo "no" >&6; } 19276 fi 19277 19278 19279 test -n "$BDEPS_FTP" && break 19280 done 19281 19282 19283 19284 ############################################################################### 19285 # 19286 # Determine OpenJDK variants, options and version numbers. 19287 # 19288 ############################################################################### 19289 19290 # We need build & target for this. 19291 19292 19293 ############################################################################### 19294 # 19295 # Should we build a JDK/JVM with headful support (ie a graphical ui)? 19296 # We always build headless support. 19297 # 19298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5 19299 $as_echo_n "checking headful support... " >&6; } 19300 # Check whether --enable-headful was given. 19301 if test "${enable_headful+set}" = set; then : 19302 enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful} 19303 else 19304 SUPPORT_HEADFUL=yes 19305 fi 19306 19307 19308 SUPPORT_HEADLESS=yes 19309 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19310 19311 if test "x$SUPPORT_HEADFUL" = xyes; then 19312 # We are building both headful and headless. 19313 headful_msg="include support for both headful and headless" 19314 fi 19315 19316 if test "x$SUPPORT_HEADFUL" = xno; then 19317 # Thus we are building headless only. 19318 BUILD_HEADLESS="BUILD_HEADLESS:=true" 19319 headful_msg="headless only" 19320 fi 19321 19322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5 19323 $as_echo "$headful_msg" >&6; } 19324 19325 19326 19327 19328 19329 # Control wether Hotspot runs Queens test after build. 19330 # Check whether --enable-hotspot-test-in-build was given. 19331 if test "${enable_hotspot_test_in_build+set}" = set; then : 19332 enableval=$enable_hotspot_test_in_build; 19333 else 19334 enable_hotspot_test_in_build=no 19335 fi 19336 19337 if test "x$enable_hotspot_test_in_build" = "xyes"; then 19338 TEST_IN_BUILD=true 19339 else 19340 TEST_IN_BUILD=false 19341 fi 19342 19343 19344 ############################################################################### 19345 # 19346 # Choose cacerts source file 19347 # 19348 19349 # Check whether --with-cacerts-file was given. 19350 if test "${with_cacerts_file+set}" = set; then : 19351 withval=$with_cacerts_file; 19352 fi 19353 19354 if test "x$with_cacerts_file" != x; then 19355 CACERTS_FILE=$with_cacerts_file 19356 else 19357 CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts 19358 fi 19359 19360 19361 ############################################################################### 19362 # 19363 # Enable or disable unlimited crypto 19364 # 19365 # Check whether --enable-unlimited-crypto was given. 19366 if test "${enable_unlimited_crypto+set}" = set; then : 19367 enableval=$enable_unlimited_crypto; 19368 else 19369 enable_unlimited_crypto=no 19370 fi 19371 19372 if test "x$enable_unlimited_crypto" = "xyes"; then 19373 UNLIMITED_CRYPTO=true 19374 else 19375 UNLIMITED_CRYPTO=false 19376 fi 19377 19378 19379 ############################################################################### 19380 # 19381 # Enable or disable the elliptic curve crypto implementation 19382 # 19383 19384 19385 ############################################################################### 19386 # 19387 # Compress jars 19388 # 19389 COMPRESS_JARS=false 19390 19391 19392 19393 19394 # Source the version numbers 19395 . $AUTOCONF_DIR/version-numbers 19396 19397 # Get the settings from parameters 19398 19399 # Check whether --with-milestone was given. 19400 if test "${with_milestone+set}" = set; then : 19401 withval=$with_milestone; 19402 fi 19403 19404 if test "x$with_milestone" = xyes; then 19405 as_fn_error $? "Milestone must have a value" "$LINENO" 5 19406 elif test "x$with_milestone" != x; then 19407 MILESTONE="$with_milestone" 19408 fi 19409 if test "x$MILESTONE" = x; then 19410 MILESTONE=internal 19411 fi 19412 19413 19414 # Check whether --with-update-version was given. 19415 if test "${with_update_version+set}" = set; then : 19416 withval=$with_update_version; 19417 fi 19418 19419 if test "x$with_update_version" = xyes; then 19420 as_fn_error $? "Update version must have a value" "$LINENO" 5 19421 elif test "x$with_update_version" != x; then 19422 JDK_UPDATE_VERSION="$with_update_version" 19423 # On macosx 10.7, it's not possible to set --with-update-version=0X due 19424 # to a bug in expr (which reduces it to just X). To work around this, we 19425 # always add a 0 to one digit update versions. 19426 if test "${#JDK_UPDATE_VERSION}" = "1"; then 19427 JDK_UPDATE_VERSION="0${JDK_UPDATE_VERSION}" 19428 fi 19429 fi 19430 19431 19432 # Check whether --with-user-release-suffix was given. 19433 if test "${with_user_release_suffix+set}" = set; then : 19434 withval=$with_user_release_suffix; 19435 fi 19436 19437 if test "x$with_user_release_suffix" = xyes; then 19438 as_fn_error $? "Release suffix must have a value" "$LINENO" 5 19439 elif test "x$with_user_release_suffix" != x; then 19440 USER_RELEASE_SUFFIX="$with_user_release_suffix" 19441 fi 19442 19443 19444 # Check whether --with-build-number was given. 19445 if test "${with_build_number+set}" = set; then : 19446 withval=$with_build_number; 19447 fi 19448 19449 if test "x$with_build_number" = xyes; then 19450 as_fn_error $? "Build number must have a value" "$LINENO" 5 19451 elif test "x$with_build_number" != x; then 19452 JDK_BUILD_NUMBER="$with_build_number" 19453 fi 19454 # Define default USER_RELEASE_SUFFIX if BUILD_NUMBER and USER_RELEASE_SUFFIX are not set 19455 if test "x$JDK_BUILD_NUMBER" = x; then 19456 JDK_BUILD_NUMBER=b00 19457 if test "x$USER_RELEASE_SUFFIX" = x; then 19458 BUILD_DATE=`date '+%Y_%m_%d_%H_%M'` 19459 # Avoid [:alnum:] since it depends on the locale. 19460 CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'` 19461 USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19462 fi 19463 fi 19464 19465 # Now set the JDK version, milestone, build number etc. 19466 19467 19468 19469 19470 19471 19472 19473 19474 19475 19476 19477 19478 19479 19480 19481 19482 # Check whether --with-copyright-year was given. 19483 if test "${with_copyright_year+set}" = set; then : 19484 withval=$with_copyright_year; 19485 fi 19486 19487 if test "x$with_copyright_year" = xyes; then 19488 as_fn_error $? "Copyright year must have a value" "$LINENO" 5 19489 elif test "x$with_copyright_year" != x; then 19490 COPYRIGHT_YEAR="$with_copyright_year" 19491 else 19492 COPYRIGHT_YEAR=`date +'%Y'` 19493 fi 19494 19495 19496 if test "x$JDK_UPDATE_VERSION" != x; then 19497 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}" 19498 else 19499 JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}" 19500 fi 19501 19502 19503 # The cooked update version used to encode trailing letters in the update 19504 # version into a trailing number. That is no longer needed, but need to 19505 # keep the format in 8u for compatibility. 19506 COOKED_JDK_UPDATE_VERSION="${JDK_UPDATE_VERSION}0" 19507 19508 19509 COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'` 19510 19511 19512 19513 ############################################################################### 19514 # 19515 # Setup BootJDK, used to bootstrap the build. 19516 # 19517 ############################################################################### 19518 19519 19520 BOOT_JDK_FOUND=no 19521 19522 # Check whether --with-boot-jdk was given. 19523 if test "${with_boot_jdk+set}" = set; then : 19524 withval=$with_boot_jdk; 19525 fi 19526 19527 19528 # We look for the Boot JDK through various means, going from more certain to 19529 # more of a guess-work. After each test, BOOT_JDK_FOUND is set to "yes" if 19530 # we detected something (if so, the path to the jdk is in BOOT_JDK). But we 19531 # must check if this is indeed valid; otherwise we'll continue looking. 19532 19533 # Test: Is bootjdk explicitely set by command line arguments? 19534 19535 if test "x$BOOT_JDK_FOUND" = xno; then 19536 # Now execute the test 19537 19538 if test "x$with_boot_jdk" != x; then 19539 BOOT_JDK=$with_boot_jdk 19540 BOOT_JDK_FOUND=maybe 19541 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using configure arguments" >&5 19542 $as_echo "$as_me: Found potential Boot JDK using configure arguments" >&6;} 19543 fi 19544 19545 19546 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19547 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19548 # Do we have a bin/java? 19549 if test ! -x "$BOOT_JDK/bin/java"; then 19550 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19551 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19552 BOOT_JDK_FOUND=no 19553 else 19554 # Do we have a bin/javac? 19555 if test ! -x "$BOOT_JDK/bin/javac"; then 19556 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19557 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19558 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19559 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19560 BOOT_JDK_FOUND=no 19561 else 19562 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19563 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19564 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19565 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19566 BOOT_JDK_FOUND=no 19567 else 19568 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19569 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19570 19571 # Extra M4 quote needed to protect [] in grep expression. 19572 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 19573 if test "x$FOUND_VERSION_78" = x; then 19574 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19575 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19576 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 19577 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 19578 BOOT_JDK_FOUND=no 19579 else 19580 # We're done! :-) 19581 BOOT_JDK_FOUND=yes 19582 19583 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19584 19585 # Input might be given as Windows format, start by converting to 19586 # unix format. 19587 path="$BOOT_JDK" 19588 new_path=`$CYGPATH -u "$path"` 19589 19590 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19591 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19592 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19593 # "foo.exe" is OK but "foo" is an error. 19594 # 19595 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19596 # It is also a way to make sure we got the proper file name for the real test later on. 19597 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19598 if test "x$test_shortpath" = x; then 19599 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19600 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19601 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19602 fi 19603 19604 # Call helper function which possibly converts this using DOS-style short mode. 19605 # If so, the updated path is stored in $new_path. 19606 19607 input_path="$new_path" 19608 # Check if we need to convert this using DOS-style short mode. If the path 19609 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19610 # take no chances and rewrite it. 19611 # Note: m4 eats our [], so we need to use [ and ] instead. 19612 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19613 if test "x$has_forbidden_chars" != x; then 19614 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19615 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19616 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19617 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19618 # Going to short mode and back again did indeed matter. Since short mode is 19619 # case insensitive, let's make it lowercase to improve readability. 19620 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19621 # Now convert it back to Unix-stile (cygpath) 19622 input_path=`$CYGPATH -u "$shortmode_path"` 19623 new_path="$input_path" 19624 fi 19625 fi 19626 19627 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19628 if test "x$test_cygdrive_prefix" = x; then 19629 # As a simple fix, exclude /usr/bin since it's not a real path. 19630 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19631 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19632 # a path prefixed by /cygdrive for fixpath to work. 19633 new_path="$CYGWIN_ROOT_PATH$input_path" 19634 fi 19635 fi 19636 19637 19638 if test "x$path" != "x$new_path"; then 19639 BOOT_JDK="$new_path" 19640 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19641 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19642 fi 19643 19644 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19645 19646 path="$BOOT_JDK" 19647 has_colon=`$ECHO $path | $GREP ^.:` 19648 new_path="$path" 19649 if test "x$has_colon" = x; then 19650 # Not in mixed or Windows style, start by that. 19651 new_path=`cmd //c echo $path` 19652 fi 19653 19654 19655 input_path="$new_path" 19656 # Check if we need to convert this using DOS-style short mode. If the path 19657 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19658 # take no chances and rewrite it. 19659 # Note: m4 eats our [], so we need to use [ and ] instead. 19660 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19661 if test "x$has_forbidden_chars" != x; then 19662 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19663 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19664 fi 19665 19666 19667 windows_path="$new_path" 19668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19669 unix_path=`$CYGPATH -u "$windows_path"` 19670 new_path="$unix_path" 19671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 19673 new_path="$unix_path" 19674 fi 19675 19676 if test "x$path" != "x$new_path"; then 19677 BOOT_JDK="$new_path" 19678 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19679 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19680 fi 19681 19682 # Save the first 10 bytes of this path to the storage, so fixpath can work. 19683 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 19684 19685 else 19686 # We're on a posix platform. Hooray! :) 19687 path="$BOOT_JDK" 19688 has_space=`$ECHO "$path" | $GREP " "` 19689 if test "x$has_space" != x; then 19690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19691 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19692 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 19693 fi 19694 19695 # Use eval to expand a potential ~ 19696 eval path="$path" 19697 if test ! -f "$path" && test ! -d "$path"; then 19698 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 19699 fi 19700 19701 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 19702 fi 19703 19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 19705 $as_echo_n "checking for Boot JDK... " >&6; } 19706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 19707 $as_echo "$BOOT_JDK" >&6; } 19708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 19709 $as_echo_n "checking Boot JDK version... " >&6; } 19710 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 19711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 19712 $as_echo "$BOOT_JDK_VERSION" >&6; } 19713 fi # end check jdk version 19714 fi # end check rt.jar 19715 fi # end check javac 19716 fi # end check java 19717 fi # end check boot jdk found 19718 fi 19719 19720 if test "x$with_boot_jdk" != x && test "x$BOOT_JDK_FOUND" = xno; then 19721 # Having specified an argument which is incorrect will produce an instant failure; 19722 # we should not go on looking 19723 as_fn_error $? "The path given by --with-boot-jdk does not contain a valid Boot JDK" "$LINENO" 5 19724 fi 19725 19726 # Test: Is bootjdk available from builddeps? 19727 19728 if test "x$BOOT_JDK_FOUND" = xno; then 19729 # Now execute the test 19730 19731 19732 19733 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 19734 # Source the builddeps file again, to make sure it uses the latest variables! 19735 . $builddepsfile 19736 # Look for a target and build machine specific resource! 19737 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 19738 if test "x$resource" = x; then 19739 # Ok, lets instead look for a target specific resource 19740 eval resource=\${builddep_bootjdk_TARGET_${rewritten_target_var}} 19741 fi 19742 if test "x$resource" = x; then 19743 # Ok, lets instead look for a build specific resource 19744 eval resource=\${builddep_bootjdk_BUILD_${rewritten_build_var}} 19745 fi 19746 if test "x$resource" = x; then 19747 # Ok, lets instead look for a generic resource 19748 # (The bootjdk comes from M4 and not the shell, thus no need for eval here.) 19749 resource=${builddep_bootjdk} 19750 fi 19751 if test "x$resource" != x; then 19752 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for bootjdk" >&5 19753 $as_echo "$as_me: Using builddeps $resource for bootjdk" >&6;} 19754 # If the resource in the builddeps.conf file is an existing directory, 19755 # for example /java/linux/cups 19756 if test -d ${resource}; then 19757 depdir=${resource} 19758 else 19759 19760 # bootjdk is for example mymodule 19761 # $resource is for example libs/general/libmymod_1_2_3.zip 19762 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 19763 # $with_builddeps_dir is for example /localhome/builddeps 19764 # depdir is the name of the variable into which we store the depdir, eg MYMOD 19765 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 19766 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 19767 filename=`basename $resource` 19768 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 19769 filebase=${filename%%.*} 19770 extension=${filename#*.} 19771 installdir=$with_builddeps_dir/$filebase 19772 if test ! -f $installdir/$filename.unpacked; then 19773 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&5 19774 $as_echo "$as_me: Downloading build dependency bootjdk from $with_builddeps_server/$resource and installing into $installdir" >&6;} 19775 if test ! -d $installdir; then 19776 mkdir -p $installdir 19777 fi 19778 if test ! -d $installdir; then 19779 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 19780 fi 19781 tmpfile=`mktemp $installdir/bootjdk.XXXXXXXXX` 19782 touch $tmpfile 19783 if test ! -f $tmpfile; then 19784 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 19785 fi 19786 19787 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 19788 # $tmpfile is the local file name for the downloaded file. 19789 VALID_TOOL=no 19790 if test "x$BDEPS_FTP" = xwget; then 19791 VALID_TOOL=yes 19792 wget -O $tmpfile $with_builddeps_server/$resource 19793 fi 19794 if test "x$BDEPS_FTP" = xlftp; then 19795 VALID_TOOL=yes 19796 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 19797 fi 19798 if test "x$BDEPS_FTP" = xftp; then 19799 VALID_TOOL=yes 19800 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 19801 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 19802 FTPUSERPWD=${FTPSERVER%%@*} 19803 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 19804 FTPUSER=${userpwd%%:*} 19805 FTPPWD=${userpwd#*@} 19806 FTPSERVER=${FTPSERVER#*@} 19807 else 19808 FTPUSER=ftp 19809 FTPPWD=ftp 19810 fi 19811 # the "pass" command does not work on some 19812 # ftp clients (read ftp.exe) but if it works, 19813 # passive mode is better! 19814 ( \ 19815 echo "user $FTPUSER $FTPPWD" ; \ 19816 echo "pass" ; \ 19817 echo "bin" ; \ 19818 echo "get $FTPPATH $tmpfile" ; \ 19819 ) | ftp -in $FTPSERVER 19820 fi 19821 if test "x$VALID_TOOL" != xyes; then 19822 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 19823 fi 19824 19825 mv $tmpfile $installdir/$filename 19826 if test ! -s $installdir/$filename; then 19827 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 19828 fi 19829 case "$extension" in 19830 zip) echo "Unzipping $installdir/$filename..." 19831 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 19832 ;; 19833 tar.gz) echo "Untaring $installdir/$filename..." 19834 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 19835 ;; 19836 tgz) echo "Untaring $installdir/$filename..." 19837 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 19838 ;; 19839 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 19840 ;; 19841 esac 19842 fi 19843 if test -f $installdir/$filename.unpacked; then 19844 depdir=$installdir 19845 fi 19846 19847 fi 19848 # Source the builddeps file again, because in the previous command, the depdir 19849 # was updated to point at the current build dependency install directory. 19850 . $builddepsfile 19851 # Now extract variables from the builddeps.conf files. 19852 theroot=${builddep_bootjdk_ROOT} 19853 thecflags=${builddep_bootjdk_CFLAGS} 19854 thelibs=${builddep_bootjdk_LIBS} 19855 if test "x$depdir" = x; then 19856 as_fn_error $? "Could not download build dependency bootjdk" "$LINENO" 5 19857 fi 19858 BOOT_JDK=$depdir 19859 if test "x$theroot" != x; then 19860 BOOT_JDK="$theroot" 19861 fi 19862 if test "x$thecflags" != x; then 19863 BOOT_JDK_CFLAGS="$thecflags" 19864 fi 19865 if test "x$thelibs" != x; then 19866 BOOT_JDK_LIBS="$thelibs" 19867 fi 19868 BOOT_JDK_FOUND=maybe 19869 else BOOT_JDK_FOUND=no 19870 19871 fi 19872 else BOOT_JDK_FOUND=no 19873 19874 fi 19875 19876 19877 19878 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 19879 if test "x$BOOT_JDK_FOUND" = xmaybe; then 19880 # Do we have a bin/java? 19881 if test ! -x "$BOOT_JDK/bin/java"; then 19882 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 19883 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 19884 BOOT_JDK_FOUND=no 19885 else 19886 # Do we have a bin/javac? 19887 if test ! -x "$BOOT_JDK/bin/javac"; then 19888 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 19889 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 19890 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 19891 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 19892 BOOT_JDK_FOUND=no 19893 else 19894 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 19895 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 19896 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 19897 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 19898 BOOT_JDK_FOUND=no 19899 else 19900 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 19901 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 19902 19903 # Extra M4 quote needed to protect [] in grep expression. 19904 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 19905 if test "x$FOUND_VERSION_78" = x; then 19906 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 19907 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 19908 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 19909 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 19910 BOOT_JDK_FOUND=no 19911 else 19912 # We're done! :-) 19913 BOOT_JDK_FOUND=yes 19914 19915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 19916 19917 # Input might be given as Windows format, start by converting to 19918 # unix format. 19919 path="$BOOT_JDK" 19920 new_path=`$CYGPATH -u "$path"` 19921 19922 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 19923 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 19924 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 19925 # "foo.exe" is OK but "foo" is an error. 19926 # 19927 # This test is therefore slightly more accurate than "test -f" to check for file precense. 19928 # It is also a way to make sure we got the proper file name for the real test later on. 19929 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 19930 if test "x$test_shortpath" = x; then 19931 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 19932 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 19933 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 19934 fi 19935 19936 # Call helper function which possibly converts this using DOS-style short mode. 19937 # If so, the updated path is stored in $new_path. 19938 19939 input_path="$new_path" 19940 # Check if we need to convert this using DOS-style short mode. If the path 19941 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19942 # take no chances and rewrite it. 19943 # Note: m4 eats our [], so we need to use [ and ] instead. 19944 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 19945 if test "x$has_forbidden_chars" != x; then 19946 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19947 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 19948 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 19949 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 19950 # Going to short mode and back again did indeed matter. Since short mode is 19951 # case insensitive, let's make it lowercase to improve readability. 19952 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19953 # Now convert it back to Unix-stile (cygpath) 19954 input_path=`$CYGPATH -u "$shortmode_path"` 19955 new_path="$input_path" 19956 fi 19957 fi 19958 19959 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 19960 if test "x$test_cygdrive_prefix" = x; then 19961 # As a simple fix, exclude /usr/bin since it's not a real path. 19962 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 19963 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 19964 # a path prefixed by /cygdrive for fixpath to work. 19965 new_path="$CYGWIN_ROOT_PATH$input_path" 19966 fi 19967 fi 19968 19969 19970 if test "x$path" != "x$new_path"; then 19971 BOOT_JDK="$new_path" 19972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 19973 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 19974 fi 19975 19976 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 19977 19978 path="$BOOT_JDK" 19979 has_colon=`$ECHO $path | $GREP ^.:` 19980 new_path="$path" 19981 if test "x$has_colon" = x; then 19982 # Not in mixed or Windows style, start by that. 19983 new_path=`cmd //c echo $path` 19984 fi 19985 19986 19987 input_path="$new_path" 19988 # Check if we need to convert this using DOS-style short mode. If the path 19989 # contains just simple characters, use it. Otherwise (spaces, weird characters), 19990 # take no chances and rewrite it. 19991 # Note: m4 eats our [], so we need to use [ and ] instead. 19992 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 19993 if test "x$has_forbidden_chars" != x; then 19994 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 19995 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 19996 fi 19997 19998 19999 windows_path="$new_path" 20000 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20001 unix_path=`$CYGPATH -u "$windows_path"` 20002 new_path="$unix_path" 20003 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20004 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20005 new_path="$unix_path" 20006 fi 20007 20008 if test "x$path" != "x$new_path"; then 20009 BOOT_JDK="$new_path" 20010 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20011 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20012 fi 20013 20014 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20015 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20016 20017 else 20018 # We're on a posix platform. Hooray! :) 20019 path="$BOOT_JDK" 20020 has_space=`$ECHO "$path" | $GREP " "` 20021 if test "x$has_space" != x; then 20022 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20023 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20024 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20025 fi 20026 20027 # Use eval to expand a potential ~ 20028 eval path="$path" 20029 if test ! -f "$path" && test ! -d "$path"; then 20030 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20031 fi 20032 20033 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20034 fi 20035 20036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20037 $as_echo_n "checking for Boot JDK... " >&6; } 20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20039 $as_echo "$BOOT_JDK" >&6; } 20040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20041 $as_echo_n "checking Boot JDK version... " >&6; } 20042 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20044 $as_echo "$BOOT_JDK_VERSION" >&6; } 20045 fi # end check jdk version 20046 fi # end check rt.jar 20047 fi # end check javac 20048 fi # end check java 20049 fi # end check boot jdk found 20050 fi 20051 20052 20053 # Test: Is $JAVA_HOME set? 20054 20055 if test "x$BOOT_JDK_FOUND" = xno; then 20056 # Now execute the test 20057 20058 if test "x$JAVA_HOME" != x; then 20059 JAVA_HOME_PROCESSED="$JAVA_HOME" 20060 20061 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20062 20063 # Input might be given as Windows format, start by converting to 20064 # unix format. 20065 path="$JAVA_HOME_PROCESSED" 20066 new_path=`$CYGPATH -u "$path"` 20067 20068 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20069 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20070 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20071 # "foo.exe" is OK but "foo" is an error. 20072 # 20073 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20074 # It is also a way to make sure we got the proper file name for the real test later on. 20075 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20076 if test "x$test_shortpath" = x; then 20077 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20078 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20079 as_fn_error $? "Cannot locate the the path of JAVA_HOME_PROCESSED" "$LINENO" 5 20080 fi 20081 20082 # Call helper function which possibly converts this using DOS-style short mode. 20083 # If so, the updated path is stored in $new_path. 20084 20085 input_path="$new_path" 20086 # Check if we need to convert this using DOS-style short mode. If the path 20087 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20088 # take no chances and rewrite it. 20089 # Note: m4 eats our [], so we need to use [ and ] instead. 20090 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20091 if test "x$has_forbidden_chars" != x; then 20092 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20093 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20094 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20095 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20096 # Going to short mode and back again did indeed matter. Since short mode is 20097 # case insensitive, let's make it lowercase to improve readability. 20098 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20099 # Now convert it back to Unix-stile (cygpath) 20100 input_path=`$CYGPATH -u "$shortmode_path"` 20101 new_path="$input_path" 20102 fi 20103 fi 20104 20105 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20106 if test "x$test_cygdrive_prefix" = x; then 20107 # As a simple fix, exclude /usr/bin since it's not a real path. 20108 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20109 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20110 # a path prefixed by /cygdrive for fixpath to work. 20111 new_path="$CYGWIN_ROOT_PATH$input_path" 20112 fi 20113 fi 20114 20115 20116 if test "x$path" != "x$new_path"; then 20117 JAVA_HOME_PROCESSED="$new_path" 20118 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20119 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20120 fi 20121 20122 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20123 20124 path="$JAVA_HOME_PROCESSED" 20125 has_colon=`$ECHO $path | $GREP ^.:` 20126 new_path="$path" 20127 if test "x$has_colon" = x; then 20128 # Not in mixed or Windows style, start by that. 20129 new_path=`cmd //c echo $path` 20130 fi 20131 20132 20133 input_path="$new_path" 20134 # Check if we need to convert this using DOS-style short mode. If the path 20135 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20136 # take no chances and rewrite it. 20137 # Note: m4 eats our [], so we need to use [ and ] instead. 20138 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20139 if test "x$has_forbidden_chars" != x; then 20140 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20141 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20142 fi 20143 20144 20145 windows_path="$new_path" 20146 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20147 unix_path=`$CYGPATH -u "$windows_path"` 20148 new_path="$unix_path" 20149 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20150 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20151 new_path="$unix_path" 20152 fi 20153 20154 if test "x$path" != "x$new_path"; then 20155 JAVA_HOME_PROCESSED="$new_path" 20156 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&5 20157 $as_echo "$as_me: Rewriting JAVA_HOME_PROCESSED to \"$new_path\"" >&6;} 20158 fi 20159 20160 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20161 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20162 20163 else 20164 # We're on a posix platform. Hooray! :) 20165 path="$JAVA_HOME_PROCESSED" 20166 has_space=`$ECHO "$path" | $GREP " "` 20167 if test "x$has_space" != x; then 20168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&5 20169 $as_echo "$as_me: The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is invalid." >&6;} 20170 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20171 fi 20172 20173 # Use eval to expand a potential ~ 20174 eval path="$path" 20175 if test ! -f "$path" && test ! -d "$path"; then 20176 as_fn_error $? "The path of JAVA_HOME_PROCESSED, which resolves as \"$path\", is not found." "$LINENO" 5 20177 fi 20178 20179 JAVA_HOME_PROCESSED="`cd "$path"; $THEPWDCMD -L`" 20180 fi 20181 20182 if test ! -d "$JAVA_HOME_PROCESSED"; then 20183 { $as_echo "$as_me:${as_lineno-$LINENO}: Your JAVA_HOME points to a non-existing directory!" >&5 20184 $as_echo "$as_me: Your JAVA_HOME points to a non-existing directory!" >&6;} 20185 else 20186 # Aha, the user has set a JAVA_HOME 20187 # let us use that as the Boot JDK. 20188 BOOT_JDK="$JAVA_HOME_PROCESSED" 20189 BOOT_JDK_FOUND=maybe 20190 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using JAVA_HOME" >&5 20191 $as_echo "$as_me: Found potential Boot JDK using JAVA_HOME" >&6;} 20192 fi 20193 fi 20194 20195 20196 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20197 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20198 # Do we have a bin/java? 20199 if test ! -x "$BOOT_JDK/bin/java"; then 20200 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20201 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20202 BOOT_JDK_FOUND=no 20203 else 20204 # Do we have a bin/javac? 20205 if test ! -x "$BOOT_JDK/bin/javac"; then 20206 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20207 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20208 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20209 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20210 BOOT_JDK_FOUND=no 20211 else 20212 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20213 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20214 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20215 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20216 BOOT_JDK_FOUND=no 20217 else 20218 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20219 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20220 20221 # Extra M4 quote needed to protect [] in grep expression. 20222 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20223 if test "x$FOUND_VERSION_78" = x; then 20224 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20225 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20226 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20227 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20228 BOOT_JDK_FOUND=no 20229 else 20230 # We're done! :-) 20231 BOOT_JDK_FOUND=yes 20232 20233 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20234 20235 # Input might be given as Windows format, start by converting to 20236 # unix format. 20237 path="$BOOT_JDK" 20238 new_path=`$CYGPATH -u "$path"` 20239 20240 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20241 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20242 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20243 # "foo.exe" is OK but "foo" is an error. 20244 # 20245 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20246 # It is also a way to make sure we got the proper file name for the real test later on. 20247 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20248 if test "x$test_shortpath" = x; then 20249 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20250 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20251 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20252 fi 20253 20254 # Call helper function which possibly converts this using DOS-style short mode. 20255 # If so, the updated path is stored in $new_path. 20256 20257 input_path="$new_path" 20258 # Check if we need to convert this using DOS-style short mode. If the path 20259 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20260 # take no chances and rewrite it. 20261 # Note: m4 eats our [], so we need to use [ and ] instead. 20262 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20263 if test "x$has_forbidden_chars" != x; then 20264 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20265 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20266 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20267 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20268 # Going to short mode and back again did indeed matter. Since short mode is 20269 # case insensitive, let's make it lowercase to improve readability. 20270 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20271 # Now convert it back to Unix-stile (cygpath) 20272 input_path=`$CYGPATH -u "$shortmode_path"` 20273 new_path="$input_path" 20274 fi 20275 fi 20276 20277 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20278 if test "x$test_cygdrive_prefix" = x; then 20279 # As a simple fix, exclude /usr/bin since it's not a real path. 20280 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20281 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20282 # a path prefixed by /cygdrive for fixpath to work. 20283 new_path="$CYGWIN_ROOT_PATH$input_path" 20284 fi 20285 fi 20286 20287 20288 if test "x$path" != "x$new_path"; then 20289 BOOT_JDK="$new_path" 20290 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20291 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20292 fi 20293 20294 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20295 20296 path="$BOOT_JDK" 20297 has_colon=`$ECHO $path | $GREP ^.:` 20298 new_path="$path" 20299 if test "x$has_colon" = x; then 20300 # Not in mixed or Windows style, start by that. 20301 new_path=`cmd //c echo $path` 20302 fi 20303 20304 20305 input_path="$new_path" 20306 # Check if we need to convert this using DOS-style short mode. If the path 20307 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20308 # take no chances and rewrite it. 20309 # Note: m4 eats our [], so we need to use [ and ] instead. 20310 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20311 if test "x$has_forbidden_chars" != x; then 20312 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20313 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20314 fi 20315 20316 20317 windows_path="$new_path" 20318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20319 unix_path=`$CYGPATH -u "$windows_path"` 20320 new_path="$unix_path" 20321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20323 new_path="$unix_path" 20324 fi 20325 20326 if test "x$path" != "x$new_path"; then 20327 BOOT_JDK="$new_path" 20328 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20329 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20330 fi 20331 20332 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20333 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20334 20335 else 20336 # We're on a posix platform. Hooray! :) 20337 path="$BOOT_JDK" 20338 has_space=`$ECHO "$path" | $GREP " "` 20339 if test "x$has_space" != x; then 20340 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20341 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20342 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20343 fi 20344 20345 # Use eval to expand a potential ~ 20346 eval path="$path" 20347 if test ! -f "$path" && test ! -d "$path"; then 20348 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20349 fi 20350 20351 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20352 fi 20353 20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20355 $as_echo_n "checking for Boot JDK... " >&6; } 20356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20357 $as_echo "$BOOT_JDK" >&6; } 20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20359 $as_echo_n "checking Boot JDK version... " >&6; } 20360 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20362 $as_echo "$BOOT_JDK_VERSION" >&6; } 20363 fi # end check jdk version 20364 fi # end check rt.jar 20365 fi # end check javac 20366 fi # end check java 20367 fi # end check boot jdk found 20368 fi 20369 20370 20371 # Test: Is there a /usr/libexec/java_home? (Typically on MacOSX) 20372 20373 if test "x$BOOT_JDK_FOUND" = xno; then 20374 # Now execute the test 20375 20376 if test -x /usr/libexec/java_home; then 20377 BOOT_JDK=`/usr/libexec/java_home` 20378 BOOT_JDK_FOUND=maybe 20379 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using /usr/libexec/java_home" >&5 20380 $as_echo "$as_me: Found potential Boot JDK using /usr/libexec/java_home" >&6;} 20381 fi 20382 20383 20384 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20385 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20386 # Do we have a bin/java? 20387 if test ! -x "$BOOT_JDK/bin/java"; then 20388 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20389 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20390 BOOT_JDK_FOUND=no 20391 else 20392 # Do we have a bin/javac? 20393 if test ! -x "$BOOT_JDK/bin/javac"; then 20394 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20395 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20396 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20397 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20398 BOOT_JDK_FOUND=no 20399 else 20400 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20401 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20402 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20403 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20404 BOOT_JDK_FOUND=no 20405 else 20406 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20407 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20408 20409 # Extra M4 quote needed to protect [] in grep expression. 20410 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20411 if test "x$FOUND_VERSION_78" = x; then 20412 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20413 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20414 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20415 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20416 BOOT_JDK_FOUND=no 20417 else 20418 # We're done! :-) 20419 BOOT_JDK_FOUND=yes 20420 20421 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20422 20423 # Input might be given as Windows format, start by converting to 20424 # unix format. 20425 path="$BOOT_JDK" 20426 new_path=`$CYGPATH -u "$path"` 20427 20428 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20429 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20430 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20431 # "foo.exe" is OK but "foo" is an error. 20432 # 20433 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20434 # It is also a way to make sure we got the proper file name for the real test later on. 20435 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20436 if test "x$test_shortpath" = x; then 20437 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20438 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20439 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20440 fi 20441 20442 # Call helper function which possibly converts this using DOS-style short mode. 20443 # If so, the updated path is stored in $new_path. 20444 20445 input_path="$new_path" 20446 # Check if we need to convert this using DOS-style short mode. If the path 20447 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20448 # take no chances and rewrite it. 20449 # Note: m4 eats our [], so we need to use [ and ] instead. 20450 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20451 if test "x$has_forbidden_chars" != x; then 20452 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20453 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20454 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20455 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20456 # Going to short mode and back again did indeed matter. Since short mode is 20457 # case insensitive, let's make it lowercase to improve readability. 20458 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20459 # Now convert it back to Unix-stile (cygpath) 20460 input_path=`$CYGPATH -u "$shortmode_path"` 20461 new_path="$input_path" 20462 fi 20463 fi 20464 20465 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20466 if test "x$test_cygdrive_prefix" = x; then 20467 # As a simple fix, exclude /usr/bin since it's not a real path. 20468 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20469 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20470 # a path prefixed by /cygdrive for fixpath to work. 20471 new_path="$CYGWIN_ROOT_PATH$input_path" 20472 fi 20473 fi 20474 20475 20476 if test "x$path" != "x$new_path"; then 20477 BOOT_JDK="$new_path" 20478 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20479 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20480 fi 20481 20482 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20483 20484 path="$BOOT_JDK" 20485 has_colon=`$ECHO $path | $GREP ^.:` 20486 new_path="$path" 20487 if test "x$has_colon" = x; then 20488 # Not in mixed or Windows style, start by that. 20489 new_path=`cmd //c echo $path` 20490 fi 20491 20492 20493 input_path="$new_path" 20494 # Check if we need to convert this using DOS-style short mode. If the path 20495 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20496 # take no chances and rewrite it. 20497 # Note: m4 eats our [], so we need to use [ and ] instead. 20498 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20499 if test "x$has_forbidden_chars" != x; then 20500 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20501 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20502 fi 20503 20504 20505 windows_path="$new_path" 20506 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20507 unix_path=`$CYGPATH -u "$windows_path"` 20508 new_path="$unix_path" 20509 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20510 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20511 new_path="$unix_path" 20512 fi 20513 20514 if test "x$path" != "x$new_path"; then 20515 BOOT_JDK="$new_path" 20516 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20517 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20518 fi 20519 20520 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20521 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20522 20523 else 20524 # We're on a posix platform. Hooray! :) 20525 path="$BOOT_JDK" 20526 has_space=`$ECHO "$path" | $GREP " "` 20527 if test "x$has_space" != x; then 20528 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20529 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20530 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20531 fi 20532 20533 # Use eval to expand a potential ~ 20534 eval path="$path" 20535 if test ! -f "$path" && test ! -d "$path"; then 20536 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20537 fi 20538 20539 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20540 fi 20541 20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20543 $as_echo_n "checking for Boot JDK... " >&6; } 20544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20545 $as_echo "$BOOT_JDK" >&6; } 20546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20547 $as_echo_n "checking Boot JDK version... " >&6; } 20548 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20550 $as_echo "$BOOT_JDK_VERSION" >&6; } 20551 fi # end check jdk version 20552 fi # end check rt.jar 20553 fi # end check javac 20554 fi # end check java 20555 fi # end check boot jdk found 20556 fi 20557 20558 20559 # Test: Is there a java or javac in the PATH, which is a symlink to the JDK? 20560 20561 if test "x$BOOT_JDK_FOUND" = xno; then 20562 # Now execute the test 20563 20564 # Extract the first word of "javac", so it can be a program name with args. 20565 set dummy javac; ac_word=$2 20566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20567 $as_echo_n "checking for $ac_word... " >&6; } 20568 if ${ac_cv_path_JAVAC_CHECK+:} false; then : 20569 $as_echo_n "(cached) " >&6 20570 else 20571 case $JAVAC_CHECK in 20572 [\\/]* | ?:[\\/]*) 20573 ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path. 20574 ;; 20575 *) 20576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20577 for as_dir in $PATH 20578 do 20579 IFS=$as_save_IFS 20580 test -z "$as_dir" && as_dir=. 20581 for ac_exec_ext in '' $ac_executable_extensions; do 20582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20583 ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext" 20584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20585 break 2 20586 fi 20587 done 20588 done 20589 IFS=$as_save_IFS 20590 20591 ;; 20592 esac 20593 fi 20594 JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK 20595 if test -n "$JAVAC_CHECK"; then 20596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5 20597 $as_echo "$JAVAC_CHECK" >&6; } 20598 else 20599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20600 $as_echo "no" >&6; } 20601 fi 20602 20603 20604 # Extract the first word of "java", so it can be a program name with args. 20605 set dummy java; ac_word=$2 20606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20607 $as_echo_n "checking for $ac_word... " >&6; } 20608 if ${ac_cv_path_JAVA_CHECK+:} false; then : 20609 $as_echo_n "(cached) " >&6 20610 else 20611 case $JAVA_CHECK in 20612 [\\/]* | ?:[\\/]*) 20613 ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path. 20614 ;; 20615 *) 20616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20617 for as_dir in $PATH 20618 do 20619 IFS=$as_save_IFS 20620 test -z "$as_dir" && as_dir=. 20621 for ac_exec_ext in '' $ac_executable_extensions; do 20622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20623 ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext" 20624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20625 break 2 20626 fi 20627 done 20628 done 20629 IFS=$as_save_IFS 20630 20631 ;; 20632 esac 20633 fi 20634 JAVA_CHECK=$ac_cv_path_JAVA_CHECK 20635 if test -n "$JAVA_CHECK"; then 20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5 20637 $as_echo "$JAVA_CHECK" >&6; } 20638 else 20639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20640 $as_echo "no" >&6; } 20641 fi 20642 20643 20644 BINARY="$JAVAC_CHECK" 20645 if test "x$JAVAC_CHECK" = x; then 20646 BINARY="$JAVA_CHECK" 20647 fi 20648 if test "x$BINARY" != x; then 20649 # So there is a java(c) binary, it might be part of a JDK. 20650 # Lets find the JDK/JRE directory by following symbolic links. 20651 # Linux/GNU systems often have links from /usr/bin/java to 20652 # /etc/alternatives/java to the real JDK binary. 20653 20654 if test "x$OPENJDK_BUILD_OS" != xwindows; then 20655 # Follow a chain of symbolic links. Use readlink 20656 # where it exists, else fall back to horribly 20657 # complicated shell code. 20658 if test "x$READLINK_TESTED" != yes; then 20659 # On MacOSX there is a readlink tool with a different 20660 # purpose than the GNU readlink tool. Check the found readlink. 20661 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 20662 if test "x$ISGNU" = x; then 20663 # A readlink that we do not know how to use. 20664 # Are there other non-GNU readlinks out there? 20665 READLINK_TESTED=yes 20666 READLINK= 20667 fi 20668 fi 20669 20670 if test "x$READLINK" != x; then 20671 BINARY=`$READLINK -f $BINARY` 20672 else 20673 # Save the current directory for restoring afterwards 20674 STARTDIR=$PWD 20675 COUNTER=0 20676 sym_link_dir=`$DIRNAME $BINARY` 20677 sym_link_file=`$BASENAME $BINARY` 20678 cd $sym_link_dir 20679 # Use -P flag to resolve symlinks in directories. 20680 cd `$THEPWDCMD -P` 20681 sym_link_dir=`$THEPWDCMD -P` 20682 # Resolve file symlinks 20683 while test $COUNTER -lt 20; do 20684 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 20685 if test "x$ISLINK" == x; then 20686 # This is not a symbolic link! We are done! 20687 break 20688 fi 20689 # Again resolve directory symlinks since the target of the just found 20690 # link could be in a different directory 20691 cd `$DIRNAME $ISLINK` 20692 sym_link_dir=`$THEPWDCMD -P` 20693 sym_link_file=`$BASENAME $ISLINK` 20694 let COUNTER=COUNTER+1 20695 done 20696 cd $STARTDIR 20697 BINARY=$sym_link_dir/$sym_link_file 20698 fi 20699 fi 20700 20701 BOOT_JDK=`dirname "$BINARY"` 20702 BOOT_JDK=`cd "$BOOT_JDK/.."; pwd` 20703 if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then 20704 # Looks like we found ourselves an JDK 20705 BOOT_JDK_FOUND=maybe 20706 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using java(c) in PATH" >&5 20707 $as_echo "$as_me: Found potential Boot JDK using java(c) in PATH" >&6;} 20708 fi 20709 fi 20710 20711 20712 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20713 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20714 # Do we have a bin/java? 20715 if test ! -x "$BOOT_JDK/bin/java"; then 20716 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20717 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20718 BOOT_JDK_FOUND=no 20719 else 20720 # Do we have a bin/javac? 20721 if test ! -x "$BOOT_JDK/bin/javac"; then 20722 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20723 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20724 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20725 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20726 BOOT_JDK_FOUND=no 20727 else 20728 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20729 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20730 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20731 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20732 BOOT_JDK_FOUND=no 20733 else 20734 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20735 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20736 20737 # Extra M4 quote needed to protect [] in grep expression. 20738 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20739 if test "x$FOUND_VERSION_78" = x; then 20740 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20741 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20742 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20743 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20744 BOOT_JDK_FOUND=no 20745 else 20746 # We're done! :-) 20747 BOOT_JDK_FOUND=yes 20748 20749 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20750 20751 # Input might be given as Windows format, start by converting to 20752 # unix format. 20753 path="$BOOT_JDK" 20754 new_path=`$CYGPATH -u "$path"` 20755 20756 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20757 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20758 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20759 # "foo.exe" is OK but "foo" is an error. 20760 # 20761 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20762 # It is also a way to make sure we got the proper file name for the real test later on. 20763 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20764 if test "x$test_shortpath" = x; then 20765 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20766 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20767 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20768 fi 20769 20770 # Call helper function which possibly converts this using DOS-style short mode. 20771 # If so, the updated path is stored in $new_path. 20772 20773 input_path="$new_path" 20774 # Check if we need to convert this using DOS-style short mode. If the path 20775 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20776 # take no chances and rewrite it. 20777 # Note: m4 eats our [], so we need to use [ and ] instead. 20778 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20779 if test "x$has_forbidden_chars" != x; then 20780 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20781 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20782 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20783 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20784 # Going to short mode and back again did indeed matter. Since short mode is 20785 # case insensitive, let's make it lowercase to improve readability. 20786 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20787 # Now convert it back to Unix-stile (cygpath) 20788 input_path=`$CYGPATH -u "$shortmode_path"` 20789 new_path="$input_path" 20790 fi 20791 fi 20792 20793 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 20794 if test "x$test_cygdrive_prefix" = x; then 20795 # As a simple fix, exclude /usr/bin since it's not a real path. 20796 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 20797 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 20798 # a path prefixed by /cygdrive for fixpath to work. 20799 new_path="$CYGWIN_ROOT_PATH$input_path" 20800 fi 20801 fi 20802 20803 20804 if test "x$path" != "x$new_path"; then 20805 BOOT_JDK="$new_path" 20806 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20807 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20808 fi 20809 20810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20811 20812 path="$BOOT_JDK" 20813 has_colon=`$ECHO $path | $GREP ^.:` 20814 new_path="$path" 20815 if test "x$has_colon" = x; then 20816 # Not in mixed or Windows style, start by that. 20817 new_path=`cmd //c echo $path` 20818 fi 20819 20820 20821 input_path="$new_path" 20822 # Check if we need to convert this using DOS-style short mode. If the path 20823 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20824 # take no chances and rewrite it. 20825 # Note: m4 eats our [], so we need to use [ and ] instead. 20826 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 20827 if test "x$has_forbidden_chars" != x; then 20828 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20829 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 20830 fi 20831 20832 20833 windows_path="$new_path" 20834 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20835 unix_path=`$CYGPATH -u "$windows_path"` 20836 new_path="$unix_path" 20837 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20838 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20839 new_path="$unix_path" 20840 fi 20841 20842 if test "x$path" != "x$new_path"; then 20843 BOOT_JDK="$new_path" 20844 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 20845 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 20846 fi 20847 20848 # Save the first 10 bytes of this path to the storage, so fixpath can work. 20849 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 20850 20851 else 20852 # We're on a posix platform. Hooray! :) 20853 path="$BOOT_JDK" 20854 has_space=`$ECHO "$path" | $GREP " "` 20855 if test "x$has_space" != x; then 20856 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20857 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20858 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 20859 fi 20860 20861 # Use eval to expand a potential ~ 20862 eval path="$path" 20863 if test ! -f "$path" && test ! -d "$path"; then 20864 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 20865 fi 20866 20867 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 20868 fi 20869 20870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 20871 $as_echo_n "checking for Boot JDK... " >&6; } 20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 20873 $as_echo "$BOOT_JDK" >&6; } 20874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 20875 $as_echo_n "checking Boot JDK version... " >&6; } 20876 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 20877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 20878 $as_echo "$BOOT_JDK_VERSION" >&6; } 20879 fi # end check jdk version 20880 fi # end check rt.jar 20881 fi # end check javac 20882 fi # end check java 20883 fi # end check boot jdk found 20884 fi 20885 20886 20887 # Test: Is there a JDK installed in default, well-known locations? 20888 20889 if test "x$BOOT_JDK_FOUND" = xno; then 20890 # Now execute the test 20891 20892 if test "x$OPENJDK_TARGET_OS" = xwindows; then 20893 20894 if test "x$BOOT_JDK_FOUND" = xno; then 20895 # Now execute the test 20896 20897 if test "x$ProgramW6432" != x; then 20898 VIRTUAL_DIR="$ProgramW6432/Java" 20899 20900 windows_path="$VIRTUAL_DIR" 20901 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20902 unix_path=`$CYGPATH -u "$windows_path"` 20903 VIRTUAL_DIR="$unix_path" 20904 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 20905 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 20906 VIRTUAL_DIR="$unix_path" 20907 fi 20908 20909 20910 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 20911 BOOT_JDK_SUFFIX="" 20912 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 20913 if test "x$ALL_JDKS_FOUND" != x; then 20914 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 20915 20916 if test "x$BOOT_JDK_FOUND" = xno; then 20917 # Now execute the test 20918 20919 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 20920 if test -d "$BOOT_JDK"; then 20921 BOOT_JDK_FOUND=maybe 20922 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 20923 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 20924 fi 20925 20926 20927 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 20928 if test "x$BOOT_JDK_FOUND" = xmaybe; then 20929 # Do we have a bin/java? 20930 if test ! -x "$BOOT_JDK/bin/java"; then 20931 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 20932 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 20933 BOOT_JDK_FOUND=no 20934 else 20935 # Do we have a bin/javac? 20936 if test ! -x "$BOOT_JDK/bin/javac"; then 20937 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 20938 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 20939 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 20940 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 20941 BOOT_JDK_FOUND=no 20942 else 20943 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 20944 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 20945 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 20946 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 20947 BOOT_JDK_FOUND=no 20948 else 20949 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 20950 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 20951 20952 # Extra M4 quote needed to protect [] in grep expression. 20953 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 20954 if test "x$FOUND_VERSION_78" = x; then 20955 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 20956 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 20957 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 20958 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 20959 BOOT_JDK_FOUND=no 20960 else 20961 # We're done! :-) 20962 BOOT_JDK_FOUND=yes 20963 20964 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 20965 20966 # Input might be given as Windows format, start by converting to 20967 # unix format. 20968 path="$BOOT_JDK" 20969 new_path=`$CYGPATH -u "$path"` 20970 20971 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 20972 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 20973 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 20974 # "foo.exe" is OK but "foo" is an error. 20975 # 20976 # This test is therefore slightly more accurate than "test -f" to check for file precense. 20977 # It is also a way to make sure we got the proper file name for the real test later on. 20978 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 20979 if test "x$test_shortpath" = x; then 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 20981 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 20982 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 20983 fi 20984 20985 # Call helper function which possibly converts this using DOS-style short mode. 20986 # If so, the updated path is stored in $new_path. 20987 20988 input_path="$new_path" 20989 # Check if we need to convert this using DOS-style short mode. If the path 20990 # contains just simple characters, use it. Otherwise (spaces, weird characters), 20991 # take no chances and rewrite it. 20992 # Note: m4 eats our [], so we need to use [ and ] instead. 20993 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 20994 if test "x$has_forbidden_chars" != x; then 20995 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 20996 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 20997 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 20998 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 20999 # Going to short mode and back again did indeed matter. Since short mode is 21000 # case insensitive, let's make it lowercase to improve readability. 21001 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21002 # Now convert it back to Unix-stile (cygpath) 21003 input_path=`$CYGPATH -u "$shortmode_path"` 21004 new_path="$input_path" 21005 fi 21006 fi 21007 21008 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21009 if test "x$test_cygdrive_prefix" = x; then 21010 # As a simple fix, exclude /usr/bin since it's not a real path. 21011 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21012 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21013 # a path prefixed by /cygdrive for fixpath to work. 21014 new_path="$CYGWIN_ROOT_PATH$input_path" 21015 fi 21016 fi 21017 21018 21019 if test "x$path" != "x$new_path"; then 21020 BOOT_JDK="$new_path" 21021 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21022 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21023 fi 21024 21025 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21026 21027 path="$BOOT_JDK" 21028 has_colon=`$ECHO $path | $GREP ^.:` 21029 new_path="$path" 21030 if test "x$has_colon" = x; then 21031 # Not in mixed or Windows style, start by that. 21032 new_path=`cmd //c echo $path` 21033 fi 21034 21035 21036 input_path="$new_path" 21037 # Check if we need to convert this using DOS-style short mode. If the path 21038 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21039 # take no chances and rewrite it. 21040 # Note: m4 eats our [], so we need to use [ and ] instead. 21041 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21042 if test "x$has_forbidden_chars" != x; then 21043 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21044 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21045 fi 21046 21047 21048 windows_path="$new_path" 21049 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21050 unix_path=`$CYGPATH -u "$windows_path"` 21051 new_path="$unix_path" 21052 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21053 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21054 new_path="$unix_path" 21055 fi 21056 21057 if test "x$path" != "x$new_path"; then 21058 BOOT_JDK="$new_path" 21059 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21060 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21061 fi 21062 21063 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21064 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21065 21066 else 21067 # We're on a posix platform. Hooray! :) 21068 path="$BOOT_JDK" 21069 has_space=`$ECHO "$path" | $GREP " "` 21070 if test "x$has_space" != x; then 21071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21072 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21073 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21074 fi 21075 21076 # Use eval to expand a potential ~ 21077 eval path="$path" 21078 if test ! -f "$path" && test ! -d "$path"; then 21079 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21080 fi 21081 21082 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21083 fi 21084 21085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21086 $as_echo_n "checking for Boot JDK... " >&6; } 21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21088 $as_echo "$BOOT_JDK" >&6; } 21089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21090 $as_echo_n "checking Boot JDK version... " >&6; } 21091 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21093 $as_echo "$BOOT_JDK_VERSION" >&6; } 21094 fi # end check jdk version 21095 fi # end check rt.jar 21096 fi # end check javac 21097 fi # end check java 21098 fi # end check boot jdk found 21099 fi 21100 21101 done 21102 fi 21103 21104 fi 21105 21106 21107 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21108 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21109 # Do we have a bin/java? 21110 if test ! -x "$BOOT_JDK/bin/java"; then 21111 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21112 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21113 BOOT_JDK_FOUND=no 21114 else 21115 # Do we have a bin/javac? 21116 if test ! -x "$BOOT_JDK/bin/javac"; then 21117 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21118 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21119 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21120 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21121 BOOT_JDK_FOUND=no 21122 else 21123 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21124 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21125 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21126 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21127 BOOT_JDK_FOUND=no 21128 else 21129 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21130 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21131 21132 # Extra M4 quote needed to protect [] in grep expression. 21133 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21134 if test "x$FOUND_VERSION_78" = x; then 21135 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21136 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21137 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21138 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21139 BOOT_JDK_FOUND=no 21140 else 21141 # We're done! :-) 21142 BOOT_JDK_FOUND=yes 21143 21144 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21145 21146 # Input might be given as Windows format, start by converting to 21147 # unix format. 21148 path="$BOOT_JDK" 21149 new_path=`$CYGPATH -u "$path"` 21150 21151 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21152 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21153 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21154 # "foo.exe" is OK but "foo" is an error. 21155 # 21156 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21157 # It is also a way to make sure we got the proper file name for the real test later on. 21158 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21159 if test "x$test_shortpath" = x; then 21160 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21161 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21162 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21163 fi 21164 21165 # Call helper function which possibly converts this using DOS-style short mode. 21166 # If so, the updated path is stored in $new_path. 21167 21168 input_path="$new_path" 21169 # Check if we need to convert this using DOS-style short mode. If the path 21170 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21171 # take no chances and rewrite it. 21172 # Note: m4 eats our [], so we need to use [ and ] instead. 21173 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21174 if test "x$has_forbidden_chars" != x; then 21175 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21176 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21177 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21178 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21179 # Going to short mode and back again did indeed matter. Since short mode is 21180 # case insensitive, let's make it lowercase to improve readability. 21181 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21182 # Now convert it back to Unix-stile (cygpath) 21183 input_path=`$CYGPATH -u "$shortmode_path"` 21184 new_path="$input_path" 21185 fi 21186 fi 21187 21188 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21189 if test "x$test_cygdrive_prefix" = x; then 21190 # As a simple fix, exclude /usr/bin since it's not a real path. 21191 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21192 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21193 # a path prefixed by /cygdrive for fixpath to work. 21194 new_path="$CYGWIN_ROOT_PATH$input_path" 21195 fi 21196 fi 21197 21198 21199 if test "x$path" != "x$new_path"; then 21200 BOOT_JDK="$new_path" 21201 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21202 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21203 fi 21204 21205 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21206 21207 path="$BOOT_JDK" 21208 has_colon=`$ECHO $path | $GREP ^.:` 21209 new_path="$path" 21210 if test "x$has_colon" = x; then 21211 # Not in mixed or Windows style, start by that. 21212 new_path=`cmd //c echo $path` 21213 fi 21214 21215 21216 input_path="$new_path" 21217 # Check if we need to convert this using DOS-style short mode. If the path 21218 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21219 # take no chances and rewrite it. 21220 # Note: m4 eats our [], so we need to use [ and ] instead. 21221 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21222 if test "x$has_forbidden_chars" != x; then 21223 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21224 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21225 fi 21226 21227 21228 windows_path="$new_path" 21229 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21230 unix_path=`$CYGPATH -u "$windows_path"` 21231 new_path="$unix_path" 21232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21233 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21234 new_path="$unix_path" 21235 fi 21236 21237 if test "x$path" != "x$new_path"; then 21238 BOOT_JDK="$new_path" 21239 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21240 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21241 fi 21242 21243 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21244 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21245 21246 else 21247 # We're on a posix platform. Hooray! :) 21248 path="$BOOT_JDK" 21249 has_space=`$ECHO "$path" | $GREP " "` 21250 if test "x$has_space" != x; then 21251 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21252 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21253 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21254 fi 21255 21256 # Use eval to expand a potential ~ 21257 eval path="$path" 21258 if test ! -f "$path" && test ! -d "$path"; then 21259 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21260 fi 21261 21262 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21263 fi 21264 21265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21266 $as_echo_n "checking for Boot JDK... " >&6; } 21267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21268 $as_echo "$BOOT_JDK" >&6; } 21269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21270 $as_echo_n "checking Boot JDK version... " >&6; } 21271 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21273 $as_echo "$BOOT_JDK_VERSION" >&6; } 21274 fi # end check jdk version 21275 fi # end check rt.jar 21276 fi # end check javac 21277 fi # end check java 21278 fi # end check boot jdk found 21279 fi 21280 21281 21282 if test "x$BOOT_JDK_FOUND" = xno; then 21283 # Now execute the test 21284 21285 if test "x$PROGRAMW6432" != x; then 21286 VIRTUAL_DIR="$PROGRAMW6432/Java" 21287 21288 windows_path="$VIRTUAL_DIR" 21289 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21290 unix_path=`$CYGPATH -u "$windows_path"` 21291 VIRTUAL_DIR="$unix_path" 21292 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21293 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21294 VIRTUAL_DIR="$unix_path" 21295 fi 21296 21297 21298 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21299 BOOT_JDK_SUFFIX="" 21300 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21301 if test "x$ALL_JDKS_FOUND" != x; then 21302 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21303 21304 if test "x$BOOT_JDK_FOUND" = xno; then 21305 # Now execute the test 21306 21307 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21308 if test -d "$BOOT_JDK"; then 21309 BOOT_JDK_FOUND=maybe 21310 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21311 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21312 fi 21313 21314 21315 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21316 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21317 # Do we have a bin/java? 21318 if test ! -x "$BOOT_JDK/bin/java"; then 21319 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21320 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21321 BOOT_JDK_FOUND=no 21322 else 21323 # Do we have a bin/javac? 21324 if test ! -x "$BOOT_JDK/bin/javac"; then 21325 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21326 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21327 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21328 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21329 BOOT_JDK_FOUND=no 21330 else 21331 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21332 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21333 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21334 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21335 BOOT_JDK_FOUND=no 21336 else 21337 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21338 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21339 21340 # Extra M4 quote needed to protect [] in grep expression. 21341 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21342 if test "x$FOUND_VERSION_78" = x; then 21343 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21344 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21345 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21346 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21347 BOOT_JDK_FOUND=no 21348 else 21349 # We're done! :-) 21350 BOOT_JDK_FOUND=yes 21351 21352 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21353 21354 # Input might be given as Windows format, start by converting to 21355 # unix format. 21356 path="$BOOT_JDK" 21357 new_path=`$CYGPATH -u "$path"` 21358 21359 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21360 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21361 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21362 # "foo.exe" is OK but "foo" is an error. 21363 # 21364 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21365 # It is also a way to make sure we got the proper file name for the real test later on. 21366 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21367 if test "x$test_shortpath" = x; then 21368 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21369 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21370 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21371 fi 21372 21373 # Call helper function which possibly converts this using DOS-style short mode. 21374 # If so, the updated path is stored in $new_path. 21375 21376 input_path="$new_path" 21377 # Check if we need to convert this using DOS-style short mode. If the path 21378 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21379 # take no chances and rewrite it. 21380 # Note: m4 eats our [], so we need to use [ and ] instead. 21381 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21382 if test "x$has_forbidden_chars" != x; then 21383 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21384 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21385 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21386 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21387 # Going to short mode and back again did indeed matter. Since short mode is 21388 # case insensitive, let's make it lowercase to improve readability. 21389 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21390 # Now convert it back to Unix-stile (cygpath) 21391 input_path=`$CYGPATH -u "$shortmode_path"` 21392 new_path="$input_path" 21393 fi 21394 fi 21395 21396 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21397 if test "x$test_cygdrive_prefix" = x; then 21398 # As a simple fix, exclude /usr/bin since it's not a real path. 21399 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21400 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21401 # a path prefixed by /cygdrive for fixpath to work. 21402 new_path="$CYGWIN_ROOT_PATH$input_path" 21403 fi 21404 fi 21405 21406 21407 if test "x$path" != "x$new_path"; then 21408 BOOT_JDK="$new_path" 21409 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21410 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21411 fi 21412 21413 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21414 21415 path="$BOOT_JDK" 21416 has_colon=`$ECHO $path | $GREP ^.:` 21417 new_path="$path" 21418 if test "x$has_colon" = x; then 21419 # Not in mixed or Windows style, start by that. 21420 new_path=`cmd //c echo $path` 21421 fi 21422 21423 21424 input_path="$new_path" 21425 # Check if we need to convert this using DOS-style short mode. If the path 21426 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21427 # take no chances and rewrite it. 21428 # Note: m4 eats our [], so we need to use [ and ] instead. 21429 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21430 if test "x$has_forbidden_chars" != x; then 21431 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21432 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21433 fi 21434 21435 21436 windows_path="$new_path" 21437 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21438 unix_path=`$CYGPATH -u "$windows_path"` 21439 new_path="$unix_path" 21440 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21441 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21442 new_path="$unix_path" 21443 fi 21444 21445 if test "x$path" != "x$new_path"; then 21446 BOOT_JDK="$new_path" 21447 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21448 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21449 fi 21450 21451 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21452 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21453 21454 else 21455 # We're on a posix platform. Hooray! :) 21456 path="$BOOT_JDK" 21457 has_space=`$ECHO "$path" | $GREP " "` 21458 if test "x$has_space" != x; then 21459 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21460 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21461 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21462 fi 21463 21464 # Use eval to expand a potential ~ 21465 eval path="$path" 21466 if test ! -f "$path" && test ! -d "$path"; then 21467 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21468 fi 21469 21470 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21471 fi 21472 21473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21474 $as_echo_n "checking for Boot JDK... " >&6; } 21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21476 $as_echo "$BOOT_JDK" >&6; } 21477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21478 $as_echo_n "checking Boot JDK version... " >&6; } 21479 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21481 $as_echo "$BOOT_JDK_VERSION" >&6; } 21482 fi # end check jdk version 21483 fi # end check rt.jar 21484 fi # end check javac 21485 fi # end check java 21486 fi # end check boot jdk found 21487 fi 21488 21489 done 21490 fi 21491 21492 fi 21493 21494 21495 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21496 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21497 # Do we have a bin/java? 21498 if test ! -x "$BOOT_JDK/bin/java"; then 21499 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21500 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21501 BOOT_JDK_FOUND=no 21502 else 21503 # Do we have a bin/javac? 21504 if test ! -x "$BOOT_JDK/bin/javac"; then 21505 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21506 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21507 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21508 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21509 BOOT_JDK_FOUND=no 21510 else 21511 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21512 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21513 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21514 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21515 BOOT_JDK_FOUND=no 21516 else 21517 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21518 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21519 21520 # Extra M4 quote needed to protect [] in grep expression. 21521 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21522 if test "x$FOUND_VERSION_78" = x; then 21523 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21524 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21525 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21526 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21527 BOOT_JDK_FOUND=no 21528 else 21529 # We're done! :-) 21530 BOOT_JDK_FOUND=yes 21531 21532 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21533 21534 # Input might be given as Windows format, start by converting to 21535 # unix format. 21536 path="$BOOT_JDK" 21537 new_path=`$CYGPATH -u "$path"` 21538 21539 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21540 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21541 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21542 # "foo.exe" is OK but "foo" is an error. 21543 # 21544 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21545 # It is also a way to make sure we got the proper file name for the real test later on. 21546 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21547 if test "x$test_shortpath" = x; then 21548 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21549 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21550 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21551 fi 21552 21553 # Call helper function which possibly converts this using DOS-style short mode. 21554 # If so, the updated path is stored in $new_path. 21555 21556 input_path="$new_path" 21557 # Check if we need to convert this using DOS-style short mode. If the path 21558 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21559 # take no chances and rewrite it. 21560 # Note: m4 eats our [], so we need to use [ and ] instead. 21561 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21562 if test "x$has_forbidden_chars" != x; then 21563 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21564 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21565 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21566 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21567 # Going to short mode and back again did indeed matter. Since short mode is 21568 # case insensitive, let's make it lowercase to improve readability. 21569 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21570 # Now convert it back to Unix-stile (cygpath) 21571 input_path=`$CYGPATH -u "$shortmode_path"` 21572 new_path="$input_path" 21573 fi 21574 fi 21575 21576 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21577 if test "x$test_cygdrive_prefix" = x; then 21578 # As a simple fix, exclude /usr/bin since it's not a real path. 21579 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21580 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21581 # a path prefixed by /cygdrive for fixpath to work. 21582 new_path="$CYGWIN_ROOT_PATH$input_path" 21583 fi 21584 fi 21585 21586 21587 if test "x$path" != "x$new_path"; then 21588 BOOT_JDK="$new_path" 21589 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21590 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21591 fi 21592 21593 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21594 21595 path="$BOOT_JDK" 21596 has_colon=`$ECHO $path | $GREP ^.:` 21597 new_path="$path" 21598 if test "x$has_colon" = x; then 21599 # Not in mixed or Windows style, start by that. 21600 new_path=`cmd //c echo $path` 21601 fi 21602 21603 21604 input_path="$new_path" 21605 # Check if we need to convert this using DOS-style short mode. If the path 21606 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21607 # take no chances and rewrite it. 21608 # Note: m4 eats our [], so we need to use [ and ] instead. 21609 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21610 if test "x$has_forbidden_chars" != x; then 21611 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21612 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21613 fi 21614 21615 21616 windows_path="$new_path" 21617 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21618 unix_path=`$CYGPATH -u "$windows_path"` 21619 new_path="$unix_path" 21620 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21621 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21622 new_path="$unix_path" 21623 fi 21624 21625 if test "x$path" != "x$new_path"; then 21626 BOOT_JDK="$new_path" 21627 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21628 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21629 fi 21630 21631 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21632 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21633 21634 else 21635 # We're on a posix platform. Hooray! :) 21636 path="$BOOT_JDK" 21637 has_space=`$ECHO "$path" | $GREP " "` 21638 if test "x$has_space" != x; then 21639 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21640 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21641 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21642 fi 21643 21644 # Use eval to expand a potential ~ 21645 eval path="$path" 21646 if test ! -f "$path" && test ! -d "$path"; then 21647 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21648 fi 21649 21650 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21651 fi 21652 21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21654 $as_echo_n "checking for Boot JDK... " >&6; } 21655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21656 $as_echo "$BOOT_JDK" >&6; } 21657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21658 $as_echo_n "checking Boot JDK version... " >&6; } 21659 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21661 $as_echo "$BOOT_JDK_VERSION" >&6; } 21662 fi # end check jdk version 21663 fi # end check rt.jar 21664 fi # end check javac 21665 fi # end check java 21666 fi # end check boot jdk found 21667 fi 21668 21669 21670 if test "x$BOOT_JDK_FOUND" = xno; then 21671 # Now execute the test 21672 21673 if test "x$PROGRAMFILES" != x; then 21674 VIRTUAL_DIR="$PROGRAMFILES/Java" 21675 21676 windows_path="$VIRTUAL_DIR" 21677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21678 unix_path=`$CYGPATH -u "$windows_path"` 21679 VIRTUAL_DIR="$unix_path" 21680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21681 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21682 VIRTUAL_DIR="$unix_path" 21683 fi 21684 21685 21686 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 21687 BOOT_JDK_SUFFIX="" 21688 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 21689 if test "x$ALL_JDKS_FOUND" != x; then 21690 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 21691 21692 if test "x$BOOT_JDK_FOUND" = xno; then 21693 # Now execute the test 21694 21695 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 21696 if test -d "$BOOT_JDK"; then 21697 BOOT_JDK_FOUND=maybe 21698 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 21699 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 21700 fi 21701 21702 21703 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21704 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21705 # Do we have a bin/java? 21706 if test ! -x "$BOOT_JDK/bin/java"; then 21707 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21708 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21709 BOOT_JDK_FOUND=no 21710 else 21711 # Do we have a bin/javac? 21712 if test ! -x "$BOOT_JDK/bin/javac"; then 21713 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21714 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21715 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21716 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21717 BOOT_JDK_FOUND=no 21718 else 21719 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21720 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21721 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21722 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21723 BOOT_JDK_FOUND=no 21724 else 21725 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21726 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21727 21728 # Extra M4 quote needed to protect [] in grep expression. 21729 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21730 if test "x$FOUND_VERSION_78" = x; then 21731 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21732 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21733 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21734 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21735 BOOT_JDK_FOUND=no 21736 else 21737 # We're done! :-) 21738 BOOT_JDK_FOUND=yes 21739 21740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21741 21742 # Input might be given as Windows format, start by converting to 21743 # unix format. 21744 path="$BOOT_JDK" 21745 new_path=`$CYGPATH -u "$path"` 21746 21747 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21748 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21749 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21750 # "foo.exe" is OK but "foo" is an error. 21751 # 21752 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21753 # It is also a way to make sure we got the proper file name for the real test later on. 21754 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21755 if test "x$test_shortpath" = x; then 21756 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21757 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21758 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21759 fi 21760 21761 # Call helper function which possibly converts this using DOS-style short mode. 21762 # If so, the updated path is stored in $new_path. 21763 21764 input_path="$new_path" 21765 # Check if we need to convert this using DOS-style short mode. If the path 21766 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21767 # take no chances and rewrite it. 21768 # Note: m4 eats our [], so we need to use [ and ] instead. 21769 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21770 if test "x$has_forbidden_chars" != x; then 21771 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21772 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21773 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21774 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21775 # Going to short mode and back again did indeed matter. Since short mode is 21776 # case insensitive, let's make it lowercase to improve readability. 21777 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21778 # Now convert it back to Unix-stile (cygpath) 21779 input_path=`$CYGPATH -u "$shortmode_path"` 21780 new_path="$input_path" 21781 fi 21782 fi 21783 21784 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21785 if test "x$test_cygdrive_prefix" = x; then 21786 # As a simple fix, exclude /usr/bin since it's not a real path. 21787 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21788 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21789 # a path prefixed by /cygdrive for fixpath to work. 21790 new_path="$CYGWIN_ROOT_PATH$input_path" 21791 fi 21792 fi 21793 21794 21795 if test "x$path" != "x$new_path"; then 21796 BOOT_JDK="$new_path" 21797 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21798 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21799 fi 21800 21801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21802 21803 path="$BOOT_JDK" 21804 has_colon=`$ECHO $path | $GREP ^.:` 21805 new_path="$path" 21806 if test "x$has_colon" = x; then 21807 # Not in mixed or Windows style, start by that. 21808 new_path=`cmd //c echo $path` 21809 fi 21810 21811 21812 input_path="$new_path" 21813 # Check if we need to convert this using DOS-style short mode. If the path 21814 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21815 # take no chances and rewrite it. 21816 # Note: m4 eats our [], so we need to use [ and ] instead. 21817 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21818 if test "x$has_forbidden_chars" != x; then 21819 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21820 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21821 fi 21822 21823 21824 windows_path="$new_path" 21825 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21826 unix_path=`$CYGPATH -u "$windows_path"` 21827 new_path="$unix_path" 21828 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21829 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 21830 new_path="$unix_path" 21831 fi 21832 21833 if test "x$path" != "x$new_path"; then 21834 BOOT_JDK="$new_path" 21835 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21836 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21837 fi 21838 21839 # Save the first 10 bytes of this path to the storage, so fixpath can work. 21840 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 21841 21842 else 21843 # We're on a posix platform. Hooray! :) 21844 path="$BOOT_JDK" 21845 has_space=`$ECHO "$path" | $GREP " "` 21846 if test "x$has_space" != x; then 21847 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21848 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21849 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 21850 fi 21851 21852 # Use eval to expand a potential ~ 21853 eval path="$path" 21854 if test ! -f "$path" && test ! -d "$path"; then 21855 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 21856 fi 21857 21858 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 21859 fi 21860 21861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 21862 $as_echo_n "checking for Boot JDK... " >&6; } 21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 21864 $as_echo "$BOOT_JDK" >&6; } 21865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 21866 $as_echo_n "checking Boot JDK version... " >&6; } 21867 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 21868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 21869 $as_echo "$BOOT_JDK_VERSION" >&6; } 21870 fi # end check jdk version 21871 fi # end check rt.jar 21872 fi # end check javac 21873 fi # end check java 21874 fi # end check boot jdk found 21875 fi 21876 21877 done 21878 fi 21879 21880 fi 21881 21882 21883 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 21884 if test "x$BOOT_JDK_FOUND" = xmaybe; then 21885 # Do we have a bin/java? 21886 if test ! -x "$BOOT_JDK/bin/java"; then 21887 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 21888 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 21889 BOOT_JDK_FOUND=no 21890 else 21891 # Do we have a bin/javac? 21892 if test ! -x "$BOOT_JDK/bin/javac"; then 21893 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 21894 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 21895 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 21896 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 21897 BOOT_JDK_FOUND=no 21898 else 21899 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 21900 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 21901 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 21902 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 21903 BOOT_JDK_FOUND=no 21904 else 21905 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 21906 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 21907 21908 # Extra M4 quote needed to protect [] in grep expression. 21909 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 21910 if test "x$FOUND_VERSION_78" = x; then 21911 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 21912 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 21913 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 21914 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 21915 BOOT_JDK_FOUND=no 21916 else 21917 # We're done! :-) 21918 BOOT_JDK_FOUND=yes 21919 21920 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 21921 21922 # Input might be given as Windows format, start by converting to 21923 # unix format. 21924 path="$BOOT_JDK" 21925 new_path=`$CYGPATH -u "$path"` 21926 21927 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 21928 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 21929 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 21930 # "foo.exe" is OK but "foo" is an error. 21931 # 21932 # This test is therefore slightly more accurate than "test -f" to check for file precense. 21933 # It is also a way to make sure we got the proper file name for the real test later on. 21934 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 21935 if test "x$test_shortpath" = x; then 21936 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 21937 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 21938 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 21939 fi 21940 21941 # Call helper function which possibly converts this using DOS-style short mode. 21942 # If so, the updated path is stored in $new_path. 21943 21944 input_path="$new_path" 21945 # Check if we need to convert this using DOS-style short mode. If the path 21946 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21947 # take no chances and rewrite it. 21948 # Note: m4 eats our [], so we need to use [ and ] instead. 21949 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 21950 if test "x$has_forbidden_chars" != x; then 21951 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 21952 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 21953 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 21954 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 21955 # Going to short mode and back again did indeed matter. Since short mode is 21956 # case insensitive, let's make it lowercase to improve readability. 21957 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 21958 # Now convert it back to Unix-stile (cygpath) 21959 input_path=`$CYGPATH -u "$shortmode_path"` 21960 new_path="$input_path" 21961 fi 21962 fi 21963 21964 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 21965 if test "x$test_cygdrive_prefix" = x; then 21966 # As a simple fix, exclude /usr/bin since it's not a real path. 21967 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 21968 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 21969 # a path prefixed by /cygdrive for fixpath to work. 21970 new_path="$CYGWIN_ROOT_PATH$input_path" 21971 fi 21972 fi 21973 21974 21975 if test "x$path" != "x$new_path"; then 21976 BOOT_JDK="$new_path" 21977 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 21978 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 21979 fi 21980 21981 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 21982 21983 path="$BOOT_JDK" 21984 has_colon=`$ECHO $path | $GREP ^.:` 21985 new_path="$path" 21986 if test "x$has_colon" = x; then 21987 # Not in mixed or Windows style, start by that. 21988 new_path=`cmd //c echo $path` 21989 fi 21990 21991 21992 input_path="$new_path" 21993 # Check if we need to convert this using DOS-style short mode. If the path 21994 # contains just simple characters, use it. Otherwise (spaces, weird characters), 21995 # take no chances and rewrite it. 21996 # Note: m4 eats our [], so we need to use [ and ] instead. 21997 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 21998 if test "x$has_forbidden_chars" != x; then 21999 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22000 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22001 fi 22002 22003 22004 windows_path="$new_path" 22005 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22006 unix_path=`$CYGPATH -u "$windows_path"` 22007 new_path="$unix_path" 22008 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22009 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22010 new_path="$unix_path" 22011 fi 22012 22013 if test "x$path" != "x$new_path"; then 22014 BOOT_JDK="$new_path" 22015 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22016 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22017 fi 22018 22019 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22020 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22021 22022 else 22023 # We're on a posix platform. Hooray! :) 22024 path="$BOOT_JDK" 22025 has_space=`$ECHO "$path" | $GREP " "` 22026 if test "x$has_space" != x; then 22027 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22028 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22029 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22030 fi 22031 22032 # Use eval to expand a potential ~ 22033 eval path="$path" 22034 if test ! -f "$path" && test ! -d "$path"; then 22035 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22036 fi 22037 22038 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22039 fi 22040 22041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22042 $as_echo_n "checking for Boot JDK... " >&6; } 22043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22044 $as_echo "$BOOT_JDK" >&6; } 22045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22046 $as_echo_n "checking Boot JDK version... " >&6; } 22047 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22049 $as_echo "$BOOT_JDK_VERSION" >&6; } 22050 fi # end check jdk version 22051 fi # end check rt.jar 22052 fi # end check javac 22053 fi # end check java 22054 fi # end check boot jdk found 22055 fi 22056 22057 22058 if test "x$BOOT_JDK_FOUND" = xno; then 22059 # Now execute the test 22060 22061 if test "x$ProgramFiles" != x; then 22062 VIRTUAL_DIR="$ProgramFiles/Java" 22063 22064 windows_path="$VIRTUAL_DIR" 22065 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22066 unix_path=`$CYGPATH -u "$windows_path"` 22067 VIRTUAL_DIR="$unix_path" 22068 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22069 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22070 VIRTUAL_DIR="$unix_path" 22071 fi 22072 22073 22074 BOOT_JDK_PREFIX="$VIRTUAL_DIR" 22075 BOOT_JDK_SUFFIX="" 22076 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22077 if test "x$ALL_JDKS_FOUND" != x; then 22078 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22079 22080 if test "x$BOOT_JDK_FOUND" = xno; then 22081 # Now execute the test 22082 22083 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22084 if test -d "$BOOT_JDK"; then 22085 BOOT_JDK_FOUND=maybe 22086 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22087 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22088 fi 22089 22090 22091 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22092 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22093 # Do we have a bin/java? 22094 if test ! -x "$BOOT_JDK/bin/java"; then 22095 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22096 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22097 BOOT_JDK_FOUND=no 22098 else 22099 # Do we have a bin/javac? 22100 if test ! -x "$BOOT_JDK/bin/javac"; then 22101 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22102 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22104 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22105 BOOT_JDK_FOUND=no 22106 else 22107 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22108 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22109 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22110 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22111 BOOT_JDK_FOUND=no 22112 else 22113 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22114 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22115 22116 # Extra M4 quote needed to protect [] in grep expression. 22117 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22118 if test "x$FOUND_VERSION_78" = x; then 22119 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22120 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22121 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22122 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22123 BOOT_JDK_FOUND=no 22124 else 22125 # We're done! :-) 22126 BOOT_JDK_FOUND=yes 22127 22128 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22129 22130 # Input might be given as Windows format, start by converting to 22131 # unix format. 22132 path="$BOOT_JDK" 22133 new_path=`$CYGPATH -u "$path"` 22134 22135 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22136 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22137 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22138 # "foo.exe" is OK but "foo" is an error. 22139 # 22140 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22141 # It is also a way to make sure we got the proper file name for the real test later on. 22142 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22143 if test "x$test_shortpath" = x; then 22144 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22145 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22146 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22147 fi 22148 22149 # Call helper function which possibly converts this using DOS-style short mode. 22150 # If so, the updated path is stored in $new_path. 22151 22152 input_path="$new_path" 22153 # Check if we need to convert this using DOS-style short mode. If the path 22154 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22155 # take no chances and rewrite it. 22156 # Note: m4 eats our [], so we need to use [ and ] instead. 22157 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22158 if test "x$has_forbidden_chars" != x; then 22159 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22160 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22161 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22162 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22163 # Going to short mode and back again did indeed matter. Since short mode is 22164 # case insensitive, let's make it lowercase to improve readability. 22165 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22166 # Now convert it back to Unix-stile (cygpath) 22167 input_path=`$CYGPATH -u "$shortmode_path"` 22168 new_path="$input_path" 22169 fi 22170 fi 22171 22172 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22173 if test "x$test_cygdrive_prefix" = x; then 22174 # As a simple fix, exclude /usr/bin since it's not a real path. 22175 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22176 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22177 # a path prefixed by /cygdrive for fixpath to work. 22178 new_path="$CYGWIN_ROOT_PATH$input_path" 22179 fi 22180 fi 22181 22182 22183 if test "x$path" != "x$new_path"; then 22184 BOOT_JDK="$new_path" 22185 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22186 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22187 fi 22188 22189 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22190 22191 path="$BOOT_JDK" 22192 has_colon=`$ECHO $path | $GREP ^.:` 22193 new_path="$path" 22194 if test "x$has_colon" = x; then 22195 # Not in mixed or Windows style, start by that. 22196 new_path=`cmd //c echo $path` 22197 fi 22198 22199 22200 input_path="$new_path" 22201 # Check if we need to convert this using DOS-style short mode. If the path 22202 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22203 # take no chances and rewrite it. 22204 # Note: m4 eats our [], so we need to use [ and ] instead. 22205 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22206 if test "x$has_forbidden_chars" != x; then 22207 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22208 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22209 fi 22210 22211 22212 windows_path="$new_path" 22213 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22214 unix_path=`$CYGPATH -u "$windows_path"` 22215 new_path="$unix_path" 22216 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22217 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22218 new_path="$unix_path" 22219 fi 22220 22221 if test "x$path" != "x$new_path"; then 22222 BOOT_JDK="$new_path" 22223 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22224 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22225 fi 22226 22227 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22228 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22229 22230 else 22231 # We're on a posix platform. Hooray! :) 22232 path="$BOOT_JDK" 22233 has_space=`$ECHO "$path" | $GREP " "` 22234 if test "x$has_space" != x; then 22235 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22236 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22237 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22238 fi 22239 22240 # Use eval to expand a potential ~ 22241 eval path="$path" 22242 if test ! -f "$path" && test ! -d "$path"; then 22243 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22244 fi 22245 22246 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22247 fi 22248 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22250 $as_echo_n "checking for Boot JDK... " >&6; } 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22252 $as_echo "$BOOT_JDK" >&6; } 22253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22254 $as_echo_n "checking Boot JDK version... " >&6; } 22255 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22257 $as_echo "$BOOT_JDK_VERSION" >&6; } 22258 fi # end check jdk version 22259 fi # end check rt.jar 22260 fi # end check javac 22261 fi # end check java 22262 fi # end check boot jdk found 22263 fi 22264 22265 done 22266 fi 22267 22268 fi 22269 22270 22271 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22272 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22273 # Do we have a bin/java? 22274 if test ! -x "$BOOT_JDK/bin/java"; then 22275 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22276 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22277 BOOT_JDK_FOUND=no 22278 else 22279 # Do we have a bin/javac? 22280 if test ! -x "$BOOT_JDK/bin/javac"; then 22281 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22282 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22283 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22284 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22285 BOOT_JDK_FOUND=no 22286 else 22287 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22288 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22289 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22290 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22291 BOOT_JDK_FOUND=no 22292 else 22293 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22294 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22295 22296 # Extra M4 quote needed to protect [] in grep expression. 22297 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22298 if test "x$FOUND_VERSION_78" = x; then 22299 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22300 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22301 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22302 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22303 BOOT_JDK_FOUND=no 22304 else 22305 # We're done! :-) 22306 BOOT_JDK_FOUND=yes 22307 22308 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22309 22310 # Input might be given as Windows format, start by converting to 22311 # unix format. 22312 path="$BOOT_JDK" 22313 new_path=`$CYGPATH -u "$path"` 22314 22315 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22316 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22317 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22318 # "foo.exe" is OK but "foo" is an error. 22319 # 22320 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22321 # It is also a way to make sure we got the proper file name for the real test later on. 22322 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22323 if test "x$test_shortpath" = x; then 22324 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22325 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22326 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22327 fi 22328 22329 # Call helper function which possibly converts this using DOS-style short mode. 22330 # If so, the updated path is stored in $new_path. 22331 22332 input_path="$new_path" 22333 # Check if we need to convert this using DOS-style short mode. If the path 22334 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22335 # take no chances and rewrite it. 22336 # Note: m4 eats our [], so we need to use [ and ] instead. 22337 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22338 if test "x$has_forbidden_chars" != x; then 22339 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22340 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22341 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22342 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22343 # Going to short mode and back again did indeed matter. Since short mode is 22344 # case insensitive, let's make it lowercase to improve readability. 22345 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22346 # Now convert it back to Unix-stile (cygpath) 22347 input_path=`$CYGPATH -u "$shortmode_path"` 22348 new_path="$input_path" 22349 fi 22350 fi 22351 22352 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22353 if test "x$test_cygdrive_prefix" = x; then 22354 # As a simple fix, exclude /usr/bin since it's not a real path. 22355 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22356 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22357 # a path prefixed by /cygdrive for fixpath to work. 22358 new_path="$CYGWIN_ROOT_PATH$input_path" 22359 fi 22360 fi 22361 22362 22363 if test "x$path" != "x$new_path"; then 22364 BOOT_JDK="$new_path" 22365 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22366 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22367 fi 22368 22369 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22370 22371 path="$BOOT_JDK" 22372 has_colon=`$ECHO $path | $GREP ^.:` 22373 new_path="$path" 22374 if test "x$has_colon" = x; then 22375 # Not in mixed or Windows style, start by that. 22376 new_path=`cmd //c echo $path` 22377 fi 22378 22379 22380 input_path="$new_path" 22381 # Check if we need to convert this using DOS-style short mode. If the path 22382 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22383 # take no chances and rewrite it. 22384 # Note: m4 eats our [], so we need to use [ and ] instead. 22385 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22386 if test "x$has_forbidden_chars" != x; then 22387 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22388 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22389 fi 22390 22391 22392 windows_path="$new_path" 22393 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22394 unix_path=`$CYGPATH -u "$windows_path"` 22395 new_path="$unix_path" 22396 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22397 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22398 new_path="$unix_path" 22399 fi 22400 22401 if test "x$path" != "x$new_path"; then 22402 BOOT_JDK="$new_path" 22403 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22404 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22405 fi 22406 22407 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22408 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22409 22410 else 22411 # We're on a posix platform. Hooray! :) 22412 path="$BOOT_JDK" 22413 has_space=`$ECHO "$path" | $GREP " "` 22414 if test "x$has_space" != x; then 22415 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22416 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22417 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22418 fi 22419 22420 # Use eval to expand a potential ~ 22421 eval path="$path" 22422 if test ! -f "$path" && test ! -d "$path"; then 22423 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22424 fi 22425 22426 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22427 fi 22428 22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22430 $as_echo_n "checking for Boot JDK... " >&6; } 22431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22432 $as_echo "$BOOT_JDK" >&6; } 22433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22434 $as_echo_n "checking Boot JDK version... " >&6; } 22435 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22437 $as_echo "$BOOT_JDK_VERSION" >&6; } 22438 fi # end check jdk version 22439 fi # end check rt.jar 22440 fi # end check javac 22441 fi # end check java 22442 fi # end check boot jdk found 22443 fi 22444 22445 22446 if test "x$BOOT_JDK_FOUND" = xno; then 22447 # Now execute the test 22448 22449 BOOT_JDK_PREFIX="/cygdrive/c/Program Files/Java" 22450 BOOT_JDK_SUFFIX="" 22451 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22452 if test "x$ALL_JDKS_FOUND" != x; then 22453 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22454 22455 if test "x$BOOT_JDK_FOUND" = xno; then 22456 # Now execute the test 22457 22458 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22459 if test -d "$BOOT_JDK"; then 22460 BOOT_JDK_FOUND=maybe 22461 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22462 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22463 fi 22464 22465 22466 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22467 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22468 # Do we have a bin/java? 22469 if test ! -x "$BOOT_JDK/bin/java"; then 22470 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22471 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22472 BOOT_JDK_FOUND=no 22473 else 22474 # Do we have a bin/javac? 22475 if test ! -x "$BOOT_JDK/bin/javac"; then 22476 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22477 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22478 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22479 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22480 BOOT_JDK_FOUND=no 22481 else 22482 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22483 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22484 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22485 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22486 BOOT_JDK_FOUND=no 22487 else 22488 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22489 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22490 22491 # Extra M4 quote needed to protect [] in grep expression. 22492 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22493 if test "x$FOUND_VERSION_78" = x; then 22494 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22495 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22496 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22497 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22498 BOOT_JDK_FOUND=no 22499 else 22500 # We're done! :-) 22501 BOOT_JDK_FOUND=yes 22502 22503 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22504 22505 # Input might be given as Windows format, start by converting to 22506 # unix format. 22507 path="$BOOT_JDK" 22508 new_path=`$CYGPATH -u "$path"` 22509 22510 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22511 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22512 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22513 # "foo.exe" is OK but "foo" is an error. 22514 # 22515 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22516 # It is also a way to make sure we got the proper file name for the real test later on. 22517 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22518 if test "x$test_shortpath" = x; then 22519 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22520 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22521 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22522 fi 22523 22524 # Call helper function which possibly converts this using DOS-style short mode. 22525 # If so, the updated path is stored in $new_path. 22526 22527 input_path="$new_path" 22528 # Check if we need to convert this using DOS-style short mode. If the path 22529 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22530 # take no chances and rewrite it. 22531 # Note: m4 eats our [], so we need to use [ and ] instead. 22532 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22533 if test "x$has_forbidden_chars" != x; then 22534 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22535 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22536 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22537 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22538 # Going to short mode and back again did indeed matter. Since short mode is 22539 # case insensitive, let's make it lowercase to improve readability. 22540 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22541 # Now convert it back to Unix-stile (cygpath) 22542 input_path=`$CYGPATH -u "$shortmode_path"` 22543 new_path="$input_path" 22544 fi 22545 fi 22546 22547 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22548 if test "x$test_cygdrive_prefix" = x; then 22549 # As a simple fix, exclude /usr/bin since it's not a real path. 22550 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22551 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22552 # a path prefixed by /cygdrive for fixpath to work. 22553 new_path="$CYGWIN_ROOT_PATH$input_path" 22554 fi 22555 fi 22556 22557 22558 if test "x$path" != "x$new_path"; then 22559 BOOT_JDK="$new_path" 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22561 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22562 fi 22563 22564 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22565 22566 path="$BOOT_JDK" 22567 has_colon=`$ECHO $path | $GREP ^.:` 22568 new_path="$path" 22569 if test "x$has_colon" = x; then 22570 # Not in mixed or Windows style, start by that. 22571 new_path=`cmd //c echo $path` 22572 fi 22573 22574 22575 input_path="$new_path" 22576 # Check if we need to convert this using DOS-style short mode. If the path 22577 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22578 # take no chances and rewrite it. 22579 # Note: m4 eats our [], so we need to use [ and ] instead. 22580 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22581 if test "x$has_forbidden_chars" != x; then 22582 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22583 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22584 fi 22585 22586 22587 windows_path="$new_path" 22588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22589 unix_path=`$CYGPATH -u "$windows_path"` 22590 new_path="$unix_path" 22591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22593 new_path="$unix_path" 22594 fi 22595 22596 if test "x$path" != "x$new_path"; then 22597 BOOT_JDK="$new_path" 22598 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22599 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22600 fi 22601 22602 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22603 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22604 22605 else 22606 # We're on a posix platform. Hooray! :) 22607 path="$BOOT_JDK" 22608 has_space=`$ECHO "$path" | $GREP " "` 22609 if test "x$has_space" != x; then 22610 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22611 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22612 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22613 fi 22614 22615 # Use eval to expand a potential ~ 22616 eval path="$path" 22617 if test ! -f "$path" && test ! -d "$path"; then 22618 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22619 fi 22620 22621 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22622 fi 22623 22624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22625 $as_echo_n "checking for Boot JDK... " >&6; } 22626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22627 $as_echo "$BOOT_JDK" >&6; } 22628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22629 $as_echo_n "checking Boot JDK version... " >&6; } 22630 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22632 $as_echo "$BOOT_JDK_VERSION" >&6; } 22633 fi # end check jdk version 22634 fi # end check rt.jar 22635 fi # end check javac 22636 fi # end check java 22637 fi # end check boot jdk found 22638 fi 22639 22640 done 22641 fi 22642 22643 22644 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22645 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22646 # Do we have a bin/java? 22647 if test ! -x "$BOOT_JDK/bin/java"; then 22648 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22649 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22650 BOOT_JDK_FOUND=no 22651 else 22652 # Do we have a bin/javac? 22653 if test ! -x "$BOOT_JDK/bin/javac"; then 22654 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22655 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22656 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22657 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22658 BOOT_JDK_FOUND=no 22659 else 22660 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22661 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22662 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22663 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22664 BOOT_JDK_FOUND=no 22665 else 22666 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22667 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22668 22669 # Extra M4 quote needed to protect [] in grep expression. 22670 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22671 if test "x$FOUND_VERSION_78" = x; then 22672 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22673 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22674 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22675 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22676 BOOT_JDK_FOUND=no 22677 else 22678 # We're done! :-) 22679 BOOT_JDK_FOUND=yes 22680 22681 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22682 22683 # Input might be given as Windows format, start by converting to 22684 # unix format. 22685 path="$BOOT_JDK" 22686 new_path=`$CYGPATH -u "$path"` 22687 22688 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22689 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22690 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22691 # "foo.exe" is OK but "foo" is an error. 22692 # 22693 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22694 # It is also a way to make sure we got the proper file name for the real test later on. 22695 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22696 if test "x$test_shortpath" = x; then 22697 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22698 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22699 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22700 fi 22701 22702 # Call helper function which possibly converts this using DOS-style short mode. 22703 # If so, the updated path is stored in $new_path. 22704 22705 input_path="$new_path" 22706 # Check if we need to convert this using DOS-style short mode. If the path 22707 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22708 # take no chances and rewrite it. 22709 # Note: m4 eats our [], so we need to use [ and ] instead. 22710 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22711 if test "x$has_forbidden_chars" != x; then 22712 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22713 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22714 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22715 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22716 # Going to short mode and back again did indeed matter. Since short mode is 22717 # case insensitive, let's make it lowercase to improve readability. 22718 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22719 # Now convert it back to Unix-stile (cygpath) 22720 input_path=`$CYGPATH -u "$shortmode_path"` 22721 new_path="$input_path" 22722 fi 22723 fi 22724 22725 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22726 if test "x$test_cygdrive_prefix" = x; then 22727 # As a simple fix, exclude /usr/bin since it's not a real path. 22728 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22729 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22730 # a path prefixed by /cygdrive for fixpath to work. 22731 new_path="$CYGWIN_ROOT_PATH$input_path" 22732 fi 22733 fi 22734 22735 22736 if test "x$path" != "x$new_path"; then 22737 BOOT_JDK="$new_path" 22738 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22739 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22740 fi 22741 22742 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22743 22744 path="$BOOT_JDK" 22745 has_colon=`$ECHO $path | $GREP ^.:` 22746 new_path="$path" 22747 if test "x$has_colon" = x; then 22748 # Not in mixed or Windows style, start by that. 22749 new_path=`cmd //c echo $path` 22750 fi 22751 22752 22753 input_path="$new_path" 22754 # Check if we need to convert this using DOS-style short mode. If the path 22755 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22756 # take no chances and rewrite it. 22757 # Note: m4 eats our [], so we need to use [ and ] instead. 22758 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22759 if test "x$has_forbidden_chars" != x; then 22760 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22761 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22762 fi 22763 22764 22765 windows_path="$new_path" 22766 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22767 unix_path=`$CYGPATH -u "$windows_path"` 22768 new_path="$unix_path" 22769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22770 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22771 new_path="$unix_path" 22772 fi 22773 22774 if test "x$path" != "x$new_path"; then 22775 BOOT_JDK="$new_path" 22776 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22777 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22778 fi 22779 22780 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22781 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22782 22783 else 22784 # We're on a posix platform. Hooray! :) 22785 path="$BOOT_JDK" 22786 has_space=`$ECHO "$path" | $GREP " "` 22787 if test "x$has_space" != x; then 22788 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22789 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22790 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22791 fi 22792 22793 # Use eval to expand a potential ~ 22794 eval path="$path" 22795 if test ! -f "$path" && test ! -d "$path"; then 22796 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22797 fi 22798 22799 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22800 fi 22801 22802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22803 $as_echo_n "checking for Boot JDK... " >&6; } 22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 22805 $as_echo "$BOOT_JDK" >&6; } 22806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 22807 $as_echo_n "checking Boot JDK version... " >&6; } 22808 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 22810 $as_echo "$BOOT_JDK_VERSION" >&6; } 22811 fi # end check jdk version 22812 fi # end check rt.jar 22813 fi # end check javac 22814 fi # end check java 22815 fi # end check boot jdk found 22816 fi 22817 22818 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 22819 22820 if test "x$BOOT_JDK_FOUND" = xno; then 22821 # Now execute the test 22822 22823 BOOT_JDK_PREFIX="/Library/Java/JavaVirtualMachines" 22824 BOOT_JDK_SUFFIX="/Contents/Home" 22825 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 22826 if test "x$ALL_JDKS_FOUND" != x; then 22827 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 22828 22829 if test "x$BOOT_JDK_FOUND" = xno; then 22830 # Now execute the test 22831 22832 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 22833 if test -d "$BOOT_JDK"; then 22834 BOOT_JDK_FOUND=maybe 22835 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 22836 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 22837 fi 22838 22839 22840 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 22841 if test "x$BOOT_JDK_FOUND" = xmaybe; then 22842 # Do we have a bin/java? 22843 if test ! -x "$BOOT_JDK/bin/java"; then 22844 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 22845 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 22846 BOOT_JDK_FOUND=no 22847 else 22848 # Do we have a bin/javac? 22849 if test ! -x "$BOOT_JDK/bin/javac"; then 22850 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 22851 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 22852 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 22853 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 22854 BOOT_JDK_FOUND=no 22855 else 22856 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 22857 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 22858 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 22859 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 22860 BOOT_JDK_FOUND=no 22861 else 22862 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 22863 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 22864 22865 # Extra M4 quote needed to protect [] in grep expression. 22866 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 22867 if test "x$FOUND_VERSION_78" = x; then 22868 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 22869 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 22870 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 22871 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 22872 BOOT_JDK_FOUND=no 22873 else 22874 # We're done! :-) 22875 BOOT_JDK_FOUND=yes 22876 22877 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22878 22879 # Input might be given as Windows format, start by converting to 22880 # unix format. 22881 path="$BOOT_JDK" 22882 new_path=`$CYGPATH -u "$path"` 22883 22884 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 22885 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 22886 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 22887 # "foo.exe" is OK but "foo" is an error. 22888 # 22889 # This test is therefore slightly more accurate than "test -f" to check for file precense. 22890 # It is also a way to make sure we got the proper file name for the real test later on. 22891 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 22892 if test "x$test_shortpath" = x; then 22893 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22894 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22895 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 22896 fi 22897 22898 # Call helper function which possibly converts this using DOS-style short mode. 22899 # If so, the updated path is stored in $new_path. 22900 22901 input_path="$new_path" 22902 # Check if we need to convert this using DOS-style short mode. If the path 22903 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22904 # take no chances and rewrite it. 22905 # Note: m4 eats our [], so we need to use [ and ] instead. 22906 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 22907 if test "x$has_forbidden_chars" != x; then 22908 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22909 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 22910 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 22911 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 22912 # Going to short mode and back again did indeed matter. Since short mode is 22913 # case insensitive, let's make it lowercase to improve readability. 22914 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22915 # Now convert it back to Unix-stile (cygpath) 22916 input_path=`$CYGPATH -u "$shortmode_path"` 22917 new_path="$input_path" 22918 fi 22919 fi 22920 22921 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 22922 if test "x$test_cygdrive_prefix" = x; then 22923 # As a simple fix, exclude /usr/bin since it's not a real path. 22924 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 22925 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 22926 # a path prefixed by /cygdrive for fixpath to work. 22927 new_path="$CYGWIN_ROOT_PATH$input_path" 22928 fi 22929 fi 22930 22931 22932 if test "x$path" != "x$new_path"; then 22933 BOOT_JDK="$new_path" 22934 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22935 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22936 fi 22937 22938 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22939 22940 path="$BOOT_JDK" 22941 has_colon=`$ECHO $path | $GREP ^.:` 22942 new_path="$path" 22943 if test "x$has_colon" = x; then 22944 # Not in mixed or Windows style, start by that. 22945 new_path=`cmd //c echo $path` 22946 fi 22947 22948 22949 input_path="$new_path" 22950 # Check if we need to convert this using DOS-style short mode. If the path 22951 # contains just simple characters, use it. Otherwise (spaces, weird characters), 22952 # take no chances and rewrite it. 22953 # Note: m4 eats our [], so we need to use [ and ] instead. 22954 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 22955 if test "x$has_forbidden_chars" != x; then 22956 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 22957 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 22958 fi 22959 22960 22961 windows_path="$new_path" 22962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 22963 unix_path=`$CYGPATH -u "$windows_path"` 22964 new_path="$unix_path" 22965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 22966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 22967 new_path="$unix_path" 22968 fi 22969 22970 if test "x$path" != "x$new_path"; then 22971 BOOT_JDK="$new_path" 22972 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 22973 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 22974 fi 22975 22976 # Save the first 10 bytes of this path to the storage, so fixpath can work. 22977 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 22978 22979 else 22980 # We're on a posix platform. Hooray! :) 22981 path="$BOOT_JDK" 22982 has_space=`$ECHO "$path" | $GREP " "` 22983 if test "x$has_space" != x; then 22984 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 22985 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 22986 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 22987 fi 22988 22989 # Use eval to expand a potential ~ 22990 eval path="$path" 22991 if test ! -f "$path" && test ! -d "$path"; then 22992 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 22993 fi 22994 22995 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 22996 fi 22997 22998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 22999 $as_echo_n "checking for Boot JDK... " >&6; } 23000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23001 $as_echo "$BOOT_JDK" >&6; } 23002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23003 $as_echo_n "checking Boot JDK version... " >&6; } 23004 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23006 $as_echo "$BOOT_JDK_VERSION" >&6; } 23007 fi # end check jdk version 23008 fi # end check rt.jar 23009 fi # end check javac 23010 fi # end check java 23011 fi # end check boot jdk found 23012 fi 23013 23014 done 23015 fi 23016 23017 23018 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23019 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23020 # Do we have a bin/java? 23021 if test ! -x "$BOOT_JDK/bin/java"; then 23022 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23023 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23024 BOOT_JDK_FOUND=no 23025 else 23026 # Do we have a bin/javac? 23027 if test ! -x "$BOOT_JDK/bin/javac"; then 23028 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23029 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23030 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23031 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23032 BOOT_JDK_FOUND=no 23033 else 23034 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23035 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23036 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23037 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23038 BOOT_JDK_FOUND=no 23039 else 23040 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23041 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23042 23043 # Extra M4 quote needed to protect [] in grep expression. 23044 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23045 if test "x$FOUND_VERSION_78" = x; then 23046 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23047 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23048 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23049 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23050 BOOT_JDK_FOUND=no 23051 else 23052 # We're done! :-) 23053 BOOT_JDK_FOUND=yes 23054 23055 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23056 23057 # Input might be given as Windows format, start by converting to 23058 # unix format. 23059 path="$BOOT_JDK" 23060 new_path=`$CYGPATH -u "$path"` 23061 23062 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23063 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23064 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23065 # "foo.exe" is OK but "foo" is an error. 23066 # 23067 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23068 # It is also a way to make sure we got the proper file name for the real test later on. 23069 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23070 if test "x$test_shortpath" = x; then 23071 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23072 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23073 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23074 fi 23075 23076 # Call helper function which possibly converts this using DOS-style short mode. 23077 # If so, the updated path is stored in $new_path. 23078 23079 input_path="$new_path" 23080 # Check if we need to convert this using DOS-style short mode. If the path 23081 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23082 # take no chances and rewrite it. 23083 # Note: m4 eats our [], so we need to use [ and ] instead. 23084 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23085 if test "x$has_forbidden_chars" != x; then 23086 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23087 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23088 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23089 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23090 # Going to short mode and back again did indeed matter. Since short mode is 23091 # case insensitive, let's make it lowercase to improve readability. 23092 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23093 # Now convert it back to Unix-stile (cygpath) 23094 input_path=`$CYGPATH -u "$shortmode_path"` 23095 new_path="$input_path" 23096 fi 23097 fi 23098 23099 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23100 if test "x$test_cygdrive_prefix" = x; then 23101 # As a simple fix, exclude /usr/bin since it's not a real path. 23102 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23103 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23104 # a path prefixed by /cygdrive for fixpath to work. 23105 new_path="$CYGWIN_ROOT_PATH$input_path" 23106 fi 23107 fi 23108 23109 23110 if test "x$path" != "x$new_path"; then 23111 BOOT_JDK="$new_path" 23112 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23113 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23114 fi 23115 23116 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23117 23118 path="$BOOT_JDK" 23119 has_colon=`$ECHO $path | $GREP ^.:` 23120 new_path="$path" 23121 if test "x$has_colon" = x; then 23122 # Not in mixed or Windows style, start by that. 23123 new_path=`cmd //c echo $path` 23124 fi 23125 23126 23127 input_path="$new_path" 23128 # Check if we need to convert this using DOS-style short mode. If the path 23129 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23130 # take no chances and rewrite it. 23131 # Note: m4 eats our [], so we need to use [ and ] instead. 23132 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23133 if test "x$has_forbidden_chars" != x; then 23134 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23135 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23136 fi 23137 23138 23139 windows_path="$new_path" 23140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23141 unix_path=`$CYGPATH -u "$windows_path"` 23142 new_path="$unix_path" 23143 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23144 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23145 new_path="$unix_path" 23146 fi 23147 23148 if test "x$path" != "x$new_path"; then 23149 BOOT_JDK="$new_path" 23150 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23151 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23152 fi 23153 23154 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23155 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23156 23157 else 23158 # We're on a posix platform. Hooray! :) 23159 path="$BOOT_JDK" 23160 has_space=`$ECHO "$path" | $GREP " "` 23161 if test "x$has_space" != x; then 23162 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23163 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23164 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23165 fi 23166 23167 # Use eval to expand a potential ~ 23168 eval path="$path" 23169 if test ! -f "$path" && test ! -d "$path"; then 23170 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23171 fi 23172 23173 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23174 fi 23175 23176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23177 $as_echo_n "checking for Boot JDK... " >&6; } 23178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23179 $as_echo "$BOOT_JDK" >&6; } 23180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23181 $as_echo_n "checking Boot JDK version... " >&6; } 23182 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23184 $as_echo "$BOOT_JDK_VERSION" >&6; } 23185 fi # end check jdk version 23186 fi # end check rt.jar 23187 fi # end check javac 23188 fi # end check java 23189 fi # end check boot jdk found 23190 fi 23191 23192 23193 if test "x$BOOT_JDK_FOUND" = xno; then 23194 # Now execute the test 23195 23196 BOOT_JDK_PREFIX="/System/Library/Java/JavaVirtualMachines" 23197 BOOT_JDK_SUFFIX="/Contents/Home" 23198 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23199 if test "x$ALL_JDKS_FOUND" != x; then 23200 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23201 23202 if test "x$BOOT_JDK_FOUND" = xno; then 23203 # Now execute the test 23204 23205 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23206 if test -d "$BOOT_JDK"; then 23207 BOOT_JDK_FOUND=maybe 23208 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23209 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23210 fi 23211 23212 23213 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23214 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23215 # Do we have a bin/java? 23216 if test ! -x "$BOOT_JDK/bin/java"; then 23217 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23218 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23219 BOOT_JDK_FOUND=no 23220 else 23221 # Do we have a bin/javac? 23222 if test ! -x "$BOOT_JDK/bin/javac"; then 23223 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23224 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23225 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23226 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23227 BOOT_JDK_FOUND=no 23228 else 23229 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23230 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23231 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23232 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23233 BOOT_JDK_FOUND=no 23234 else 23235 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23236 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23237 23238 # Extra M4 quote needed to protect [] in grep expression. 23239 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23240 if test "x$FOUND_VERSION_78" = x; then 23241 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23242 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23243 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23244 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23245 BOOT_JDK_FOUND=no 23246 else 23247 # We're done! :-) 23248 BOOT_JDK_FOUND=yes 23249 23250 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23251 23252 # Input might be given as Windows format, start by converting to 23253 # unix format. 23254 path="$BOOT_JDK" 23255 new_path=`$CYGPATH -u "$path"` 23256 23257 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23258 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23259 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23260 # "foo.exe" is OK but "foo" is an error. 23261 # 23262 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23263 # It is also a way to make sure we got the proper file name for the real test later on. 23264 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23265 if test "x$test_shortpath" = x; then 23266 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23267 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23268 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23269 fi 23270 23271 # Call helper function which possibly converts this using DOS-style short mode. 23272 # If so, the updated path is stored in $new_path. 23273 23274 input_path="$new_path" 23275 # Check if we need to convert this using DOS-style short mode. If the path 23276 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23277 # take no chances and rewrite it. 23278 # Note: m4 eats our [], so we need to use [ and ] instead. 23279 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23280 if test "x$has_forbidden_chars" != x; then 23281 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23282 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23283 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23284 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23285 # Going to short mode and back again did indeed matter. Since short mode is 23286 # case insensitive, let's make it lowercase to improve readability. 23287 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23288 # Now convert it back to Unix-stile (cygpath) 23289 input_path=`$CYGPATH -u "$shortmode_path"` 23290 new_path="$input_path" 23291 fi 23292 fi 23293 23294 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23295 if test "x$test_cygdrive_prefix" = x; then 23296 # As a simple fix, exclude /usr/bin since it's not a real path. 23297 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23298 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23299 # a path prefixed by /cygdrive for fixpath to work. 23300 new_path="$CYGWIN_ROOT_PATH$input_path" 23301 fi 23302 fi 23303 23304 23305 if test "x$path" != "x$new_path"; then 23306 BOOT_JDK="$new_path" 23307 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23308 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23309 fi 23310 23311 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23312 23313 path="$BOOT_JDK" 23314 has_colon=`$ECHO $path | $GREP ^.:` 23315 new_path="$path" 23316 if test "x$has_colon" = x; then 23317 # Not in mixed or Windows style, start by that. 23318 new_path=`cmd //c echo $path` 23319 fi 23320 23321 23322 input_path="$new_path" 23323 # Check if we need to convert this using DOS-style short mode. If the path 23324 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23325 # take no chances and rewrite it. 23326 # Note: m4 eats our [], so we need to use [ and ] instead. 23327 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23328 if test "x$has_forbidden_chars" != x; then 23329 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23330 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23331 fi 23332 23333 23334 windows_path="$new_path" 23335 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23336 unix_path=`$CYGPATH -u "$windows_path"` 23337 new_path="$unix_path" 23338 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23339 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23340 new_path="$unix_path" 23341 fi 23342 23343 if test "x$path" != "x$new_path"; then 23344 BOOT_JDK="$new_path" 23345 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23346 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23347 fi 23348 23349 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23350 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23351 23352 else 23353 # We're on a posix platform. Hooray! :) 23354 path="$BOOT_JDK" 23355 has_space=`$ECHO "$path" | $GREP " "` 23356 if test "x$has_space" != x; then 23357 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23358 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23359 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23360 fi 23361 23362 # Use eval to expand a potential ~ 23363 eval path="$path" 23364 if test ! -f "$path" && test ! -d "$path"; then 23365 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23366 fi 23367 23368 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23369 fi 23370 23371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23372 $as_echo_n "checking for Boot JDK... " >&6; } 23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23374 $as_echo "$BOOT_JDK" >&6; } 23375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23376 $as_echo_n "checking Boot JDK version... " >&6; } 23377 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23379 $as_echo "$BOOT_JDK_VERSION" >&6; } 23380 fi # end check jdk version 23381 fi # end check rt.jar 23382 fi # end check javac 23383 fi # end check java 23384 fi # end check boot jdk found 23385 fi 23386 23387 done 23388 fi 23389 23390 23391 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23392 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23393 # Do we have a bin/java? 23394 if test ! -x "$BOOT_JDK/bin/java"; then 23395 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23396 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23397 BOOT_JDK_FOUND=no 23398 else 23399 # Do we have a bin/javac? 23400 if test ! -x "$BOOT_JDK/bin/javac"; then 23401 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23402 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23403 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23404 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23405 BOOT_JDK_FOUND=no 23406 else 23407 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23408 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23409 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23410 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23411 BOOT_JDK_FOUND=no 23412 else 23413 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23414 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23415 23416 # Extra M4 quote needed to protect [] in grep expression. 23417 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23418 if test "x$FOUND_VERSION_78" = x; then 23419 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23420 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23421 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23422 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23423 BOOT_JDK_FOUND=no 23424 else 23425 # We're done! :-) 23426 BOOT_JDK_FOUND=yes 23427 23428 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23429 23430 # Input might be given as Windows format, start by converting to 23431 # unix format. 23432 path="$BOOT_JDK" 23433 new_path=`$CYGPATH -u "$path"` 23434 23435 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23436 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23437 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23438 # "foo.exe" is OK but "foo" is an error. 23439 # 23440 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23441 # It is also a way to make sure we got the proper file name for the real test later on. 23442 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23443 if test "x$test_shortpath" = x; then 23444 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23445 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23446 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23447 fi 23448 23449 # Call helper function which possibly converts this using DOS-style short mode. 23450 # If so, the updated path is stored in $new_path. 23451 23452 input_path="$new_path" 23453 # Check if we need to convert this using DOS-style short mode. If the path 23454 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23455 # take no chances and rewrite it. 23456 # Note: m4 eats our [], so we need to use [ and ] instead. 23457 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23458 if test "x$has_forbidden_chars" != x; then 23459 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23460 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23461 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23462 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23463 # Going to short mode and back again did indeed matter. Since short mode is 23464 # case insensitive, let's make it lowercase to improve readability. 23465 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23466 # Now convert it back to Unix-stile (cygpath) 23467 input_path=`$CYGPATH -u "$shortmode_path"` 23468 new_path="$input_path" 23469 fi 23470 fi 23471 23472 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23473 if test "x$test_cygdrive_prefix" = x; then 23474 # As a simple fix, exclude /usr/bin since it's not a real path. 23475 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23476 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23477 # a path prefixed by /cygdrive for fixpath to work. 23478 new_path="$CYGWIN_ROOT_PATH$input_path" 23479 fi 23480 fi 23481 23482 23483 if test "x$path" != "x$new_path"; then 23484 BOOT_JDK="$new_path" 23485 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23486 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23487 fi 23488 23489 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23490 23491 path="$BOOT_JDK" 23492 has_colon=`$ECHO $path | $GREP ^.:` 23493 new_path="$path" 23494 if test "x$has_colon" = x; then 23495 # Not in mixed or Windows style, start by that. 23496 new_path=`cmd //c echo $path` 23497 fi 23498 23499 23500 input_path="$new_path" 23501 # Check if we need to convert this using DOS-style short mode. If the path 23502 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23503 # take no chances and rewrite it. 23504 # Note: m4 eats our [], so we need to use [ and ] instead. 23505 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23506 if test "x$has_forbidden_chars" != x; then 23507 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23508 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23509 fi 23510 23511 23512 windows_path="$new_path" 23513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23514 unix_path=`$CYGPATH -u "$windows_path"` 23515 new_path="$unix_path" 23516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23518 new_path="$unix_path" 23519 fi 23520 23521 if test "x$path" != "x$new_path"; then 23522 BOOT_JDK="$new_path" 23523 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23524 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23525 fi 23526 23527 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23528 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23529 23530 else 23531 # We're on a posix platform. Hooray! :) 23532 path="$BOOT_JDK" 23533 has_space=`$ECHO "$path" | $GREP " "` 23534 if test "x$has_space" != x; then 23535 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23536 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23537 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23538 fi 23539 23540 # Use eval to expand a potential ~ 23541 eval path="$path" 23542 if test ! -f "$path" && test ! -d "$path"; then 23543 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23544 fi 23545 23546 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23547 fi 23548 23549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23550 $as_echo_n "checking for Boot JDK... " >&6; } 23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23552 $as_echo "$BOOT_JDK" >&6; } 23553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23554 $as_echo_n "checking Boot JDK version... " >&6; } 23555 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23557 $as_echo "$BOOT_JDK_VERSION" >&6; } 23558 fi # end check jdk version 23559 fi # end check rt.jar 23560 fi # end check javac 23561 fi # end check java 23562 fi # end check boot jdk found 23563 fi 23564 23565 elif test "x$OPENJDK_TARGET_OS" = xlinux; then 23566 23567 if test "x$BOOT_JDK_FOUND" = xno; then 23568 # Now execute the test 23569 23570 BOOT_JDK_PREFIX="/usr/lib/jvm" 23571 BOOT_JDK_SUFFIX="" 23572 ALL_JDKS_FOUND=`$LS "$BOOT_JDK_PREFIX" 2> /dev/null | $SORT -r` 23573 if test "x$ALL_JDKS_FOUND" != x; then 23574 for JDK_TO_TRY in $ALL_JDKS_FOUND ; do 23575 23576 if test "x$BOOT_JDK_FOUND" = xno; then 23577 # Now execute the test 23578 23579 BOOT_JDK="${BOOT_JDK_PREFIX}/${JDK_TO_TRY}${BOOT_JDK_SUFFIX}" 23580 if test -d "$BOOT_JDK"; then 23581 BOOT_JDK_FOUND=maybe 23582 { $as_echo "$as_me:${as_lineno-$LINENO}: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&5 23583 $as_echo "$as_me: Found potential Boot JDK using well-known locations (in $BOOT_JDK_PREFIX/$JDK_TO_TRY)" >&6;} 23584 fi 23585 23586 23587 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23588 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23589 # Do we have a bin/java? 23590 if test ! -x "$BOOT_JDK/bin/java"; then 23591 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23592 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23593 BOOT_JDK_FOUND=no 23594 else 23595 # Do we have a bin/javac? 23596 if test ! -x "$BOOT_JDK/bin/javac"; then 23597 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23598 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23599 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23600 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23601 BOOT_JDK_FOUND=no 23602 else 23603 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23604 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23605 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23606 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23607 BOOT_JDK_FOUND=no 23608 else 23609 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23610 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23611 23612 # Extra M4 quote needed to protect [] in grep expression. 23613 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23614 if test "x$FOUND_VERSION_78" = x; then 23615 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23616 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23617 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23618 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23619 BOOT_JDK_FOUND=no 23620 else 23621 # We're done! :-) 23622 BOOT_JDK_FOUND=yes 23623 23624 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23625 23626 # Input might be given as Windows format, start by converting to 23627 # unix format. 23628 path="$BOOT_JDK" 23629 new_path=`$CYGPATH -u "$path"` 23630 23631 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23632 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23633 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23634 # "foo.exe" is OK but "foo" is an error. 23635 # 23636 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23637 # It is also a way to make sure we got the proper file name for the real test later on. 23638 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23639 if test "x$test_shortpath" = x; then 23640 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23641 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23642 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23643 fi 23644 23645 # Call helper function which possibly converts this using DOS-style short mode. 23646 # If so, the updated path is stored in $new_path. 23647 23648 input_path="$new_path" 23649 # Check if we need to convert this using DOS-style short mode. If the path 23650 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23651 # take no chances and rewrite it. 23652 # Note: m4 eats our [], so we need to use [ and ] instead. 23653 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23654 if test "x$has_forbidden_chars" != x; then 23655 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23656 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23657 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23658 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23659 # Going to short mode and back again did indeed matter. Since short mode is 23660 # case insensitive, let's make it lowercase to improve readability. 23661 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23662 # Now convert it back to Unix-stile (cygpath) 23663 input_path=`$CYGPATH -u "$shortmode_path"` 23664 new_path="$input_path" 23665 fi 23666 fi 23667 23668 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23669 if test "x$test_cygdrive_prefix" = x; then 23670 # As a simple fix, exclude /usr/bin since it's not a real path. 23671 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23672 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23673 # a path prefixed by /cygdrive for fixpath to work. 23674 new_path="$CYGWIN_ROOT_PATH$input_path" 23675 fi 23676 fi 23677 23678 23679 if test "x$path" != "x$new_path"; then 23680 BOOT_JDK="$new_path" 23681 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23682 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23683 fi 23684 23685 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23686 23687 path="$BOOT_JDK" 23688 has_colon=`$ECHO $path | $GREP ^.:` 23689 new_path="$path" 23690 if test "x$has_colon" = x; then 23691 # Not in mixed or Windows style, start by that. 23692 new_path=`cmd //c echo $path` 23693 fi 23694 23695 23696 input_path="$new_path" 23697 # Check if we need to convert this using DOS-style short mode. If the path 23698 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23699 # take no chances and rewrite it. 23700 # Note: m4 eats our [], so we need to use [ and ] instead. 23701 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23702 if test "x$has_forbidden_chars" != x; then 23703 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23704 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23705 fi 23706 23707 23708 windows_path="$new_path" 23709 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23710 unix_path=`$CYGPATH -u "$windows_path"` 23711 new_path="$unix_path" 23712 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23713 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23714 new_path="$unix_path" 23715 fi 23716 23717 if test "x$path" != "x$new_path"; then 23718 BOOT_JDK="$new_path" 23719 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23720 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23721 fi 23722 23723 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23724 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23725 23726 else 23727 # We're on a posix platform. Hooray! :) 23728 path="$BOOT_JDK" 23729 has_space=`$ECHO "$path" | $GREP " "` 23730 if test "x$has_space" != x; then 23731 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23732 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23733 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23734 fi 23735 23736 # Use eval to expand a potential ~ 23737 eval path="$path" 23738 if test ! -f "$path" && test ! -d "$path"; then 23739 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23740 fi 23741 23742 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23743 fi 23744 23745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23746 $as_echo_n "checking for Boot JDK... " >&6; } 23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23748 $as_echo "$BOOT_JDK" >&6; } 23749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23750 $as_echo_n "checking Boot JDK version... " >&6; } 23751 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23753 $as_echo "$BOOT_JDK_VERSION" >&6; } 23754 fi # end check jdk version 23755 fi # end check rt.jar 23756 fi # end check javac 23757 fi # end check java 23758 fi # end check boot jdk found 23759 fi 23760 23761 done 23762 fi 23763 23764 23765 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23766 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23767 # Do we have a bin/java? 23768 if test ! -x "$BOOT_JDK/bin/java"; then 23769 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23770 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23771 BOOT_JDK_FOUND=no 23772 else 23773 # Do we have a bin/javac? 23774 if test ! -x "$BOOT_JDK/bin/javac"; then 23775 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23776 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23777 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23778 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23779 BOOT_JDK_FOUND=no 23780 else 23781 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23782 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23783 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23784 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23785 BOOT_JDK_FOUND=no 23786 else 23787 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23788 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23789 23790 # Extra M4 quote needed to protect [] in grep expression. 23791 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23792 if test "x$FOUND_VERSION_78" = x; then 23793 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23794 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23795 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23796 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23797 BOOT_JDK_FOUND=no 23798 else 23799 # We're done! :-) 23800 BOOT_JDK_FOUND=yes 23801 23802 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23803 23804 # Input might be given as Windows format, start by converting to 23805 # unix format. 23806 path="$BOOT_JDK" 23807 new_path=`$CYGPATH -u "$path"` 23808 23809 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23810 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23811 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23812 # "foo.exe" is OK but "foo" is an error. 23813 # 23814 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23815 # It is also a way to make sure we got the proper file name for the real test later on. 23816 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23817 if test "x$test_shortpath" = x; then 23818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23819 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23820 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23821 fi 23822 23823 # Call helper function which possibly converts this using DOS-style short mode. 23824 # If so, the updated path is stored in $new_path. 23825 23826 input_path="$new_path" 23827 # Check if we need to convert this using DOS-style short mode. If the path 23828 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23829 # take no chances and rewrite it. 23830 # Note: m4 eats our [], so we need to use [ and ] instead. 23831 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 23832 if test "x$has_forbidden_chars" != x; then 23833 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23834 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 23835 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 23836 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 23837 # Going to short mode and back again did indeed matter. Since short mode is 23838 # case insensitive, let's make it lowercase to improve readability. 23839 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23840 # Now convert it back to Unix-stile (cygpath) 23841 input_path=`$CYGPATH -u "$shortmode_path"` 23842 new_path="$input_path" 23843 fi 23844 fi 23845 23846 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 23847 if test "x$test_cygdrive_prefix" = x; then 23848 # As a simple fix, exclude /usr/bin since it's not a real path. 23849 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 23850 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 23851 # a path prefixed by /cygdrive for fixpath to work. 23852 new_path="$CYGWIN_ROOT_PATH$input_path" 23853 fi 23854 fi 23855 23856 23857 if test "x$path" != "x$new_path"; then 23858 BOOT_JDK="$new_path" 23859 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23860 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23861 fi 23862 23863 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23864 23865 path="$BOOT_JDK" 23866 has_colon=`$ECHO $path | $GREP ^.:` 23867 new_path="$path" 23868 if test "x$has_colon" = x; then 23869 # Not in mixed or Windows style, start by that. 23870 new_path=`cmd //c echo $path` 23871 fi 23872 23873 23874 input_path="$new_path" 23875 # Check if we need to convert this using DOS-style short mode. If the path 23876 # contains just simple characters, use it. Otherwise (spaces, weird characters), 23877 # take no chances and rewrite it. 23878 # Note: m4 eats our [], so we need to use [ and ] instead. 23879 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 23880 if test "x$has_forbidden_chars" != x; then 23881 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 23882 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 23883 fi 23884 23885 23886 windows_path="$new_path" 23887 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23888 unix_path=`$CYGPATH -u "$windows_path"` 23889 new_path="$unix_path" 23890 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 23891 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 23892 new_path="$unix_path" 23893 fi 23894 23895 if test "x$path" != "x$new_path"; then 23896 BOOT_JDK="$new_path" 23897 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 23898 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 23899 fi 23900 23901 # Save the first 10 bytes of this path to the storage, so fixpath can work. 23902 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 23903 23904 else 23905 # We're on a posix platform. Hooray! :) 23906 path="$BOOT_JDK" 23907 has_space=`$ECHO "$path" | $GREP " "` 23908 if test "x$has_space" != x; then 23909 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23910 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23911 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 23912 fi 23913 23914 # Use eval to expand a potential ~ 23915 eval path="$path" 23916 if test ! -f "$path" && test ! -d "$path"; then 23917 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 23918 fi 23919 23920 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 23921 fi 23922 23923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 23924 $as_echo_n "checking for Boot JDK... " >&6; } 23925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 23926 $as_echo "$BOOT_JDK" >&6; } 23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 23928 $as_echo_n "checking Boot JDK version... " >&6; } 23929 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 23930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 23931 $as_echo "$BOOT_JDK_VERSION" >&6; } 23932 fi # end check jdk version 23933 fi # end check rt.jar 23934 fi # end check javac 23935 fi # end check java 23936 fi # end check boot jdk found 23937 fi 23938 23939 fi 23940 23941 23942 # If previous step claimed to have found a JDK, check it to see if it seems to be valid. 23943 if test "x$BOOT_JDK_FOUND" = xmaybe; then 23944 # Do we have a bin/java? 23945 if test ! -x "$BOOT_JDK/bin/java"; then 23946 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&5 23947 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/java; ignoring" >&6;} 23948 BOOT_JDK_FOUND=no 23949 else 23950 # Do we have a bin/javac? 23951 if test ! -x "$BOOT_JDK/bin/javac"; then 23952 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&5 23953 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain bin/javac; ignoring" >&6;} 23954 { $as_echo "$as_me:${as_lineno-$LINENO}: (This might be an JRE instead of an JDK)" >&5 23955 $as_echo "$as_me: (This might be an JRE instead of an JDK)" >&6;} 23956 BOOT_JDK_FOUND=no 23957 else 23958 # Do we have an rt.jar? (On MacOSX it is called classes.jar) 23959 if test ! -f "$BOOT_JDK/jre/lib/rt.jar" && test ! -f "$BOOT_JDK/../Classes/classes.jar"; then 23960 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&5 23961 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK did not contain an rt.jar; ignoring" >&6;} 23962 BOOT_JDK_FOUND=no 23963 else 23964 # Oh, this is looking good! We probably have found a proper JDK. Is it the correct version? 23965 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | head -n 1` 23966 23967 # Extra M4 quote needed to protect [] in grep expression. 23968 FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep '\"1\.[78]\.'` 23969 if test "x$FOUND_VERSION_78" = x; then 23970 { $as_echo "$as_me:${as_lineno-$LINENO}: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&5 23971 $as_echo "$as_me: Potential Boot JDK found at $BOOT_JDK is incorrect JDK version ($BOOT_JDK_VERSION); ignoring" >&6;} 23972 { $as_echo "$as_me:${as_lineno-$LINENO}: (Your Boot JDK must be version 7 or 8)" >&5 23973 $as_echo "$as_me: (Your Boot JDK must be version 7 or 8)" >&6;} 23974 BOOT_JDK_FOUND=no 23975 else 23976 # We're done! :-) 23977 BOOT_JDK_FOUND=yes 23978 23979 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 23980 23981 # Input might be given as Windows format, start by converting to 23982 # unix format. 23983 path="$BOOT_JDK" 23984 new_path=`$CYGPATH -u "$path"` 23985 23986 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 23987 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 23988 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 23989 # "foo.exe" is OK but "foo" is an error. 23990 # 23991 # This test is therefore slightly more accurate than "test -f" to check for file precense. 23992 # It is also a way to make sure we got the proper file name for the real test later on. 23993 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 23994 if test "x$test_shortpath" = x; then 23995 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 23996 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 23997 as_fn_error $? "Cannot locate the the path of BOOT_JDK" "$LINENO" 5 23998 fi 23999 24000 # Call helper function which possibly converts this using DOS-style short mode. 24001 # If so, the updated path is stored in $new_path. 24002 24003 input_path="$new_path" 24004 # Check if we need to convert this using DOS-style short mode. If the path 24005 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24006 # take no chances and rewrite it. 24007 # Note: m4 eats our [], so we need to use [ and ] instead. 24008 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 24009 if test "x$has_forbidden_chars" != x; then 24010 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24011 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 24012 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 24013 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 24014 # Going to short mode and back again did indeed matter. Since short mode is 24015 # case insensitive, let's make it lowercase to improve readability. 24016 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24017 # Now convert it back to Unix-stile (cygpath) 24018 input_path=`$CYGPATH -u "$shortmode_path"` 24019 new_path="$input_path" 24020 fi 24021 fi 24022 24023 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 24024 if test "x$test_cygdrive_prefix" = x; then 24025 # As a simple fix, exclude /usr/bin since it's not a real path. 24026 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 24027 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 24028 # a path prefixed by /cygdrive for fixpath to work. 24029 new_path="$CYGWIN_ROOT_PATH$input_path" 24030 fi 24031 fi 24032 24033 24034 if test "x$path" != "x$new_path"; then 24035 BOOT_JDK="$new_path" 24036 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24037 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24038 fi 24039 24040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24041 24042 path="$BOOT_JDK" 24043 has_colon=`$ECHO $path | $GREP ^.:` 24044 new_path="$path" 24045 if test "x$has_colon" = x; then 24046 # Not in mixed or Windows style, start by that. 24047 new_path=`cmd //c echo $path` 24048 fi 24049 24050 24051 input_path="$new_path" 24052 # Check if we need to convert this using DOS-style short mode. If the path 24053 # contains just simple characters, use it. Otherwise (spaces, weird characters), 24054 # take no chances and rewrite it. 24055 # Note: m4 eats our [], so we need to use [ and ] instead. 24056 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 24057 if test "x$has_forbidden_chars" != x; then 24058 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 24059 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 24060 fi 24061 24062 24063 windows_path="$new_path" 24064 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24065 unix_path=`$CYGPATH -u "$windows_path"` 24066 new_path="$unix_path" 24067 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24068 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 24069 new_path="$unix_path" 24070 fi 24071 24072 if test "x$path" != "x$new_path"; then 24073 BOOT_JDK="$new_path" 24074 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BOOT_JDK to \"$new_path\"" >&5 24075 $as_echo "$as_me: Rewriting BOOT_JDK to \"$new_path\"" >&6;} 24076 fi 24077 24078 # Save the first 10 bytes of this path to the storage, so fixpath can work. 24079 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 24080 24081 else 24082 # We're on a posix platform. Hooray! :) 24083 path="$BOOT_JDK" 24084 has_space=`$ECHO "$path" | $GREP " "` 24085 if test "x$has_space" != x; then 24086 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&5 24087 $as_echo "$as_me: The path of BOOT_JDK, which resolves as \"$path\", is invalid." >&6;} 24088 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 24089 fi 24090 24091 # Use eval to expand a potential ~ 24092 eval path="$path" 24093 if test ! -f "$path" && test ! -d "$path"; then 24094 as_fn_error $? "The path of BOOT_JDK, which resolves as \"$path\", is not found." "$LINENO" 5 24095 fi 24096 24097 BOOT_JDK="`cd "$path"; $THEPWDCMD -L`" 24098 fi 24099 24100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5 24101 $as_echo_n "checking for Boot JDK... " >&6; } 24102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5 24103 $as_echo "$BOOT_JDK" >&6; } 24104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Boot JDK version" >&5 24105 $as_echo_n "checking Boot JDK version... " >&6; } 24106 BOOT_JDK_VERSION=`"$BOOT_JDK/bin/java" -version 2>&1 | $TR '\n\r' ' '` 24107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_VERSION" >&5 24108 $as_echo "$BOOT_JDK_VERSION" >&6; } 24109 fi # end check jdk version 24110 fi # end check rt.jar 24111 fi # end check javac 24112 fi # end check java 24113 fi # end check boot jdk found 24114 fi 24115 24116 24117 # If we haven't found anything yet, we've truly lost. Give up. 24118 if test "x$BOOT_JDK_FOUND" = xno; then 24119 24120 # Print a helpful message on how to acquire the necessary build dependency. 24121 # openjdk is the help tag: freetype, cups, pulse, alsa etc 24122 MISSING_DEPENDENCY=openjdk 24123 24124 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 24125 cygwin_help $MISSING_DEPENDENCY 24126 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 24127 msys_help $MISSING_DEPENDENCY 24128 else 24129 PKGHANDLER_COMMAND= 24130 24131 case $PKGHANDLER in 24132 apt-get) 24133 apt_help $MISSING_DEPENDENCY ;; 24134 yum) 24135 yum_help $MISSING_DEPENDENCY ;; 24136 port) 24137 port_help $MISSING_DEPENDENCY ;; 24138 pkgutil) 24139 pkgutil_help $MISSING_DEPENDENCY ;; 24140 pkgadd) 24141 pkgadd_help $MISSING_DEPENDENCY ;; 24142 esac 24143 24144 if test "x$PKGHANDLER_COMMAND" != x; then 24145 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 24146 fi 24147 fi 24148 24149 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find a valid Boot JDK. $HELP_MSG" >&5 24150 $as_echo "$as_me: Could not find a valid Boot JDK. $HELP_MSG" >&6;} 24151 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be fixed by explicitely setting --with-boot-jdk" >&5 24152 $as_echo "$as_me: This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24153 as_fn_error $? "Cannot continue" "$LINENO" 5 24154 fi 24155 24156 # Setup proper paths for what we found 24157 BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar" 24158 if test ! -f "$BOOT_RTJAR"; then 24159 # On MacOSX it is called classes.jar 24160 BOOT_RTJAR="$BOOT_JDK/../Classes/classes.jar" 24161 if test -f "$BOOT_RTJAR"; then 24162 # Remove the .. 24163 BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}" 24164 fi 24165 fi 24166 BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar" 24167 BOOT_JDK="$BOOT_JDK" 24168 24169 24170 24171 24172 # Setup tools from the Boot JDK. 24173 24174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5 24175 $as_echo_n "checking for java in Boot JDK... " >&6; } 24176 JAVA=$BOOT_JDK/bin/java 24177 if test ! -x $JAVA; then 24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24179 $as_echo "not found" >&6; } 24180 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24181 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24182 as_fn_error $? "Could not find java in the Boot JDK" "$LINENO" 5 24183 fi 24184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24185 $as_echo "ok" >&6; } 24186 24187 24188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5 24189 $as_echo_n "checking for javac in Boot JDK... " >&6; } 24190 JAVAC=$BOOT_JDK/bin/javac 24191 if test ! -x $JAVAC; then 24192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24193 $as_echo "not found" >&6; } 24194 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24195 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24196 as_fn_error $? "Could not find javac in the Boot JDK" "$LINENO" 5 24197 fi 24198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24199 $as_echo "ok" >&6; } 24200 24201 24202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5 24203 $as_echo_n "checking for javah in Boot JDK... " >&6; } 24204 JAVAH=$BOOT_JDK/bin/javah 24205 if test ! -x $JAVAH; then 24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24207 $as_echo "not found" >&6; } 24208 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24209 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24210 as_fn_error $? "Could not find javah in the Boot JDK" "$LINENO" 5 24211 fi 24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24213 $as_echo "ok" >&6; } 24214 24215 24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javap in Boot JDK" >&5 24217 $as_echo_n "checking for javap in Boot JDK... " >&6; } 24218 JAVAP=$BOOT_JDK/bin/javap 24219 if test ! -x $JAVAP; then 24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24221 $as_echo "not found" >&6; } 24222 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24223 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24224 as_fn_error $? "Could not find javap in the Boot JDK" "$LINENO" 5 24225 fi 24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24227 $as_echo "ok" >&6; } 24228 24229 24230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5 24231 $as_echo_n "checking for jar in Boot JDK... " >&6; } 24232 JAR=$BOOT_JDK/bin/jar 24233 if test ! -x $JAR; then 24234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24235 $as_echo "not found" >&6; } 24236 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24237 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24238 as_fn_error $? "Could not find jar in the Boot JDK" "$LINENO" 5 24239 fi 24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24241 $as_echo "ok" >&6; } 24242 24243 24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5 24245 $as_echo_n "checking for rmic in Boot JDK... " >&6; } 24246 RMIC=$BOOT_JDK/bin/rmic 24247 if test ! -x $RMIC; then 24248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24249 $as_echo "not found" >&6; } 24250 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24251 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24252 as_fn_error $? "Could not find rmic in the Boot JDK" "$LINENO" 5 24253 fi 24254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24255 $as_echo "ok" >&6; } 24256 24257 24258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5 24259 $as_echo_n "checking for native2ascii in Boot JDK... " >&6; } 24260 NATIVE2ASCII=$BOOT_JDK/bin/native2ascii 24261 if test ! -x $NATIVE2ASCII; then 24262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 24263 $as_echo "not found" >&6; } 24264 { $as_echo "$as_me:${as_lineno-$LINENO}: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&5 24265 $as_echo "$as_me: Your Boot JDK seems broken. This might be fixed by explicitely setting --with-boot-jdk" >&6;} 24266 as_fn_error $? "Could not find native2ascii in the Boot JDK" "$LINENO" 5 24267 fi 24268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 24269 $as_echo "ok" >&6; } 24270 24271 24272 # Finally, set some other options... 24273 24274 # When compiling code to be executed by the Boot JDK, force jdk7 compatibility. 24275 BOOT_JDK_SOURCETARGET="-source 7 -target 7" 24276 24277 24278 24279 # Check if the boot jdk is 32 or 64 bit 24280 if "$JAVA" -d64 -version > /dev/null 2>&1; then 24281 BOOT_JDK_BITS="64" 24282 else 24283 BOOT_JDK_BITS="32" 24284 fi 24285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Boot JDK is 32 or 64 bits" >&5 24286 $as_echo_n "checking if Boot JDK is 32 or 64 bits... " >&6; } 24287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK_BITS" >&5 24288 $as_echo "$BOOT_JDK_BITS" >&6; } 24289 24290 24291 24292 ############################################################################## 24293 # 24294 # Specify options for anything that is run with the Boot JDK. 24295 # 24296 24297 # Check whether --with-boot-jdk-jvmargs was given. 24298 if test "${with_boot_jdk_jvmargs+set}" = set; then : 24299 withval=$with_boot_jdk_jvmargs; 24300 fi 24301 24302 24303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command " >&5 24304 $as_echo_n "checking flags for boot jdk java command ... " >&6; } 24305 24306 # Disable special log output when a debug build is used as Boot JDK... 24307 24308 $ECHO "Check if jvm arg is ok: -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" >&5 24309 $ECHO "Command: $JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version" >&5 24310 OUTPUT=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1` 24311 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24312 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24313 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24314 boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput" 24315 JVM_ARG_OK=true 24316 else 24317 $ECHO "Arg failed:" >&5 24318 $ECHO "$OUTPUT" >&5 24319 JVM_ARG_OK=false 24320 fi 24321 24322 24323 # Apply user provided options. 24324 24325 $ECHO "Check if jvm arg is ok: $with_boot_jdk_jvmargs" >&5 24326 $ECHO "Command: $JAVA $with_boot_jdk_jvmargs -version" >&5 24327 OUTPUT=`$JAVA $with_boot_jdk_jvmargs -version 2>&1` 24328 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24329 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24330 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24331 boot_jdk_jvmargs="$boot_jdk_jvmargs $with_boot_jdk_jvmargs" 24332 JVM_ARG_OK=true 24333 else 24334 $ECHO "Arg failed:" >&5 24335 $ECHO "$OUTPUT" >&5 24336 JVM_ARG_OK=false 24337 fi 24338 24339 24340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs" >&5 24341 $as_echo "$boot_jdk_jvmargs" >&6; } 24342 24343 # For now, general JAVA_FLAGS are the same as the boot jdk jvmargs 24344 JAVA_FLAGS=$boot_jdk_jvmargs 24345 24346 24347 24348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for big workloads" >&5 24349 $as_echo_n "checking flags for boot jdk java command for big workloads... " >&6; } 24350 24351 # Starting amount of heap memory. 24352 24353 $ECHO "Check if jvm arg is ok: -Xms64M" >&5 24354 $ECHO "Command: $JAVA -Xms64M -version" >&5 24355 OUTPUT=`$JAVA -Xms64M -version 2>&1` 24356 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24357 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24358 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24359 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xms64M" 24360 JVM_ARG_OK=true 24361 else 24362 $ECHO "Arg failed:" >&5 24363 $ECHO "$OUTPUT" >&5 24364 JVM_ARG_OK=false 24365 fi 24366 24367 24368 # Maximum amount of heap memory. 24369 # Maximum stack size. 24370 if test "x$BOOT_JDK_BITS" = x32; then 24371 JVM_MAX_HEAP=1100M 24372 STACK_SIZE=768 24373 else 24374 # Running Javac on a JVM on a 64-bit machine, takes more space since 64-bit 24375 # pointers are used. Apparently, we need to increase the heap and stack 24376 # space for the jvm. More specifically, when running javac to build huge 24377 # jdk batch 24378 JVM_MAX_HEAP=1600M 24379 STACK_SIZE=1536 24380 fi 24381 24382 $ECHO "Check if jvm arg is ok: -Xmx$JVM_MAX_HEAP" >&5 24383 $ECHO "Command: $JAVA -Xmx$JVM_MAX_HEAP -version" >&5 24384 OUTPUT=`$JAVA -Xmx$JVM_MAX_HEAP -version 2>&1` 24385 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24386 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24387 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24388 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -Xmx$JVM_MAX_HEAP" 24389 JVM_ARG_OK=true 24390 else 24391 $ECHO "Arg failed:" >&5 24392 $ECHO "$OUTPUT" >&5 24393 JVM_ARG_OK=false 24394 fi 24395 24396 24397 $ECHO "Check if jvm arg is ok: -XX:ThreadStackSize=$STACK_SIZE" >&5 24398 $ECHO "Command: $JAVA -XX:ThreadStackSize=$STACK_SIZE -version" >&5 24399 OUTPUT=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1` 24400 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24401 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24402 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24403 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:ThreadStackSize=$STACK_SIZE" 24404 JVM_ARG_OK=true 24405 else 24406 $ECHO "Arg failed:" >&5 24407 $ECHO "$OUTPUT" >&5 24408 JVM_ARG_OK=false 24409 fi 24410 24411 24412 $ECHO "Check if jvm arg is ok: -XX:PermSize=32m" >&5 24413 $ECHO "Command: $JAVA -XX:PermSize=32m -version" >&5 24414 OUTPUT=`$JAVA -XX:PermSize=32m -version 2>&1` 24415 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24416 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24417 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24418 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:PermSize=32m" 24419 JVM_ARG_OK=true 24420 else 24421 $ECHO "Arg failed:" >&5 24422 $ECHO "$OUTPUT" >&5 24423 JVM_ARG_OK=false 24424 fi 24425 24426 24427 $ECHO "Check if jvm arg is ok: -XX:MaxPermSize=160m" >&5 24428 $ECHO "Command: $JAVA -XX:MaxPermSize=160m -version" >&5 24429 OUTPUT=`$JAVA -XX:MaxPermSize=160m -version 2>&1` 24430 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24431 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24432 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24433 boot_jdk_jvmargs_big="$boot_jdk_jvmargs_big -XX:MaxPermSize=160m" 24434 JVM_ARG_OK=true 24435 else 24436 $ECHO "Arg failed:" >&5 24437 $ECHO "$OUTPUT" >&5 24438 JVM_ARG_OK=false 24439 fi 24440 24441 24442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_big" >&5 24443 $as_echo "$boot_jdk_jvmargs_big" >&6; } 24444 24445 JAVA_FLAGS_BIG=$boot_jdk_jvmargs_big 24446 24447 24448 24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking flags for boot jdk java command for small workloads" >&5 24450 $as_echo_n "checking flags for boot jdk java command for small workloads... " >&6; } 24451 24452 # Use serial gc for small short lived tools if possible 24453 24454 $ECHO "Check if jvm arg is ok: -XX:+UseSerialGC" >&5 24455 $ECHO "Command: $JAVA -XX:+UseSerialGC -version" >&5 24456 OUTPUT=`$JAVA -XX:+UseSerialGC -version 2>&1` 24457 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24458 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24459 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24460 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -XX:+UseSerialGC" 24461 JVM_ARG_OK=true 24462 else 24463 $ECHO "Arg failed:" >&5 24464 $ECHO "$OUTPUT" >&5 24465 JVM_ARG_OK=false 24466 fi 24467 24468 24469 $ECHO "Check if jvm arg is ok: -Xms32M" >&5 24470 $ECHO "Command: $JAVA -Xms32M -version" >&5 24471 OUTPUT=`$JAVA -Xms32M -version 2>&1` 24472 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24473 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24474 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24475 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xms32M" 24476 JVM_ARG_OK=true 24477 else 24478 $ECHO "Arg failed:" >&5 24479 $ECHO "$OUTPUT" >&5 24480 JVM_ARG_OK=false 24481 fi 24482 24483 24484 $ECHO "Check if jvm arg is ok: -Xmx512M" >&5 24485 $ECHO "Command: $JAVA -Xmx512M -version" >&5 24486 OUTPUT=`$JAVA -Xmx512M -version 2>&1` 24487 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 24488 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 24489 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 24490 boot_jdk_jvmargs_small="$boot_jdk_jvmargs_small -Xmx512M" 24491 JVM_ARG_OK=true 24492 else 24493 $ECHO "Arg failed:" >&5 24494 $ECHO "$OUTPUT" >&5 24495 JVM_ARG_OK=false 24496 fi 24497 24498 24499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $boot_jdk_jvmargs_small" >&5 24500 $as_echo "$boot_jdk_jvmargs_small" >&6; } 24501 24502 JAVA_FLAGS_SMALL=$boot_jdk_jvmargs_small 24503 24504 24505 24506 ############################################################################### 24507 # 24508 # Configure the sources to use. We can add or override individual directories. 24509 # 24510 ############################################################################### 24511 24512 24513 # Where are the sources. Any of these can be overridden 24514 # using --with-override-corba and the likes. 24515 LANGTOOLS_TOPDIR="$SRC_ROOT/langtools" 24516 CORBA_TOPDIR="$SRC_ROOT/corba" 24517 JAXP_TOPDIR="$SRC_ROOT/jaxp" 24518 JAXWS_TOPDIR="$SRC_ROOT/jaxws" 24519 HOTSPOT_TOPDIR="$SRC_ROOT/hotspot" 24520 NASHORN_TOPDIR="$SRC_ROOT/nashorn" 24521 JDK_TOPDIR="$SRC_ROOT/jdk" 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 ############################################################################### 24533 # 24534 # Pickup additional source for a component from outside of the source root 24535 # or override source for a component. 24536 # 24537 24538 # Check whether --with-add-source-root was given. 24539 if test "${with_add_source_root+set}" = set; then : 24540 withval=$with_add_source_root; 24541 fi 24542 24543 24544 24545 # Check whether --with-override-source-root was given. 24546 if test "${with_override_source_root+set}" = set; then : 24547 withval=$with_override_source_root; 24548 fi 24549 24550 24551 24552 # Check whether --with-adds-and-overrides was given. 24553 if test "${with_adds_and_overrides+set}" = set; then : 24554 withval=$with_adds_and_overrides; 24555 fi 24556 24557 24558 if test "x$with_adds_and_overrides" != x; then 24559 with_add_source_root="$with_adds_and_overrides/adds" 24560 with_override_source_root="$with_adds_and_overrides/overrides" 24561 fi 24562 24563 if test "x$with_add_source_root" != x; then 24564 if ! test -d $with_add_source_root; then 24565 as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5 24566 fi 24567 CURDIR="$PWD" 24568 cd "$with_add_source_root" 24569 ADD_SRC_ROOT="`pwd`" 24570 cd "$CURDIR" 24571 # Verify that the addon source root does not have any root makefiles. 24572 # If it does, then it is usually an error, prevent this. 24573 if test -f $with_add_source_root/langtools/make/Makefile; then 24574 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 24575 fi 24576 if test -f $with_add_source_root/corba/make/Makefile; then 24577 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 24578 fi 24579 if test -f $with_add_source_root/jaxp/make/Makefile; then 24580 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 24581 fi 24582 if test -f $with_add_source_root/jaxws/make/Makefile; then 24583 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 24584 fi 24585 if test -f $with_add_source_root/hotspot/make/Makefile; then 24586 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 24587 fi 24588 if test -f $with_add_source_root/nashorn/make/Makefile; then 24589 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 24590 fi 24591 if test -f $with_add_source_root/jdk/make/Makefile; then 24592 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 24593 fi 24594 fi 24595 24596 24597 if test "x$with_override_source_root" != x; then 24598 if ! test -d $with_override_source_root; then 24599 as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5 24600 fi 24601 CURDIR="$PWD" 24602 cd "$with_override_source_root" 24603 OVERRIDE_SRC_ROOT="`pwd`" 24604 cd "$CURDIR" 24605 if test -f $with_override_source_root/langtools/make/Makefile; then 24606 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 24607 fi 24608 if test -f $with_override_source_root/corba/make/Makefile; then 24609 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 24610 fi 24611 if test -f $with_override_source_root/jaxp/make/Makefile; then 24612 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 24613 fi 24614 if test -f $with_override_source_root/jaxws/make/Makefile; then 24615 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 24616 fi 24617 if test -f $with_override_source_root/hotspot/make/Makefile; then 24618 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 24619 fi 24620 if test -f $with_override_source_root/nashorn/make/Makefile; then 24621 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 24622 fi 24623 if test -f $with_override_source_root/jdk/make/Makefile; then 24624 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 24625 fi 24626 fi 24627 24628 24629 ############################################################################### 24630 # 24631 # Override a repo completely, this is used for example when you have 3 small 24632 # development sandboxes of the langtools sources and want to avoid having 3 full 24633 # OpenJDK sources checked out on disk. 24634 # 24635 # Assuming that the 3 langtools sandboxes are located here: 24636 # /home/fredrik/sandbox1/langtools 24637 # /home/fredrik/sandbox2/langtools 24638 # /home/fredrik/sandbox3/langtools 24639 # 24640 # From the source root you create build subdirs manually: 24641 # mkdir -p build1 build2 build3 24642 # in each build directory run: 24643 # (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make) 24644 # (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make) 24645 # (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make) 24646 # 24647 24648 24649 # Check whether --with-override-langtools was given. 24650 if test "${with_override_langtools+set}" = set; then : 24651 withval=$with_override_langtools; 24652 fi 24653 24654 24655 24656 # Check whether --with-override-corba was given. 24657 if test "${with_override_corba+set}" = set; then : 24658 withval=$with_override_corba; 24659 fi 24660 24661 24662 24663 # Check whether --with-override-jaxp was given. 24664 if test "${with_override_jaxp+set}" = set; then : 24665 withval=$with_override_jaxp; 24666 fi 24667 24668 24669 24670 # Check whether --with-override-jaxws was given. 24671 if test "${with_override_jaxws+set}" = set; then : 24672 withval=$with_override_jaxws; 24673 fi 24674 24675 24676 24677 # Check whether --with-override-hotspot was given. 24678 if test "${with_override_hotspot+set}" = set; then : 24679 withval=$with_override_hotspot; 24680 fi 24681 24682 24683 24684 # Check whether --with-override-nashorn was given. 24685 if test "${with_override_nashorn+set}" = set; then : 24686 withval=$with_override_nashorn; 24687 fi 24688 24689 24690 24691 # Check whether --with-override-jdk was given. 24692 if test "${with_override_jdk+set}" = set; then : 24693 withval=$with_override_jdk; 24694 fi 24695 24696 24697 if test "x$with_override_langtools" != x; then 24698 CURDIR="$PWD" 24699 cd "$with_override_langtools" 24700 LANGTOOLS_TOPDIR="`pwd`" 24701 cd "$CURDIR" 24702 if ! test -f $LANGTOOLS_TOPDIR/make/Makefile; then 24703 as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5 24704 fi 24705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5 24706 $as_echo_n "checking if langtools should be overridden... " >&6; } 24707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5 24708 $as_echo "yes with $LANGTOOLS_TOPDIR" >&6; } 24709 fi 24710 if test "x$with_override_corba" != x; then 24711 CURDIR="$PWD" 24712 cd "$with_override_corba" 24713 CORBA_TOPDIR="`pwd`" 24714 cd "$CURDIR" 24715 if ! test -f $CORBA_TOPDIR/make/Makefile; then 24716 as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5 24717 fi 24718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5 24719 $as_echo_n "checking if corba should be overridden... " >&6; } 24720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5 24721 $as_echo "yes with $CORBA_TOPDIR" >&6; } 24722 fi 24723 if test "x$with_override_jaxp" != x; then 24724 CURDIR="$PWD" 24725 cd "$with_override_jaxp" 24726 JAXP_TOPDIR="`pwd`" 24727 cd "$CURDIR" 24728 if ! test -f $JAXP_TOPDIR/make/Makefile; then 24729 as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5 24730 fi 24731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5 24732 $as_echo_n "checking if jaxp should be overridden... " >&6; } 24733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5 24734 $as_echo "yes with $JAXP_TOPDIR" >&6; } 24735 fi 24736 if test "x$with_override_jaxws" != x; then 24737 CURDIR="$PWD" 24738 cd "$with_override_jaxws" 24739 JAXWS_TOPDIR="`pwd`" 24740 cd "$CURDIR" 24741 if ! test -f $JAXWS_TOPDIR/make/Makefile; then 24742 as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5 24743 fi 24744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5 24745 $as_echo_n "checking if jaxws should be overridden... " >&6; } 24746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5 24747 $as_echo "yes with $JAXWS_TOPDIR" >&6; } 24748 fi 24749 if test "x$with_override_hotspot" != x; then 24750 CURDIR="$PWD" 24751 cd "$with_override_hotspot" 24752 HOTSPOT_TOPDIR="`pwd`" 24753 cd "$CURDIR" 24754 if ! test -f $HOTSPOT_TOPDIR/make/Makefile; then 24755 as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5 24756 fi 24757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5 24758 $as_echo_n "checking if hotspot should be overridden... " >&6; } 24759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5 24760 $as_echo "yes with $HOTSPOT_TOPDIR" >&6; } 24761 fi 24762 if test "x$with_override_nashorn" != x; then 24763 CURDIR="$PWD" 24764 cd "$with_override_nashorn" 24765 NASHORN_TOPDIR="`pwd`" 24766 cd "$CURDIR" 24767 if ! test -f $NASHORN_TOPDIR/make/Makefile; then 24768 as_fn_error $? "You have to override nashorn with a full nashorn repo!" "$LINENO" 5 24769 fi 24770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if nashorn should be overridden" >&5 24771 $as_echo_n "checking if nashorn should be overridden... " >&6; } 24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $NASHORN_TOPDIR" >&5 24773 $as_echo "yes with $NASHORN_TOPDIR" >&6; } 24774 fi 24775 if test "x$with_override_jdk" != x; then 24776 CURDIR="$PWD" 24777 cd "$with_override_jdk" 24778 JDK_TOPDIR="`pwd`" 24779 cd "$CURDIR" 24780 if ! test -f $JDK_TOPDIR/make/Makefile; then 24781 as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5 24782 fi 24783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5 24784 $as_echo_n "checking if JDK should be overridden... " >&6; } 24785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5 24786 $as_echo "yes with $JDK_TOPDIR" >&6; } 24787 fi 24788 24789 24790 BUILD_OUTPUT="$OUTPUT_ROOT" 24791 24792 24793 HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist" 24794 BUILD_HOTSPOT=true 24795 24796 24797 24798 # Check whether --with-import-hotspot was given. 24799 if test "${with_import_hotspot+set}" = set; then : 24800 withval=$with_import_hotspot; 24801 fi 24802 24803 if test "x$with_import_hotspot" != x; then 24804 CURDIR="$PWD" 24805 cd "$with_import_hotspot" 24806 HOTSPOT_DIST="`pwd`" 24807 cd "$CURDIR" 24808 if ! (test -d $HOTSPOT_DIST/lib && test -d $HOTSPOT_DIST/jre/lib); then 24809 as_fn_error $? "You have to import hotspot from a full jdk image or hotspot build dist dir!" "$LINENO" 5 24810 fi 24811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be imported" >&5 24812 $as_echo_n "checking if hotspot should be imported... " >&6; } 24813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes from $HOTSPOT_DIST" >&5 24814 $as_echo "yes from $HOTSPOT_DIST" >&6; } 24815 BUILD_HOTSPOT=false 24816 fi 24817 24818 JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk" 24819 24820 24821 ############################################################################### 24822 # 24823 # Setup the toolchain (compilers etc), i.e. tools used to compile and process 24824 # native code. 24825 # 24826 ############################################################################### 24827 24828 # First determine the toolchain type (compiler family) 24829 24830 24831 # Check whether --with-toolchain-type was given. 24832 if test "${with_toolchain_type+set}" = set; then : 24833 withval=$with_toolchain_type; 24834 fi 24835 24836 24837 # Use indirect variable referencing 24838 toolchain_var_name=VALID_TOOLCHAINS_$OPENJDK_BUILD_OS 24839 VALID_TOOLCHAINS=${!toolchain_var_name} 24840 # First toolchain type in the list is the default 24841 DEFAULT_TOOLCHAIN=${VALID_TOOLCHAINS%% *} 24842 24843 if test "x$with_toolchain_type" = xlist; then 24844 # List all toolchains 24845 { $as_echo "$as_me:${as_lineno-$LINENO}: The following toolchains are valid on this platform:" >&5 24846 $as_echo "$as_me: The following toolchains are valid on this platform:" >&6;} 24847 for toolchain in $VALID_TOOLCHAINS; do 24848 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$toolchain 24849 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 24850 $PRINTF " %-10s %s\n" $toolchain "$TOOLCHAIN_DESCRIPTION" 24851 done 24852 24853 exit 0 24854 elif test "x$with_toolchain_type" != x; then 24855 # User override; check that it is valid 24856 if test "x${VALID_TOOLCHAINS/$with_toolchain_type/}" = "x${VALID_TOOLCHAINS}"; then 24857 { $as_echo "$as_me:${as_lineno-$LINENO}: Toolchain type $with_toolchain_type is not valid on this platform." >&5 24858 $as_echo "$as_me: Toolchain type $with_toolchain_type is not valid on this platform." >&6;} 24859 { $as_echo "$as_me:${as_lineno-$LINENO}: Valid toolchains: $VALID_TOOLCHAINS." >&5 24860 $as_echo "$as_me: Valid toolchains: $VALID_TOOLCHAINS." >&6;} 24861 as_fn_error $? "Cannot continue." "$LINENO" 5 24862 fi 24863 TOOLCHAIN_TYPE=$with_toolchain_type 24864 else 24865 # No flag given, use default 24866 TOOLCHAIN_TYPE=$DEFAULT_TOOLCHAIN 24867 fi 24868 24869 24870 TOOLCHAIN_CC_BINARY_clang="clang" 24871 TOOLCHAIN_CC_BINARY_gcc="gcc" 24872 TOOLCHAIN_CC_BINARY_microsoft="cl" 24873 TOOLCHAIN_CC_BINARY_solstudio="cc" 24874 TOOLCHAIN_CC_BINARY_xlc="xlc_r" 24875 24876 TOOLCHAIN_CXX_BINARY_clang="clang++" 24877 TOOLCHAIN_CXX_BINARY_gcc="g++" 24878 TOOLCHAIN_CXX_BINARY_microsoft="cl" 24879 TOOLCHAIN_CXX_BINARY_solstudio="CC" 24880 TOOLCHAIN_CXX_BINARY_xlc="xlC_r" 24881 24882 # Use indirect variable referencing 24883 toolchain_var_name=TOOLCHAIN_DESCRIPTION_$TOOLCHAIN_TYPE 24884 TOOLCHAIN_DESCRIPTION=${!toolchain_var_name} 24885 toolchain_var_name=TOOLCHAIN_CC_BINARY_$TOOLCHAIN_TYPE 24886 TOOLCHAIN_CC_BINARY=${!toolchain_var_name} 24887 toolchain_var_name=TOOLCHAIN_CXX_BINARY_$TOOLCHAIN_TYPE 24888 TOOLCHAIN_CXX_BINARY=${!toolchain_var_name} 24889 24890 24891 # Define filename patterns 24892 if test "x$OPENJDK_TARGET_OS" = xwindows; then 24893 LIBRARY_PREFIX= 24894 SHARED_LIBRARY_SUFFIX='.dll' 24895 STATIC_LIBRARY_SUFFIX='.lib' 24896 SHARED_LIBRARY='$1.dll' 24897 STATIC_LIBRARY='$1.lib' 24898 OBJ_SUFFIX='.obj' 24899 EXE_SUFFIX='.exe' 24900 else 24901 LIBRARY_PREFIX=lib 24902 SHARED_LIBRARY_SUFFIX='.so' 24903 STATIC_LIBRARY_SUFFIX='.a' 24904 SHARED_LIBRARY='lib$1.so' 24905 STATIC_LIBRARY='lib$1.a' 24906 OBJ_SUFFIX='.o' 24907 EXE_SUFFIX='' 24908 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 24909 SHARED_LIBRARY='lib$1.dylib' 24910 SHARED_LIBRARY_SUFFIX='.dylib' 24911 fi 24912 fi 24913 24914 24915 24916 24917 24918 24919 24920 24921 24922 24923 if test "x$TOOLCHAIN_TYPE" = "x$DEFAULT_TOOLCHAIN"; then 24924 { $as_echo "$as_me:${as_lineno-$LINENO}: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&5 24925 $as_echo "$as_me: Using default toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)" >&6;} 24926 else 24927 { $as_echo "$as_me:${as_lineno-$LINENO}: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&5 24928 $as_echo "$as_me: Using user selected toolchain $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION). Default toolchain is $DEFAULT_TOOLCHAIN." >&6;} 24929 fi 24930 24931 24932 # Then detect the actual binaries needed 24933 24934 # FIXME: Is this needed? 24935 ac_ext=cpp 24936 ac_cpp='$CXXCPP $CPPFLAGS' 24937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24940 24941 24942 # Store the CFLAGS etal passed to the configure script. 24943 ORG_CFLAGS="$CFLAGS" 24944 ORG_CXXFLAGS="$CXXFLAGS" 24945 ORG_OBJCFLAGS="$OBJCFLAGS" 24946 24947 # On Windows, we need to detect the visual studio installation first. 24948 # This will change the PATH, but we need to keep that new PATH even 24949 # after toolchain detection is done, since the compiler (on x86) uses 24950 # it for DLL resolution in runtime. 24951 if test "x$OPENJDK_BUILD_OS" = "xwindows" && test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then 24952 24953 # Store path to cygwin link.exe to help excluding it when searching for 24954 # VS linker. This must be done before changing the PATH when looking for VS. 24955 # Extract the first word of "link", so it can be a program name with args. 24956 set dummy link; ac_word=$2 24957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 24958 $as_echo_n "checking for $ac_word... " >&6; } 24959 if ${ac_cv_path_CYGWIN_LINK+:} false; then : 24960 $as_echo_n "(cached) " >&6 24961 else 24962 case $CYGWIN_LINK in 24963 [\\/]* | ?:[\\/]*) 24964 ac_cv_path_CYGWIN_LINK="$CYGWIN_LINK" # Let the user override the test with a path. 24965 ;; 24966 *) 24967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24968 for as_dir in $PATH 24969 do 24970 IFS=$as_save_IFS 24971 test -z "$as_dir" && as_dir=. 24972 for ac_exec_ext in '' $ac_executable_extensions; do 24973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 24974 ac_cv_path_CYGWIN_LINK="$as_dir/$ac_word$ac_exec_ext" 24975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 24976 break 2 24977 fi 24978 done 24979 done 24980 IFS=$as_save_IFS 24981 24982 ;; 24983 esac 24984 fi 24985 CYGWIN_LINK=$ac_cv_path_CYGWIN_LINK 24986 if test -n "$CYGWIN_LINK"; then 24987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGWIN_LINK" >&5 24988 $as_echo "$CYGWIN_LINK" >&6; } 24989 else 24990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24991 $as_echo "no" >&6; } 24992 fi 24993 24994 24995 if test "x$CYGWIN_LINK" != x; then 24996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the first found link.exe is actually the Cygwin link tool" >&5 24997 $as_echo_n "checking if the first found link.exe is actually the Cygwin link tool... " >&6; } 24998 "$CYGWIN_LINK" --version > /dev/null 24999 if test $? -eq 0 ; then 25000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25001 $as_echo "yes" >&6; } 25002 else 25003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25004 $as_echo "no" >&6; } 25005 # This might be the VS linker. Don't exclude it later on. 25006 CYGWIN_LINK="" 25007 fi 25008 fi 25009 25010 # First-hand choice is to locate and run the vsvars bat file. 25011 25012 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25013 VCVARSFILE="vc/bin/vcvars32.bat" 25014 else 25015 VCVARSFILE="vc/bin/amd64/vcvars64.bat" 25016 fi 25017 25018 VS_ENV_CMD="" 25019 VS_ENV_ARGS="" 25020 if test "x$with_toolsdir" != x; then 25021 25022 if test "x$VS_ENV_CMD" = x; then 25023 VS100BASE="$with_toolsdir/../.." 25024 METHOD="--with-tools-dir" 25025 25026 windows_path="$VS100BASE" 25027 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25028 unix_path=`$CYGPATH -u "$windows_path"` 25029 VS100BASE="$unix_path" 25030 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25031 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25032 VS100BASE="$unix_path" 25033 fi 25034 25035 if test -d "$VS100BASE"; then 25036 if test -f "$VS100BASE/$VCVARSFILE"; then 25037 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25038 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25039 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25040 else 25041 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25042 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25043 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25044 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25045 fi 25046 fi 25047 fi 25048 25049 fi 25050 25051 if test "x$with_toolsdir" != x && test "x$VS_ENV_CMD" = x; then 25052 # Having specified an argument which is incorrect will produce an instant failure; 25053 # we should not go on looking 25054 { $as_echo "$as_me:${as_lineno-$LINENO}: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&5 25055 $as_echo "$as_me: The path given by --with-tools-dir does not contain a valid Visual Studio installation" >&6;} 25056 { $as_echo "$as_me:${as_lineno-$LINENO}: Please point to the VC/bin directory within the Visual Studio installation" >&5 25057 $as_echo "$as_me: Please point to the VC/bin directory within the Visual Studio installation" >&6;} 25058 as_fn_error $? "Cannot locate a valid Visual Studio installation" "$LINENO" 5 25059 fi 25060 25061 if test "x$VS100COMNTOOLS" != x; then 25062 25063 if test "x$VS_ENV_CMD" = x; then 25064 VS100BASE="$VS100COMNTOOLS/../.." 25065 METHOD="VS100COMNTOOLS variable" 25066 25067 windows_path="$VS100BASE" 25068 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25069 unix_path=`$CYGPATH -u "$windows_path"` 25070 VS100BASE="$unix_path" 25071 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25072 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25073 VS100BASE="$unix_path" 25074 fi 25075 25076 if test -d "$VS100BASE"; then 25077 if test -f "$VS100BASE/$VCVARSFILE"; then 25078 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25079 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25080 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25081 else 25082 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25083 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25084 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25085 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25086 fi 25087 fi 25088 fi 25089 25090 fi 25091 if test "x$PROGRAMFILES" != x; then 25092 25093 if test "x$VS_ENV_CMD" = x; then 25094 VS100BASE="$PROGRAMFILES/Microsoft Visual Studio 10.0" 25095 METHOD="well-known name" 25096 25097 windows_path="$VS100BASE" 25098 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25099 unix_path=`$CYGPATH -u "$windows_path"` 25100 VS100BASE="$unix_path" 25101 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25102 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25103 VS100BASE="$unix_path" 25104 fi 25105 25106 if test -d "$VS100BASE"; then 25107 if test -f "$VS100BASE/$VCVARSFILE"; then 25108 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25109 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25110 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25111 else 25112 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25113 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25114 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25115 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25116 fi 25117 fi 25118 fi 25119 25120 fi 25121 25122 if test "x$VS_ENV_CMD" = x; then 25123 VS100BASE="C:/Program Files/Microsoft Visual Studio 10.0" 25124 METHOD="well-known name" 25125 25126 windows_path="$VS100BASE" 25127 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25128 unix_path=`$CYGPATH -u "$windows_path"` 25129 VS100BASE="$unix_path" 25130 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25131 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25132 VS100BASE="$unix_path" 25133 fi 25134 25135 if test -d "$VS100BASE"; then 25136 if test -f "$VS100BASE/$VCVARSFILE"; then 25137 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25138 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25139 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25140 else 25141 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25142 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25143 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25144 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25145 fi 25146 fi 25147 fi 25148 25149 25150 if test "x$VS_ENV_CMD" = x; then 25151 VS100BASE="C:/Program Files (x86)/Microsoft Visual Studio 10.0" 25152 METHOD="well-known name" 25153 25154 windows_path="$VS100BASE" 25155 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25156 unix_path=`$CYGPATH -u "$windows_path"` 25157 VS100BASE="$unix_path" 25158 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25159 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25160 VS100BASE="$unix_path" 25161 fi 25162 25163 if test -d "$VS100BASE"; then 25164 if test -f "$VS100BASE/$VCVARSFILE"; then 25165 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25166 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25167 VS_ENV_CMD="$VS100BASE/$VCVARSFILE" 25168 else 25169 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Visual Studio installation at $VS100BASE using $METHOD" >&5 25170 $as_echo "$as_me: Found Visual Studio installation at $VS100BASE using $METHOD" >&6;} 25171 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&5 25172 $as_echo "$as_me: Warning: $VCVARSFILE is missing, this is probably Visual Studio Express. Ignoring" >&6;} 25173 fi 25174 fi 25175 fi 25176 25177 25178 if test "x$ProgramW6432" != x; then 25179 25180 if test "x$VS_ENV_CMD" = x; then 25181 WIN_SDK_BASE="$ProgramW6432/Microsoft SDKs/Windows/v7.1/Bin" 25182 METHOD="well-known name" 25183 25184 windows_path="$WIN_SDK_BASE" 25185 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25186 unix_path=`$CYGPATH -u "$windows_path"` 25187 WIN_SDK_BASE="$unix_path" 25188 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25189 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25190 WIN_SDK_BASE="$unix_path" 25191 fi 25192 25193 if test -d "$WIN_SDK_BASE"; then 25194 # There have been cases of partial or broken SDK installations. A missing 25195 # lib dir is not going to work. 25196 if test ! -d "$WIN_SDK_BASE/../lib"; then 25197 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25198 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25199 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25200 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25201 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25202 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25203 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25204 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25205 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25206 VS_ENV_ARGS="/x86" 25207 else 25208 VS_ENV_ARGS="/x64" 25209 fi 25210 else 25211 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25212 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25213 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25214 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25215 fi 25216 fi 25217 fi 25218 25219 fi 25220 if test "x$PROGRAMW6432" != x; then 25221 25222 if test "x$VS_ENV_CMD" = x; then 25223 WIN_SDK_BASE="$PROGRAMW6432/Microsoft SDKs/Windows/v7.1/Bin" 25224 METHOD="well-known name" 25225 25226 windows_path="$WIN_SDK_BASE" 25227 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25228 unix_path=`$CYGPATH -u "$windows_path"` 25229 WIN_SDK_BASE="$unix_path" 25230 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25231 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25232 WIN_SDK_BASE="$unix_path" 25233 fi 25234 25235 if test -d "$WIN_SDK_BASE"; then 25236 # There have been cases of partial or broken SDK installations. A missing 25237 # lib dir is not going to work. 25238 if test ! -d "$WIN_SDK_BASE/../lib"; then 25239 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25240 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25241 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25242 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25243 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25244 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25245 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25246 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25247 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25248 VS_ENV_ARGS="/x86" 25249 else 25250 VS_ENV_ARGS="/x64" 25251 fi 25252 else 25253 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25254 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25255 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25256 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25257 fi 25258 fi 25259 fi 25260 25261 fi 25262 if test "x$PROGRAMFILES" != x; then 25263 25264 if test "x$VS_ENV_CMD" = x; then 25265 WIN_SDK_BASE="$PROGRAMFILES/Microsoft SDKs/Windows/v7.1/Bin" 25266 METHOD="well-known name" 25267 25268 windows_path="$WIN_SDK_BASE" 25269 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25270 unix_path=`$CYGPATH -u "$windows_path"` 25271 WIN_SDK_BASE="$unix_path" 25272 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25273 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25274 WIN_SDK_BASE="$unix_path" 25275 fi 25276 25277 if test -d "$WIN_SDK_BASE"; then 25278 # There have been cases of partial or broken SDK installations. A missing 25279 # lib dir is not going to work. 25280 if test ! -d "$WIN_SDK_BASE/../lib"; then 25281 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25282 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25283 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25284 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25285 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25286 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25287 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25288 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25289 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25290 VS_ENV_ARGS="/x86" 25291 else 25292 VS_ENV_ARGS="/x64" 25293 fi 25294 else 25295 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25296 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25297 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25298 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25299 fi 25300 fi 25301 fi 25302 25303 fi 25304 25305 if test "x$VS_ENV_CMD" = x; then 25306 WIN_SDK_BASE="C:/Program Files/Microsoft SDKs/Windows/v7.1/Bin" 25307 METHOD="well-known name" 25308 25309 windows_path="$WIN_SDK_BASE" 25310 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25311 unix_path=`$CYGPATH -u "$windows_path"` 25312 WIN_SDK_BASE="$unix_path" 25313 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25314 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25315 WIN_SDK_BASE="$unix_path" 25316 fi 25317 25318 if test -d "$WIN_SDK_BASE"; then 25319 # There have been cases of partial or broken SDK installations. A missing 25320 # lib dir is not going to work. 25321 if test ! -d "$WIN_SDK_BASE/../lib"; then 25322 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25323 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25324 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25325 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25326 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25327 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25328 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25329 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25330 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25331 VS_ENV_ARGS="/x86" 25332 else 25333 VS_ENV_ARGS="/x64" 25334 fi 25335 else 25336 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25337 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25338 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25339 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25340 fi 25341 fi 25342 fi 25343 25344 25345 if test "x$VS_ENV_CMD" = x; then 25346 WIN_SDK_BASE="C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1/Bin" 25347 METHOD="well-known name" 25348 25349 windows_path="$WIN_SDK_BASE" 25350 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25351 unix_path=`$CYGPATH -u "$windows_path"` 25352 WIN_SDK_BASE="$unix_path" 25353 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25354 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25355 WIN_SDK_BASE="$unix_path" 25356 fi 25357 25358 if test -d "$WIN_SDK_BASE"; then 25359 # There have been cases of partial or broken SDK installations. A missing 25360 # lib dir is not going to work. 25361 if test ! -d "$WIN_SDK_BASE/../lib"; then 25362 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25363 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25364 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, lib dir is missing. Ignoring" >&5 25365 $as_echo "$as_me: Warning: Installation is broken, lib dir is missing. Ignoring" >&6;} 25366 elif test -f "$WIN_SDK_BASE/SetEnv.Cmd"; then 25367 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25368 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25369 VS_ENV_CMD="$WIN_SDK_BASE/SetEnv.Cmd" 25370 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 25371 VS_ENV_ARGS="/x86" 25372 else 25373 VS_ENV_ARGS="/x64" 25374 fi 25375 else 25376 { $as_echo "$as_me:${as_lineno-$LINENO}: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&5 25377 $as_echo "$as_me: Found Windows SDK installation at $WIN_SDK_BASE using $METHOD" >&6;} 25378 { $as_echo "$as_me:${as_lineno-$LINENO}: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&5 25379 $as_echo "$as_me: Warning: Installation is broken, SetEnv.Cmd is missing. Ignoring" >&6;} 25380 fi 25381 fi 25382 fi 25383 25384 25385 if test "x$VS_ENV_CMD" != x; then 25386 # We have found a Visual Studio environment on disk, let's extract variables from the vsvars bat file. 25387 25388 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25389 25390 # First separate the path from the arguments. This will split at the first 25391 # space. 25392 complete="$VS_ENV_CMD" 25393 path="${complete%% *}" 25394 tmp="$complete EOL" 25395 arguments="${tmp#* }" 25396 25397 # Input might be given as Windows format, start by converting to 25398 # unix format. 25399 new_path=`$CYGPATH -u "$path"` 25400 25401 # Now try to locate executable using which 25402 new_path=`$WHICH "$new_path" 2> /dev/null` 25403 # bat and cmd files are not always considered executable in cygwin causing which 25404 # to not find them 25405 if test "x$new_path" = x \ 25406 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25407 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25408 new_path=`$CYGPATH -u "$path"` 25409 fi 25410 if test "x$new_path" = x; then 25411 # Oops. Which didn't find the executable. 25412 # The splitting of arguments from the executable at a space might have been incorrect, 25413 # since paths with space are more likely in Windows. Give it another try with the whole 25414 # argument. 25415 path="$complete" 25416 arguments="EOL" 25417 new_path=`$CYGPATH -u "$path"` 25418 new_path=`$WHICH "$new_path" 2> /dev/null` 25419 # bat and cmd files are not always considered executable in cygwin causing which 25420 # to not find them 25421 if test "x$new_path" = x \ 25422 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 25423 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 25424 new_path=`$CYGPATH -u "$path"` 25425 fi 25426 if test "x$new_path" = x; then 25427 # It's still not found. Now this is an unrecoverable error. 25428 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 25429 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 25430 has_space=`$ECHO "$complete" | $GREP " "` 25431 if test "x$has_space" != x; then 25432 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25433 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25434 fi 25435 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25436 fi 25437 fi 25438 25439 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 25440 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 25441 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 25442 # "foo.exe" is OK but "foo" is an error. 25443 # 25444 # This test is therefore slightly more accurate than "test -f" to check for file presence. 25445 # It is also a way to make sure we got the proper file name for the real test later on. 25446 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 25447 if test "x$test_shortpath" = x; then 25448 # Short path failed, file does not exist as specified. 25449 # Try adding .exe or .cmd 25450 if test -f "${new_path}.exe"; then 25451 input_to_shortpath="${new_path}.exe" 25452 elif test -f "${new_path}.cmd"; then 25453 input_to_shortpath="${new_path}.cmd" 25454 else 25455 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&5 25456 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$new_path\", is invalid." >&6;} 25457 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 25458 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 25459 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25460 fi 25461 else 25462 input_to_shortpath="$new_path" 25463 fi 25464 25465 # Call helper function which possibly converts this using DOS-style short mode. 25466 # If so, the updated path is stored in $new_path. 25467 new_path="$input_to_shortpath" 25468 25469 input_path="$input_to_shortpath" 25470 # Check if we need to convert this using DOS-style short mode. If the path 25471 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25472 # take no chances and rewrite it. 25473 # Note: m4 eats our [], so we need to use [ and ] instead. 25474 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 25475 if test "x$has_forbidden_chars" != x; then 25476 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25477 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 25478 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 25479 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 25480 # Going to short mode and back again did indeed matter. Since short mode is 25481 # case insensitive, let's make it lowercase to improve readability. 25482 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25483 # Now convert it back to Unix-stile (cygpath) 25484 input_path=`$CYGPATH -u "$shortmode_path"` 25485 new_path="$input_path" 25486 fi 25487 fi 25488 25489 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 25490 if test "x$test_cygdrive_prefix" = x; then 25491 # As a simple fix, exclude /usr/bin since it's not a real path. 25492 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 25493 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 25494 # a path prefixed by /cygdrive for fixpath to work. 25495 new_path="$CYGWIN_ROOT_PATH$input_path" 25496 fi 25497 fi 25498 25499 # remove trailing .exe if any 25500 new_path="${new_path/%.exe/}" 25501 25502 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25503 25504 # First separate the path from the arguments. This will split at the first 25505 # space. 25506 complete="$VS_ENV_CMD" 25507 path="${complete%% *}" 25508 tmp="$complete EOL" 25509 arguments="${tmp#* }" 25510 25511 # Input might be given as Windows format, start by converting to 25512 # unix format. 25513 new_path="$path" 25514 25515 windows_path="$new_path" 25516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25517 unix_path=`$CYGPATH -u "$windows_path"` 25518 new_path="$unix_path" 25519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25521 new_path="$unix_path" 25522 fi 25523 25524 25525 # Now try to locate executable using which 25526 new_path=`$WHICH "$new_path" 2> /dev/null` 25527 25528 if test "x$new_path" = x; then 25529 # Oops. Which didn't find the executable. 25530 # The splitting of arguments from the executable at a space might have been incorrect, 25531 # since paths with space are more likely in Windows. Give it another try with the whole 25532 # argument. 25533 path="$complete" 25534 arguments="EOL" 25535 new_path="$path" 25536 25537 windows_path="$new_path" 25538 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25539 unix_path=`$CYGPATH -u "$windows_path"` 25540 new_path="$unix_path" 25541 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25542 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25543 new_path="$unix_path" 25544 fi 25545 25546 25547 new_path=`$WHICH "$new_path" 2> /dev/null` 25548 25549 if test "x$new_path" = x; then 25550 # It's still not found. Now this is an unrecoverable error. 25551 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 25552 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 25553 has_space=`$ECHO "$complete" | $GREP " "` 25554 if test "x$has_space" != x; then 25555 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 25556 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 25557 fi 25558 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25559 fi 25560 fi 25561 25562 # Now new_path has a complete unix path to the binary 25563 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 25564 # Keep paths in /bin as-is, but remove trailing .exe if any 25565 new_path="${new_path/%.exe/}" 25566 # Do not save /bin paths to all_fixpath_prefixes! 25567 else 25568 # Not in mixed or Windows style, start by that. 25569 new_path=`cmd //c echo $new_path` 25570 25571 input_path="$new_path" 25572 # Check if we need to convert this using DOS-style short mode. If the path 25573 # contains just simple characters, use it. Otherwise (spaces, weird characters), 25574 # take no chances and rewrite it. 25575 # Note: m4 eats our [], so we need to use [ and ] instead. 25576 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 25577 if test "x$has_forbidden_chars" != x; then 25578 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 25579 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 25580 fi 25581 25582 # Output is in $new_path 25583 25584 windows_path="$new_path" 25585 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25586 unix_path=`$CYGPATH -u "$windows_path"` 25587 new_path="$unix_path" 25588 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25589 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 25590 new_path="$unix_path" 25591 fi 25592 25593 # remove trailing .exe if any 25594 new_path="${new_path/%.exe/}" 25595 25596 # Save the first 10 bytes of this path to the storage, so fixpath can work. 25597 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 25598 fi 25599 25600 else 25601 # We're on a posix platform. Hooray! :) 25602 # First separate the path from the arguments. This will split at the first 25603 # space. 25604 complete="$VS_ENV_CMD" 25605 path="${complete%% *}" 25606 tmp="$complete EOL" 25607 arguments="${tmp#* }" 25608 25609 # Cannot rely on the command "which" here since it doesn't always work. 25610 is_absolute_path=`$ECHO "$path" | $GREP ^/` 25611 if test -z "$is_absolute_path"; then 25612 # Path to executable is not absolute. Find it. 25613 IFS_save="$IFS" 25614 IFS=: 25615 for p in $PATH; do 25616 if test -f "$p/$path" && test -x "$p/$path"; then 25617 new_path="$p/$path" 25618 break 25619 fi 25620 done 25621 IFS="$IFS_save" 25622 else 25623 # This is an absolute path, we can use it without further modifications. 25624 new_path="$path" 25625 fi 25626 25627 if test "x$new_path" = x; then 25628 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&5 25629 $as_echo "$as_me: The path of VS_ENV_CMD, which resolves as \"$complete\", is not found." >&6;} 25630 has_space=`$ECHO "$complete" | $GREP " "` 25631 if test "x$has_space" != x; then 25632 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 25633 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 25634 fi 25635 as_fn_error $? "Cannot locate the the path of VS_ENV_CMD" "$LINENO" 5 25636 fi 25637 fi 25638 25639 # Now join together the path and the arguments once again 25640 if test "x$arguments" != xEOL; then 25641 new_complete="$new_path ${arguments% *}" 25642 else 25643 new_complete="$new_path" 25644 fi 25645 25646 if test "x$complete" != "x$new_complete"; then 25647 VS_ENV_CMD="$new_complete" 25648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting VS_ENV_CMD to \"$new_complete\"" >&5 25649 $as_echo "$as_me: Rewriting VS_ENV_CMD to \"$new_complete\"" >&6;} 25650 fi 25651 25652 25653 # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat 25654 { $as_echo "$as_me:${as_lineno-$LINENO}: Trying to extract Visual Studio environment variables" >&5 25655 $as_echo "$as_me: Trying to extract Visual Studio environment variables" >&6;} 25656 25657 # We need to create a couple of temporary files. 25658 VS_ENV_TMP_DIR="$OUTPUT_ROOT/vs-env" 25659 $MKDIR -p $VS_ENV_TMP_DIR 25660 25661 # Cannot use the VS10 setup script directly (since it only updates the DOS subshell environment). 25662 # Instead create a shell script which will set the relevant variables when run. 25663 WINPATH_VS_ENV_CMD="$VS_ENV_CMD" 25664 25665 unix_path="$WINPATH_VS_ENV_CMD" 25666 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25667 windows_path=`$CYGPATH -m "$unix_path"` 25668 WINPATH_VS_ENV_CMD="$windows_path" 25669 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25670 windows_path=`cmd //c echo $unix_path` 25671 WINPATH_VS_ENV_CMD="$windows_path" 25672 fi 25673 25674 WINPATH_BASH="$BASH" 25675 25676 unix_path="$WINPATH_BASH" 25677 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 25678 windows_path=`$CYGPATH -m "$unix_path"` 25679 WINPATH_BASH="$windows_path" 25680 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 25681 windows_path=`cmd //c echo $unix_path` 25682 WINPATH_BASH="$windows_path" 25683 fi 25684 25685 25686 # Generate a DOS batch file which runs $VS_ENV_CMD, and then creates a shell 25687 # script (executable by bash) that will setup the important variables. 25688 EXTRACT_VC_ENV_BAT_FILE="$VS_ENV_TMP_DIR/extract-vs-env.bat" 25689 $ECHO "@echo off" > $EXTRACT_VC_ENV_BAT_FILE 25690 # This will end up something like: 25691 # call C:/progra~2/micros~2.0/vc/bin/amd64/vcvars64.bat 25692 $ECHO "call $WINPATH_VS_ENV_CMD $VS_ENV_ARGS" >> $EXTRACT_VC_ENV_BAT_FILE 25693 # These will end up something like: 25694 # C:/CygWin/bin/bash -c 'echo VS_PATH=\"$PATH\" > localdevenv.sh 25695 # The trailing space for everyone except PATH is no typo, but is needed due 25696 # to trailing \ in the Windows paths. These will be stripped later. 25697 $ECHO "$WINPATH_BASH -c 'echo VS_PATH="'\"$PATH\" > set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25698 $ECHO "$WINPATH_BASH -c 'echo VS_INCLUDE="'\"$INCLUDE \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25699 $ECHO "$WINPATH_BASH -c 'echo VS_LIB="'\"$LIB \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25700 $ECHO "$WINPATH_BASH -c 'echo VCINSTALLDIR="'\"$VCINSTALLDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25701 $ECHO "$WINPATH_BASH -c 'echo WindowsSdkDir="'\"$WindowsSdkDir \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25702 $ECHO "$WINPATH_BASH -c 'echo WINDOWSSDKDIR="'\"$WINDOWSSDKDIR \" >> set-vs-env.sh' >> $EXTRACT_VC_ENV_BAT_FILE 25703 25704 # Now execute the newly created bat file. 25705 # The | cat is to stop SetEnv.Cmd to mess with system colors on msys. 25706 # Change directory so we don't need to mess with Windows paths in redirects. 25707 cd $VS_ENV_TMP_DIR 25708 cmd /c extract-vs-env.bat | $CAT 25709 cd $CURDIR 25710 25711 if test ! -s $VS_ENV_TMP_DIR/set-vs-env.sh; then 25712 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not succesfully extract the envionment variables needed for the VS setup." >&5 25713 $as_echo "$as_me: Could not succesfully extract the envionment variables needed for the VS setup." >&6;} 25714 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 25715 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 25716 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 25717 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 25718 as_fn_error $? "Cannot continue" "$LINENO" 5 25719 fi 25720 25721 # Now set all paths and other env variables. This will allow the rest of 25722 # the configure script to find and run the compiler in the proper way. 25723 { $as_echo "$as_me:${as_lineno-$LINENO}: Setting extracted environment variables" >&5 25724 $as_echo "$as_me: Setting extracted environment variables" >&6;} 25725 . $VS_ENV_TMP_DIR/set-vs-env.sh 25726 # Now we have VS_PATH, VS_INCLUDE, VS_LIB. For further checking, we 25727 # also define VCINSTALLDIR, WindowsSdkDir and WINDOWSSDKDIR. 25728 else 25729 # We did not find a vsvars bat file, let's hope we are run from a VS command prompt. 25730 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio installation, checking current environment" >&5 25731 $as_echo "$as_me: Cannot locate a valid Visual Studio installation, checking current environment" >&6;} 25732 fi 25733 25734 # At this point, we should have correct variables in the environment, or we can't continue. 25735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Visual Studio variables" >&5 25736 $as_echo_n "checking for Visual Studio variables... " >&6; } 25737 25738 if test "x$VCINSTALLDIR" != x || test "x$WindowsSDKDir" != x || test "x$WINDOWSSDKDIR" != x; then 25739 if test "x$VS_INCLUDE" = x || test "x$VS_LIB" = x; then 25740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: present but broken" >&5 25741 $as_echo "present but broken" >&6; } 25742 as_fn_error $? "Your VC command prompt seems broken, INCLUDE and/or LIB is missing." "$LINENO" 5 25743 else 25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 25745 $as_echo "ok" >&6; } 25746 # Remove any trailing "\" and " " from the variables. 25747 VS_INCLUDE=`$ECHO "$VS_INCLUDE" | $SED 's/\\\\* *$//'` 25748 VS_LIB=`$ECHO "$VS_LIB" | $SED 's/\\\\* *$//'` 25749 VCINSTALLDIR=`$ECHO "$VCINSTALLDIR" | $SED 's/\\\\* *$//'` 25750 WindowsSDKDir=`$ECHO "$WindowsSDKDir" | $SED 's/\\\\* *$//'` 25751 WINDOWSSDKDIR=`$ECHO "$WINDOWSSDKDIR" | $SED 's/\\\\* *$//'` 25752 # Remove any paths containing # (typically F#) as that messes up make. This 25753 # is needed if visual studio was installed with F# support. 25754 VS_PATH=`$ECHO "$VS_PATH" | $SED 's/[^:#]*#[^:]*://g'` 25755 25756 25757 25758 25759 fi 25760 else 25761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 25762 $as_echo "not found" >&6; } 25763 25764 if test "x$VS_ENV_CMD" = x; then 25765 { $as_echo "$as_me:${as_lineno-$LINENO}: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&5 25766 $as_echo "$as_me: Cannot locate a valid Visual Studio or Windows SDK installation on disk," >&6;} 25767 { $as_echo "$as_me:${as_lineno-$LINENO}: nor is this script run from a Visual Studio command prompt." >&5 25768 $as_echo "$as_me: nor is this script run from a Visual Studio command prompt." >&6;} 25769 else 25770 { $as_echo "$as_me:${as_lineno-$LINENO}: Running the extraction script failed." >&5 25771 $as_echo "$as_me: Running the extraction script failed." >&6;} 25772 fi 25773 { $as_echo "$as_me:${as_lineno-$LINENO}: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&5 25774 $as_echo "$as_me: Try setting --with-tools-dir to the VC/bin directory within the VS installation" >&6;} 25775 { $as_echo "$as_me:${as_lineno-$LINENO}: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&5 25776 $as_echo "$as_me: or run \"bash.exe -l\" from a VS command prompt and then run configure from there." >&6;} 25777 as_fn_error $? "Cannot continue" "$LINENO" 5 25778 fi 25779 25780 # Reset path to VS_PATH. It will include everything that was on PATH at the time we 25781 # ran TOOLCHAIN_SETUP_VISUAL_STUDIO_ENV. 25782 PATH="$VS_PATH" 25783 # The microsoft toolchain also requires INCLUDE and LIB to be set. 25784 export INCLUDE="$VS_INCLUDE" 25785 export LIB="$VS_LIB" 25786 fi 25787 25788 # autoconf magic only relies on PATH, so update it if tools dir is specified 25789 OLD_PATH="$PATH" 25790 25791 # Before we locate the compilers, we need to sanitize the Xcode build environment 25792 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 25793 # determine path to Xcode developer directory 25794 # can be empty in which case all the tools will rely on a sane Xcode 4 installation 25795 SET_DEVELOPER_DIR= 25796 25797 if test -n "$XCODE_PATH"; then 25798 DEVELOPER_DIR="$XCODE_PATH"/Contents/Developer 25799 fi 25800 25801 # DEVELOPER_DIR could also be provided directly 25802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining if we need to set DEVELOPER_DIR" >&5 25803 $as_echo_n "checking Determining if we need to set DEVELOPER_DIR... " >&6; } 25804 if test -n "$DEVELOPER_DIR"; then 25805 if test ! -d "$DEVELOPER_DIR"; then 25806 as_fn_error $? "Xcode Developer path does not exist: $DEVELOPER_DIR, please provide a path to the Xcode 4 application bundle using --with-xcode-path" "$LINENO" 5 25807 fi 25808 if test ! -f "$DEVELOPER_DIR"/usr/bin/xcodebuild; then 25809 as_fn_error $? "Xcode Developer path is not valid: $DEVELOPER_DIR, it must point to Contents/Developer inside an Xcode application bundle" "$LINENO" 5 25810 fi 25811 # make it visible to all the tools immediately 25812 export DEVELOPER_DIR 25813 SET_DEVELOPER_DIR="export DEVELOPER_DIR := $DEVELOPER_DIR" 25814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($DEVELOPER_DIR)" >&5 25815 $as_echo "yes ($DEVELOPER_DIR)" >&6; } 25816 else 25817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25818 $as_echo "no" >&6; } 25819 fi 25820 25821 25822 # Extract the first word of "xcodebuild", so it can be a program name with args. 25823 set dummy xcodebuild; ac_word=$2 25824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 25825 $as_echo_n "checking for $ac_word... " >&6; } 25826 if ${ac_cv_path_XCODEBUILD+:} false; then : 25827 $as_echo_n "(cached) " >&6 25828 else 25829 case $XCODEBUILD in 25830 [\\/]* | ?:[\\/]*) 25831 ac_cv_path_XCODEBUILD="$XCODEBUILD" # Let the user override the test with a path. 25832 ;; 25833 *) 25834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 25835 for as_dir in $PATH 25836 do 25837 IFS=$as_save_IFS 25838 test -z "$as_dir" && as_dir=. 25839 for ac_exec_ext in '' $ac_executable_extensions; do 25840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 25841 ac_cv_path_XCODEBUILD="$as_dir/$ac_word$ac_exec_ext" 25842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 25843 break 2 25844 fi 25845 done 25846 done 25847 IFS=$as_save_IFS 25848 25849 ;; 25850 esac 25851 fi 25852 XCODEBUILD=$ac_cv_path_XCODEBUILD 25853 if test -n "$XCODEBUILD"; then 25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XCODEBUILD" >&5 25855 $as_echo "$XCODEBUILD" >&6; } 25856 else 25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25858 $as_echo "no" >&6; } 25859 fi 25860 25861 25862 if test -z "$XCODEBUILD"; then 25863 as_fn_error $? "The xcodebuild tool was not found, the Xcode command line tools are required to build on Mac OS X" "$LINENO" 5 25864 fi 25865 25866 # Fail-fast: verify we're building on Xcode 4, we cannot build with Xcode 5 or later 25867 XCODE_VERSION=`$XCODEBUILD -version | grep '^Xcode ' | sed 's/Xcode //'` 25868 XC_VERSION_PARTS=( ${XCODE_VERSION//./ } ) 25869 if test ! "${XC_VERSION_PARTS[0]}" = "4"; then 25870 as_fn_error $? "Xcode 4 is required to build JDK 8, the version found was $XCODE_VERSION. Use --with-xcode-path to specify the location of Xcode 4 or make Xcode 4 active by using xcode-select." "$LINENO" 5 25871 fi 25872 25873 # Some versions of Xcode 5 command line tools install gcc and g++ as symlinks to 25874 # clang and clang++, which will break the build. So handle that here if we need to. 25875 if test -L "/usr/bin/gcc" -o -L "/usr/bin/g++"; then 25876 # use xcrun to find the real gcc and add it's directory to PATH 25877 # then autoconf magic will find it 25878 { $as_echo "$as_me:${as_lineno-$LINENO}: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&5 25879 $as_echo "$as_me: Found gcc symlinks to clang in /usr/bin, adding path to real gcc to PATH" >&6;} 25880 XCODE_BIN_PATH=$(dirname `xcrun -find gcc`) 25881 PATH="$XCODE_BIN_PATH":$PATH 25882 fi 25883 25884 # Determine appropriate SDKPATH, don't use SDKROOT as it interferes with the stub tools 25885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Determining Xcode SDK path" >&5 25886 $as_echo_n "checking Determining Xcode SDK path... " >&6; } 25887 # allow SDKNAME to be set to override the default SDK selection 25888 SDKPATH=`"$XCODEBUILD" -sdk ${SDKNAME:-macosx} -version | grep '^Path: ' | sed 's/Path: //'` 25889 if test -n "$SDKPATH"; then 25890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDKPATH" >&5 25891 $as_echo "$SDKPATH" >&6; } 25892 else 25893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (none, will use system headers and frameworks)" >&5 25894 $as_echo "(none, will use system headers and frameworks)" >&6; } 25895 fi 25896 25897 25898 # Perform a basic sanity test 25899 if test ! -f "$SDKPATH/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h"; then 25900 as_fn_error $? "Unable to find required framework headers, provide a valid path to Xcode 4 using --with-xcode-path" "$LINENO" 5 25901 fi 25902 25903 # if SDKPATH is non-empty then we need to add -isysroot and -iframework for gcc and g++ 25904 if test -n "$SDKPATH"; then 25905 # We need -isysroot <path> and -iframework<path>/System/Library/Frameworks 25906 CFLAGS_JDK="${CFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 25907 CXXFLAGS_JDK="${CXXFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 25908 LDFLAGS_JDK="${LDFLAGS_JDK} -isysroot \"$SDKPATH\" -iframework\"$SDKPATH/System/Library/Frameworks\"" 25909 fi 25910 25911 # These always need to be set, or we can't find the frameworks embedded in JavaVM.framework 25912 # setting this here means it doesn't have to be peppered throughout the forest 25913 CFLAGS_JDK="$CFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 25914 CXXFLAGS_JDK="$CXXFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 25915 LDFLAGS_JDK="$LDFLAGS_JDK -F\"$SDKPATH/System/Library/Frameworks/JavaVM.framework/Frameworks\"" 25916 fi 25917 25918 # For solaris we really need solaris tools, and not the GNU equivalent. 25919 # The build tools on Solaris reside in /usr/ccs (C Compilation System), 25920 # so add that to path before starting to probe. 25921 # FIXME: This was originally only done for AS,NM,GNM,STRIP,MCS,OBJCOPY,OBJDUMP. 25922 if test "x$OPENJDK_BUILD_OS" = xsolaris; then 25923 PATH="/usr/ccs/bin:$PATH" 25924 fi 25925 25926 # Finally add TOOLS_DIR at the beginning, to allow --with-tools-dir to 25927 # override all other locations. 25928 if test "x$TOOLS_DIR" != x; then 25929 PATH=$TOOLS_DIR:$PATH 25930 fi 25931 25932 # If a devkit is found on the builddeps server, then prepend its path to the 25933 # PATH variable. If there are cross compilers available in the devkit, these 25934 # will be found by AC_PROG_CC et al. 25935 DEVKIT= 25936 25937 25938 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 25939 # Source the builddeps file again, to make sure it uses the latest variables! 25940 . $builddepsfile 25941 # Look for a target and build machine specific resource! 25942 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 25943 if test "x$resource" = x; then 25944 # Ok, lets instead look for a target specific resource 25945 eval resource=\${builddep_devkit_TARGET_${rewritten_target_var}} 25946 fi 25947 if test "x$resource" = x; then 25948 # Ok, lets instead look for a build specific resource 25949 eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}} 25950 fi 25951 if test "x$resource" = x; then 25952 # Ok, lets instead look for a generic resource 25953 # (The devkit comes from M4 and not the shell, thus no need for eval here.) 25954 resource=${builddep_devkit} 25955 fi 25956 if test "x$resource" != x; then 25957 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5 25958 $as_echo "$as_me: Using builddeps $resource for devkit" >&6;} 25959 # If the resource in the builddeps.conf file is an existing directory, 25960 # for example /java/linux/cups 25961 if test -d ${resource}; then 25962 depdir=${resource} 25963 else 25964 25965 # devkit is for example mymodule 25966 # $resource is for example libs/general/libmymod_1_2_3.zip 25967 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 25968 # $with_builddeps_dir is for example /localhome/builddeps 25969 # depdir is the name of the variable into which we store the depdir, eg MYMOD 25970 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 25971 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 25972 filename=`basename $resource` 25973 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 25974 filebase=${filename%%.*} 25975 extension=${filename#*.} 25976 installdir=$with_builddeps_dir/$filebase 25977 if test ! -f $installdir/$filename.unpacked; then 25978 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5 25979 $as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;} 25980 if test ! -d $installdir; then 25981 mkdir -p $installdir 25982 fi 25983 if test ! -d $installdir; then 25984 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 25985 fi 25986 tmpfile=`mktemp $installdir/devkit.XXXXXXXXX` 25987 touch $tmpfile 25988 if test ! -f $tmpfile; then 25989 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 25990 fi 25991 25992 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 25993 # $tmpfile is the local file name for the downloaded file. 25994 VALID_TOOL=no 25995 if test "x$BDEPS_FTP" = xwget; then 25996 VALID_TOOL=yes 25997 wget -O $tmpfile $with_builddeps_server/$resource 25998 fi 25999 if test "x$BDEPS_FTP" = xlftp; then 26000 VALID_TOOL=yes 26001 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 26002 fi 26003 if test "x$BDEPS_FTP" = xftp; then 26004 VALID_TOOL=yes 26005 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 26006 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 26007 FTPUSERPWD=${FTPSERVER%%@*} 26008 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 26009 FTPUSER=${userpwd%%:*} 26010 FTPPWD=${userpwd#*@} 26011 FTPSERVER=${FTPSERVER#*@} 26012 else 26013 FTPUSER=ftp 26014 FTPPWD=ftp 26015 fi 26016 # the "pass" command does not work on some 26017 # ftp clients (read ftp.exe) but if it works, 26018 # passive mode is better! 26019 ( \ 26020 echo "user $FTPUSER $FTPPWD" ; \ 26021 echo "pass" ; \ 26022 echo "bin" ; \ 26023 echo "get $FTPPATH $tmpfile" ; \ 26024 ) | ftp -in $FTPSERVER 26025 fi 26026 if test "x$VALID_TOOL" != xyes; then 26027 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 26028 fi 26029 26030 mv $tmpfile $installdir/$filename 26031 if test ! -s $installdir/$filename; then 26032 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 26033 fi 26034 case "$extension" in 26035 zip) echo "Unzipping $installdir/$filename..." 26036 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 26037 ;; 26038 tar.gz) echo "Untaring $installdir/$filename..." 26039 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 26040 ;; 26041 tgz) echo "Untaring $installdir/$filename..." 26042 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 26043 ;; 26044 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 26045 ;; 26046 esac 26047 fi 26048 if test -f $installdir/$filename.unpacked; then 26049 depdir=$installdir 26050 fi 26051 26052 fi 26053 # Source the builddeps file again, because in the previous command, the depdir 26054 # was updated to point at the current build dependency install directory. 26055 . $builddepsfile 26056 # Now extract variables from the builddeps.conf files. 26057 theroot=${builddep_devkit_ROOT} 26058 thecflags=${builddep_devkit_CFLAGS} 26059 thelibs=${builddep_devkit_LIBS} 26060 if test "x$depdir" = x; then 26061 as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5 26062 fi 26063 DEVKIT=$depdir 26064 if test "x$theroot" != x; then 26065 DEVKIT="$theroot" 26066 fi 26067 if test "x$thecflags" != x; then 26068 DEVKIT_CFLAGS="$thecflags" 26069 fi 26070 if test "x$thelibs" != x; then 26071 DEVKIT_LIBS="$thelibs" 26072 fi 26073 26074 # Found devkit 26075 PATH="$DEVKIT/bin:$PATH" 26076 SYS_ROOT="$DEVKIT/${rewritten_target}/sys-root" 26077 if test "x$x_includes" = "xNONE"; then 26078 x_includes="$SYS_ROOT/usr/include/X11" 26079 fi 26080 if test "x$x_libraries" = "xNONE"; then 26081 x_libraries="$SYS_ROOT/usr/lib" 26082 fi 26083 26084 26085 fi 26086 26087 fi 26088 26089 26090 26091 # 26092 # Setup the compilers (CC and CXX) 26093 # 26094 26095 COMPILER_NAME=C 26096 SEARCH_LIST="$TOOLCHAIN_CC_BINARY" 26097 26098 if test "x$CC" != x; then 26099 # User has supplied compiler name already, always let that override. 26100 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CC=$CC" >&5 26101 $as_echo "$as_me: Will use user supplied compiler CC=$CC" >&6;} 26102 if test "x`basename $CC`" = "x$CC"; then 26103 # A command without a complete path is provided, search $PATH. 26104 26105 for ac_prog in $CC 26106 do 26107 # Extract the first word of "$ac_prog", so it can be a program name with args. 26108 set dummy $ac_prog; ac_word=$2 26109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26110 $as_echo_n "checking for $ac_word... " >&6; } 26111 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26112 $as_echo_n "(cached) " >&6 26113 else 26114 case $POTENTIAL_CC in 26115 [\\/]* | ?:[\\/]*) 26116 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26117 ;; 26118 *) 26119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26120 for as_dir in $PATH 26121 do 26122 IFS=$as_save_IFS 26123 test -z "$as_dir" && as_dir=. 26124 for ac_exec_ext in '' $ac_executable_extensions; do 26125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26126 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26128 break 2 26129 fi 26130 done 26131 done 26132 IFS=$as_save_IFS 26133 26134 ;; 26135 esac 26136 fi 26137 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26138 if test -n "$POTENTIAL_CC"; then 26139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26140 $as_echo "$POTENTIAL_CC" >&6; } 26141 else 26142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26143 $as_echo "no" >&6; } 26144 fi 26145 26146 26147 test -n "$POTENTIAL_CC" && break 26148 done 26149 26150 if test "x$POTENTIAL_CC" != x; then 26151 CC=$POTENTIAL_CC 26152 else 26153 as_fn_error $? "User supplied compiler CC=$CC could not be found" "$LINENO" 5 26154 fi 26155 else 26156 # Otherwise it might already be a complete path 26157 if test ! -x "$CC"; then 26158 as_fn_error $? "User supplied compiler CC=$CC does not exist" "$LINENO" 5 26159 fi 26160 fi 26161 else 26162 # No user supplied value. Locate compiler ourselves. 26163 26164 # If we are cross compiling, assume cross compilation tools follows the 26165 # cross compilation standard where they are prefixed with the autoconf 26166 # standard name for the target. For example the binary 26167 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 26168 # If we are not cross compiling, then the default compiler name will be 26169 # used. 26170 26171 CC= 26172 # If TOOLS_DIR is set, check for all compiler names in there first 26173 # before checking the rest of the PATH. 26174 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 26175 # step, this should not be necessary. 26176 if test -n "$TOOLS_DIR"; then 26177 PATH_save="$PATH" 26178 PATH="$TOOLS_DIR" 26179 for ac_prog in $TOOLCHAIN_CC_BINARY 26180 do 26181 # Extract the first word of "$ac_prog", so it can be a program name with args. 26182 set dummy $ac_prog; ac_word=$2 26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26184 $as_echo_n "checking for $ac_word... " >&6; } 26185 if ${ac_cv_path_TOOLS_DIR_CC+:} false; then : 26186 $as_echo_n "(cached) " >&6 26187 else 26188 case $TOOLS_DIR_CC in 26189 [\\/]* | ?:[\\/]*) 26190 ac_cv_path_TOOLS_DIR_CC="$TOOLS_DIR_CC" # Let the user override the test with a path. 26191 ;; 26192 *) 26193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26194 for as_dir in $PATH 26195 do 26196 IFS=$as_save_IFS 26197 test -z "$as_dir" && as_dir=. 26198 for ac_exec_ext in '' $ac_executable_extensions; do 26199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26200 ac_cv_path_TOOLS_DIR_CC="$as_dir/$ac_word$ac_exec_ext" 26201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26202 break 2 26203 fi 26204 done 26205 done 26206 IFS=$as_save_IFS 26207 26208 ;; 26209 esac 26210 fi 26211 TOOLS_DIR_CC=$ac_cv_path_TOOLS_DIR_CC 26212 if test -n "$TOOLS_DIR_CC"; then 26213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CC" >&5 26214 $as_echo "$TOOLS_DIR_CC" >&6; } 26215 else 26216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26217 $as_echo "no" >&6; } 26218 fi 26219 26220 26221 test -n "$TOOLS_DIR_CC" && break 26222 done 26223 26224 CC=$TOOLS_DIR_CC 26225 PATH="$PATH_save" 26226 fi 26227 26228 # AC_PATH_PROGS can't be run multiple times with the same variable, 26229 # so create a new name for this run. 26230 if test "x$CC" = x; then 26231 for ac_prog in $TOOLCHAIN_CC_BINARY 26232 do 26233 # Extract the first word of "$ac_prog", so it can be a program name with args. 26234 set dummy $ac_prog; ac_word=$2 26235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26236 $as_echo_n "checking for $ac_word... " >&6; } 26237 if ${ac_cv_path_POTENTIAL_CC+:} false; then : 26238 $as_echo_n "(cached) " >&6 26239 else 26240 case $POTENTIAL_CC in 26241 [\\/]* | ?:[\\/]*) 26242 ac_cv_path_POTENTIAL_CC="$POTENTIAL_CC" # Let the user override the test with a path. 26243 ;; 26244 *) 26245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26246 for as_dir in $PATH 26247 do 26248 IFS=$as_save_IFS 26249 test -z "$as_dir" && as_dir=. 26250 for ac_exec_ext in '' $ac_executable_extensions; do 26251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26252 ac_cv_path_POTENTIAL_CC="$as_dir/$ac_word$ac_exec_ext" 26253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26254 break 2 26255 fi 26256 done 26257 done 26258 IFS=$as_save_IFS 26259 26260 ;; 26261 esac 26262 fi 26263 POTENTIAL_CC=$ac_cv_path_POTENTIAL_CC 26264 if test -n "$POTENTIAL_CC"; then 26265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CC" >&5 26266 $as_echo "$POTENTIAL_CC" >&6; } 26267 else 26268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26269 $as_echo "no" >&6; } 26270 fi 26271 26272 26273 test -n "$POTENTIAL_CC" && break 26274 done 26275 26276 CC=$POTENTIAL_CC 26277 fi 26278 26279 if test "x$CC" = x; then 26280 26281 # Print a helpful message on how to acquire the necessary build dependency. 26282 # devkit is the help tag: freetype, cups, pulse, alsa etc 26283 MISSING_DEPENDENCY=devkit 26284 26285 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26286 cygwin_help $MISSING_DEPENDENCY 26287 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26288 msys_help $MISSING_DEPENDENCY 26289 else 26290 PKGHANDLER_COMMAND= 26291 26292 case $PKGHANDLER in 26293 apt-get) 26294 apt_help $MISSING_DEPENDENCY ;; 26295 yum) 26296 yum_help $MISSING_DEPENDENCY ;; 26297 port) 26298 port_help $MISSING_DEPENDENCY ;; 26299 pkgutil) 26300 pkgutil_help $MISSING_DEPENDENCY ;; 26301 pkgadd) 26302 pkgadd_help $MISSING_DEPENDENCY ;; 26303 esac 26304 26305 if test "x$PKGHANDLER_COMMAND" != x; then 26306 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 26307 fi 26308 fi 26309 26310 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 26311 fi 26312 fi 26313 26314 # Now we have a compiler binary in CC. Make sure it's okay. 26315 26316 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26317 26318 # First separate the path from the arguments. This will split at the first 26319 # space. 26320 complete="$CC" 26321 path="${complete%% *}" 26322 tmp="$complete EOL" 26323 arguments="${tmp#* }" 26324 26325 # Input might be given as Windows format, start by converting to 26326 # unix format. 26327 new_path=`$CYGPATH -u "$path"` 26328 26329 # Now try to locate executable using which 26330 new_path=`$WHICH "$new_path" 2> /dev/null` 26331 # bat and cmd files are not always considered executable in cygwin causing which 26332 # to not find them 26333 if test "x$new_path" = x \ 26334 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26335 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26336 new_path=`$CYGPATH -u "$path"` 26337 fi 26338 if test "x$new_path" = x; then 26339 # Oops. Which didn't find the executable. 26340 # The splitting of arguments from the executable at a space might have been incorrect, 26341 # since paths with space are more likely in Windows. Give it another try with the whole 26342 # argument. 26343 path="$complete" 26344 arguments="EOL" 26345 new_path=`$CYGPATH -u "$path"` 26346 new_path=`$WHICH "$new_path" 2> /dev/null` 26347 # bat and cmd files are not always considered executable in cygwin causing which 26348 # to not find them 26349 if test "x$new_path" = x \ 26350 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26351 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26352 new_path=`$CYGPATH -u "$path"` 26353 fi 26354 if test "x$new_path" = x; then 26355 # It's still not found. Now this is an unrecoverable error. 26356 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 26357 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 26358 has_space=`$ECHO "$complete" | $GREP " "` 26359 if test "x$has_space" != x; then 26360 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26361 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26362 fi 26363 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26364 fi 26365 fi 26366 26367 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26368 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26369 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26370 # "foo.exe" is OK but "foo" is an error. 26371 # 26372 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26373 # It is also a way to make sure we got the proper file name for the real test later on. 26374 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26375 if test "x$test_shortpath" = x; then 26376 # Short path failed, file does not exist as specified. 26377 # Try adding .exe or .cmd 26378 if test -f "${new_path}.exe"; then 26379 input_to_shortpath="${new_path}.exe" 26380 elif test -f "${new_path}.cmd"; then 26381 input_to_shortpath="${new_path}.cmd" 26382 else 26383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$new_path\", is invalid." >&5 26384 $as_echo "$as_me: The path of CC, which resolves as \"$new_path\", is invalid." >&6;} 26385 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26386 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26387 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26388 fi 26389 else 26390 input_to_shortpath="$new_path" 26391 fi 26392 26393 # Call helper function which possibly converts this using DOS-style short mode. 26394 # If so, the updated path is stored in $new_path. 26395 new_path="$input_to_shortpath" 26396 26397 input_path="$input_to_shortpath" 26398 # Check if we need to convert this using DOS-style short mode. If the path 26399 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26400 # take no chances and rewrite it. 26401 # Note: m4 eats our [], so we need to use [ and ] instead. 26402 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26403 if test "x$has_forbidden_chars" != x; then 26404 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26405 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26406 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26407 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26408 # Going to short mode and back again did indeed matter. Since short mode is 26409 # case insensitive, let's make it lowercase to improve readability. 26410 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26411 # Now convert it back to Unix-stile (cygpath) 26412 input_path=`$CYGPATH -u "$shortmode_path"` 26413 new_path="$input_path" 26414 fi 26415 fi 26416 26417 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26418 if test "x$test_cygdrive_prefix" = x; then 26419 # As a simple fix, exclude /usr/bin since it's not a real path. 26420 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26421 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26422 # a path prefixed by /cygdrive for fixpath to work. 26423 new_path="$CYGWIN_ROOT_PATH$input_path" 26424 fi 26425 fi 26426 26427 # remove trailing .exe if any 26428 new_path="${new_path/%.exe/}" 26429 26430 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26431 26432 # First separate the path from the arguments. This will split at the first 26433 # space. 26434 complete="$CC" 26435 path="${complete%% *}" 26436 tmp="$complete EOL" 26437 arguments="${tmp#* }" 26438 26439 # Input might be given as Windows format, start by converting to 26440 # unix format. 26441 new_path="$path" 26442 26443 windows_path="$new_path" 26444 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26445 unix_path=`$CYGPATH -u "$windows_path"` 26446 new_path="$unix_path" 26447 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26448 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26449 new_path="$unix_path" 26450 fi 26451 26452 26453 # Now try to locate executable using which 26454 new_path=`$WHICH "$new_path" 2> /dev/null` 26455 26456 if test "x$new_path" = x; then 26457 # Oops. Which didn't find the executable. 26458 # The splitting of arguments from the executable at a space might have been incorrect, 26459 # since paths with space are more likely in Windows. Give it another try with the whole 26460 # argument. 26461 path="$complete" 26462 arguments="EOL" 26463 new_path="$path" 26464 26465 windows_path="$new_path" 26466 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26467 unix_path=`$CYGPATH -u "$windows_path"` 26468 new_path="$unix_path" 26469 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26470 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26471 new_path="$unix_path" 26472 fi 26473 26474 26475 new_path=`$WHICH "$new_path" 2> /dev/null` 26476 26477 if test "x$new_path" = x; then 26478 # It's still not found. Now this is an unrecoverable error. 26479 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 26480 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 26481 has_space=`$ECHO "$complete" | $GREP " "` 26482 if test "x$has_space" != x; then 26483 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26484 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26485 fi 26486 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26487 fi 26488 fi 26489 26490 # Now new_path has a complete unix path to the binary 26491 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26492 # Keep paths in /bin as-is, but remove trailing .exe if any 26493 new_path="${new_path/%.exe/}" 26494 # Do not save /bin paths to all_fixpath_prefixes! 26495 else 26496 # Not in mixed or Windows style, start by that. 26497 new_path=`cmd //c echo $new_path` 26498 26499 input_path="$new_path" 26500 # Check if we need to convert this using DOS-style short mode. If the path 26501 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26502 # take no chances and rewrite it. 26503 # Note: m4 eats our [], so we need to use [ and ] instead. 26504 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26505 if test "x$has_forbidden_chars" != x; then 26506 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26507 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26508 fi 26509 26510 # Output is in $new_path 26511 26512 windows_path="$new_path" 26513 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26514 unix_path=`$CYGPATH -u "$windows_path"` 26515 new_path="$unix_path" 26516 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26517 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26518 new_path="$unix_path" 26519 fi 26520 26521 # remove trailing .exe if any 26522 new_path="${new_path/%.exe/}" 26523 26524 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26525 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26526 fi 26527 26528 else 26529 # We're on a posix platform. Hooray! :) 26530 # First separate the path from the arguments. This will split at the first 26531 # space. 26532 complete="$CC" 26533 path="${complete%% *}" 26534 tmp="$complete EOL" 26535 arguments="${tmp#* }" 26536 26537 # Cannot rely on the command "which" here since it doesn't always work. 26538 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26539 if test -z "$is_absolute_path"; then 26540 # Path to executable is not absolute. Find it. 26541 IFS_save="$IFS" 26542 IFS=: 26543 for p in $PATH; do 26544 if test -f "$p/$path" && test -x "$p/$path"; then 26545 new_path="$p/$path" 26546 break 26547 fi 26548 done 26549 IFS="$IFS_save" 26550 else 26551 # This is an absolute path, we can use it without further modifications. 26552 new_path="$path" 26553 fi 26554 26555 if test "x$new_path" = x; then 26556 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CC, which resolves as \"$complete\", is not found." >&5 26557 $as_echo "$as_me: The path of CC, which resolves as \"$complete\", is not found." >&6;} 26558 has_space=`$ECHO "$complete" | $GREP " "` 26559 if test "x$has_space" != x; then 26560 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 26561 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 26562 fi 26563 as_fn_error $? "Cannot locate the the path of CC" "$LINENO" 5 26564 fi 26565 fi 26566 26567 # Now join together the path and the arguments once again 26568 if test "x$arguments" != xEOL; then 26569 new_complete="$new_path ${arguments% *}" 26570 else 26571 new_complete="$new_path" 26572 fi 26573 26574 if test "x$complete" != "x$new_complete"; then 26575 CC="$new_complete" 26576 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CC to \"$new_complete\"" >&5 26577 $as_echo "$as_me: Rewriting CC to \"$new_complete\"" >&6;} 26578 fi 26579 26580 TEST_COMPILER="$CC" 26581 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 26582 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 26583 if test "x$OPENJDK_BUILD_OS" != xaix; then 26584 # FIXME: This test should not be needed anymore; we don't do that for any platform. 26585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CC" >&5 26586 $as_echo_n "checking resolved symbolic links for CC... " >&6; } 26587 26588 if test "x$OPENJDK_BUILD_OS" != xwindows; then 26589 # Follow a chain of symbolic links. Use readlink 26590 # where it exists, else fall back to horribly 26591 # complicated shell code. 26592 if test "x$READLINK_TESTED" != yes; then 26593 # On MacOSX there is a readlink tool with a different 26594 # purpose than the GNU readlink tool. Check the found readlink. 26595 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 26596 if test "x$ISGNU" = x; then 26597 # A readlink that we do not know how to use. 26598 # Are there other non-GNU readlinks out there? 26599 READLINK_TESTED=yes 26600 READLINK= 26601 fi 26602 fi 26603 26604 if test "x$READLINK" != x; then 26605 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 26606 else 26607 # Save the current directory for restoring afterwards 26608 STARTDIR=$PWD 26609 COUNTER=0 26610 sym_link_dir=`$DIRNAME $TEST_COMPILER` 26611 sym_link_file=`$BASENAME $TEST_COMPILER` 26612 cd $sym_link_dir 26613 # Use -P flag to resolve symlinks in directories. 26614 cd `$THEPWDCMD -P` 26615 sym_link_dir=`$THEPWDCMD -P` 26616 # Resolve file symlinks 26617 while test $COUNTER -lt 20; do 26618 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 26619 if test "x$ISLINK" == x; then 26620 # This is not a symbolic link! We are done! 26621 break 26622 fi 26623 # Again resolve directory symlinks since the target of the just found 26624 # link could be in a different directory 26625 cd `$DIRNAME $ISLINK` 26626 sym_link_dir=`$THEPWDCMD -P` 26627 sym_link_file=`$BASENAME $ISLINK` 26628 let COUNTER=COUNTER+1 26629 done 26630 cd $STARTDIR 26631 TEST_COMPILER=$sym_link_dir/$sym_link_file 26632 fi 26633 fi 26634 26635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 26636 $as_echo "$TEST_COMPILER" >&6; } 26637 fi 26638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CC is disguised ccache" >&5 26639 $as_echo_n "checking if CC is disguised ccache... " >&6; } 26640 26641 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 26642 if test "x$COMPILER_BASENAME" = "xccache"; then 26643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 26644 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 26645 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 26646 # We want to control ccache invocation ourselves, so ignore this cc and try 26647 # searching again. 26648 26649 # Remove the path to the fake ccache cc from the PATH 26650 RETRY_COMPILER_SAVED_PATH="$PATH" 26651 COMPILER_DIRNAME=`$DIRNAME $CC` 26652 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 26653 26654 # Try again looking for our compiler 26655 if test -n "$ac_tool_prefix"; then 26656 for ac_prog in $TOOLCHAIN_CC_BINARY 26657 do 26658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 26659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 26660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26661 $as_echo_n "checking for $ac_word... " >&6; } 26662 if ${ac_cv_prog_PROPER_COMPILER_CC+:} false; then : 26663 $as_echo_n "(cached) " >&6 26664 else 26665 if test -n "$PROPER_COMPILER_CC"; then 26666 ac_cv_prog_PROPER_COMPILER_CC="$PROPER_COMPILER_CC" # Let the user override the test. 26667 else 26668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26669 for as_dir in $PATH 26670 do 26671 IFS=$as_save_IFS 26672 test -z "$as_dir" && as_dir=. 26673 for ac_exec_ext in '' $ac_executable_extensions; do 26674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26675 ac_cv_prog_PROPER_COMPILER_CC="$ac_tool_prefix$ac_prog" 26676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26677 break 2 26678 fi 26679 done 26680 done 26681 IFS=$as_save_IFS 26682 26683 fi 26684 fi 26685 PROPER_COMPILER_CC=$ac_cv_prog_PROPER_COMPILER_CC 26686 if test -n "$PROPER_COMPILER_CC"; then 26687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 26688 $as_echo "$PROPER_COMPILER_CC" >&6; } 26689 else 26690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26691 $as_echo "no" >&6; } 26692 fi 26693 26694 26695 test -n "$PROPER_COMPILER_CC" && break 26696 done 26697 fi 26698 if test -z "$PROPER_COMPILER_CC"; then 26699 ac_ct_PROPER_COMPILER_CC=$PROPER_COMPILER_CC 26700 for ac_prog in $TOOLCHAIN_CC_BINARY 26701 do 26702 # Extract the first word of "$ac_prog", so it can be a program name with args. 26703 set dummy $ac_prog; ac_word=$2 26704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 26705 $as_echo_n "checking for $ac_word... " >&6; } 26706 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CC+:} false; then : 26707 $as_echo_n "(cached) " >&6 26708 else 26709 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 26710 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_ct_PROPER_COMPILER_CC" # Let the user override the test. 26711 else 26712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26713 for as_dir in $PATH 26714 do 26715 IFS=$as_save_IFS 26716 test -z "$as_dir" && as_dir=. 26717 for ac_exec_ext in '' $ac_executable_extensions; do 26718 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 26719 ac_cv_prog_ac_ct_PROPER_COMPILER_CC="$ac_prog" 26720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 26721 break 2 26722 fi 26723 done 26724 done 26725 IFS=$as_save_IFS 26726 26727 fi 26728 fi 26729 ac_ct_PROPER_COMPILER_CC=$ac_cv_prog_ac_ct_PROPER_COMPILER_CC 26730 if test -n "$ac_ct_PROPER_COMPILER_CC"; then 26731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CC" >&5 26732 $as_echo "$ac_ct_PROPER_COMPILER_CC" >&6; } 26733 else 26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 26735 $as_echo "no" >&6; } 26736 fi 26737 26738 26739 test -n "$ac_ct_PROPER_COMPILER_CC" && break 26740 done 26741 26742 if test "x$ac_ct_PROPER_COMPILER_CC" = x; then 26743 PROPER_COMPILER_CC="" 26744 else 26745 case $cross_compiling:$ac_tool_warned in 26746 yes:) 26747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 26748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 26749 ac_tool_warned=yes ;; 26750 esac 26751 PROPER_COMPILER_CC=$ac_ct_PROPER_COMPILER_CC 26752 fi 26753 fi 26754 26755 26756 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26757 26758 # First separate the path from the arguments. This will split at the first 26759 # space. 26760 complete="$PROPER_COMPILER_CC" 26761 path="${complete%% *}" 26762 tmp="$complete EOL" 26763 arguments="${tmp#* }" 26764 26765 # Input might be given as Windows format, start by converting to 26766 # unix format. 26767 new_path=`$CYGPATH -u "$path"` 26768 26769 # Now try to locate executable using which 26770 new_path=`$WHICH "$new_path" 2> /dev/null` 26771 # bat and cmd files are not always considered executable in cygwin causing which 26772 # to not find them 26773 if test "x$new_path" = x \ 26774 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26775 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26776 new_path=`$CYGPATH -u "$path"` 26777 fi 26778 if test "x$new_path" = x; then 26779 # Oops. Which didn't find the executable. 26780 # The splitting of arguments from the executable at a space might have been incorrect, 26781 # since paths with space are more likely in Windows. Give it another try with the whole 26782 # argument. 26783 path="$complete" 26784 arguments="EOL" 26785 new_path=`$CYGPATH -u "$path"` 26786 new_path=`$WHICH "$new_path" 2> /dev/null` 26787 # bat and cmd files are not always considered executable in cygwin causing which 26788 # to not find them 26789 if test "x$new_path" = x \ 26790 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 26791 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 26792 new_path=`$CYGPATH -u "$path"` 26793 fi 26794 if test "x$new_path" = x; then 26795 # It's still not found. Now this is an unrecoverable error. 26796 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 26797 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 26798 has_space=`$ECHO "$complete" | $GREP " "` 26799 if test "x$has_space" != x; then 26800 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26801 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26802 fi 26803 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26804 fi 26805 fi 26806 26807 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 26808 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 26809 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 26810 # "foo.exe" is OK but "foo" is an error. 26811 # 26812 # This test is therefore slightly more accurate than "test -f" to check for file presence. 26813 # It is also a way to make sure we got the proper file name for the real test later on. 26814 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 26815 if test "x$test_shortpath" = x; then 26816 # Short path failed, file does not exist as specified. 26817 # Try adding .exe or .cmd 26818 if test -f "${new_path}.exe"; then 26819 input_to_shortpath="${new_path}.exe" 26820 elif test -f "${new_path}.cmd"; then 26821 input_to_shortpath="${new_path}.cmd" 26822 else 26823 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&5 26824 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$new_path\", is invalid." >&6;} 26825 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 26826 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 26827 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26828 fi 26829 else 26830 input_to_shortpath="$new_path" 26831 fi 26832 26833 # Call helper function which possibly converts this using DOS-style short mode. 26834 # If so, the updated path is stored in $new_path. 26835 new_path="$input_to_shortpath" 26836 26837 input_path="$input_to_shortpath" 26838 # Check if we need to convert this using DOS-style short mode. If the path 26839 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26840 # take no chances and rewrite it. 26841 # Note: m4 eats our [], so we need to use [ and ] instead. 26842 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 26843 if test "x$has_forbidden_chars" != x; then 26844 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26845 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 26846 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 26847 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 26848 # Going to short mode and back again did indeed matter. Since short mode is 26849 # case insensitive, let's make it lowercase to improve readability. 26850 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26851 # Now convert it back to Unix-stile (cygpath) 26852 input_path=`$CYGPATH -u "$shortmode_path"` 26853 new_path="$input_path" 26854 fi 26855 fi 26856 26857 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 26858 if test "x$test_cygdrive_prefix" = x; then 26859 # As a simple fix, exclude /usr/bin since it's not a real path. 26860 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 26861 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 26862 # a path prefixed by /cygdrive for fixpath to work. 26863 new_path="$CYGWIN_ROOT_PATH$input_path" 26864 fi 26865 fi 26866 26867 # remove trailing .exe if any 26868 new_path="${new_path/%.exe/}" 26869 26870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26871 26872 # First separate the path from the arguments. This will split at the first 26873 # space. 26874 complete="$PROPER_COMPILER_CC" 26875 path="${complete%% *}" 26876 tmp="$complete EOL" 26877 arguments="${tmp#* }" 26878 26879 # Input might be given as Windows format, start by converting to 26880 # unix format. 26881 new_path="$path" 26882 26883 windows_path="$new_path" 26884 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26885 unix_path=`$CYGPATH -u "$windows_path"` 26886 new_path="$unix_path" 26887 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26888 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26889 new_path="$unix_path" 26890 fi 26891 26892 26893 # Now try to locate executable using which 26894 new_path=`$WHICH "$new_path" 2> /dev/null` 26895 26896 if test "x$new_path" = x; then 26897 # Oops. Which didn't find the executable. 26898 # The splitting of arguments from the executable at a space might have been incorrect, 26899 # since paths with space are more likely in Windows. Give it another try with the whole 26900 # argument. 26901 path="$complete" 26902 arguments="EOL" 26903 new_path="$path" 26904 26905 windows_path="$new_path" 26906 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26907 unix_path=`$CYGPATH -u "$windows_path"` 26908 new_path="$unix_path" 26909 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26910 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26911 new_path="$unix_path" 26912 fi 26913 26914 26915 new_path=`$WHICH "$new_path" 2> /dev/null` 26916 26917 if test "x$new_path" = x; then 26918 # It's still not found. Now this is an unrecoverable error. 26919 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 26920 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 26921 has_space=`$ECHO "$complete" | $GREP " "` 26922 if test "x$has_space" != x; then 26923 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 26924 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 26925 fi 26926 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 26927 fi 26928 fi 26929 26930 # Now new_path has a complete unix path to the binary 26931 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 26932 # Keep paths in /bin as-is, but remove trailing .exe if any 26933 new_path="${new_path/%.exe/}" 26934 # Do not save /bin paths to all_fixpath_prefixes! 26935 else 26936 # Not in mixed or Windows style, start by that. 26937 new_path=`cmd //c echo $new_path` 26938 26939 input_path="$new_path" 26940 # Check if we need to convert this using DOS-style short mode. If the path 26941 # contains just simple characters, use it. Otherwise (spaces, weird characters), 26942 # take no chances and rewrite it. 26943 # Note: m4 eats our [], so we need to use [ and ] instead. 26944 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 26945 if test "x$has_forbidden_chars" != x; then 26946 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 26947 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 26948 fi 26949 26950 # Output is in $new_path 26951 26952 windows_path="$new_path" 26953 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 26954 unix_path=`$CYGPATH -u "$windows_path"` 26955 new_path="$unix_path" 26956 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 26957 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 26958 new_path="$unix_path" 26959 fi 26960 26961 # remove trailing .exe if any 26962 new_path="${new_path/%.exe/}" 26963 26964 # Save the first 10 bytes of this path to the storage, so fixpath can work. 26965 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 26966 fi 26967 26968 else 26969 # We're on a posix platform. Hooray! :) 26970 # First separate the path from the arguments. This will split at the first 26971 # space. 26972 complete="$PROPER_COMPILER_CC" 26973 path="${complete%% *}" 26974 tmp="$complete EOL" 26975 arguments="${tmp#* }" 26976 26977 # Cannot rely on the command "which" here since it doesn't always work. 26978 is_absolute_path=`$ECHO "$path" | $GREP ^/` 26979 if test -z "$is_absolute_path"; then 26980 # Path to executable is not absolute. Find it. 26981 IFS_save="$IFS" 26982 IFS=: 26983 for p in $PATH; do 26984 if test -f "$p/$path" && test -x "$p/$path"; then 26985 new_path="$p/$path" 26986 break 26987 fi 26988 done 26989 IFS="$IFS_save" 26990 else 26991 # This is an absolute path, we can use it without further modifications. 26992 new_path="$path" 26993 fi 26994 26995 if test "x$new_path" = x; then 26996 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&5 26997 $as_echo "$as_me: The path of PROPER_COMPILER_CC, which resolves as \"$complete\", is not found." >&6;} 26998 has_space=`$ECHO "$complete" | $GREP " "` 26999 if test "x$has_space" != x; then 27000 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 27001 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 27002 fi 27003 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CC" "$LINENO" 5 27004 fi 27005 fi 27006 27007 # Now join together the path and the arguments once again 27008 if test "x$arguments" != xEOL; then 27009 new_complete="$new_path ${arguments% *}" 27010 else 27011 new_complete="$new_path" 27012 fi 27013 27014 if test "x$complete" != "x$new_complete"; then 27015 PROPER_COMPILER_CC="$new_complete" 27016 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&5 27017 $as_echo "$as_me: Rewriting PROPER_COMPILER_CC to \"$new_complete\"" >&6;} 27018 fi 27019 27020 PATH="$RETRY_COMPILER_SAVED_PATH" 27021 27022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CC" >&5 27023 $as_echo_n "checking for resolved symbolic links for CC... " >&6; } 27024 27025 if test "x$OPENJDK_BUILD_OS" != xwindows; then 27026 # Follow a chain of symbolic links. Use readlink 27027 # where it exists, else fall back to horribly 27028 # complicated shell code. 27029 if test "x$READLINK_TESTED" != yes; then 27030 # On MacOSX there is a readlink tool with a different 27031 # purpose than the GNU readlink tool. Check the found readlink. 27032 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 27033 if test "x$ISGNU" = x; then 27034 # A readlink that we do not know how to use. 27035 # Are there other non-GNU readlinks out there? 27036 READLINK_TESTED=yes 27037 READLINK= 27038 fi 27039 fi 27040 27041 if test "x$READLINK" != x; then 27042 PROPER_COMPILER_CC=`$READLINK -f $PROPER_COMPILER_CC` 27043 else 27044 # Save the current directory for restoring afterwards 27045 STARTDIR=$PWD 27046 COUNTER=0 27047 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CC` 27048 sym_link_file=`$BASENAME $PROPER_COMPILER_CC` 27049 cd $sym_link_dir 27050 # Use -P flag to resolve symlinks in directories. 27051 cd `$THEPWDCMD -P` 27052 sym_link_dir=`$THEPWDCMD -P` 27053 # Resolve file symlinks 27054 while test $COUNTER -lt 20; do 27055 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 27056 if test "x$ISLINK" == x; then 27057 # This is not a symbolic link! We are done! 27058 break 27059 fi 27060 # Again resolve directory symlinks since the target of the just found 27061 # link could be in a different directory 27062 cd `$DIRNAME $ISLINK` 27063 sym_link_dir=`$THEPWDCMD -P` 27064 sym_link_file=`$BASENAME $ISLINK` 27065 let COUNTER=COUNTER+1 27066 done 27067 cd $STARTDIR 27068 PROPER_COMPILER_CC=$sym_link_dir/$sym_link_file 27069 fi 27070 fi 27071 27072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CC" >&5 27073 $as_echo "$PROPER_COMPILER_CC" >&6; } 27074 CC="$PROPER_COMPILER_CC" 27075 else 27076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CC" >&5 27077 $as_echo "no, keeping CC" >&6; } 27078 CC="$TEST_COMPILER" 27079 fi 27080 27081 27082 COMPILER=$CC 27083 COMPILER_NAME=$COMPILER_NAME 27084 27085 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 27086 # cc -V output typically looks like 27087 # cc: Sun C 5.12 Linux_i386 2011/11/16 27088 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 27089 # Check that this is likely to be the Solaris Studio cc. 27090 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 27091 if test $? -ne 0; then 27092 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27093 { $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 27094 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27095 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27096 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27097 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27098 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27099 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27100 fi 27101 # Remove usage instructions (if present), and 27102 # collapse compiler output into a single line 27103 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27104 $SED -e 's/ *[Uu]sage:.*//'` 27105 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27106 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 27107 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 27108 # xlc -qversion output typically looks like 27109 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 27110 # Version: 11.01.0000.0015 27111 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 27112 # Check that this is likely to be the IBM XL C compiler. 27113 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 27114 if test $? -ne 0; then 27115 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27116 { $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 27117 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27118 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27119 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27120 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 27121 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 27122 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27123 fi 27124 # Collapse compiler output into a single line 27125 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27126 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27127 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 27128 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 27129 # There is no specific version flag, but all output starts with a version string. 27130 # First line typically looks something like: 27131 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 27132 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 27133 # Check that this is likely to be Microsoft CL.EXE. 27134 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 27135 if test $? -ne 0; then 27136 { $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 27137 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27138 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27139 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27140 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27141 fi 27142 # Collapse compiler output into a single line 27143 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27144 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27145 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 27146 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 27147 # gcc --version output typically looks like 27148 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 27149 # Copyright (C) 2013 Free Software Foundation, Inc. 27150 # This is free software; see the source for copying conditions. There is NO 27151 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 27152 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27153 # Check that this is likely to be GCC. 27154 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 27155 if test $? -ne 0; then 27156 { $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 27157 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27158 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 27159 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 27160 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27161 fi 27162 # Remove Copyright and legalese from version string, and 27163 # collapse into a single line 27164 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27165 $SED -e 's/ *Copyright .*//'` 27166 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27167 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 27168 elif test "x$TOOLCHAIN_TYPE" = xclang; then 27169 # clang --version output typically looks like 27170 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 27171 # clang version 3.3 (tags/RELEASE_33/final) 27172 # or 27173 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 27174 # Target: x86_64-pc-linux-gnu 27175 # Thread model: posix 27176 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 27177 # Check that this is likely to be clang 27178 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 27179 if test $? -ne 0; then 27180 { $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 27181 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 27182 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 27183 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 27184 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 27185 fi 27186 # Collapse compiler output into a single line 27187 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 27188 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 27189 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 27190 27191 else 27192 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 27193 fi 27194 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 27195 CC_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 27196 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 27197 CC_VERSION_STRING="$COMPILER_VERSION_STRING" 27198 27199 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 27200 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 27201 27202 27203 # Now that we have resolved CC ourself, let autoconf have its go at it 27204 ac_ext=c 27205 ac_cpp='$CPP $CPPFLAGS' 27206 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27207 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27208 ac_compiler_gnu=$ac_cv_c_compiler_gnu 27209 if test -n "$ac_tool_prefix"; then 27210 for ac_prog in $CC 27211 do 27212 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 27213 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 27214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27215 $as_echo_n "checking for $ac_word... " >&6; } 27216 if ${ac_cv_prog_CC+:} false; then : 27217 $as_echo_n "(cached) " >&6 27218 else 27219 if test -n "$CC"; then 27220 ac_cv_prog_CC="$CC" # Let the user override the test. 27221 else 27222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27223 for as_dir in $PATH 27224 do 27225 IFS=$as_save_IFS 27226 test -z "$as_dir" && as_dir=. 27227 for ac_exec_ext in '' $ac_executable_extensions; do 27228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27229 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 27230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27231 break 2 27232 fi 27233 done 27234 done 27235 IFS=$as_save_IFS 27236 27237 fi 27238 fi 27239 CC=$ac_cv_prog_CC 27240 if test -n "$CC"; then 27241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 27242 $as_echo "$CC" >&6; } 27243 else 27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27245 $as_echo "no" >&6; } 27246 fi 27247 27248 27249 test -n "$CC" && break 27250 done 27251 fi 27252 if test -z "$CC"; then 27253 ac_ct_CC=$CC 27254 for ac_prog in $CC 27255 do 27256 # Extract the first word of "$ac_prog", so it can be a program name with args. 27257 set dummy $ac_prog; ac_word=$2 27258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27259 $as_echo_n "checking for $ac_word... " >&6; } 27260 if ${ac_cv_prog_ac_ct_CC+:} false; then : 27261 $as_echo_n "(cached) " >&6 27262 else 27263 if test -n "$ac_ct_CC"; then 27264 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 27265 else 27266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27267 for as_dir in $PATH 27268 do 27269 IFS=$as_save_IFS 27270 test -z "$as_dir" && as_dir=. 27271 for ac_exec_ext in '' $ac_executable_extensions; do 27272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27273 ac_cv_prog_ac_ct_CC="$ac_prog" 27274 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27275 break 2 27276 fi 27277 done 27278 done 27279 IFS=$as_save_IFS 27280 27281 fi 27282 fi 27283 ac_ct_CC=$ac_cv_prog_ac_ct_CC 27284 if test -n "$ac_ct_CC"; then 27285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 27286 $as_echo "$ac_ct_CC" >&6; } 27287 else 27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27289 $as_echo "no" >&6; } 27290 fi 27291 27292 27293 test -n "$ac_ct_CC" && break 27294 done 27295 27296 if test "x$ac_ct_CC" = x; then 27297 CC="" 27298 else 27299 case $cross_compiling:$ac_tool_warned in 27300 yes:) 27301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 27302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 27303 ac_tool_warned=yes ;; 27304 esac 27305 CC=$ac_ct_CC 27306 fi 27307 fi 27308 27309 27310 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27311 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27312 as_fn_error $? "no acceptable C compiler found in \$PATH 27313 See \`config.log' for more details" "$LINENO" 5; } 27314 27315 # Provide some information about the compiler. 27316 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 27317 set X $ac_compile 27318 ac_compiler=$2 27319 for ac_option in --version -v -V -qversion; do 27320 { { ac_try="$ac_compiler $ac_option >&5" 27321 case "(($ac_try" in 27322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27323 *) ac_try_echo=$ac_try;; 27324 esac 27325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27326 $as_echo "$ac_try_echo"; } >&5 27327 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 27328 ac_status=$? 27329 if test -s conftest.err; then 27330 sed '10a\ 27331 ... rest of stderr output deleted ... 27332 10q' conftest.err >conftest.er1 27333 cat conftest.er1 >&5 27334 fi 27335 rm -f conftest.er1 conftest.err 27336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27337 test $ac_status = 0; } 27338 done 27339 27340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27341 /* end confdefs.h. */ 27342 27343 int 27344 main () 27345 { 27346 27347 ; 27348 return 0; 27349 } 27350 _ACEOF 27351 ac_clean_files_save=$ac_clean_files 27352 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 27353 # Try to create an executable without -o first, disregard a.out. 27354 # It will help us diagnose broken compilers, and finding out an intuition 27355 # of exeext. 27356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 27357 $as_echo_n "checking whether the C compiler works... " >&6; } 27358 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 27359 27360 # The possible output files: 27361 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 27362 27363 ac_rmfiles= 27364 for ac_file in $ac_files 27365 do 27366 case $ac_file in 27367 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 27368 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 27369 esac 27370 done 27371 rm -f $ac_rmfiles 27372 27373 if { { ac_try="$ac_link_default" 27374 case "(($ac_try" in 27375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27376 *) ac_try_echo=$ac_try;; 27377 esac 27378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27379 $as_echo "$ac_try_echo"; } >&5 27380 (eval "$ac_link_default") 2>&5 27381 ac_status=$? 27382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27383 test $ac_status = 0; }; then : 27384 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 27385 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 27386 # in a Makefile. We should not override ac_cv_exeext if it was cached, 27387 # so that the user can short-circuit this test for compilers unknown to 27388 # Autoconf. 27389 for ac_file in $ac_files '' 27390 do 27391 test -f "$ac_file" || continue 27392 case $ac_file in 27393 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 27394 ;; 27395 [ab].out ) 27396 # We found the default executable, but exeext='' is most 27397 # certainly right. 27398 break;; 27399 *.* ) 27400 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 27401 then :; else 27402 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 27403 fi 27404 # We set ac_cv_exeext here because the later test for it is not 27405 # safe: cross compilers may not add the suffix if given an `-o' 27406 # argument, so we may need to know it at that point already. 27407 # Even if this section looks crufty: it has the advantage of 27408 # actually working. 27409 break;; 27410 * ) 27411 break;; 27412 esac 27413 done 27414 test "$ac_cv_exeext" = no && ac_cv_exeext= 27415 27416 else 27417 ac_file='' 27418 fi 27419 if test -z "$ac_file"; then : 27420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27421 $as_echo "no" >&6; } 27422 $as_echo "$as_me: failed program was:" >&5 27423 sed 's/^/| /' conftest.$ac_ext >&5 27424 27425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27427 as_fn_error 77 "C compiler cannot create executables 27428 See \`config.log' for more details" "$LINENO" 5; } 27429 else 27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 27431 $as_echo "yes" >&6; } 27432 fi 27433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 27434 $as_echo_n "checking for C compiler default output file name... " >&6; } 27435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 27436 $as_echo "$ac_file" >&6; } 27437 ac_exeext=$ac_cv_exeext 27438 27439 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 27440 ac_clean_files=$ac_clean_files_save 27441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 27442 $as_echo_n "checking for suffix of executables... " >&6; } 27443 if { { ac_try="$ac_link" 27444 case "(($ac_try" in 27445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27446 *) ac_try_echo=$ac_try;; 27447 esac 27448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27449 $as_echo "$ac_try_echo"; } >&5 27450 (eval "$ac_link") 2>&5 27451 ac_status=$? 27452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27453 test $ac_status = 0; }; then : 27454 # If both `conftest.exe' and `conftest' are `present' (well, observable) 27455 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 27456 # work properly (i.e., refer to `conftest.exe'), while it won't with 27457 # `rm'. 27458 for ac_file in conftest.exe conftest conftest.*; do 27459 test -f "$ac_file" || continue 27460 case $ac_file in 27461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 27462 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 27463 break;; 27464 * ) break;; 27465 esac 27466 done 27467 else 27468 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27469 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27470 as_fn_error $? "cannot compute suffix of executables: cannot compile and link 27471 See \`config.log' for more details" "$LINENO" 5; } 27472 fi 27473 rm -f conftest conftest$ac_cv_exeext 27474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 27475 $as_echo "$ac_cv_exeext" >&6; } 27476 27477 rm -f conftest.$ac_ext 27478 EXEEXT=$ac_cv_exeext 27479 ac_exeext=$EXEEXT 27480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27481 /* end confdefs.h. */ 27482 #include <stdio.h> 27483 int 27484 main () 27485 { 27486 FILE *f = fopen ("conftest.out", "w"); 27487 return ferror (f) || fclose (f) != 0; 27488 27489 ; 27490 return 0; 27491 } 27492 _ACEOF 27493 ac_clean_files="$ac_clean_files conftest.out" 27494 # Check that the compiler produces executables we can run. If not, either 27495 # the compiler is broken, or we cross compile. 27496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 27497 $as_echo_n "checking whether we are cross compiling... " >&6; } 27498 if test "$cross_compiling" != yes; then 27499 { { ac_try="$ac_link" 27500 case "(($ac_try" in 27501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27502 *) ac_try_echo=$ac_try;; 27503 esac 27504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27505 $as_echo "$ac_try_echo"; } >&5 27506 (eval "$ac_link") 2>&5 27507 ac_status=$? 27508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27509 test $ac_status = 0; } 27510 if { ac_try='./conftest$ac_cv_exeext' 27511 { { case "(($ac_try" in 27512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27513 *) ac_try_echo=$ac_try;; 27514 esac 27515 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27516 $as_echo "$ac_try_echo"; } >&5 27517 (eval "$ac_try") 2>&5 27518 ac_status=$? 27519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27520 test $ac_status = 0; }; }; then 27521 cross_compiling=no 27522 else 27523 if test "$cross_compiling" = maybe; then 27524 cross_compiling=yes 27525 else 27526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27528 as_fn_error $? "cannot run C compiled programs. 27529 If you meant to cross compile, use \`--host'. 27530 See \`config.log' for more details" "$LINENO" 5; } 27531 fi 27532 fi 27533 fi 27534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 27535 $as_echo "$cross_compiling" >&6; } 27536 27537 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 27538 ac_clean_files=$ac_clean_files_save 27539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 27540 $as_echo_n "checking for suffix of object files... " >&6; } 27541 if ${ac_cv_objext+:} false; then : 27542 $as_echo_n "(cached) " >&6 27543 else 27544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27545 /* end confdefs.h. */ 27546 27547 int 27548 main () 27549 { 27550 27551 ; 27552 return 0; 27553 } 27554 _ACEOF 27555 rm -f conftest.o conftest.obj 27556 if { { ac_try="$ac_compile" 27557 case "(($ac_try" in 27558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 27559 *) ac_try_echo=$ac_try;; 27560 esac 27561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 27562 $as_echo "$ac_try_echo"; } >&5 27563 (eval "$ac_compile") 2>&5 27564 ac_status=$? 27565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27566 test $ac_status = 0; }; then : 27567 for ac_file in conftest.o conftest.obj conftest.*; do 27568 test -f "$ac_file" || continue; 27569 case $ac_file in 27570 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 27571 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 27572 break;; 27573 esac 27574 done 27575 else 27576 $as_echo "$as_me: failed program was:" >&5 27577 sed 's/^/| /' conftest.$ac_ext >&5 27578 27579 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 27580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 27581 as_fn_error $? "cannot compute suffix of object files: cannot compile 27582 See \`config.log' for more details" "$LINENO" 5; } 27583 fi 27584 rm -f conftest.$ac_cv_objext conftest.$ac_ext 27585 fi 27586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 27587 $as_echo "$ac_cv_objext" >&6; } 27588 OBJEXT=$ac_cv_objext 27589 ac_objext=$OBJEXT 27590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 27591 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 27592 if ${ac_cv_c_compiler_gnu+:} false; then : 27593 $as_echo_n "(cached) " >&6 27594 else 27595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27596 /* end confdefs.h. */ 27597 27598 int 27599 main () 27600 { 27601 #ifndef __GNUC__ 27602 choke me 27603 #endif 27604 27605 ; 27606 return 0; 27607 } 27608 _ACEOF 27609 if ac_fn_c_try_compile "$LINENO"; then : 27610 ac_compiler_gnu=yes 27611 else 27612 ac_compiler_gnu=no 27613 fi 27614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27615 ac_cv_c_compiler_gnu=$ac_compiler_gnu 27616 27617 fi 27618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 27619 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 27620 if test $ac_compiler_gnu = yes; then 27621 GCC=yes 27622 else 27623 GCC= 27624 fi 27625 ac_test_CFLAGS=${CFLAGS+set} 27626 ac_save_CFLAGS=$CFLAGS 27627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 27628 $as_echo_n "checking whether $CC accepts -g... " >&6; } 27629 if ${ac_cv_prog_cc_g+:} false; then : 27630 $as_echo_n "(cached) " >&6 27631 else 27632 ac_save_c_werror_flag=$ac_c_werror_flag 27633 ac_c_werror_flag=yes 27634 ac_cv_prog_cc_g=no 27635 CFLAGS="-g" 27636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27637 /* end confdefs.h. */ 27638 27639 int 27640 main () 27641 { 27642 27643 ; 27644 return 0; 27645 } 27646 _ACEOF 27647 if ac_fn_c_try_compile "$LINENO"; then : 27648 ac_cv_prog_cc_g=yes 27649 else 27650 CFLAGS="" 27651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27652 /* end confdefs.h. */ 27653 27654 int 27655 main () 27656 { 27657 27658 ; 27659 return 0; 27660 } 27661 _ACEOF 27662 if ac_fn_c_try_compile "$LINENO"; then : 27663 27664 else 27665 ac_c_werror_flag=$ac_save_c_werror_flag 27666 CFLAGS="-g" 27667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27668 /* end confdefs.h. */ 27669 27670 int 27671 main () 27672 { 27673 27674 ; 27675 return 0; 27676 } 27677 _ACEOF 27678 if ac_fn_c_try_compile "$LINENO"; then : 27679 ac_cv_prog_cc_g=yes 27680 fi 27681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27682 fi 27683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27684 fi 27685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 27686 ac_c_werror_flag=$ac_save_c_werror_flag 27687 fi 27688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 27689 $as_echo "$ac_cv_prog_cc_g" >&6; } 27690 if test "$ac_test_CFLAGS" = set; then 27691 CFLAGS=$ac_save_CFLAGS 27692 elif test $ac_cv_prog_cc_g = yes; then 27693 if test "$GCC" = yes; then 27694 CFLAGS="-g -O2" 27695 else 27696 CFLAGS="-g" 27697 fi 27698 else 27699 if test "$GCC" = yes; then 27700 CFLAGS="-O2" 27701 else 27702 CFLAGS= 27703 fi 27704 fi 27705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 27706 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 27707 if ${ac_cv_prog_cc_c89+:} false; then : 27708 $as_echo_n "(cached) " >&6 27709 else 27710 ac_cv_prog_cc_c89=no 27711 ac_save_CC=$CC 27712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 27713 /* end confdefs.h. */ 27714 #include <stdarg.h> 27715 #include <stdio.h> 27716 struct stat; 27717 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 27718 struct buf { int x; }; 27719 FILE * (*rcsopen) (struct buf *, struct stat *, int); 27720 static char *e (p, i) 27721 char **p; 27722 int i; 27723 { 27724 return p[i]; 27725 } 27726 static char *f (char * (*g) (char **, int), char **p, ...) 27727 { 27728 char *s; 27729 va_list v; 27730 va_start (v,p); 27731 s = g (p, va_arg (v,int)); 27732 va_end (v); 27733 return s; 27734 } 27735 27736 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 27737 function prototypes and stuff, but not '\xHH' hex character constants. 27738 These don't provoke an error unfortunately, instead are silently treated 27739 as 'x'. The following induces an error, until -std is added to get 27740 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 27741 array size at least. It's necessary to write '\x00'==0 to get something 27742 that's true only with -std. */ 27743 int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 27744 27745 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 27746 inside strings and character constants. */ 27747 #define FOO(x) 'x' 27748 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 27749 27750 int test (int i, double x); 27751 struct s1 {int (*f) (int a);}; 27752 struct s2 {int (*f) (double a);}; 27753 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 27754 int argc; 27755 char **argv; 27756 int 27757 main () 27758 { 27759 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 27760 ; 27761 return 0; 27762 } 27763 _ACEOF 27764 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 27765 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 27766 do 27767 CC="$ac_save_CC $ac_arg" 27768 if ac_fn_c_try_compile "$LINENO"; then : 27769 ac_cv_prog_cc_c89=$ac_arg 27770 fi 27771 rm -f core conftest.err conftest.$ac_objext 27772 test "x$ac_cv_prog_cc_c89" != "xno" && break 27773 done 27774 rm -f conftest.$ac_ext 27775 CC=$ac_save_CC 27776 27777 fi 27778 # AC_CACHE_VAL 27779 case "x$ac_cv_prog_cc_c89" in 27780 x) 27781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 27782 $as_echo "none needed" >&6; } ;; 27783 xno) 27784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 27785 $as_echo "unsupported" >&6; } ;; 27786 *) 27787 CC="$CC $ac_cv_prog_cc_c89" 27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 27789 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 27790 esac 27791 if test "x$ac_cv_prog_cc_c89" != xno; then : 27792 27793 fi 27794 27795 ac_ext=cpp 27796 ac_cpp='$CXXCPP $CPPFLAGS' 27797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 27798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 27799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 27800 27801 27802 27803 COMPILER_NAME=C++ 27804 SEARCH_LIST="$TOOLCHAIN_CXX_BINARY" 27805 27806 if test "x$CXX" != x; then 27807 # User has supplied compiler name already, always let that override. 27808 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied compiler CXX=$CXX" >&5 27809 $as_echo "$as_me: Will use user supplied compiler CXX=$CXX" >&6;} 27810 if test "x`basename $CXX`" = "x$CXX"; then 27811 # A command without a complete path is provided, search $PATH. 27812 27813 for ac_prog in $CXX 27814 do 27815 # Extract the first word of "$ac_prog", so it can be a program name with args. 27816 set dummy $ac_prog; ac_word=$2 27817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27818 $as_echo_n "checking for $ac_word... " >&6; } 27819 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 27820 $as_echo_n "(cached) " >&6 27821 else 27822 case $POTENTIAL_CXX in 27823 [\\/]* | ?:[\\/]*) 27824 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 27825 ;; 27826 *) 27827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27828 for as_dir in $PATH 27829 do 27830 IFS=$as_save_IFS 27831 test -z "$as_dir" && as_dir=. 27832 for ac_exec_ext in '' $ac_executable_extensions; do 27833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27834 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 27835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27836 break 2 27837 fi 27838 done 27839 done 27840 IFS=$as_save_IFS 27841 27842 ;; 27843 esac 27844 fi 27845 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 27846 if test -n "$POTENTIAL_CXX"; then 27847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 27848 $as_echo "$POTENTIAL_CXX" >&6; } 27849 else 27850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27851 $as_echo "no" >&6; } 27852 fi 27853 27854 27855 test -n "$POTENTIAL_CXX" && break 27856 done 27857 27858 if test "x$POTENTIAL_CXX" != x; then 27859 CXX=$POTENTIAL_CXX 27860 else 27861 as_fn_error $? "User supplied compiler CXX=$CXX could not be found" "$LINENO" 5 27862 fi 27863 else 27864 # Otherwise it might already be a complete path 27865 if test ! -x "$CXX"; then 27866 as_fn_error $? "User supplied compiler CXX=$CXX does not exist" "$LINENO" 5 27867 fi 27868 fi 27869 else 27870 # No user supplied value. Locate compiler ourselves. 27871 27872 # If we are cross compiling, assume cross compilation tools follows the 27873 # cross compilation standard where they are prefixed with the autoconf 27874 # standard name for the target. For example the binary 27875 # i686-sun-solaris2.10-gcc will cross compile for i686-sun-solaris2.10. 27876 # If we are not cross compiling, then the default compiler name will be 27877 # used. 27878 27879 CXX= 27880 # If TOOLS_DIR is set, check for all compiler names in there first 27881 # before checking the rest of the PATH. 27882 # FIXME: Now that we prefix the TOOLS_DIR to the PATH in the PRE_DETECTION 27883 # step, this should not be necessary. 27884 if test -n "$TOOLS_DIR"; then 27885 PATH_save="$PATH" 27886 PATH="$TOOLS_DIR" 27887 for ac_prog in $TOOLCHAIN_CXX_BINARY 27888 do 27889 # Extract the first word of "$ac_prog", so it can be a program name with args. 27890 set dummy $ac_prog; ac_word=$2 27891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27892 $as_echo_n "checking for $ac_word... " >&6; } 27893 if ${ac_cv_path_TOOLS_DIR_CXX+:} false; then : 27894 $as_echo_n "(cached) " >&6 27895 else 27896 case $TOOLS_DIR_CXX in 27897 [\\/]* | ?:[\\/]*) 27898 ac_cv_path_TOOLS_DIR_CXX="$TOOLS_DIR_CXX" # Let the user override the test with a path. 27899 ;; 27900 *) 27901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27902 for as_dir in $PATH 27903 do 27904 IFS=$as_save_IFS 27905 test -z "$as_dir" && as_dir=. 27906 for ac_exec_ext in '' $ac_executable_extensions; do 27907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27908 ac_cv_path_TOOLS_DIR_CXX="$as_dir/$ac_word$ac_exec_ext" 27909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27910 break 2 27911 fi 27912 done 27913 done 27914 IFS=$as_save_IFS 27915 27916 ;; 27917 esac 27918 fi 27919 TOOLS_DIR_CXX=$ac_cv_path_TOOLS_DIR_CXX 27920 if test -n "$TOOLS_DIR_CXX"; then 27921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOOLS_DIR_CXX" >&5 27922 $as_echo "$TOOLS_DIR_CXX" >&6; } 27923 else 27924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27925 $as_echo "no" >&6; } 27926 fi 27927 27928 27929 test -n "$TOOLS_DIR_CXX" && break 27930 done 27931 27932 CXX=$TOOLS_DIR_CXX 27933 PATH="$PATH_save" 27934 fi 27935 27936 # AC_PATH_PROGS can't be run multiple times with the same variable, 27937 # so create a new name for this run. 27938 if test "x$CXX" = x; then 27939 for ac_prog in $TOOLCHAIN_CXX_BINARY 27940 do 27941 # Extract the first word of "$ac_prog", so it can be a program name with args. 27942 set dummy $ac_prog; ac_word=$2 27943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 27944 $as_echo_n "checking for $ac_word... " >&6; } 27945 if ${ac_cv_path_POTENTIAL_CXX+:} false; then : 27946 $as_echo_n "(cached) " >&6 27947 else 27948 case $POTENTIAL_CXX in 27949 [\\/]* | ?:[\\/]*) 27950 ac_cv_path_POTENTIAL_CXX="$POTENTIAL_CXX" # Let the user override the test with a path. 27951 ;; 27952 *) 27953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 27954 for as_dir in $PATH 27955 do 27956 IFS=$as_save_IFS 27957 test -z "$as_dir" && as_dir=. 27958 for ac_exec_ext in '' $ac_executable_extensions; do 27959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 27960 ac_cv_path_POTENTIAL_CXX="$as_dir/$ac_word$ac_exec_ext" 27961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 27962 break 2 27963 fi 27964 done 27965 done 27966 IFS=$as_save_IFS 27967 27968 ;; 27969 esac 27970 fi 27971 POTENTIAL_CXX=$ac_cv_path_POTENTIAL_CXX 27972 if test -n "$POTENTIAL_CXX"; then 27973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POTENTIAL_CXX" >&5 27974 $as_echo "$POTENTIAL_CXX" >&6; } 27975 else 27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 27977 $as_echo "no" >&6; } 27978 fi 27979 27980 27981 test -n "$POTENTIAL_CXX" && break 27982 done 27983 27984 CXX=$POTENTIAL_CXX 27985 fi 27986 27987 if test "x$CXX" = x; then 27988 27989 # Print a helpful message on how to acquire the necessary build dependency. 27990 # devkit is the help tag: freetype, cups, pulse, alsa etc 27991 MISSING_DEPENDENCY=devkit 27992 27993 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 27994 cygwin_help $MISSING_DEPENDENCY 27995 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 27996 msys_help $MISSING_DEPENDENCY 27997 else 27998 PKGHANDLER_COMMAND= 27999 28000 case $PKGHANDLER in 28001 apt-get) 28002 apt_help $MISSING_DEPENDENCY ;; 28003 yum) 28004 yum_help $MISSING_DEPENDENCY ;; 28005 port) 28006 port_help $MISSING_DEPENDENCY ;; 28007 pkgutil) 28008 pkgutil_help $MISSING_DEPENDENCY ;; 28009 pkgadd) 28010 pkgadd_help $MISSING_DEPENDENCY ;; 28011 esac 28012 28013 if test "x$PKGHANDLER_COMMAND" != x; then 28014 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 28015 fi 28016 fi 28017 28018 as_fn_error $? "Could not find a $COMPILER_NAME compiler. $HELP_MSG" "$LINENO" 5 28019 fi 28020 fi 28021 28022 # Now we have a compiler binary in CXX. Make sure it's okay. 28023 28024 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28025 28026 # First separate the path from the arguments. This will split at the first 28027 # space. 28028 complete="$CXX" 28029 path="${complete%% *}" 28030 tmp="$complete EOL" 28031 arguments="${tmp#* }" 28032 28033 # Input might be given as Windows format, start by converting to 28034 # unix format. 28035 new_path=`$CYGPATH -u "$path"` 28036 28037 # Now try to locate executable using which 28038 new_path=`$WHICH "$new_path" 2> /dev/null` 28039 # bat and cmd files are not always considered executable in cygwin causing which 28040 # to not find them 28041 if test "x$new_path" = x \ 28042 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28043 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28044 new_path=`$CYGPATH -u "$path"` 28045 fi 28046 if test "x$new_path" = x; then 28047 # Oops. Which didn't find the executable. 28048 # The splitting of arguments from the executable at a space might have been incorrect, 28049 # since paths with space are more likely in Windows. Give it another try with the whole 28050 # argument. 28051 path="$complete" 28052 arguments="EOL" 28053 new_path=`$CYGPATH -u "$path"` 28054 new_path=`$WHICH "$new_path" 2> /dev/null` 28055 # bat and cmd files are not always considered executable in cygwin causing which 28056 # to not find them 28057 if test "x$new_path" = x \ 28058 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28059 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28060 new_path=`$CYGPATH -u "$path"` 28061 fi 28062 if test "x$new_path" = x; then 28063 # It's still not found. Now this is an unrecoverable error. 28064 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28065 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28066 has_space=`$ECHO "$complete" | $GREP " "` 28067 if test "x$has_space" != x; then 28068 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28069 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28070 fi 28071 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28072 fi 28073 fi 28074 28075 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28076 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28077 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28078 # "foo.exe" is OK but "foo" is an error. 28079 # 28080 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28081 # It is also a way to make sure we got the proper file name for the real test later on. 28082 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28083 if test "x$test_shortpath" = x; then 28084 # Short path failed, file does not exist as specified. 28085 # Try adding .exe or .cmd 28086 if test -f "${new_path}.exe"; then 28087 input_to_shortpath="${new_path}.exe" 28088 elif test -f "${new_path}.cmd"; then 28089 input_to_shortpath="${new_path}.cmd" 28090 else 28091 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$new_path\", is invalid." >&5 28092 $as_echo "$as_me: The path of CXX, which resolves as \"$new_path\", is invalid." >&6;} 28093 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28094 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28095 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28096 fi 28097 else 28098 input_to_shortpath="$new_path" 28099 fi 28100 28101 # Call helper function which possibly converts this using DOS-style short mode. 28102 # If so, the updated path is stored in $new_path. 28103 new_path="$input_to_shortpath" 28104 28105 input_path="$input_to_shortpath" 28106 # Check if we need to convert this using DOS-style short mode. If the path 28107 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28108 # take no chances and rewrite it. 28109 # Note: m4 eats our [], so we need to use [ and ] instead. 28110 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28111 if test "x$has_forbidden_chars" != x; then 28112 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28113 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28114 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28115 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28116 # Going to short mode and back again did indeed matter. Since short mode is 28117 # case insensitive, let's make it lowercase to improve readability. 28118 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28119 # Now convert it back to Unix-stile (cygpath) 28120 input_path=`$CYGPATH -u "$shortmode_path"` 28121 new_path="$input_path" 28122 fi 28123 fi 28124 28125 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28126 if test "x$test_cygdrive_prefix" = x; then 28127 # As a simple fix, exclude /usr/bin since it's not a real path. 28128 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28129 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28130 # a path prefixed by /cygdrive for fixpath to work. 28131 new_path="$CYGWIN_ROOT_PATH$input_path" 28132 fi 28133 fi 28134 28135 # remove trailing .exe if any 28136 new_path="${new_path/%.exe/}" 28137 28138 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28139 28140 # First separate the path from the arguments. This will split at the first 28141 # space. 28142 complete="$CXX" 28143 path="${complete%% *}" 28144 tmp="$complete EOL" 28145 arguments="${tmp#* }" 28146 28147 # Input might be given as Windows format, start by converting to 28148 # unix format. 28149 new_path="$path" 28150 28151 windows_path="$new_path" 28152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28153 unix_path=`$CYGPATH -u "$windows_path"` 28154 new_path="$unix_path" 28155 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28156 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28157 new_path="$unix_path" 28158 fi 28159 28160 28161 # Now try to locate executable using which 28162 new_path=`$WHICH "$new_path" 2> /dev/null` 28163 28164 if test "x$new_path" = x; then 28165 # Oops. Which didn't find the executable. 28166 # The splitting of arguments from the executable at a space might have been incorrect, 28167 # since paths with space are more likely in Windows. Give it another try with the whole 28168 # argument. 28169 path="$complete" 28170 arguments="EOL" 28171 new_path="$path" 28172 28173 windows_path="$new_path" 28174 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28175 unix_path=`$CYGPATH -u "$windows_path"` 28176 new_path="$unix_path" 28177 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28178 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28179 new_path="$unix_path" 28180 fi 28181 28182 28183 new_path=`$WHICH "$new_path" 2> /dev/null` 28184 28185 if test "x$new_path" = x; then 28186 # It's still not found. Now this is an unrecoverable error. 28187 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28188 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28189 has_space=`$ECHO "$complete" | $GREP " "` 28190 if test "x$has_space" != x; then 28191 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28192 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28193 fi 28194 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28195 fi 28196 fi 28197 28198 # Now new_path has a complete unix path to the binary 28199 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28200 # Keep paths in /bin as-is, but remove trailing .exe if any 28201 new_path="${new_path/%.exe/}" 28202 # Do not save /bin paths to all_fixpath_prefixes! 28203 else 28204 # Not in mixed or Windows style, start by that. 28205 new_path=`cmd //c echo $new_path` 28206 28207 input_path="$new_path" 28208 # Check if we need to convert this using DOS-style short mode. If the path 28209 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28210 # take no chances and rewrite it. 28211 # Note: m4 eats our [], so we need to use [ and ] instead. 28212 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28213 if test "x$has_forbidden_chars" != x; then 28214 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28215 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28216 fi 28217 28218 # Output is in $new_path 28219 28220 windows_path="$new_path" 28221 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28222 unix_path=`$CYGPATH -u "$windows_path"` 28223 new_path="$unix_path" 28224 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28225 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28226 new_path="$unix_path" 28227 fi 28228 28229 # remove trailing .exe if any 28230 new_path="${new_path/%.exe/}" 28231 28232 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28233 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28234 fi 28235 28236 else 28237 # We're on a posix platform. Hooray! :) 28238 # First separate the path from the arguments. This will split at the first 28239 # space. 28240 complete="$CXX" 28241 path="${complete%% *}" 28242 tmp="$complete EOL" 28243 arguments="${tmp#* }" 28244 28245 # Cannot rely on the command "which" here since it doesn't always work. 28246 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28247 if test -z "$is_absolute_path"; then 28248 # Path to executable is not absolute. Find it. 28249 IFS_save="$IFS" 28250 IFS=: 28251 for p in $PATH; do 28252 if test -f "$p/$path" && test -x "$p/$path"; then 28253 new_path="$p/$path" 28254 break 28255 fi 28256 done 28257 IFS="$IFS_save" 28258 else 28259 # This is an absolute path, we can use it without further modifications. 28260 new_path="$path" 28261 fi 28262 28263 if test "x$new_path" = x; then 28264 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXX, which resolves as \"$complete\", is not found." >&5 28265 $as_echo "$as_me: The path of CXX, which resolves as \"$complete\", is not found." >&6;} 28266 has_space=`$ECHO "$complete" | $GREP " "` 28267 if test "x$has_space" != x; then 28268 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28269 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28270 fi 28271 as_fn_error $? "Cannot locate the the path of CXX" "$LINENO" 5 28272 fi 28273 fi 28274 28275 # Now join together the path and the arguments once again 28276 if test "x$arguments" != xEOL; then 28277 new_complete="$new_path ${arguments% *}" 28278 else 28279 new_complete="$new_path" 28280 fi 28281 28282 if test "x$complete" != "x$new_complete"; then 28283 CXX="$new_complete" 28284 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXX to \"$new_complete\"" >&5 28285 $as_echo "$as_me: Rewriting CXX to \"$new_complete\"" >&6;} 28286 fi 28287 28288 TEST_COMPILER="$CXX" 28289 # Don't remove symbolic links on AIX because 'xlc_r' and 'xlC_r' may all be links 28290 # to 'xlc' but it is crucial that we invoke the compiler with the right name! 28291 if test "x$OPENJDK_BUILD_OS" != xaix; then 28292 # FIXME: This test should not be needed anymore; we don't do that for any platform. 28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking resolved symbolic links for CXX" >&5 28294 $as_echo_n "checking resolved symbolic links for CXX... " >&6; } 28295 28296 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28297 # Follow a chain of symbolic links. Use readlink 28298 # where it exists, else fall back to horribly 28299 # complicated shell code. 28300 if test "x$READLINK_TESTED" != yes; then 28301 # On MacOSX there is a readlink tool with a different 28302 # purpose than the GNU readlink tool. Check the found readlink. 28303 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28304 if test "x$ISGNU" = x; then 28305 # A readlink that we do not know how to use. 28306 # Are there other non-GNU readlinks out there? 28307 READLINK_TESTED=yes 28308 READLINK= 28309 fi 28310 fi 28311 28312 if test "x$READLINK" != x; then 28313 TEST_COMPILER=`$READLINK -f $TEST_COMPILER` 28314 else 28315 # Save the current directory for restoring afterwards 28316 STARTDIR=$PWD 28317 COUNTER=0 28318 sym_link_dir=`$DIRNAME $TEST_COMPILER` 28319 sym_link_file=`$BASENAME $TEST_COMPILER` 28320 cd $sym_link_dir 28321 # Use -P flag to resolve symlinks in directories. 28322 cd `$THEPWDCMD -P` 28323 sym_link_dir=`$THEPWDCMD -P` 28324 # Resolve file symlinks 28325 while test $COUNTER -lt 20; do 28326 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28327 if test "x$ISLINK" == x; then 28328 # This is not a symbolic link! We are done! 28329 break 28330 fi 28331 # Again resolve directory symlinks since the target of the just found 28332 # link could be in a different directory 28333 cd `$DIRNAME $ISLINK` 28334 sym_link_dir=`$THEPWDCMD -P` 28335 sym_link_file=`$BASENAME $ISLINK` 28336 let COUNTER=COUNTER+1 28337 done 28338 cd $STARTDIR 28339 TEST_COMPILER=$sym_link_dir/$sym_link_file 28340 fi 28341 fi 28342 28343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEST_COMPILER" >&5 28344 $as_echo "$TEST_COMPILER" >&6; } 28345 fi 28346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CXX is disguised ccache" >&5 28347 $as_echo_n "checking if CXX is disguised ccache... " >&6; } 28348 28349 COMPILER_BASENAME=`$BASENAME "$TEST_COMPILER"` 28350 if test "x$COMPILER_BASENAME" = "xccache"; then 28351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, trying to find proper $COMPILER_NAME compiler" >&5 28352 $as_echo "yes, trying to find proper $COMPILER_NAME compiler" >&6; } 28353 # We /usr/lib/ccache in the path, so cc is a symlink to /usr/bin/ccache. 28354 # We want to control ccache invocation ourselves, so ignore this cc and try 28355 # searching again. 28356 28357 # Remove the path to the fake ccache cc from the PATH 28358 RETRY_COMPILER_SAVED_PATH="$PATH" 28359 COMPILER_DIRNAME=`$DIRNAME $CXX` 28360 PATH="`$ECHO $PATH | $SED -e "s,$COMPILER_DIRNAME,,g" -e "s,::,:,g" -e "s,^:,,g"`" 28361 28362 # Try again looking for our compiler 28363 if test -n "$ac_tool_prefix"; then 28364 for ac_prog in $TOOLCHAIN_CXX_BINARY 28365 do 28366 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28367 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28369 $as_echo_n "checking for $ac_word... " >&6; } 28370 if ${ac_cv_prog_PROPER_COMPILER_CXX+:} false; then : 28371 $as_echo_n "(cached) " >&6 28372 else 28373 if test -n "$PROPER_COMPILER_CXX"; then 28374 ac_cv_prog_PROPER_COMPILER_CXX="$PROPER_COMPILER_CXX" # Let the user override the test. 28375 else 28376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28377 for as_dir in $PATH 28378 do 28379 IFS=$as_save_IFS 28380 test -z "$as_dir" && as_dir=. 28381 for ac_exec_ext in '' $ac_executable_extensions; do 28382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28383 ac_cv_prog_PROPER_COMPILER_CXX="$ac_tool_prefix$ac_prog" 28384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28385 break 2 28386 fi 28387 done 28388 done 28389 IFS=$as_save_IFS 28390 28391 fi 28392 fi 28393 PROPER_COMPILER_CXX=$ac_cv_prog_PROPER_COMPILER_CXX 28394 if test -n "$PROPER_COMPILER_CXX"; then 28395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 28396 $as_echo "$PROPER_COMPILER_CXX" >&6; } 28397 else 28398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28399 $as_echo "no" >&6; } 28400 fi 28401 28402 28403 test -n "$PROPER_COMPILER_CXX" && break 28404 done 28405 fi 28406 if test -z "$PROPER_COMPILER_CXX"; then 28407 ac_ct_PROPER_COMPILER_CXX=$PROPER_COMPILER_CXX 28408 for ac_prog in $TOOLCHAIN_CXX_BINARY 28409 do 28410 # Extract the first word of "$ac_prog", so it can be a program name with args. 28411 set dummy $ac_prog; ac_word=$2 28412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28413 $as_echo_n "checking for $ac_word... " >&6; } 28414 if ${ac_cv_prog_ac_ct_PROPER_COMPILER_CXX+:} false; then : 28415 $as_echo_n "(cached) " >&6 28416 else 28417 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 28418 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_ct_PROPER_COMPILER_CXX" # Let the user override the test. 28419 else 28420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28421 for as_dir in $PATH 28422 do 28423 IFS=$as_save_IFS 28424 test -z "$as_dir" && as_dir=. 28425 for ac_exec_ext in '' $ac_executable_extensions; do 28426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28427 ac_cv_prog_ac_ct_PROPER_COMPILER_CXX="$ac_prog" 28428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28429 break 2 28430 fi 28431 done 28432 done 28433 IFS=$as_save_IFS 28434 28435 fi 28436 fi 28437 ac_ct_PROPER_COMPILER_CXX=$ac_cv_prog_ac_ct_PROPER_COMPILER_CXX 28438 if test -n "$ac_ct_PROPER_COMPILER_CXX"; then 28439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_PROPER_COMPILER_CXX" >&5 28440 $as_echo "$ac_ct_PROPER_COMPILER_CXX" >&6; } 28441 else 28442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28443 $as_echo "no" >&6; } 28444 fi 28445 28446 28447 test -n "$ac_ct_PROPER_COMPILER_CXX" && break 28448 done 28449 28450 if test "x$ac_ct_PROPER_COMPILER_CXX" = x; then 28451 PROPER_COMPILER_CXX="" 28452 else 28453 case $cross_compiling:$ac_tool_warned in 28454 yes:) 28455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 28456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 28457 ac_tool_warned=yes ;; 28458 esac 28459 PROPER_COMPILER_CXX=$ac_ct_PROPER_COMPILER_CXX 28460 fi 28461 fi 28462 28463 28464 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28465 28466 # First separate the path from the arguments. This will split at the first 28467 # space. 28468 complete="$PROPER_COMPILER_CXX" 28469 path="${complete%% *}" 28470 tmp="$complete EOL" 28471 arguments="${tmp#* }" 28472 28473 # Input might be given as Windows format, start by converting to 28474 # unix format. 28475 new_path=`$CYGPATH -u "$path"` 28476 28477 # Now try to locate executable using which 28478 new_path=`$WHICH "$new_path" 2> /dev/null` 28479 # bat and cmd files are not always considered executable in cygwin causing which 28480 # to not find them 28481 if test "x$new_path" = x \ 28482 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28483 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28484 new_path=`$CYGPATH -u "$path"` 28485 fi 28486 if test "x$new_path" = x; then 28487 # Oops. Which didn't find the executable. 28488 # The splitting of arguments from the executable at a space might have been incorrect, 28489 # since paths with space are more likely in Windows. Give it another try with the whole 28490 # argument. 28491 path="$complete" 28492 arguments="EOL" 28493 new_path=`$CYGPATH -u "$path"` 28494 new_path=`$WHICH "$new_path" 2> /dev/null` 28495 # bat and cmd files are not always considered executable in cygwin causing which 28496 # to not find them 28497 if test "x$new_path" = x \ 28498 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 28499 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 28500 new_path=`$CYGPATH -u "$path"` 28501 fi 28502 if test "x$new_path" = x; then 28503 # It's still not found. Now this is an unrecoverable error. 28504 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 28505 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 28506 has_space=`$ECHO "$complete" | $GREP " "` 28507 if test "x$has_space" != x; then 28508 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28509 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28510 fi 28511 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28512 fi 28513 fi 28514 28515 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 28516 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 28517 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 28518 # "foo.exe" is OK but "foo" is an error. 28519 # 28520 # This test is therefore slightly more accurate than "test -f" to check for file presence. 28521 # It is also a way to make sure we got the proper file name for the real test later on. 28522 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 28523 if test "x$test_shortpath" = x; then 28524 # Short path failed, file does not exist as specified. 28525 # Try adding .exe or .cmd 28526 if test -f "${new_path}.exe"; then 28527 input_to_shortpath="${new_path}.exe" 28528 elif test -f "${new_path}.cmd"; then 28529 input_to_shortpath="${new_path}.cmd" 28530 else 28531 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&5 28532 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$new_path\", is invalid." >&6;} 28533 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 28534 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 28535 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28536 fi 28537 else 28538 input_to_shortpath="$new_path" 28539 fi 28540 28541 # Call helper function which possibly converts this using DOS-style short mode. 28542 # If so, the updated path is stored in $new_path. 28543 new_path="$input_to_shortpath" 28544 28545 input_path="$input_to_shortpath" 28546 # Check if we need to convert this using DOS-style short mode. If the path 28547 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28548 # take no chances and rewrite it. 28549 # Note: m4 eats our [], so we need to use [ and ] instead. 28550 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 28551 if test "x$has_forbidden_chars" != x; then 28552 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28553 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 28554 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 28555 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 28556 # Going to short mode and back again did indeed matter. Since short mode is 28557 # case insensitive, let's make it lowercase to improve readability. 28558 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28559 # Now convert it back to Unix-stile (cygpath) 28560 input_path=`$CYGPATH -u "$shortmode_path"` 28561 new_path="$input_path" 28562 fi 28563 fi 28564 28565 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 28566 if test "x$test_cygdrive_prefix" = x; then 28567 # As a simple fix, exclude /usr/bin since it's not a real path. 28568 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 28569 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 28570 # a path prefixed by /cygdrive for fixpath to work. 28571 new_path="$CYGWIN_ROOT_PATH$input_path" 28572 fi 28573 fi 28574 28575 # remove trailing .exe if any 28576 new_path="${new_path/%.exe/}" 28577 28578 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28579 28580 # First separate the path from the arguments. This will split at the first 28581 # space. 28582 complete="$PROPER_COMPILER_CXX" 28583 path="${complete%% *}" 28584 tmp="$complete EOL" 28585 arguments="${tmp#* }" 28586 28587 # Input might be given as Windows format, start by converting to 28588 # unix format. 28589 new_path="$path" 28590 28591 windows_path="$new_path" 28592 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28593 unix_path=`$CYGPATH -u "$windows_path"` 28594 new_path="$unix_path" 28595 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28596 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28597 new_path="$unix_path" 28598 fi 28599 28600 28601 # Now try to locate executable using which 28602 new_path=`$WHICH "$new_path" 2> /dev/null` 28603 28604 if test "x$new_path" = x; then 28605 # Oops. Which didn't find the executable. 28606 # The splitting of arguments from the executable at a space might have been incorrect, 28607 # since paths with space are more likely in Windows. Give it another try with the whole 28608 # argument. 28609 path="$complete" 28610 arguments="EOL" 28611 new_path="$path" 28612 28613 windows_path="$new_path" 28614 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28615 unix_path=`$CYGPATH -u "$windows_path"` 28616 new_path="$unix_path" 28617 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28618 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28619 new_path="$unix_path" 28620 fi 28621 28622 28623 new_path=`$WHICH "$new_path" 2> /dev/null` 28624 28625 if test "x$new_path" = x; then 28626 # It's still not found. Now this is an unrecoverable error. 28627 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 28628 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 28629 has_space=`$ECHO "$complete" | $GREP " "` 28630 if test "x$has_space" != x; then 28631 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 28632 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 28633 fi 28634 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28635 fi 28636 fi 28637 28638 # Now new_path has a complete unix path to the binary 28639 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 28640 # Keep paths in /bin as-is, but remove trailing .exe if any 28641 new_path="${new_path/%.exe/}" 28642 # Do not save /bin paths to all_fixpath_prefixes! 28643 else 28644 # Not in mixed or Windows style, start by that. 28645 new_path=`cmd //c echo $new_path` 28646 28647 input_path="$new_path" 28648 # Check if we need to convert this using DOS-style short mode. If the path 28649 # contains just simple characters, use it. Otherwise (spaces, weird characters), 28650 # take no chances and rewrite it. 28651 # Note: m4 eats our [], so we need to use [ and ] instead. 28652 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 28653 if test "x$has_forbidden_chars" != x; then 28654 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 28655 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 28656 fi 28657 28658 # Output is in $new_path 28659 28660 windows_path="$new_path" 28661 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 28662 unix_path=`$CYGPATH -u "$windows_path"` 28663 new_path="$unix_path" 28664 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 28665 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 28666 new_path="$unix_path" 28667 fi 28668 28669 # remove trailing .exe if any 28670 new_path="${new_path/%.exe/}" 28671 28672 # Save the first 10 bytes of this path to the storage, so fixpath can work. 28673 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 28674 fi 28675 28676 else 28677 # We're on a posix platform. Hooray! :) 28678 # First separate the path from the arguments. This will split at the first 28679 # space. 28680 complete="$PROPER_COMPILER_CXX" 28681 path="${complete%% *}" 28682 tmp="$complete EOL" 28683 arguments="${tmp#* }" 28684 28685 # Cannot rely on the command "which" here since it doesn't always work. 28686 is_absolute_path=`$ECHO "$path" | $GREP ^/` 28687 if test -z "$is_absolute_path"; then 28688 # Path to executable is not absolute. Find it. 28689 IFS_save="$IFS" 28690 IFS=: 28691 for p in $PATH; do 28692 if test -f "$p/$path" && test -x "$p/$path"; then 28693 new_path="$p/$path" 28694 break 28695 fi 28696 done 28697 IFS="$IFS_save" 28698 else 28699 # This is an absolute path, we can use it without further modifications. 28700 new_path="$path" 28701 fi 28702 28703 if test "x$new_path" = x; then 28704 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&5 28705 $as_echo "$as_me: The path of PROPER_COMPILER_CXX, which resolves as \"$complete\", is not found." >&6;} 28706 has_space=`$ECHO "$complete" | $GREP " "` 28707 if test "x$has_space" != x; then 28708 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 28709 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 28710 fi 28711 as_fn_error $? "Cannot locate the the path of PROPER_COMPILER_CXX" "$LINENO" 5 28712 fi 28713 fi 28714 28715 # Now join together the path and the arguments once again 28716 if test "x$arguments" != xEOL; then 28717 new_complete="$new_path ${arguments% *}" 28718 else 28719 new_complete="$new_path" 28720 fi 28721 28722 if test "x$complete" != "x$new_complete"; then 28723 PROPER_COMPILER_CXX="$new_complete" 28724 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&5 28725 $as_echo "$as_me: Rewriting PROPER_COMPILER_CXX to \"$new_complete\"" >&6;} 28726 fi 28727 28728 PATH="$RETRY_COMPILER_SAVED_PATH" 28729 28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for resolved symbolic links for CXX" >&5 28731 $as_echo_n "checking for resolved symbolic links for CXX... " >&6; } 28732 28733 if test "x$OPENJDK_BUILD_OS" != xwindows; then 28734 # Follow a chain of symbolic links. Use readlink 28735 # where it exists, else fall back to horribly 28736 # complicated shell code. 28737 if test "x$READLINK_TESTED" != yes; then 28738 # On MacOSX there is a readlink tool with a different 28739 # purpose than the GNU readlink tool. Check the found readlink. 28740 ISGNU=`$READLINK --version 2>&1 | $GREP GNU` 28741 if test "x$ISGNU" = x; then 28742 # A readlink that we do not know how to use. 28743 # Are there other non-GNU readlinks out there? 28744 READLINK_TESTED=yes 28745 READLINK= 28746 fi 28747 fi 28748 28749 if test "x$READLINK" != x; then 28750 PROPER_COMPILER_CXX=`$READLINK -f $PROPER_COMPILER_CXX` 28751 else 28752 # Save the current directory for restoring afterwards 28753 STARTDIR=$PWD 28754 COUNTER=0 28755 sym_link_dir=`$DIRNAME $PROPER_COMPILER_CXX` 28756 sym_link_file=`$BASENAME $PROPER_COMPILER_CXX` 28757 cd $sym_link_dir 28758 # Use -P flag to resolve symlinks in directories. 28759 cd `$THEPWDCMD -P` 28760 sym_link_dir=`$THEPWDCMD -P` 28761 # Resolve file symlinks 28762 while test $COUNTER -lt 20; do 28763 ISLINK=`$LS -l $sym_link_dir/$sym_link_file | $GREP '\->' | $SED -e 's/.*-> \(.*\)/\1/'` 28764 if test "x$ISLINK" == x; then 28765 # This is not a symbolic link! We are done! 28766 break 28767 fi 28768 # Again resolve directory symlinks since the target of the just found 28769 # link could be in a different directory 28770 cd `$DIRNAME $ISLINK` 28771 sym_link_dir=`$THEPWDCMD -P` 28772 sym_link_file=`$BASENAME $ISLINK` 28773 let COUNTER=COUNTER+1 28774 done 28775 cd $STARTDIR 28776 PROPER_COMPILER_CXX=$sym_link_dir/$sym_link_file 28777 fi 28778 fi 28779 28780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PROPER_COMPILER_CXX" >&5 28781 $as_echo "$PROPER_COMPILER_CXX" >&6; } 28782 CXX="$PROPER_COMPILER_CXX" 28783 else 28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, keeping CXX" >&5 28785 $as_echo "no, keeping CXX" >&6; } 28786 CXX="$TEST_COMPILER" 28787 fi 28788 28789 28790 COMPILER=$CXX 28791 COMPILER_NAME=$COMPILER_NAME 28792 28793 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 28794 # cc -V output typically looks like 28795 # cc: Sun C 5.12 Linux_i386 2011/11/16 28796 COMPILER_VERSION_OUTPUT=`$COMPILER -V 2>&1` 28797 # Check that this is likely to be the Solaris Studio cc. 28798 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "^.*: Sun $COMPILER_NAME" > /dev/null 28799 if test $? -ne 0; then 28800 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28801 { $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 28802 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28803 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28804 $as_echo "$as_me: The result from running with -V was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28805 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28806 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28807 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28808 fi 28809 # Remove usage instructions (if present), and 28810 # collapse compiler output into a single line 28811 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28812 $SED -e 's/ *[Uu]sage:.*//'` 28813 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28814 $SED -e "s/^.*[ ,\t]$COMPILER_NAME[ ,\t]\([1-9]\.[0-9][0-9]*\).*/\1/"` 28815 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 28816 # xlc -qversion output typically looks like 28817 # IBM XL C/C++ for AIX, V11.1 (5724-X13) 28818 # Version: 11.01.0000.0015 28819 COMPILER_VERSION_OUTPUT=`$COMPILER -qversion 2>&1` 28820 # Check that this is likely to be the IBM XL C compiler. 28821 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "IBM XL C" > /dev/null 28822 if test $? -ne 0; then 28823 ALT_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28824 { $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 28825 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28826 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28827 $as_echo "$as_me: The result from running with -qversion was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28828 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&5 28829 $as_echo "$as_me: The result from running with --version was: \"$ALT_VERSION_OUTPUT\"" >&6;} 28830 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28831 fi 28832 # Collapse compiler output into a single line 28833 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28834 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28835 $SED -e 's/^.*, V\([1-9][0-9.]*\).*$/\1/'` 28836 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 28837 # There is no specific version flag, but all output starts with a version string. 28838 # First line typically looks something like: 28839 # Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 16.00.40219.01 for 80x86 28840 COMPILER_VERSION_OUTPUT=`$COMPILER 2>&1 | $HEAD -n 1 | $TR -d '\r'` 28841 # Check that this is likely to be Microsoft CL.EXE. 28842 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Microsoft.*Compiler" > /dev/null 28843 if test $? -ne 0; then 28844 { $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 28845 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28846 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28847 $as_echo "$as_me: The result from running it was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28848 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28849 fi 28850 # Collapse compiler output into a single line 28851 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28852 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28853 $SED -e 's/^.*ersion.\([1-9][0-9.]*\) .*$/\1/'` 28854 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 28855 # gcc --version output typically looks like 28856 # gcc (Ubuntu/Linaro 4.8.1-10ubuntu9) 4.8.1 28857 # Copyright (C) 2013 Free Software Foundation, Inc. 28858 # This is free software; see the source for copying conditions. There is NO 28859 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 28860 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28861 # Check that this is likely to be GCC. 28862 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "Free Software Foundation" > /dev/null 28863 if test $? -ne 0; then 28864 { $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 28865 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28866 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION\"" >&5 28867 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION\"" >&6;} 28868 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28869 fi 28870 # Remove Copyright and legalese from version string, and 28871 # collapse into a single line 28872 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28873 $SED -e 's/ *Copyright .*//'` 28874 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28875 $SED -e 's/^.* \([1-9]\.[0-9.]*\) .*$/\1/'` 28876 elif test "x$TOOLCHAIN_TYPE" = xclang; then 28877 # clang --version output typically looks like 28878 # Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn) 28879 # clang version 3.3 (tags/RELEASE_33/final) 28880 # or 28881 # Debian clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) 28882 # Target: x86_64-pc-linux-gnu 28883 # Thread model: posix 28884 COMPILER_VERSION_OUTPUT=`$COMPILER --version 2>&1` 28885 # Check that this is likely to be clang 28886 $ECHO "$COMPILER_VERSION_OUTPUT" | $GREP "clang" > /dev/null 28887 if test $? -ne 0; then 28888 { $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 28889 $as_echo "$as_me: The $COMPILER_NAME compiler (located as $COMPILER) does not seem to be the required $TOOLCHAIN_TYPE compiler." >&6;} 28890 { $as_echo "$as_me:${as_lineno-$LINENO}: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&5 28891 $as_echo "$as_me: The result from running with --version was: \"$COMPILER_VERSION_OUTPUT\"" >&6;} 28892 as_fn_error $? "A $TOOLCHAIN_TYPE compiler is required. Try setting --with-tools-dir." "$LINENO" 5 28893 fi 28894 # Collapse compiler output into a single line 28895 COMPILER_VERSION_STRING=`$ECHO $COMPILER_VERSION_OUTPUT` 28896 COMPILER_VERSION_NUMBER=`$ECHO $COMPILER_VERSION_OUTPUT | \ 28897 $SED -e 's/^.*clang version \([1-9][0-9.]*\).*$/\1/'` 28898 28899 else 28900 as_fn_error $? "Unknown toolchain type $TOOLCHAIN_TYPE." "$LINENO" 5 28901 fi 28902 # This sets CC_VERSION_NUMBER or CXX_VERSION_NUMBER. (This comment is a grep marker) 28903 CXX_VERSION_NUMBER="$COMPILER_VERSION_NUMBER" 28904 # This sets CC_VERSION_STRING or CXX_VERSION_STRING. (This comment is a grep marker) 28905 CXX_VERSION_STRING="$COMPILER_VERSION_STRING" 28906 28907 { $as_echo "$as_me:${as_lineno-$LINENO}: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&5 28908 $as_echo "$as_me: Using $TOOLCHAIN_TYPE $COMPILER_NAME compiler version $COMPILER_VERSION_NUMBER [$COMPILER_VERSION_STRING]" >&6;} 28909 28910 28911 # Now that we have resolved CXX ourself, let autoconf have its go at it 28912 ac_ext=cpp 28913 ac_cpp='$CXXCPP $CPPFLAGS' 28914 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 28915 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 28916 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 28917 if test -z "$CXX"; then 28918 if test -n "$CCC"; then 28919 CXX=$CCC 28920 else 28921 if test -n "$ac_tool_prefix"; then 28922 for ac_prog in $CXX 28923 do 28924 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 28925 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 28926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28927 $as_echo_n "checking for $ac_word... " >&6; } 28928 if ${ac_cv_prog_CXX+:} false; then : 28929 $as_echo_n "(cached) " >&6 28930 else 28931 if test -n "$CXX"; then 28932 ac_cv_prog_CXX="$CXX" # Let the user override the test. 28933 else 28934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28935 for as_dir in $PATH 28936 do 28937 IFS=$as_save_IFS 28938 test -z "$as_dir" && as_dir=. 28939 for ac_exec_ext in '' $ac_executable_extensions; do 28940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28941 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 28942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28943 break 2 28944 fi 28945 done 28946 done 28947 IFS=$as_save_IFS 28948 28949 fi 28950 fi 28951 CXX=$ac_cv_prog_CXX 28952 if test -n "$CXX"; then 28953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 28954 $as_echo "$CXX" >&6; } 28955 else 28956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 28957 $as_echo "no" >&6; } 28958 fi 28959 28960 28961 test -n "$CXX" && break 28962 done 28963 fi 28964 if test -z "$CXX"; then 28965 ac_ct_CXX=$CXX 28966 for ac_prog in $CXX 28967 do 28968 # Extract the first word of "$ac_prog", so it can be a program name with args. 28969 set dummy $ac_prog; ac_word=$2 28970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 28971 $as_echo_n "checking for $ac_word... " >&6; } 28972 if ${ac_cv_prog_ac_ct_CXX+:} false; then : 28973 $as_echo_n "(cached) " >&6 28974 else 28975 if test -n "$ac_ct_CXX"; then 28976 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 28977 else 28978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 28979 for as_dir in $PATH 28980 do 28981 IFS=$as_save_IFS 28982 test -z "$as_dir" && as_dir=. 28983 for ac_exec_ext in '' $ac_executable_extensions; do 28984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 28985 ac_cv_prog_ac_ct_CXX="$ac_prog" 28986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 28987 break 2 28988 fi 28989 done 28990 done 28991 IFS=$as_save_IFS 28992 28993 fi 28994 fi 28995 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 28996 if test -n "$ac_ct_CXX"; then 28997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 28998 $as_echo "$ac_ct_CXX" >&6; } 28999 else 29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29001 $as_echo "no" >&6; } 29002 fi 29003 29004 29005 test -n "$ac_ct_CXX" && break 29006 done 29007 29008 if test "x$ac_ct_CXX" = x; then 29009 CXX="g++" 29010 else 29011 case $cross_compiling:$ac_tool_warned in 29012 yes:) 29013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29014 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29015 ac_tool_warned=yes ;; 29016 esac 29017 CXX=$ac_ct_CXX 29018 fi 29019 fi 29020 29021 fi 29022 fi 29023 # Provide some information about the compiler. 29024 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 29025 set X $ac_compile 29026 ac_compiler=$2 29027 for ac_option in --version -v -V -qversion; do 29028 { { ac_try="$ac_compiler $ac_option >&5" 29029 case "(($ac_try" in 29030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29031 *) ac_try_echo=$ac_try;; 29032 esac 29033 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29034 $as_echo "$ac_try_echo"; } >&5 29035 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 29036 ac_status=$? 29037 if test -s conftest.err; then 29038 sed '10a\ 29039 ... rest of stderr output deleted ... 29040 10q' conftest.err >conftest.er1 29041 cat conftest.er1 >&5 29042 fi 29043 rm -f conftest.er1 conftest.err 29044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29045 test $ac_status = 0; } 29046 done 29047 29048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 29049 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 29050 if ${ac_cv_cxx_compiler_gnu+:} false; then : 29051 $as_echo_n "(cached) " >&6 29052 else 29053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29054 /* end confdefs.h. */ 29055 29056 int 29057 main () 29058 { 29059 #ifndef __GNUC__ 29060 choke me 29061 #endif 29062 29063 ; 29064 return 0; 29065 } 29066 _ACEOF 29067 if ac_fn_cxx_try_compile "$LINENO"; then : 29068 ac_compiler_gnu=yes 29069 else 29070 ac_compiler_gnu=no 29071 fi 29072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29073 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 29074 29075 fi 29076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 29077 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 29078 if test $ac_compiler_gnu = yes; then 29079 GXX=yes 29080 else 29081 GXX= 29082 fi 29083 ac_test_CXXFLAGS=${CXXFLAGS+set} 29084 ac_save_CXXFLAGS=$CXXFLAGS 29085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 29086 $as_echo_n "checking whether $CXX accepts -g... " >&6; } 29087 if ${ac_cv_prog_cxx_g+:} false; then : 29088 $as_echo_n "(cached) " >&6 29089 else 29090 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 29091 ac_cxx_werror_flag=yes 29092 ac_cv_prog_cxx_g=no 29093 CXXFLAGS="-g" 29094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29095 /* end confdefs.h. */ 29096 29097 int 29098 main () 29099 { 29100 29101 ; 29102 return 0; 29103 } 29104 _ACEOF 29105 if ac_fn_cxx_try_compile "$LINENO"; then : 29106 ac_cv_prog_cxx_g=yes 29107 else 29108 CXXFLAGS="" 29109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29110 /* end confdefs.h. */ 29111 29112 int 29113 main () 29114 { 29115 29116 ; 29117 return 0; 29118 } 29119 _ACEOF 29120 if ac_fn_cxx_try_compile "$LINENO"; then : 29121 29122 else 29123 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 29124 CXXFLAGS="-g" 29125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29126 /* end confdefs.h. */ 29127 29128 int 29129 main () 29130 { 29131 29132 ; 29133 return 0; 29134 } 29135 _ACEOF 29136 if ac_fn_cxx_try_compile "$LINENO"; then : 29137 ac_cv_prog_cxx_g=yes 29138 fi 29139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29140 fi 29141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29142 fi 29143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 29144 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 29145 fi 29146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 29147 $as_echo "$ac_cv_prog_cxx_g" >&6; } 29148 if test "$ac_test_CXXFLAGS" = set; then 29149 CXXFLAGS=$ac_save_CXXFLAGS 29150 elif test $ac_cv_prog_cxx_g = yes; then 29151 if test "$GXX" = yes; then 29152 CXXFLAGS="-g -O2" 29153 else 29154 CXXFLAGS="-g" 29155 fi 29156 else 29157 if test "$GXX" = yes; then 29158 CXXFLAGS="-O2" 29159 else 29160 CXXFLAGS= 29161 fi 29162 fi 29163 ac_ext=cpp 29164 ac_cpp='$CXXCPP $CPPFLAGS' 29165 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29166 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29167 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29168 29169 29170 # This is the compiler version number on the form X.Y[.Z] 29171 29172 29173 29174 29175 if test "x$CC_VERSION" != "x$CXX_VERSION"; then 29176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&5 29177 $as_echo "$as_me: WARNING: C and C++ compiler has different version numbers, $CC_VERSION vs $CXX_VERSION." >&2;} 29178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This typically indicates a broken setup, and is not supported" >&5 29179 $as_echo "$as_me: WARNING: This typically indicates a broken setup, and is not supported" >&2;} 29180 fi 29181 29182 # We only check CC_VERSION since we assume CXX_VERSION is equal. 29183 if [[ "$CC_VERSION" =~ (.*\.){3} ]] ; then 29184 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&5 29185 $as_echo "$as_me: WARNING: C compiler version number has more than three parts (X.Y.Z): $CC_VERSION. Comparisons might be wrong." >&2;} 29186 fi 29187 29188 if [[ "$CC_VERSION" =~ [0-9]{6} ]] ; then 29189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&5 29190 $as_echo "$as_me: WARNING: C compiler version number has a part larger than 99999: $CC_VERSION. Comparisons might be wrong." >&2;} 29191 fi 29192 29193 COMPARABLE_ACTUAL_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$CC_VERSION"` 29194 29195 29196 # 29197 # Setup the preprocessor (CPP and CXXCPP) 29198 # 29199 ac_ext=c 29200 ac_cpp='$CPP $CPPFLAGS' 29201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29203 ac_compiler_gnu=$ac_cv_c_compiler_gnu 29204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 29205 $as_echo_n "checking how to run the C preprocessor... " >&6; } 29206 # On Suns, sometimes $CPP names a directory. 29207 if test -n "$CPP" && test -d "$CPP"; then 29208 CPP= 29209 fi 29210 if test -z "$CPP"; then 29211 if ${ac_cv_prog_CPP+:} false; then : 29212 $as_echo_n "(cached) " >&6 29213 else 29214 # Double quotes because CPP needs to be expanded 29215 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 29216 do 29217 ac_preproc_ok=false 29218 for ac_c_preproc_warn_flag in '' yes 29219 do 29220 # Use a header file that comes with gcc, so configuring glibc 29221 # with a fresh cross-compiler works. 29222 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29223 # <limits.h> exists even on freestanding compilers. 29224 # On the NeXT, cc -E runs the code through the compiler's parser, 29225 # not just through cpp. "Syntax error" is here to catch this case. 29226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29227 /* end confdefs.h. */ 29228 #ifdef __STDC__ 29229 # include <limits.h> 29230 #else 29231 # include <assert.h> 29232 #endif 29233 Syntax error 29234 _ACEOF 29235 if ac_fn_c_try_cpp "$LINENO"; then : 29236 29237 else 29238 # Broken: fails on valid input. 29239 continue 29240 fi 29241 rm -f conftest.err conftest.i conftest.$ac_ext 29242 29243 # OK, works on sane cases. Now check whether nonexistent headers 29244 # can be detected and how. 29245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29246 /* end confdefs.h. */ 29247 #include <ac_nonexistent.h> 29248 _ACEOF 29249 if ac_fn_c_try_cpp "$LINENO"; then : 29250 # Broken: success on invalid input. 29251 continue 29252 else 29253 # Passes both tests. 29254 ac_preproc_ok=: 29255 break 29256 fi 29257 rm -f conftest.err conftest.i conftest.$ac_ext 29258 29259 done 29260 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29261 rm -f conftest.i conftest.err conftest.$ac_ext 29262 if $ac_preproc_ok; then : 29263 break 29264 fi 29265 29266 done 29267 ac_cv_prog_CPP=$CPP 29268 29269 fi 29270 CPP=$ac_cv_prog_CPP 29271 else 29272 ac_cv_prog_CPP=$CPP 29273 fi 29274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 29275 $as_echo "$CPP" >&6; } 29276 ac_preproc_ok=false 29277 for ac_c_preproc_warn_flag in '' yes 29278 do 29279 # Use a header file that comes with gcc, so configuring glibc 29280 # with a fresh cross-compiler works. 29281 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29282 # <limits.h> exists even on freestanding compilers. 29283 # On the NeXT, cc -E runs the code through the compiler's parser, 29284 # not just through cpp. "Syntax error" is here to catch this case. 29285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29286 /* end confdefs.h. */ 29287 #ifdef __STDC__ 29288 # include <limits.h> 29289 #else 29290 # include <assert.h> 29291 #endif 29292 Syntax error 29293 _ACEOF 29294 if ac_fn_c_try_cpp "$LINENO"; then : 29295 29296 else 29297 # Broken: fails on valid input. 29298 continue 29299 fi 29300 rm -f conftest.err conftest.i conftest.$ac_ext 29301 29302 # OK, works on sane cases. Now check whether nonexistent headers 29303 # can be detected and how. 29304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29305 /* end confdefs.h. */ 29306 #include <ac_nonexistent.h> 29307 _ACEOF 29308 if ac_fn_c_try_cpp "$LINENO"; then : 29309 # Broken: success on invalid input. 29310 continue 29311 else 29312 # Passes both tests. 29313 ac_preproc_ok=: 29314 break 29315 fi 29316 rm -f conftest.err conftest.i conftest.$ac_ext 29317 29318 done 29319 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29320 rm -f conftest.i conftest.err conftest.$ac_ext 29321 if $ac_preproc_ok; then : 29322 29323 else 29324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29325 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29326 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 29327 See \`config.log' for more details" "$LINENO" 5; } 29328 fi 29329 29330 ac_ext=cpp 29331 ac_cpp='$CXXCPP $CPPFLAGS' 29332 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29333 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29334 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29335 29336 29337 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29338 29339 # First separate the path from the arguments. This will split at the first 29340 # space. 29341 complete="$CPP" 29342 path="${complete%% *}" 29343 tmp="$complete EOL" 29344 arguments="${tmp#* }" 29345 29346 # Input might be given as Windows format, start by converting to 29347 # unix format. 29348 new_path=`$CYGPATH -u "$path"` 29349 29350 # Now try to locate executable using which 29351 new_path=`$WHICH "$new_path" 2> /dev/null` 29352 # bat and cmd files are not always considered executable in cygwin causing which 29353 # to not find them 29354 if test "x$new_path" = x \ 29355 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29356 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29357 new_path=`$CYGPATH -u "$path"` 29358 fi 29359 if test "x$new_path" = x; then 29360 # Oops. Which didn't find the executable. 29361 # The splitting of arguments from the executable at a space might have been incorrect, 29362 # since paths with space are more likely in Windows. Give it another try with the whole 29363 # argument. 29364 path="$complete" 29365 arguments="EOL" 29366 new_path=`$CYGPATH -u "$path"` 29367 new_path=`$WHICH "$new_path" 2> /dev/null` 29368 # bat and cmd files are not always considered executable in cygwin causing which 29369 # to not find them 29370 if test "x$new_path" = x \ 29371 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29372 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29373 new_path=`$CYGPATH -u "$path"` 29374 fi 29375 if test "x$new_path" = x; then 29376 # It's still not found. Now this is an unrecoverable error. 29377 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 29378 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 29379 has_space=`$ECHO "$complete" | $GREP " "` 29380 if test "x$has_space" != x; then 29381 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29382 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29383 fi 29384 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29385 fi 29386 fi 29387 29388 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29389 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29390 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29391 # "foo.exe" is OK but "foo" is an error. 29392 # 29393 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29394 # It is also a way to make sure we got the proper file name for the real test later on. 29395 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29396 if test "x$test_shortpath" = x; then 29397 # Short path failed, file does not exist as specified. 29398 # Try adding .exe or .cmd 29399 if test -f "${new_path}.exe"; then 29400 input_to_shortpath="${new_path}.exe" 29401 elif test -f "${new_path}.cmd"; then 29402 input_to_shortpath="${new_path}.cmd" 29403 else 29404 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$new_path\", is invalid." >&5 29405 $as_echo "$as_me: The path of CPP, which resolves as \"$new_path\", is invalid." >&6;} 29406 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29407 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29408 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29409 fi 29410 else 29411 input_to_shortpath="$new_path" 29412 fi 29413 29414 # Call helper function which possibly converts this using DOS-style short mode. 29415 # If so, the updated path is stored in $new_path. 29416 new_path="$input_to_shortpath" 29417 29418 input_path="$input_to_shortpath" 29419 # Check if we need to convert this using DOS-style short mode. If the path 29420 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29421 # take no chances and rewrite it. 29422 # Note: m4 eats our [], so we need to use [ and ] instead. 29423 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29424 if test "x$has_forbidden_chars" != x; then 29425 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29426 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29427 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29428 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29429 # Going to short mode and back again did indeed matter. Since short mode is 29430 # case insensitive, let's make it lowercase to improve readability. 29431 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29432 # Now convert it back to Unix-stile (cygpath) 29433 input_path=`$CYGPATH -u "$shortmode_path"` 29434 new_path="$input_path" 29435 fi 29436 fi 29437 29438 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29439 if test "x$test_cygdrive_prefix" = x; then 29440 # As a simple fix, exclude /usr/bin since it's not a real path. 29441 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29442 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29443 # a path prefixed by /cygdrive for fixpath to work. 29444 new_path="$CYGWIN_ROOT_PATH$input_path" 29445 fi 29446 fi 29447 29448 # remove trailing .exe if any 29449 new_path="${new_path/%.exe/}" 29450 29451 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29452 29453 # First separate the path from the arguments. This will split at the first 29454 # space. 29455 complete="$CPP" 29456 path="${complete%% *}" 29457 tmp="$complete EOL" 29458 arguments="${tmp#* }" 29459 29460 # Input might be given as Windows format, start by converting to 29461 # unix format. 29462 new_path="$path" 29463 29464 windows_path="$new_path" 29465 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29466 unix_path=`$CYGPATH -u "$windows_path"` 29467 new_path="$unix_path" 29468 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29469 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29470 new_path="$unix_path" 29471 fi 29472 29473 29474 # Now try to locate executable using which 29475 new_path=`$WHICH "$new_path" 2> /dev/null` 29476 29477 if test "x$new_path" = x; then 29478 # Oops. Which didn't find the executable. 29479 # The splitting of arguments from the executable at a space might have been incorrect, 29480 # since paths with space are more likely in Windows. Give it another try with the whole 29481 # argument. 29482 path="$complete" 29483 arguments="EOL" 29484 new_path="$path" 29485 29486 windows_path="$new_path" 29487 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29488 unix_path=`$CYGPATH -u "$windows_path"` 29489 new_path="$unix_path" 29490 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29491 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29492 new_path="$unix_path" 29493 fi 29494 29495 29496 new_path=`$WHICH "$new_path" 2> /dev/null` 29497 29498 if test "x$new_path" = x; then 29499 # It's still not found. Now this is an unrecoverable error. 29500 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 29501 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 29502 has_space=`$ECHO "$complete" | $GREP " "` 29503 if test "x$has_space" != x; then 29504 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29505 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29506 fi 29507 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29508 fi 29509 fi 29510 29511 # Now new_path has a complete unix path to the binary 29512 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29513 # Keep paths in /bin as-is, but remove trailing .exe if any 29514 new_path="${new_path/%.exe/}" 29515 # Do not save /bin paths to all_fixpath_prefixes! 29516 else 29517 # Not in mixed or Windows style, start by that. 29518 new_path=`cmd //c echo $new_path` 29519 29520 input_path="$new_path" 29521 # Check if we need to convert this using DOS-style short mode. If the path 29522 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29523 # take no chances and rewrite it. 29524 # Note: m4 eats our [], so we need to use [ and ] instead. 29525 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29526 if test "x$has_forbidden_chars" != x; then 29527 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29528 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29529 fi 29530 29531 # Output is in $new_path 29532 29533 windows_path="$new_path" 29534 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29535 unix_path=`$CYGPATH -u "$windows_path"` 29536 new_path="$unix_path" 29537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29538 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29539 new_path="$unix_path" 29540 fi 29541 29542 # remove trailing .exe if any 29543 new_path="${new_path/%.exe/}" 29544 29545 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29546 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29547 fi 29548 29549 else 29550 # We're on a posix platform. Hooray! :) 29551 # First separate the path from the arguments. This will split at the first 29552 # space. 29553 complete="$CPP" 29554 path="${complete%% *}" 29555 tmp="$complete EOL" 29556 arguments="${tmp#* }" 29557 29558 # Cannot rely on the command "which" here since it doesn't always work. 29559 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29560 if test -z "$is_absolute_path"; then 29561 # Path to executable is not absolute. Find it. 29562 IFS_save="$IFS" 29563 IFS=: 29564 for p in $PATH; do 29565 if test -f "$p/$path" && test -x "$p/$path"; then 29566 new_path="$p/$path" 29567 break 29568 fi 29569 done 29570 IFS="$IFS_save" 29571 else 29572 # This is an absolute path, we can use it without further modifications. 29573 new_path="$path" 29574 fi 29575 29576 if test "x$new_path" = x; then 29577 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CPP, which resolves as \"$complete\", is not found." >&5 29578 $as_echo "$as_me: The path of CPP, which resolves as \"$complete\", is not found." >&6;} 29579 has_space=`$ECHO "$complete" | $GREP " "` 29580 if test "x$has_space" != x; then 29581 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29582 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29583 fi 29584 as_fn_error $? "Cannot locate the the path of CPP" "$LINENO" 5 29585 fi 29586 fi 29587 29588 # Now join together the path and the arguments once again 29589 if test "x$arguments" != xEOL; then 29590 new_complete="$new_path ${arguments% *}" 29591 else 29592 new_complete="$new_path" 29593 fi 29594 29595 if test "x$complete" != "x$new_complete"; then 29596 CPP="$new_complete" 29597 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CPP to \"$new_complete\"" >&5 29598 $as_echo "$as_me: Rewriting CPP to \"$new_complete\"" >&6;} 29599 fi 29600 29601 ac_ext=cpp 29602 ac_cpp='$CXXCPP $CPPFLAGS' 29603 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29604 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29605 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 29607 $as_echo_n "checking how to run the C++ preprocessor... " >&6; } 29608 if test -z "$CXXCPP"; then 29609 if ${ac_cv_prog_CXXCPP+:} false; then : 29610 $as_echo_n "(cached) " >&6 29611 else 29612 # Double quotes because CXXCPP needs to be expanded 29613 for CXXCPP in "$CXX -E" "/lib/cpp" 29614 do 29615 ac_preproc_ok=false 29616 for ac_cxx_preproc_warn_flag in '' yes 29617 do 29618 # Use a header file that comes with gcc, so configuring glibc 29619 # with a fresh cross-compiler works. 29620 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29621 # <limits.h> exists even on freestanding compilers. 29622 # On the NeXT, cc -E runs the code through the compiler's parser, 29623 # not just through cpp. "Syntax error" is here to catch this case. 29624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29625 /* end confdefs.h. */ 29626 #ifdef __STDC__ 29627 # include <limits.h> 29628 #else 29629 # include <assert.h> 29630 #endif 29631 Syntax error 29632 _ACEOF 29633 if ac_fn_cxx_try_cpp "$LINENO"; then : 29634 29635 else 29636 # Broken: fails on valid input. 29637 continue 29638 fi 29639 rm -f conftest.err conftest.i conftest.$ac_ext 29640 29641 # OK, works on sane cases. Now check whether nonexistent headers 29642 # can be detected and how. 29643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29644 /* end confdefs.h. */ 29645 #include <ac_nonexistent.h> 29646 _ACEOF 29647 if ac_fn_cxx_try_cpp "$LINENO"; then : 29648 # Broken: success on invalid input. 29649 continue 29650 else 29651 # Passes both tests. 29652 ac_preproc_ok=: 29653 break 29654 fi 29655 rm -f conftest.err conftest.i conftest.$ac_ext 29656 29657 done 29658 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29659 rm -f conftest.i conftest.err conftest.$ac_ext 29660 if $ac_preproc_ok; then : 29661 break 29662 fi 29663 29664 done 29665 ac_cv_prog_CXXCPP=$CXXCPP 29666 29667 fi 29668 CXXCPP=$ac_cv_prog_CXXCPP 29669 else 29670 ac_cv_prog_CXXCPP=$CXXCPP 29671 fi 29672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 29673 $as_echo "$CXXCPP" >&6; } 29674 ac_preproc_ok=false 29675 for ac_cxx_preproc_warn_flag in '' yes 29676 do 29677 # Use a header file that comes with gcc, so configuring glibc 29678 # with a fresh cross-compiler works. 29679 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 29680 # <limits.h> exists even on freestanding compilers. 29681 # On the NeXT, cc -E runs the code through the compiler's parser, 29682 # not just through cpp. "Syntax error" is here to catch this case. 29683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29684 /* end confdefs.h. */ 29685 #ifdef __STDC__ 29686 # include <limits.h> 29687 #else 29688 # include <assert.h> 29689 #endif 29690 Syntax error 29691 _ACEOF 29692 if ac_fn_cxx_try_cpp "$LINENO"; then : 29693 29694 else 29695 # Broken: fails on valid input. 29696 continue 29697 fi 29698 rm -f conftest.err conftest.i conftest.$ac_ext 29699 29700 # OK, works on sane cases. Now check whether nonexistent headers 29701 # can be detected and how. 29702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29703 /* end confdefs.h. */ 29704 #include <ac_nonexistent.h> 29705 _ACEOF 29706 if ac_fn_cxx_try_cpp "$LINENO"; then : 29707 # Broken: success on invalid input. 29708 continue 29709 else 29710 # Passes both tests. 29711 ac_preproc_ok=: 29712 break 29713 fi 29714 rm -f conftest.err conftest.i conftest.$ac_ext 29715 29716 done 29717 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 29718 rm -f conftest.i conftest.err conftest.$ac_ext 29719 if $ac_preproc_ok; then : 29720 29721 else 29722 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 29723 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 29724 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 29725 See \`config.log' for more details" "$LINENO" 5; } 29726 fi 29727 29728 ac_ext=cpp 29729 ac_cpp='$CXXCPP $CPPFLAGS' 29730 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 29731 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 29732 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 29733 29734 29735 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29736 29737 # First separate the path from the arguments. This will split at the first 29738 # space. 29739 complete="$CXXCPP" 29740 path="${complete%% *}" 29741 tmp="$complete EOL" 29742 arguments="${tmp#* }" 29743 29744 # Input might be given as Windows format, start by converting to 29745 # unix format. 29746 new_path=`$CYGPATH -u "$path"` 29747 29748 # Now try to locate executable using which 29749 new_path=`$WHICH "$new_path" 2> /dev/null` 29750 # bat and cmd files are not always considered executable in cygwin causing which 29751 # to not find them 29752 if test "x$new_path" = x \ 29753 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29754 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29755 new_path=`$CYGPATH -u "$path"` 29756 fi 29757 if test "x$new_path" = x; then 29758 # Oops. Which didn't find the executable. 29759 # The splitting of arguments from the executable at a space might have been incorrect, 29760 # since paths with space are more likely in Windows. Give it another try with the whole 29761 # argument. 29762 path="$complete" 29763 arguments="EOL" 29764 new_path=`$CYGPATH -u "$path"` 29765 new_path=`$WHICH "$new_path" 2> /dev/null` 29766 # bat and cmd files are not always considered executable in cygwin causing which 29767 # to not find them 29768 if test "x$new_path" = x \ 29769 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 29770 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 29771 new_path=`$CYGPATH -u "$path"` 29772 fi 29773 if test "x$new_path" = x; then 29774 # It's still not found. Now this is an unrecoverable error. 29775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 29776 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 29777 has_space=`$ECHO "$complete" | $GREP " "` 29778 if test "x$has_space" != x; then 29779 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29780 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29781 fi 29782 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29783 fi 29784 fi 29785 29786 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 29787 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 29788 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 29789 # "foo.exe" is OK but "foo" is an error. 29790 # 29791 # This test is therefore slightly more accurate than "test -f" to check for file presence. 29792 # It is also a way to make sure we got the proper file name for the real test later on. 29793 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 29794 if test "x$test_shortpath" = x; then 29795 # Short path failed, file does not exist as specified. 29796 # Try adding .exe or .cmd 29797 if test -f "${new_path}.exe"; then 29798 input_to_shortpath="${new_path}.exe" 29799 elif test -f "${new_path}.cmd"; then 29800 input_to_shortpath="${new_path}.cmd" 29801 else 29802 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&5 29803 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$new_path\", is invalid." >&6;} 29804 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 29805 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 29806 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29807 fi 29808 else 29809 input_to_shortpath="$new_path" 29810 fi 29811 29812 # Call helper function which possibly converts this using DOS-style short mode. 29813 # If so, the updated path is stored in $new_path. 29814 new_path="$input_to_shortpath" 29815 29816 input_path="$input_to_shortpath" 29817 # Check if we need to convert this using DOS-style short mode. If the path 29818 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29819 # take no chances and rewrite it. 29820 # Note: m4 eats our [], so we need to use [ and ] instead. 29821 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 29822 if test "x$has_forbidden_chars" != x; then 29823 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29824 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 29825 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 29826 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 29827 # Going to short mode and back again did indeed matter. Since short mode is 29828 # case insensitive, let's make it lowercase to improve readability. 29829 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29830 # Now convert it back to Unix-stile (cygpath) 29831 input_path=`$CYGPATH -u "$shortmode_path"` 29832 new_path="$input_path" 29833 fi 29834 fi 29835 29836 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 29837 if test "x$test_cygdrive_prefix" = x; then 29838 # As a simple fix, exclude /usr/bin since it's not a real path. 29839 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 29840 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 29841 # a path prefixed by /cygdrive for fixpath to work. 29842 new_path="$CYGWIN_ROOT_PATH$input_path" 29843 fi 29844 fi 29845 29846 # remove trailing .exe if any 29847 new_path="${new_path/%.exe/}" 29848 29849 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29850 29851 # First separate the path from the arguments. This will split at the first 29852 # space. 29853 complete="$CXXCPP" 29854 path="${complete%% *}" 29855 tmp="$complete EOL" 29856 arguments="${tmp#* }" 29857 29858 # Input might be given as Windows format, start by converting to 29859 # unix format. 29860 new_path="$path" 29861 29862 windows_path="$new_path" 29863 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29864 unix_path=`$CYGPATH -u "$windows_path"` 29865 new_path="$unix_path" 29866 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29867 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29868 new_path="$unix_path" 29869 fi 29870 29871 29872 # Now try to locate executable using which 29873 new_path=`$WHICH "$new_path" 2> /dev/null` 29874 29875 if test "x$new_path" = x; then 29876 # Oops. Which didn't find the executable. 29877 # The splitting of arguments from the executable at a space might have been incorrect, 29878 # since paths with space are more likely in Windows. Give it another try with the whole 29879 # argument. 29880 path="$complete" 29881 arguments="EOL" 29882 new_path="$path" 29883 29884 windows_path="$new_path" 29885 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29886 unix_path=`$CYGPATH -u "$windows_path"` 29887 new_path="$unix_path" 29888 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29889 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29890 new_path="$unix_path" 29891 fi 29892 29893 29894 new_path=`$WHICH "$new_path" 2> /dev/null` 29895 29896 if test "x$new_path" = x; then 29897 # It's still not found. Now this is an unrecoverable error. 29898 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 29899 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 29900 has_space=`$ECHO "$complete" | $GREP " "` 29901 if test "x$has_space" != x; then 29902 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 29903 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 29904 fi 29905 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29906 fi 29907 fi 29908 29909 # Now new_path has a complete unix path to the binary 29910 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 29911 # Keep paths in /bin as-is, but remove trailing .exe if any 29912 new_path="${new_path/%.exe/}" 29913 # Do not save /bin paths to all_fixpath_prefixes! 29914 else 29915 # Not in mixed or Windows style, start by that. 29916 new_path=`cmd //c echo $new_path` 29917 29918 input_path="$new_path" 29919 # Check if we need to convert this using DOS-style short mode. If the path 29920 # contains just simple characters, use it. Otherwise (spaces, weird characters), 29921 # take no chances and rewrite it. 29922 # Note: m4 eats our [], so we need to use [ and ] instead. 29923 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 29924 if test "x$has_forbidden_chars" != x; then 29925 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 29926 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 29927 fi 29928 29929 # Output is in $new_path 29930 29931 windows_path="$new_path" 29932 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 29933 unix_path=`$CYGPATH -u "$windows_path"` 29934 new_path="$unix_path" 29935 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 29936 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 29937 new_path="$unix_path" 29938 fi 29939 29940 # remove trailing .exe if any 29941 new_path="${new_path/%.exe/}" 29942 29943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 29944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 29945 fi 29946 29947 else 29948 # We're on a posix platform. Hooray! :) 29949 # First separate the path from the arguments. This will split at the first 29950 # space. 29951 complete="$CXXCPP" 29952 path="${complete%% *}" 29953 tmp="$complete EOL" 29954 arguments="${tmp#* }" 29955 29956 # Cannot rely on the command "which" here since it doesn't always work. 29957 is_absolute_path=`$ECHO "$path" | $GREP ^/` 29958 if test -z "$is_absolute_path"; then 29959 # Path to executable is not absolute. Find it. 29960 IFS_save="$IFS" 29961 IFS=: 29962 for p in $PATH; do 29963 if test -f "$p/$path" && test -x "$p/$path"; then 29964 new_path="$p/$path" 29965 break 29966 fi 29967 done 29968 IFS="$IFS_save" 29969 else 29970 # This is an absolute path, we can use it without further modifications. 29971 new_path="$path" 29972 fi 29973 29974 if test "x$new_path" = x; then 29975 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of CXXCPP, which resolves as \"$complete\", is not found." >&5 29976 $as_echo "$as_me: The path of CXXCPP, which resolves as \"$complete\", is not found." >&6;} 29977 has_space=`$ECHO "$complete" | $GREP " "` 29978 if test "x$has_space" != x; then 29979 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 29980 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 29981 fi 29982 as_fn_error $? "Cannot locate the the path of CXXCPP" "$LINENO" 5 29983 fi 29984 fi 29985 29986 # Now join together the path and the arguments once again 29987 if test "x$arguments" != xEOL; then 29988 new_complete="$new_path ${arguments% *}" 29989 else 29990 new_complete="$new_path" 29991 fi 29992 29993 if test "x$complete" != "x$new_complete"; then 29994 CXXCPP="$new_complete" 29995 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting CXXCPP to \"$new_complete\"" >&5 29996 $as_echo "$as_me: Rewriting CXXCPP to \"$new_complete\"" >&6;} 29997 fi 29998 29999 30000 # 30001 # Setup the linker (LD) 30002 # 30003 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30004 # In the Microsoft toolchain we have a separate LD command "link". 30005 # Make sure we reject /usr/bin/link (as determined in CYGWIN_LINK), which is 30006 # a cygwin program for something completely different. 30007 # Extract the first word of "link", so it can be a program name with args. 30008 set dummy link; ac_word=$2 30009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30010 $as_echo_n "checking for $ac_word... " >&6; } 30011 if ${ac_cv_prog_LD+:} false; then : 30012 $as_echo_n "(cached) " >&6 30013 else 30014 if test -n "$LD"; then 30015 ac_cv_prog_LD="$LD" # Let the user override the test. 30016 else 30017 ac_prog_rejected=no 30018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30019 for as_dir in $PATH 30020 do 30021 IFS=$as_save_IFS 30022 test -z "$as_dir" && as_dir=. 30023 for ac_exec_ext in '' $ac_executable_extensions; do 30024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30025 if test "$as_dir/$ac_word$ac_exec_ext" = "$CYGWIN_LINK"; then 30026 ac_prog_rejected=yes 30027 continue 30028 fi 30029 ac_cv_prog_LD="link" 30030 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30031 break 2 30032 fi 30033 done 30034 done 30035 IFS=$as_save_IFS 30036 30037 if test $ac_prog_rejected = yes; then 30038 # We found a bogon in the path, so make sure we never use it. 30039 set dummy $ac_cv_prog_LD 30040 shift 30041 if test $# != 0; then 30042 # We chose a different compiler from the bogus one. 30043 # However, it has the same basename, so the bogon will be chosen 30044 # first if we set LD to just the basename; use the full file name. 30045 shift 30046 ac_cv_prog_LD="$as_dir/$ac_word${1+' '}$@" 30047 fi 30048 fi 30049 fi 30050 fi 30051 LD=$ac_cv_prog_LD 30052 if test -n "$LD"; then 30053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 30054 $as_echo "$LD" >&6; } 30055 else 30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30057 $as_echo "no" >&6; } 30058 fi 30059 30060 30061 30062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30063 30064 # First separate the path from the arguments. This will split at the first 30065 # space. 30066 complete="$LD" 30067 path="${complete%% *}" 30068 tmp="$complete EOL" 30069 arguments="${tmp#* }" 30070 30071 # Input might be given as Windows format, start by converting to 30072 # unix format. 30073 new_path=`$CYGPATH -u "$path"` 30074 30075 # Now try to locate executable using which 30076 new_path=`$WHICH "$new_path" 2> /dev/null` 30077 # bat and cmd files are not always considered executable in cygwin causing which 30078 # to not find them 30079 if test "x$new_path" = x \ 30080 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30081 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30082 new_path=`$CYGPATH -u "$path"` 30083 fi 30084 if test "x$new_path" = x; then 30085 # Oops. Which didn't find the executable. 30086 # The splitting of arguments from the executable at a space might have been incorrect, 30087 # since paths with space are more likely in Windows. Give it another try with the whole 30088 # argument. 30089 path="$complete" 30090 arguments="EOL" 30091 new_path=`$CYGPATH -u "$path"` 30092 new_path=`$WHICH "$new_path" 2> /dev/null` 30093 # bat and cmd files are not always considered executable in cygwin causing which 30094 # to not find them 30095 if test "x$new_path" = x \ 30096 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30097 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30098 new_path=`$CYGPATH -u "$path"` 30099 fi 30100 if test "x$new_path" = x; then 30101 # It's still not found. Now this is an unrecoverable error. 30102 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30103 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30104 has_space=`$ECHO "$complete" | $GREP " "` 30105 if test "x$has_space" != x; then 30106 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30107 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30108 fi 30109 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30110 fi 30111 fi 30112 30113 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30114 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30115 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30116 # "foo.exe" is OK but "foo" is an error. 30117 # 30118 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30119 # It is also a way to make sure we got the proper file name for the real test later on. 30120 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30121 if test "x$test_shortpath" = x; then 30122 # Short path failed, file does not exist as specified. 30123 # Try adding .exe or .cmd 30124 if test -f "${new_path}.exe"; then 30125 input_to_shortpath="${new_path}.exe" 30126 elif test -f "${new_path}.cmd"; then 30127 input_to_shortpath="${new_path}.cmd" 30128 else 30129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$new_path\", is invalid." >&5 30130 $as_echo "$as_me: The path of LD, which resolves as \"$new_path\", is invalid." >&6;} 30131 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30132 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30133 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30134 fi 30135 else 30136 input_to_shortpath="$new_path" 30137 fi 30138 30139 # Call helper function which possibly converts this using DOS-style short mode. 30140 # If so, the updated path is stored in $new_path. 30141 new_path="$input_to_shortpath" 30142 30143 input_path="$input_to_shortpath" 30144 # Check if we need to convert this using DOS-style short mode. If the path 30145 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30146 # take no chances and rewrite it. 30147 # Note: m4 eats our [], so we need to use [ and ] instead. 30148 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30149 if test "x$has_forbidden_chars" != x; then 30150 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30151 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30152 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30153 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30154 # Going to short mode and back again did indeed matter. Since short mode is 30155 # case insensitive, let's make it lowercase to improve readability. 30156 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30157 # Now convert it back to Unix-stile (cygpath) 30158 input_path=`$CYGPATH -u "$shortmode_path"` 30159 new_path="$input_path" 30160 fi 30161 fi 30162 30163 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30164 if test "x$test_cygdrive_prefix" = x; then 30165 # As a simple fix, exclude /usr/bin since it's not a real path. 30166 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30167 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30168 # a path prefixed by /cygdrive for fixpath to work. 30169 new_path="$CYGWIN_ROOT_PATH$input_path" 30170 fi 30171 fi 30172 30173 # remove trailing .exe if any 30174 new_path="${new_path/%.exe/}" 30175 30176 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30177 30178 # First separate the path from the arguments. This will split at the first 30179 # space. 30180 complete="$LD" 30181 path="${complete%% *}" 30182 tmp="$complete EOL" 30183 arguments="${tmp#* }" 30184 30185 # Input might be given as Windows format, start by converting to 30186 # unix format. 30187 new_path="$path" 30188 30189 windows_path="$new_path" 30190 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30191 unix_path=`$CYGPATH -u "$windows_path"` 30192 new_path="$unix_path" 30193 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30194 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30195 new_path="$unix_path" 30196 fi 30197 30198 30199 # Now try to locate executable using which 30200 new_path=`$WHICH "$new_path" 2> /dev/null` 30201 30202 if test "x$new_path" = x; then 30203 # Oops. Which didn't find the executable. 30204 # The splitting of arguments from the executable at a space might have been incorrect, 30205 # since paths with space are more likely in Windows. Give it another try with the whole 30206 # argument. 30207 path="$complete" 30208 arguments="EOL" 30209 new_path="$path" 30210 30211 windows_path="$new_path" 30212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30213 unix_path=`$CYGPATH -u "$windows_path"` 30214 new_path="$unix_path" 30215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30217 new_path="$unix_path" 30218 fi 30219 30220 30221 new_path=`$WHICH "$new_path" 2> /dev/null` 30222 30223 if test "x$new_path" = x; then 30224 # It's still not found. Now this is an unrecoverable error. 30225 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30226 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30227 has_space=`$ECHO "$complete" | $GREP " "` 30228 if test "x$has_space" != x; then 30229 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30230 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30231 fi 30232 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30233 fi 30234 fi 30235 30236 # Now new_path has a complete unix path to the binary 30237 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30238 # Keep paths in /bin as-is, but remove trailing .exe if any 30239 new_path="${new_path/%.exe/}" 30240 # Do not save /bin paths to all_fixpath_prefixes! 30241 else 30242 # Not in mixed or Windows style, start by that. 30243 new_path=`cmd //c echo $new_path` 30244 30245 input_path="$new_path" 30246 # Check if we need to convert this using DOS-style short mode. If the path 30247 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30248 # take no chances and rewrite it. 30249 # Note: m4 eats our [], so we need to use [ and ] instead. 30250 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30251 if test "x$has_forbidden_chars" != x; then 30252 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30253 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30254 fi 30255 30256 # Output is in $new_path 30257 30258 windows_path="$new_path" 30259 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30260 unix_path=`$CYGPATH -u "$windows_path"` 30261 new_path="$unix_path" 30262 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30263 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30264 new_path="$unix_path" 30265 fi 30266 30267 # remove trailing .exe if any 30268 new_path="${new_path/%.exe/}" 30269 30270 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30271 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30272 fi 30273 30274 else 30275 # We're on a posix platform. Hooray! :) 30276 # First separate the path from the arguments. This will split at the first 30277 # space. 30278 complete="$LD" 30279 path="${complete%% *}" 30280 tmp="$complete EOL" 30281 arguments="${tmp#* }" 30282 30283 # Cannot rely on the command "which" here since it doesn't always work. 30284 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30285 if test -z "$is_absolute_path"; then 30286 # Path to executable is not absolute. Find it. 30287 IFS_save="$IFS" 30288 IFS=: 30289 for p in $PATH; do 30290 if test -f "$p/$path" && test -x "$p/$path"; then 30291 new_path="$p/$path" 30292 break 30293 fi 30294 done 30295 IFS="$IFS_save" 30296 else 30297 # This is an absolute path, we can use it without further modifications. 30298 new_path="$path" 30299 fi 30300 30301 if test "x$new_path" = x; then 30302 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LD, which resolves as \"$complete\", is not found." >&5 30303 $as_echo "$as_me: The path of LD, which resolves as \"$complete\", is not found." >&6;} 30304 has_space=`$ECHO "$complete" | $GREP " "` 30305 if test "x$has_space" != x; then 30306 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30307 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30308 fi 30309 as_fn_error $? "Cannot locate the the path of LD" "$LINENO" 5 30310 fi 30311 fi 30312 30313 # Now join together the path and the arguments once again 30314 if test "x$arguments" != xEOL; then 30315 new_complete="$new_path ${arguments% *}" 30316 else 30317 new_complete="$new_path" 30318 fi 30319 30320 if test "x$complete" != "x$new_complete"; then 30321 LD="$new_complete" 30322 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LD to \"$new_complete\"" >&5 30323 $as_echo "$as_me: Rewriting LD to \"$new_complete\"" >&6;} 30324 fi 30325 30326 # Verify that we indeed succeeded with this trick. 30327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the found link.exe is actually the Visual Studio linker" >&5 30328 $as_echo_n "checking if the found link.exe is actually the Visual Studio linker... " >&6; } 30329 "$LD" --version > /dev/null 30330 if test $? -eq 0 ; then 30331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30332 $as_echo "no" >&6; } 30333 as_fn_error $? "This is the Cygwin link tool. Please check your PATH and rerun configure." "$LINENO" 5 30334 else 30335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 30336 $as_echo "yes" >&6; } 30337 fi 30338 LDCXX="$LD" 30339 else 30340 # All other toolchains use the compiler to link. 30341 LD="$CC" 30342 LDCXX="$CXX" 30343 fi 30344 30345 # FIXME: it should be CXXLD, according to standard (cf CXXCPP) 30346 30347 30348 # 30349 # Setup the assembler (AS) 30350 # 30351 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 30352 # FIXME: should this really be solaris, or solstudio? 30353 30354 30355 # Publish this variable in the help. 30356 30357 30358 if test "x$AS" = x; then 30359 # The variable is not set by user, try to locate tool using the code snippet 30360 for ac_prog in as 30361 do 30362 # Extract the first word of "$ac_prog", so it can be a program name with args. 30363 set dummy $ac_prog; ac_word=$2 30364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30365 $as_echo_n "checking for $ac_word... " >&6; } 30366 if ${ac_cv_path_AS+:} false; then : 30367 $as_echo_n "(cached) " >&6 30368 else 30369 case $AS in 30370 [\\/]* | ?:[\\/]*) 30371 ac_cv_path_AS="$AS" # Let the user override the test with a path. 30372 ;; 30373 *) 30374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30375 for as_dir in $PATH 30376 do 30377 IFS=$as_save_IFS 30378 test -z "$as_dir" && as_dir=. 30379 for ac_exec_ext in '' $ac_executable_extensions; do 30380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30381 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 30382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30383 break 2 30384 fi 30385 done 30386 done 30387 IFS=$as_save_IFS 30388 30389 ;; 30390 esac 30391 fi 30392 AS=$ac_cv_path_AS 30393 if test -n "$AS"; then 30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 30395 $as_echo "$AS" >&6; } 30396 else 30397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30398 $as_echo "no" >&6; } 30399 fi 30400 30401 30402 test -n "$AS" && break 30403 done 30404 30405 else 30406 # The variable is set, but is it from the command line or the environment? 30407 30408 # Try to remove the string !AS! from our list. 30409 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AS!/} 30410 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30411 # If it failed, the variable was not from the command line. Ignore it, 30412 # but warn the user (except for BASH, which is always set by the calling BASH). 30413 if test "xAS" != xBASH; then 30414 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&5 30415 $as_echo "$as_me: WARNING: Ignoring value of AS from the environment. Use command line variables instead." >&2;} 30416 fi 30417 # Try to locate tool using the code snippet 30418 for ac_prog in as 30419 do 30420 # Extract the first word of "$ac_prog", so it can be a program name with args. 30421 set dummy $ac_prog; ac_word=$2 30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30423 $as_echo_n "checking for $ac_word... " >&6; } 30424 if ${ac_cv_path_AS+:} false; then : 30425 $as_echo_n "(cached) " >&6 30426 else 30427 case $AS in 30428 [\\/]* | ?:[\\/]*) 30429 ac_cv_path_AS="$AS" # Let the user override the test with a path. 30430 ;; 30431 *) 30432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30433 for as_dir in $PATH 30434 do 30435 IFS=$as_save_IFS 30436 test -z "$as_dir" && as_dir=. 30437 for ac_exec_ext in '' $ac_executable_extensions; do 30438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30439 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 30440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30441 break 2 30442 fi 30443 done 30444 done 30445 IFS=$as_save_IFS 30446 30447 ;; 30448 esac 30449 fi 30450 AS=$ac_cv_path_AS 30451 if test -n "$AS"; then 30452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 30453 $as_echo "$AS" >&6; } 30454 else 30455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30456 $as_echo "no" >&6; } 30457 fi 30458 30459 30460 test -n "$AS" && break 30461 done 30462 30463 else 30464 # If it succeeded, then it was overridden by the user. We will use it 30465 # for the tool. 30466 30467 # First remove it from the list of overridden variables, so we can test 30468 # for unknown variables in the end. 30469 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 30470 30471 # Check if the provided tool contains a complete path. 30472 tool_specified="$AS" 30473 tool_basename="${tool_specified##*/}" 30474 if test "x$tool_basename" = "x$tool_specified"; then 30475 # A command without a complete path is provided, search $PATH. 30476 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AS=$tool_basename" >&5 30477 $as_echo "$as_me: Will search for user supplied tool AS=$tool_basename" >&6;} 30478 # Extract the first word of "$tool_basename", so it can be a program name with args. 30479 set dummy $tool_basename; ac_word=$2 30480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30481 $as_echo_n "checking for $ac_word... " >&6; } 30482 if ${ac_cv_path_AS+:} false; then : 30483 $as_echo_n "(cached) " >&6 30484 else 30485 case $AS in 30486 [\\/]* | ?:[\\/]*) 30487 ac_cv_path_AS="$AS" # Let the user override the test with a path. 30488 ;; 30489 *) 30490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30491 for as_dir in $PATH 30492 do 30493 IFS=$as_save_IFS 30494 test -z "$as_dir" && as_dir=. 30495 for ac_exec_ext in '' $ac_executable_extensions; do 30496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30497 ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext" 30498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30499 break 2 30500 fi 30501 done 30502 done 30503 IFS=$as_save_IFS 30504 30505 ;; 30506 esac 30507 fi 30508 AS=$ac_cv_path_AS 30509 if test -n "$AS"; then 30510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 30511 $as_echo "$AS" >&6; } 30512 else 30513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30514 $as_echo "no" >&6; } 30515 fi 30516 30517 30518 if test "x$AS" = x; then 30519 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 30520 fi 30521 else 30522 # Otherwise we believe it is a complete path. Use it as it is. 30523 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AS=$tool_specified" >&5 30524 $as_echo "$as_me: Will use user supplied tool AS=$tool_specified" >&6;} 30525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AS" >&5 30526 $as_echo_n "checking for AS... " >&6; } 30527 if test ! -x "$tool_specified"; then 30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 30529 $as_echo "not found" >&6; } 30530 as_fn_error $? "User supplied tool AS=$tool_specified does not exist or is not executable" "$LINENO" 5 30531 fi 30532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 30533 $as_echo "$tool_specified" >&6; } 30534 fi 30535 fi 30536 fi 30537 30538 30539 30540 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30541 30542 # First separate the path from the arguments. This will split at the first 30543 # space. 30544 complete="$AS" 30545 path="${complete%% *}" 30546 tmp="$complete EOL" 30547 arguments="${tmp#* }" 30548 30549 # Input might be given as Windows format, start by converting to 30550 # unix format. 30551 new_path=`$CYGPATH -u "$path"` 30552 30553 # Now try to locate executable using which 30554 new_path=`$WHICH "$new_path" 2> /dev/null` 30555 # bat and cmd files are not always considered executable in cygwin causing which 30556 # to not find them 30557 if test "x$new_path" = x \ 30558 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30559 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30560 new_path=`$CYGPATH -u "$path"` 30561 fi 30562 if test "x$new_path" = x; then 30563 # Oops. Which didn't find the executable. 30564 # The splitting of arguments from the executable at a space might have been incorrect, 30565 # since paths with space are more likely in Windows. Give it another try with the whole 30566 # argument. 30567 path="$complete" 30568 arguments="EOL" 30569 new_path=`$CYGPATH -u "$path"` 30570 new_path=`$WHICH "$new_path" 2> /dev/null` 30571 # bat and cmd files are not always considered executable in cygwin causing which 30572 # to not find them 30573 if test "x$new_path" = x \ 30574 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 30575 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 30576 new_path=`$CYGPATH -u "$path"` 30577 fi 30578 if test "x$new_path" = x; then 30579 # It's still not found. Now this is an unrecoverable error. 30580 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 30581 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 30582 has_space=`$ECHO "$complete" | $GREP " "` 30583 if test "x$has_space" != x; then 30584 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30585 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30586 fi 30587 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30588 fi 30589 fi 30590 30591 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 30592 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 30593 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 30594 # "foo.exe" is OK but "foo" is an error. 30595 # 30596 # This test is therefore slightly more accurate than "test -f" to check for file presence. 30597 # It is also a way to make sure we got the proper file name for the real test later on. 30598 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 30599 if test "x$test_shortpath" = x; then 30600 # Short path failed, file does not exist as specified. 30601 # Try adding .exe or .cmd 30602 if test -f "${new_path}.exe"; then 30603 input_to_shortpath="${new_path}.exe" 30604 elif test -f "${new_path}.cmd"; then 30605 input_to_shortpath="${new_path}.cmd" 30606 else 30607 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$new_path\", is invalid." >&5 30608 $as_echo "$as_me: The path of AS, which resolves as \"$new_path\", is invalid." >&6;} 30609 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 30610 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 30611 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30612 fi 30613 else 30614 input_to_shortpath="$new_path" 30615 fi 30616 30617 # Call helper function which possibly converts this using DOS-style short mode. 30618 # If so, the updated path is stored in $new_path. 30619 new_path="$input_to_shortpath" 30620 30621 input_path="$input_to_shortpath" 30622 # Check if we need to convert this using DOS-style short mode. If the path 30623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30624 # take no chances and rewrite it. 30625 # Note: m4 eats our [], so we need to use [ and ] instead. 30626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 30627 if test "x$has_forbidden_chars" != x; then 30628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30629 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 30630 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 30631 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 30632 # Going to short mode and back again did indeed matter. Since short mode is 30633 # case insensitive, let's make it lowercase to improve readability. 30634 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30635 # Now convert it back to Unix-stile (cygpath) 30636 input_path=`$CYGPATH -u "$shortmode_path"` 30637 new_path="$input_path" 30638 fi 30639 fi 30640 30641 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 30642 if test "x$test_cygdrive_prefix" = x; then 30643 # As a simple fix, exclude /usr/bin since it's not a real path. 30644 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 30645 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 30646 # a path prefixed by /cygdrive for fixpath to work. 30647 new_path="$CYGWIN_ROOT_PATH$input_path" 30648 fi 30649 fi 30650 30651 # remove trailing .exe if any 30652 new_path="${new_path/%.exe/}" 30653 30654 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30655 30656 # First separate the path from the arguments. This will split at the first 30657 # space. 30658 complete="$AS" 30659 path="${complete%% *}" 30660 tmp="$complete EOL" 30661 arguments="${tmp#* }" 30662 30663 # Input might be given as Windows format, start by converting to 30664 # unix format. 30665 new_path="$path" 30666 30667 windows_path="$new_path" 30668 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30669 unix_path=`$CYGPATH -u "$windows_path"` 30670 new_path="$unix_path" 30671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30672 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30673 new_path="$unix_path" 30674 fi 30675 30676 30677 # Now try to locate executable using which 30678 new_path=`$WHICH "$new_path" 2> /dev/null` 30679 30680 if test "x$new_path" = x; then 30681 # Oops. Which didn't find the executable. 30682 # The splitting of arguments from the executable at a space might have been incorrect, 30683 # since paths with space are more likely in Windows. Give it another try with the whole 30684 # argument. 30685 path="$complete" 30686 arguments="EOL" 30687 new_path="$path" 30688 30689 windows_path="$new_path" 30690 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30691 unix_path=`$CYGPATH -u "$windows_path"` 30692 new_path="$unix_path" 30693 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30694 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30695 new_path="$unix_path" 30696 fi 30697 30698 30699 new_path=`$WHICH "$new_path" 2> /dev/null` 30700 30701 if test "x$new_path" = x; then 30702 # It's still not found. Now this is an unrecoverable error. 30703 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 30704 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 30705 has_space=`$ECHO "$complete" | $GREP " "` 30706 if test "x$has_space" != x; then 30707 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 30708 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 30709 fi 30710 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30711 fi 30712 fi 30713 30714 # Now new_path has a complete unix path to the binary 30715 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 30716 # Keep paths in /bin as-is, but remove trailing .exe if any 30717 new_path="${new_path/%.exe/}" 30718 # Do not save /bin paths to all_fixpath_prefixes! 30719 else 30720 # Not in mixed or Windows style, start by that. 30721 new_path=`cmd //c echo $new_path` 30722 30723 input_path="$new_path" 30724 # Check if we need to convert this using DOS-style short mode. If the path 30725 # contains just simple characters, use it. Otherwise (spaces, weird characters), 30726 # take no chances and rewrite it. 30727 # Note: m4 eats our [], so we need to use [ and ] instead. 30728 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 30729 if test "x$has_forbidden_chars" != x; then 30730 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 30731 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 30732 fi 30733 30734 # Output is in $new_path 30735 30736 windows_path="$new_path" 30737 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 30738 unix_path=`$CYGPATH -u "$windows_path"` 30739 new_path="$unix_path" 30740 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 30741 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 30742 new_path="$unix_path" 30743 fi 30744 30745 # remove trailing .exe if any 30746 new_path="${new_path/%.exe/}" 30747 30748 # Save the first 10 bytes of this path to the storage, so fixpath can work. 30749 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 30750 fi 30751 30752 else 30753 # We're on a posix platform. Hooray! :) 30754 # First separate the path from the arguments. This will split at the first 30755 # space. 30756 complete="$AS" 30757 path="${complete%% *}" 30758 tmp="$complete EOL" 30759 arguments="${tmp#* }" 30760 30761 # Cannot rely on the command "which" here since it doesn't always work. 30762 is_absolute_path=`$ECHO "$path" | $GREP ^/` 30763 if test -z "$is_absolute_path"; then 30764 # Path to executable is not absolute. Find it. 30765 IFS_save="$IFS" 30766 IFS=: 30767 for p in $PATH; do 30768 if test -f "$p/$path" && test -x "$p/$path"; then 30769 new_path="$p/$path" 30770 break 30771 fi 30772 done 30773 IFS="$IFS_save" 30774 else 30775 # This is an absolute path, we can use it without further modifications. 30776 new_path="$path" 30777 fi 30778 30779 if test "x$new_path" = x; then 30780 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AS, which resolves as \"$complete\", is not found." >&5 30781 $as_echo "$as_me: The path of AS, which resolves as \"$complete\", is not found." >&6;} 30782 has_space=`$ECHO "$complete" | $GREP " "` 30783 if test "x$has_space" != x; then 30784 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 30785 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 30786 fi 30787 as_fn_error $? "Cannot locate the the path of AS" "$LINENO" 5 30788 fi 30789 fi 30790 30791 # Now join together the path and the arguments once again 30792 if test "x$arguments" != xEOL; then 30793 new_complete="$new_path ${arguments% *}" 30794 else 30795 new_complete="$new_path" 30796 fi 30797 30798 if test "x$complete" != "x$new_complete"; then 30799 AS="$new_complete" 30800 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AS to \"$new_complete\"" >&5 30801 $as_echo "$as_me: Rewriting AS to \"$new_complete\"" >&6;} 30802 fi 30803 30804 else 30805 # FIXME: is this correct for microsoft? 30806 AS="$CC -c" 30807 fi 30808 30809 30810 # 30811 # Setup the archiver (AR) 30812 # 30813 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 30814 # The corresponding ar tool is lib.exe (used to create static libraries) 30815 # Extract the first word of "lib", so it can be a program name with args. 30816 set dummy lib; ac_word=$2 30817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30818 $as_echo_n "checking for $ac_word... " >&6; } 30819 if ${ac_cv_prog_AR+:} false; then : 30820 $as_echo_n "(cached) " >&6 30821 else 30822 if test -n "$AR"; then 30823 ac_cv_prog_AR="$AR" # Let the user override the test. 30824 else 30825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30826 for as_dir in $PATH 30827 do 30828 IFS=$as_save_IFS 30829 test -z "$as_dir" && as_dir=. 30830 for ac_exec_ext in '' $ac_executable_extensions; do 30831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30832 ac_cv_prog_AR="lib" 30833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30834 break 2 30835 fi 30836 done 30837 done 30838 IFS=$as_save_IFS 30839 30840 fi 30841 fi 30842 AR=$ac_cv_prog_AR 30843 if test -n "$AR"; then 30844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 30845 $as_echo "$AR" >&6; } 30846 else 30847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30848 $as_echo "no" >&6; } 30849 fi 30850 30851 30852 else 30853 30854 30855 # Publish this variable in the help. 30856 30857 30858 if test "x$AR" = x; then 30859 # The variable is not set by user, try to locate tool using the code snippet 30860 if test -n "$ac_tool_prefix"; then 30861 for ac_prog in ar 30862 do 30863 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30864 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30866 $as_echo_n "checking for $ac_word... " >&6; } 30867 if ${ac_cv_prog_AR+:} false; then : 30868 $as_echo_n "(cached) " >&6 30869 else 30870 if test -n "$AR"; then 30871 ac_cv_prog_AR="$AR" # Let the user override the test. 30872 else 30873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30874 for as_dir in $PATH 30875 do 30876 IFS=$as_save_IFS 30877 test -z "$as_dir" && as_dir=. 30878 for ac_exec_ext in '' $ac_executable_extensions; do 30879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30880 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 30881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30882 break 2 30883 fi 30884 done 30885 done 30886 IFS=$as_save_IFS 30887 30888 fi 30889 fi 30890 AR=$ac_cv_prog_AR 30891 if test -n "$AR"; then 30892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 30893 $as_echo "$AR" >&6; } 30894 else 30895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30896 $as_echo "no" >&6; } 30897 fi 30898 30899 30900 test -n "$AR" && break 30901 done 30902 fi 30903 if test -z "$AR"; then 30904 ac_ct_AR=$AR 30905 for ac_prog in ar 30906 do 30907 # Extract the first word of "$ac_prog", so it can be a program name with args. 30908 set dummy $ac_prog; ac_word=$2 30909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30910 $as_echo_n "checking for $ac_word... " >&6; } 30911 if ${ac_cv_prog_ac_ct_AR+:} false; then : 30912 $as_echo_n "(cached) " >&6 30913 else 30914 if test -n "$ac_ct_AR"; then 30915 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 30916 else 30917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30918 for as_dir in $PATH 30919 do 30920 IFS=$as_save_IFS 30921 test -z "$as_dir" && as_dir=. 30922 for ac_exec_ext in '' $ac_executable_extensions; do 30923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30924 ac_cv_prog_ac_ct_AR="$ac_prog" 30925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30926 break 2 30927 fi 30928 done 30929 done 30930 IFS=$as_save_IFS 30931 30932 fi 30933 fi 30934 ac_ct_AR=$ac_cv_prog_ac_ct_AR 30935 if test -n "$ac_ct_AR"; then 30936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 30937 $as_echo "$ac_ct_AR" >&6; } 30938 else 30939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 30940 $as_echo "no" >&6; } 30941 fi 30942 30943 30944 test -n "$ac_ct_AR" && break 30945 done 30946 30947 if test "x$ac_ct_AR" = x; then 30948 AR="" 30949 else 30950 case $cross_compiling:$ac_tool_warned in 30951 yes:) 30952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 30953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 30954 ac_tool_warned=yes ;; 30955 esac 30956 AR=$ac_ct_AR 30957 fi 30958 fi 30959 30960 else 30961 # The variable is set, but is it from the command line or the environment? 30962 30963 # Try to remove the string !AR! from our list. 30964 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!AR!/} 30965 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 30966 # If it failed, the variable was not from the command line. Ignore it, 30967 # but warn the user (except for BASH, which is always set by the calling BASH). 30968 if test "xAR" != xBASH; then 30969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&5 30970 $as_echo "$as_me: WARNING: Ignoring value of AR from the environment. Use command line variables instead." >&2;} 30971 fi 30972 # Try to locate tool using the code snippet 30973 if test -n "$ac_tool_prefix"; then 30974 for ac_prog in ar 30975 do 30976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 30977 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 30978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 30979 $as_echo_n "checking for $ac_word... " >&6; } 30980 if ${ac_cv_prog_AR+:} false; then : 30981 $as_echo_n "(cached) " >&6 30982 else 30983 if test -n "$AR"; then 30984 ac_cv_prog_AR="$AR" # Let the user override the test. 30985 else 30986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 30987 for as_dir in $PATH 30988 do 30989 IFS=$as_save_IFS 30990 test -z "$as_dir" && as_dir=. 30991 for ac_exec_ext in '' $ac_executable_extensions; do 30992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 30993 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 30994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 30995 break 2 30996 fi 30997 done 30998 done 30999 IFS=$as_save_IFS 31000 31001 fi 31002 fi 31003 AR=$ac_cv_prog_AR 31004 if test -n "$AR"; then 31005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31006 $as_echo "$AR" >&6; } 31007 else 31008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31009 $as_echo "no" >&6; } 31010 fi 31011 31012 31013 test -n "$AR" && break 31014 done 31015 fi 31016 if test -z "$AR"; then 31017 ac_ct_AR=$AR 31018 for ac_prog in ar 31019 do 31020 # Extract the first word of "$ac_prog", so it can be a program name with args. 31021 set dummy $ac_prog; ac_word=$2 31022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31023 $as_echo_n "checking for $ac_word... " >&6; } 31024 if ${ac_cv_prog_ac_ct_AR+:} false; then : 31025 $as_echo_n "(cached) " >&6 31026 else 31027 if test -n "$ac_ct_AR"; then 31028 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 31029 else 31030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31031 for as_dir in $PATH 31032 do 31033 IFS=$as_save_IFS 31034 test -z "$as_dir" && as_dir=. 31035 for ac_exec_ext in '' $ac_executable_extensions; do 31036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31037 ac_cv_prog_ac_ct_AR="$ac_prog" 31038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31039 break 2 31040 fi 31041 done 31042 done 31043 IFS=$as_save_IFS 31044 31045 fi 31046 fi 31047 ac_ct_AR=$ac_cv_prog_ac_ct_AR 31048 if test -n "$ac_ct_AR"; then 31049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 31050 $as_echo "$ac_ct_AR" >&6; } 31051 else 31052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31053 $as_echo "no" >&6; } 31054 fi 31055 31056 31057 test -n "$ac_ct_AR" && break 31058 done 31059 31060 if test "x$ac_ct_AR" = x; then 31061 AR="" 31062 else 31063 case $cross_compiling:$ac_tool_warned in 31064 yes:) 31065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31066 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31067 ac_tool_warned=yes ;; 31068 esac 31069 AR=$ac_ct_AR 31070 fi 31071 fi 31072 31073 else 31074 # If it succeeded, then it was overridden by the user. We will use it 31075 # for the tool. 31076 31077 # First remove it from the list of overridden variables, so we can test 31078 # for unknown variables in the end. 31079 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 31080 31081 # Check if the provided tool contains a complete path. 31082 tool_specified="$AR" 31083 tool_basename="${tool_specified##*/}" 31084 if test "x$tool_basename" = "x$tool_specified"; then 31085 # A command without a complete path is provided, search $PATH. 31086 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool AR=$tool_basename" >&5 31087 $as_echo "$as_me: Will search for user supplied tool AR=$tool_basename" >&6;} 31088 # Extract the first word of "$tool_basename", so it can be a program name with args. 31089 set dummy $tool_basename; ac_word=$2 31090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31091 $as_echo_n "checking for $ac_word... " >&6; } 31092 if ${ac_cv_path_AR+:} false; then : 31093 $as_echo_n "(cached) " >&6 31094 else 31095 case $AR in 31096 [\\/]* | ?:[\\/]*) 31097 ac_cv_path_AR="$AR" # Let the user override the test with a path. 31098 ;; 31099 *) 31100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31101 for as_dir in $PATH 31102 do 31103 IFS=$as_save_IFS 31104 test -z "$as_dir" && as_dir=. 31105 for ac_exec_ext in '' $ac_executable_extensions; do 31106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31107 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext" 31108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31109 break 2 31110 fi 31111 done 31112 done 31113 IFS=$as_save_IFS 31114 31115 ;; 31116 esac 31117 fi 31118 AR=$ac_cv_path_AR 31119 if test -n "$AR"; then 31120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 31121 $as_echo "$AR" >&6; } 31122 else 31123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31124 $as_echo "no" >&6; } 31125 fi 31126 31127 31128 if test "x$AR" = x; then 31129 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 31130 fi 31131 else 31132 # Otherwise we believe it is a complete path. Use it as it is. 31133 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool AR=$tool_specified" >&5 31134 $as_echo "$as_me: Will use user supplied tool AR=$tool_specified" >&6;} 31135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AR" >&5 31136 $as_echo_n "checking for AR... " >&6; } 31137 if test ! -x "$tool_specified"; then 31138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 31139 $as_echo "not found" >&6; } 31140 as_fn_error $? "User supplied tool AR=$tool_specified does not exist or is not executable" "$LINENO" 5 31141 fi 31142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 31143 $as_echo "$tool_specified" >&6; } 31144 fi 31145 fi 31146 fi 31147 31148 31149 fi 31150 31151 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31152 31153 # First separate the path from the arguments. This will split at the first 31154 # space. 31155 complete="$AR" 31156 path="${complete%% *}" 31157 tmp="$complete EOL" 31158 arguments="${tmp#* }" 31159 31160 # Input might be given as Windows format, start by converting to 31161 # unix format. 31162 new_path=`$CYGPATH -u "$path"` 31163 31164 # Now try to locate executable using which 31165 new_path=`$WHICH "$new_path" 2> /dev/null` 31166 # bat and cmd files are not always considered executable in cygwin causing which 31167 # to not find them 31168 if test "x$new_path" = x \ 31169 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31170 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31171 new_path=`$CYGPATH -u "$path"` 31172 fi 31173 if test "x$new_path" = x; then 31174 # Oops. Which didn't find the executable. 31175 # The splitting of arguments from the executable at a space might have been incorrect, 31176 # since paths with space are more likely in Windows. Give it another try with the whole 31177 # argument. 31178 path="$complete" 31179 arguments="EOL" 31180 new_path=`$CYGPATH -u "$path"` 31181 new_path=`$WHICH "$new_path" 2> /dev/null` 31182 # bat and cmd files are not always considered executable in cygwin causing which 31183 # to not find them 31184 if test "x$new_path" = x \ 31185 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31186 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31187 new_path=`$CYGPATH -u "$path"` 31188 fi 31189 if test "x$new_path" = x; then 31190 # It's still not found. Now this is an unrecoverable error. 31191 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 31192 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 31193 has_space=`$ECHO "$complete" | $GREP " "` 31194 if test "x$has_space" != x; then 31195 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31196 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31197 fi 31198 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31199 fi 31200 fi 31201 31202 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31203 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31204 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31205 # "foo.exe" is OK but "foo" is an error. 31206 # 31207 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31208 # It is also a way to make sure we got the proper file name for the real test later on. 31209 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31210 if test "x$test_shortpath" = x; then 31211 # Short path failed, file does not exist as specified. 31212 # Try adding .exe or .cmd 31213 if test -f "${new_path}.exe"; then 31214 input_to_shortpath="${new_path}.exe" 31215 elif test -f "${new_path}.cmd"; then 31216 input_to_shortpath="${new_path}.cmd" 31217 else 31218 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$new_path\", is invalid." >&5 31219 $as_echo "$as_me: The path of AR, which resolves as \"$new_path\", is invalid." >&6;} 31220 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31221 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31222 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31223 fi 31224 else 31225 input_to_shortpath="$new_path" 31226 fi 31227 31228 # Call helper function which possibly converts this using DOS-style short mode. 31229 # If so, the updated path is stored in $new_path. 31230 new_path="$input_to_shortpath" 31231 31232 input_path="$input_to_shortpath" 31233 # Check if we need to convert this using DOS-style short mode. If the path 31234 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31235 # take no chances and rewrite it. 31236 # Note: m4 eats our [], so we need to use [ and ] instead. 31237 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31238 if test "x$has_forbidden_chars" != x; then 31239 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31240 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31241 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31242 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31243 # Going to short mode and back again did indeed matter. Since short mode is 31244 # case insensitive, let's make it lowercase to improve readability. 31245 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31246 # Now convert it back to Unix-stile (cygpath) 31247 input_path=`$CYGPATH -u "$shortmode_path"` 31248 new_path="$input_path" 31249 fi 31250 fi 31251 31252 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31253 if test "x$test_cygdrive_prefix" = x; then 31254 # As a simple fix, exclude /usr/bin since it's not a real path. 31255 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31256 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31257 # a path prefixed by /cygdrive for fixpath to work. 31258 new_path="$CYGWIN_ROOT_PATH$input_path" 31259 fi 31260 fi 31261 31262 # remove trailing .exe if any 31263 new_path="${new_path/%.exe/}" 31264 31265 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31266 31267 # First separate the path from the arguments. This will split at the first 31268 # space. 31269 complete="$AR" 31270 path="${complete%% *}" 31271 tmp="$complete EOL" 31272 arguments="${tmp#* }" 31273 31274 # Input might be given as Windows format, start by converting to 31275 # unix format. 31276 new_path="$path" 31277 31278 windows_path="$new_path" 31279 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31280 unix_path=`$CYGPATH -u "$windows_path"` 31281 new_path="$unix_path" 31282 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31283 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31284 new_path="$unix_path" 31285 fi 31286 31287 31288 # Now try to locate executable using which 31289 new_path=`$WHICH "$new_path" 2> /dev/null` 31290 31291 if test "x$new_path" = x; then 31292 # Oops. Which didn't find the executable. 31293 # The splitting of arguments from the executable at a space might have been incorrect, 31294 # since paths with space are more likely in Windows. Give it another try with the whole 31295 # argument. 31296 path="$complete" 31297 arguments="EOL" 31298 new_path="$path" 31299 31300 windows_path="$new_path" 31301 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31302 unix_path=`$CYGPATH -u "$windows_path"` 31303 new_path="$unix_path" 31304 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31305 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31306 new_path="$unix_path" 31307 fi 31308 31309 31310 new_path=`$WHICH "$new_path" 2> /dev/null` 31311 31312 if test "x$new_path" = x; then 31313 # It's still not found. Now this is an unrecoverable error. 31314 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 31315 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 31316 has_space=`$ECHO "$complete" | $GREP " "` 31317 if test "x$has_space" != x; then 31318 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31319 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31320 fi 31321 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31322 fi 31323 fi 31324 31325 # Now new_path has a complete unix path to the binary 31326 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31327 # Keep paths in /bin as-is, but remove trailing .exe if any 31328 new_path="${new_path/%.exe/}" 31329 # Do not save /bin paths to all_fixpath_prefixes! 31330 else 31331 # Not in mixed or Windows style, start by that. 31332 new_path=`cmd //c echo $new_path` 31333 31334 input_path="$new_path" 31335 # Check if we need to convert this using DOS-style short mode. If the path 31336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31337 # take no chances and rewrite it. 31338 # Note: m4 eats our [], so we need to use [ and ] instead. 31339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31340 if test "x$has_forbidden_chars" != x; then 31341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31342 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31343 fi 31344 31345 # Output is in $new_path 31346 31347 windows_path="$new_path" 31348 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31349 unix_path=`$CYGPATH -u "$windows_path"` 31350 new_path="$unix_path" 31351 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31352 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31353 new_path="$unix_path" 31354 fi 31355 31356 # remove trailing .exe if any 31357 new_path="${new_path/%.exe/}" 31358 31359 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31360 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31361 fi 31362 31363 else 31364 # We're on a posix platform. Hooray! :) 31365 # First separate the path from the arguments. This will split at the first 31366 # space. 31367 complete="$AR" 31368 path="${complete%% *}" 31369 tmp="$complete EOL" 31370 arguments="${tmp#* }" 31371 31372 # Cannot rely on the command "which" here since it doesn't always work. 31373 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31374 if test -z "$is_absolute_path"; then 31375 # Path to executable is not absolute. Find it. 31376 IFS_save="$IFS" 31377 IFS=: 31378 for p in $PATH; do 31379 if test -f "$p/$path" && test -x "$p/$path"; then 31380 new_path="$p/$path" 31381 break 31382 fi 31383 done 31384 IFS="$IFS_save" 31385 else 31386 # This is an absolute path, we can use it without further modifications. 31387 new_path="$path" 31388 fi 31389 31390 if test "x$new_path" = x; then 31391 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of AR, which resolves as \"$complete\", is not found." >&5 31392 $as_echo "$as_me: The path of AR, which resolves as \"$complete\", is not found." >&6;} 31393 has_space=`$ECHO "$complete" | $GREP " "` 31394 if test "x$has_space" != x; then 31395 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31396 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31397 fi 31398 as_fn_error $? "Cannot locate the the path of AR" "$LINENO" 5 31399 fi 31400 fi 31401 31402 # Now join together the path and the arguments once again 31403 if test "x$arguments" != xEOL; then 31404 new_complete="$new_path ${arguments% *}" 31405 else 31406 new_complete="$new_path" 31407 fi 31408 31409 if test "x$complete" != "x$new_complete"; then 31410 AR="$new_complete" 31411 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting AR to \"$new_complete\"" >&5 31412 $as_echo "$as_me: Rewriting AR to \"$new_complete\"" >&6;} 31413 fi 31414 31415 31416 31417 if test "x$OPENJDK_TARGET_OS" = "xmacosx"; then 31418 ac_ext=m 31419 ac_cpp='$OBJCPP $CPPFLAGS' 31420 ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31421 ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31422 ac_compiler_gnu=$ac_cv_objc_compiler_gnu 31423 if test -n "$ac_tool_prefix"; then 31424 for ac_prog in gcc objcc objc cc CC 31425 do 31426 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 31427 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 31428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31429 $as_echo_n "checking for $ac_word... " >&6; } 31430 if ${ac_cv_prog_OBJC+:} false; then : 31431 $as_echo_n "(cached) " >&6 31432 else 31433 if test -n "$OBJC"; then 31434 ac_cv_prog_OBJC="$OBJC" # Let the user override the test. 31435 else 31436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31437 for as_dir in $PATH 31438 do 31439 IFS=$as_save_IFS 31440 test -z "$as_dir" && as_dir=. 31441 for ac_exec_ext in '' $ac_executable_extensions; do 31442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31443 ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog" 31444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31445 break 2 31446 fi 31447 done 31448 done 31449 IFS=$as_save_IFS 31450 31451 fi 31452 fi 31453 OBJC=$ac_cv_prog_OBJC 31454 if test -n "$OBJC"; then 31455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5 31456 $as_echo "$OBJC" >&6; } 31457 else 31458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31459 $as_echo "no" >&6; } 31460 fi 31461 31462 31463 test -n "$OBJC" && break 31464 done 31465 fi 31466 if test -z "$OBJC"; then 31467 ac_ct_OBJC=$OBJC 31468 for ac_prog in gcc objcc objc cc CC 31469 do 31470 # Extract the first word of "$ac_prog", so it can be a program name with args. 31471 set dummy $ac_prog; ac_word=$2 31472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31473 $as_echo_n "checking for $ac_word... " >&6; } 31474 if ${ac_cv_prog_ac_ct_OBJC+:} false; then : 31475 $as_echo_n "(cached) " >&6 31476 else 31477 if test -n "$ac_ct_OBJC"; then 31478 ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test. 31479 else 31480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31481 for as_dir in $PATH 31482 do 31483 IFS=$as_save_IFS 31484 test -z "$as_dir" && as_dir=. 31485 for ac_exec_ext in '' $ac_executable_extensions; do 31486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31487 ac_cv_prog_ac_ct_OBJC="$ac_prog" 31488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31489 break 2 31490 fi 31491 done 31492 done 31493 IFS=$as_save_IFS 31494 31495 fi 31496 fi 31497 ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC 31498 if test -n "$ac_ct_OBJC"; then 31499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5 31500 $as_echo "$ac_ct_OBJC" >&6; } 31501 else 31502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31503 $as_echo "no" >&6; } 31504 fi 31505 31506 31507 test -n "$ac_ct_OBJC" && break 31508 done 31509 31510 if test "x$ac_ct_OBJC" = x; then 31511 OBJC="gcc" 31512 else 31513 case $cross_compiling:$ac_tool_warned in 31514 yes:) 31515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 31516 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 31517 ac_tool_warned=yes ;; 31518 esac 31519 OBJC=$ac_ct_OBJC 31520 fi 31521 fi 31522 31523 # Provide some information about the compiler. 31524 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5 31525 set X $ac_compile 31526 ac_compiler=$2 31527 for ac_option in --version -v -V -qversion; do 31528 { { ac_try="$ac_compiler $ac_option >&5" 31529 case "(($ac_try" in 31530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 31531 *) ac_try_echo=$ac_try;; 31532 esac 31533 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 31534 $as_echo "$ac_try_echo"; } >&5 31535 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 31536 ac_status=$? 31537 if test -s conftest.err; then 31538 sed '10a\ 31539 ... rest of stderr output deleted ... 31540 10q' conftest.err >conftest.er1 31541 cat conftest.er1 >&5 31542 fi 31543 rm -f conftest.er1 conftest.err 31544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 31545 test $ac_status = 0; } 31546 done 31547 31548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5 31549 $as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; } 31550 if ${ac_cv_objc_compiler_gnu+:} false; then : 31551 $as_echo_n "(cached) " >&6 31552 else 31553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31554 /* end confdefs.h. */ 31555 31556 int 31557 main () 31558 { 31559 #ifndef __GNUC__ 31560 choke me 31561 #endif 31562 31563 ; 31564 return 0; 31565 } 31566 _ACEOF 31567 if ac_fn_objc_try_compile "$LINENO"; then : 31568 ac_compiler_gnu=yes 31569 else 31570 ac_compiler_gnu=no 31571 fi 31572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31573 ac_cv_objc_compiler_gnu=$ac_compiler_gnu 31574 31575 fi 31576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5 31577 $as_echo "$ac_cv_objc_compiler_gnu" >&6; } 31578 if test $ac_compiler_gnu = yes; then 31579 GOBJC=yes 31580 else 31581 GOBJC= 31582 fi 31583 ac_test_OBJCFLAGS=${OBJCFLAGS+set} 31584 ac_save_OBJCFLAGS=$OBJCFLAGS 31585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5 31586 $as_echo_n "checking whether $OBJC accepts -g... " >&6; } 31587 if ${ac_cv_prog_objc_g+:} false; then : 31588 $as_echo_n "(cached) " >&6 31589 else 31590 ac_save_objc_werror_flag=$ac_objc_werror_flag 31591 ac_objc_werror_flag=yes 31592 ac_cv_prog_objc_g=no 31593 OBJCFLAGS="-g" 31594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31595 /* end confdefs.h. */ 31596 31597 int 31598 main () 31599 { 31600 31601 ; 31602 return 0; 31603 } 31604 _ACEOF 31605 if ac_fn_objc_try_compile "$LINENO"; then : 31606 ac_cv_prog_objc_g=yes 31607 else 31608 OBJCFLAGS="" 31609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31610 /* end confdefs.h. */ 31611 31612 int 31613 main () 31614 { 31615 31616 ; 31617 return 0; 31618 } 31619 _ACEOF 31620 if ac_fn_objc_try_compile "$LINENO"; then : 31621 31622 else 31623 ac_objc_werror_flag=$ac_save_objc_werror_flag 31624 OBJCFLAGS="-g" 31625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 31626 /* end confdefs.h. */ 31627 31628 int 31629 main () 31630 { 31631 31632 ; 31633 return 0; 31634 } 31635 _ACEOF 31636 if ac_fn_objc_try_compile "$LINENO"; then : 31637 ac_cv_prog_objc_g=yes 31638 fi 31639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31640 fi 31641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31642 fi 31643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 31644 ac_objc_werror_flag=$ac_save_objc_werror_flag 31645 fi 31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5 31647 $as_echo "$ac_cv_prog_objc_g" >&6; } 31648 if test "$ac_test_OBJCFLAGS" = set; then 31649 OBJCFLAGS=$ac_save_OBJCFLAGS 31650 elif test $ac_cv_prog_objc_g = yes; then 31651 if test "$GOBJC" = yes; then 31652 OBJCFLAGS="-g -O2" 31653 else 31654 OBJCFLAGS="-g" 31655 fi 31656 else 31657 if test "$GOBJC" = yes; then 31658 OBJCFLAGS="-O2" 31659 else 31660 OBJCFLAGS= 31661 fi 31662 fi 31663 ac_ext=cpp 31664 ac_cpp='$CXXCPP $CPPFLAGS' 31665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 31666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 31667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 31668 31669 31670 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31671 31672 # First separate the path from the arguments. This will split at the first 31673 # space. 31674 complete="$OBJC" 31675 path="${complete%% *}" 31676 tmp="$complete EOL" 31677 arguments="${tmp#* }" 31678 31679 # Input might be given as Windows format, start by converting to 31680 # unix format. 31681 new_path=`$CYGPATH -u "$path"` 31682 31683 # Now try to locate executable using which 31684 new_path=`$WHICH "$new_path" 2> /dev/null` 31685 # bat and cmd files are not always considered executable in cygwin causing which 31686 # to not find them 31687 if test "x$new_path" = x \ 31688 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31689 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31690 new_path=`$CYGPATH -u "$path"` 31691 fi 31692 if test "x$new_path" = x; then 31693 # Oops. Which didn't find the executable. 31694 # The splitting of arguments from the executable at a space might have been incorrect, 31695 # since paths with space are more likely in Windows. Give it another try with the whole 31696 # argument. 31697 path="$complete" 31698 arguments="EOL" 31699 new_path=`$CYGPATH -u "$path"` 31700 new_path=`$WHICH "$new_path" 2> /dev/null` 31701 # bat and cmd files are not always considered executable in cygwin causing which 31702 # to not find them 31703 if test "x$new_path" = x \ 31704 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 31705 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 31706 new_path=`$CYGPATH -u "$path"` 31707 fi 31708 if test "x$new_path" = x; then 31709 # It's still not found. Now this is an unrecoverable error. 31710 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 31711 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 31712 has_space=`$ECHO "$complete" | $GREP " "` 31713 if test "x$has_space" != x; then 31714 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31715 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31716 fi 31717 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31718 fi 31719 fi 31720 31721 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 31722 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 31723 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 31724 # "foo.exe" is OK but "foo" is an error. 31725 # 31726 # This test is therefore slightly more accurate than "test -f" to check for file presence. 31727 # It is also a way to make sure we got the proper file name for the real test later on. 31728 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 31729 if test "x$test_shortpath" = x; then 31730 # Short path failed, file does not exist as specified. 31731 # Try adding .exe or .cmd 31732 if test -f "${new_path}.exe"; then 31733 input_to_shortpath="${new_path}.exe" 31734 elif test -f "${new_path}.cmd"; then 31735 input_to_shortpath="${new_path}.cmd" 31736 else 31737 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$new_path\", is invalid." >&5 31738 $as_echo "$as_me: The path of OBJC, which resolves as \"$new_path\", is invalid." >&6;} 31739 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 31740 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 31741 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31742 fi 31743 else 31744 input_to_shortpath="$new_path" 31745 fi 31746 31747 # Call helper function which possibly converts this using DOS-style short mode. 31748 # If so, the updated path is stored in $new_path. 31749 new_path="$input_to_shortpath" 31750 31751 input_path="$input_to_shortpath" 31752 # Check if we need to convert this using DOS-style short mode. If the path 31753 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31754 # take no chances and rewrite it. 31755 # Note: m4 eats our [], so we need to use [ and ] instead. 31756 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 31757 if test "x$has_forbidden_chars" != x; then 31758 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31759 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 31760 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 31761 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 31762 # Going to short mode and back again did indeed matter. Since short mode is 31763 # case insensitive, let's make it lowercase to improve readability. 31764 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31765 # Now convert it back to Unix-stile (cygpath) 31766 input_path=`$CYGPATH -u "$shortmode_path"` 31767 new_path="$input_path" 31768 fi 31769 fi 31770 31771 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 31772 if test "x$test_cygdrive_prefix" = x; then 31773 # As a simple fix, exclude /usr/bin since it's not a real path. 31774 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 31775 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 31776 # a path prefixed by /cygdrive for fixpath to work. 31777 new_path="$CYGWIN_ROOT_PATH$input_path" 31778 fi 31779 fi 31780 31781 # remove trailing .exe if any 31782 new_path="${new_path/%.exe/}" 31783 31784 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31785 31786 # First separate the path from the arguments. This will split at the first 31787 # space. 31788 complete="$OBJC" 31789 path="${complete%% *}" 31790 tmp="$complete EOL" 31791 arguments="${tmp#* }" 31792 31793 # Input might be given as Windows format, start by converting to 31794 # unix format. 31795 new_path="$path" 31796 31797 windows_path="$new_path" 31798 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31799 unix_path=`$CYGPATH -u "$windows_path"` 31800 new_path="$unix_path" 31801 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31802 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31803 new_path="$unix_path" 31804 fi 31805 31806 31807 # Now try to locate executable using which 31808 new_path=`$WHICH "$new_path" 2> /dev/null` 31809 31810 if test "x$new_path" = x; then 31811 # Oops. Which didn't find the executable. 31812 # The splitting of arguments from the executable at a space might have been incorrect, 31813 # since paths with space are more likely in Windows. Give it another try with the whole 31814 # argument. 31815 path="$complete" 31816 arguments="EOL" 31817 new_path="$path" 31818 31819 windows_path="$new_path" 31820 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31821 unix_path=`$CYGPATH -u "$windows_path"` 31822 new_path="$unix_path" 31823 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31824 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31825 new_path="$unix_path" 31826 fi 31827 31828 31829 new_path=`$WHICH "$new_path" 2> /dev/null` 31830 31831 if test "x$new_path" = x; then 31832 # It's still not found. Now this is an unrecoverable error. 31833 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 31834 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 31835 has_space=`$ECHO "$complete" | $GREP " "` 31836 if test "x$has_space" != x; then 31837 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 31838 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 31839 fi 31840 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31841 fi 31842 fi 31843 31844 # Now new_path has a complete unix path to the binary 31845 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 31846 # Keep paths in /bin as-is, but remove trailing .exe if any 31847 new_path="${new_path/%.exe/}" 31848 # Do not save /bin paths to all_fixpath_prefixes! 31849 else 31850 # Not in mixed or Windows style, start by that. 31851 new_path=`cmd //c echo $new_path` 31852 31853 input_path="$new_path" 31854 # Check if we need to convert this using DOS-style short mode. If the path 31855 # contains just simple characters, use it. Otherwise (spaces, weird characters), 31856 # take no chances and rewrite it. 31857 # Note: m4 eats our [], so we need to use [ and ] instead. 31858 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 31859 if test "x$has_forbidden_chars" != x; then 31860 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 31861 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 31862 fi 31863 31864 # Output is in $new_path 31865 31866 windows_path="$new_path" 31867 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 31868 unix_path=`$CYGPATH -u "$windows_path"` 31869 new_path="$unix_path" 31870 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 31871 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 31872 new_path="$unix_path" 31873 fi 31874 31875 # remove trailing .exe if any 31876 new_path="${new_path/%.exe/}" 31877 31878 # Save the first 10 bytes of this path to the storage, so fixpath can work. 31879 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 31880 fi 31881 31882 else 31883 # We're on a posix platform. Hooray! :) 31884 # First separate the path from the arguments. This will split at the first 31885 # space. 31886 complete="$OBJC" 31887 path="${complete%% *}" 31888 tmp="$complete EOL" 31889 arguments="${tmp#* }" 31890 31891 # Cannot rely on the command "which" here since it doesn't always work. 31892 is_absolute_path=`$ECHO "$path" | $GREP ^/` 31893 if test -z "$is_absolute_path"; then 31894 # Path to executable is not absolute. Find it. 31895 IFS_save="$IFS" 31896 IFS=: 31897 for p in $PATH; do 31898 if test -f "$p/$path" && test -x "$p/$path"; then 31899 new_path="$p/$path" 31900 break 31901 fi 31902 done 31903 IFS="$IFS_save" 31904 else 31905 # This is an absolute path, we can use it without further modifications. 31906 new_path="$path" 31907 fi 31908 31909 if test "x$new_path" = x; then 31910 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJC, which resolves as \"$complete\", is not found." >&5 31911 $as_echo "$as_me: The path of OBJC, which resolves as \"$complete\", is not found." >&6;} 31912 has_space=`$ECHO "$complete" | $GREP " "` 31913 if test "x$has_space" != x; then 31914 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 31915 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 31916 fi 31917 as_fn_error $? "Cannot locate the the path of OBJC" "$LINENO" 5 31918 fi 31919 fi 31920 31921 # Now join together the path and the arguments once again 31922 if test "x$arguments" != xEOL; then 31923 new_complete="$new_path ${arguments% *}" 31924 else 31925 new_complete="$new_path" 31926 fi 31927 31928 if test "x$complete" != "x$new_complete"; then 31929 OBJC="$new_complete" 31930 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJC to \"$new_complete\"" >&5 31931 $as_echo "$as_me: Rewriting OBJC to \"$new_complete\"" >&6;} 31932 fi 31933 31934 31935 31936 # Publish this variable in the help. 31937 31938 31939 if test "x$LIPO" = x; then 31940 # The variable is not set by user, try to locate tool using the code snippet 31941 for ac_prog in lipo 31942 do 31943 # Extract the first word of "$ac_prog", so it can be a program name with args. 31944 set dummy $ac_prog; ac_word=$2 31945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 31946 $as_echo_n "checking for $ac_word... " >&6; } 31947 if ${ac_cv_path_LIPO+:} false; then : 31948 $as_echo_n "(cached) " >&6 31949 else 31950 case $LIPO in 31951 [\\/]* | ?:[\\/]*) 31952 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 31953 ;; 31954 *) 31955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 31956 for as_dir in $PATH 31957 do 31958 IFS=$as_save_IFS 31959 test -z "$as_dir" && as_dir=. 31960 for ac_exec_ext in '' $ac_executable_extensions; do 31961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 31962 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 31963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 31964 break 2 31965 fi 31966 done 31967 done 31968 IFS=$as_save_IFS 31969 31970 ;; 31971 esac 31972 fi 31973 LIPO=$ac_cv_path_LIPO 31974 if test -n "$LIPO"; then 31975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 31976 $as_echo "$LIPO" >&6; } 31977 else 31978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 31979 $as_echo "no" >&6; } 31980 fi 31981 31982 31983 test -n "$LIPO" && break 31984 done 31985 31986 else 31987 # The variable is set, but is it from the command line or the environment? 31988 31989 # Try to remove the string !LIPO! from our list. 31990 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!LIPO!/} 31991 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 31992 # If it failed, the variable was not from the command line. Ignore it, 31993 # but warn the user (except for BASH, which is always set by the calling BASH). 31994 if test "xLIPO" != xBASH; then 31995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&5 31996 $as_echo "$as_me: WARNING: Ignoring value of LIPO from the environment. Use command line variables instead." >&2;} 31997 fi 31998 # Try to locate tool using the code snippet 31999 for ac_prog in lipo 32000 do 32001 # Extract the first word of "$ac_prog", so it can be a program name with args. 32002 set dummy $ac_prog; ac_word=$2 32003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32004 $as_echo_n "checking for $ac_word... " >&6; } 32005 if ${ac_cv_path_LIPO+:} false; then : 32006 $as_echo_n "(cached) " >&6 32007 else 32008 case $LIPO in 32009 [\\/]* | ?:[\\/]*) 32010 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32011 ;; 32012 *) 32013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32014 for as_dir in $PATH 32015 do 32016 IFS=$as_save_IFS 32017 test -z "$as_dir" && as_dir=. 32018 for ac_exec_ext in '' $ac_executable_extensions; do 32019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32020 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32022 break 2 32023 fi 32024 done 32025 done 32026 IFS=$as_save_IFS 32027 32028 ;; 32029 esac 32030 fi 32031 LIPO=$ac_cv_path_LIPO 32032 if test -n "$LIPO"; then 32033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32034 $as_echo "$LIPO" >&6; } 32035 else 32036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32037 $as_echo "no" >&6; } 32038 fi 32039 32040 32041 test -n "$LIPO" && break 32042 done 32043 32044 else 32045 # If it succeeded, then it was overridden by the user. We will use it 32046 # for the tool. 32047 32048 # First remove it from the list of overridden variables, so we can test 32049 # for unknown variables in the end. 32050 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 32051 32052 # Check if the provided tool contains a complete path. 32053 tool_specified="$LIPO" 32054 tool_basename="${tool_specified##*/}" 32055 if test "x$tool_basename" = "x$tool_specified"; then 32056 # A command without a complete path is provided, search $PATH. 32057 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool LIPO=$tool_basename" >&5 32058 $as_echo "$as_me: Will search for user supplied tool LIPO=$tool_basename" >&6;} 32059 # Extract the first word of "$tool_basename", so it can be a program name with args. 32060 set dummy $tool_basename; ac_word=$2 32061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32062 $as_echo_n "checking for $ac_word... " >&6; } 32063 if ${ac_cv_path_LIPO+:} false; then : 32064 $as_echo_n "(cached) " >&6 32065 else 32066 case $LIPO in 32067 [\\/]* | ?:[\\/]*) 32068 ac_cv_path_LIPO="$LIPO" # Let the user override the test with a path. 32069 ;; 32070 *) 32071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32072 for as_dir in $PATH 32073 do 32074 IFS=$as_save_IFS 32075 test -z "$as_dir" && as_dir=. 32076 for ac_exec_ext in '' $ac_executable_extensions; do 32077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32078 ac_cv_path_LIPO="$as_dir/$ac_word$ac_exec_ext" 32079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32080 break 2 32081 fi 32082 done 32083 done 32084 IFS=$as_save_IFS 32085 32086 ;; 32087 esac 32088 fi 32089 LIPO=$ac_cv_path_LIPO 32090 if test -n "$LIPO"; then 32091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 32092 $as_echo "$LIPO" >&6; } 32093 else 32094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32095 $as_echo "no" >&6; } 32096 fi 32097 32098 32099 if test "x$LIPO" = x; then 32100 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 32101 fi 32102 else 32103 # Otherwise we believe it is a complete path. Use it as it is. 32104 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool LIPO=$tool_specified" >&5 32105 $as_echo "$as_me: Will use user supplied tool LIPO=$tool_specified" >&6;} 32106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIPO" >&5 32107 $as_echo_n "checking for LIPO... " >&6; } 32108 if test ! -x "$tool_specified"; then 32109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 32110 $as_echo "not found" >&6; } 32111 as_fn_error $? "User supplied tool LIPO=$tool_specified does not exist or is not executable" "$LINENO" 5 32112 fi 32113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 32114 $as_echo "$tool_specified" >&6; } 32115 fi 32116 fi 32117 fi 32118 32119 32120 32121 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32122 32123 # First separate the path from the arguments. This will split at the first 32124 # space. 32125 complete="$LIPO" 32126 path="${complete%% *}" 32127 tmp="$complete EOL" 32128 arguments="${tmp#* }" 32129 32130 # Input might be given as Windows format, start by converting to 32131 # unix format. 32132 new_path=`$CYGPATH -u "$path"` 32133 32134 # Now try to locate executable using which 32135 new_path=`$WHICH "$new_path" 2> /dev/null` 32136 # bat and cmd files are not always considered executable in cygwin causing which 32137 # to not find them 32138 if test "x$new_path" = x \ 32139 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32140 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32141 new_path=`$CYGPATH -u "$path"` 32142 fi 32143 if test "x$new_path" = x; then 32144 # Oops. Which didn't find the executable. 32145 # The splitting of arguments from the executable at a space might have been incorrect, 32146 # since paths with space are more likely in Windows. Give it another try with the whole 32147 # argument. 32148 path="$complete" 32149 arguments="EOL" 32150 new_path=`$CYGPATH -u "$path"` 32151 new_path=`$WHICH "$new_path" 2> /dev/null` 32152 # bat and cmd files are not always considered executable in cygwin causing which 32153 # to not find them 32154 if test "x$new_path" = x \ 32155 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32156 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32157 new_path=`$CYGPATH -u "$path"` 32158 fi 32159 if test "x$new_path" = x; then 32160 # It's still not found. Now this is an unrecoverable error. 32161 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 32162 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 32163 has_space=`$ECHO "$complete" | $GREP " "` 32164 if test "x$has_space" != x; then 32165 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32166 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32167 fi 32168 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32169 fi 32170 fi 32171 32172 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32173 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32174 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32175 # "foo.exe" is OK but "foo" is an error. 32176 # 32177 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32178 # It is also a way to make sure we got the proper file name for the real test later on. 32179 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32180 if test "x$test_shortpath" = x; then 32181 # Short path failed, file does not exist as specified. 32182 # Try adding .exe or .cmd 32183 if test -f "${new_path}.exe"; then 32184 input_to_shortpath="${new_path}.exe" 32185 elif test -f "${new_path}.cmd"; then 32186 input_to_shortpath="${new_path}.cmd" 32187 else 32188 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$new_path\", is invalid." >&5 32189 $as_echo "$as_me: The path of LIPO, which resolves as \"$new_path\", is invalid." >&6;} 32190 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32191 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32192 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32193 fi 32194 else 32195 input_to_shortpath="$new_path" 32196 fi 32197 32198 # Call helper function which possibly converts this using DOS-style short mode. 32199 # If so, the updated path is stored in $new_path. 32200 new_path="$input_to_shortpath" 32201 32202 input_path="$input_to_shortpath" 32203 # Check if we need to convert this using DOS-style short mode. If the path 32204 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32205 # take no chances and rewrite it. 32206 # Note: m4 eats our [], so we need to use [ and ] instead. 32207 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32208 if test "x$has_forbidden_chars" != x; then 32209 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32210 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32211 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32212 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32213 # Going to short mode and back again did indeed matter. Since short mode is 32214 # case insensitive, let's make it lowercase to improve readability. 32215 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32216 # Now convert it back to Unix-stile (cygpath) 32217 input_path=`$CYGPATH -u "$shortmode_path"` 32218 new_path="$input_path" 32219 fi 32220 fi 32221 32222 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32223 if test "x$test_cygdrive_prefix" = x; then 32224 # As a simple fix, exclude /usr/bin since it's not a real path. 32225 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32226 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32227 # a path prefixed by /cygdrive for fixpath to work. 32228 new_path="$CYGWIN_ROOT_PATH$input_path" 32229 fi 32230 fi 32231 32232 # remove trailing .exe if any 32233 new_path="${new_path/%.exe/}" 32234 32235 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32236 32237 # First separate the path from the arguments. This will split at the first 32238 # space. 32239 complete="$LIPO" 32240 path="${complete%% *}" 32241 tmp="$complete EOL" 32242 arguments="${tmp#* }" 32243 32244 # Input might be given as Windows format, start by converting to 32245 # unix format. 32246 new_path="$path" 32247 32248 windows_path="$new_path" 32249 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32250 unix_path=`$CYGPATH -u "$windows_path"` 32251 new_path="$unix_path" 32252 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32253 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32254 new_path="$unix_path" 32255 fi 32256 32257 32258 # Now try to locate executable using which 32259 new_path=`$WHICH "$new_path" 2> /dev/null` 32260 32261 if test "x$new_path" = x; then 32262 # Oops. Which didn't find the executable. 32263 # The splitting of arguments from the executable at a space might have been incorrect, 32264 # since paths with space are more likely in Windows. Give it another try with the whole 32265 # argument. 32266 path="$complete" 32267 arguments="EOL" 32268 new_path="$path" 32269 32270 windows_path="$new_path" 32271 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32272 unix_path=`$CYGPATH -u "$windows_path"` 32273 new_path="$unix_path" 32274 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32275 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32276 new_path="$unix_path" 32277 fi 32278 32279 32280 new_path=`$WHICH "$new_path" 2> /dev/null` 32281 32282 if test "x$new_path" = x; then 32283 # It's still not found. Now this is an unrecoverable error. 32284 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 32285 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 32286 has_space=`$ECHO "$complete" | $GREP " "` 32287 if test "x$has_space" != x; then 32288 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32289 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32290 fi 32291 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32292 fi 32293 fi 32294 32295 # Now new_path has a complete unix path to the binary 32296 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32297 # Keep paths in /bin as-is, but remove trailing .exe if any 32298 new_path="${new_path/%.exe/}" 32299 # Do not save /bin paths to all_fixpath_prefixes! 32300 else 32301 # Not in mixed or Windows style, start by that. 32302 new_path=`cmd //c echo $new_path` 32303 32304 input_path="$new_path" 32305 # Check if we need to convert this using DOS-style short mode. If the path 32306 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32307 # take no chances and rewrite it. 32308 # Note: m4 eats our [], so we need to use [ and ] instead. 32309 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32310 if test "x$has_forbidden_chars" != x; then 32311 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32312 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32313 fi 32314 32315 # Output is in $new_path 32316 32317 windows_path="$new_path" 32318 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32319 unix_path=`$CYGPATH -u "$windows_path"` 32320 new_path="$unix_path" 32321 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32322 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32323 new_path="$unix_path" 32324 fi 32325 32326 # remove trailing .exe if any 32327 new_path="${new_path/%.exe/}" 32328 32329 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32330 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32331 fi 32332 32333 else 32334 # We're on a posix platform. Hooray! :) 32335 # First separate the path from the arguments. This will split at the first 32336 # space. 32337 complete="$LIPO" 32338 path="${complete%% *}" 32339 tmp="$complete EOL" 32340 arguments="${tmp#* }" 32341 32342 # Cannot rely on the command "which" here since it doesn't always work. 32343 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32344 if test -z "$is_absolute_path"; then 32345 # Path to executable is not absolute. Find it. 32346 IFS_save="$IFS" 32347 IFS=: 32348 for p in $PATH; do 32349 if test -f "$p/$path" && test -x "$p/$path"; then 32350 new_path="$p/$path" 32351 break 32352 fi 32353 done 32354 IFS="$IFS_save" 32355 else 32356 # This is an absolute path, we can use it without further modifications. 32357 new_path="$path" 32358 fi 32359 32360 if test "x$new_path" = x; then 32361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of LIPO, which resolves as \"$complete\", is not found." >&5 32362 $as_echo "$as_me: The path of LIPO, which resolves as \"$complete\", is not found." >&6;} 32363 has_space=`$ECHO "$complete" | $GREP " "` 32364 if test "x$has_space" != x; then 32365 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32366 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32367 fi 32368 as_fn_error $? "Cannot locate the the path of LIPO" "$LINENO" 5 32369 fi 32370 fi 32371 32372 # Now join together the path and the arguments once again 32373 if test "x$arguments" != xEOL; then 32374 new_complete="$new_path ${arguments% *}" 32375 else 32376 new_complete="$new_path" 32377 fi 32378 32379 if test "x$complete" != "x$new_complete"; then 32380 LIPO="$new_complete" 32381 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting LIPO to \"$new_complete\"" >&5 32382 $as_echo "$as_me: Rewriting LIPO to \"$new_complete\"" >&6;} 32383 fi 32384 32385 else 32386 OBJC= 32387 fi 32388 32389 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 32390 # Extract the first word of "mt", so it can be a program name with args. 32391 set dummy mt; ac_word=$2 32392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32393 $as_echo_n "checking for $ac_word... " >&6; } 32394 if ${ac_cv_prog_MT+:} false; then : 32395 $as_echo_n "(cached) " >&6 32396 else 32397 if test -n "$MT"; then 32398 ac_cv_prog_MT="$MT" # Let the user override the test. 32399 else 32400 ac_prog_rejected=no 32401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32402 for as_dir in $PATH 32403 do 32404 IFS=$as_save_IFS 32405 test -z "$as_dir" && as_dir=. 32406 for ac_exec_ext in '' $ac_executable_extensions; do 32407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then 32409 ac_prog_rejected=yes 32410 continue 32411 fi 32412 ac_cv_prog_MT="mt" 32413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32414 break 2 32415 fi 32416 done 32417 done 32418 IFS=$as_save_IFS 32419 32420 if test $ac_prog_rejected = yes; then 32421 # We found a bogon in the path, so make sure we never use it. 32422 set dummy $ac_cv_prog_MT 32423 shift 32424 if test $# != 0; then 32425 # We chose a different compiler from the bogus one. 32426 # However, it has the same basename, so the bogon will be chosen 32427 # first if we set MT to just the basename; use the full file name. 32428 shift 32429 ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@" 32430 fi 32431 fi 32432 fi 32433 fi 32434 MT=$ac_cv_prog_MT 32435 if test -n "$MT"; then 32436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5 32437 $as_echo "$MT" >&6; } 32438 else 32439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32440 $as_echo "no" >&6; } 32441 fi 32442 32443 32444 32445 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32446 32447 # First separate the path from the arguments. This will split at the first 32448 # space. 32449 complete="$MT" 32450 path="${complete%% *}" 32451 tmp="$complete EOL" 32452 arguments="${tmp#* }" 32453 32454 # Input might be given as Windows format, start by converting to 32455 # unix format. 32456 new_path=`$CYGPATH -u "$path"` 32457 32458 # Now try to locate executable using which 32459 new_path=`$WHICH "$new_path" 2> /dev/null` 32460 # bat and cmd files are not always considered executable in cygwin causing which 32461 # to not find them 32462 if test "x$new_path" = x \ 32463 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32464 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32465 new_path=`$CYGPATH -u "$path"` 32466 fi 32467 if test "x$new_path" = x; then 32468 # Oops. Which didn't find the executable. 32469 # The splitting of arguments from the executable at a space might have been incorrect, 32470 # since paths with space are more likely in Windows. Give it another try with the whole 32471 # argument. 32472 path="$complete" 32473 arguments="EOL" 32474 new_path=`$CYGPATH -u "$path"` 32475 new_path=`$WHICH "$new_path" 2> /dev/null` 32476 # bat and cmd files are not always considered executable in cygwin causing which 32477 # to not find them 32478 if test "x$new_path" = x \ 32479 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32480 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32481 new_path=`$CYGPATH -u "$path"` 32482 fi 32483 if test "x$new_path" = x; then 32484 # It's still not found. Now this is an unrecoverable error. 32485 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 32486 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 32487 has_space=`$ECHO "$complete" | $GREP " "` 32488 if test "x$has_space" != x; then 32489 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32490 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32491 fi 32492 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32493 fi 32494 fi 32495 32496 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32497 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32498 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32499 # "foo.exe" is OK but "foo" is an error. 32500 # 32501 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32502 # It is also a way to make sure we got the proper file name for the real test later on. 32503 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32504 if test "x$test_shortpath" = x; then 32505 # Short path failed, file does not exist as specified. 32506 # Try adding .exe or .cmd 32507 if test -f "${new_path}.exe"; then 32508 input_to_shortpath="${new_path}.exe" 32509 elif test -f "${new_path}.cmd"; then 32510 input_to_shortpath="${new_path}.cmd" 32511 else 32512 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$new_path\", is invalid." >&5 32513 $as_echo "$as_me: The path of MT, which resolves as \"$new_path\", is invalid." >&6;} 32514 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32515 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32516 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32517 fi 32518 else 32519 input_to_shortpath="$new_path" 32520 fi 32521 32522 # Call helper function which possibly converts this using DOS-style short mode. 32523 # If so, the updated path is stored in $new_path. 32524 new_path="$input_to_shortpath" 32525 32526 input_path="$input_to_shortpath" 32527 # Check if we need to convert this using DOS-style short mode. If the path 32528 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32529 # take no chances and rewrite it. 32530 # Note: m4 eats our [], so we need to use [ and ] instead. 32531 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32532 if test "x$has_forbidden_chars" != x; then 32533 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32534 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32535 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32536 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32537 # Going to short mode and back again did indeed matter. Since short mode is 32538 # case insensitive, let's make it lowercase to improve readability. 32539 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32540 # Now convert it back to Unix-stile (cygpath) 32541 input_path=`$CYGPATH -u "$shortmode_path"` 32542 new_path="$input_path" 32543 fi 32544 fi 32545 32546 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32547 if test "x$test_cygdrive_prefix" = x; then 32548 # As a simple fix, exclude /usr/bin since it's not a real path. 32549 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32550 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32551 # a path prefixed by /cygdrive for fixpath to work. 32552 new_path="$CYGWIN_ROOT_PATH$input_path" 32553 fi 32554 fi 32555 32556 # remove trailing .exe if any 32557 new_path="${new_path/%.exe/}" 32558 32559 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32560 32561 # First separate the path from the arguments. This will split at the first 32562 # space. 32563 complete="$MT" 32564 path="${complete%% *}" 32565 tmp="$complete EOL" 32566 arguments="${tmp#* }" 32567 32568 # Input might be given as Windows format, start by converting to 32569 # unix format. 32570 new_path="$path" 32571 32572 windows_path="$new_path" 32573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32574 unix_path=`$CYGPATH -u "$windows_path"` 32575 new_path="$unix_path" 32576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32578 new_path="$unix_path" 32579 fi 32580 32581 32582 # Now try to locate executable using which 32583 new_path=`$WHICH "$new_path" 2> /dev/null` 32584 32585 if test "x$new_path" = x; then 32586 # Oops. Which didn't find the executable. 32587 # The splitting of arguments from the executable at a space might have been incorrect, 32588 # since paths with space are more likely in Windows. Give it another try with the whole 32589 # argument. 32590 path="$complete" 32591 arguments="EOL" 32592 new_path="$path" 32593 32594 windows_path="$new_path" 32595 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32596 unix_path=`$CYGPATH -u "$windows_path"` 32597 new_path="$unix_path" 32598 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32599 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32600 new_path="$unix_path" 32601 fi 32602 32603 32604 new_path=`$WHICH "$new_path" 2> /dev/null` 32605 32606 if test "x$new_path" = x; then 32607 # It's still not found. Now this is an unrecoverable error. 32608 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 32609 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 32610 has_space=`$ECHO "$complete" | $GREP " "` 32611 if test "x$has_space" != x; then 32612 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32613 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32614 fi 32615 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32616 fi 32617 fi 32618 32619 # Now new_path has a complete unix path to the binary 32620 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32621 # Keep paths in /bin as-is, but remove trailing .exe if any 32622 new_path="${new_path/%.exe/}" 32623 # Do not save /bin paths to all_fixpath_prefixes! 32624 else 32625 # Not in mixed or Windows style, start by that. 32626 new_path=`cmd //c echo $new_path` 32627 32628 input_path="$new_path" 32629 # Check if we need to convert this using DOS-style short mode. If the path 32630 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32631 # take no chances and rewrite it. 32632 # Note: m4 eats our [], so we need to use [ and ] instead. 32633 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32634 if test "x$has_forbidden_chars" != x; then 32635 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32636 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32637 fi 32638 32639 # Output is in $new_path 32640 32641 windows_path="$new_path" 32642 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32643 unix_path=`$CYGPATH -u "$windows_path"` 32644 new_path="$unix_path" 32645 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32646 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32647 new_path="$unix_path" 32648 fi 32649 32650 # remove trailing .exe if any 32651 new_path="${new_path/%.exe/}" 32652 32653 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32654 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32655 fi 32656 32657 else 32658 # We're on a posix platform. Hooray! :) 32659 # First separate the path from the arguments. This will split at the first 32660 # space. 32661 complete="$MT" 32662 path="${complete%% *}" 32663 tmp="$complete EOL" 32664 arguments="${tmp#* }" 32665 32666 # Cannot rely on the command "which" here since it doesn't always work. 32667 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32668 if test -z "$is_absolute_path"; then 32669 # Path to executable is not absolute. Find it. 32670 IFS_save="$IFS" 32671 IFS=: 32672 for p in $PATH; do 32673 if test -f "$p/$path" && test -x "$p/$path"; then 32674 new_path="$p/$path" 32675 break 32676 fi 32677 done 32678 IFS="$IFS_save" 32679 else 32680 # This is an absolute path, we can use it without further modifications. 32681 new_path="$path" 32682 fi 32683 32684 if test "x$new_path" = x; then 32685 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MT, which resolves as \"$complete\", is not found." >&5 32686 $as_echo "$as_me: The path of MT, which resolves as \"$complete\", is not found." >&6;} 32687 has_space=`$ECHO "$complete" | $GREP " "` 32688 if test "x$has_space" != x; then 32689 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 32690 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 32691 fi 32692 as_fn_error $? "Cannot locate the the path of MT" "$LINENO" 5 32693 fi 32694 fi 32695 32696 # Now join together the path and the arguments once again 32697 if test "x$arguments" != xEOL; then 32698 new_complete="$new_path ${arguments% *}" 32699 else 32700 new_complete="$new_path" 32701 fi 32702 32703 if test "x$complete" != "x$new_complete"; then 32704 MT="$new_complete" 32705 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MT to \"$new_complete\"" >&5 32706 $as_echo "$as_me: Rewriting MT to \"$new_complete\"" >&6;} 32707 fi 32708 32709 # Setup the resource compiler (RC) 32710 # Extract the first word of "rc", so it can be a program name with args. 32711 set dummy rc; ac_word=$2 32712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 32713 $as_echo_n "checking for $ac_word... " >&6; } 32714 if ${ac_cv_prog_RC+:} false; then : 32715 $as_echo_n "(cached) " >&6 32716 else 32717 if test -n "$RC"; then 32718 ac_cv_prog_RC="$RC" # Let the user override the test. 32719 else 32720 ac_prog_rejected=no 32721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 32722 for as_dir in $PATH 32723 do 32724 IFS=$as_save_IFS 32725 test -z "$as_dir" && as_dir=. 32726 for ac_exec_ext in '' $ac_executable_extensions; do 32727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 32728 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then 32729 ac_prog_rejected=yes 32730 continue 32731 fi 32732 ac_cv_prog_RC="rc" 32733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 32734 break 2 32735 fi 32736 done 32737 done 32738 IFS=$as_save_IFS 32739 32740 if test $ac_prog_rejected = yes; then 32741 # We found a bogon in the path, so make sure we never use it. 32742 set dummy $ac_cv_prog_RC 32743 shift 32744 if test $# != 0; then 32745 # We chose a different compiler from the bogus one. 32746 # However, it has the same basename, so the bogon will be chosen 32747 # first if we set RC to just the basename; use the full file name. 32748 shift 32749 ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@" 32750 fi 32751 fi 32752 fi 32753 fi 32754 RC=$ac_cv_prog_RC 32755 if test -n "$RC"; then 32756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5 32757 $as_echo "$RC" >&6; } 32758 else 32759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 32760 $as_echo "no" >&6; } 32761 fi 32762 32763 32764 32765 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32766 32767 # First separate the path from the arguments. This will split at the first 32768 # space. 32769 complete="$RC" 32770 path="${complete%% *}" 32771 tmp="$complete EOL" 32772 arguments="${tmp#* }" 32773 32774 # Input might be given as Windows format, start by converting to 32775 # unix format. 32776 new_path=`$CYGPATH -u "$path"` 32777 32778 # Now try to locate executable using which 32779 new_path=`$WHICH "$new_path" 2> /dev/null` 32780 # bat and cmd files are not always considered executable in cygwin causing which 32781 # to not find them 32782 if test "x$new_path" = x \ 32783 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32784 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32785 new_path=`$CYGPATH -u "$path"` 32786 fi 32787 if test "x$new_path" = x; then 32788 # Oops. Which didn't find the executable. 32789 # The splitting of arguments from the executable at a space might have been incorrect, 32790 # since paths with space are more likely in Windows. Give it another try with the whole 32791 # argument. 32792 path="$complete" 32793 arguments="EOL" 32794 new_path=`$CYGPATH -u "$path"` 32795 new_path=`$WHICH "$new_path" 2> /dev/null` 32796 # bat and cmd files are not always considered executable in cygwin causing which 32797 # to not find them 32798 if test "x$new_path" = x \ 32799 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 32800 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 32801 new_path=`$CYGPATH -u "$path"` 32802 fi 32803 if test "x$new_path" = x; then 32804 # It's still not found. Now this is an unrecoverable error. 32805 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 32806 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 32807 has_space=`$ECHO "$complete" | $GREP " "` 32808 if test "x$has_space" != x; then 32809 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32810 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32811 fi 32812 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32813 fi 32814 fi 32815 32816 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 32817 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 32818 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 32819 # "foo.exe" is OK but "foo" is an error. 32820 # 32821 # This test is therefore slightly more accurate than "test -f" to check for file presence. 32822 # It is also a way to make sure we got the proper file name for the real test later on. 32823 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 32824 if test "x$test_shortpath" = x; then 32825 # Short path failed, file does not exist as specified. 32826 # Try adding .exe or .cmd 32827 if test -f "${new_path}.exe"; then 32828 input_to_shortpath="${new_path}.exe" 32829 elif test -f "${new_path}.cmd"; then 32830 input_to_shortpath="${new_path}.cmd" 32831 else 32832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$new_path\", is invalid." >&5 32833 $as_echo "$as_me: The path of RC, which resolves as \"$new_path\", is invalid." >&6;} 32834 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 32835 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 32836 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32837 fi 32838 else 32839 input_to_shortpath="$new_path" 32840 fi 32841 32842 # Call helper function which possibly converts this using DOS-style short mode. 32843 # If so, the updated path is stored in $new_path. 32844 new_path="$input_to_shortpath" 32845 32846 input_path="$input_to_shortpath" 32847 # Check if we need to convert this using DOS-style short mode. If the path 32848 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32849 # take no chances and rewrite it. 32850 # Note: m4 eats our [], so we need to use [ and ] instead. 32851 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 32852 if test "x$has_forbidden_chars" != x; then 32853 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32854 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 32855 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 32856 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 32857 # Going to short mode and back again did indeed matter. Since short mode is 32858 # case insensitive, let's make it lowercase to improve readability. 32859 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32860 # Now convert it back to Unix-stile (cygpath) 32861 input_path=`$CYGPATH -u "$shortmode_path"` 32862 new_path="$input_path" 32863 fi 32864 fi 32865 32866 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 32867 if test "x$test_cygdrive_prefix" = x; then 32868 # As a simple fix, exclude /usr/bin since it's not a real path. 32869 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 32870 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 32871 # a path prefixed by /cygdrive for fixpath to work. 32872 new_path="$CYGWIN_ROOT_PATH$input_path" 32873 fi 32874 fi 32875 32876 # remove trailing .exe if any 32877 new_path="${new_path/%.exe/}" 32878 32879 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32880 32881 # First separate the path from the arguments. This will split at the first 32882 # space. 32883 complete="$RC" 32884 path="${complete%% *}" 32885 tmp="$complete EOL" 32886 arguments="${tmp#* }" 32887 32888 # Input might be given as Windows format, start by converting to 32889 # unix format. 32890 new_path="$path" 32891 32892 windows_path="$new_path" 32893 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32894 unix_path=`$CYGPATH -u "$windows_path"` 32895 new_path="$unix_path" 32896 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32897 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32898 new_path="$unix_path" 32899 fi 32900 32901 32902 # Now try to locate executable using which 32903 new_path=`$WHICH "$new_path" 2> /dev/null` 32904 32905 if test "x$new_path" = x; then 32906 # Oops. Which didn't find the executable. 32907 # The splitting of arguments from the executable at a space might have been incorrect, 32908 # since paths with space are more likely in Windows. Give it another try with the whole 32909 # argument. 32910 path="$complete" 32911 arguments="EOL" 32912 new_path="$path" 32913 32914 windows_path="$new_path" 32915 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32916 unix_path=`$CYGPATH -u "$windows_path"` 32917 new_path="$unix_path" 32918 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32919 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32920 new_path="$unix_path" 32921 fi 32922 32923 32924 new_path=`$WHICH "$new_path" 2> /dev/null` 32925 32926 if test "x$new_path" = x; then 32927 # It's still not found. Now this is an unrecoverable error. 32928 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 32929 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 32930 has_space=`$ECHO "$complete" | $GREP " "` 32931 if test "x$has_space" != x; then 32932 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 32933 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 32934 fi 32935 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 32936 fi 32937 fi 32938 32939 # Now new_path has a complete unix path to the binary 32940 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 32941 # Keep paths in /bin as-is, but remove trailing .exe if any 32942 new_path="${new_path/%.exe/}" 32943 # Do not save /bin paths to all_fixpath_prefixes! 32944 else 32945 # Not in mixed or Windows style, start by that. 32946 new_path=`cmd //c echo $new_path` 32947 32948 input_path="$new_path" 32949 # Check if we need to convert this using DOS-style short mode. If the path 32950 # contains just simple characters, use it. Otherwise (spaces, weird characters), 32951 # take no chances and rewrite it. 32952 # Note: m4 eats our [], so we need to use [ and ] instead. 32953 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 32954 if test "x$has_forbidden_chars" != x; then 32955 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 32956 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 32957 fi 32958 32959 # Output is in $new_path 32960 32961 windows_path="$new_path" 32962 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 32963 unix_path=`$CYGPATH -u "$windows_path"` 32964 new_path="$unix_path" 32965 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 32966 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 32967 new_path="$unix_path" 32968 fi 32969 32970 # remove trailing .exe if any 32971 new_path="${new_path/%.exe/}" 32972 32973 # Save the first 10 bytes of this path to the storage, so fixpath can work. 32974 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 32975 fi 32976 32977 else 32978 # We're on a posix platform. Hooray! :) 32979 # First separate the path from the arguments. This will split at the first 32980 # space. 32981 complete="$RC" 32982 path="${complete%% *}" 32983 tmp="$complete EOL" 32984 arguments="${tmp#* }" 32985 32986 # Cannot rely on the command "which" here since it doesn't always work. 32987 is_absolute_path=`$ECHO "$path" | $GREP ^/` 32988 if test -z "$is_absolute_path"; then 32989 # Path to executable is not absolute. Find it. 32990 IFS_save="$IFS" 32991 IFS=: 32992 for p in $PATH; do 32993 if test -f "$p/$path" && test -x "$p/$path"; then 32994 new_path="$p/$path" 32995 break 32996 fi 32997 done 32998 IFS="$IFS_save" 32999 else 33000 # This is an absolute path, we can use it without further modifications. 33001 new_path="$path" 33002 fi 33003 33004 if test "x$new_path" = x; then 33005 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of RC, which resolves as \"$complete\", is not found." >&5 33006 $as_echo "$as_me: The path of RC, which resolves as \"$complete\", is not found." >&6;} 33007 has_space=`$ECHO "$complete" | $GREP " "` 33008 if test "x$has_space" != x; then 33009 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33010 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33011 fi 33012 as_fn_error $? "Cannot locate the the path of RC" "$LINENO" 5 33013 fi 33014 fi 33015 33016 # Now join together the path and the arguments once again 33017 if test "x$arguments" != xEOL; then 33018 new_complete="$new_path ${arguments% *}" 33019 else 33020 new_complete="$new_path" 33021 fi 33022 33023 if test "x$complete" != "x$new_complete"; then 33024 RC="$new_complete" 33025 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting RC to \"$new_complete\"" >&5 33026 $as_echo "$as_me: Rewriting RC to \"$new_complete\"" >&6;} 33027 fi 33028 33029 # Extract the first word of "dumpbin", so it can be a program name with args. 33030 set dummy dumpbin; ac_word=$2 33031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33032 $as_echo_n "checking for $ac_word... " >&6; } 33033 if ${ac_cv_prog_DUMPBIN+:} false; then : 33034 $as_echo_n "(cached) " >&6 33035 else 33036 if test -n "$DUMPBIN"; then 33037 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 33038 else 33039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33040 for as_dir in $PATH 33041 do 33042 IFS=$as_save_IFS 33043 test -z "$as_dir" && as_dir=. 33044 for ac_exec_ext in '' $ac_executable_extensions; do 33045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33046 ac_cv_prog_DUMPBIN="dumpbin" 33047 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33048 break 2 33049 fi 33050 done 33051 done 33052 IFS=$as_save_IFS 33053 33054 fi 33055 fi 33056 DUMPBIN=$ac_cv_prog_DUMPBIN 33057 if test -n "$DUMPBIN"; then 33058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 33059 $as_echo "$DUMPBIN" >&6; } 33060 else 33061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33062 $as_echo "no" >&6; } 33063 fi 33064 33065 33066 33067 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33068 33069 # First separate the path from the arguments. This will split at the first 33070 # space. 33071 complete="$DUMPBIN" 33072 path="${complete%% *}" 33073 tmp="$complete EOL" 33074 arguments="${tmp#* }" 33075 33076 # Input might be given as Windows format, start by converting to 33077 # unix format. 33078 new_path=`$CYGPATH -u "$path"` 33079 33080 # Now try to locate executable using which 33081 new_path=`$WHICH "$new_path" 2> /dev/null` 33082 # bat and cmd files are not always considered executable in cygwin causing which 33083 # to not find them 33084 if test "x$new_path" = x \ 33085 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33086 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33087 new_path=`$CYGPATH -u "$path"` 33088 fi 33089 if test "x$new_path" = x; then 33090 # Oops. Which didn't find the executable. 33091 # The splitting of arguments from the executable at a space might have been incorrect, 33092 # since paths with space are more likely in Windows. Give it another try with the whole 33093 # argument. 33094 path="$complete" 33095 arguments="EOL" 33096 new_path=`$CYGPATH -u "$path"` 33097 new_path=`$WHICH "$new_path" 2> /dev/null` 33098 # bat and cmd files are not always considered executable in cygwin causing which 33099 # to not find them 33100 if test "x$new_path" = x \ 33101 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33102 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33103 new_path=`$CYGPATH -u "$path"` 33104 fi 33105 if test "x$new_path" = x; then 33106 # It's still not found. Now this is an unrecoverable error. 33107 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 33108 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 33109 has_space=`$ECHO "$complete" | $GREP " "` 33110 if test "x$has_space" != x; then 33111 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33112 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33113 fi 33114 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33115 fi 33116 fi 33117 33118 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33119 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33120 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33121 # "foo.exe" is OK but "foo" is an error. 33122 # 33123 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33124 # It is also a way to make sure we got the proper file name for the real test later on. 33125 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33126 if test "x$test_shortpath" = x; then 33127 # Short path failed, file does not exist as specified. 33128 # Try adding .exe or .cmd 33129 if test -f "${new_path}.exe"; then 33130 input_to_shortpath="${new_path}.exe" 33131 elif test -f "${new_path}.cmd"; then 33132 input_to_shortpath="${new_path}.cmd" 33133 else 33134 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&5 33135 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$new_path\", is invalid." >&6;} 33136 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33137 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33138 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33139 fi 33140 else 33141 input_to_shortpath="$new_path" 33142 fi 33143 33144 # Call helper function which possibly converts this using DOS-style short mode. 33145 # If so, the updated path is stored in $new_path. 33146 new_path="$input_to_shortpath" 33147 33148 input_path="$input_to_shortpath" 33149 # Check if we need to convert this using DOS-style short mode. If the path 33150 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33151 # take no chances and rewrite it. 33152 # Note: m4 eats our [], so we need to use [ and ] instead. 33153 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33154 if test "x$has_forbidden_chars" != x; then 33155 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33156 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33157 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33158 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33159 # Going to short mode and back again did indeed matter. Since short mode is 33160 # case insensitive, let's make it lowercase to improve readability. 33161 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33162 # Now convert it back to Unix-stile (cygpath) 33163 input_path=`$CYGPATH -u "$shortmode_path"` 33164 new_path="$input_path" 33165 fi 33166 fi 33167 33168 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33169 if test "x$test_cygdrive_prefix" = x; then 33170 # As a simple fix, exclude /usr/bin since it's not a real path. 33171 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33172 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33173 # a path prefixed by /cygdrive for fixpath to work. 33174 new_path="$CYGWIN_ROOT_PATH$input_path" 33175 fi 33176 fi 33177 33178 # remove trailing .exe if any 33179 new_path="${new_path/%.exe/}" 33180 33181 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33182 33183 # First separate the path from the arguments. This will split at the first 33184 # space. 33185 complete="$DUMPBIN" 33186 path="${complete%% *}" 33187 tmp="$complete EOL" 33188 arguments="${tmp#* }" 33189 33190 # Input might be given as Windows format, start by converting to 33191 # unix format. 33192 new_path="$path" 33193 33194 windows_path="$new_path" 33195 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33196 unix_path=`$CYGPATH -u "$windows_path"` 33197 new_path="$unix_path" 33198 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33199 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33200 new_path="$unix_path" 33201 fi 33202 33203 33204 # Now try to locate executable using which 33205 new_path=`$WHICH "$new_path" 2> /dev/null` 33206 33207 if test "x$new_path" = x; then 33208 # Oops. Which didn't find the executable. 33209 # The splitting of arguments from the executable at a space might have been incorrect, 33210 # since paths with space are more likely in Windows. Give it another try with the whole 33211 # argument. 33212 path="$complete" 33213 arguments="EOL" 33214 new_path="$path" 33215 33216 windows_path="$new_path" 33217 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33218 unix_path=`$CYGPATH -u "$windows_path"` 33219 new_path="$unix_path" 33220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33221 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33222 new_path="$unix_path" 33223 fi 33224 33225 33226 new_path=`$WHICH "$new_path" 2> /dev/null` 33227 33228 if test "x$new_path" = x; then 33229 # It's still not found. Now this is an unrecoverable error. 33230 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 33231 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 33232 has_space=`$ECHO "$complete" | $GREP " "` 33233 if test "x$has_space" != x; then 33234 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33235 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33236 fi 33237 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33238 fi 33239 fi 33240 33241 # Now new_path has a complete unix path to the binary 33242 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33243 # Keep paths in /bin as-is, but remove trailing .exe if any 33244 new_path="${new_path/%.exe/}" 33245 # Do not save /bin paths to all_fixpath_prefixes! 33246 else 33247 # Not in mixed or Windows style, start by that. 33248 new_path=`cmd //c echo $new_path` 33249 33250 input_path="$new_path" 33251 # Check if we need to convert this using DOS-style short mode. If the path 33252 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33253 # take no chances and rewrite it. 33254 # Note: m4 eats our [], so we need to use [ and ] instead. 33255 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33256 if test "x$has_forbidden_chars" != x; then 33257 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33258 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33259 fi 33260 33261 # Output is in $new_path 33262 33263 windows_path="$new_path" 33264 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33265 unix_path=`$CYGPATH -u "$windows_path"` 33266 new_path="$unix_path" 33267 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33268 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33269 new_path="$unix_path" 33270 fi 33271 33272 # remove trailing .exe if any 33273 new_path="${new_path/%.exe/}" 33274 33275 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33276 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33277 fi 33278 33279 else 33280 # We're on a posix platform. Hooray! :) 33281 # First separate the path from the arguments. This will split at the first 33282 # space. 33283 complete="$DUMPBIN" 33284 path="${complete%% *}" 33285 tmp="$complete EOL" 33286 arguments="${tmp#* }" 33287 33288 # Cannot rely on the command "which" here since it doesn't always work. 33289 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33290 if test -z "$is_absolute_path"; then 33291 # Path to executable is not absolute. Find it. 33292 IFS_save="$IFS" 33293 IFS=: 33294 for p in $PATH; do 33295 if test -f "$p/$path" && test -x "$p/$path"; then 33296 new_path="$p/$path" 33297 break 33298 fi 33299 done 33300 IFS="$IFS_save" 33301 else 33302 # This is an absolute path, we can use it without further modifications. 33303 new_path="$path" 33304 fi 33305 33306 if test "x$new_path" = x; then 33307 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&5 33308 $as_echo "$as_me: The path of DUMPBIN, which resolves as \"$complete\", is not found." >&6;} 33309 has_space=`$ECHO "$complete" | $GREP " "` 33310 if test "x$has_space" != x; then 33311 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33312 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33313 fi 33314 as_fn_error $? "Cannot locate the the path of DUMPBIN" "$LINENO" 5 33315 fi 33316 fi 33317 33318 # Now join together the path and the arguments once again 33319 if test "x$arguments" != xEOL; then 33320 new_complete="$new_path ${arguments% *}" 33321 else 33322 new_complete="$new_path" 33323 fi 33324 33325 if test "x$complete" != "x$new_complete"; then 33326 DUMPBIN="$new_complete" 33327 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting DUMPBIN to \"$new_complete\"" >&5 33328 $as_echo "$as_me: Rewriting DUMPBIN to \"$new_complete\"" >&6;} 33329 fi 33330 33331 fi 33332 33333 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 33334 33335 33336 # Publish this variable in the help. 33337 33338 33339 if test "x$STRIP" = x; then 33340 # The variable is not set by user, try to locate tool using the code snippet 33341 for ac_prog in strip 33342 do 33343 # Extract the first word of "$ac_prog", so it can be a program name with args. 33344 set dummy $ac_prog; ac_word=$2 33345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33346 $as_echo_n "checking for $ac_word... " >&6; } 33347 if ${ac_cv_path_STRIP+:} false; then : 33348 $as_echo_n "(cached) " >&6 33349 else 33350 case $STRIP in 33351 [\\/]* | ?:[\\/]*) 33352 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 33353 ;; 33354 *) 33355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33356 for as_dir in $PATH 33357 do 33358 IFS=$as_save_IFS 33359 test -z "$as_dir" && as_dir=. 33360 for ac_exec_ext in '' $ac_executable_extensions; do 33361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33362 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 33363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33364 break 2 33365 fi 33366 done 33367 done 33368 IFS=$as_save_IFS 33369 33370 ;; 33371 esac 33372 fi 33373 STRIP=$ac_cv_path_STRIP 33374 if test -n "$STRIP"; then 33375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 33376 $as_echo "$STRIP" >&6; } 33377 else 33378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33379 $as_echo "no" >&6; } 33380 fi 33381 33382 33383 test -n "$STRIP" && break 33384 done 33385 33386 else 33387 # The variable is set, but is it from the command line or the environment? 33388 33389 # Try to remove the string !STRIP! from our list. 33390 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 33391 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33392 # If it failed, the variable was not from the command line. Ignore it, 33393 # but warn the user (except for BASH, which is always set by the calling BASH). 33394 if test "xSTRIP" != xBASH; then 33395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 33396 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 33397 fi 33398 # Try to locate tool using the code snippet 33399 for ac_prog in strip 33400 do 33401 # Extract the first word of "$ac_prog", so it can be a program name with args. 33402 set dummy $ac_prog; ac_word=$2 33403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33404 $as_echo_n "checking for $ac_word... " >&6; } 33405 if ${ac_cv_path_STRIP+:} false; then : 33406 $as_echo_n "(cached) " >&6 33407 else 33408 case $STRIP in 33409 [\\/]* | ?:[\\/]*) 33410 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 33411 ;; 33412 *) 33413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33414 for as_dir in $PATH 33415 do 33416 IFS=$as_save_IFS 33417 test -z "$as_dir" && as_dir=. 33418 for ac_exec_ext in '' $ac_executable_extensions; do 33419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33420 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 33421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33422 break 2 33423 fi 33424 done 33425 done 33426 IFS=$as_save_IFS 33427 33428 ;; 33429 esac 33430 fi 33431 STRIP=$ac_cv_path_STRIP 33432 if test -n "$STRIP"; then 33433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 33434 $as_echo "$STRIP" >&6; } 33435 else 33436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33437 $as_echo "no" >&6; } 33438 fi 33439 33440 33441 test -n "$STRIP" && break 33442 done 33443 33444 else 33445 # If it succeeded, then it was overridden by the user. We will use it 33446 # for the tool. 33447 33448 # First remove it from the list of overridden variables, so we can test 33449 # for unknown variables in the end. 33450 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33451 33452 # Check if the provided tool contains a complete path. 33453 tool_specified="$STRIP" 33454 tool_basename="${tool_specified##*/}" 33455 if test "x$tool_basename" = "x$tool_specified"; then 33456 # A command without a complete path is provided, search $PATH. 33457 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 33458 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 33459 # Extract the first word of "$tool_basename", so it can be a program name with args. 33460 set dummy $tool_basename; ac_word=$2 33461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33462 $as_echo_n "checking for $ac_word... " >&6; } 33463 if ${ac_cv_path_STRIP+:} false; then : 33464 $as_echo_n "(cached) " >&6 33465 else 33466 case $STRIP in 33467 [\\/]* | ?:[\\/]*) 33468 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 33469 ;; 33470 *) 33471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33472 for as_dir in $PATH 33473 do 33474 IFS=$as_save_IFS 33475 test -z "$as_dir" && as_dir=. 33476 for ac_exec_ext in '' $ac_executable_extensions; do 33477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33478 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 33479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33480 break 2 33481 fi 33482 done 33483 done 33484 IFS=$as_save_IFS 33485 33486 ;; 33487 esac 33488 fi 33489 STRIP=$ac_cv_path_STRIP 33490 if test -n "$STRIP"; then 33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 33492 $as_echo "$STRIP" >&6; } 33493 else 33494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33495 $as_echo "no" >&6; } 33496 fi 33497 33498 33499 if test "x$STRIP" = x; then 33500 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33501 fi 33502 else 33503 # Otherwise we believe it is a complete path. Use it as it is. 33504 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 33505 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 33506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 33507 $as_echo_n "checking for STRIP... " >&6; } 33508 if test ! -x "$tool_specified"; then 33509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33510 $as_echo "not found" >&6; } 33511 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 33512 fi 33513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33514 $as_echo "$tool_specified" >&6; } 33515 fi 33516 fi 33517 fi 33518 33519 33520 33521 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33522 33523 # First separate the path from the arguments. This will split at the first 33524 # space. 33525 complete="$STRIP" 33526 path="${complete%% *}" 33527 tmp="$complete EOL" 33528 arguments="${tmp#* }" 33529 33530 # Input might be given as Windows format, start by converting to 33531 # unix format. 33532 new_path=`$CYGPATH -u "$path"` 33533 33534 # Now try to locate executable using which 33535 new_path=`$WHICH "$new_path" 2> /dev/null` 33536 # bat and cmd files are not always considered executable in cygwin causing which 33537 # to not find them 33538 if test "x$new_path" = x \ 33539 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33540 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33541 new_path=`$CYGPATH -u "$path"` 33542 fi 33543 if test "x$new_path" = x; then 33544 # Oops. Which didn't find the executable. 33545 # The splitting of arguments from the executable at a space might have been incorrect, 33546 # since paths with space are more likely in Windows. Give it another try with the whole 33547 # argument. 33548 path="$complete" 33549 arguments="EOL" 33550 new_path=`$CYGPATH -u "$path"` 33551 new_path=`$WHICH "$new_path" 2> /dev/null` 33552 # bat and cmd files are not always considered executable in cygwin causing which 33553 # to not find them 33554 if test "x$new_path" = x \ 33555 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33556 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33557 new_path=`$CYGPATH -u "$path"` 33558 fi 33559 if test "x$new_path" = x; then 33560 # It's still not found. Now this is an unrecoverable error. 33561 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 33562 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 33563 has_space=`$ECHO "$complete" | $GREP " "` 33564 if test "x$has_space" != x; then 33565 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33566 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33567 fi 33568 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33569 fi 33570 fi 33571 33572 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 33573 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 33574 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 33575 # "foo.exe" is OK but "foo" is an error. 33576 # 33577 # This test is therefore slightly more accurate than "test -f" to check for file presence. 33578 # It is also a way to make sure we got the proper file name for the real test later on. 33579 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 33580 if test "x$test_shortpath" = x; then 33581 # Short path failed, file does not exist as specified. 33582 # Try adding .exe or .cmd 33583 if test -f "${new_path}.exe"; then 33584 input_to_shortpath="${new_path}.exe" 33585 elif test -f "${new_path}.cmd"; then 33586 input_to_shortpath="${new_path}.cmd" 33587 else 33588 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 33589 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 33590 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 33591 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 33592 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33593 fi 33594 else 33595 input_to_shortpath="$new_path" 33596 fi 33597 33598 # Call helper function which possibly converts this using DOS-style short mode. 33599 # If so, the updated path is stored in $new_path. 33600 new_path="$input_to_shortpath" 33601 33602 input_path="$input_to_shortpath" 33603 # Check if we need to convert this using DOS-style short mode. If the path 33604 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33605 # take no chances and rewrite it. 33606 # Note: m4 eats our [], so we need to use [ and ] instead. 33607 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 33608 if test "x$has_forbidden_chars" != x; then 33609 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33610 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 33611 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 33612 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 33613 # Going to short mode and back again did indeed matter. Since short mode is 33614 # case insensitive, let's make it lowercase to improve readability. 33615 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33616 # Now convert it back to Unix-stile (cygpath) 33617 input_path=`$CYGPATH -u "$shortmode_path"` 33618 new_path="$input_path" 33619 fi 33620 fi 33621 33622 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 33623 if test "x$test_cygdrive_prefix" = x; then 33624 # As a simple fix, exclude /usr/bin since it's not a real path. 33625 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 33626 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 33627 # a path prefixed by /cygdrive for fixpath to work. 33628 new_path="$CYGWIN_ROOT_PATH$input_path" 33629 fi 33630 fi 33631 33632 # remove trailing .exe if any 33633 new_path="${new_path/%.exe/}" 33634 33635 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33636 33637 # First separate the path from the arguments. This will split at the first 33638 # space. 33639 complete="$STRIP" 33640 path="${complete%% *}" 33641 tmp="$complete EOL" 33642 arguments="${tmp#* }" 33643 33644 # Input might be given as Windows format, start by converting to 33645 # unix format. 33646 new_path="$path" 33647 33648 windows_path="$new_path" 33649 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33650 unix_path=`$CYGPATH -u "$windows_path"` 33651 new_path="$unix_path" 33652 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33653 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33654 new_path="$unix_path" 33655 fi 33656 33657 33658 # Now try to locate executable using which 33659 new_path=`$WHICH "$new_path" 2> /dev/null` 33660 33661 if test "x$new_path" = x; then 33662 # Oops. Which didn't find the executable. 33663 # The splitting of arguments from the executable at a space might have been incorrect, 33664 # since paths with space are more likely in Windows. Give it another try with the whole 33665 # argument. 33666 path="$complete" 33667 arguments="EOL" 33668 new_path="$path" 33669 33670 windows_path="$new_path" 33671 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33672 unix_path=`$CYGPATH -u "$windows_path"` 33673 new_path="$unix_path" 33674 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33675 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33676 new_path="$unix_path" 33677 fi 33678 33679 33680 new_path=`$WHICH "$new_path" 2> /dev/null` 33681 33682 if test "x$new_path" = x; then 33683 # It's still not found. Now this is an unrecoverable error. 33684 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 33685 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 33686 has_space=`$ECHO "$complete" | $GREP " "` 33687 if test "x$has_space" != x; then 33688 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 33689 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 33690 fi 33691 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33692 fi 33693 fi 33694 33695 # Now new_path has a complete unix path to the binary 33696 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 33697 # Keep paths in /bin as-is, but remove trailing .exe if any 33698 new_path="${new_path/%.exe/}" 33699 # Do not save /bin paths to all_fixpath_prefixes! 33700 else 33701 # Not in mixed or Windows style, start by that. 33702 new_path=`cmd //c echo $new_path` 33703 33704 input_path="$new_path" 33705 # Check if we need to convert this using DOS-style short mode. If the path 33706 # contains just simple characters, use it. Otherwise (spaces, weird characters), 33707 # take no chances and rewrite it. 33708 # Note: m4 eats our [], so we need to use [ and ] instead. 33709 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 33710 if test "x$has_forbidden_chars" != x; then 33711 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 33712 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 33713 fi 33714 33715 # Output is in $new_path 33716 33717 windows_path="$new_path" 33718 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33719 unix_path=`$CYGPATH -u "$windows_path"` 33720 new_path="$unix_path" 33721 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 33722 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 33723 new_path="$unix_path" 33724 fi 33725 33726 # remove trailing .exe if any 33727 new_path="${new_path/%.exe/}" 33728 33729 # Save the first 10 bytes of this path to the storage, so fixpath can work. 33730 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 33731 fi 33732 33733 else 33734 # We're on a posix platform. Hooray! :) 33735 # First separate the path from the arguments. This will split at the first 33736 # space. 33737 complete="$STRIP" 33738 path="${complete%% *}" 33739 tmp="$complete EOL" 33740 arguments="${tmp#* }" 33741 33742 # Cannot rely on the command "which" here since it doesn't always work. 33743 is_absolute_path=`$ECHO "$path" | $GREP ^/` 33744 if test -z "$is_absolute_path"; then 33745 # Path to executable is not absolute. Find it. 33746 IFS_save="$IFS" 33747 IFS=: 33748 for p in $PATH; do 33749 if test -f "$p/$path" && test -x "$p/$path"; then 33750 new_path="$p/$path" 33751 break 33752 fi 33753 done 33754 IFS="$IFS_save" 33755 else 33756 # This is an absolute path, we can use it without further modifications. 33757 new_path="$path" 33758 fi 33759 33760 if test "x$new_path" = x; then 33761 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 33762 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 33763 has_space=`$ECHO "$complete" | $GREP " "` 33764 if test "x$has_space" != x; then 33765 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 33766 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 33767 fi 33768 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 33769 fi 33770 fi 33771 33772 # Now join together the path and the arguments once again 33773 if test "x$arguments" != xEOL; then 33774 new_complete="$new_path ${arguments% *}" 33775 else 33776 new_complete="$new_path" 33777 fi 33778 33779 if test "x$complete" != "x$new_complete"; then 33780 STRIP="$new_complete" 33781 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 33782 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 33783 fi 33784 33785 33786 33787 # Publish this variable in the help. 33788 33789 33790 if test "x$NM" = x; then 33791 # The variable is not set by user, try to locate tool using the code snippet 33792 for ac_prog in nm 33793 do 33794 # Extract the first word of "$ac_prog", so it can be a program name with args. 33795 set dummy $ac_prog; ac_word=$2 33796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33797 $as_echo_n "checking for $ac_word... " >&6; } 33798 if ${ac_cv_path_NM+:} false; then : 33799 $as_echo_n "(cached) " >&6 33800 else 33801 case $NM in 33802 [\\/]* | ?:[\\/]*) 33803 ac_cv_path_NM="$NM" # Let the user override the test with a path. 33804 ;; 33805 *) 33806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33807 for as_dir in $PATH 33808 do 33809 IFS=$as_save_IFS 33810 test -z "$as_dir" && as_dir=. 33811 for ac_exec_ext in '' $ac_executable_extensions; do 33812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33813 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 33814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33815 break 2 33816 fi 33817 done 33818 done 33819 IFS=$as_save_IFS 33820 33821 ;; 33822 esac 33823 fi 33824 NM=$ac_cv_path_NM 33825 if test -n "$NM"; then 33826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 33827 $as_echo "$NM" >&6; } 33828 else 33829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33830 $as_echo "no" >&6; } 33831 fi 33832 33833 33834 test -n "$NM" && break 33835 done 33836 33837 else 33838 # The variable is set, but is it from the command line or the environment? 33839 33840 # Try to remove the string !NM! from our list. 33841 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 33842 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 33843 # If it failed, the variable was not from the command line. Ignore it, 33844 # but warn the user (except for BASH, which is always set by the calling BASH). 33845 if test "xNM" != xBASH; then 33846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 33847 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 33848 fi 33849 # Try to locate tool using the code snippet 33850 for ac_prog in nm 33851 do 33852 # Extract the first word of "$ac_prog", so it can be a program name with args. 33853 set dummy $ac_prog; ac_word=$2 33854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33855 $as_echo_n "checking for $ac_word... " >&6; } 33856 if ${ac_cv_path_NM+:} false; then : 33857 $as_echo_n "(cached) " >&6 33858 else 33859 case $NM in 33860 [\\/]* | ?:[\\/]*) 33861 ac_cv_path_NM="$NM" # Let the user override the test with a path. 33862 ;; 33863 *) 33864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33865 for as_dir in $PATH 33866 do 33867 IFS=$as_save_IFS 33868 test -z "$as_dir" && as_dir=. 33869 for ac_exec_ext in '' $ac_executable_extensions; do 33870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33871 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 33872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33873 break 2 33874 fi 33875 done 33876 done 33877 IFS=$as_save_IFS 33878 33879 ;; 33880 esac 33881 fi 33882 NM=$ac_cv_path_NM 33883 if test -n "$NM"; then 33884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 33885 $as_echo "$NM" >&6; } 33886 else 33887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33888 $as_echo "no" >&6; } 33889 fi 33890 33891 33892 test -n "$NM" && break 33893 done 33894 33895 else 33896 # If it succeeded, then it was overridden by the user. We will use it 33897 # for the tool. 33898 33899 # First remove it from the list of overridden variables, so we can test 33900 # for unknown variables in the end. 33901 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 33902 33903 # Check if the provided tool contains a complete path. 33904 tool_specified="$NM" 33905 tool_basename="${tool_specified##*/}" 33906 if test "x$tool_basename" = "x$tool_specified"; then 33907 # A command without a complete path is provided, search $PATH. 33908 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 33909 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 33910 # Extract the first word of "$tool_basename", so it can be a program name with args. 33911 set dummy $tool_basename; ac_word=$2 33912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 33913 $as_echo_n "checking for $ac_word... " >&6; } 33914 if ${ac_cv_path_NM+:} false; then : 33915 $as_echo_n "(cached) " >&6 33916 else 33917 case $NM in 33918 [\\/]* | ?:[\\/]*) 33919 ac_cv_path_NM="$NM" # Let the user override the test with a path. 33920 ;; 33921 *) 33922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 33923 for as_dir in $PATH 33924 do 33925 IFS=$as_save_IFS 33926 test -z "$as_dir" && as_dir=. 33927 for ac_exec_ext in '' $ac_executable_extensions; do 33928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 33929 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 33930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 33931 break 2 33932 fi 33933 done 33934 done 33935 IFS=$as_save_IFS 33936 33937 ;; 33938 esac 33939 fi 33940 NM=$ac_cv_path_NM 33941 if test -n "$NM"; then 33942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 33943 $as_echo "$NM" >&6; } 33944 else 33945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 33946 $as_echo "no" >&6; } 33947 fi 33948 33949 33950 if test "x$NM" = x; then 33951 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 33952 fi 33953 else 33954 # Otherwise we believe it is a complete path. Use it as it is. 33955 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 33956 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 33957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 33958 $as_echo_n "checking for NM... " >&6; } 33959 if test ! -x "$tool_specified"; then 33960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 33961 $as_echo "not found" >&6; } 33962 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 33963 fi 33964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 33965 $as_echo "$tool_specified" >&6; } 33966 fi 33967 fi 33968 fi 33969 33970 33971 33972 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 33973 33974 # First separate the path from the arguments. This will split at the first 33975 # space. 33976 complete="$NM" 33977 path="${complete%% *}" 33978 tmp="$complete EOL" 33979 arguments="${tmp#* }" 33980 33981 # Input might be given as Windows format, start by converting to 33982 # unix format. 33983 new_path=`$CYGPATH -u "$path"` 33984 33985 # Now try to locate executable using which 33986 new_path=`$WHICH "$new_path" 2> /dev/null` 33987 # bat and cmd files are not always considered executable in cygwin causing which 33988 # to not find them 33989 if test "x$new_path" = x \ 33990 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 33991 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 33992 new_path=`$CYGPATH -u "$path"` 33993 fi 33994 if test "x$new_path" = x; then 33995 # Oops. Which didn't find the executable. 33996 # The splitting of arguments from the executable at a space might have been incorrect, 33997 # since paths with space are more likely in Windows. Give it another try with the whole 33998 # argument. 33999 path="$complete" 34000 arguments="EOL" 34001 new_path=`$CYGPATH -u "$path"` 34002 new_path=`$WHICH "$new_path" 2> /dev/null` 34003 # bat and cmd files are not always considered executable in cygwin causing which 34004 # to not find them 34005 if test "x$new_path" = x \ 34006 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34007 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34008 new_path=`$CYGPATH -u "$path"` 34009 fi 34010 if test "x$new_path" = x; then 34011 # It's still not found. Now this is an unrecoverable error. 34012 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 34013 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 34014 has_space=`$ECHO "$complete" | $GREP " "` 34015 if test "x$has_space" != x; then 34016 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34017 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34018 fi 34019 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34020 fi 34021 fi 34022 34023 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34024 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34025 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34026 # "foo.exe" is OK but "foo" is an error. 34027 # 34028 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34029 # It is also a way to make sure we got the proper file name for the real test later on. 34030 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34031 if test "x$test_shortpath" = x; then 34032 # Short path failed, file does not exist as specified. 34033 # Try adding .exe or .cmd 34034 if test -f "${new_path}.exe"; then 34035 input_to_shortpath="${new_path}.exe" 34036 elif test -f "${new_path}.cmd"; then 34037 input_to_shortpath="${new_path}.cmd" 34038 else 34039 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 34040 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 34041 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34042 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34043 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34044 fi 34045 else 34046 input_to_shortpath="$new_path" 34047 fi 34048 34049 # Call helper function which possibly converts this using DOS-style short mode. 34050 # If so, the updated path is stored in $new_path. 34051 new_path="$input_to_shortpath" 34052 34053 input_path="$input_to_shortpath" 34054 # Check if we need to convert this using DOS-style short mode. If the path 34055 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34056 # take no chances and rewrite it. 34057 # Note: m4 eats our [], so we need to use [ and ] instead. 34058 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34059 if test "x$has_forbidden_chars" != x; then 34060 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34061 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34062 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34063 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34064 # Going to short mode and back again did indeed matter. Since short mode is 34065 # case insensitive, let's make it lowercase to improve readability. 34066 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34067 # Now convert it back to Unix-stile (cygpath) 34068 input_path=`$CYGPATH -u "$shortmode_path"` 34069 new_path="$input_path" 34070 fi 34071 fi 34072 34073 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34074 if test "x$test_cygdrive_prefix" = x; then 34075 # As a simple fix, exclude /usr/bin since it's not a real path. 34076 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34077 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34078 # a path prefixed by /cygdrive for fixpath to work. 34079 new_path="$CYGWIN_ROOT_PATH$input_path" 34080 fi 34081 fi 34082 34083 # remove trailing .exe if any 34084 new_path="${new_path/%.exe/}" 34085 34086 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34087 34088 # First separate the path from the arguments. This will split at the first 34089 # space. 34090 complete="$NM" 34091 path="${complete%% *}" 34092 tmp="$complete EOL" 34093 arguments="${tmp#* }" 34094 34095 # Input might be given as Windows format, start by converting to 34096 # unix format. 34097 new_path="$path" 34098 34099 windows_path="$new_path" 34100 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34101 unix_path=`$CYGPATH -u "$windows_path"` 34102 new_path="$unix_path" 34103 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34104 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34105 new_path="$unix_path" 34106 fi 34107 34108 34109 # Now try to locate executable using which 34110 new_path=`$WHICH "$new_path" 2> /dev/null` 34111 34112 if test "x$new_path" = x; then 34113 # Oops. Which didn't find the executable. 34114 # The splitting of arguments from the executable at a space might have been incorrect, 34115 # since paths with space are more likely in Windows. Give it another try with the whole 34116 # argument. 34117 path="$complete" 34118 arguments="EOL" 34119 new_path="$path" 34120 34121 windows_path="$new_path" 34122 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34123 unix_path=`$CYGPATH -u "$windows_path"` 34124 new_path="$unix_path" 34125 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34126 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34127 new_path="$unix_path" 34128 fi 34129 34130 34131 new_path=`$WHICH "$new_path" 2> /dev/null` 34132 34133 if test "x$new_path" = x; then 34134 # It's still not found. Now this is an unrecoverable error. 34135 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 34136 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 34137 has_space=`$ECHO "$complete" | $GREP " "` 34138 if test "x$has_space" != x; then 34139 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34140 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34141 fi 34142 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34143 fi 34144 fi 34145 34146 # Now new_path has a complete unix path to the binary 34147 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34148 # Keep paths in /bin as-is, but remove trailing .exe if any 34149 new_path="${new_path/%.exe/}" 34150 # Do not save /bin paths to all_fixpath_prefixes! 34151 else 34152 # Not in mixed or Windows style, start by that. 34153 new_path=`cmd //c echo $new_path` 34154 34155 input_path="$new_path" 34156 # Check if we need to convert this using DOS-style short mode. If the path 34157 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34158 # take no chances and rewrite it. 34159 # Note: m4 eats our [], so we need to use [ and ] instead. 34160 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34161 if test "x$has_forbidden_chars" != x; then 34162 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34163 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34164 fi 34165 34166 # Output is in $new_path 34167 34168 windows_path="$new_path" 34169 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34170 unix_path=`$CYGPATH -u "$windows_path"` 34171 new_path="$unix_path" 34172 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34173 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34174 new_path="$unix_path" 34175 fi 34176 34177 # remove trailing .exe if any 34178 new_path="${new_path/%.exe/}" 34179 34180 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34181 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34182 fi 34183 34184 else 34185 # We're on a posix platform. Hooray! :) 34186 # First separate the path from the arguments. This will split at the first 34187 # space. 34188 complete="$NM" 34189 path="${complete%% *}" 34190 tmp="$complete EOL" 34191 arguments="${tmp#* }" 34192 34193 # Cannot rely on the command "which" here since it doesn't always work. 34194 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34195 if test -z "$is_absolute_path"; then 34196 # Path to executable is not absolute. Find it. 34197 IFS_save="$IFS" 34198 IFS=: 34199 for p in $PATH; do 34200 if test -f "$p/$path" && test -x "$p/$path"; then 34201 new_path="$p/$path" 34202 break 34203 fi 34204 done 34205 IFS="$IFS_save" 34206 else 34207 # This is an absolute path, we can use it without further modifications. 34208 new_path="$path" 34209 fi 34210 34211 if test "x$new_path" = x; then 34212 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 34213 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 34214 has_space=`$ECHO "$complete" | $GREP " "` 34215 if test "x$has_space" != x; then 34216 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34217 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34218 fi 34219 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 34220 fi 34221 fi 34222 34223 # Now join together the path and the arguments once again 34224 if test "x$arguments" != xEOL; then 34225 new_complete="$new_path ${arguments% *}" 34226 else 34227 new_complete="$new_path" 34228 fi 34229 34230 if test "x$complete" != "x$new_complete"; then 34231 NM="$new_complete" 34232 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 34233 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 34234 fi 34235 34236 34237 34238 # Publish this variable in the help. 34239 34240 34241 if test "x$GNM" = x; then 34242 # The variable is not set by user, try to locate tool using the code snippet 34243 for ac_prog in gnm 34244 do 34245 # Extract the first word of "$ac_prog", so it can be a program name with args. 34246 set dummy $ac_prog; ac_word=$2 34247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34248 $as_echo_n "checking for $ac_word... " >&6; } 34249 if ${ac_cv_path_GNM+:} false; then : 34250 $as_echo_n "(cached) " >&6 34251 else 34252 case $GNM in 34253 [\\/]* | ?:[\\/]*) 34254 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 34255 ;; 34256 *) 34257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34258 for as_dir in $PATH 34259 do 34260 IFS=$as_save_IFS 34261 test -z "$as_dir" && as_dir=. 34262 for ac_exec_ext in '' $ac_executable_extensions; do 34263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34264 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 34265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34266 break 2 34267 fi 34268 done 34269 done 34270 IFS=$as_save_IFS 34271 34272 ;; 34273 esac 34274 fi 34275 GNM=$ac_cv_path_GNM 34276 if test -n "$GNM"; then 34277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 34278 $as_echo "$GNM" >&6; } 34279 else 34280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34281 $as_echo "no" >&6; } 34282 fi 34283 34284 34285 test -n "$GNM" && break 34286 done 34287 34288 else 34289 # The variable is set, but is it from the command line or the environment? 34290 34291 # Try to remove the string !GNM! from our list. 34292 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!GNM!/} 34293 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34294 # If it failed, the variable was not from the command line. Ignore it, 34295 # but warn the user (except for BASH, which is always set by the calling BASH). 34296 if test "xGNM" != xBASH; then 34297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&5 34298 $as_echo "$as_me: WARNING: Ignoring value of GNM from the environment. Use command line variables instead." >&2;} 34299 fi 34300 # Try to locate tool using the code snippet 34301 for ac_prog in gnm 34302 do 34303 # Extract the first word of "$ac_prog", so it can be a program name with args. 34304 set dummy $ac_prog; ac_word=$2 34305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34306 $as_echo_n "checking for $ac_word... " >&6; } 34307 if ${ac_cv_path_GNM+:} false; then : 34308 $as_echo_n "(cached) " >&6 34309 else 34310 case $GNM in 34311 [\\/]* | ?:[\\/]*) 34312 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 34313 ;; 34314 *) 34315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34316 for as_dir in $PATH 34317 do 34318 IFS=$as_save_IFS 34319 test -z "$as_dir" && as_dir=. 34320 for ac_exec_ext in '' $ac_executable_extensions; do 34321 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34322 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 34323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34324 break 2 34325 fi 34326 done 34327 done 34328 IFS=$as_save_IFS 34329 34330 ;; 34331 esac 34332 fi 34333 GNM=$ac_cv_path_GNM 34334 if test -n "$GNM"; then 34335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 34336 $as_echo "$GNM" >&6; } 34337 else 34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34339 $as_echo "no" >&6; } 34340 fi 34341 34342 34343 test -n "$GNM" && break 34344 done 34345 34346 else 34347 # If it succeeded, then it was overridden by the user. We will use it 34348 # for the tool. 34349 34350 # First remove it from the list of overridden variables, so we can test 34351 # for unknown variables in the end. 34352 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34353 34354 # Check if the provided tool contains a complete path. 34355 tool_specified="$GNM" 34356 tool_basename="${tool_specified##*/}" 34357 if test "x$tool_basename" = "x$tool_specified"; then 34358 # A command without a complete path is provided, search $PATH. 34359 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool GNM=$tool_basename" >&5 34360 $as_echo "$as_me: Will search for user supplied tool GNM=$tool_basename" >&6;} 34361 # Extract the first word of "$tool_basename", so it can be a program name with args. 34362 set dummy $tool_basename; ac_word=$2 34363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34364 $as_echo_n "checking for $ac_word... " >&6; } 34365 if ${ac_cv_path_GNM+:} false; then : 34366 $as_echo_n "(cached) " >&6 34367 else 34368 case $GNM in 34369 [\\/]* | ?:[\\/]*) 34370 ac_cv_path_GNM="$GNM" # Let the user override the test with a path. 34371 ;; 34372 *) 34373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34374 for as_dir in $PATH 34375 do 34376 IFS=$as_save_IFS 34377 test -z "$as_dir" && as_dir=. 34378 for ac_exec_ext in '' $ac_executable_extensions; do 34379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34380 ac_cv_path_GNM="$as_dir/$ac_word$ac_exec_ext" 34381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34382 break 2 34383 fi 34384 done 34385 done 34386 IFS=$as_save_IFS 34387 34388 ;; 34389 esac 34390 fi 34391 GNM=$ac_cv_path_GNM 34392 if test -n "$GNM"; then 34393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNM" >&5 34394 $as_echo "$GNM" >&6; } 34395 else 34396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34397 $as_echo "no" >&6; } 34398 fi 34399 34400 34401 if test "x$GNM" = x; then 34402 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34403 fi 34404 else 34405 # Otherwise we believe it is a complete path. Use it as it is. 34406 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool GNM=$tool_specified" >&5 34407 $as_echo "$as_me: Will use user supplied tool GNM=$tool_specified" >&6;} 34408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNM" >&5 34409 $as_echo_n "checking for GNM... " >&6; } 34410 if test ! -x "$tool_specified"; then 34411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34412 $as_echo "not found" >&6; } 34413 as_fn_error $? "User supplied tool GNM=$tool_specified does not exist or is not executable" "$LINENO" 5 34414 fi 34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34416 $as_echo "$tool_specified" >&6; } 34417 fi 34418 fi 34419 fi 34420 34421 34422 34423 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34424 34425 # First separate the path from the arguments. This will split at the first 34426 # space. 34427 complete="$GNM" 34428 path="${complete%% *}" 34429 tmp="$complete EOL" 34430 arguments="${tmp#* }" 34431 34432 # Input might be given as Windows format, start by converting to 34433 # unix format. 34434 new_path=`$CYGPATH -u "$path"` 34435 34436 # Now try to locate executable using which 34437 new_path=`$WHICH "$new_path" 2> /dev/null` 34438 # bat and cmd files are not always considered executable in cygwin causing which 34439 # to not find them 34440 if test "x$new_path" = x \ 34441 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34442 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34443 new_path=`$CYGPATH -u "$path"` 34444 fi 34445 if test "x$new_path" = x; then 34446 # Oops. Which didn't find the executable. 34447 # The splitting of arguments from the executable at a space might have been incorrect, 34448 # since paths with space are more likely in Windows. Give it another try with the whole 34449 # argument. 34450 path="$complete" 34451 arguments="EOL" 34452 new_path=`$CYGPATH -u "$path"` 34453 new_path=`$WHICH "$new_path" 2> /dev/null` 34454 # bat and cmd files are not always considered executable in cygwin causing which 34455 # to not find them 34456 if test "x$new_path" = x \ 34457 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34458 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34459 new_path=`$CYGPATH -u "$path"` 34460 fi 34461 if test "x$new_path" = x; then 34462 # It's still not found. Now this is an unrecoverable error. 34463 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 34464 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 34465 has_space=`$ECHO "$complete" | $GREP " "` 34466 if test "x$has_space" != x; then 34467 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34468 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34469 fi 34470 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34471 fi 34472 fi 34473 34474 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34475 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34476 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34477 # "foo.exe" is OK but "foo" is an error. 34478 # 34479 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34480 # It is also a way to make sure we got the proper file name for the real test later on. 34481 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34482 if test "x$test_shortpath" = x; then 34483 # Short path failed, file does not exist as specified. 34484 # Try adding .exe or .cmd 34485 if test -f "${new_path}.exe"; then 34486 input_to_shortpath="${new_path}.exe" 34487 elif test -f "${new_path}.cmd"; then 34488 input_to_shortpath="${new_path}.cmd" 34489 else 34490 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$new_path\", is invalid." >&5 34491 $as_echo "$as_me: The path of GNM, which resolves as \"$new_path\", is invalid." >&6;} 34492 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34493 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34494 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34495 fi 34496 else 34497 input_to_shortpath="$new_path" 34498 fi 34499 34500 # Call helper function which possibly converts this using DOS-style short mode. 34501 # If so, the updated path is stored in $new_path. 34502 new_path="$input_to_shortpath" 34503 34504 input_path="$input_to_shortpath" 34505 # Check if we need to convert this using DOS-style short mode. If the path 34506 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34507 # take no chances and rewrite it. 34508 # Note: m4 eats our [], so we need to use [ and ] instead. 34509 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34510 if test "x$has_forbidden_chars" != x; then 34511 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34512 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34513 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34514 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34515 # Going to short mode and back again did indeed matter. Since short mode is 34516 # case insensitive, let's make it lowercase to improve readability. 34517 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34518 # Now convert it back to Unix-stile (cygpath) 34519 input_path=`$CYGPATH -u "$shortmode_path"` 34520 new_path="$input_path" 34521 fi 34522 fi 34523 34524 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34525 if test "x$test_cygdrive_prefix" = x; then 34526 # As a simple fix, exclude /usr/bin since it's not a real path. 34527 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34528 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34529 # a path prefixed by /cygdrive for fixpath to work. 34530 new_path="$CYGWIN_ROOT_PATH$input_path" 34531 fi 34532 fi 34533 34534 # remove trailing .exe if any 34535 new_path="${new_path/%.exe/}" 34536 34537 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34538 34539 # First separate the path from the arguments. This will split at the first 34540 # space. 34541 complete="$GNM" 34542 path="${complete%% *}" 34543 tmp="$complete EOL" 34544 arguments="${tmp#* }" 34545 34546 # Input might be given as Windows format, start by converting to 34547 # unix format. 34548 new_path="$path" 34549 34550 windows_path="$new_path" 34551 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34552 unix_path=`$CYGPATH -u "$windows_path"` 34553 new_path="$unix_path" 34554 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34555 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34556 new_path="$unix_path" 34557 fi 34558 34559 34560 # Now try to locate executable using which 34561 new_path=`$WHICH "$new_path" 2> /dev/null` 34562 34563 if test "x$new_path" = x; then 34564 # Oops. Which didn't find the executable. 34565 # The splitting of arguments from the executable at a space might have been incorrect, 34566 # since paths with space are more likely in Windows. Give it another try with the whole 34567 # argument. 34568 path="$complete" 34569 arguments="EOL" 34570 new_path="$path" 34571 34572 windows_path="$new_path" 34573 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34574 unix_path=`$CYGPATH -u "$windows_path"` 34575 new_path="$unix_path" 34576 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34577 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34578 new_path="$unix_path" 34579 fi 34580 34581 34582 new_path=`$WHICH "$new_path" 2> /dev/null` 34583 34584 if test "x$new_path" = x; then 34585 # It's still not found. Now this is an unrecoverable error. 34586 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 34587 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 34588 has_space=`$ECHO "$complete" | $GREP " "` 34589 if test "x$has_space" != x; then 34590 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34591 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34592 fi 34593 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34594 fi 34595 fi 34596 34597 # Now new_path has a complete unix path to the binary 34598 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 34599 # Keep paths in /bin as-is, but remove trailing .exe if any 34600 new_path="${new_path/%.exe/}" 34601 # Do not save /bin paths to all_fixpath_prefixes! 34602 else 34603 # Not in mixed or Windows style, start by that. 34604 new_path=`cmd //c echo $new_path` 34605 34606 input_path="$new_path" 34607 # Check if we need to convert this using DOS-style short mode. If the path 34608 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34609 # take no chances and rewrite it. 34610 # Note: m4 eats our [], so we need to use [ and ] instead. 34611 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 34612 if test "x$has_forbidden_chars" != x; then 34613 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34614 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34615 fi 34616 34617 # Output is in $new_path 34618 34619 windows_path="$new_path" 34620 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34621 unix_path=`$CYGPATH -u "$windows_path"` 34622 new_path="$unix_path" 34623 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34624 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 34625 new_path="$unix_path" 34626 fi 34627 34628 # remove trailing .exe if any 34629 new_path="${new_path/%.exe/}" 34630 34631 # Save the first 10 bytes of this path to the storage, so fixpath can work. 34632 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 34633 fi 34634 34635 else 34636 # We're on a posix platform. Hooray! :) 34637 # First separate the path from the arguments. This will split at the first 34638 # space. 34639 complete="$GNM" 34640 path="${complete%% *}" 34641 tmp="$complete EOL" 34642 arguments="${tmp#* }" 34643 34644 # Cannot rely on the command "which" here since it doesn't always work. 34645 is_absolute_path=`$ECHO "$path" | $GREP ^/` 34646 if test -z "$is_absolute_path"; then 34647 # Path to executable is not absolute. Find it. 34648 IFS_save="$IFS" 34649 IFS=: 34650 for p in $PATH; do 34651 if test -f "$p/$path" && test -x "$p/$path"; then 34652 new_path="$p/$path" 34653 break 34654 fi 34655 done 34656 IFS="$IFS_save" 34657 else 34658 # This is an absolute path, we can use it without further modifications. 34659 new_path="$path" 34660 fi 34661 34662 if test "x$new_path" = x; then 34663 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of GNM, which resolves as \"$complete\", is not found." >&5 34664 $as_echo "$as_me: The path of GNM, which resolves as \"$complete\", is not found." >&6;} 34665 has_space=`$ECHO "$complete" | $GREP " "` 34666 if test "x$has_space" != x; then 34667 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 34668 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 34669 fi 34670 as_fn_error $? "Cannot locate the the path of GNM" "$LINENO" 5 34671 fi 34672 fi 34673 34674 # Now join together the path and the arguments once again 34675 if test "x$arguments" != xEOL; then 34676 new_complete="$new_path ${arguments% *}" 34677 else 34678 new_complete="$new_path" 34679 fi 34680 34681 if test "x$complete" != "x$new_complete"; then 34682 GNM="$new_complete" 34683 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting GNM to \"$new_complete\"" >&5 34684 $as_echo "$as_me: Rewriting GNM to \"$new_complete\"" >&6;} 34685 fi 34686 34687 34688 34689 34690 # Publish this variable in the help. 34691 34692 34693 if test "x$MCS" = x; then 34694 # The variable is not set by user, try to locate tool using the code snippet 34695 for ac_prog in mcs 34696 do 34697 # Extract the first word of "$ac_prog", so it can be a program name with args. 34698 set dummy $ac_prog; ac_word=$2 34699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34700 $as_echo_n "checking for $ac_word... " >&6; } 34701 if ${ac_cv_path_MCS+:} false; then : 34702 $as_echo_n "(cached) " >&6 34703 else 34704 case $MCS in 34705 [\\/]* | ?:[\\/]*) 34706 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 34707 ;; 34708 *) 34709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34710 for as_dir in $PATH 34711 do 34712 IFS=$as_save_IFS 34713 test -z "$as_dir" && as_dir=. 34714 for ac_exec_ext in '' $ac_executable_extensions; do 34715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34716 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 34717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34718 break 2 34719 fi 34720 done 34721 done 34722 IFS=$as_save_IFS 34723 34724 ;; 34725 esac 34726 fi 34727 MCS=$ac_cv_path_MCS 34728 if test -n "$MCS"; then 34729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 34730 $as_echo "$MCS" >&6; } 34731 else 34732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34733 $as_echo "no" >&6; } 34734 fi 34735 34736 34737 test -n "$MCS" && break 34738 done 34739 34740 else 34741 # The variable is set, but is it from the command line or the environment? 34742 34743 # Try to remove the string !MCS! from our list. 34744 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!MCS!/} 34745 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 34746 # If it failed, the variable was not from the command line. Ignore it, 34747 # but warn the user (except for BASH, which is always set by the calling BASH). 34748 if test "xMCS" != xBASH; then 34749 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&5 34750 $as_echo "$as_me: WARNING: Ignoring value of MCS from the environment. Use command line variables instead." >&2;} 34751 fi 34752 # Try to locate tool using the code snippet 34753 for ac_prog in mcs 34754 do 34755 # Extract the first word of "$ac_prog", so it can be a program name with args. 34756 set dummy $ac_prog; ac_word=$2 34757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34758 $as_echo_n "checking for $ac_word... " >&6; } 34759 if ${ac_cv_path_MCS+:} false; then : 34760 $as_echo_n "(cached) " >&6 34761 else 34762 case $MCS in 34763 [\\/]* | ?:[\\/]*) 34764 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 34765 ;; 34766 *) 34767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34768 for as_dir in $PATH 34769 do 34770 IFS=$as_save_IFS 34771 test -z "$as_dir" && as_dir=. 34772 for ac_exec_ext in '' $ac_executable_extensions; do 34773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34774 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 34775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34776 break 2 34777 fi 34778 done 34779 done 34780 IFS=$as_save_IFS 34781 34782 ;; 34783 esac 34784 fi 34785 MCS=$ac_cv_path_MCS 34786 if test -n "$MCS"; then 34787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 34788 $as_echo "$MCS" >&6; } 34789 else 34790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34791 $as_echo "no" >&6; } 34792 fi 34793 34794 34795 test -n "$MCS" && break 34796 done 34797 34798 else 34799 # If it succeeded, then it was overridden by the user. We will use it 34800 # for the tool. 34801 34802 # First remove it from the list of overridden variables, so we can test 34803 # for unknown variables in the end. 34804 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 34805 34806 # Check if the provided tool contains a complete path. 34807 tool_specified="$MCS" 34808 tool_basename="${tool_specified##*/}" 34809 if test "x$tool_basename" = "x$tool_specified"; then 34810 # A command without a complete path is provided, search $PATH. 34811 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool MCS=$tool_basename" >&5 34812 $as_echo "$as_me: Will search for user supplied tool MCS=$tool_basename" >&6;} 34813 # Extract the first word of "$tool_basename", so it can be a program name with args. 34814 set dummy $tool_basename; ac_word=$2 34815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 34816 $as_echo_n "checking for $ac_word... " >&6; } 34817 if ${ac_cv_path_MCS+:} false; then : 34818 $as_echo_n "(cached) " >&6 34819 else 34820 case $MCS in 34821 [\\/]* | ?:[\\/]*) 34822 ac_cv_path_MCS="$MCS" # Let the user override the test with a path. 34823 ;; 34824 *) 34825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 34826 for as_dir in $PATH 34827 do 34828 IFS=$as_save_IFS 34829 test -z "$as_dir" && as_dir=. 34830 for ac_exec_ext in '' $ac_executable_extensions; do 34831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 34832 ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext" 34833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 34834 break 2 34835 fi 34836 done 34837 done 34838 IFS=$as_save_IFS 34839 34840 ;; 34841 esac 34842 fi 34843 MCS=$ac_cv_path_MCS 34844 if test -n "$MCS"; then 34845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5 34846 $as_echo "$MCS" >&6; } 34847 else 34848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 34849 $as_echo "no" >&6; } 34850 fi 34851 34852 34853 if test "x$MCS" = x; then 34854 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 34855 fi 34856 else 34857 # Otherwise we believe it is a complete path. Use it as it is. 34858 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool MCS=$tool_specified" >&5 34859 $as_echo "$as_me: Will use user supplied tool MCS=$tool_specified" >&6;} 34860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MCS" >&5 34861 $as_echo_n "checking for MCS... " >&6; } 34862 if test ! -x "$tool_specified"; then 34863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 34864 $as_echo "not found" >&6; } 34865 as_fn_error $? "User supplied tool MCS=$tool_specified does not exist or is not executable" "$LINENO" 5 34866 fi 34867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 34868 $as_echo "$tool_specified" >&6; } 34869 fi 34870 fi 34871 fi 34872 34873 34874 34875 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 34876 34877 # First separate the path from the arguments. This will split at the first 34878 # space. 34879 complete="$MCS" 34880 path="${complete%% *}" 34881 tmp="$complete EOL" 34882 arguments="${tmp#* }" 34883 34884 # Input might be given as Windows format, start by converting to 34885 # unix format. 34886 new_path=`$CYGPATH -u "$path"` 34887 34888 # Now try to locate executable using which 34889 new_path=`$WHICH "$new_path" 2> /dev/null` 34890 # bat and cmd files are not always considered executable in cygwin causing which 34891 # to not find them 34892 if test "x$new_path" = x \ 34893 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34894 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34895 new_path=`$CYGPATH -u "$path"` 34896 fi 34897 if test "x$new_path" = x; then 34898 # Oops. Which didn't find the executable. 34899 # The splitting of arguments from the executable at a space might have been incorrect, 34900 # since paths with space are more likely in Windows. Give it another try with the whole 34901 # argument. 34902 path="$complete" 34903 arguments="EOL" 34904 new_path=`$CYGPATH -u "$path"` 34905 new_path=`$WHICH "$new_path" 2> /dev/null` 34906 # bat and cmd files are not always considered executable in cygwin causing which 34907 # to not find them 34908 if test "x$new_path" = x \ 34909 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 34910 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 34911 new_path=`$CYGPATH -u "$path"` 34912 fi 34913 if test "x$new_path" = x; then 34914 # It's still not found. Now this is an unrecoverable error. 34915 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 34916 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 34917 has_space=`$ECHO "$complete" | $GREP " "` 34918 if test "x$has_space" != x; then 34919 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 34920 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 34921 fi 34922 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 34923 fi 34924 fi 34925 34926 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 34927 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 34928 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 34929 # "foo.exe" is OK but "foo" is an error. 34930 # 34931 # This test is therefore slightly more accurate than "test -f" to check for file presence. 34932 # It is also a way to make sure we got the proper file name for the real test later on. 34933 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 34934 if test "x$test_shortpath" = x; then 34935 # Short path failed, file does not exist as specified. 34936 # Try adding .exe or .cmd 34937 if test -f "${new_path}.exe"; then 34938 input_to_shortpath="${new_path}.exe" 34939 elif test -f "${new_path}.cmd"; then 34940 input_to_shortpath="${new_path}.cmd" 34941 else 34942 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$new_path\", is invalid." >&5 34943 $as_echo "$as_me: The path of MCS, which resolves as \"$new_path\", is invalid." >&6;} 34944 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 34945 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 34946 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 34947 fi 34948 else 34949 input_to_shortpath="$new_path" 34950 fi 34951 34952 # Call helper function which possibly converts this using DOS-style short mode. 34953 # If so, the updated path is stored in $new_path. 34954 new_path="$input_to_shortpath" 34955 34956 input_path="$input_to_shortpath" 34957 # Check if we need to convert this using DOS-style short mode. If the path 34958 # contains just simple characters, use it. Otherwise (spaces, weird characters), 34959 # take no chances and rewrite it. 34960 # Note: m4 eats our [], so we need to use [ and ] instead. 34961 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 34962 if test "x$has_forbidden_chars" != x; then 34963 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 34964 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 34965 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 34966 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 34967 # Going to short mode and back again did indeed matter. Since short mode is 34968 # case insensitive, let's make it lowercase to improve readability. 34969 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 34970 # Now convert it back to Unix-stile (cygpath) 34971 input_path=`$CYGPATH -u "$shortmode_path"` 34972 new_path="$input_path" 34973 fi 34974 fi 34975 34976 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 34977 if test "x$test_cygdrive_prefix" = x; then 34978 # As a simple fix, exclude /usr/bin since it's not a real path. 34979 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 34980 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 34981 # a path prefixed by /cygdrive for fixpath to work. 34982 new_path="$CYGWIN_ROOT_PATH$input_path" 34983 fi 34984 fi 34985 34986 # remove trailing .exe if any 34987 new_path="${new_path/%.exe/}" 34988 34989 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 34990 34991 # First separate the path from the arguments. This will split at the first 34992 # space. 34993 complete="$MCS" 34994 path="${complete%% *}" 34995 tmp="$complete EOL" 34996 arguments="${tmp#* }" 34997 34998 # Input might be given as Windows format, start by converting to 34999 # unix format. 35000 new_path="$path" 35001 35002 windows_path="$new_path" 35003 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35004 unix_path=`$CYGPATH -u "$windows_path"` 35005 new_path="$unix_path" 35006 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35007 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35008 new_path="$unix_path" 35009 fi 35010 35011 35012 # Now try to locate executable using which 35013 new_path=`$WHICH "$new_path" 2> /dev/null` 35014 35015 if test "x$new_path" = x; then 35016 # Oops. Which didn't find the executable. 35017 # The splitting of arguments from the executable at a space might have been incorrect, 35018 # since paths with space are more likely in Windows. Give it another try with the whole 35019 # argument. 35020 path="$complete" 35021 arguments="EOL" 35022 new_path="$path" 35023 35024 windows_path="$new_path" 35025 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35026 unix_path=`$CYGPATH -u "$windows_path"` 35027 new_path="$unix_path" 35028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35029 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35030 new_path="$unix_path" 35031 fi 35032 35033 35034 new_path=`$WHICH "$new_path" 2> /dev/null` 35035 35036 if test "x$new_path" = x; then 35037 # It's still not found. Now this is an unrecoverable error. 35038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 35039 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 35040 has_space=`$ECHO "$complete" | $GREP " "` 35041 if test "x$has_space" != x; then 35042 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35043 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35044 fi 35045 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 35046 fi 35047 fi 35048 35049 # Now new_path has a complete unix path to the binary 35050 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35051 # Keep paths in /bin as-is, but remove trailing .exe if any 35052 new_path="${new_path/%.exe/}" 35053 # Do not save /bin paths to all_fixpath_prefixes! 35054 else 35055 # Not in mixed or Windows style, start by that. 35056 new_path=`cmd //c echo $new_path` 35057 35058 input_path="$new_path" 35059 # Check if we need to convert this using DOS-style short mode. If the path 35060 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35061 # take no chances and rewrite it. 35062 # Note: m4 eats our [], so we need to use [ and ] instead. 35063 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35064 if test "x$has_forbidden_chars" != x; then 35065 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35066 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35067 fi 35068 35069 # Output is in $new_path 35070 35071 windows_path="$new_path" 35072 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35073 unix_path=`$CYGPATH -u "$windows_path"` 35074 new_path="$unix_path" 35075 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35076 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35077 new_path="$unix_path" 35078 fi 35079 35080 # remove trailing .exe if any 35081 new_path="${new_path/%.exe/}" 35082 35083 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35084 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35085 fi 35086 35087 else 35088 # We're on a posix platform. Hooray! :) 35089 # First separate the path from the arguments. This will split at the first 35090 # space. 35091 complete="$MCS" 35092 path="${complete%% *}" 35093 tmp="$complete EOL" 35094 arguments="${tmp#* }" 35095 35096 # Cannot rely on the command "which" here since it doesn't always work. 35097 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35098 if test -z "$is_absolute_path"; then 35099 # Path to executable is not absolute. Find it. 35100 IFS_save="$IFS" 35101 IFS=: 35102 for p in $PATH; do 35103 if test -f "$p/$path" && test -x "$p/$path"; then 35104 new_path="$p/$path" 35105 break 35106 fi 35107 done 35108 IFS="$IFS_save" 35109 else 35110 # This is an absolute path, we can use it without further modifications. 35111 new_path="$path" 35112 fi 35113 35114 if test "x$new_path" = x; then 35115 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MCS, which resolves as \"$complete\", is not found." >&5 35116 $as_echo "$as_me: The path of MCS, which resolves as \"$complete\", is not found." >&6;} 35117 has_space=`$ECHO "$complete" | $GREP " "` 35118 if test "x$has_space" != x; then 35119 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35120 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35121 fi 35122 as_fn_error $? "Cannot locate the the path of MCS" "$LINENO" 5 35123 fi 35124 fi 35125 35126 # Now join together the path and the arguments once again 35127 if test "x$arguments" != xEOL; then 35128 new_complete="$new_path ${arguments% *}" 35129 else 35130 new_complete="$new_path" 35131 fi 35132 35133 if test "x$complete" != "x$new_complete"; then 35134 MCS="$new_complete" 35135 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MCS to \"$new_complete\"" >&5 35136 $as_echo "$as_me: Rewriting MCS to \"$new_complete\"" >&6;} 35137 fi 35138 35139 elif test "x$OPENJDK_TARGET_OS" != xwindows; then 35140 # FIXME: we should unify this with the solaris case above. 35141 35142 35143 # Publish this variable in the help. 35144 35145 35146 if test "x$STRIP" = x; then 35147 # The variable is not set by user, try to locate tool using the code snippet 35148 if test -n "$ac_tool_prefix"; then 35149 for ac_prog in strip 35150 do 35151 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35152 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35154 $as_echo_n "checking for $ac_word... " >&6; } 35155 if ${ac_cv_prog_STRIP+:} false; then : 35156 $as_echo_n "(cached) " >&6 35157 else 35158 if test -n "$STRIP"; then 35159 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 35160 else 35161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35162 for as_dir in $PATH 35163 do 35164 IFS=$as_save_IFS 35165 test -z "$as_dir" && as_dir=. 35166 for ac_exec_ext in '' $ac_executable_extensions; do 35167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35168 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 35169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35170 break 2 35171 fi 35172 done 35173 done 35174 IFS=$as_save_IFS 35175 35176 fi 35177 fi 35178 STRIP=$ac_cv_prog_STRIP 35179 if test -n "$STRIP"; then 35180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35181 $as_echo "$STRIP" >&6; } 35182 else 35183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35184 $as_echo "no" >&6; } 35185 fi 35186 35187 35188 test -n "$STRIP" && break 35189 done 35190 fi 35191 if test -z "$STRIP"; then 35192 ac_ct_STRIP=$STRIP 35193 for ac_prog in strip 35194 do 35195 # Extract the first word of "$ac_prog", so it can be a program name with args. 35196 set dummy $ac_prog; ac_word=$2 35197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35198 $as_echo_n "checking for $ac_word... " >&6; } 35199 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 35200 $as_echo_n "(cached) " >&6 35201 else 35202 if test -n "$ac_ct_STRIP"; then 35203 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 35204 else 35205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35206 for as_dir in $PATH 35207 do 35208 IFS=$as_save_IFS 35209 test -z "$as_dir" && as_dir=. 35210 for ac_exec_ext in '' $ac_executable_extensions; do 35211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35212 ac_cv_prog_ac_ct_STRIP="$ac_prog" 35213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35214 break 2 35215 fi 35216 done 35217 done 35218 IFS=$as_save_IFS 35219 35220 fi 35221 fi 35222 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 35223 if test -n "$ac_ct_STRIP"; then 35224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 35225 $as_echo "$ac_ct_STRIP" >&6; } 35226 else 35227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35228 $as_echo "no" >&6; } 35229 fi 35230 35231 35232 test -n "$ac_ct_STRIP" && break 35233 done 35234 35235 if test "x$ac_ct_STRIP" = x; then 35236 STRIP="" 35237 else 35238 case $cross_compiling:$ac_tool_warned in 35239 yes:) 35240 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35241 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35242 ac_tool_warned=yes ;; 35243 esac 35244 STRIP=$ac_ct_STRIP 35245 fi 35246 fi 35247 35248 else 35249 # The variable is set, but is it from the command line or the environment? 35250 35251 # Try to remove the string !STRIP! from our list. 35252 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!STRIP!/} 35253 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35254 # If it failed, the variable was not from the command line. Ignore it, 35255 # but warn the user (except for BASH, which is always set by the calling BASH). 35256 if test "xSTRIP" != xBASH; then 35257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&5 35258 $as_echo "$as_me: WARNING: Ignoring value of STRIP from the environment. Use command line variables instead." >&2;} 35259 fi 35260 # Try to locate tool using the code snippet 35261 if test -n "$ac_tool_prefix"; then 35262 for ac_prog in strip 35263 do 35264 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35265 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35267 $as_echo_n "checking for $ac_word... " >&6; } 35268 if ${ac_cv_prog_STRIP+:} false; then : 35269 $as_echo_n "(cached) " >&6 35270 else 35271 if test -n "$STRIP"; then 35272 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 35273 else 35274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35275 for as_dir in $PATH 35276 do 35277 IFS=$as_save_IFS 35278 test -z "$as_dir" && as_dir=. 35279 for ac_exec_ext in '' $ac_executable_extensions; do 35280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35281 ac_cv_prog_STRIP="$ac_tool_prefix$ac_prog" 35282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35283 break 2 35284 fi 35285 done 35286 done 35287 IFS=$as_save_IFS 35288 35289 fi 35290 fi 35291 STRIP=$ac_cv_prog_STRIP 35292 if test -n "$STRIP"; then 35293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35294 $as_echo "$STRIP" >&6; } 35295 else 35296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35297 $as_echo "no" >&6; } 35298 fi 35299 35300 35301 test -n "$STRIP" && break 35302 done 35303 fi 35304 if test -z "$STRIP"; then 35305 ac_ct_STRIP=$STRIP 35306 for ac_prog in strip 35307 do 35308 # Extract the first word of "$ac_prog", so it can be a program name with args. 35309 set dummy $ac_prog; ac_word=$2 35310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35311 $as_echo_n "checking for $ac_word... " >&6; } 35312 if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 35313 $as_echo_n "(cached) " >&6 35314 else 35315 if test -n "$ac_ct_STRIP"; then 35316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 35317 else 35318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35319 for as_dir in $PATH 35320 do 35321 IFS=$as_save_IFS 35322 test -z "$as_dir" && as_dir=. 35323 for ac_exec_ext in '' $ac_executable_extensions; do 35324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35325 ac_cv_prog_ac_ct_STRIP="$ac_prog" 35326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35327 break 2 35328 fi 35329 done 35330 done 35331 IFS=$as_save_IFS 35332 35333 fi 35334 fi 35335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 35336 if test -n "$ac_ct_STRIP"; then 35337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 35338 $as_echo "$ac_ct_STRIP" >&6; } 35339 else 35340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35341 $as_echo "no" >&6; } 35342 fi 35343 35344 35345 test -n "$ac_ct_STRIP" && break 35346 done 35347 35348 if test "x$ac_ct_STRIP" = x; then 35349 STRIP="" 35350 else 35351 case $cross_compiling:$ac_tool_warned in 35352 yes:) 35353 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35354 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35355 ac_tool_warned=yes ;; 35356 esac 35357 STRIP=$ac_ct_STRIP 35358 fi 35359 fi 35360 35361 else 35362 # If it succeeded, then it was overridden by the user. We will use it 35363 # for the tool. 35364 35365 # First remove it from the list of overridden variables, so we can test 35366 # for unknown variables in the end. 35367 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35368 35369 # Check if the provided tool contains a complete path. 35370 tool_specified="$STRIP" 35371 tool_basename="${tool_specified##*/}" 35372 if test "x$tool_basename" = "x$tool_specified"; then 35373 # A command without a complete path is provided, search $PATH. 35374 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool STRIP=$tool_basename" >&5 35375 $as_echo "$as_me: Will search for user supplied tool STRIP=$tool_basename" >&6;} 35376 # Extract the first word of "$tool_basename", so it can be a program name with args. 35377 set dummy $tool_basename; ac_word=$2 35378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35379 $as_echo_n "checking for $ac_word... " >&6; } 35380 if ${ac_cv_path_STRIP+:} false; then : 35381 $as_echo_n "(cached) " >&6 35382 else 35383 case $STRIP in 35384 [\\/]* | ?:[\\/]*) 35385 ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path. 35386 ;; 35387 *) 35388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35389 for as_dir in $PATH 35390 do 35391 IFS=$as_save_IFS 35392 test -z "$as_dir" && as_dir=. 35393 for ac_exec_ext in '' $ac_executable_extensions; do 35394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35395 ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext" 35396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35397 break 2 35398 fi 35399 done 35400 done 35401 IFS=$as_save_IFS 35402 35403 ;; 35404 esac 35405 fi 35406 STRIP=$ac_cv_path_STRIP 35407 if test -n "$STRIP"; then 35408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 35409 $as_echo "$STRIP" >&6; } 35410 else 35411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35412 $as_echo "no" >&6; } 35413 fi 35414 35415 35416 if test "x$STRIP" = x; then 35417 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 35418 fi 35419 else 35420 # Otherwise we believe it is a complete path. Use it as it is. 35421 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool STRIP=$tool_specified" >&5 35422 $as_echo "$as_me: Will use user supplied tool STRIP=$tool_specified" >&6;} 35423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STRIP" >&5 35424 $as_echo_n "checking for STRIP... " >&6; } 35425 if test ! -x "$tool_specified"; then 35426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 35427 $as_echo "not found" >&6; } 35428 as_fn_error $? "User supplied tool STRIP=$tool_specified does not exist or is not executable" "$LINENO" 5 35429 fi 35430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 35431 $as_echo "$tool_specified" >&6; } 35432 fi 35433 fi 35434 fi 35435 35436 35437 35438 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35439 35440 # First separate the path from the arguments. This will split at the first 35441 # space. 35442 complete="$STRIP" 35443 path="${complete%% *}" 35444 tmp="$complete EOL" 35445 arguments="${tmp#* }" 35446 35447 # Input might be given as Windows format, start by converting to 35448 # unix format. 35449 new_path=`$CYGPATH -u "$path"` 35450 35451 # Now try to locate executable using which 35452 new_path=`$WHICH "$new_path" 2> /dev/null` 35453 # bat and cmd files are not always considered executable in cygwin causing which 35454 # to not find them 35455 if test "x$new_path" = x \ 35456 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35457 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35458 new_path=`$CYGPATH -u "$path"` 35459 fi 35460 if test "x$new_path" = x; then 35461 # Oops. Which didn't find the executable. 35462 # The splitting of arguments from the executable at a space might have been incorrect, 35463 # since paths with space are more likely in Windows. Give it another try with the whole 35464 # argument. 35465 path="$complete" 35466 arguments="EOL" 35467 new_path=`$CYGPATH -u "$path"` 35468 new_path=`$WHICH "$new_path" 2> /dev/null` 35469 # bat and cmd files are not always considered executable in cygwin causing which 35470 # to not find them 35471 if test "x$new_path" = x \ 35472 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 35473 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 35474 new_path=`$CYGPATH -u "$path"` 35475 fi 35476 if test "x$new_path" = x; then 35477 # It's still not found. Now this is an unrecoverable error. 35478 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35479 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35480 has_space=`$ECHO "$complete" | $GREP " "` 35481 if test "x$has_space" != x; then 35482 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35483 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35484 fi 35485 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35486 fi 35487 fi 35488 35489 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 35490 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 35491 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 35492 # "foo.exe" is OK but "foo" is an error. 35493 # 35494 # This test is therefore slightly more accurate than "test -f" to check for file presence. 35495 # It is also a way to make sure we got the proper file name for the real test later on. 35496 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 35497 if test "x$test_shortpath" = x; then 35498 # Short path failed, file does not exist as specified. 35499 # Try adding .exe or .cmd 35500 if test -f "${new_path}.exe"; then 35501 input_to_shortpath="${new_path}.exe" 35502 elif test -f "${new_path}.cmd"; then 35503 input_to_shortpath="${new_path}.cmd" 35504 else 35505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$new_path\", is invalid." >&5 35506 $as_echo "$as_me: The path of STRIP, which resolves as \"$new_path\", is invalid." >&6;} 35507 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 35508 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 35509 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35510 fi 35511 else 35512 input_to_shortpath="$new_path" 35513 fi 35514 35515 # Call helper function which possibly converts this using DOS-style short mode. 35516 # If so, the updated path is stored in $new_path. 35517 new_path="$input_to_shortpath" 35518 35519 input_path="$input_to_shortpath" 35520 # Check if we need to convert this using DOS-style short mode. If the path 35521 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35522 # take no chances and rewrite it. 35523 # Note: m4 eats our [], so we need to use [ and ] instead. 35524 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 35525 if test "x$has_forbidden_chars" != x; then 35526 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35527 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 35528 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 35529 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 35530 # Going to short mode and back again did indeed matter. Since short mode is 35531 # case insensitive, let's make it lowercase to improve readability. 35532 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35533 # Now convert it back to Unix-stile (cygpath) 35534 input_path=`$CYGPATH -u "$shortmode_path"` 35535 new_path="$input_path" 35536 fi 35537 fi 35538 35539 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 35540 if test "x$test_cygdrive_prefix" = x; then 35541 # As a simple fix, exclude /usr/bin since it's not a real path. 35542 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 35543 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 35544 # a path prefixed by /cygdrive for fixpath to work. 35545 new_path="$CYGWIN_ROOT_PATH$input_path" 35546 fi 35547 fi 35548 35549 # remove trailing .exe if any 35550 new_path="${new_path/%.exe/}" 35551 35552 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35553 35554 # First separate the path from the arguments. This will split at the first 35555 # space. 35556 complete="$STRIP" 35557 path="${complete%% *}" 35558 tmp="$complete EOL" 35559 arguments="${tmp#* }" 35560 35561 # Input might be given as Windows format, start by converting to 35562 # unix format. 35563 new_path="$path" 35564 35565 windows_path="$new_path" 35566 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35567 unix_path=`$CYGPATH -u "$windows_path"` 35568 new_path="$unix_path" 35569 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35570 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35571 new_path="$unix_path" 35572 fi 35573 35574 35575 # Now try to locate executable using which 35576 new_path=`$WHICH "$new_path" 2> /dev/null` 35577 35578 if test "x$new_path" = x; then 35579 # Oops. Which didn't find the executable. 35580 # The splitting of arguments from the executable at a space might have been incorrect, 35581 # since paths with space are more likely in Windows. Give it another try with the whole 35582 # argument. 35583 path="$complete" 35584 arguments="EOL" 35585 new_path="$path" 35586 35587 windows_path="$new_path" 35588 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35589 unix_path=`$CYGPATH -u "$windows_path"` 35590 new_path="$unix_path" 35591 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35592 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35593 new_path="$unix_path" 35594 fi 35595 35596 35597 new_path=`$WHICH "$new_path" 2> /dev/null` 35598 35599 if test "x$new_path" = x; then 35600 # It's still not found. Now this is an unrecoverable error. 35601 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35602 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35603 has_space=`$ECHO "$complete" | $GREP " "` 35604 if test "x$has_space" != x; then 35605 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 35606 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 35607 fi 35608 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35609 fi 35610 fi 35611 35612 # Now new_path has a complete unix path to the binary 35613 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 35614 # Keep paths in /bin as-is, but remove trailing .exe if any 35615 new_path="${new_path/%.exe/}" 35616 # Do not save /bin paths to all_fixpath_prefixes! 35617 else 35618 # Not in mixed or Windows style, start by that. 35619 new_path=`cmd //c echo $new_path` 35620 35621 input_path="$new_path" 35622 # Check if we need to convert this using DOS-style short mode. If the path 35623 # contains just simple characters, use it. Otherwise (spaces, weird characters), 35624 # take no chances and rewrite it. 35625 # Note: m4 eats our [], so we need to use [ and ] instead. 35626 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 35627 if test "x$has_forbidden_chars" != x; then 35628 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 35629 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 35630 fi 35631 35632 # Output is in $new_path 35633 35634 windows_path="$new_path" 35635 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 35636 unix_path=`$CYGPATH -u "$windows_path"` 35637 new_path="$unix_path" 35638 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 35639 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 35640 new_path="$unix_path" 35641 fi 35642 35643 # remove trailing .exe if any 35644 new_path="${new_path/%.exe/}" 35645 35646 # Save the first 10 bytes of this path to the storage, so fixpath can work. 35647 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 35648 fi 35649 35650 else 35651 # We're on a posix platform. Hooray! :) 35652 # First separate the path from the arguments. This will split at the first 35653 # space. 35654 complete="$STRIP" 35655 path="${complete%% *}" 35656 tmp="$complete EOL" 35657 arguments="${tmp#* }" 35658 35659 # Cannot rely on the command "which" here since it doesn't always work. 35660 is_absolute_path=`$ECHO "$path" | $GREP ^/` 35661 if test -z "$is_absolute_path"; then 35662 # Path to executable is not absolute. Find it. 35663 IFS_save="$IFS" 35664 IFS=: 35665 for p in $PATH; do 35666 if test -f "$p/$path" && test -x "$p/$path"; then 35667 new_path="$p/$path" 35668 break 35669 fi 35670 done 35671 IFS="$IFS_save" 35672 else 35673 # This is an absolute path, we can use it without further modifications. 35674 new_path="$path" 35675 fi 35676 35677 if test "x$new_path" = x; then 35678 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of STRIP, which resolves as \"$complete\", is not found." >&5 35679 $as_echo "$as_me: The path of STRIP, which resolves as \"$complete\", is not found." >&6;} 35680 has_space=`$ECHO "$complete" | $GREP " "` 35681 if test "x$has_space" != x; then 35682 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 35683 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 35684 fi 35685 as_fn_error $? "Cannot locate the the path of STRIP" "$LINENO" 5 35686 fi 35687 fi 35688 35689 # Now join together the path and the arguments once again 35690 if test "x$arguments" != xEOL; then 35691 new_complete="$new_path ${arguments% *}" 35692 else 35693 new_complete="$new_path" 35694 fi 35695 35696 if test "x$complete" != "x$new_complete"; then 35697 STRIP="$new_complete" 35698 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting STRIP to \"$new_complete\"" >&5 35699 $as_echo "$as_me: Rewriting STRIP to \"$new_complete\"" >&6;} 35700 fi 35701 35702 # Extract the first word of "otool", so it can be a program name with args. 35703 set dummy otool; ac_word=$2 35704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35705 $as_echo_n "checking for $ac_word... " >&6; } 35706 if ${ac_cv_path_OTOOL+:} false; then : 35707 $as_echo_n "(cached) " >&6 35708 else 35709 case $OTOOL in 35710 [\\/]* | ?:[\\/]*) 35711 ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path. 35712 ;; 35713 *) 35714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35715 for as_dir in $PATH 35716 do 35717 IFS=$as_save_IFS 35718 test -z "$as_dir" && as_dir=. 35719 for ac_exec_ext in '' $ac_executable_extensions; do 35720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35721 ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext" 35722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35723 break 2 35724 fi 35725 done 35726 done 35727 IFS=$as_save_IFS 35728 35729 ;; 35730 esac 35731 fi 35732 OTOOL=$ac_cv_path_OTOOL 35733 if test -n "$OTOOL"; then 35734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 35735 $as_echo "$OTOOL" >&6; } 35736 else 35737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35738 $as_echo "no" >&6; } 35739 fi 35740 35741 35742 if test "x$OTOOL" = "x"; then 35743 OTOOL="true" 35744 fi 35745 35746 35747 # Publish this variable in the help. 35748 35749 35750 if test "x$NM" = x; then 35751 # The variable is not set by user, try to locate tool using the code snippet 35752 if test -n "$ac_tool_prefix"; then 35753 for ac_prog in nm 35754 do 35755 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35756 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35758 $as_echo_n "checking for $ac_word... " >&6; } 35759 if ${ac_cv_prog_NM+:} false; then : 35760 $as_echo_n "(cached) " >&6 35761 else 35762 if test -n "$NM"; then 35763 ac_cv_prog_NM="$NM" # Let the user override the test. 35764 else 35765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35766 for as_dir in $PATH 35767 do 35768 IFS=$as_save_IFS 35769 test -z "$as_dir" && as_dir=. 35770 for ac_exec_ext in '' $ac_executable_extensions; do 35771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35772 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 35773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35774 break 2 35775 fi 35776 done 35777 done 35778 IFS=$as_save_IFS 35779 35780 fi 35781 fi 35782 NM=$ac_cv_prog_NM 35783 if test -n "$NM"; then 35784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35785 $as_echo "$NM" >&6; } 35786 else 35787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35788 $as_echo "no" >&6; } 35789 fi 35790 35791 35792 test -n "$NM" && break 35793 done 35794 fi 35795 if test -z "$NM"; then 35796 ac_ct_NM=$NM 35797 for ac_prog in nm 35798 do 35799 # Extract the first word of "$ac_prog", so it can be a program name with args. 35800 set dummy $ac_prog; ac_word=$2 35801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35802 $as_echo_n "checking for $ac_word... " >&6; } 35803 if ${ac_cv_prog_ac_ct_NM+:} false; then : 35804 $as_echo_n "(cached) " >&6 35805 else 35806 if test -n "$ac_ct_NM"; then 35807 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 35808 else 35809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35810 for as_dir in $PATH 35811 do 35812 IFS=$as_save_IFS 35813 test -z "$as_dir" && as_dir=. 35814 for ac_exec_ext in '' $ac_executable_extensions; do 35815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35816 ac_cv_prog_ac_ct_NM="$ac_prog" 35817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35818 break 2 35819 fi 35820 done 35821 done 35822 IFS=$as_save_IFS 35823 35824 fi 35825 fi 35826 ac_ct_NM=$ac_cv_prog_ac_ct_NM 35827 if test -n "$ac_ct_NM"; then 35828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 35829 $as_echo "$ac_ct_NM" >&6; } 35830 else 35831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35832 $as_echo "no" >&6; } 35833 fi 35834 35835 35836 test -n "$ac_ct_NM" && break 35837 done 35838 35839 if test "x$ac_ct_NM" = x; then 35840 NM="" 35841 else 35842 case $cross_compiling:$ac_tool_warned in 35843 yes:) 35844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35846 ac_tool_warned=yes ;; 35847 esac 35848 NM=$ac_ct_NM 35849 fi 35850 fi 35851 35852 else 35853 # The variable is set, but is it from the command line or the environment? 35854 35855 # Try to remove the string !NM! from our list. 35856 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!NM!/} 35857 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 35858 # If it failed, the variable was not from the command line. Ignore it, 35859 # but warn the user (except for BASH, which is always set by the calling BASH). 35860 if test "xNM" != xBASH; then 35861 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&5 35862 $as_echo "$as_me: WARNING: Ignoring value of NM from the environment. Use command line variables instead." >&2;} 35863 fi 35864 # Try to locate tool using the code snippet 35865 if test -n "$ac_tool_prefix"; then 35866 for ac_prog in nm 35867 do 35868 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 35869 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 35870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35871 $as_echo_n "checking for $ac_word... " >&6; } 35872 if ${ac_cv_prog_NM+:} false; then : 35873 $as_echo_n "(cached) " >&6 35874 else 35875 if test -n "$NM"; then 35876 ac_cv_prog_NM="$NM" # Let the user override the test. 35877 else 35878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35879 for as_dir in $PATH 35880 do 35881 IFS=$as_save_IFS 35882 test -z "$as_dir" && as_dir=. 35883 for ac_exec_ext in '' $ac_executable_extensions; do 35884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35885 ac_cv_prog_NM="$ac_tool_prefix$ac_prog" 35886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35887 break 2 35888 fi 35889 done 35890 done 35891 IFS=$as_save_IFS 35892 35893 fi 35894 fi 35895 NM=$ac_cv_prog_NM 35896 if test -n "$NM"; then 35897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 35898 $as_echo "$NM" >&6; } 35899 else 35900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35901 $as_echo "no" >&6; } 35902 fi 35903 35904 35905 test -n "$NM" && break 35906 done 35907 fi 35908 if test -z "$NM"; then 35909 ac_ct_NM=$NM 35910 for ac_prog in nm 35911 do 35912 # Extract the first word of "$ac_prog", so it can be a program name with args. 35913 set dummy $ac_prog; ac_word=$2 35914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35915 $as_echo_n "checking for $ac_word... " >&6; } 35916 if ${ac_cv_prog_ac_ct_NM+:} false; then : 35917 $as_echo_n "(cached) " >&6 35918 else 35919 if test -n "$ac_ct_NM"; then 35920 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test. 35921 else 35922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35923 for as_dir in $PATH 35924 do 35925 IFS=$as_save_IFS 35926 test -z "$as_dir" && as_dir=. 35927 for ac_exec_ext in '' $ac_executable_extensions; do 35928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35929 ac_cv_prog_ac_ct_NM="$ac_prog" 35930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 35931 break 2 35932 fi 35933 done 35934 done 35935 IFS=$as_save_IFS 35936 35937 fi 35938 fi 35939 ac_ct_NM=$ac_cv_prog_ac_ct_NM 35940 if test -n "$ac_ct_NM"; then 35941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5 35942 $as_echo "$ac_ct_NM" >&6; } 35943 else 35944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 35945 $as_echo "no" >&6; } 35946 fi 35947 35948 35949 test -n "$ac_ct_NM" && break 35950 done 35951 35952 if test "x$ac_ct_NM" = x; then 35953 NM="" 35954 else 35955 case $cross_compiling:$ac_tool_warned in 35956 yes:) 35957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 35958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 35959 ac_tool_warned=yes ;; 35960 esac 35961 NM=$ac_ct_NM 35962 fi 35963 fi 35964 35965 else 35966 # If it succeeded, then it was overridden by the user. We will use it 35967 # for the tool. 35968 35969 # First remove it from the list of overridden variables, so we can test 35970 # for unknown variables in the end. 35971 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 35972 35973 # Check if the provided tool contains a complete path. 35974 tool_specified="$NM" 35975 tool_basename="${tool_specified##*/}" 35976 if test "x$tool_basename" = "x$tool_specified"; then 35977 # A command without a complete path is provided, search $PATH. 35978 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool NM=$tool_basename" >&5 35979 $as_echo "$as_me: Will search for user supplied tool NM=$tool_basename" >&6;} 35980 # Extract the first word of "$tool_basename", so it can be a program name with args. 35981 set dummy $tool_basename; ac_word=$2 35982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 35983 $as_echo_n "checking for $ac_word... " >&6; } 35984 if ${ac_cv_path_NM+:} false; then : 35985 $as_echo_n "(cached) " >&6 35986 else 35987 case $NM in 35988 [\\/]* | ?:[\\/]*) 35989 ac_cv_path_NM="$NM" # Let the user override the test with a path. 35990 ;; 35991 *) 35992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 35993 for as_dir in $PATH 35994 do 35995 IFS=$as_save_IFS 35996 test -z "$as_dir" && as_dir=. 35997 for ac_exec_ext in '' $ac_executable_extensions; do 35998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 35999 ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext" 36000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36001 break 2 36002 fi 36003 done 36004 done 36005 IFS=$as_save_IFS 36006 36007 ;; 36008 esac 36009 fi 36010 NM=$ac_cv_path_NM 36011 if test -n "$NM"; then 36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5 36013 $as_echo "$NM" >&6; } 36014 else 36015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36016 $as_echo "no" >&6; } 36017 fi 36018 36019 36020 if test "x$NM" = x; then 36021 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36022 fi 36023 else 36024 # Otherwise we believe it is a complete path. Use it as it is. 36025 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool NM=$tool_specified" >&5 36026 $as_echo "$as_me: Will use user supplied tool NM=$tool_specified" >&6;} 36027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NM" >&5 36028 $as_echo_n "checking for NM... " >&6; } 36029 if test ! -x "$tool_specified"; then 36030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36031 $as_echo "not found" >&6; } 36032 as_fn_error $? "User supplied tool NM=$tool_specified does not exist or is not executable" "$LINENO" 5 36033 fi 36034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36035 $as_echo "$tool_specified" >&6; } 36036 fi 36037 fi 36038 fi 36039 36040 36041 36042 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36043 36044 # First separate the path from the arguments. This will split at the first 36045 # space. 36046 complete="$NM" 36047 path="${complete%% *}" 36048 tmp="$complete EOL" 36049 arguments="${tmp#* }" 36050 36051 # Input might be given as Windows format, start by converting to 36052 # unix format. 36053 new_path=`$CYGPATH -u "$path"` 36054 36055 # Now try to locate executable using which 36056 new_path=`$WHICH "$new_path" 2> /dev/null` 36057 # bat and cmd files are not always considered executable in cygwin causing which 36058 # to not find them 36059 if test "x$new_path" = x \ 36060 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36061 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36062 new_path=`$CYGPATH -u "$path"` 36063 fi 36064 if test "x$new_path" = x; then 36065 # Oops. Which didn't find the executable. 36066 # The splitting of arguments from the executable at a space might have been incorrect, 36067 # since paths with space are more likely in Windows. Give it another try with the whole 36068 # argument. 36069 path="$complete" 36070 arguments="EOL" 36071 new_path=`$CYGPATH -u "$path"` 36072 new_path=`$WHICH "$new_path" 2> /dev/null` 36073 # bat and cmd files are not always considered executable in cygwin causing which 36074 # to not find them 36075 if test "x$new_path" = x \ 36076 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36077 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36078 new_path=`$CYGPATH -u "$path"` 36079 fi 36080 if test "x$new_path" = x; then 36081 # It's still not found. Now this is an unrecoverable error. 36082 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36083 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36084 has_space=`$ECHO "$complete" | $GREP " "` 36085 if test "x$has_space" != x; then 36086 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36087 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36088 fi 36089 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36090 fi 36091 fi 36092 36093 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36094 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36095 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36096 # "foo.exe" is OK but "foo" is an error. 36097 # 36098 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36099 # It is also a way to make sure we got the proper file name for the real test later on. 36100 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36101 if test "x$test_shortpath" = x; then 36102 # Short path failed, file does not exist as specified. 36103 # Try adding .exe or .cmd 36104 if test -f "${new_path}.exe"; then 36105 input_to_shortpath="${new_path}.exe" 36106 elif test -f "${new_path}.cmd"; then 36107 input_to_shortpath="${new_path}.cmd" 36108 else 36109 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$new_path\", is invalid." >&5 36110 $as_echo "$as_me: The path of NM, which resolves as \"$new_path\", is invalid." >&6;} 36111 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36112 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36113 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36114 fi 36115 else 36116 input_to_shortpath="$new_path" 36117 fi 36118 36119 # Call helper function which possibly converts this using DOS-style short mode. 36120 # If so, the updated path is stored in $new_path. 36121 new_path="$input_to_shortpath" 36122 36123 input_path="$input_to_shortpath" 36124 # Check if we need to convert this using DOS-style short mode. If the path 36125 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36126 # take no chances and rewrite it. 36127 # Note: m4 eats our [], so we need to use [ and ] instead. 36128 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36129 if test "x$has_forbidden_chars" != x; then 36130 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36131 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36132 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36133 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36134 # Going to short mode and back again did indeed matter. Since short mode is 36135 # case insensitive, let's make it lowercase to improve readability. 36136 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36137 # Now convert it back to Unix-stile (cygpath) 36138 input_path=`$CYGPATH -u "$shortmode_path"` 36139 new_path="$input_path" 36140 fi 36141 fi 36142 36143 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36144 if test "x$test_cygdrive_prefix" = x; then 36145 # As a simple fix, exclude /usr/bin since it's not a real path. 36146 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36147 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36148 # a path prefixed by /cygdrive for fixpath to work. 36149 new_path="$CYGWIN_ROOT_PATH$input_path" 36150 fi 36151 fi 36152 36153 # remove trailing .exe if any 36154 new_path="${new_path/%.exe/}" 36155 36156 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36157 36158 # First separate the path from the arguments. This will split at the first 36159 # space. 36160 complete="$NM" 36161 path="${complete%% *}" 36162 tmp="$complete EOL" 36163 arguments="${tmp#* }" 36164 36165 # Input might be given as Windows format, start by converting to 36166 # unix format. 36167 new_path="$path" 36168 36169 windows_path="$new_path" 36170 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36171 unix_path=`$CYGPATH -u "$windows_path"` 36172 new_path="$unix_path" 36173 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36174 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36175 new_path="$unix_path" 36176 fi 36177 36178 36179 # Now try to locate executable using which 36180 new_path=`$WHICH "$new_path" 2> /dev/null` 36181 36182 if test "x$new_path" = x; then 36183 # Oops. Which didn't find the executable. 36184 # The splitting of arguments from the executable at a space might have been incorrect, 36185 # since paths with space are more likely in Windows. Give it another try with the whole 36186 # argument. 36187 path="$complete" 36188 arguments="EOL" 36189 new_path="$path" 36190 36191 windows_path="$new_path" 36192 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36193 unix_path=`$CYGPATH -u "$windows_path"` 36194 new_path="$unix_path" 36195 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36196 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36197 new_path="$unix_path" 36198 fi 36199 36200 36201 new_path=`$WHICH "$new_path" 2> /dev/null` 36202 36203 if test "x$new_path" = x; then 36204 # It's still not found. Now this is an unrecoverable error. 36205 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36206 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36207 has_space=`$ECHO "$complete" | $GREP " "` 36208 if test "x$has_space" != x; then 36209 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36210 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36211 fi 36212 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36213 fi 36214 fi 36215 36216 # Now new_path has a complete unix path to the binary 36217 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36218 # Keep paths in /bin as-is, but remove trailing .exe if any 36219 new_path="${new_path/%.exe/}" 36220 # Do not save /bin paths to all_fixpath_prefixes! 36221 else 36222 # Not in mixed or Windows style, start by that. 36223 new_path=`cmd //c echo $new_path` 36224 36225 input_path="$new_path" 36226 # Check if we need to convert this using DOS-style short mode. If the path 36227 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36228 # take no chances and rewrite it. 36229 # Note: m4 eats our [], so we need to use [ and ] instead. 36230 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36231 if test "x$has_forbidden_chars" != x; then 36232 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36233 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36234 fi 36235 36236 # Output is in $new_path 36237 36238 windows_path="$new_path" 36239 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36240 unix_path=`$CYGPATH -u "$windows_path"` 36241 new_path="$unix_path" 36242 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36243 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36244 new_path="$unix_path" 36245 fi 36246 36247 # remove trailing .exe if any 36248 new_path="${new_path/%.exe/}" 36249 36250 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36251 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36252 fi 36253 36254 else 36255 # We're on a posix platform. Hooray! :) 36256 # First separate the path from the arguments. This will split at the first 36257 # space. 36258 complete="$NM" 36259 path="${complete%% *}" 36260 tmp="$complete EOL" 36261 arguments="${tmp#* }" 36262 36263 # Cannot rely on the command "which" here since it doesn't always work. 36264 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36265 if test -z "$is_absolute_path"; then 36266 # Path to executable is not absolute. Find it. 36267 IFS_save="$IFS" 36268 IFS=: 36269 for p in $PATH; do 36270 if test -f "$p/$path" && test -x "$p/$path"; then 36271 new_path="$p/$path" 36272 break 36273 fi 36274 done 36275 IFS="$IFS_save" 36276 else 36277 # This is an absolute path, we can use it without further modifications. 36278 new_path="$path" 36279 fi 36280 36281 if test "x$new_path" = x; then 36282 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of NM, which resolves as \"$complete\", is not found." >&5 36283 $as_echo "$as_me: The path of NM, which resolves as \"$complete\", is not found." >&6;} 36284 has_space=`$ECHO "$complete" | $GREP " "` 36285 if test "x$has_space" != x; then 36286 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36287 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36288 fi 36289 as_fn_error $? "Cannot locate the the path of NM" "$LINENO" 5 36290 fi 36291 fi 36292 36293 # Now join together the path and the arguments once again 36294 if test "x$arguments" != xEOL; then 36295 new_complete="$new_path ${arguments% *}" 36296 else 36297 new_complete="$new_path" 36298 fi 36299 36300 if test "x$complete" != "x$new_complete"; then 36301 NM="$new_complete" 36302 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting NM to \"$new_complete\"" >&5 36303 $as_echo "$as_me: Rewriting NM to \"$new_complete\"" >&6;} 36304 fi 36305 36306 GNM="$NM" 36307 36308 fi 36309 36310 # objcopy is used for moving debug symbols to separate files when 36311 # full debug symbols are enabled. 36312 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xlinux; then 36313 36314 36315 # Publish this variable in the help. 36316 36317 36318 if test "x$OBJCOPY" = x; then 36319 # The variable is not set by user, try to locate tool using the code snippet 36320 if test -n "$ac_tool_prefix"; then 36321 for ac_prog in gobjcopy objcopy 36322 do 36323 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36324 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36326 $as_echo_n "checking for $ac_word... " >&6; } 36327 if ${ac_cv_prog_OBJCOPY+:} false; then : 36328 $as_echo_n "(cached) " >&6 36329 else 36330 if test -n "$OBJCOPY"; then 36331 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 36332 else 36333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36334 for as_dir in $PATH 36335 do 36336 IFS=$as_save_IFS 36337 test -z "$as_dir" && as_dir=. 36338 for ac_exec_ext in '' $ac_executable_extensions; do 36339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36340 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 36341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36342 break 2 36343 fi 36344 done 36345 done 36346 IFS=$as_save_IFS 36347 36348 fi 36349 fi 36350 OBJCOPY=$ac_cv_prog_OBJCOPY 36351 if test -n "$OBJCOPY"; then 36352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 36353 $as_echo "$OBJCOPY" >&6; } 36354 else 36355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36356 $as_echo "no" >&6; } 36357 fi 36358 36359 36360 test -n "$OBJCOPY" && break 36361 done 36362 fi 36363 if test -z "$OBJCOPY"; then 36364 ac_ct_OBJCOPY=$OBJCOPY 36365 for ac_prog in gobjcopy objcopy 36366 do 36367 # Extract the first word of "$ac_prog", so it can be a program name with args. 36368 set dummy $ac_prog; ac_word=$2 36369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36370 $as_echo_n "checking for $ac_word... " >&6; } 36371 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 36372 $as_echo_n "(cached) " >&6 36373 else 36374 if test -n "$ac_ct_OBJCOPY"; then 36375 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 36376 else 36377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36378 for as_dir in $PATH 36379 do 36380 IFS=$as_save_IFS 36381 test -z "$as_dir" && as_dir=. 36382 for ac_exec_ext in '' $ac_executable_extensions; do 36383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36384 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 36385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36386 break 2 36387 fi 36388 done 36389 done 36390 IFS=$as_save_IFS 36391 36392 fi 36393 fi 36394 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 36395 if test -n "$ac_ct_OBJCOPY"; then 36396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 36397 $as_echo "$ac_ct_OBJCOPY" >&6; } 36398 else 36399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36400 $as_echo "no" >&6; } 36401 fi 36402 36403 36404 test -n "$ac_ct_OBJCOPY" && break 36405 done 36406 36407 if test "x$ac_ct_OBJCOPY" = x; then 36408 OBJCOPY="" 36409 else 36410 case $cross_compiling:$ac_tool_warned in 36411 yes:) 36412 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36413 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36414 ac_tool_warned=yes ;; 36415 esac 36416 OBJCOPY=$ac_ct_OBJCOPY 36417 fi 36418 fi 36419 36420 else 36421 # The variable is set, but is it from the command line or the environment? 36422 36423 # Try to remove the string !OBJCOPY! from our list. 36424 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJCOPY!/} 36425 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36426 # If it failed, the variable was not from the command line. Ignore it, 36427 # but warn the user (except for BASH, which is always set by the calling BASH). 36428 if test "xOBJCOPY" != xBASH; then 36429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&5 36430 $as_echo "$as_me: WARNING: Ignoring value of OBJCOPY from the environment. Use command line variables instead." >&2;} 36431 fi 36432 # Try to locate tool using the code snippet 36433 if test -n "$ac_tool_prefix"; then 36434 for ac_prog in gobjcopy objcopy 36435 do 36436 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36437 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36439 $as_echo_n "checking for $ac_word... " >&6; } 36440 if ${ac_cv_prog_OBJCOPY+:} false; then : 36441 $as_echo_n "(cached) " >&6 36442 else 36443 if test -n "$OBJCOPY"; then 36444 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test. 36445 else 36446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36447 for as_dir in $PATH 36448 do 36449 IFS=$as_save_IFS 36450 test -z "$as_dir" && as_dir=. 36451 for ac_exec_ext in '' $ac_executable_extensions; do 36452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36453 ac_cv_prog_OBJCOPY="$ac_tool_prefix$ac_prog" 36454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36455 break 2 36456 fi 36457 done 36458 done 36459 IFS=$as_save_IFS 36460 36461 fi 36462 fi 36463 OBJCOPY=$ac_cv_prog_OBJCOPY 36464 if test -n "$OBJCOPY"; then 36465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 36466 $as_echo "$OBJCOPY" >&6; } 36467 else 36468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36469 $as_echo "no" >&6; } 36470 fi 36471 36472 36473 test -n "$OBJCOPY" && break 36474 done 36475 fi 36476 if test -z "$OBJCOPY"; then 36477 ac_ct_OBJCOPY=$OBJCOPY 36478 for ac_prog in gobjcopy objcopy 36479 do 36480 # Extract the first word of "$ac_prog", so it can be a program name with args. 36481 set dummy $ac_prog; ac_word=$2 36482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36483 $as_echo_n "checking for $ac_word... " >&6; } 36484 if ${ac_cv_prog_ac_ct_OBJCOPY+:} false; then : 36485 $as_echo_n "(cached) " >&6 36486 else 36487 if test -n "$ac_ct_OBJCOPY"; then 36488 ac_cv_prog_ac_ct_OBJCOPY="$ac_ct_OBJCOPY" # Let the user override the test. 36489 else 36490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36491 for as_dir in $PATH 36492 do 36493 IFS=$as_save_IFS 36494 test -z "$as_dir" && as_dir=. 36495 for ac_exec_ext in '' $ac_executable_extensions; do 36496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36497 ac_cv_prog_ac_ct_OBJCOPY="$ac_prog" 36498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36499 break 2 36500 fi 36501 done 36502 done 36503 IFS=$as_save_IFS 36504 36505 fi 36506 fi 36507 ac_ct_OBJCOPY=$ac_cv_prog_ac_ct_OBJCOPY 36508 if test -n "$ac_ct_OBJCOPY"; then 36509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJCOPY" >&5 36510 $as_echo "$ac_ct_OBJCOPY" >&6; } 36511 else 36512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36513 $as_echo "no" >&6; } 36514 fi 36515 36516 36517 test -n "$ac_ct_OBJCOPY" && break 36518 done 36519 36520 if test "x$ac_ct_OBJCOPY" = x; then 36521 OBJCOPY="" 36522 else 36523 case $cross_compiling:$ac_tool_warned in 36524 yes:) 36525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36527 ac_tool_warned=yes ;; 36528 esac 36529 OBJCOPY=$ac_ct_OBJCOPY 36530 fi 36531 fi 36532 36533 else 36534 # If it succeeded, then it was overridden by the user. We will use it 36535 # for the tool. 36536 36537 # First remove it from the list of overridden variables, so we can test 36538 # for unknown variables in the end. 36539 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 36540 36541 # Check if the provided tool contains a complete path. 36542 tool_specified="$OBJCOPY" 36543 tool_basename="${tool_specified##*/}" 36544 if test "x$tool_basename" = "x$tool_specified"; then 36545 # A command without a complete path is provided, search $PATH. 36546 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJCOPY=$tool_basename" >&5 36547 $as_echo "$as_me: Will search for user supplied tool OBJCOPY=$tool_basename" >&6;} 36548 # Extract the first word of "$tool_basename", so it can be a program name with args. 36549 set dummy $tool_basename; ac_word=$2 36550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36551 $as_echo_n "checking for $ac_word... " >&6; } 36552 if ${ac_cv_path_OBJCOPY+:} false; then : 36553 $as_echo_n "(cached) " >&6 36554 else 36555 case $OBJCOPY in 36556 [\\/]* | ?:[\\/]*) 36557 ac_cv_path_OBJCOPY="$OBJCOPY" # Let the user override the test with a path. 36558 ;; 36559 *) 36560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36561 for as_dir in $PATH 36562 do 36563 IFS=$as_save_IFS 36564 test -z "$as_dir" && as_dir=. 36565 for ac_exec_ext in '' $ac_executable_extensions; do 36566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36567 ac_cv_path_OBJCOPY="$as_dir/$ac_word$ac_exec_ext" 36568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36569 break 2 36570 fi 36571 done 36572 done 36573 IFS=$as_save_IFS 36574 36575 ;; 36576 esac 36577 fi 36578 OBJCOPY=$ac_cv_path_OBJCOPY 36579 if test -n "$OBJCOPY"; then 36580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5 36581 $as_echo "$OBJCOPY" >&6; } 36582 else 36583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36584 $as_echo "no" >&6; } 36585 fi 36586 36587 36588 if test "x$OBJCOPY" = x; then 36589 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 36590 fi 36591 else 36592 # Otherwise we believe it is a complete path. Use it as it is. 36593 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJCOPY=$tool_specified" >&5 36594 $as_echo "$as_me: Will use user supplied tool OBJCOPY=$tool_specified" >&6;} 36595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJCOPY" >&5 36596 $as_echo_n "checking for OBJCOPY... " >&6; } 36597 if test ! -x "$tool_specified"; then 36598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 36599 $as_echo "not found" >&6; } 36600 as_fn_error $? "User supplied tool OBJCOPY=$tool_specified does not exist or is not executable" "$LINENO" 5 36601 fi 36602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 36603 $as_echo "$tool_specified" >&6; } 36604 fi 36605 fi 36606 fi 36607 36608 36609 # Only call fixup if objcopy was found. 36610 if test -n "$OBJCOPY"; then 36611 36612 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36613 36614 # First separate the path from the arguments. This will split at the first 36615 # space. 36616 complete="$OBJCOPY" 36617 path="${complete%% *}" 36618 tmp="$complete EOL" 36619 arguments="${tmp#* }" 36620 36621 # Input might be given as Windows format, start by converting to 36622 # unix format. 36623 new_path=`$CYGPATH -u "$path"` 36624 36625 # Now try to locate executable using which 36626 new_path=`$WHICH "$new_path" 2> /dev/null` 36627 # bat and cmd files are not always considered executable in cygwin causing which 36628 # to not find them 36629 if test "x$new_path" = x \ 36630 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36631 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36632 new_path=`$CYGPATH -u "$path"` 36633 fi 36634 if test "x$new_path" = x; then 36635 # Oops. Which didn't find the executable. 36636 # The splitting of arguments from the executable at a space might have been incorrect, 36637 # since paths with space are more likely in Windows. Give it another try with the whole 36638 # argument. 36639 path="$complete" 36640 arguments="EOL" 36641 new_path=`$CYGPATH -u "$path"` 36642 new_path=`$WHICH "$new_path" 2> /dev/null` 36643 # bat and cmd files are not always considered executable in cygwin causing which 36644 # to not find them 36645 if test "x$new_path" = x \ 36646 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 36647 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 36648 new_path=`$CYGPATH -u "$path"` 36649 fi 36650 if test "x$new_path" = x; then 36651 # It's still not found. Now this is an unrecoverable error. 36652 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 36653 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 36654 has_space=`$ECHO "$complete" | $GREP " "` 36655 if test "x$has_space" != x; then 36656 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36657 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36658 fi 36659 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36660 fi 36661 fi 36662 36663 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 36664 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 36665 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 36666 # "foo.exe" is OK but "foo" is an error. 36667 # 36668 # This test is therefore slightly more accurate than "test -f" to check for file presence. 36669 # It is also a way to make sure we got the proper file name for the real test later on. 36670 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 36671 if test "x$test_shortpath" = x; then 36672 # Short path failed, file does not exist as specified. 36673 # Try adding .exe or .cmd 36674 if test -f "${new_path}.exe"; then 36675 input_to_shortpath="${new_path}.exe" 36676 elif test -f "${new_path}.cmd"; then 36677 input_to_shortpath="${new_path}.cmd" 36678 else 36679 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&5 36680 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$new_path\", is invalid." >&6;} 36681 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 36682 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 36683 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36684 fi 36685 else 36686 input_to_shortpath="$new_path" 36687 fi 36688 36689 # Call helper function which possibly converts this using DOS-style short mode. 36690 # If so, the updated path is stored in $new_path. 36691 new_path="$input_to_shortpath" 36692 36693 input_path="$input_to_shortpath" 36694 # Check if we need to convert this using DOS-style short mode. If the path 36695 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36696 # take no chances and rewrite it. 36697 # Note: m4 eats our [], so we need to use [ and ] instead. 36698 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 36699 if test "x$has_forbidden_chars" != x; then 36700 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36701 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 36702 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 36703 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 36704 # Going to short mode and back again did indeed matter. Since short mode is 36705 # case insensitive, let's make it lowercase to improve readability. 36706 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36707 # Now convert it back to Unix-stile (cygpath) 36708 input_path=`$CYGPATH -u "$shortmode_path"` 36709 new_path="$input_path" 36710 fi 36711 fi 36712 36713 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 36714 if test "x$test_cygdrive_prefix" = x; then 36715 # As a simple fix, exclude /usr/bin since it's not a real path. 36716 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 36717 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 36718 # a path prefixed by /cygdrive for fixpath to work. 36719 new_path="$CYGWIN_ROOT_PATH$input_path" 36720 fi 36721 fi 36722 36723 # remove trailing .exe if any 36724 new_path="${new_path/%.exe/}" 36725 36726 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36727 36728 # First separate the path from the arguments. This will split at the first 36729 # space. 36730 complete="$OBJCOPY" 36731 path="${complete%% *}" 36732 tmp="$complete EOL" 36733 arguments="${tmp#* }" 36734 36735 # Input might be given as Windows format, start by converting to 36736 # unix format. 36737 new_path="$path" 36738 36739 windows_path="$new_path" 36740 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36741 unix_path=`$CYGPATH -u "$windows_path"` 36742 new_path="$unix_path" 36743 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36744 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36745 new_path="$unix_path" 36746 fi 36747 36748 36749 # Now try to locate executable using which 36750 new_path=`$WHICH "$new_path" 2> /dev/null` 36751 36752 if test "x$new_path" = x; then 36753 # Oops. Which didn't find the executable. 36754 # The splitting of arguments from the executable at a space might have been incorrect, 36755 # since paths with space are more likely in Windows. Give it another try with the whole 36756 # argument. 36757 path="$complete" 36758 arguments="EOL" 36759 new_path="$path" 36760 36761 windows_path="$new_path" 36762 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36763 unix_path=`$CYGPATH -u "$windows_path"` 36764 new_path="$unix_path" 36765 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36766 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36767 new_path="$unix_path" 36768 fi 36769 36770 36771 new_path=`$WHICH "$new_path" 2> /dev/null` 36772 36773 if test "x$new_path" = x; then 36774 # It's still not found. Now this is an unrecoverable error. 36775 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 36776 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 36777 has_space=`$ECHO "$complete" | $GREP " "` 36778 if test "x$has_space" != x; then 36779 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 36780 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 36781 fi 36782 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36783 fi 36784 fi 36785 36786 # Now new_path has a complete unix path to the binary 36787 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 36788 # Keep paths in /bin as-is, but remove trailing .exe if any 36789 new_path="${new_path/%.exe/}" 36790 # Do not save /bin paths to all_fixpath_prefixes! 36791 else 36792 # Not in mixed or Windows style, start by that. 36793 new_path=`cmd //c echo $new_path` 36794 36795 input_path="$new_path" 36796 # Check if we need to convert this using DOS-style short mode. If the path 36797 # contains just simple characters, use it. Otherwise (spaces, weird characters), 36798 # take no chances and rewrite it. 36799 # Note: m4 eats our [], so we need to use [ and ] instead. 36800 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 36801 if test "x$has_forbidden_chars" != x; then 36802 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 36803 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 36804 fi 36805 36806 # Output is in $new_path 36807 36808 windows_path="$new_path" 36809 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 36810 unix_path=`$CYGPATH -u "$windows_path"` 36811 new_path="$unix_path" 36812 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 36813 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 36814 new_path="$unix_path" 36815 fi 36816 36817 # remove trailing .exe if any 36818 new_path="${new_path/%.exe/}" 36819 36820 # Save the first 10 bytes of this path to the storage, so fixpath can work. 36821 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 36822 fi 36823 36824 else 36825 # We're on a posix platform. Hooray! :) 36826 # First separate the path from the arguments. This will split at the first 36827 # space. 36828 complete="$OBJCOPY" 36829 path="${complete%% *}" 36830 tmp="$complete EOL" 36831 arguments="${tmp#* }" 36832 36833 # Cannot rely on the command "which" here since it doesn't always work. 36834 is_absolute_path=`$ECHO "$path" | $GREP ^/` 36835 if test -z "$is_absolute_path"; then 36836 # Path to executable is not absolute. Find it. 36837 IFS_save="$IFS" 36838 IFS=: 36839 for p in $PATH; do 36840 if test -f "$p/$path" && test -x "$p/$path"; then 36841 new_path="$p/$path" 36842 break 36843 fi 36844 done 36845 IFS="$IFS_save" 36846 else 36847 # This is an absolute path, we can use it without further modifications. 36848 new_path="$path" 36849 fi 36850 36851 if test "x$new_path" = x; then 36852 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&5 36853 $as_echo "$as_me: The path of OBJCOPY, which resolves as \"$complete\", is not found." >&6;} 36854 has_space=`$ECHO "$complete" | $GREP " "` 36855 if test "x$has_space" != x; then 36856 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 36857 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 36858 fi 36859 as_fn_error $? "Cannot locate the the path of OBJCOPY" "$LINENO" 5 36860 fi 36861 fi 36862 36863 # Now join together the path and the arguments once again 36864 if test "x$arguments" != xEOL; then 36865 new_complete="$new_path ${arguments% *}" 36866 else 36867 new_complete="$new_path" 36868 fi 36869 36870 if test "x$complete" != "x$new_complete"; then 36871 OBJCOPY="$new_complete" 36872 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJCOPY to \"$new_complete\"" >&5 36873 $as_echo "$as_me: Rewriting OBJCOPY to \"$new_complete\"" >&6;} 36874 fi 36875 36876 fi 36877 fi 36878 36879 36880 36881 # Publish this variable in the help. 36882 36883 36884 if test "x$OBJDUMP" = x; then 36885 # The variable is not set by user, try to locate tool using the code snippet 36886 if test -n "$ac_tool_prefix"; then 36887 for ac_prog in gobjdump objdump 36888 do 36889 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 36890 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 36891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36892 $as_echo_n "checking for $ac_word... " >&6; } 36893 if ${ac_cv_prog_OBJDUMP+:} false; then : 36894 $as_echo_n "(cached) " >&6 36895 else 36896 if test -n "$OBJDUMP"; then 36897 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 36898 else 36899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36900 for as_dir in $PATH 36901 do 36902 IFS=$as_save_IFS 36903 test -z "$as_dir" && as_dir=. 36904 for ac_exec_ext in '' $ac_executable_extensions; do 36905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36906 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 36907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36908 break 2 36909 fi 36910 done 36911 done 36912 IFS=$as_save_IFS 36913 36914 fi 36915 fi 36916 OBJDUMP=$ac_cv_prog_OBJDUMP 36917 if test -n "$OBJDUMP"; then 36918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 36919 $as_echo "$OBJDUMP" >&6; } 36920 else 36921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36922 $as_echo "no" >&6; } 36923 fi 36924 36925 36926 test -n "$OBJDUMP" && break 36927 done 36928 fi 36929 if test -z "$OBJDUMP"; then 36930 ac_ct_OBJDUMP=$OBJDUMP 36931 for ac_prog in gobjdump objdump 36932 do 36933 # Extract the first word of "$ac_prog", so it can be a program name with args. 36934 set dummy $ac_prog; ac_word=$2 36935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 36936 $as_echo_n "checking for $ac_word... " >&6; } 36937 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 36938 $as_echo_n "(cached) " >&6 36939 else 36940 if test -n "$ac_ct_OBJDUMP"; then 36941 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 36942 else 36943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 36944 for as_dir in $PATH 36945 do 36946 IFS=$as_save_IFS 36947 test -z "$as_dir" && as_dir=. 36948 for ac_exec_ext in '' $ac_executable_extensions; do 36949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 36950 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 36951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 36952 break 2 36953 fi 36954 done 36955 done 36956 IFS=$as_save_IFS 36957 36958 fi 36959 fi 36960 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 36961 if test -n "$ac_ct_OBJDUMP"; then 36962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 36963 $as_echo "$ac_ct_OBJDUMP" >&6; } 36964 else 36965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 36966 $as_echo "no" >&6; } 36967 fi 36968 36969 36970 test -n "$ac_ct_OBJDUMP" && break 36971 done 36972 36973 if test "x$ac_ct_OBJDUMP" = x; then 36974 OBJDUMP="" 36975 else 36976 case $cross_compiling:$ac_tool_warned in 36977 yes:) 36978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 36979 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 36980 ac_tool_warned=yes ;; 36981 esac 36982 OBJDUMP=$ac_ct_OBJDUMP 36983 fi 36984 fi 36985 36986 else 36987 # The variable is set, but is it from the command line or the environment? 36988 36989 # Try to remove the string !OBJDUMP! from our list. 36990 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!OBJDUMP!/} 36991 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 36992 # If it failed, the variable was not from the command line. Ignore it, 36993 # but warn the user (except for BASH, which is always set by the calling BASH). 36994 if test "xOBJDUMP" != xBASH; then 36995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&5 36996 $as_echo "$as_me: WARNING: Ignoring value of OBJDUMP from the environment. Use command line variables instead." >&2;} 36997 fi 36998 # Try to locate tool using the code snippet 36999 if test -n "$ac_tool_prefix"; then 37000 for ac_prog in gobjdump objdump 37001 do 37002 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 37003 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 37004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37005 $as_echo_n "checking for $ac_word... " >&6; } 37006 if ${ac_cv_prog_OBJDUMP+:} false; then : 37007 $as_echo_n "(cached) " >&6 37008 else 37009 if test -n "$OBJDUMP"; then 37010 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 37011 else 37012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37013 for as_dir in $PATH 37014 do 37015 IFS=$as_save_IFS 37016 test -z "$as_dir" && as_dir=. 37017 for ac_exec_ext in '' $ac_executable_extensions; do 37018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37019 ac_cv_prog_OBJDUMP="$ac_tool_prefix$ac_prog" 37020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37021 break 2 37022 fi 37023 done 37024 done 37025 IFS=$as_save_IFS 37026 37027 fi 37028 fi 37029 OBJDUMP=$ac_cv_prog_OBJDUMP 37030 if test -n "$OBJDUMP"; then 37031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 37032 $as_echo "$OBJDUMP" >&6; } 37033 else 37034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37035 $as_echo "no" >&6; } 37036 fi 37037 37038 37039 test -n "$OBJDUMP" && break 37040 done 37041 fi 37042 if test -z "$OBJDUMP"; then 37043 ac_ct_OBJDUMP=$OBJDUMP 37044 for ac_prog in gobjdump objdump 37045 do 37046 # Extract the first word of "$ac_prog", so it can be a program name with args. 37047 set dummy $ac_prog; ac_word=$2 37048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37049 $as_echo_n "checking for $ac_word... " >&6; } 37050 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 37051 $as_echo_n "(cached) " >&6 37052 else 37053 if test -n "$ac_ct_OBJDUMP"; then 37054 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 37055 else 37056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37057 for as_dir in $PATH 37058 do 37059 IFS=$as_save_IFS 37060 test -z "$as_dir" && as_dir=. 37061 for ac_exec_ext in '' $ac_executable_extensions; do 37062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37063 ac_cv_prog_ac_ct_OBJDUMP="$ac_prog" 37064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37065 break 2 37066 fi 37067 done 37068 done 37069 IFS=$as_save_IFS 37070 37071 fi 37072 fi 37073 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 37074 if test -n "$ac_ct_OBJDUMP"; then 37075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 37076 $as_echo "$ac_ct_OBJDUMP" >&6; } 37077 else 37078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37079 $as_echo "no" >&6; } 37080 fi 37081 37082 37083 test -n "$ac_ct_OBJDUMP" && break 37084 done 37085 37086 if test "x$ac_ct_OBJDUMP" = x; then 37087 OBJDUMP="" 37088 else 37089 case $cross_compiling:$ac_tool_warned in 37090 yes:) 37091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 37092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 37093 ac_tool_warned=yes ;; 37094 esac 37095 OBJDUMP=$ac_ct_OBJDUMP 37096 fi 37097 fi 37098 37099 else 37100 # If it succeeded, then it was overridden by the user. We will use it 37101 # for the tool. 37102 37103 # First remove it from the list of overridden variables, so we can test 37104 # for unknown variables in the end. 37105 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37106 37107 # Check if the provided tool contains a complete path. 37108 tool_specified="$OBJDUMP" 37109 tool_basename="${tool_specified##*/}" 37110 if test "x$tool_basename" = "x$tool_specified"; then 37111 # A command without a complete path is provided, search $PATH. 37112 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool OBJDUMP=$tool_basename" >&5 37113 $as_echo "$as_me: Will search for user supplied tool OBJDUMP=$tool_basename" >&6;} 37114 # Extract the first word of "$tool_basename", so it can be a program name with args. 37115 set dummy $tool_basename; ac_word=$2 37116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37117 $as_echo_n "checking for $ac_word... " >&6; } 37118 if ${ac_cv_path_OBJDUMP+:} false; then : 37119 $as_echo_n "(cached) " >&6 37120 else 37121 case $OBJDUMP in 37122 [\\/]* | ?:[\\/]*) 37123 ac_cv_path_OBJDUMP="$OBJDUMP" # Let the user override the test with a path. 37124 ;; 37125 *) 37126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37127 for as_dir in $PATH 37128 do 37129 IFS=$as_save_IFS 37130 test -z "$as_dir" && as_dir=. 37131 for ac_exec_ext in '' $ac_executable_extensions; do 37132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37133 ac_cv_path_OBJDUMP="$as_dir/$ac_word$ac_exec_ext" 37134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37135 break 2 37136 fi 37137 done 37138 done 37139 IFS=$as_save_IFS 37140 37141 ;; 37142 esac 37143 fi 37144 OBJDUMP=$ac_cv_path_OBJDUMP 37145 if test -n "$OBJDUMP"; then 37146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 37147 $as_echo "$OBJDUMP" >&6; } 37148 else 37149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37150 $as_echo "no" >&6; } 37151 fi 37152 37153 37154 if test "x$OBJDUMP" = x; then 37155 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37156 fi 37157 else 37158 # Otherwise we believe it is a complete path. Use it as it is. 37159 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool OBJDUMP=$tool_specified" >&5 37160 $as_echo "$as_me: Will use user supplied tool OBJDUMP=$tool_specified" >&6;} 37161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OBJDUMP" >&5 37162 $as_echo_n "checking for OBJDUMP... " >&6; } 37163 if test ! -x "$tool_specified"; then 37164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37165 $as_echo "not found" >&6; } 37166 as_fn_error $? "User supplied tool OBJDUMP=$tool_specified does not exist or is not executable" "$LINENO" 5 37167 fi 37168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37169 $as_echo "$tool_specified" >&6; } 37170 fi 37171 fi 37172 fi 37173 37174 37175 if test "x$OBJDUMP" != x; then 37176 # Only used for compare.sh; we can live without it. BASIC_FIXUP_EXECUTABLE 37177 # bails if argument is missing. 37178 37179 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37180 37181 # First separate the path from the arguments. This will split at the first 37182 # space. 37183 complete="$OBJDUMP" 37184 path="${complete%% *}" 37185 tmp="$complete EOL" 37186 arguments="${tmp#* }" 37187 37188 # Input might be given as Windows format, start by converting to 37189 # unix format. 37190 new_path=`$CYGPATH -u "$path"` 37191 37192 # Now try to locate executable using which 37193 new_path=`$WHICH "$new_path" 2> /dev/null` 37194 # bat and cmd files are not always considered executable in cygwin causing which 37195 # to not find them 37196 if test "x$new_path" = x \ 37197 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37198 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37199 new_path=`$CYGPATH -u "$path"` 37200 fi 37201 if test "x$new_path" = x; then 37202 # Oops. Which didn't find the executable. 37203 # The splitting of arguments from the executable at a space might have been incorrect, 37204 # since paths with space are more likely in Windows. Give it another try with the whole 37205 # argument. 37206 path="$complete" 37207 arguments="EOL" 37208 new_path=`$CYGPATH -u "$path"` 37209 new_path=`$WHICH "$new_path" 2> /dev/null` 37210 # bat and cmd files are not always considered executable in cygwin causing which 37211 # to not find them 37212 if test "x$new_path" = x \ 37213 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37214 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37215 new_path=`$CYGPATH -u "$path"` 37216 fi 37217 if test "x$new_path" = x; then 37218 # It's still not found. Now this is an unrecoverable error. 37219 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 37220 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 37221 has_space=`$ECHO "$complete" | $GREP " "` 37222 if test "x$has_space" != x; then 37223 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37224 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37225 fi 37226 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37227 fi 37228 fi 37229 37230 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37231 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37232 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37233 # "foo.exe" is OK but "foo" is an error. 37234 # 37235 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37236 # It is also a way to make sure we got the proper file name for the real test later on. 37237 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37238 if test "x$test_shortpath" = x; then 37239 # Short path failed, file does not exist as specified. 37240 # Try adding .exe or .cmd 37241 if test -f "${new_path}.exe"; then 37242 input_to_shortpath="${new_path}.exe" 37243 elif test -f "${new_path}.cmd"; then 37244 input_to_shortpath="${new_path}.cmd" 37245 else 37246 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&5 37247 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$new_path\", is invalid." >&6;} 37248 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37249 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37250 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37251 fi 37252 else 37253 input_to_shortpath="$new_path" 37254 fi 37255 37256 # Call helper function which possibly converts this using DOS-style short mode. 37257 # If so, the updated path is stored in $new_path. 37258 new_path="$input_to_shortpath" 37259 37260 input_path="$input_to_shortpath" 37261 # Check if we need to convert this using DOS-style short mode. If the path 37262 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37263 # take no chances and rewrite it. 37264 # Note: m4 eats our [], so we need to use [ and ] instead. 37265 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37266 if test "x$has_forbidden_chars" != x; then 37267 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37268 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37269 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37270 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37271 # Going to short mode and back again did indeed matter. Since short mode is 37272 # case insensitive, let's make it lowercase to improve readability. 37273 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37274 # Now convert it back to Unix-stile (cygpath) 37275 input_path=`$CYGPATH -u "$shortmode_path"` 37276 new_path="$input_path" 37277 fi 37278 fi 37279 37280 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37281 if test "x$test_cygdrive_prefix" = x; then 37282 # As a simple fix, exclude /usr/bin since it's not a real path. 37283 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37284 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37285 # a path prefixed by /cygdrive for fixpath to work. 37286 new_path="$CYGWIN_ROOT_PATH$input_path" 37287 fi 37288 fi 37289 37290 # remove trailing .exe if any 37291 new_path="${new_path/%.exe/}" 37292 37293 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37294 37295 # First separate the path from the arguments. This will split at the first 37296 # space. 37297 complete="$OBJDUMP" 37298 path="${complete%% *}" 37299 tmp="$complete EOL" 37300 arguments="${tmp#* }" 37301 37302 # Input might be given as Windows format, start by converting to 37303 # unix format. 37304 new_path="$path" 37305 37306 windows_path="$new_path" 37307 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37308 unix_path=`$CYGPATH -u "$windows_path"` 37309 new_path="$unix_path" 37310 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37311 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37312 new_path="$unix_path" 37313 fi 37314 37315 37316 # Now try to locate executable using which 37317 new_path=`$WHICH "$new_path" 2> /dev/null` 37318 37319 if test "x$new_path" = x; then 37320 # Oops. Which didn't find the executable. 37321 # The splitting of arguments from the executable at a space might have been incorrect, 37322 # since paths with space are more likely in Windows. Give it another try with the whole 37323 # argument. 37324 path="$complete" 37325 arguments="EOL" 37326 new_path="$path" 37327 37328 windows_path="$new_path" 37329 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37330 unix_path=`$CYGPATH -u "$windows_path"` 37331 new_path="$unix_path" 37332 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37333 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37334 new_path="$unix_path" 37335 fi 37336 37337 37338 new_path=`$WHICH "$new_path" 2> /dev/null` 37339 37340 if test "x$new_path" = x; then 37341 # It's still not found. Now this is an unrecoverable error. 37342 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 37343 $as_echo "$as_me: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&6;} 37344 has_space=`$ECHO "$complete" | $GREP " "` 37345 if test "x$has_space" != x; then 37346 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37347 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37348 fi 37349 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37350 fi 37351 fi 37352 37353 # Now new_path has a complete unix path to the binary 37354 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37355 # Keep paths in /bin as-is, but remove trailing .exe if any 37356 new_path="${new_path/%.exe/}" 37357 # Do not save /bin paths to all_fixpath_prefixes! 37358 else 37359 # Not in mixed or Windows style, start by that. 37360 new_path=`cmd //c echo $new_path` 37361 37362 input_path="$new_path" 37363 # Check if we need to convert this using DOS-style short mode. If the path 37364 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37365 # take no chances and rewrite it. 37366 # Note: m4 eats our [], so we need to use [ and ] instead. 37367 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37368 if test "x$has_forbidden_chars" != x; then 37369 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37370 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37371 fi 37372 37373 # Output is in $new_path 37374 37375 windows_path="$new_path" 37376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37377 unix_path=`$CYGPATH -u "$windows_path"` 37378 new_path="$unix_path" 37379 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37380 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37381 new_path="$unix_path" 37382 fi 37383 37384 # remove trailing .exe if any 37385 new_path="${new_path/%.exe/}" 37386 37387 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37388 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37389 fi 37390 37391 else 37392 # We're on a posix platform. Hooray! :) 37393 # First separate the path from the arguments. This will split at the first 37394 # space. 37395 complete="$OBJDUMP" 37396 path="${complete%% *}" 37397 tmp="$complete EOL" 37398 arguments="${tmp#* }" 37399 37400 # Cannot rely on the command "which" here since it doesn't always work. 37401 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37402 if test -z "$is_absolute_path"; then 37403 # Path to executable is not absolute. Find it. 37404 IFS_save="$IFS" 37405 IFS=: 37406 for p in $PATH; do 37407 if test -f "$p/$path" && test -x "$p/$path"; then 37408 new_path="$p/$path" 37409 break 37410 fi 37411 done 37412 IFS="$IFS_save" 37413 else 37414 # This is an absolute path, we can use it without further modifications. 37415 new_path="$path" 37416 fi 37417 37418 if test "x$new_path" = x; then 37419 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of OBJDUMP, which resolves as \"$complete\", is not found." >&5 37420 $as_echo "$as_me: The path of OBJDUMP, 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}: This might be caused by spaces in the path, which is not allowed." >&5 37424 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37425 fi 37426 as_fn_error $? "Cannot locate the the path of OBJDUMP" "$LINENO" 5 37427 fi 37428 fi 37429 37430 # Now join together the path and the arguments once again 37431 if test "x$arguments" != xEOL; then 37432 new_complete="$new_path ${arguments% *}" 37433 else 37434 new_complete="$new_path" 37435 fi 37436 37437 if test "x$complete" != "x$new_complete"; then 37438 OBJDUMP="$new_complete" 37439 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting OBJDUMP to \"$new_complete\"" >&5 37440 $as_echo "$as_me: Rewriting OBJDUMP to \"$new_complete\"" >&6;} 37441 fi 37442 37443 fi 37444 37445 37446 # Restore old path. 37447 PATH="$OLD_PATH" 37448 37449 # Restore the flags to the user specified values. 37450 # This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2" 37451 CFLAGS="$ORG_CFLAGS" 37452 CXXFLAGS="$ORG_CXXFLAGS" 37453 OBJCFLAGS="$ORG_OBJCFLAGS" 37454 37455 37456 # Finally do some processing after the detection phase 37457 37458 if test "x$COMPILE_TYPE" = "xcross"; then 37459 # Now we need to find a C/C++ compiler that can build executables for the 37460 # build platform. We can't use the AC_PROG_CC macro, since it can only be 37461 # used once. Also, we need to do this without adding a tools dir to the 37462 # path, otherwise we might pick up cross-compilers which don't use standard 37463 # naming. 37464 37465 # FIXME: we should list the discovered compilers as an exclude pattern! 37466 # If we do that, we can do this detection before POST_DETECTION, and still 37467 # find the build compilers in the tools dir, if needed. 37468 37469 37470 # Publish this variable in the help. 37471 37472 37473 if test "x$BUILD_CC" = x; then 37474 # The variable is not set by user, try to locate tool using the code snippet 37475 for ac_prog in cl cc gcc 37476 do 37477 # Extract the first word of "$ac_prog", so it can be a program name with args. 37478 set dummy $ac_prog; ac_word=$2 37479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37480 $as_echo_n "checking for $ac_word... " >&6; } 37481 if ${ac_cv_path_BUILD_CC+:} false; then : 37482 $as_echo_n "(cached) " >&6 37483 else 37484 case $BUILD_CC in 37485 [\\/]* | ?:[\\/]*) 37486 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 37487 ;; 37488 *) 37489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37490 for as_dir in $PATH 37491 do 37492 IFS=$as_save_IFS 37493 test -z "$as_dir" && as_dir=. 37494 for ac_exec_ext in '' $ac_executable_extensions; do 37495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37496 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 37497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37498 break 2 37499 fi 37500 done 37501 done 37502 IFS=$as_save_IFS 37503 37504 ;; 37505 esac 37506 fi 37507 BUILD_CC=$ac_cv_path_BUILD_CC 37508 if test -n "$BUILD_CC"; then 37509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 37510 $as_echo "$BUILD_CC" >&6; } 37511 else 37512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37513 $as_echo "no" >&6; } 37514 fi 37515 37516 37517 test -n "$BUILD_CC" && break 37518 done 37519 37520 else 37521 # The variable is set, but is it from the command line or the environment? 37522 37523 # Try to remove the string !BUILD_CC! from our list. 37524 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CC!/} 37525 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37526 # If it failed, the variable was not from the command line. Ignore it, 37527 # but warn the user (except for BASH, which is always set by the calling BASH). 37528 if test "xBUILD_CC" != xBASH; then 37529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&5 37530 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CC from the environment. Use command line variables instead." >&2;} 37531 fi 37532 # Try to locate tool using the code snippet 37533 for ac_prog in cl cc gcc 37534 do 37535 # Extract the first word of "$ac_prog", so it can be a program name with args. 37536 set dummy $ac_prog; ac_word=$2 37537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37538 $as_echo_n "checking for $ac_word... " >&6; } 37539 if ${ac_cv_path_BUILD_CC+:} false; then : 37540 $as_echo_n "(cached) " >&6 37541 else 37542 case $BUILD_CC in 37543 [\\/]* | ?:[\\/]*) 37544 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 37545 ;; 37546 *) 37547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37548 for as_dir in $PATH 37549 do 37550 IFS=$as_save_IFS 37551 test -z "$as_dir" && as_dir=. 37552 for ac_exec_ext in '' $ac_executable_extensions; do 37553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37554 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 37555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37556 break 2 37557 fi 37558 done 37559 done 37560 IFS=$as_save_IFS 37561 37562 ;; 37563 esac 37564 fi 37565 BUILD_CC=$ac_cv_path_BUILD_CC 37566 if test -n "$BUILD_CC"; then 37567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 37568 $as_echo "$BUILD_CC" >&6; } 37569 else 37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37571 $as_echo "no" >&6; } 37572 fi 37573 37574 37575 test -n "$BUILD_CC" && break 37576 done 37577 37578 else 37579 # If it succeeded, then it was overridden by the user. We will use it 37580 # for the tool. 37581 37582 # First remove it from the list of overridden variables, so we can test 37583 # for unknown variables in the end. 37584 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 37585 37586 # Check if the provided tool contains a complete path. 37587 tool_specified="$BUILD_CC" 37588 tool_basename="${tool_specified##*/}" 37589 if test "x$tool_basename" = "x$tool_specified"; then 37590 # A command without a complete path is provided, search $PATH. 37591 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CC=$tool_basename" >&5 37592 $as_echo "$as_me: Will search for user supplied tool BUILD_CC=$tool_basename" >&6;} 37593 # Extract the first word of "$tool_basename", so it can be a program name with args. 37594 set dummy $tool_basename; ac_word=$2 37595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37596 $as_echo_n "checking for $ac_word... " >&6; } 37597 if ${ac_cv_path_BUILD_CC+:} false; then : 37598 $as_echo_n "(cached) " >&6 37599 else 37600 case $BUILD_CC in 37601 [\\/]* | ?:[\\/]*) 37602 ac_cv_path_BUILD_CC="$BUILD_CC" # Let the user override the test with a path. 37603 ;; 37604 *) 37605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37606 for as_dir in $PATH 37607 do 37608 IFS=$as_save_IFS 37609 test -z "$as_dir" && as_dir=. 37610 for ac_exec_ext in '' $ac_executable_extensions; do 37611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37612 ac_cv_path_BUILD_CC="$as_dir/$ac_word$ac_exec_ext" 37613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37614 break 2 37615 fi 37616 done 37617 done 37618 IFS=$as_save_IFS 37619 37620 ;; 37621 esac 37622 fi 37623 BUILD_CC=$ac_cv_path_BUILD_CC 37624 if test -n "$BUILD_CC"; then 37625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5 37626 $as_echo "$BUILD_CC" >&6; } 37627 else 37628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37629 $as_echo "no" >&6; } 37630 fi 37631 37632 37633 if test "x$BUILD_CC" = x; then 37634 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 37635 fi 37636 else 37637 # Otherwise we believe it is a complete path. Use it as it is. 37638 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CC=$tool_specified" >&5 37639 $as_echo "$as_me: Will use user supplied tool BUILD_CC=$tool_specified" >&6;} 37640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CC" >&5 37641 $as_echo_n "checking for BUILD_CC... " >&6; } 37642 if test ! -x "$tool_specified"; then 37643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 37644 $as_echo "not found" >&6; } 37645 as_fn_error $? "User supplied tool BUILD_CC=$tool_specified does not exist or is not executable" "$LINENO" 5 37646 fi 37647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 37648 $as_echo "$tool_specified" >&6; } 37649 fi 37650 fi 37651 fi 37652 37653 37654 37655 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37656 37657 # First separate the path from the arguments. This will split at the first 37658 # space. 37659 complete="$BUILD_CC" 37660 path="${complete%% *}" 37661 tmp="$complete EOL" 37662 arguments="${tmp#* }" 37663 37664 # Input might be given as Windows format, start by converting to 37665 # unix format. 37666 new_path=`$CYGPATH -u "$path"` 37667 37668 # Now try to locate executable using which 37669 new_path=`$WHICH "$new_path" 2> /dev/null` 37670 # bat and cmd files are not always considered executable in cygwin causing which 37671 # to not find them 37672 if test "x$new_path" = x \ 37673 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37674 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37675 new_path=`$CYGPATH -u "$path"` 37676 fi 37677 if test "x$new_path" = x; then 37678 # Oops. Which didn't find the executable. 37679 # The splitting of arguments from the executable at a space might have been incorrect, 37680 # since paths with space are more likely in Windows. Give it another try with the whole 37681 # argument. 37682 path="$complete" 37683 arguments="EOL" 37684 new_path=`$CYGPATH -u "$path"` 37685 new_path=`$WHICH "$new_path" 2> /dev/null` 37686 # bat and cmd files are not always considered executable in cygwin causing which 37687 # to not find them 37688 if test "x$new_path" = x \ 37689 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 37690 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 37691 new_path=`$CYGPATH -u "$path"` 37692 fi 37693 if test "x$new_path" = x; then 37694 # It's still not found. Now this is an unrecoverable error. 37695 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 37696 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 37697 has_space=`$ECHO "$complete" | $GREP " "` 37698 if test "x$has_space" != x; then 37699 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37700 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37701 fi 37702 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37703 fi 37704 fi 37705 37706 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 37707 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 37708 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 37709 # "foo.exe" is OK but "foo" is an error. 37710 # 37711 # This test is therefore slightly more accurate than "test -f" to check for file presence. 37712 # It is also a way to make sure we got the proper file name for the real test later on. 37713 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 37714 if test "x$test_shortpath" = x; then 37715 # Short path failed, file does not exist as specified. 37716 # Try adding .exe or .cmd 37717 if test -f "${new_path}.exe"; then 37718 input_to_shortpath="${new_path}.exe" 37719 elif test -f "${new_path}.cmd"; then 37720 input_to_shortpath="${new_path}.cmd" 37721 else 37722 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&5 37723 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$new_path\", is invalid." >&6;} 37724 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 37725 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 37726 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37727 fi 37728 else 37729 input_to_shortpath="$new_path" 37730 fi 37731 37732 # Call helper function which possibly converts this using DOS-style short mode. 37733 # If so, the updated path is stored in $new_path. 37734 new_path="$input_to_shortpath" 37735 37736 input_path="$input_to_shortpath" 37737 # Check if we need to convert this using DOS-style short mode. If the path 37738 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37739 # take no chances and rewrite it. 37740 # Note: m4 eats our [], so we need to use [ and ] instead. 37741 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 37742 if test "x$has_forbidden_chars" != x; then 37743 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37744 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 37745 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 37746 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 37747 # Going to short mode and back again did indeed matter. Since short mode is 37748 # case insensitive, let's make it lowercase to improve readability. 37749 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37750 # Now convert it back to Unix-stile (cygpath) 37751 input_path=`$CYGPATH -u "$shortmode_path"` 37752 new_path="$input_path" 37753 fi 37754 fi 37755 37756 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 37757 if test "x$test_cygdrive_prefix" = x; then 37758 # As a simple fix, exclude /usr/bin since it's not a real path. 37759 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 37760 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 37761 # a path prefixed by /cygdrive for fixpath to work. 37762 new_path="$CYGWIN_ROOT_PATH$input_path" 37763 fi 37764 fi 37765 37766 # remove trailing .exe if any 37767 new_path="${new_path/%.exe/}" 37768 37769 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37770 37771 # First separate the path from the arguments. This will split at the first 37772 # space. 37773 complete="$BUILD_CC" 37774 path="${complete%% *}" 37775 tmp="$complete EOL" 37776 arguments="${tmp#* }" 37777 37778 # Input might be given as Windows format, start by converting to 37779 # unix format. 37780 new_path="$path" 37781 37782 windows_path="$new_path" 37783 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37784 unix_path=`$CYGPATH -u "$windows_path"` 37785 new_path="$unix_path" 37786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37787 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37788 new_path="$unix_path" 37789 fi 37790 37791 37792 # Now try to locate executable using which 37793 new_path=`$WHICH "$new_path" 2> /dev/null` 37794 37795 if test "x$new_path" = x; then 37796 # Oops. Which didn't find the executable. 37797 # The splitting of arguments from the executable at a space might have been incorrect, 37798 # since paths with space are more likely in Windows. Give it another try with the whole 37799 # argument. 37800 path="$complete" 37801 arguments="EOL" 37802 new_path="$path" 37803 37804 windows_path="$new_path" 37805 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37806 unix_path=`$CYGPATH -u "$windows_path"` 37807 new_path="$unix_path" 37808 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37809 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37810 new_path="$unix_path" 37811 fi 37812 37813 37814 new_path=`$WHICH "$new_path" 2> /dev/null` 37815 37816 if test "x$new_path" = x; then 37817 # It's still not found. Now this is an unrecoverable error. 37818 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 37819 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 37820 has_space=`$ECHO "$complete" | $GREP " "` 37821 if test "x$has_space" != x; then 37822 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 37823 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 37824 fi 37825 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37826 fi 37827 fi 37828 37829 # Now new_path has a complete unix path to the binary 37830 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 37831 # Keep paths in /bin as-is, but remove trailing .exe if any 37832 new_path="${new_path/%.exe/}" 37833 # Do not save /bin paths to all_fixpath_prefixes! 37834 else 37835 # Not in mixed or Windows style, start by that. 37836 new_path=`cmd //c echo $new_path` 37837 37838 input_path="$new_path" 37839 # Check if we need to convert this using DOS-style short mode. If the path 37840 # contains just simple characters, use it. Otherwise (spaces, weird characters), 37841 # take no chances and rewrite it. 37842 # Note: m4 eats our [], so we need to use [ and ] instead. 37843 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 37844 if test "x$has_forbidden_chars" != x; then 37845 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 37846 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 37847 fi 37848 37849 # Output is in $new_path 37850 37851 windows_path="$new_path" 37852 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 37853 unix_path=`$CYGPATH -u "$windows_path"` 37854 new_path="$unix_path" 37855 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 37856 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 37857 new_path="$unix_path" 37858 fi 37859 37860 # remove trailing .exe if any 37861 new_path="${new_path/%.exe/}" 37862 37863 # Save the first 10 bytes of this path to the storage, so fixpath can work. 37864 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 37865 fi 37866 37867 else 37868 # We're on a posix platform. Hooray! :) 37869 # First separate the path from the arguments. This will split at the first 37870 # space. 37871 complete="$BUILD_CC" 37872 path="${complete%% *}" 37873 tmp="$complete EOL" 37874 arguments="${tmp#* }" 37875 37876 # Cannot rely on the command "which" here since it doesn't always work. 37877 is_absolute_path=`$ECHO "$path" | $GREP ^/` 37878 if test -z "$is_absolute_path"; then 37879 # Path to executable is not absolute. Find it. 37880 IFS_save="$IFS" 37881 IFS=: 37882 for p in $PATH; do 37883 if test -f "$p/$path" && test -x "$p/$path"; then 37884 new_path="$p/$path" 37885 break 37886 fi 37887 done 37888 IFS="$IFS_save" 37889 else 37890 # This is an absolute path, we can use it without further modifications. 37891 new_path="$path" 37892 fi 37893 37894 if test "x$new_path" = x; then 37895 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&5 37896 $as_echo "$as_me: The path of BUILD_CC, which resolves as \"$complete\", is not found." >&6;} 37897 has_space=`$ECHO "$complete" | $GREP " "` 37898 if test "x$has_space" != x; then 37899 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 37900 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 37901 fi 37902 as_fn_error $? "Cannot locate the the path of BUILD_CC" "$LINENO" 5 37903 fi 37904 fi 37905 37906 # Now join together the path and the arguments once again 37907 if test "x$arguments" != xEOL; then 37908 new_complete="$new_path ${arguments% *}" 37909 else 37910 new_complete="$new_path" 37911 fi 37912 37913 if test "x$complete" != "x$new_complete"; then 37914 BUILD_CC="$new_complete" 37915 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CC to \"$new_complete\"" >&5 37916 $as_echo "$as_me: Rewriting BUILD_CC to \"$new_complete\"" >&6;} 37917 fi 37918 37919 37920 37921 # Publish this variable in the help. 37922 37923 37924 if test "x$BUILD_CXX" = x; then 37925 # The variable is not set by user, try to locate tool using the code snippet 37926 for ac_prog in cl CC g++ 37927 do 37928 # Extract the first word of "$ac_prog", so it can be a program name with args. 37929 set dummy $ac_prog; ac_word=$2 37930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37931 $as_echo_n "checking for $ac_word... " >&6; } 37932 if ${ac_cv_path_BUILD_CXX+:} false; then : 37933 $as_echo_n "(cached) " >&6 37934 else 37935 case $BUILD_CXX in 37936 [\\/]* | ?:[\\/]*) 37937 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 37938 ;; 37939 *) 37940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37941 for as_dir in $PATH 37942 do 37943 IFS=$as_save_IFS 37944 test -z "$as_dir" && as_dir=. 37945 for ac_exec_ext in '' $ac_executable_extensions; do 37946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 37947 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 37948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 37949 break 2 37950 fi 37951 done 37952 done 37953 IFS=$as_save_IFS 37954 37955 ;; 37956 esac 37957 fi 37958 BUILD_CXX=$ac_cv_path_BUILD_CXX 37959 if test -n "$BUILD_CXX"; then 37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 37961 $as_echo "$BUILD_CXX" >&6; } 37962 else 37963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 37964 $as_echo "no" >&6; } 37965 fi 37966 37967 37968 test -n "$BUILD_CXX" && break 37969 done 37970 37971 else 37972 # The variable is set, but is it from the command line or the environment? 37973 37974 # Try to remove the string !BUILD_CXX! from our list. 37975 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_CXX!/} 37976 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 37977 # If it failed, the variable was not from the command line. Ignore it, 37978 # but warn the user (except for BASH, which is always set by the calling BASH). 37979 if test "xBUILD_CXX" != xBASH; then 37980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&5 37981 $as_echo "$as_me: WARNING: Ignoring value of BUILD_CXX from the environment. Use command line variables instead." >&2;} 37982 fi 37983 # Try to locate tool using the code snippet 37984 for ac_prog in cl CC g++ 37985 do 37986 # Extract the first word of "$ac_prog", so it can be a program name with args. 37987 set dummy $ac_prog; ac_word=$2 37988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 37989 $as_echo_n "checking for $ac_word... " >&6; } 37990 if ${ac_cv_path_BUILD_CXX+:} false; then : 37991 $as_echo_n "(cached) " >&6 37992 else 37993 case $BUILD_CXX in 37994 [\\/]* | ?:[\\/]*) 37995 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 37996 ;; 37997 *) 37998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 37999 for as_dir in $PATH 38000 do 38001 IFS=$as_save_IFS 38002 test -z "$as_dir" && as_dir=. 38003 for ac_exec_ext in '' $ac_executable_extensions; do 38004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38005 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 38006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38007 break 2 38008 fi 38009 done 38010 done 38011 IFS=$as_save_IFS 38012 38013 ;; 38014 esac 38015 fi 38016 BUILD_CXX=$ac_cv_path_BUILD_CXX 38017 if test -n "$BUILD_CXX"; then 38018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 38019 $as_echo "$BUILD_CXX" >&6; } 38020 else 38021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38022 $as_echo "no" >&6; } 38023 fi 38024 38025 38026 test -n "$BUILD_CXX" && break 38027 done 38028 38029 else 38030 # If it succeeded, then it was overridden by the user. We will use it 38031 # for the tool. 38032 38033 # First remove it from the list of overridden variables, so we can test 38034 # for unknown variables in the end. 38035 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38036 38037 # Check if the provided tool contains a complete path. 38038 tool_specified="$BUILD_CXX" 38039 tool_basename="${tool_specified##*/}" 38040 if test "x$tool_basename" = "x$tool_specified"; then 38041 # A command without a complete path is provided, search $PATH. 38042 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_CXX=$tool_basename" >&5 38043 $as_echo "$as_me: Will search for user supplied tool BUILD_CXX=$tool_basename" >&6;} 38044 # Extract the first word of "$tool_basename", so it can be a program name with args. 38045 set dummy $tool_basename; ac_word=$2 38046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38047 $as_echo_n "checking for $ac_word... " >&6; } 38048 if ${ac_cv_path_BUILD_CXX+:} false; then : 38049 $as_echo_n "(cached) " >&6 38050 else 38051 case $BUILD_CXX in 38052 [\\/]* | ?:[\\/]*) 38053 ac_cv_path_BUILD_CXX="$BUILD_CXX" # Let the user override the test with a path. 38054 ;; 38055 *) 38056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38057 for as_dir in $PATH 38058 do 38059 IFS=$as_save_IFS 38060 test -z "$as_dir" && as_dir=. 38061 for ac_exec_ext in '' $ac_executable_extensions; do 38062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38063 ac_cv_path_BUILD_CXX="$as_dir/$ac_word$ac_exec_ext" 38064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38065 break 2 38066 fi 38067 done 38068 done 38069 IFS=$as_save_IFS 38070 38071 ;; 38072 esac 38073 fi 38074 BUILD_CXX=$ac_cv_path_BUILD_CXX 38075 if test -n "$BUILD_CXX"; then 38076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5 38077 $as_echo "$BUILD_CXX" >&6; } 38078 else 38079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38080 $as_echo "no" >&6; } 38081 fi 38082 38083 38084 if test "x$BUILD_CXX" = x; then 38085 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38086 fi 38087 else 38088 # Otherwise we believe it is a complete path. Use it as it is. 38089 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_CXX=$tool_specified" >&5 38090 $as_echo "$as_me: Will use user supplied tool BUILD_CXX=$tool_specified" >&6;} 38091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_CXX" >&5 38092 $as_echo_n "checking for BUILD_CXX... " >&6; } 38093 if test ! -x "$tool_specified"; then 38094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38095 $as_echo "not found" >&6; } 38096 as_fn_error $? "User supplied tool BUILD_CXX=$tool_specified does not exist or is not executable" "$LINENO" 5 38097 fi 38098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38099 $as_echo "$tool_specified" >&6; } 38100 fi 38101 fi 38102 fi 38103 38104 38105 38106 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38107 38108 # First separate the path from the arguments. This will split at the first 38109 # space. 38110 complete="$BUILD_CXX" 38111 path="${complete%% *}" 38112 tmp="$complete EOL" 38113 arguments="${tmp#* }" 38114 38115 # Input might be given as Windows format, start by converting to 38116 # unix format. 38117 new_path=`$CYGPATH -u "$path"` 38118 38119 # Now try to locate executable using which 38120 new_path=`$WHICH "$new_path" 2> /dev/null` 38121 # bat and cmd files are not always considered executable in cygwin causing which 38122 # to not find them 38123 if test "x$new_path" = x \ 38124 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38125 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38126 new_path=`$CYGPATH -u "$path"` 38127 fi 38128 if test "x$new_path" = x; then 38129 # Oops. Which didn't find the executable. 38130 # The splitting of arguments from the executable at a space might have been incorrect, 38131 # since paths with space are more likely in Windows. Give it another try with the whole 38132 # argument. 38133 path="$complete" 38134 arguments="EOL" 38135 new_path=`$CYGPATH -u "$path"` 38136 new_path=`$WHICH "$new_path" 2> /dev/null` 38137 # bat and cmd files are not always considered executable in cygwin causing which 38138 # to not find them 38139 if test "x$new_path" = x \ 38140 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38141 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38142 new_path=`$CYGPATH -u "$path"` 38143 fi 38144 if test "x$new_path" = x; then 38145 # It's still not found. Now this is an unrecoverable error. 38146 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 38147 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 38148 has_space=`$ECHO "$complete" | $GREP " "` 38149 if test "x$has_space" != x; then 38150 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38151 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38152 fi 38153 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38154 fi 38155 fi 38156 38157 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38158 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38159 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38160 # "foo.exe" is OK but "foo" is an error. 38161 # 38162 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38163 # It is also a way to make sure we got the proper file name for the real test later on. 38164 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38165 if test "x$test_shortpath" = x; then 38166 # Short path failed, file does not exist as specified. 38167 # Try adding .exe or .cmd 38168 if test -f "${new_path}.exe"; then 38169 input_to_shortpath="${new_path}.exe" 38170 elif test -f "${new_path}.cmd"; then 38171 input_to_shortpath="${new_path}.cmd" 38172 else 38173 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&5 38174 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$new_path\", is invalid." >&6;} 38175 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38176 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38177 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38178 fi 38179 else 38180 input_to_shortpath="$new_path" 38181 fi 38182 38183 # Call helper function which possibly converts this using DOS-style short mode. 38184 # If so, the updated path is stored in $new_path. 38185 new_path="$input_to_shortpath" 38186 38187 input_path="$input_to_shortpath" 38188 # Check if we need to convert this using DOS-style short mode. If the path 38189 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38190 # take no chances and rewrite it. 38191 # Note: m4 eats our [], so we need to use [ and ] instead. 38192 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38193 if test "x$has_forbidden_chars" != x; then 38194 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38195 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38196 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38197 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38198 # Going to short mode and back again did indeed matter. Since short mode is 38199 # case insensitive, let's make it lowercase to improve readability. 38200 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38201 # Now convert it back to Unix-stile (cygpath) 38202 input_path=`$CYGPATH -u "$shortmode_path"` 38203 new_path="$input_path" 38204 fi 38205 fi 38206 38207 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38208 if test "x$test_cygdrive_prefix" = x; then 38209 # As a simple fix, exclude /usr/bin since it's not a real path. 38210 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38211 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38212 # a path prefixed by /cygdrive for fixpath to work. 38213 new_path="$CYGWIN_ROOT_PATH$input_path" 38214 fi 38215 fi 38216 38217 # remove trailing .exe if any 38218 new_path="${new_path/%.exe/}" 38219 38220 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38221 38222 # First separate the path from the arguments. This will split at the first 38223 # space. 38224 complete="$BUILD_CXX" 38225 path="${complete%% *}" 38226 tmp="$complete EOL" 38227 arguments="${tmp#* }" 38228 38229 # Input might be given as Windows format, start by converting to 38230 # unix format. 38231 new_path="$path" 38232 38233 windows_path="$new_path" 38234 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38235 unix_path=`$CYGPATH -u "$windows_path"` 38236 new_path="$unix_path" 38237 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38238 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38239 new_path="$unix_path" 38240 fi 38241 38242 38243 # Now try to locate executable using which 38244 new_path=`$WHICH "$new_path" 2> /dev/null` 38245 38246 if test "x$new_path" = x; then 38247 # Oops. Which didn't find the executable. 38248 # The splitting of arguments from the executable at a space might have been incorrect, 38249 # since paths with space are more likely in Windows. Give it another try with the whole 38250 # argument. 38251 path="$complete" 38252 arguments="EOL" 38253 new_path="$path" 38254 38255 windows_path="$new_path" 38256 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38257 unix_path=`$CYGPATH -u "$windows_path"` 38258 new_path="$unix_path" 38259 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38260 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38261 new_path="$unix_path" 38262 fi 38263 38264 38265 new_path=`$WHICH "$new_path" 2> /dev/null` 38266 38267 if test "x$new_path" = x; then 38268 # It's still not found. Now this is an unrecoverable error. 38269 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 38270 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 38271 has_space=`$ECHO "$complete" | $GREP " "` 38272 if test "x$has_space" != x; then 38273 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38274 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38275 fi 38276 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38277 fi 38278 fi 38279 38280 # Now new_path has a complete unix path to the binary 38281 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38282 # Keep paths in /bin as-is, but remove trailing .exe if any 38283 new_path="${new_path/%.exe/}" 38284 # Do not save /bin paths to all_fixpath_prefixes! 38285 else 38286 # Not in mixed or Windows style, start by that. 38287 new_path=`cmd //c echo $new_path` 38288 38289 input_path="$new_path" 38290 # Check if we need to convert this using DOS-style short mode. If the path 38291 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38292 # take no chances and rewrite it. 38293 # Note: m4 eats our [], so we need to use [ and ] instead. 38294 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38295 if test "x$has_forbidden_chars" != x; then 38296 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38297 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38298 fi 38299 38300 # Output is in $new_path 38301 38302 windows_path="$new_path" 38303 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38304 unix_path=`$CYGPATH -u "$windows_path"` 38305 new_path="$unix_path" 38306 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38307 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38308 new_path="$unix_path" 38309 fi 38310 38311 # remove trailing .exe if any 38312 new_path="${new_path/%.exe/}" 38313 38314 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38315 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38316 fi 38317 38318 else 38319 # We're on a posix platform. Hooray! :) 38320 # First separate the path from the arguments. This will split at the first 38321 # space. 38322 complete="$BUILD_CXX" 38323 path="${complete%% *}" 38324 tmp="$complete EOL" 38325 arguments="${tmp#* }" 38326 38327 # Cannot rely on the command "which" here since it doesn't always work. 38328 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38329 if test -z "$is_absolute_path"; then 38330 # Path to executable is not absolute. Find it. 38331 IFS_save="$IFS" 38332 IFS=: 38333 for p in $PATH; do 38334 if test -f "$p/$path" && test -x "$p/$path"; then 38335 new_path="$p/$path" 38336 break 38337 fi 38338 done 38339 IFS="$IFS_save" 38340 else 38341 # This is an absolute path, we can use it without further modifications. 38342 new_path="$path" 38343 fi 38344 38345 if test "x$new_path" = x; then 38346 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&5 38347 $as_echo "$as_me: The path of BUILD_CXX, which resolves as \"$complete\", is not found." >&6;} 38348 has_space=`$ECHO "$complete" | $GREP " "` 38349 if test "x$has_space" != x; then 38350 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38351 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38352 fi 38353 as_fn_error $? "Cannot locate the the path of BUILD_CXX" "$LINENO" 5 38354 fi 38355 fi 38356 38357 # Now join together the path and the arguments once again 38358 if test "x$arguments" != xEOL; then 38359 new_complete="$new_path ${arguments% *}" 38360 else 38361 new_complete="$new_path" 38362 fi 38363 38364 if test "x$complete" != "x$new_complete"; then 38365 BUILD_CXX="$new_complete" 38366 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_CXX to \"$new_complete\"" >&5 38367 $as_echo "$as_me: Rewriting BUILD_CXX to \"$new_complete\"" >&6;} 38368 fi 38369 38370 38371 38372 # Publish this variable in the help. 38373 38374 38375 if test "x$BUILD_LD" = x; then 38376 # The variable is not set by user, try to locate tool using the code snippet 38377 for ac_prog in ld 38378 do 38379 # Extract the first word of "$ac_prog", so it can be a program name with args. 38380 set dummy $ac_prog; ac_word=$2 38381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38382 $as_echo_n "checking for $ac_word... " >&6; } 38383 if ${ac_cv_path_BUILD_LD+:} false; then : 38384 $as_echo_n "(cached) " >&6 38385 else 38386 case $BUILD_LD in 38387 [\\/]* | ?:[\\/]*) 38388 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 38389 ;; 38390 *) 38391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38392 for as_dir in $PATH 38393 do 38394 IFS=$as_save_IFS 38395 test -z "$as_dir" && as_dir=. 38396 for ac_exec_ext in '' $ac_executable_extensions; do 38397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38398 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 38399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38400 break 2 38401 fi 38402 done 38403 done 38404 IFS=$as_save_IFS 38405 38406 ;; 38407 esac 38408 fi 38409 BUILD_LD=$ac_cv_path_BUILD_LD 38410 if test -n "$BUILD_LD"; then 38411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 38412 $as_echo "$BUILD_LD" >&6; } 38413 else 38414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38415 $as_echo "no" >&6; } 38416 fi 38417 38418 38419 test -n "$BUILD_LD" && break 38420 done 38421 38422 else 38423 # The variable is set, but is it from the command line or the environment? 38424 38425 # Try to remove the string !BUILD_LD! from our list. 38426 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!BUILD_LD!/} 38427 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 38428 # If it failed, the variable was not from the command line. Ignore it, 38429 # but warn the user (except for BASH, which is always set by the calling BASH). 38430 if test "xBUILD_LD" != xBASH; then 38431 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&5 38432 $as_echo "$as_me: WARNING: Ignoring value of BUILD_LD from the environment. Use command line variables instead." >&2;} 38433 fi 38434 # Try to locate tool using the code snippet 38435 for ac_prog in ld 38436 do 38437 # Extract the first word of "$ac_prog", so it can be a program name with args. 38438 set dummy $ac_prog; ac_word=$2 38439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38440 $as_echo_n "checking for $ac_word... " >&6; } 38441 if ${ac_cv_path_BUILD_LD+:} false; then : 38442 $as_echo_n "(cached) " >&6 38443 else 38444 case $BUILD_LD in 38445 [\\/]* | ?:[\\/]*) 38446 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 38447 ;; 38448 *) 38449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38450 for as_dir in $PATH 38451 do 38452 IFS=$as_save_IFS 38453 test -z "$as_dir" && as_dir=. 38454 for ac_exec_ext in '' $ac_executable_extensions; do 38455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38456 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 38457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38458 break 2 38459 fi 38460 done 38461 done 38462 IFS=$as_save_IFS 38463 38464 ;; 38465 esac 38466 fi 38467 BUILD_LD=$ac_cv_path_BUILD_LD 38468 if test -n "$BUILD_LD"; then 38469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 38470 $as_echo "$BUILD_LD" >&6; } 38471 else 38472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38473 $as_echo "no" >&6; } 38474 fi 38475 38476 38477 test -n "$BUILD_LD" && break 38478 done 38479 38480 else 38481 # If it succeeded, then it was overridden by the user. We will use it 38482 # for the tool. 38483 38484 # First remove it from the list of overridden variables, so we can test 38485 # for unknown variables in the end. 38486 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 38487 38488 # Check if the provided tool contains a complete path. 38489 tool_specified="$BUILD_LD" 38490 tool_basename="${tool_specified##*/}" 38491 if test "x$tool_basename" = "x$tool_specified"; then 38492 # A command without a complete path is provided, search $PATH. 38493 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool BUILD_LD=$tool_basename" >&5 38494 $as_echo "$as_me: Will search for user supplied tool BUILD_LD=$tool_basename" >&6;} 38495 # Extract the first word of "$tool_basename", so it can be a program name with args. 38496 set dummy $tool_basename; ac_word=$2 38497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 38498 $as_echo_n "checking for $ac_word... " >&6; } 38499 if ${ac_cv_path_BUILD_LD+:} false; then : 38500 $as_echo_n "(cached) " >&6 38501 else 38502 case $BUILD_LD in 38503 [\\/]* | ?:[\\/]*) 38504 ac_cv_path_BUILD_LD="$BUILD_LD" # Let the user override the test with a path. 38505 ;; 38506 *) 38507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 38508 for as_dir in $PATH 38509 do 38510 IFS=$as_save_IFS 38511 test -z "$as_dir" && as_dir=. 38512 for ac_exec_ext in '' $ac_executable_extensions; do 38513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 38514 ac_cv_path_BUILD_LD="$as_dir/$ac_word$ac_exec_ext" 38515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 38516 break 2 38517 fi 38518 done 38519 done 38520 IFS=$as_save_IFS 38521 38522 ;; 38523 esac 38524 fi 38525 BUILD_LD=$ac_cv_path_BUILD_LD 38526 if test -n "$BUILD_LD"; then 38527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_LD" >&5 38528 $as_echo "$BUILD_LD" >&6; } 38529 else 38530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38531 $as_echo "no" >&6; } 38532 fi 38533 38534 38535 if test "x$BUILD_LD" = x; then 38536 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 38537 fi 38538 else 38539 # Otherwise we believe it is a complete path. Use it as it is. 38540 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool BUILD_LD=$tool_specified" >&5 38541 $as_echo "$as_me: Will use user supplied tool BUILD_LD=$tool_specified" >&6;} 38542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BUILD_LD" >&5 38543 $as_echo_n "checking for BUILD_LD... " >&6; } 38544 if test ! -x "$tool_specified"; then 38545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 38546 $as_echo "not found" >&6; } 38547 as_fn_error $? "User supplied tool BUILD_LD=$tool_specified does not exist or is not executable" "$LINENO" 5 38548 fi 38549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 38550 $as_echo "$tool_specified" >&6; } 38551 fi 38552 fi 38553 fi 38554 38555 38556 38557 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38558 38559 # First separate the path from the arguments. This will split at the first 38560 # space. 38561 complete="$BUILD_LD" 38562 path="${complete%% *}" 38563 tmp="$complete EOL" 38564 arguments="${tmp#* }" 38565 38566 # Input might be given as Windows format, start by converting to 38567 # unix format. 38568 new_path=`$CYGPATH -u "$path"` 38569 38570 # Now try to locate executable using which 38571 new_path=`$WHICH "$new_path" 2> /dev/null` 38572 # bat and cmd files are not always considered executable in cygwin causing which 38573 # to not find them 38574 if test "x$new_path" = x \ 38575 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38576 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38577 new_path=`$CYGPATH -u "$path"` 38578 fi 38579 if test "x$new_path" = x; then 38580 # Oops. Which didn't find the executable. 38581 # The splitting of arguments from the executable at a space might have been incorrect, 38582 # since paths with space are more likely in Windows. Give it another try with the whole 38583 # argument. 38584 path="$complete" 38585 arguments="EOL" 38586 new_path=`$CYGPATH -u "$path"` 38587 new_path=`$WHICH "$new_path" 2> /dev/null` 38588 # bat and cmd files are not always considered executable in cygwin causing which 38589 # to not find them 38590 if test "x$new_path" = x \ 38591 && test "x`$ECHO \"$path\" | $GREP -i -e \"\\.bat$\" -e \"\\.cmd$\"`" != x \ 38592 && test "x`$LS \"$path\" 2>/dev/null`" != x; then 38593 new_path=`$CYGPATH -u "$path"` 38594 fi 38595 if test "x$new_path" = x; then 38596 # It's still not found. Now this is an unrecoverable error. 38597 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 38598 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 38599 has_space=`$ECHO "$complete" | $GREP " "` 38600 if test "x$has_space" != x; then 38601 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38602 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38603 fi 38604 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38605 fi 38606 fi 38607 38608 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38609 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38610 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38611 # "foo.exe" is OK but "foo" is an error. 38612 # 38613 # This test is therefore slightly more accurate than "test -f" to check for file presence. 38614 # It is also a way to make sure we got the proper file name for the real test later on. 38615 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38616 if test "x$test_shortpath" = x; then 38617 # Short path failed, file does not exist as specified. 38618 # Try adding .exe or .cmd 38619 if test -f "${new_path}.exe"; then 38620 input_to_shortpath="${new_path}.exe" 38621 elif test -f "${new_path}.cmd"; then 38622 input_to_shortpath="${new_path}.cmd" 38623 else 38624 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&5 38625 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$new_path\", is invalid." >&6;} 38626 { $as_echo "$as_me:${as_lineno-$LINENO}: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&5 38627 $as_echo "$as_me: Neither \"$new_path\" nor \"$new_path.exe/cmd\" can be found" >&6;} 38628 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38629 fi 38630 else 38631 input_to_shortpath="$new_path" 38632 fi 38633 38634 # Call helper function which possibly converts this using DOS-style short mode. 38635 # If so, the updated path is stored in $new_path. 38636 new_path="$input_to_shortpath" 38637 38638 input_path="$input_to_shortpath" 38639 # Check if we need to convert this using DOS-style short mode. If the path 38640 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38641 # take no chances and rewrite it. 38642 # Note: m4 eats our [], so we need to use [ and ] instead. 38643 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 38644 if test "x$has_forbidden_chars" != x; then 38645 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38646 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 38647 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 38648 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 38649 # Going to short mode and back again did indeed matter. Since short mode is 38650 # case insensitive, let's make it lowercase to improve readability. 38651 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38652 # Now convert it back to Unix-stile (cygpath) 38653 input_path=`$CYGPATH -u "$shortmode_path"` 38654 new_path="$input_path" 38655 fi 38656 fi 38657 38658 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 38659 if test "x$test_cygdrive_prefix" = x; then 38660 # As a simple fix, exclude /usr/bin since it's not a real path. 38661 if test "x`$ECHO $input_to_shortpath | $GREP ^/usr/bin/`" = x; then 38662 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 38663 # a path prefixed by /cygdrive for fixpath to work. 38664 new_path="$CYGWIN_ROOT_PATH$input_path" 38665 fi 38666 fi 38667 38668 # remove trailing .exe if any 38669 new_path="${new_path/%.exe/}" 38670 38671 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38672 38673 # First separate the path from the arguments. This will split at the first 38674 # space. 38675 complete="$BUILD_LD" 38676 path="${complete%% *}" 38677 tmp="$complete EOL" 38678 arguments="${tmp#* }" 38679 38680 # Input might be given as Windows format, start by converting to 38681 # unix format. 38682 new_path="$path" 38683 38684 windows_path="$new_path" 38685 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38686 unix_path=`$CYGPATH -u "$windows_path"` 38687 new_path="$unix_path" 38688 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38689 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38690 new_path="$unix_path" 38691 fi 38692 38693 38694 # Now try to locate executable using which 38695 new_path=`$WHICH "$new_path" 2> /dev/null` 38696 38697 if test "x$new_path" = x; then 38698 # Oops. Which didn't find the executable. 38699 # The splitting of arguments from the executable at a space might have been incorrect, 38700 # since paths with space are more likely in Windows. Give it another try with the whole 38701 # argument. 38702 path="$complete" 38703 arguments="EOL" 38704 new_path="$path" 38705 38706 windows_path="$new_path" 38707 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38708 unix_path=`$CYGPATH -u "$windows_path"` 38709 new_path="$unix_path" 38710 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38711 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38712 new_path="$unix_path" 38713 fi 38714 38715 38716 new_path=`$WHICH "$new_path" 2> /dev/null` 38717 38718 if test "x$new_path" = x; then 38719 # It's still not found. Now this is an unrecoverable error. 38720 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 38721 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 38722 has_space=`$ECHO "$complete" | $GREP " "` 38723 if test "x$has_space" != x; then 38724 { $as_echo "$as_me:${as_lineno-$LINENO}: You might be mixing spaces in the path and extra arguments, which is not allowed." >&5 38725 $as_echo "$as_me: You might be mixing spaces in the path and extra arguments, which is not allowed." >&6;} 38726 fi 38727 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38728 fi 38729 fi 38730 38731 # Now new_path has a complete unix path to the binary 38732 if test "x`$ECHO $new_path | $GREP ^/bin/`" != x; then 38733 # Keep paths in /bin as-is, but remove trailing .exe if any 38734 new_path="${new_path/%.exe/}" 38735 # Do not save /bin paths to all_fixpath_prefixes! 38736 else 38737 # Not in mixed or Windows style, start by that. 38738 new_path=`cmd //c echo $new_path` 38739 38740 input_path="$new_path" 38741 # Check if we need to convert this using DOS-style short mode. If the path 38742 # contains just simple characters, use it. Otherwise (spaces, weird characters), 38743 # take no chances and rewrite it. 38744 # Note: m4 eats our [], so we need to use [ and ] instead. 38745 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 38746 if test "x$has_forbidden_chars" != x; then 38747 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 38748 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 38749 fi 38750 38751 # Output is in $new_path 38752 38753 windows_path="$new_path" 38754 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38755 unix_path=`$CYGPATH -u "$windows_path"` 38756 new_path="$unix_path" 38757 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38758 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 38759 new_path="$unix_path" 38760 fi 38761 38762 # remove trailing .exe if any 38763 new_path="${new_path/%.exe/}" 38764 38765 # Save the first 10 bytes of this path to the storage, so fixpath can work. 38766 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 38767 fi 38768 38769 else 38770 # We're on a posix platform. Hooray! :) 38771 # First separate the path from the arguments. This will split at the first 38772 # space. 38773 complete="$BUILD_LD" 38774 path="${complete%% *}" 38775 tmp="$complete EOL" 38776 arguments="${tmp#* }" 38777 38778 # Cannot rely on the command "which" here since it doesn't always work. 38779 is_absolute_path=`$ECHO "$path" | $GREP ^/` 38780 if test -z "$is_absolute_path"; then 38781 # Path to executable is not absolute. Find it. 38782 IFS_save="$IFS" 38783 IFS=: 38784 for p in $PATH; do 38785 if test -f "$p/$path" && test -x "$p/$path"; then 38786 new_path="$p/$path" 38787 break 38788 fi 38789 done 38790 IFS="$IFS_save" 38791 else 38792 # This is an absolute path, we can use it without further modifications. 38793 new_path="$path" 38794 fi 38795 38796 if test "x$new_path" = x; then 38797 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&5 38798 $as_echo "$as_me: The path of BUILD_LD, which resolves as \"$complete\", is not found." >&6;} 38799 has_space=`$ECHO "$complete" | $GREP " "` 38800 if test "x$has_space" != x; then 38801 { $as_echo "$as_me:${as_lineno-$LINENO}: This might be caused by spaces in the path, which is not allowed." >&5 38802 $as_echo "$as_me: This might be caused by spaces in the path, which is not allowed." >&6;} 38803 fi 38804 as_fn_error $? "Cannot locate the the path of BUILD_LD" "$LINENO" 5 38805 fi 38806 fi 38807 38808 # Now join together the path and the arguments once again 38809 if test "x$arguments" != xEOL; then 38810 new_complete="$new_path ${arguments% *}" 38811 else 38812 new_complete="$new_path" 38813 fi 38814 38815 if test "x$complete" != "x$new_complete"; then 38816 BUILD_LD="$new_complete" 38817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting BUILD_LD to \"$new_complete\"" >&5 38818 $as_echo "$as_me: Rewriting BUILD_LD to \"$new_complete\"" >&6;} 38819 fi 38820 38821 else 38822 # If we are not cross compiling, use the normal target compilers for 38823 # building the build platform executables. 38824 BUILD_CC="$CC" 38825 BUILD_CXX="$CXX" 38826 BUILD_LD="$LD" 38827 fi 38828 38829 38830 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38831 # For hotspot, we need these in Windows mixed path, 38832 # so rewrite them all. Need added .exe suffix. 38833 HOTSPOT_CXX="$CXX.exe" 38834 HOTSPOT_LD="$LD.exe" 38835 HOTSPOT_MT="$MT.exe" 38836 HOTSPOT_RC="$RC.exe" 38837 38838 unix_path="$HOTSPOT_CXX" 38839 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38840 windows_path=`$CYGPATH -m "$unix_path"` 38841 HOTSPOT_CXX="$windows_path" 38842 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38843 windows_path=`cmd //c echo $unix_path` 38844 HOTSPOT_CXX="$windows_path" 38845 fi 38846 38847 38848 unix_path="$HOTSPOT_LD" 38849 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38850 windows_path=`$CYGPATH -m "$unix_path"` 38851 HOTSPOT_LD="$windows_path" 38852 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38853 windows_path=`cmd //c echo $unix_path` 38854 HOTSPOT_LD="$windows_path" 38855 fi 38856 38857 38858 unix_path="$HOTSPOT_MT" 38859 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38860 windows_path=`$CYGPATH -m "$unix_path"` 38861 HOTSPOT_MT="$windows_path" 38862 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38863 windows_path=`cmd //c echo $unix_path` 38864 HOTSPOT_MT="$windows_path" 38865 fi 38866 38867 38868 unix_path="$HOTSPOT_RC" 38869 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38870 windows_path=`$CYGPATH -m "$unix_path"` 38871 HOTSPOT_RC="$windows_path" 38872 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 38873 windows_path=`cmd //c echo $unix_path` 38874 HOTSPOT_RC="$windows_path" 38875 fi 38876 38877 38878 38879 else 38880 HOTSPOT_CXX="$CXX" 38881 HOTSPOT_LD="$LD" 38882 fi 38883 38884 38885 38886 if test "x$TOOLCHAIN_TYPE" = xclang; then 38887 USE_CLANG=true 38888 fi 38889 38890 38891 # LDEXE is the linker to use, when creating executables. Not really used. 38892 # FIXME: These should just be removed! 38893 LDEXE="$LD" 38894 LDEXECXX="$LDCXX" 38895 38896 38897 38898 38899 # The package path is used only on macosx? 38900 # FIXME: clean this up, and/or move it elsewhere. 38901 PACKAGE_PATH=/opt/local 38902 38903 38904 # Check for extra potential brokenness. 38905 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 38906 # On Windows, double-check that we got the right compiler. 38907 CC_VERSION_OUTPUT=`$CC 2>&1 | $HEAD -n 1 | $TR -d '\r'` 38908 COMPILER_CPU_TEST=`$ECHO $CC_VERSION_OUTPUT | $SED -n "s/^.* \(.*\)$/\1/p"` 38909 if test "x$OPENJDK_TARGET_CPU" = "xx86"; then 38910 if test "x$COMPILER_CPU_TEST" != "x80x86"; then 38911 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"80x86\"." "$LINENO" 5 38912 fi 38913 elif test "x$OPENJDK_TARGET_CPU" = "xx86_64"; then 38914 if test "x$COMPILER_CPU_TEST" != "xx64"; then 38915 as_fn_error $? "Target CPU mismatch. We are building for $OPENJDK_TARGET_CPU but CL is for \"$COMPILER_CPU_TEST\"; expected \"x64\"." "$LINENO" 5 38916 fi 38917 fi 38918 fi 38919 38920 if test "x$TOOLCHAIN_TYPE" = xgcc; then 38921 # If this is a --hash-style=gnu system, use --hash-style=both, why? 38922 HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'` 38923 # This is later checked when setting flags. 38924 fi 38925 38926 # Check for broken SuSE 'ld' for which 'Only anonymous version tag is allowed 38927 # in executable.' 38928 USING_BROKEN_SUSE_LD=no 38929 if test "x$OPENJDK_TARGET_OS" = xlinux && test "x$TOOLCHAIN_TYPE" = xgcc; then 38930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken SuSE 'ld' which only understands anonymous version tags in executables" >&5 38931 $as_echo_n "checking for broken SuSE 'ld' which only understands anonymous version tags in executables... " >&6; } 38932 echo "SUNWprivate_1.1 { local: *; };" > version-script.map 38933 echo "int main() { }" > main.c 38934 if $CXX -Xlinker -version-script=version-script.map main.c 2>&5 >&5; then 38935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38936 $as_echo "no" >&6; } 38937 USING_BROKEN_SUSE_LD=no 38938 else 38939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 38940 $as_echo "yes" >&6; } 38941 USING_BROKEN_SUSE_LD=yes 38942 fi 38943 rm -rf version-script.map main.c 38944 fi 38945 38946 38947 38948 # Setup the JTReg Regression Test Harness. 38949 38950 38951 # Check whether --with-jtreg was given. 38952 if test "${with_jtreg+set}" = set; then : 38953 withval=$with_jtreg; 38954 else 38955 with_jtreg=no 38956 fi 38957 38958 38959 if test "x$with_jtreg" = xno; then 38960 # jtreg disabled 38961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 38962 $as_echo_n "checking for jtreg... " >&6; } 38963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 38964 $as_echo "no" >&6; } 38965 else 38966 if test "x$with_jtreg" != xyes; then 38967 # with path specified. 38968 JT_HOME="$with_jtreg" 38969 fi 38970 38971 if test "x$JT_HOME" != x; then 38972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jtreg" >&5 38973 $as_echo_n "checking for jtreg... " >&6; } 38974 38975 # use JT_HOME enviroment var. 38976 38977 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 38978 38979 # Input might be given as Windows format, start by converting to 38980 # unix format. 38981 path="$JT_HOME" 38982 new_path=`$CYGPATH -u "$path"` 38983 38984 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 38985 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 38986 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 38987 # "foo.exe" is OK but "foo" is an error. 38988 # 38989 # This test is therefore slightly more accurate than "test -f" to check for file precense. 38990 # It is also a way to make sure we got the proper file name for the real test later on. 38991 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 38992 if test "x$test_shortpath" = x; then 38993 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 38994 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 38995 as_fn_error $? "Cannot locate the the path of JT_HOME" "$LINENO" 5 38996 fi 38997 38998 # Call helper function which possibly converts this using DOS-style short mode. 38999 # If so, the updated path is stored in $new_path. 39000 39001 input_path="$new_path" 39002 # Check if we need to convert this using DOS-style short mode. If the path 39003 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39004 # take no chances and rewrite it. 39005 # Note: m4 eats our [], so we need to use [ and ] instead. 39006 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 39007 if test "x$has_forbidden_chars" != x; then 39008 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39009 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 39010 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 39011 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 39012 # Going to short mode and back again did indeed matter. Since short mode is 39013 # case insensitive, let's make it lowercase to improve readability. 39014 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39015 # Now convert it back to Unix-stile (cygpath) 39016 input_path=`$CYGPATH -u "$shortmode_path"` 39017 new_path="$input_path" 39018 fi 39019 fi 39020 39021 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 39022 if test "x$test_cygdrive_prefix" = x; then 39023 # As a simple fix, exclude /usr/bin since it's not a real path. 39024 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 39025 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 39026 # a path prefixed by /cygdrive for fixpath to work. 39027 new_path="$CYGWIN_ROOT_PATH$input_path" 39028 fi 39029 fi 39030 39031 39032 if test "x$path" != "x$new_path"; then 39033 JT_HOME="$new_path" 39034 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 39035 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 39036 fi 39037 39038 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39039 39040 path="$JT_HOME" 39041 has_colon=`$ECHO $path | $GREP ^.:` 39042 new_path="$path" 39043 if test "x$has_colon" = x; then 39044 # Not in mixed or Windows style, start by that. 39045 new_path=`cmd //c echo $path` 39046 fi 39047 39048 39049 input_path="$new_path" 39050 # Check if we need to convert this using DOS-style short mode. If the path 39051 # contains just simple characters, use it. Otherwise (spaces, weird characters), 39052 # take no chances and rewrite it. 39053 # Note: m4 eats our [], so we need to use [ and ] instead. 39054 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 39055 if test "x$has_forbidden_chars" != x; then 39056 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 39057 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 39058 fi 39059 39060 39061 windows_path="$new_path" 39062 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 39063 unix_path=`$CYGPATH -u "$windows_path"` 39064 new_path="$unix_path" 39065 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 39066 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 39067 new_path="$unix_path" 39068 fi 39069 39070 if test "x$path" != "x$new_path"; then 39071 JT_HOME="$new_path" 39072 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting JT_HOME to \"$new_path\"" >&5 39073 $as_echo "$as_me: Rewriting JT_HOME to \"$new_path\"" >&6;} 39074 fi 39075 39076 # Save the first 10 bytes of this path to the storage, so fixpath can work. 39077 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 39078 39079 else 39080 # We're on a posix platform. Hooray! :) 39081 path="$JT_HOME" 39082 has_space=`$ECHO "$path" | $GREP " "` 39083 if test "x$has_space" != x; then 39084 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of JT_HOME, which resolves as \"$path\", is invalid." >&5 39085 $as_echo "$as_me: The path of JT_HOME, which resolves as \"$path\", is invalid." >&6;} 39086 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 39087 fi 39088 39089 # Use eval to expand a potential ~ 39090 eval path="$path" 39091 if test ! -f "$path" && test ! -d "$path"; then 39092 as_fn_error $? "The path of JT_HOME, which resolves as \"$path\", is not found." "$LINENO" 5 39093 fi 39094 39095 JT_HOME="`cd "$path"; $THEPWDCMD -L`" 39096 fi 39097 39098 39099 # jtreg win32 script works for everybody 39100 JTREGEXE="$JT_HOME/bin/jtreg" 39101 39102 if test ! -f "$JTREGEXE"; then 39103 as_fn_error $? "JTReg executable does not exist: $JTREGEXE" "$LINENO" 5 39104 fi 39105 39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39107 $as_echo "$JTREGEXE" >&6; } 39108 else 39109 # try to find jtreg on path 39110 39111 39112 39113 # Publish this variable in the help. 39114 39115 39116 if test "x$JTREGEXE" = x; then 39117 # The variable is not set by user, try to locate tool using the code snippet 39118 for ac_prog in jtreg 39119 do 39120 # Extract the first word of "$ac_prog", so it can be a program name with args. 39121 set dummy $ac_prog; ac_word=$2 39122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39123 $as_echo_n "checking for $ac_word... " >&6; } 39124 if ${ac_cv_path_JTREGEXE+:} false; then : 39125 $as_echo_n "(cached) " >&6 39126 else 39127 case $JTREGEXE in 39128 [\\/]* | ?:[\\/]*) 39129 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 39130 ;; 39131 *) 39132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39133 for as_dir in $PATH 39134 do 39135 IFS=$as_save_IFS 39136 test -z "$as_dir" && as_dir=. 39137 for ac_exec_ext in '' $ac_executable_extensions; do 39138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39139 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 39140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39141 break 2 39142 fi 39143 done 39144 done 39145 IFS=$as_save_IFS 39146 39147 ;; 39148 esac 39149 fi 39150 JTREGEXE=$ac_cv_path_JTREGEXE 39151 if test -n "$JTREGEXE"; then 39152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39153 $as_echo "$JTREGEXE" >&6; } 39154 else 39155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39156 $as_echo "no" >&6; } 39157 fi 39158 39159 39160 test -n "$JTREGEXE" && break 39161 done 39162 39163 else 39164 # The variable is set, but is it from the command line or the environment? 39165 39166 # Try to remove the string !JTREGEXE! from our list. 39167 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!JTREGEXE!/} 39168 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 39169 # If it failed, the variable was not from the command line. Ignore it, 39170 # but warn the user (except for BASH, which is always set by the calling BASH). 39171 if test "xJTREGEXE" != xBASH; then 39172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&5 39173 $as_echo "$as_me: WARNING: Ignoring value of JTREGEXE from the environment. Use command line variables instead." >&2;} 39174 fi 39175 # Try to locate tool using the code snippet 39176 for ac_prog in jtreg 39177 do 39178 # Extract the first word of "$ac_prog", so it can be a program name with args. 39179 set dummy $ac_prog; ac_word=$2 39180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39181 $as_echo_n "checking for $ac_word... " >&6; } 39182 if ${ac_cv_path_JTREGEXE+:} false; then : 39183 $as_echo_n "(cached) " >&6 39184 else 39185 case $JTREGEXE in 39186 [\\/]* | ?:[\\/]*) 39187 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 39188 ;; 39189 *) 39190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39191 for as_dir in $PATH 39192 do 39193 IFS=$as_save_IFS 39194 test -z "$as_dir" && as_dir=. 39195 for ac_exec_ext in '' $ac_executable_extensions; do 39196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39197 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 39198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39199 break 2 39200 fi 39201 done 39202 done 39203 IFS=$as_save_IFS 39204 39205 ;; 39206 esac 39207 fi 39208 JTREGEXE=$ac_cv_path_JTREGEXE 39209 if test -n "$JTREGEXE"; then 39210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39211 $as_echo "$JTREGEXE" >&6; } 39212 else 39213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39214 $as_echo "no" >&6; } 39215 fi 39216 39217 39218 test -n "$JTREGEXE" && break 39219 done 39220 39221 else 39222 # If it succeeded, then it was overridden by the user. We will use it 39223 # for the tool. 39224 39225 # First remove it from the list of overridden variables, so we can test 39226 # for unknown variables in the end. 39227 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 39228 39229 # Check if the provided tool contains a complete path. 39230 tool_specified="$JTREGEXE" 39231 tool_basename="${tool_specified##*/}" 39232 if test "x$tool_basename" = "x$tool_specified"; then 39233 # A command without a complete path is provided, search $PATH. 39234 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool JTREGEXE=$tool_basename" >&5 39235 $as_echo "$as_me: Will search for user supplied tool JTREGEXE=$tool_basename" >&6;} 39236 # Extract the first word of "$tool_basename", so it can be a program name with args. 39237 set dummy $tool_basename; ac_word=$2 39238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 39239 $as_echo_n "checking for $ac_word... " >&6; } 39240 if ${ac_cv_path_JTREGEXE+:} false; then : 39241 $as_echo_n "(cached) " >&6 39242 else 39243 case $JTREGEXE in 39244 [\\/]* | ?:[\\/]*) 39245 ac_cv_path_JTREGEXE="$JTREGEXE" # Let the user override the test with a path. 39246 ;; 39247 *) 39248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 39249 for as_dir in $PATH 39250 do 39251 IFS=$as_save_IFS 39252 test -z "$as_dir" && as_dir=. 39253 for ac_exec_ext in '' $ac_executable_extensions; do 39254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 39255 ac_cv_path_JTREGEXE="$as_dir/$ac_word$ac_exec_ext" 39256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 39257 break 2 39258 fi 39259 done 39260 done 39261 IFS=$as_save_IFS 39262 39263 ;; 39264 esac 39265 fi 39266 JTREGEXE=$ac_cv_path_JTREGEXE 39267 if test -n "$JTREGEXE"; then 39268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JTREGEXE" >&5 39269 $as_echo "$JTREGEXE" >&6; } 39270 else 39271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 39272 $as_echo "no" >&6; } 39273 fi 39274 39275 39276 if test "x$JTREGEXE" = x; then 39277 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 39278 fi 39279 else 39280 # Otherwise we believe it is a complete path. Use it as it is. 39281 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool JTREGEXE=$tool_specified" >&5 39282 $as_echo "$as_me: Will use user supplied tool JTREGEXE=$tool_specified" >&6;} 39283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JTREGEXE" >&5 39284 $as_echo_n "checking for JTREGEXE... " >&6; } 39285 if test ! -x "$tool_specified"; then 39286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 39287 $as_echo "not found" >&6; } 39288 as_fn_error $? "User supplied tool JTREGEXE=$tool_specified does not exist or is not executable" "$LINENO" 5 39289 fi 39290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 39291 $as_echo "$tool_specified" >&6; } 39292 fi 39293 fi 39294 fi 39295 39296 39297 39298 if test "x$JTREGEXE" = x; then 39299 as_fn_error $? "Could not find required tool for JTREGEXE" "$LINENO" 5 39300 fi 39301 39302 39303 JT_HOME="`$DIRNAME $JTREGEXE`" 39304 fi 39305 fi 39306 39307 39308 39309 39310 39311 39312 # Option used to tell the compiler whether to create 32- or 64-bit executables 39313 if test "x$TOOLCHAIN_TYPE" = xxlc; then 39314 COMPILER_TARGET_BITS_FLAG="-q" 39315 else 39316 COMPILER_TARGET_BITS_FLAG="-m" 39317 fi 39318 39319 39320 # FIXME: figure out if we should select AR flags depending on OS or toolchain. 39321 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 39322 ARFLAGS="-r" 39323 elif test "x$OPENJDK_TARGET_OS" = xaix; then 39324 ARFLAGS="-X64" 39325 elif test "x$OPENJDK_TARGET_OS" = xwindows; then 39326 # lib.exe is used as AR to create static libraries. 39327 ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT" 39328 else 39329 ARFLAGS="" 39330 fi 39331 39332 39333 ## Setup strip. 39334 # FIXME: should this really be per platform, or should it be per toolchain type? 39335 # strip is not provided by clang or solstudio; so guessing platform makes most sense. 39336 # FIXME: we should really only export STRIPFLAGS from here, not POST_STRIP_CMD. 39337 if test "x$OPENJDK_TARGET_OS" = xlinux; then 39338 STRIPFLAGS="-g" 39339 elif test "x$OPENJDK_TARGET_OS" = xsolaris; then 39340 STRIPFLAGS="-x" 39341 elif test "x$OPENJDK_TARGET_OS" = xmacosx; then 39342 STRIPFLAGS="-S" 39343 elif test "x$OPENJDK_TARGET_OS" = xaix; then 39344 STRIPFLAGS="-X32_64" 39345 fi 39346 39347 if test "x$OPENJDK_TARGET_OS" != xwindows; then 39348 POST_STRIP_CMD="$STRIP $STRIPFLAGS" 39349 fi 39350 39351 39352 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 39353 # FIXME: break out into MCSFLAGS 39354 POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\"" 39355 fi 39356 39357 39358 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39359 CC_OUT_OPTION=-Fo 39360 EXE_OUT_OPTION=-out: 39361 LD_OUT_OPTION=-out: 39362 AR_OUT_OPTION=-out: 39363 else 39364 # The option used to specify the target .o,.a or .so file. 39365 # When compiling, how to specify the to be created object file. 39366 CC_OUT_OPTION='-o$(SPACE)' 39367 # When linking, how to specify the to be created executable. 39368 EXE_OUT_OPTION='-o$(SPACE)' 39369 # When linking, how to specify the to be created dynamically linkable library. 39370 LD_OUT_OPTION='-o$(SPACE)' 39371 # When archiving, how to specify the to be create static archive for object files. 39372 AR_OUT_OPTION='rcs$(SPACE)' 39373 fi 39374 39375 39376 39377 39378 39379 # On Windows, we need to set RC flags. 39380 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39381 RC_FLAGS="-nologo -l 0x409 -r" 39382 if test "x$VARIANT" = xOPT; then 39383 RC_FLAGS="$RC_FLAGS -d NDEBUG" 39384 fi 39385 39386 # The version variables used to create RC_FLAGS may be overridden 39387 # in a custom configure script, or possibly the command line. 39388 # Let those variables be expanded at make time in spec.gmk. 39389 # The \$ are escaped to the shell, and the $(...) variables 39390 # are evaluated by make. 39391 RC_FLAGS="$RC_FLAGS \ 39392 -d \"JDK_BUILD_ID=\$(FULL_VERSION)\" \ 39393 -d \"JDK_COMPANY=\$(COMPANY_NAME)\" \ 39394 -d \"JDK_COMPONENT=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) binary\" \ 39395 -d \"JDK_VER=\$(JDK_MINOR_VERSION).\$(JDK_MICRO_VERSION).\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0).\$(COOKED_BUILD_NUMBER)\" \ 39396 -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\" \ 39397 -d \"JDK_NAME=\$(PRODUCT_NAME) \$(JDK_RC_PLATFORM_NAME) \$(JDK_MINOR_VERSION) \$(JDK_UPDATE_META_TAG)\" \ 39398 -d \"JDK_FVER=\$(JDK_MINOR_VERSION),\$(JDK_MICRO_VERSION),\$(if \$(JDK_UPDATE_VERSION),\$(JDK_UPDATE_VERSION),0),\$(COOKED_BUILD_NUMBER)\"" 39399 fi 39400 39401 39402 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 39403 # FIXME: likely bug, should be CCXXFLAGS_JDK? or one for C or CXX. 39404 CCXXFLAGS="$CCXXFLAGS -nologo" 39405 fi 39406 39407 39408 # FIXME: Currently we must test this after toolchain but before flags. Fix! 39409 39410 # Now we can test some aspects on the target using configure macros. 39411 39412 39413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 39414 $as_echo_n "checking for ANSI C header files... " >&6; } 39415 if ${ac_cv_header_stdc+:} false; then : 39416 $as_echo_n "(cached) " >&6 39417 else 39418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39419 /* end confdefs.h. */ 39420 #include <stdlib.h> 39421 #include <stdarg.h> 39422 #include <string.h> 39423 #include <float.h> 39424 39425 int 39426 main () 39427 { 39428 39429 ; 39430 return 0; 39431 } 39432 _ACEOF 39433 if ac_fn_cxx_try_compile "$LINENO"; then : 39434 ac_cv_header_stdc=yes 39435 else 39436 ac_cv_header_stdc=no 39437 fi 39438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39439 39440 if test $ac_cv_header_stdc = yes; then 39441 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 39442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39443 /* end confdefs.h. */ 39444 #include <string.h> 39445 39446 _ACEOF 39447 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39448 $EGREP "memchr" >/dev/null 2>&1; then : 39449 39450 else 39451 ac_cv_header_stdc=no 39452 fi 39453 rm -f conftest* 39454 39455 fi 39456 39457 if test $ac_cv_header_stdc = yes; then 39458 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 39459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39460 /* end confdefs.h. */ 39461 #include <stdlib.h> 39462 39463 _ACEOF 39464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 39465 $EGREP "free" >/dev/null 2>&1; then : 39466 39467 else 39468 ac_cv_header_stdc=no 39469 fi 39470 rm -f conftest* 39471 39472 fi 39473 39474 if test $ac_cv_header_stdc = yes; then 39475 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 39476 if test "$cross_compiling" = yes; then : 39477 : 39478 else 39479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39480 /* end confdefs.h. */ 39481 #include <ctype.h> 39482 #include <stdlib.h> 39483 #if ((' ' & 0x0FF) == 0x020) 39484 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 39485 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 39486 #else 39487 # define ISLOWER(c) \ 39488 (('a' <= (c) && (c) <= 'i') \ 39489 || ('j' <= (c) && (c) <= 'r') \ 39490 || ('s' <= (c) && (c) <= 'z')) 39491 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 39492 #endif 39493 39494 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 39495 int 39496 main () 39497 { 39498 int i; 39499 for (i = 0; i < 256; i++) 39500 if (XOR (islower (i), ISLOWER (i)) 39501 || toupper (i) != TOUPPER (i)) 39502 return 2; 39503 return 0; 39504 } 39505 _ACEOF 39506 if ac_fn_cxx_try_run "$LINENO"; then : 39507 39508 else 39509 ac_cv_header_stdc=no 39510 fi 39511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39512 conftest.$ac_objext conftest.beam conftest.$ac_ext 39513 fi 39514 39515 fi 39516 fi 39517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 39518 $as_echo "$ac_cv_header_stdc" >&6; } 39519 if test $ac_cv_header_stdc = yes; then 39520 39521 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 39522 39523 fi 39524 39525 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 39526 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 39527 inttypes.h stdint.h unistd.h 39528 do : 39529 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 39530 ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 39531 " 39532 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 39533 cat >>confdefs.h <<_ACEOF 39534 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 39535 _ACEOF 39536 39537 fi 39538 39539 done 39540 39541 39542 39543 ############################################################################### 39544 # 39545 # Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code. 39546 # (The JVM can use 32 or 64 bit Java pointers but that decision 39547 # is made at runtime.) 39548 # 39549 39550 if test "x$OPENJDK_TARGET_OS" = xsolaris || test "x$OPENJDK_TARGET_OS" = xaix; then 39551 # Always specify -m flag on Solaris 39552 # And -q on AIX because otherwise the compiler produces 32-bit objects by default 39553 39554 # When we add flags to the "official" CFLAGS etc, we need to 39555 # keep track of these additions in ADDED_CFLAGS etc. These 39556 # will later be checked to make sure only controlled additions 39557 # have been made to CFLAGS etc. 39558 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39559 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39560 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39561 39562 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 39563 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 39564 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 39565 39566 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 39567 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 39568 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 39569 39570 elif test "x$COMPILE_TYPE" = xreduced; then 39571 if test "x$OPENJDK_TARGET_OS" != xwindows; then 39572 # Specify -m if running reduced on other Posix platforms 39573 39574 # When we add flags to the "official" CFLAGS etc, we need to 39575 # keep track of these additions in ADDED_CFLAGS etc. These 39576 # will later be checked to make sure only controlled additions 39577 # have been made to CFLAGS etc. 39578 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39579 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39580 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39581 39582 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 39583 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 39584 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 39585 39586 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 39587 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 39588 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 39589 39590 fi 39591 fi 39592 39593 # Make compilation sanity check 39594 for ac_header in stdio.h 39595 do : 39596 ac_fn_cxx_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" 39597 if test "x$ac_cv_header_stdio_h" = xyes; then : 39598 cat >>confdefs.h <<_ACEOF 39599 #define HAVE_STDIO_H 1 39600 _ACEOF 39601 39602 else 39603 39604 { $as_echo "$as_me:${as_lineno-$LINENO}: Failed to compile stdio.h. This likely implies missing compile dependencies." >&5 39605 $as_echo "$as_me: Failed to compile stdio.h. This likely implies missing compile dependencies." >&6;} 39606 if test "x$COMPILE_TYPE" = xreduced; then 39607 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a reduced build. Check that you have 32-bit libraries installed." >&5 39608 $as_echo "$as_me: You are doing a reduced build. Check that you have 32-bit libraries installed." >&6;} 39609 elif test "x$COMPILE_TYPE" = xcross; then 39610 { $as_echo "$as_me:${as_lineno-$LINENO}: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&5 39611 $as_echo "$as_me: You are doing a cross-compilation. Check that you have all target platform libraries installed." >&6;} 39612 fi 39613 as_fn_error $? "Cannot continue." "$LINENO" 5 39614 39615 fi 39616 39617 done 39618 39619 39620 # The cast to long int works around a bug in the HP C Compiler 39621 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 39622 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 39623 # This bug is HP SR number 8606223364. 39624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 39625 $as_echo_n "checking size of int *... " >&6; } 39626 if ${ac_cv_sizeof_int_p+:} false; then : 39627 $as_echo_n "(cached) " >&6 39628 else 39629 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 39630 39631 else 39632 if test "$ac_cv_type_int_p" = yes; then 39633 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39634 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39635 as_fn_error 77 "cannot compute sizeof (int *) 39636 See \`config.log' for more details" "$LINENO" 5; } 39637 else 39638 ac_cv_sizeof_int_p=0 39639 fi 39640 fi 39641 39642 fi 39643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 39644 $as_echo "$ac_cv_sizeof_int_p" >&6; } 39645 39646 39647 39648 cat >>confdefs.h <<_ACEOF 39649 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 39650 _ACEOF 39651 39652 39653 39654 # AC_CHECK_SIZEOF defines 'ac_cv_sizeof_int_p' to hold the number of bytes used by an 'int*' 39655 if test "x$ac_cv_sizeof_int_p" = x; then 39656 # The test failed, lets stick to the assumed value. 39657 { $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 39658 $as_echo "$as_me: WARNING: The number of bits in the target could not be determined, using $OPENJDK_TARGET_CPU_BITS." >&2;} 39659 else 39660 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 39661 39662 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 39663 # This situation may happen on 64-bit platforms where the compiler by default only generates 32-bit objects 39664 # Let's try to implicitely set the compilers target architecture and retry the test 39665 { $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 39666 $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;} 39667 { $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 39668 $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;} 39669 39670 # When we add flags to the "official" CFLAGS etc, we need to 39671 # keep track of these additions in ADDED_CFLAGS etc. These 39672 # will later be checked to make sure only controlled additions 39673 # have been made to CFLAGS etc. 39674 ADDED_CFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39675 ADDED_CXXFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39676 ADDED_LDFLAGS=" ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 39677 39678 CFLAGS="${CFLAGS}${ADDED_CFLAGS}" 39679 CXXFLAGS="${CXXFLAGS}${ADDED_CXXFLAGS}" 39680 LDFLAGS="${LDFLAGS}${ADDED_LDFLAGS}" 39681 39682 CFLAGS_JDK="${CFLAGS_JDK}${ADDED_CFLAGS}" 39683 CXXFLAGS_JDK="${CXXFLAGS_JDK}${ADDED_CXXFLAGS}" 39684 LDFLAGS_JDK="${LDFLAGS_JDK}${ADDED_LDFLAGS}" 39685 39686 39687 # We have to unset 'ac_cv_sizeof_int_p' first, otherwise AC_CHECK_SIZEOF will use the previously cached value! 39688 unset ac_cv_sizeof_int_p 39689 # And we have to undef the definition of SIZEOF_INT_P in confdefs.h by the previous invocation of AC_CHECK_SIZEOF 39690 cat >>confdefs.h <<_ACEOF 39691 #undef SIZEOF_INT_P 39692 _ACEOF 39693 39694 # The cast to long int works around a bug in the HP C Compiler 39695 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 39696 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 39697 # This bug is HP SR number 8606223364. 39698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5 39699 $as_echo_n "checking size of int *... " >&6; } 39700 if ${ac_cv_sizeof_int_p+:} false; then : 39701 $as_echo_n "(cached) " >&6 39702 else 39703 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p" "$ac_includes_default"; then : 39704 39705 else 39706 if test "$ac_cv_type_int_p" = yes; then 39707 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 39708 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 39709 as_fn_error 77 "cannot compute sizeof (int *) 39710 See \`config.log' for more details" "$LINENO" 5; } 39711 else 39712 ac_cv_sizeof_int_p=0 39713 fi 39714 fi 39715 39716 fi 39717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5 39718 $as_echo "$ac_cv_sizeof_int_p" >&6; } 39719 39720 39721 39722 cat >>confdefs.h <<_ACEOF 39723 #define SIZEOF_INT_P $ac_cv_sizeof_int_p 39724 _ACEOF 39725 39726 39727 39728 TESTED_TARGET_CPU_BITS=`expr 8 \* $ac_cv_sizeof_int_p` 39729 39730 if test "x$TESTED_TARGET_CPU_BITS" != "x$OPENJDK_TARGET_CPU_BITS"; then 39731 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 39732 fi 39733 fi 39734 fi 39735 39736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for target address size" >&5 39737 $as_echo_n "checking for target address size... " >&6; } 39738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENJDK_TARGET_CPU_BITS bits" >&5 39739 $as_echo "$OPENJDK_TARGET_CPU_BITS bits" >&6; } 39740 39741 39742 ############################################################################### 39743 # 39744 # Is the target little of big endian? 39745 # 39746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 39747 $as_echo_n "checking whether byte ordering is bigendian... " >&6; } 39748 if ${ac_cv_c_bigendian+:} false; then : 39749 $as_echo_n "(cached) " >&6 39750 else 39751 ac_cv_c_bigendian=unknown 39752 # See if we're dealing with a universal compiler. 39753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39754 /* end confdefs.h. */ 39755 #ifndef __APPLE_CC__ 39756 not a universal capable compiler 39757 #endif 39758 typedef int dummy; 39759 39760 _ACEOF 39761 if ac_fn_cxx_try_compile "$LINENO"; then : 39762 39763 # Check for potential -arch flags. It is not universal unless 39764 # there are at least two -arch flags with different values. 39765 ac_arch= 39766 ac_prev= 39767 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 39768 if test -n "$ac_prev"; then 39769 case $ac_word in 39770 i?86 | x86_64 | ppc | ppc64) 39771 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 39772 ac_arch=$ac_word 39773 else 39774 ac_cv_c_bigendian=universal 39775 break 39776 fi 39777 ;; 39778 esac 39779 ac_prev= 39780 elif test "x$ac_word" = "x-arch"; then 39781 ac_prev=arch 39782 fi 39783 done 39784 fi 39785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39786 if test $ac_cv_c_bigendian = unknown; then 39787 # See if sys/param.h defines the BYTE_ORDER macro. 39788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39789 /* end confdefs.h. */ 39790 #include <sys/types.h> 39791 #include <sys/param.h> 39792 39793 int 39794 main () 39795 { 39796 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 39797 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 39798 && LITTLE_ENDIAN) 39799 bogus endian macros 39800 #endif 39801 39802 ; 39803 return 0; 39804 } 39805 _ACEOF 39806 if ac_fn_cxx_try_compile "$LINENO"; then : 39807 # It does; now see whether it defined to BIG_ENDIAN or not. 39808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39809 /* end confdefs.h. */ 39810 #include <sys/types.h> 39811 #include <sys/param.h> 39812 39813 int 39814 main () 39815 { 39816 #if BYTE_ORDER != BIG_ENDIAN 39817 not big endian 39818 #endif 39819 39820 ; 39821 return 0; 39822 } 39823 _ACEOF 39824 if ac_fn_cxx_try_compile "$LINENO"; then : 39825 ac_cv_c_bigendian=yes 39826 else 39827 ac_cv_c_bigendian=no 39828 fi 39829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39830 fi 39831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39832 fi 39833 if test $ac_cv_c_bigendian = unknown; then 39834 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 39835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39836 /* end confdefs.h. */ 39837 #include <limits.h> 39838 39839 int 39840 main () 39841 { 39842 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 39843 bogus endian macros 39844 #endif 39845 39846 ; 39847 return 0; 39848 } 39849 _ACEOF 39850 if ac_fn_cxx_try_compile "$LINENO"; then : 39851 # It does; now see whether it defined to _BIG_ENDIAN or not. 39852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39853 /* end confdefs.h. */ 39854 #include <limits.h> 39855 39856 int 39857 main () 39858 { 39859 #ifndef _BIG_ENDIAN 39860 not big endian 39861 #endif 39862 39863 ; 39864 return 0; 39865 } 39866 _ACEOF 39867 if ac_fn_cxx_try_compile "$LINENO"; then : 39868 ac_cv_c_bigendian=yes 39869 else 39870 ac_cv_c_bigendian=no 39871 fi 39872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39873 fi 39874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39875 fi 39876 if test $ac_cv_c_bigendian = unknown; then 39877 # Compile a test program. 39878 if test "$cross_compiling" = yes; then : 39879 # Try to guess by grepping values from an object file. 39880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39881 /* end confdefs.h. */ 39882 short int ascii_mm[] = 39883 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 39884 short int ascii_ii[] = 39885 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 39886 int use_ascii (int i) { 39887 return ascii_mm[i] + ascii_ii[i]; 39888 } 39889 short int ebcdic_ii[] = 39890 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 39891 short int ebcdic_mm[] = 39892 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 39893 int use_ebcdic (int i) { 39894 return ebcdic_mm[i] + ebcdic_ii[i]; 39895 } 39896 extern int foo; 39897 39898 int 39899 main () 39900 { 39901 return use_ascii (foo) == use_ebcdic (foo); 39902 ; 39903 return 0; 39904 } 39905 _ACEOF 39906 if ac_fn_cxx_try_compile "$LINENO"; then : 39907 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 39908 ac_cv_c_bigendian=yes 39909 fi 39910 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 39911 if test "$ac_cv_c_bigendian" = unknown; then 39912 ac_cv_c_bigendian=no 39913 else 39914 # finding both strings is unlikely to happen, but who knows? 39915 ac_cv_c_bigendian=unknown 39916 fi 39917 fi 39918 fi 39919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 39920 else 39921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 39922 /* end confdefs.h. */ 39923 $ac_includes_default 39924 int 39925 main () 39926 { 39927 39928 /* Are we little or big endian? From Harbison&Steele. */ 39929 union 39930 { 39931 long int l; 39932 char c[sizeof (long int)]; 39933 } u; 39934 u.l = 1; 39935 return u.c[sizeof (long int) - 1] == 1; 39936 39937 ; 39938 return 0; 39939 } 39940 _ACEOF 39941 if ac_fn_cxx_try_run "$LINENO"; then : 39942 ac_cv_c_bigendian=no 39943 else 39944 ac_cv_c_bigendian=yes 39945 fi 39946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 39947 conftest.$ac_objext conftest.beam conftest.$ac_ext 39948 fi 39949 39950 fi 39951 fi 39952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 39953 $as_echo "$ac_cv_c_bigendian" >&6; } 39954 case $ac_cv_c_bigendian in #( 39955 yes) 39956 ENDIAN="big";; #( 39957 no) 39958 ENDIAN="little" ;; #( 39959 universal) 39960 ENDIAN="universal_endianness" 39961 ;; #( 39962 *) 39963 ENDIAN="unknown" ;; 39964 esac 39965 39966 39967 if test "x$ENDIAN" = xuniversal_endianness; then 39968 as_fn_error $? "Building with both big and little endianness is not supported" "$LINENO" 5 39969 fi 39970 if test "x$ENDIAN" != "x$OPENJDK_TARGET_CPU_ENDIAN"; then 39971 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 39972 fi 39973 39974 39975 # Configure flags for the tools 39976 39977 ############################################################################### 39978 # 39979 # How to compile shared libraries. 39980 # 39981 39982 if test "x$TOOLCHAIN_TYPE" = xgcc; then 39983 PICFLAG="-fPIC" 39984 C_FLAG_REORDER='' 39985 CXX_FLAG_REORDER='' 39986 39987 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 39988 # Linking is different on MacOSX 39989 SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG" 39990 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.' 39991 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 39992 SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1' 39993 SET_SHARED_LIBRARY_MAPFILE='' 39994 else 39995 # Default works for linux, might work on other platforms as well. 39996 SHARED_LIBRARY_FLAGS='-shared' 39997 SET_EXECUTABLE_ORIGIN='-Xlinker -rpath -Xlinker \$$$$ORIGIN$1' 39998 SET_SHARED_LIBRARY_ORIGIN="-Xlinker -z -Xlinker origin $SET_EXECUTABLE_ORIGIN" 39999 SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1' 40000 SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1' 40001 fi 40002 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40003 PICFLAG="-KPIC" 40004 C_FLAG_REORDER='-xF' 40005 CXX_FLAG_REORDER='-xF' 40006 SHARED_LIBRARY_FLAGS="-G" 40007 SET_EXECUTABLE_ORIGIN='-R\$$$$ORIGIN$1' 40008 SET_SHARED_LIBRARY_ORIGIN="$SET_EXECUTABLE_ORIGIN" 40009 SET_SHARED_LIBRARY_NAME='' 40010 SET_SHARED_LIBRARY_MAPFILE='-M$1' 40011 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40012 PICFLAG="-qpic=large" 40013 C_FLAG_REORDER='' 40014 CXX_FLAG_REORDER='' 40015 SHARED_LIBRARY_FLAGS="-qmkshrobj" 40016 SET_EXECUTABLE_ORIGIN="" 40017 SET_SHARED_LIBRARY_ORIGIN='' 40018 SET_SHARED_LIBRARY_NAME='' 40019 SET_SHARED_LIBRARY_MAPFILE='' 40020 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40021 PICFLAG="" 40022 C_FLAG_REORDER='' 40023 CXX_FLAG_REORDER='' 40024 SHARED_LIBRARY_FLAGS="-LD" 40025 SET_EXECUTABLE_ORIGIN='' 40026 SET_SHARED_LIBRARY_ORIGIN='' 40027 SET_SHARED_LIBRARY_NAME='' 40028 SET_SHARED_LIBRARY_MAPFILE='' 40029 fi 40030 40031 40032 40033 40034 40035 40036 40037 40038 40039 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40040 CFLAGS_JDK="${CFLAGS_JDK} -D__solaris__" 40041 CXXFLAGS_JDK="${CXXFLAGS_JDK} -D__solaris__" 40042 CFLAGS_JDKLIB_EXTRA='-xstrconst' 40043 fi 40044 # The (cross) compiler is now configured, we can now test capabilities 40045 # of the target platform. 40046 40047 40048 40049 ############################################################################### 40050 # 40051 # Setup the opt flags for different compilers 40052 # and different operating systems. 40053 # 40054 40055 # FIXME: this was indirectly the old default, but just inherited. 40056 # if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40057 # C_FLAG_DEPS="-MMD -MF" 40058 # fi 40059 40060 # Generate make dependency files 40061 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40062 C_FLAG_DEPS="-MMD -MF" 40063 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40064 C_FLAG_DEPS="-xMMD -xMF" 40065 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40066 C_FLAG_DEPS="-qmakedep=gcc -MF" 40067 fi 40068 CXX_FLAG_DEPS="$C_FLAG_DEPS" 40069 40070 40071 40072 # Debug symbols 40073 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40074 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64" && test "x$DEBUG_LEVEL" = "xfastdebug"; then 40075 CFLAGS_DEBUG_SYMBOLS="-g1" 40076 CXXFLAGS_DEBUG_SYMBOLS="-g1" 40077 else 40078 CFLAGS_DEBUG_SYMBOLS="-g" 40079 CXXFLAGS_DEBUG_SYMBOLS="-g" 40080 fi 40081 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40082 CFLAGS_DEBUG_SYMBOLS="-g -xs" 40083 CXXFLAGS_DEBUG_SYMBOLS="-g0 -xs" 40084 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40085 CFLAGS_DEBUG_SYMBOLS="-g" 40086 CXXFLAGS_DEBUG_SYMBOLS="-g" 40087 fi 40088 40089 40090 40091 # Optimization levels 40092 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40093 CC_HIGHEST="$CC_HIGHEST -fns -fsimple -fsingle -xalias_level=basic -xbuiltin=%all -xdepend -xrestrict -xlibmil" 40094 40095 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xx86"; then 40096 # FIXME: seems we always set -xregs=no%frameptr; put it elsewhere more global? 40097 C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xregs=no%frameptr" 40098 C_O_FLAG_HI="-xO4 -Wu,-O4~yz -xregs=no%frameptr" 40099 C_O_FLAG_NORM="-xO2 -Wu,-O2~yz -xregs=no%frameptr" 40100 C_O_FLAG_NONE="-xregs=no%frameptr" 40101 CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xregs=no%frameptr" 40102 CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz -xregs=no%frameptr" 40103 CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz -xregs=no%frameptr" 40104 CXX_O_FLAG_NONE="-xregs=no%frameptr" 40105 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 40106 C_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST -xchip=pentium" 40107 CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HIGHEST -xchip=pentium" 40108 fi 40109 elif test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 40110 C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 40111 C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0" 40112 C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0" 40113 C_O_FLAG_NONE="" 40114 CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra" 40115 CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 40116 CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0" 40117 CXX_O_FLAG_NONE="" 40118 fi 40119 else 40120 # The remaining toolchains share opt flags between CC and CXX; 40121 # setup for C and duplicate afterwards. 40122 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40123 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40124 # On MacOSX we optimize for size, something 40125 # we should do for all platforms? 40126 C_O_FLAG_HIGHEST="-Os" 40127 C_O_FLAG_HI="-Os" 40128 C_O_FLAG_NORM="-Os" 40129 C_O_FLAG_NONE="" 40130 else 40131 C_O_FLAG_HIGHEST="-O3" 40132 C_O_FLAG_HI="-O3" 40133 C_O_FLAG_NORM="-O2" 40134 C_O_FLAG_NONE="-O0" 40135 fi 40136 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40137 C_O_FLAG_HIGHEST="-O3" 40138 C_O_FLAG_HI="-O3 -qstrict" 40139 C_O_FLAG_NORM="-O2" 40140 C_O_FLAG_NONE="" 40141 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40142 C_O_FLAG_HIGHEST="-O2" 40143 C_O_FLAG_HI="-O1" 40144 C_O_FLAG_NORM="-O1" 40145 C_O_FLAG_NONE="-Od" 40146 fi 40147 CXX_O_FLAG_HIGHEST="$C_O_FLAG_HIGHEST" 40148 CXX_O_FLAG_HI="$C_O_FLAG_HI" 40149 CXX_O_FLAG_NORM="$C_O_FLAG_NORM" 40150 CXX_O_FLAG_NONE="$C_O_FLAG_NONE" 40151 fi 40152 40153 40154 40155 40156 40157 40158 40159 40160 40161 40162 40163 # Special extras... 40164 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40165 if test "x$OPENJDK_TARGET_CPU_ARCH" = "xsparc"; then 40166 CFLAGS_JDKLIB_EXTRA="${CFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 40167 CXXFLAGS_JDKLIB_EXTRA="${CXXFLAGS_JDKLIB_EXTRA} -xregs=no%appl" 40168 fi 40169 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40170 LDFLAGS_JDK="${LDFLAGS_JDK} -q64 -brtl -bnolibpath -liconv -bexpall" 40171 CFLAGS_JDK="${CFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 40172 CXXFLAGS_JDK="${CXXFLAGS_JDK} -qchars=signed -q64 -qfullpath -qsaveopt" 40173 elif test "x$TOOLCHAIN_TYPE" = xgcc; then 40174 CXXSTD_CXXFLAG="-std=gnu++98" 40175 40176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"" >&5 40177 $as_echo_n "checking if the C++ compiler supports \"$CXXSTD_CXXFLAG -Werror\"... " >&6; } 40178 supports=yes 40179 40180 saved_cxxflags="$CXXFLAGS" 40181 CXXFLAGS="$CXXFLAG $CXXSTD_CXXFLAG -Werror" 40182 ac_ext=cpp 40183 ac_cpp='$CXXCPP $CPPFLAGS' 40184 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40185 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40186 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40187 40188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40189 /* end confdefs.h. */ 40190 int i; 40191 _ACEOF 40192 if ac_fn_cxx_try_compile "$LINENO"; then : 40193 40194 else 40195 supports=no 40196 fi 40197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40198 ac_ext=cpp 40199 ac_cpp='$CXXCPP $CPPFLAGS' 40200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40203 40204 CXXFLAGS="$saved_cxxflags" 40205 40206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40207 $as_echo "$supports" >&6; } 40208 if test "x$supports" = "xyes" ; then 40209 : 40210 else 40211 CXXSTD_CXXFLAG="" 40212 fi 40213 40214 CXXFLAGS_JDK="${CXXFLAGS_JDK} ${CXXSTD_CXXFLAG}" 40215 JVM_CFLAGS="${JVM_CFLAGS} ${CXXSTD_CXXFLAG}" 40216 40217 fi 40218 40219 if test "x$CFLAGS" != "x${ADDED_CFLAGS}"; then 40220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&5 40221 $as_echo "$as_me: WARNING: Ignoring CFLAGS($CFLAGS) found in environment. Use --with-extra-cflags" >&2;} 40222 fi 40223 40224 if test "x$CXXFLAGS" != "x${ADDED_CXXFLAGS}"; then 40225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&5 40226 $as_echo "$as_me: WARNING: Ignoring CXXFLAGS($CXXFLAGS) found in environment. Use --with-extra-cxxflags" >&2;} 40227 fi 40228 40229 if test "x$LDFLAGS" != "x${ADDED_LDFLAGS}"; then 40230 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&5 40231 $as_echo "$as_me: WARNING: Ignoring LDFLAGS($LDFLAGS) found in environment. Use --with-extra-ldflags" >&2;} 40232 fi 40233 40234 40235 # Check whether --with-extra-cflags was given. 40236 if test "${with_extra_cflags+set}" = set; then : 40237 withval=$with_extra_cflags; 40238 fi 40239 40240 40241 40242 # Check whether --with-extra-cxxflags was given. 40243 if test "${with_extra_cxxflags+set}" = set; then : 40244 withval=$with_extra_cxxflags; 40245 fi 40246 40247 40248 40249 # Check whether --with-extra-ldflags was given. 40250 if test "${with_extra_ldflags+set}" = set; then : 40251 withval=$with_extra_ldflags; 40252 fi 40253 40254 40255 CFLAGS_JDK="${CFLAGS_JDK} $with_extra_cflags" 40256 CXXFLAGS_JDK="${CXXFLAGS_JDK} $with_extra_cxxflags" 40257 LDFLAGS_JDK="${LDFLAGS_JDK} $with_extra_ldflags" 40258 40259 # Hotspot needs these set in their legacy form 40260 LEGACY_EXTRA_CFLAGS=$with_extra_cflags 40261 LEGACY_EXTRA_CXXFLAGS=$with_extra_cxxflags 40262 LEGACY_EXTRA_LDFLAGS=$with_extra_ldflags 40263 40264 40265 40266 40267 40268 ############################################################################### 40269 # 40270 # Now setup the CFLAGS and LDFLAGS for the JDK build. 40271 # Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build. 40272 # 40273 40274 # Setup compiler/platform specific flags to CFLAGS_JDK, 40275 # CXXFLAGS_JDK and CCXXFLAGS_JDK (common to C and CXX?) 40276 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40277 # these options are used for both C and C++ compiles 40278 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Wall -Wno-parentheses -Wextra -Wno-unused -Wno-unused-parameter -Wformat=2 \ 40279 -pipe -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE" 40280 case $OPENJDK_TARGET_CPU_ARCH in 40281 arm ) 40282 # on arm we don't prevent gcc to omit frame pointer but do prevent strict aliasing 40283 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 40284 ;; 40285 ppc ) 40286 # on ppc we don't prevent gcc to omit frame pointer nor strict-aliasing 40287 ;; 40288 * ) 40289 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -fno-omit-frame-pointer" 40290 CFLAGS_JDK="${CFLAGS_JDK} -fno-strict-aliasing" 40291 ;; 40292 esac 40293 40294 REFERENCE_VERSION=6 40295 40296 if [[ "$REFERENCE_VERSION" =~ (.*\.){3} ]] ; then 40297 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only three parts (X.Y.Z) is supported" "$LINENO" 5 40298 fi 40299 40300 if [[ "$REFERENCE_VERSION" =~ [0-9]{6} ]] ; then 40301 as_fn_error $? "Internal error: Cannot compare to $REFERENCE_VERSION, only parts < 99999 is supported" "$LINENO" 5 40302 fi 40303 40304 # Version comparison method inspired by http://stackoverflow.com/a/24067243 40305 COMPARABLE_REFERENCE_VERSION=`$AWK -F. '{ printf("%05d%05d%05d\n", $1, $2, $3) }' <<< "$REFERENCE_VERSION"` 40306 40307 if test $COMPARABLE_ACTUAL_VERSION -ge $COMPARABLE_REFERENCE_VERSION ; then 40308 40309 # These flags are required for GCC 6 builds as undefined behaviour in OpenJDK code 40310 # runs afoul of the more aggressive versions of these optimisations. 40311 # Notably, value range propagation now assumes that the this pointer of C++ 40312 # member functions is non-null. 40313 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="-fno-delete-null-pointer-checks" 40314 40315 40316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 40317 $as_echo_n "checking if the C compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 40318 supports=yes 40319 40320 saved_cflags="$CFLAGS" 40321 CFLAGS="$CFLAGS $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 40322 ac_ext=c 40323 ac_cpp='$CPP $CPPFLAGS' 40324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40326 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40327 40328 40329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40330 /* end confdefs.h. */ 40331 int i; 40332 _ACEOF 40333 if ac_fn_c_try_compile "$LINENO"; then : 40334 40335 else 40336 supports=no 40337 fi 40338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40339 ac_ext=cpp 40340 ac_cpp='$CXXCPP $CPPFLAGS' 40341 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40342 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40343 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40344 40345 CFLAGS="$saved_cflags" 40346 40347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40348 $as_echo "$supports" >&6; } 40349 if test "x$supports" = "xyes" ; then 40350 C_COMP_SUPPORTS="yes" 40351 else 40352 C_COMP_SUPPORTS="no" 40353 fi 40354 40355 40356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 40357 $as_echo_n "checking if the C++ compiler supports \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 40358 supports=yes 40359 40360 saved_cxxflags="$CXXFLAGS" 40361 CXXFLAGS="$CXXFLAG $NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror" 40362 ac_ext=cpp 40363 ac_cpp='$CXXCPP $CPPFLAGS' 40364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40367 40368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40369 /* end confdefs.h. */ 40370 int i; 40371 _ACEOF 40372 if ac_fn_cxx_try_compile "$LINENO"; then : 40373 40374 else 40375 supports=no 40376 fi 40377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40378 ac_ext=cpp 40379 ac_cpp='$CXXCPP $CPPFLAGS' 40380 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40381 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40382 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40383 40384 CXXFLAGS="$saved_cxxflags" 40385 40386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40387 $as_echo "$supports" >&6; } 40388 if test "x$supports" = "xyes" ; then 40389 CXX_COMP_SUPPORTS="yes" 40390 else 40391 CXX_COMP_SUPPORTS="no" 40392 fi 40393 40394 40395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"" >&5 40396 $as_echo_n "checking if both compilers support \"$NO_DELETE_NULL_POINTER_CHECKS_CFLAG -Werror\"... " >&6; } 40397 supports=no 40398 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40399 40400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40401 $as_echo "$supports" >&6; } 40402 if test "x$supports" = "xyes" ; then 40403 : 40404 else 40405 NO_DELETE_NULL_POINTER_CHECKS_CFLAG="" 40406 fi 40407 40408 40409 NO_LIFETIME_DSE_CFLAG="-fno-lifetime-dse" 40410 40411 40412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 40413 $as_echo_n "checking if the C compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 40414 supports=yes 40415 40416 saved_cflags="$CFLAGS" 40417 CFLAGS="$CFLAGS $NO_LIFETIME_DSE_CFLAG -Werror" 40418 ac_ext=c 40419 ac_cpp='$CPP $CPPFLAGS' 40420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40422 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40423 40424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40425 /* end confdefs.h. */ 40426 int i; 40427 _ACEOF 40428 if ac_fn_c_try_compile "$LINENO"; then : 40429 40430 else 40431 supports=no 40432 fi 40433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40434 ac_ext=cpp 40435 ac_cpp='$CXXCPP $CPPFLAGS' 40436 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40437 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40438 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40439 40440 CFLAGS="$saved_cflags" 40441 40442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40443 $as_echo "$supports" >&6; } 40444 if test "x$supports" = "xyes" ; then 40445 C_COMP_SUPPORTS="yes" 40446 else 40447 C_COMP_SUPPORTS="no" 40448 fi 40449 40450 40451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 40452 $as_echo_n "checking if the C++ compiler supports \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 40453 supports=yes 40454 40455 saved_cxxflags="$CXXFLAGS" 40456 CXXFLAGS="$CXXFLAG $NO_LIFETIME_DSE_CFLAG -Werror" 40457 ac_ext=cpp 40458 ac_cpp='$CXXCPP $CPPFLAGS' 40459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40462 40463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40464 /* end confdefs.h. */ 40465 int i; 40466 _ACEOF 40467 if ac_fn_cxx_try_compile "$LINENO"; then : 40468 40469 else 40470 supports=no 40471 fi 40472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40473 ac_ext=cpp 40474 ac_cpp='$CXXCPP $CPPFLAGS' 40475 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40476 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40477 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40478 40479 CXXFLAGS="$saved_cxxflags" 40480 40481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40482 $as_echo "$supports" >&6; } 40483 if test "x$supports" = "xyes" ; then 40484 CXX_COMP_SUPPORTS="yes" 40485 else 40486 CXX_COMP_SUPPORTS="no" 40487 fi 40488 40489 40490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"" >&5 40491 $as_echo_n "checking if both compilers support \"$NO_LIFETIME_DSE_CFLAG -Werror\"... " >&6; } 40492 supports=no 40493 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40494 40495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40496 $as_echo "$supports" >&6; } 40497 if test "x$supports" = "xyes" ; then 40498 : 40499 else 40500 NO_LIFETIME_DSE_CFLAG="" 40501 fi 40502 40503 CFLAGS_JDK="${CFLAGS_JDK} ${NO_DELETE_NULL_POINTER_CHECKS_CFLAG} ${NO_LIFETIME_DSE_CFLAG}" 40504 40505 40506 40507 else 40508 : 40509 fi 40510 40511 elif test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40512 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -DTRACING -DMACRO_MEMSYS_OPS -DBREAKPTS" 40513 if test "x$OPENJDK_TARGET_CPU_ARCH" = xx86; then 40514 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DcpuIntel -Di586 -D$OPENJDK_TARGET_CPU_LEGACY_LIB" 40515 CFLAGS_JDK="$CFLAGS_JDK -erroff=E_BAD_PRAGMA_PACK_VALUE" 40516 fi 40517 40518 CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -W0,-noglobal" 40519 CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX -norunpath -xnolib" 40520 elif test "x$TOOLCHAIN_TYPE" = xxlc; then 40521 CFLAGS_JDK="$CFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 40522 CXXFLAGS_JDK="$CXXFLAGS_JDK -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE -DSTDC" 40523 elif test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40524 CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \ 40525 -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \ 40526 -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \ 40527 -DWIN32 -DIAL" 40528 if test "x$OPENJDK_TARGET_CPU" = xx86_64; then 40529 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64" 40530 else 40531 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86" 40532 fi 40533 fi 40534 40535 ############################################################################### 40536 40537 # Adjust flags according to debug level. 40538 case $DEBUG_LEVEL in 40539 fastdebug ) 40540 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 40541 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 40542 C_O_FLAG_HI="$C_O_FLAG_NORM" 40543 C_O_FLAG_NORM="$C_O_FLAG_NORM" 40544 CXX_O_FLAG_HI="$CXX_O_FLAG_NORM" 40545 CXX_O_FLAG_NORM="$CXX_O_FLAG_NORM" 40546 JAVAC_FLAGS="$JAVAC_FLAGS -g" 40547 ;; 40548 slowdebug ) 40549 CFLAGS_JDK="$CFLAGS_JDK $CFLAGS_DEBUG_SYMBOLS" 40550 CXXFLAGS_JDK="$CXXFLAGS_JDK $CXXFLAGS_DEBUG_SYMBOLS" 40551 C_O_FLAG_HI="$C_O_FLAG_NONE" 40552 C_O_FLAG_NORM="$C_O_FLAG_NONE" 40553 CXX_O_FLAG_HI="$CXX_O_FLAG_NONE" 40554 CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE" 40555 JAVAC_FLAGS="$JAVAC_FLAGS -g" 40556 ;; 40557 esac 40558 40559 # Setup LP64 40560 CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64" 40561 40562 # Set some common defines. These works for all compilers, but assume 40563 # -D is universally accepted. 40564 40565 # Setup endianness 40566 if test "x$OPENJDK_TARGET_CPU_ENDIAN" = xlittle; then 40567 # The macro _LITTLE_ENDIAN needs to be defined the same to avoid the 40568 # Sun C compiler warning message: warning: macro redefined: _LITTLE_ENDIAN 40569 # (The Solaris X86 system defines this in file /usr/include/sys/isa_defs.h). 40570 # Note: -Dmacro is the same as #define macro 1 40571 # -Dmacro= is the same as #define macro 40572 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40573 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN=" 40574 else 40575 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN" 40576 fi 40577 else 40578 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN" 40579 fi 40580 40581 # Setup target OS define. Use OS target name but in upper case. 40582 OPENJDK_TARGET_OS_UPPERCASE=`$ECHO $OPENJDK_TARGET_OS | $TR 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'` 40583 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D$OPENJDK_TARGET_OS_UPPERCASE" 40584 40585 # Setup target CPU 40586 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$OPENJDK_TARGET_CPU_LEGACY\"' -D$OPENJDK_TARGET_CPU_LEGACY" 40587 40588 # Setup debug/release defines 40589 if test "x$DEBUG_LEVEL" = xrelease; then 40590 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG" 40591 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 40592 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DTRIMMED" 40593 fi 40594 else 40595 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG" 40596 fi 40597 40598 # Setup release name 40599 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"\$(RELEASE)\"'" 40600 40601 40602 # Set some additional per-OS defines. 40603 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40604 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE -D_DARWIN_UNLIMITED_SELECT" 40605 elif test "x$OPENJDK_TARGET_OS" = xaix; then 40606 # FIXME: PPC64 should not be here. 40607 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DPPC64" 40608 elif test "x$OPENJDK_TARGET_OS" = xbsd; then 40609 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_ALLBSD_SOURCE" 40610 fi 40611 40612 # Additional macosx handling 40613 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 40614 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40615 # FIXME: This needs to be exported in spec.gmk due to closed legacy code. 40616 # FIXME: clean this up, and/or move it elsewhere. 40617 40618 # Setting these parameters makes it an error to link to macosx APIs that are 40619 # newer than the given OS version and makes the linked binaries compatible 40620 # even if built on a newer version of the OS. 40621 # The expected format is X.Y.Z 40622 MACOSX_VERSION_MIN=10.7.0 40623 40624 40625 # The macro takes the version with no dots, ex: 1070 40626 # Let the flags variables get resolved in make for easier override on make 40627 # command line. 40628 CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMAC_OS_X_VERSION_MAX_ALLOWED=\$(subst .,,\$(MACOSX_VERSION_MIN)) -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 40629 LDFLAGS_JDK="$LDFLAGS_JDK -mmacosx-version-min=\$(MACOSX_VERSION_MIN)" 40630 fi 40631 fi 40632 40633 # Setup some hard coded includes 40634 CCXXFLAGS_JDK="$CCXXFLAGS_JDK \ 40635 -I${JDK_OUTPUTDIR}/include \ 40636 -I${JDK_OUTPUTDIR}/include/$OPENJDK_TARGET_OS \ 40637 -I${JDK_TOPDIR}/src/share/javavm/export \ 40638 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_EXPORT_DIR/javavm/export \ 40639 -I${JDK_TOPDIR}/src/share/native/common \ 40640 -I${JDK_TOPDIR}/src/$OPENJDK_TARGET_OS_API_DIR/native/common" 40641 40642 # The shared libraries are compiled using the picflag. 40643 CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA" 40644 CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG $CXXFLAGS_JDKLIB_EXTRA " 40645 40646 # Executable flags 40647 CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK" 40648 CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK" 40649 40650 40651 40652 40653 40654 40655 # Setup LDFLAGS et al. 40656 # 40657 # Now this is odd. The JDK native libraries have to link against libjvm.so 40658 # On 32-bit machines there is normally two distinct libjvm.so:s, client and server. 40659 # Which should we link to? Are we lucky enough that the binary api to the libjvm.so library 40660 # is identical for client and server? Yes. Which is picked at runtime (client or server)? 40661 # Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following 40662 # libraries will link to whatever is in memory. Yuck. 40663 # 40664 # Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh. 40665 if test "x$TOOLCHAIN_TYPE" = xmicrosoft; then 40666 LDFLAGS_JDK="$LDFLAGS_JDK -nologo -opt:ref -incremental:no" 40667 if test "x$OPENJDK_TARGET_CPU_BITS" = "x32"; then 40668 LDFLAGS_JDK="$LDFLAGS_JDK -safeseh" 40669 fi 40670 # TODO: make -debug optional "--disable-full-debug-symbols" 40671 LDFLAGS_JDK="$LDFLAGS_JDK -debug" 40672 LDFLAGS_JDKLIB="${LDFLAGS_JDK} -dll -libpath:${JDK_OUTPUTDIR}/lib" 40673 LDFLAGS_JDKLIB_SUFFIX="" 40674 if test "x$OPENJDK_TARGET_CPU_BITS" = "x64"; then 40675 LDFLAGS_STACK_SIZE=1048576 40676 else 40677 LDFLAGS_STACK_SIZE=327680 40678 fi 40679 LDFLAGS_JDKEXE="${LDFLAGS_JDK} /STACK:$LDFLAGS_STACK_SIZE" 40680 else 40681 if test "x$TOOLCHAIN_TYPE" = xgcc; then 40682 # If this is a --hash-style=gnu system, use --hash-style=both, why? 40683 # We have previously set HAS_GNU_HASH if this is the case 40684 if test -n "$HAS_GNU_HASH"; then 40685 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker --hash-style=both " 40686 fi 40687 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40688 # And since we now know that the linker is gnu, then add -z defs, to forbid 40689 # undefined symbols in object files. 40690 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -z -Xlinker defs" 40691 if test "x$DEBUG_LEVEL" = "xrelease"; then 40692 # When building release libraries, tell the linker optimize them. 40693 # Should this be supplied to the OSS linker as well? 40694 LDFLAGS_JDK="${LDFLAGS_JDK} -Xlinker -O1" 40695 fi 40696 fi 40697 fi 40698 40699 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40700 LDFLAGS_JDK="$LDFLAGS_JDK -z defs -xildoff -ztext" 40701 LDFLAGS_CXX_JDK="$LDFLAGS_CXX_JDK -norunpath -xnolib" 40702 fi 40703 40704 LDFLAGS_JDKLIB="${LDFLAGS_JDK} $SHARED_LIBRARY_FLAGS \ 40705 -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}" 40706 40707 # On some platforms (mac) the linker warns about non existing -L dirs. 40708 # Add server first if available. Linking aginst client does not always produce the same results. 40709 # Only add client dir if client is being built. Add minimal (note not minimal1) if only building minimal1. 40710 # Default to server for other variants. 40711 if test "x$JVM_VARIANT_SERVER" = xtrue; then 40712 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 40713 elif test "x$JVM_VARIANT_CLIENT" = xtrue; then 40714 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/client" 40715 elif test "x$JVM_VARIANT_MINIMAL1" = xtrue; then 40716 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/minimal" 40717 else 40718 LDFLAGS_JDKLIB="${LDFLAGS_JDKLIB} -L${JDK_OUTPUTDIR}/lib${OPENJDK_TARGET_CPU_LIBDIR}/server" 40719 fi 40720 40721 LDFLAGS_JDKLIB_SUFFIX="-ljava -ljvm" 40722 if test "x$TOOLCHAIN_TYPE" = xsolstudio; then 40723 LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc" 40724 fi 40725 40726 LDFLAGS_JDKEXE="${LDFLAGS_JDK}" 40727 if test "x$OPENJDK_TARGET_OS" = xlinux; then 40728 LDFLAGS_JDKEXE="$LDFLAGS_JDKEXE -Xlinker --allow-shlib-undefined" 40729 fi 40730 fi 40731 40732 40733 40734 40735 40736 40737 40738 # Some Zero and Shark settings. 40739 # ZERO_ARCHFLAG tells the compiler which mode to build for 40740 case "${OPENJDK_TARGET_CPU}" in 40741 s390) 40742 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}31" 40743 ;; 40744 *) 40745 ZERO_ARCHFLAG="${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40746 esac 40747 40748 40749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"$ZERO_ARCHFLAG\"" >&5 40750 $as_echo_n "checking if the C compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 40751 supports=yes 40752 40753 saved_cflags="$CFLAGS" 40754 CFLAGS="$CFLAGS $ZERO_ARCHFLAG" 40755 ac_ext=c 40756 ac_cpp='$CPP $CPPFLAGS' 40757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40759 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40760 40761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40762 /* end confdefs.h. */ 40763 int i; 40764 _ACEOF 40765 if ac_fn_c_try_compile "$LINENO"; then : 40766 40767 else 40768 supports=no 40769 fi 40770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40771 ac_ext=cpp 40772 ac_cpp='$CXXCPP $CPPFLAGS' 40773 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40774 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40775 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40776 40777 CFLAGS="$saved_cflags" 40778 40779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40780 $as_echo "$supports" >&6; } 40781 if test "x$supports" = "xyes" ; then 40782 C_COMP_SUPPORTS="yes" 40783 else 40784 C_COMP_SUPPORTS="no" 40785 fi 40786 40787 40788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"" >&5 40789 $as_echo_n "checking if the C++ compiler supports \"$ZERO_ARCHFLAG\"... " >&6; } 40790 supports=yes 40791 40792 saved_cxxflags="$CXXFLAGS" 40793 CXXFLAGS="$CXXFLAG $ZERO_ARCHFLAG" 40794 ac_ext=cpp 40795 ac_cpp='$CXXCPP $CPPFLAGS' 40796 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40797 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40798 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40799 40800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40801 /* end confdefs.h. */ 40802 int i; 40803 _ACEOF 40804 if ac_fn_cxx_try_compile "$LINENO"; then : 40805 40806 else 40807 supports=no 40808 fi 40809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40810 ac_ext=cpp 40811 ac_cpp='$CXXCPP $CPPFLAGS' 40812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40815 40816 CXXFLAGS="$saved_cxxflags" 40817 40818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40819 $as_echo "$supports" >&6; } 40820 if test "x$supports" = "xyes" ; then 40821 CXX_COMP_SUPPORTS="yes" 40822 else 40823 CXX_COMP_SUPPORTS="no" 40824 fi 40825 40826 40827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"$ZERO_ARCHFLAG\"" >&5 40828 $as_echo_n "checking if both compilers support \"$ZERO_ARCHFLAG\"... " >&6; } 40829 supports=no 40830 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40831 40832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40833 $as_echo "$supports" >&6; } 40834 if test "x$supports" = "xyes" ; then 40835 : 40836 else 40837 ZERO_ARCHFLAG="" 40838 fi 40839 40840 40841 40842 # Check that the compiler supports -mX (or -qX on AIX) flags 40843 # Set COMPILER_SUPPORTS_TARGET_BITS_FLAG to 'true' if it does 40844 40845 40846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 40847 $as_echo_n "checking if the C compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 40848 supports=yes 40849 40850 saved_cflags="$CFLAGS" 40851 CFLAGS="$CFLAGS ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40852 ac_ext=c 40853 ac_cpp='$CPP $CPPFLAGS' 40854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40856 ac_compiler_gnu=$ac_cv_c_compiler_gnu 40857 40858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40859 /* end confdefs.h. */ 40860 int i; 40861 _ACEOF 40862 if ac_fn_c_try_compile "$LINENO"; then : 40863 40864 else 40865 supports=no 40866 fi 40867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40868 ac_ext=cpp 40869 ac_cpp='$CXXCPP $CPPFLAGS' 40870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40873 40874 CFLAGS="$saved_cflags" 40875 40876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40877 $as_echo "$supports" >&6; } 40878 if test "x$supports" = "xyes" ; then 40879 C_COMP_SUPPORTS="yes" 40880 else 40881 C_COMP_SUPPORTS="no" 40882 fi 40883 40884 40885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 40886 $as_echo_n "checking if the C++ compiler supports \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 40887 supports=yes 40888 40889 saved_cxxflags="$CXXFLAGS" 40890 CXXFLAGS="$CXXFLAG ${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}" 40891 ac_ext=cpp 40892 ac_cpp='$CXXCPP $CPPFLAGS' 40893 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40894 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40895 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40896 40897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 40898 /* end confdefs.h. */ 40899 int i; 40900 _ACEOF 40901 if ac_fn_cxx_try_compile "$LINENO"; then : 40902 40903 else 40904 supports=no 40905 fi 40906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 40907 ac_ext=cpp 40908 ac_cpp='$CXXCPP $CPPFLAGS' 40909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 40910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 40911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 40912 40913 CXXFLAGS="$saved_cxxflags" 40914 40915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40916 $as_echo "$supports" >&6; } 40917 if test "x$supports" = "xyes" ; then 40918 CXX_COMP_SUPPORTS="yes" 40919 else 40920 CXX_COMP_SUPPORTS="no" 40921 fi 40922 40923 40924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"" >&5 40925 $as_echo_n "checking if both compilers support \"${COMPILER_TARGET_BITS_FLAG}${OPENJDK_TARGET_CPU_BITS}\"... " >&6; } 40926 supports=no 40927 if test "x$C_COMP_SUPPORTS" = "xyes" -a "x$CXX_COMP_SUPPORTS" = "xyes"; then supports=yes; fi 40928 40929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports" >&5 40930 $as_echo "$supports" >&6; } 40931 if test "x$supports" = "xyes" ; then 40932 COMPILER_SUPPORTS_TARGET_BITS_FLAG=true 40933 else 40934 COMPILER_SUPPORTS_TARGET_BITS_FLAG=false 40935 fi 40936 40937 40938 40939 40940 # Setup debug symbols (need objcopy from the toolchain for that) 40941 40942 # 40943 # ENABLE_DEBUG_SYMBOLS 40944 # This must be done after the toolchain is setup, since we're looking at objcopy. 40945 # 40946 # Check whether --enable-debug-symbols was given. 40947 if test "${enable_debug_symbols+set}" = set; then : 40948 enableval=$enable_debug_symbols; 40949 fi 40950 40951 40952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should generate debug symbols" >&5 40953 $as_echo_n "checking if we should generate debug symbols... " >&6; } 40954 40955 if test "x$enable_debug_symbols" = "xyes" && test "x$OBJCOPY" = x; then 40956 # explicit enabling of enable-debug-symbols and can't find objcopy 40957 # this is an error 40958 as_fn_error $? "Unable to find objcopy, cannot enable debug-symbols" "$LINENO" 5 40959 fi 40960 40961 if test "x$enable_debug_symbols" = "xyes"; then 40962 ENABLE_DEBUG_SYMBOLS=true 40963 elif test "x$enable_debug_symbols" = "xno"; then 40964 ENABLE_DEBUG_SYMBOLS=false 40965 else 40966 # Default is on if objcopy is found 40967 if test "x$OBJCOPY" != x; then 40968 ENABLE_DEBUG_SYMBOLS=true 40969 # MacOS X and Windows don't use objcopy but default is on for those OSes 40970 elif test "x$OPENJDK_TARGET_OS" = xmacosx || test "x$OPENJDK_TARGET_OS" = xwindows; then 40971 ENABLE_DEBUG_SYMBOLS=true 40972 else 40973 ENABLE_DEBUG_SYMBOLS=false 40974 fi 40975 fi 40976 40977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DEBUG_SYMBOLS" >&5 40978 $as_echo "$ENABLE_DEBUG_SYMBOLS" >&6; } 40979 40980 # 40981 # ZIP_DEBUGINFO_FILES 40982 # 40983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should zip debug-info files" >&5 40984 $as_echo_n "checking if we should zip debug-info files... " >&6; } 40985 # Check whether --enable-zip-debug-info was given. 40986 if test "${enable_zip_debug_info+set}" = set; then : 40987 enableval=$enable_zip_debug_info; enable_zip_debug_info="${enableval}" 40988 else 40989 enable_zip_debug_info="yes" 40990 fi 40991 40992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${enable_zip_debug_info}" >&5 40993 $as_echo "${enable_zip_debug_info}" >&6; } 40994 40995 if test "x${enable_zip_debug_info}" = "xno"; then 40996 ZIP_DEBUGINFO_FILES=false 40997 else 40998 ZIP_DEBUGINFO_FILES=true 40999 fi 41000 41001 41002 41003 41004 41005 ############################################################################### 41006 # 41007 # Check dependencies for external and internal libraries. 41008 # 41009 ############################################################################### 41010 41011 # After we have toolchain, we can compile fixpath. It's needed by the lib checks. 41012 41013 # When using cygwin or msys, we need a wrapper binary that renames 41014 # /cygdrive/c/ arguments into c:/ arguments and peeks into 41015 # @files and rewrites these too! This wrapper binary is 41016 # called fixpath. 41017 FIXPATH= 41018 if test "x$OPENJDK_BUILD_OS" = xwindows; then 41019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath can be created" >&5 41020 $as_echo_n "checking if fixpath can be created... " >&6; } 41021 FIXPATH_SRC="$SRC_ROOT/common/src/fixpath.c" 41022 FIXPATH_BIN="$OUTPUT_ROOT/fixpath.exe" 41023 if test "x$OPENJDK_BUILD_OS_ENV" = xwindows.cygwin; then 41024 FIXPATH_SRC=`$CYGPATH -m $FIXPATH_SRC` 41025 FIXPATH_BIN=`$CYGPATH -m $FIXPATH_BIN` 41026 # Important to keep the .exe suffix on Cygwin for Hotspot makefiles 41027 FIXPATH="$OUTPUT_ROOT/fixpath.exe -c" 41028 elif test "x$OPENJDK_BUILD_OS_ENV" = xwindows.msys; then 41029 FIXPATH_SRC=`cmd //c echo $FIXPATH_SRC` 41030 FIXPATH_BIN=`cmd //c echo $FIXPATH_BIN` 41031 41032 # Take all collected prefixes and turn them into a -m/c/foo@/c/bar@... command line 41033 # @ was chosen as separator to minimize risk of other tools messing around with it 41034 all_unique_prefixes=`echo "${all_fixpath_prefixes[@]}" | tr ' ' '\n' | grep '^/./' | sort | uniq` 41035 fixpath_argument_list=`echo $all_unique_prefixes | tr ' ' '@'` 41036 41037 FIXPATH="$OUTPUT_ROOT/fixpath -m$fixpath_argument_list" 41038 fi 41039 rm -f $OUTPUT_ROOT/fixpath* 41040 cd $OUTPUT_ROOT 41041 $CC $FIXPATH_SRC -Fe$FIXPATH_BIN > $OUTPUT_ROOT/fixpath1.log 2>&1 41042 cd $CURDIR 41043 41044 if test ! -x $OUTPUT_ROOT/fixpath.exe; then 41045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41046 $as_echo "no" >&6; } 41047 cat $OUTPUT_ROOT/fixpath1.log 41048 as_fn_error $? "Could not create $OUTPUT_ROOT/fixpath.exe" "$LINENO" 5 41049 fi 41050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41051 $as_echo "yes" >&6; } 41052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fixpath.exe works" >&5 41053 $as_echo_n "checking if fixpath.exe works... " >&6; } 41054 cd $OUTPUT_ROOT 41055 $FIXPATH $CC $SRC_ROOT/common/src/fixpath.c -Fe$OUTPUT_ROOT/fixpath2.exe > $OUTPUT_ROOT/fixpath2.log 2>&1 41056 cd $CURDIR 41057 if test ! -x $OUTPUT_ROOT/fixpath2.exe; then 41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41059 $as_echo "no" >&6; } 41060 cat $OUTPUT_ROOT/fixpath2.log 41061 as_fn_error $? "fixpath did not work!" "$LINENO" 5 41062 fi 41063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41064 $as_echo "yes" >&6; } 41065 rm -f $OUTPUT_ROOT/fixpath?.??? $OUTPUT_ROOT/fixpath.obj 41066 fi 41067 41068 41069 41070 41071 41072 41073 ############################################################################### 41074 # 41075 # OS specific settings that we never will need to probe. 41076 # 41077 if test "x$OPENJDK_TARGET_OS" = xlinux; then 41078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5 41079 $as_echo_n "checking what is not needed on Linux?... " >&6; } 41080 PULSE_NOT_NEEDED=yes 41081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5 41082 $as_echo "pulse" >&6; } 41083 fi 41084 41085 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5 41087 $as_echo_n "checking what is not needed on Solaris?... " >&6; } 41088 ALSA_NOT_NEEDED=yes 41089 PULSE_NOT_NEEDED=yes 41090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 41091 $as_echo "alsa pulse" >&6; } 41092 fi 41093 41094 if test "x$OPENJDK_TARGET_OS" = xaix; then 41095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on AIX?" >&5 41096 $as_echo_n "checking what is not needed on AIX?... " >&6; } 41097 ALSA_NOT_NEEDED=yes 41098 PULSE_NOT_NEEDED=yes 41099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5 41100 $as_echo "alsa pulse" >&6; } 41101 fi 41102 41103 41104 if test "x$OPENJDK_TARGET_OS" = xwindows; then 41105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5 41106 $as_echo_n "checking what is not needed on Windows?... " >&6; } 41107 CUPS_NOT_NEEDED=yes 41108 ALSA_NOT_NEEDED=yes 41109 PULSE_NOT_NEEDED=yes 41110 X11_NOT_NEEDED=yes 41111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5 41112 $as_echo "alsa cups pulse x11" >&6; } 41113 fi 41114 41115 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 41116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5 41117 $as_echo_n "checking what is not needed on MacOSX?... " >&6; } 41118 ALSA_NOT_NEEDED=yes 41119 PULSE_NOT_NEEDED=yes 41120 X11_NOT_NEEDED=yes 41121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5 41122 $as_echo "alsa pulse x11" >&6; } 41123 fi 41124 41125 if test "x$OPENJDK_TARGET_OS" = xbsd; then 41126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5 41127 $as_echo_n "checking what is not needed on bsd?... " >&6; } 41128 ALSA_NOT_NEEDED=yes 41129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5 41130 $as_echo "alsa" >&6; } 41131 fi 41132 41133 if test "x$OPENJDK" = "xfalse"; then 41134 FREETYPE_NOT_NEEDED=yes 41135 fi 41136 41137 if test "x$SUPPORT_HEADFUL" = xno; then 41138 X11_NOT_NEEDED=yes 41139 fi 41140 41141 # Deprecated and now ignored 41142 41143 # Check whether --enable-macosx-runtime-support was given. 41144 if test "${enable_macosx_runtime_support+set}" = set; then : 41145 enableval=$enable_macosx_runtime_support; 41146 fi 41147 41148 if test "x$enable_macosx_runtime_support" != x; then 41149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&5 41150 $as_echo "$as_me: WARNING: Option --enable-macosx-runtime-support is deprecated and will be ignored." >&2;} 41151 fi 41152 41153 41154 41155 41156 ############################################################################### 41157 # 41158 # Check for X Windows 41159 # 41160 41161 # Check if the user has specified sysroot, but not --x-includes or --x-libraries. 41162 # Make a simple check for the libraries at the sysroot, and setup --x-includes and 41163 # --x-libraries for the sysroot, if that seems to be correct. 41164 if test "x$SYS_ROOT" != "x/"; then 41165 if test "x$x_includes" = xNONE; then 41166 if test -f "$SYS_ROOT/usr/X11R6/include/X11/Xlib.h"; then 41167 x_includes="$SYS_ROOT/usr/X11R6/include" 41168 elif test -f "$SYS_ROOT/usr/include/X11/Xlib.h"; then 41169 x_includes="$SYS_ROOT/usr/include" 41170 fi 41171 fi 41172 if test "x$x_libraries" = xNONE; then 41173 if test -f "$SYS_ROOT/usr/X11R6/lib/libX11.so"; then 41174 x_libraries="$SYS_ROOT/usr/X11R6/lib" 41175 elif test "$SYS_ROOT/usr/lib64/libX11.so" && test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 41176 x_libraries="$SYS_ROOT/usr/lib64" 41177 elif test -f "$SYS_ROOT/usr/lib/libX11.so"; then 41178 x_libraries="$SYS_ROOT/usr/lib" 41179 fi 41180 fi 41181 fi 41182 41183 # Now let autoconf do it's magic 41184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 41185 $as_echo_n "checking for X... " >&6; } 41186 41187 41188 # Check whether --with-x was given. 41189 if test "${with_x+set}" = set; then : 41190 withval=$with_x; 41191 fi 41192 41193 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 41194 if test "x$with_x" = xno; then 41195 # The user explicitly disabled X. 41196 have_x=disabled 41197 else 41198 case $x_includes,$x_libraries in #( 41199 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 41200 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 41201 $as_echo_n "(cached) " >&6 41202 else 41203 # One or both of the vars are not set, and there is no cached value. 41204 ac_x_includes=no ac_x_libraries=no 41205 rm -f -r conftest.dir 41206 if mkdir conftest.dir; then 41207 cd conftest.dir 41208 cat >Imakefile <<'_ACEOF' 41209 incroot: 41210 @echo incroot='${INCROOT}' 41211 usrlibdir: 41212 @echo usrlibdir='${USRLIBDIR}' 41213 libdir: 41214 @echo libdir='${LIBDIR}' 41215 _ACEOF 41216 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 41217 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 41218 for ac_var in incroot usrlibdir libdir; do 41219 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 41220 done 41221 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 41222 for ac_extension in a so sl dylib la dll; do 41223 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 41224 test -f "$ac_im_libdir/libX11.$ac_extension"; then 41225 ac_im_usrlibdir=$ac_im_libdir; break 41226 fi 41227 done 41228 # Screen out bogus values from the imake configuration. They are 41229 # bogus both because they are the default anyway, and because 41230 # using them would break gcc on systems where it needs fixed includes. 41231 case $ac_im_incroot in 41232 /usr/include) ac_x_includes= ;; 41233 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 41234 esac 41235 case $ac_im_usrlibdir in 41236 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 41237 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 41238 esac 41239 fi 41240 cd .. 41241 rm -f -r conftest.dir 41242 fi 41243 41244 # Standard set of common directories for X headers. 41245 # Check X11 before X11Rn because it is often a symlink to the current release. 41246 ac_x_header_dirs=' 41247 /usr/X11/include 41248 /usr/X11R7/include 41249 /usr/X11R6/include 41250 /usr/X11R5/include 41251 /usr/X11R4/include 41252 41253 /usr/include/X11 41254 /usr/include/X11R7 41255 /usr/include/X11R6 41256 /usr/include/X11R5 41257 /usr/include/X11R4 41258 41259 /usr/local/X11/include 41260 /usr/local/X11R7/include 41261 /usr/local/X11R6/include 41262 /usr/local/X11R5/include 41263 /usr/local/X11R4/include 41264 41265 /usr/local/include/X11 41266 /usr/local/include/X11R7 41267 /usr/local/include/X11R6 41268 /usr/local/include/X11R5 41269 /usr/local/include/X11R4 41270 41271 /usr/X386/include 41272 /usr/x386/include 41273 /usr/XFree86/include/X11 41274 41275 /usr/include 41276 /usr/local/include 41277 /usr/unsupported/include 41278 /usr/athena/include 41279 /usr/local/x11r5/include 41280 /usr/lpp/Xamples/include 41281 41282 /usr/openwin/include 41283 /usr/openwin/share/include' 41284 41285 if test "$ac_x_includes" = no; then 41286 # Guess where to find include files, by looking for Xlib.h. 41287 # First, try using that file with no special directory specified. 41288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41289 /* end confdefs.h. */ 41290 #include <X11/Xlib.h> 41291 _ACEOF 41292 if ac_fn_cxx_try_cpp "$LINENO"; then : 41293 # We can compile using X headers with no special include directory. 41294 ac_x_includes= 41295 else 41296 for ac_dir in $ac_x_header_dirs; do 41297 if test -r "$ac_dir/X11/Xlib.h"; then 41298 ac_x_includes=$ac_dir 41299 break 41300 fi 41301 done 41302 fi 41303 rm -f conftest.err conftest.i conftest.$ac_ext 41304 fi # $ac_x_includes = no 41305 41306 if test "$ac_x_libraries" = no; then 41307 # Check for the libraries. 41308 # See if we find them without any special options. 41309 # Don't add to $LIBS permanently. 41310 ac_save_LIBS=$LIBS 41311 LIBS="-lX11 $LIBS" 41312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41313 /* end confdefs.h. */ 41314 #include <X11/Xlib.h> 41315 int 41316 main () 41317 { 41318 XrmInitialize () 41319 ; 41320 return 0; 41321 } 41322 _ACEOF 41323 if ac_fn_cxx_try_link "$LINENO"; then : 41324 LIBS=$ac_save_LIBS 41325 # We can link X programs with no special library path. 41326 ac_x_libraries= 41327 else 41328 LIBS=$ac_save_LIBS 41329 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 41330 do 41331 # Don't even attempt the hair of trying to link an X program! 41332 for ac_extension in a so sl dylib la dll; do 41333 if test -r "$ac_dir/libX11.$ac_extension"; then 41334 ac_x_libraries=$ac_dir 41335 break 2 41336 fi 41337 done 41338 done 41339 fi 41340 rm -f core conftest.err conftest.$ac_objext \ 41341 conftest$ac_exeext conftest.$ac_ext 41342 fi # $ac_x_libraries = no 41343 41344 case $ac_x_includes,$ac_x_libraries in #( 41345 no,* | *,no | *\'*) 41346 # Didn't find X, or a directory has "'" in its name. 41347 ac_cv_have_x="have_x=no";; #( 41348 *) 41349 # Record where we found X for the cache. 41350 ac_cv_have_x="have_x=yes\ 41351 ac_x_includes='$ac_x_includes'\ 41352 ac_x_libraries='$ac_x_libraries'" 41353 esac 41354 fi 41355 ;; #( 41356 *) have_x=yes;; 41357 esac 41358 eval "$ac_cv_have_x" 41359 fi # $with_x != no 41360 41361 if test "$have_x" != yes; then 41362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 41363 $as_echo "$have_x" >&6; } 41364 no_x=yes 41365 else 41366 # If each of the values was on the command line, it overrides each guess. 41367 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 41368 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 41369 # Update the cache value to reflect the command line values. 41370 ac_cv_have_x="have_x=yes\ 41371 ac_x_includes='$x_includes'\ 41372 ac_x_libraries='$x_libraries'" 41373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 41374 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 41375 fi 41376 41377 if test "$no_x" = yes; then 41378 # Not all programs may use this symbol, but it does not hurt to define it. 41379 41380 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 41381 41382 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 41383 else 41384 if test -n "$x_includes"; then 41385 X_CFLAGS="$X_CFLAGS -I$x_includes" 41386 fi 41387 41388 # It would also be nice to do this for all -L options, not just this one. 41389 if test -n "$x_libraries"; then 41390 X_LIBS="$X_LIBS -L$x_libraries" 41391 # For Solaris; some versions of Sun CC require a space after -R and 41392 # others require no space. Words are not sufficient . . . . 41393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 41394 $as_echo_n "checking whether -R must be followed by a space... " >&6; } 41395 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 41396 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 41397 ac_cxx_werror_flag=yes 41398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41399 /* end confdefs.h. */ 41400 41401 int 41402 main () 41403 { 41404 41405 ; 41406 return 0; 41407 } 41408 _ACEOF 41409 if ac_fn_cxx_try_link "$LINENO"; then : 41410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 41411 $as_echo "no" >&6; } 41412 X_LIBS="$X_LIBS -R$x_libraries" 41413 else 41414 LIBS="$ac_xsave_LIBS -R $x_libraries" 41415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41416 /* end confdefs.h. */ 41417 41418 int 41419 main () 41420 { 41421 41422 ; 41423 return 0; 41424 } 41425 _ACEOF 41426 if ac_fn_cxx_try_link "$LINENO"; then : 41427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 41428 $as_echo "yes" >&6; } 41429 X_LIBS="$X_LIBS -R $x_libraries" 41430 else 41431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 41432 $as_echo "neither works" >&6; } 41433 fi 41434 rm -f core conftest.err conftest.$ac_objext \ 41435 conftest$ac_exeext conftest.$ac_ext 41436 fi 41437 rm -f core conftest.err conftest.$ac_objext \ 41438 conftest$ac_exeext conftest.$ac_ext 41439 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 41440 LIBS=$ac_xsave_LIBS 41441 fi 41442 41443 # Check for system-dependent libraries X programs must link with. 41444 # Do this before checking for the system-independent R6 libraries 41445 # (-lICE), since we may need -lsocket or whatever for X linking. 41446 41447 if test "$ISC" = yes; then 41448 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 41449 else 41450 # Martyn Johnson says this is needed for Ultrix, if the X 41451 # libraries were built with DECnet support. And Karl Berry says 41452 # the Alpha needs dnet_stub (dnet does not exist). 41453 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 41454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41455 /* end confdefs.h. */ 41456 41457 /* Override any GCC internal prototype to avoid an error. 41458 Use char because int might match the return type of a GCC 41459 builtin and then its argument prototype would still apply. */ 41460 #ifdef __cplusplus 41461 extern "C" 41462 #endif 41463 char XOpenDisplay (); 41464 int 41465 main () 41466 { 41467 return XOpenDisplay (); 41468 ; 41469 return 0; 41470 } 41471 _ACEOF 41472 if ac_fn_cxx_try_link "$LINENO"; then : 41473 41474 else 41475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 41476 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 41477 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 41478 $as_echo_n "(cached) " >&6 41479 else 41480 ac_check_lib_save_LIBS=$LIBS 41481 LIBS="-ldnet $LIBS" 41482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41483 /* end confdefs.h. */ 41484 41485 /* Override any GCC internal prototype to avoid an error. 41486 Use char because int might match the return type of a GCC 41487 builtin and then its argument prototype would still apply. */ 41488 #ifdef __cplusplus 41489 extern "C" 41490 #endif 41491 char dnet_ntoa (); 41492 int 41493 main () 41494 { 41495 return dnet_ntoa (); 41496 ; 41497 return 0; 41498 } 41499 _ACEOF 41500 if ac_fn_cxx_try_link "$LINENO"; then : 41501 ac_cv_lib_dnet_dnet_ntoa=yes 41502 else 41503 ac_cv_lib_dnet_dnet_ntoa=no 41504 fi 41505 rm -f core conftest.err conftest.$ac_objext \ 41506 conftest$ac_exeext conftest.$ac_ext 41507 LIBS=$ac_check_lib_save_LIBS 41508 fi 41509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 41510 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 41511 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 41512 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 41513 fi 41514 41515 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 41516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 41517 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 41518 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 41519 $as_echo_n "(cached) " >&6 41520 else 41521 ac_check_lib_save_LIBS=$LIBS 41522 LIBS="-ldnet_stub $LIBS" 41523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41524 /* end confdefs.h. */ 41525 41526 /* Override any GCC internal prototype to avoid an error. 41527 Use char because int might match the return type of a GCC 41528 builtin and then its argument prototype would still apply. */ 41529 #ifdef __cplusplus 41530 extern "C" 41531 #endif 41532 char dnet_ntoa (); 41533 int 41534 main () 41535 { 41536 return dnet_ntoa (); 41537 ; 41538 return 0; 41539 } 41540 _ACEOF 41541 if ac_fn_cxx_try_link "$LINENO"; then : 41542 ac_cv_lib_dnet_stub_dnet_ntoa=yes 41543 else 41544 ac_cv_lib_dnet_stub_dnet_ntoa=no 41545 fi 41546 rm -f core conftest.err conftest.$ac_objext \ 41547 conftest$ac_exeext conftest.$ac_ext 41548 LIBS=$ac_check_lib_save_LIBS 41549 fi 41550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 41551 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 41552 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 41553 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 41554 fi 41555 41556 fi 41557 fi 41558 rm -f core conftest.err conftest.$ac_objext \ 41559 conftest$ac_exeext conftest.$ac_ext 41560 LIBS="$ac_xsave_LIBS" 41561 41562 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 41563 # to get the SysV transport functions. 41564 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 41565 # needs -lnsl. 41566 # The nsl library prevents programs from opening the X display 41567 # on Irix 5.2, according to T.E. Dickey. 41568 # The functions gethostbyname, getservbyname, and inet_addr are 41569 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 41570 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 41571 if test "x$ac_cv_func_gethostbyname" = xyes; then : 41572 41573 fi 41574 41575 if test $ac_cv_func_gethostbyname = no; then 41576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 41577 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 41578 if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 41579 $as_echo_n "(cached) " >&6 41580 else 41581 ac_check_lib_save_LIBS=$LIBS 41582 LIBS="-lnsl $LIBS" 41583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41584 /* end confdefs.h. */ 41585 41586 /* Override any GCC internal prototype to avoid an error. 41587 Use char because int might match the return type of a GCC 41588 builtin and then its argument prototype would still apply. */ 41589 #ifdef __cplusplus 41590 extern "C" 41591 #endif 41592 char gethostbyname (); 41593 int 41594 main () 41595 { 41596 return gethostbyname (); 41597 ; 41598 return 0; 41599 } 41600 _ACEOF 41601 if ac_fn_cxx_try_link "$LINENO"; then : 41602 ac_cv_lib_nsl_gethostbyname=yes 41603 else 41604 ac_cv_lib_nsl_gethostbyname=no 41605 fi 41606 rm -f core conftest.err conftest.$ac_objext \ 41607 conftest$ac_exeext conftest.$ac_ext 41608 LIBS=$ac_check_lib_save_LIBS 41609 fi 41610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 41611 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 41612 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 41613 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 41614 fi 41615 41616 if test $ac_cv_lib_nsl_gethostbyname = no; then 41617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 41618 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 41619 if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 41620 $as_echo_n "(cached) " >&6 41621 else 41622 ac_check_lib_save_LIBS=$LIBS 41623 LIBS="-lbsd $LIBS" 41624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41625 /* end confdefs.h. */ 41626 41627 /* Override any GCC internal prototype to avoid an error. 41628 Use char because int might match the return type of a GCC 41629 builtin and then its argument prototype would still apply. */ 41630 #ifdef __cplusplus 41631 extern "C" 41632 #endif 41633 char gethostbyname (); 41634 int 41635 main () 41636 { 41637 return gethostbyname (); 41638 ; 41639 return 0; 41640 } 41641 _ACEOF 41642 if ac_fn_cxx_try_link "$LINENO"; then : 41643 ac_cv_lib_bsd_gethostbyname=yes 41644 else 41645 ac_cv_lib_bsd_gethostbyname=no 41646 fi 41647 rm -f core conftest.err conftest.$ac_objext \ 41648 conftest$ac_exeext conftest.$ac_ext 41649 LIBS=$ac_check_lib_save_LIBS 41650 fi 41651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 41652 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 41653 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 41654 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 41655 fi 41656 41657 fi 41658 fi 41659 41660 # lieder@skyler.mavd.honeywell.com says without -lsocket, 41661 # socket/setsockopt and other routines are undefined under SCO ODT 41662 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 41663 # on later versions), says Simon Leinen: it contains gethostby* 41664 # variants that don't use the name server (or something). -lsocket 41665 # must be given before -lnsl if both are needed. We assume that 41666 # if connect needs -lnsl, so does gethostbyname. 41667 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 41668 if test "x$ac_cv_func_connect" = xyes; then : 41669 41670 fi 41671 41672 if test $ac_cv_func_connect = no; then 41673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 41674 $as_echo_n "checking for connect in -lsocket... " >&6; } 41675 if ${ac_cv_lib_socket_connect+:} false; then : 41676 $as_echo_n "(cached) " >&6 41677 else 41678 ac_check_lib_save_LIBS=$LIBS 41679 LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 41680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41681 /* end confdefs.h. */ 41682 41683 /* Override any GCC internal prototype to avoid an error. 41684 Use char because int might match the return type of a GCC 41685 builtin and then its argument prototype would still apply. */ 41686 #ifdef __cplusplus 41687 extern "C" 41688 #endif 41689 char connect (); 41690 int 41691 main () 41692 { 41693 return connect (); 41694 ; 41695 return 0; 41696 } 41697 _ACEOF 41698 if ac_fn_cxx_try_link "$LINENO"; then : 41699 ac_cv_lib_socket_connect=yes 41700 else 41701 ac_cv_lib_socket_connect=no 41702 fi 41703 rm -f core conftest.err conftest.$ac_objext \ 41704 conftest$ac_exeext conftest.$ac_ext 41705 LIBS=$ac_check_lib_save_LIBS 41706 fi 41707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 41708 $as_echo "$ac_cv_lib_socket_connect" >&6; } 41709 if test "x$ac_cv_lib_socket_connect" = xyes; then : 41710 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 41711 fi 41712 41713 fi 41714 41715 # Guillermo Gomez says -lposix is necessary on A/UX. 41716 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 41717 if test "x$ac_cv_func_remove" = xyes; then : 41718 41719 fi 41720 41721 if test $ac_cv_func_remove = no; then 41722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 41723 $as_echo_n "checking for remove in -lposix... " >&6; } 41724 if ${ac_cv_lib_posix_remove+:} false; then : 41725 $as_echo_n "(cached) " >&6 41726 else 41727 ac_check_lib_save_LIBS=$LIBS 41728 LIBS="-lposix $LIBS" 41729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41730 /* end confdefs.h. */ 41731 41732 /* Override any GCC internal prototype to avoid an error. 41733 Use char because int might match the return type of a GCC 41734 builtin and then its argument prototype would still apply. */ 41735 #ifdef __cplusplus 41736 extern "C" 41737 #endif 41738 char remove (); 41739 int 41740 main () 41741 { 41742 return remove (); 41743 ; 41744 return 0; 41745 } 41746 _ACEOF 41747 if ac_fn_cxx_try_link "$LINENO"; then : 41748 ac_cv_lib_posix_remove=yes 41749 else 41750 ac_cv_lib_posix_remove=no 41751 fi 41752 rm -f core conftest.err conftest.$ac_objext \ 41753 conftest$ac_exeext conftest.$ac_ext 41754 LIBS=$ac_check_lib_save_LIBS 41755 fi 41756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 41757 $as_echo "$ac_cv_lib_posix_remove" >&6; } 41758 if test "x$ac_cv_lib_posix_remove" = xyes; then : 41759 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 41760 fi 41761 41762 fi 41763 41764 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 41765 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 41766 if test "x$ac_cv_func_shmat" = xyes; then : 41767 41768 fi 41769 41770 if test $ac_cv_func_shmat = no; then 41771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 41772 $as_echo_n "checking for shmat in -lipc... " >&6; } 41773 if ${ac_cv_lib_ipc_shmat+:} false; then : 41774 $as_echo_n "(cached) " >&6 41775 else 41776 ac_check_lib_save_LIBS=$LIBS 41777 LIBS="-lipc $LIBS" 41778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41779 /* end confdefs.h. */ 41780 41781 /* Override any GCC internal prototype to avoid an error. 41782 Use char because int might match the return type of a GCC 41783 builtin and then its argument prototype would still apply. */ 41784 #ifdef __cplusplus 41785 extern "C" 41786 #endif 41787 char shmat (); 41788 int 41789 main () 41790 { 41791 return shmat (); 41792 ; 41793 return 0; 41794 } 41795 _ACEOF 41796 if ac_fn_cxx_try_link "$LINENO"; then : 41797 ac_cv_lib_ipc_shmat=yes 41798 else 41799 ac_cv_lib_ipc_shmat=no 41800 fi 41801 rm -f core conftest.err conftest.$ac_objext \ 41802 conftest$ac_exeext conftest.$ac_ext 41803 LIBS=$ac_check_lib_save_LIBS 41804 fi 41805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 41806 $as_echo "$ac_cv_lib_ipc_shmat" >&6; } 41807 if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 41808 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 41809 fi 41810 41811 fi 41812 fi 41813 41814 # Check for libraries that X11R6 Xt/Xaw programs need. 41815 ac_save_LDFLAGS=$LDFLAGS 41816 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 41817 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 41818 # check for ICE first), but we must link in the order -lSM -lICE or 41819 # we get undefined symbols. So assume we have SM if we have ICE. 41820 # These have to be linked with before -lX11, unlike the other 41821 # libraries we check for below, so use a different variable. 41822 # John Interrante, Karl Berry 41823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 41824 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 41825 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 41826 $as_echo_n "(cached) " >&6 41827 else 41828 ac_check_lib_save_LIBS=$LIBS 41829 LIBS="-lICE $X_EXTRA_LIBS $LIBS" 41830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 41831 /* end confdefs.h. */ 41832 41833 /* Override any GCC internal prototype to avoid an error. 41834 Use char because int might match the return type of a GCC 41835 builtin and then its argument prototype would still apply. */ 41836 #ifdef __cplusplus 41837 extern "C" 41838 #endif 41839 char IceConnectionNumber (); 41840 int 41841 main () 41842 { 41843 return IceConnectionNumber (); 41844 ; 41845 return 0; 41846 } 41847 _ACEOF 41848 if ac_fn_cxx_try_link "$LINENO"; then : 41849 ac_cv_lib_ICE_IceConnectionNumber=yes 41850 else 41851 ac_cv_lib_ICE_IceConnectionNumber=no 41852 fi 41853 rm -f core conftest.err conftest.$ac_objext \ 41854 conftest$ac_exeext conftest.$ac_ext 41855 LIBS=$ac_check_lib_save_LIBS 41856 fi 41857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 41858 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 41859 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 41860 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 41861 fi 41862 41863 LDFLAGS=$ac_save_LDFLAGS 41864 41865 fi 41866 41867 41868 # AC_PATH_XTRA creates X_LIBS and sometimes adds -R flags. When cross compiling 41869 # this doesn't make sense so we remove it. 41870 if test "x$COMPILE_TYPE" = xcross; then 41871 X_LIBS=`$ECHO $X_LIBS | $SED 's/-R \{0,1\}[^ ]*//g'` 41872 fi 41873 41874 if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then 41875 41876 # Print a helpful message on how to acquire the necessary build dependency. 41877 # x11 is the help tag: freetype, cups, pulse, alsa etc 41878 MISSING_DEPENDENCY=x11 41879 41880 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41881 cygwin_help $MISSING_DEPENDENCY 41882 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41883 msys_help $MISSING_DEPENDENCY 41884 else 41885 PKGHANDLER_COMMAND= 41886 41887 case $PKGHANDLER in 41888 apt-get) 41889 apt_help $MISSING_DEPENDENCY ;; 41890 yum) 41891 yum_help $MISSING_DEPENDENCY ;; 41892 port) 41893 port_help $MISSING_DEPENDENCY ;; 41894 pkgutil) 41895 pkgutil_help $MISSING_DEPENDENCY ;; 41896 pkgadd) 41897 pkgadd_help $MISSING_DEPENDENCY ;; 41898 esac 41899 41900 if test "x$PKGHANDLER_COMMAND" != x; then 41901 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 41902 fi 41903 fi 41904 41905 as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5 41906 fi 41907 41908 if test "x$OPENJDK_TARGET_OS" = xsolaris; then 41909 OPENWIN_HOME="/usr/openwin" 41910 fi 41911 41912 41913 41914 # 41915 # Weird Sol10 something check...TODO change to try compile 41916 # 41917 if test "x${OPENJDK_TARGET_OS}" = xsolaris; then 41918 if test "`uname -r`" = "5.10"; then 41919 if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then 41920 X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS" 41921 fi 41922 fi 41923 fi 41924 41925 ac_ext=c 41926 ac_cpp='$CPP $CPPFLAGS' 41927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41929 ac_compiler_gnu=$ac_cv_c_compiler_gnu 41930 41931 OLD_CFLAGS="$CFLAGS" 41932 CFLAGS="$CFLAGS $X_CFLAGS" 41933 41934 # Need to include Xlib.h and Xutil.h to avoid "present but cannot be compiled" warnings on Solaris 10 41935 for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h X11/Intrinsic.h 41936 do : 41937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 41938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" " 41939 # include <X11/Xlib.h> 41940 # include <X11/Xutil.h> 41941 41942 41943 " 41944 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 41945 cat >>confdefs.h <<_ACEOF 41946 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 41947 _ACEOF 41948 X11_A_OK=yes 41949 else 41950 X11_A_OK=no; break 41951 fi 41952 41953 done 41954 41955 41956 CFLAGS="$OLD_CFLAGS" 41957 ac_ext=cpp 41958 ac_cpp='$CXXCPP $CPPFLAGS' 41959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 41960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 41961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 41962 41963 41964 if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then 41965 41966 # Print a helpful message on how to acquire the necessary build dependency. 41967 # x11 is the help tag: freetype, cups, pulse, alsa etc 41968 MISSING_DEPENDENCY=x11 41969 41970 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 41971 cygwin_help $MISSING_DEPENDENCY 41972 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 41973 msys_help $MISSING_DEPENDENCY 41974 else 41975 PKGHANDLER_COMMAND= 41976 41977 case $PKGHANDLER in 41978 apt-get) 41979 apt_help $MISSING_DEPENDENCY ;; 41980 yum) 41981 yum_help $MISSING_DEPENDENCY ;; 41982 port) 41983 port_help $MISSING_DEPENDENCY ;; 41984 pkgutil) 41985 pkgutil_help $MISSING_DEPENDENCY ;; 41986 pkgadd) 41987 pkgadd_help $MISSING_DEPENDENCY ;; 41988 esac 41989 41990 if test "x$PKGHANDLER_COMMAND" != x; then 41991 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 41992 fi 41993 fi 41994 41995 as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h Intrinsic.h). $HELP_MSG" "$LINENO" 5 41996 fi 41997 41998 41999 42000 42001 42002 42003 ############################################################################### 42004 # 42005 # The common unix printing system cups is used to print from java. 42006 # 42007 42008 # Check whether --with-cups was given. 42009 if test "${with_cups+set}" = set; then : 42010 withval=$with_cups; 42011 fi 42012 42013 42014 # Check whether --with-cups-include was given. 42015 if test "${with_cups_include+set}" = set; then : 42016 withval=$with_cups_include; 42017 fi 42018 42019 42020 if test "x$CUPS_NOT_NEEDED" = xyes; then 42021 if test "x${with_cups}" != x || test "x${with_cups_include}" != x; then 42022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5 42023 $as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;} 42024 fi 42025 CUPS_CFLAGS= 42026 else 42027 CUPS_FOUND=no 42028 42029 if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno; then 42030 as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5 42031 fi 42032 42033 if test "x${with_cups}" != x; then 42034 CUPS_CFLAGS="-I${with_cups}/include" 42035 CUPS_FOUND=yes 42036 fi 42037 if test "x${with_cups_include}" != x; then 42038 CUPS_CFLAGS="-I${with_cups_include}" 42039 CUPS_FOUND=yes 42040 fi 42041 if test "x$CUPS_FOUND" = xno; then 42042 42043 42044 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 42045 # Source the builddeps file again, to make sure it uses the latest variables! 42046 . $builddepsfile 42047 # Look for a target and build machine specific resource! 42048 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 42049 if test "x$resource" = x; then 42050 # Ok, lets instead look for a target specific resource 42051 eval resource=\${builddep_cups_TARGET_${rewritten_target_var}} 42052 fi 42053 if test "x$resource" = x; then 42054 # Ok, lets instead look for a build specific resource 42055 eval resource=\${builddep_cups_BUILD_${rewritten_build_var}} 42056 fi 42057 if test "x$resource" = x; then 42058 # Ok, lets instead look for a generic resource 42059 # (The cups comes from M4 and not the shell, thus no need for eval here.) 42060 resource=${builddep_cups} 42061 fi 42062 if test "x$resource" != x; then 42063 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5 42064 $as_echo "$as_me: Using builddeps $resource for cups" >&6;} 42065 # If the resource in the builddeps.conf file is an existing directory, 42066 # for example /java/linux/cups 42067 if test -d ${resource}; then 42068 depdir=${resource} 42069 else 42070 42071 # cups is for example mymodule 42072 # $resource is for example libs/general/libmymod_1_2_3.zip 42073 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 42074 # $with_builddeps_dir is for example /localhome/builddeps 42075 # depdir is the name of the variable into which we store the depdir, eg MYMOD 42076 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 42077 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 42078 filename=`basename $resource` 42079 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 42080 filebase=${filename%%.*} 42081 extension=${filename#*.} 42082 installdir=$with_builddeps_dir/$filebase 42083 if test ! -f $installdir/$filename.unpacked; then 42084 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5 42085 $as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;} 42086 if test ! -d $installdir; then 42087 mkdir -p $installdir 42088 fi 42089 if test ! -d $installdir; then 42090 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 42091 fi 42092 tmpfile=`mktemp $installdir/cups.XXXXXXXXX` 42093 touch $tmpfile 42094 if test ! -f $tmpfile; then 42095 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 42096 fi 42097 42098 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 42099 # $tmpfile is the local file name for the downloaded file. 42100 VALID_TOOL=no 42101 if test "x$BDEPS_FTP" = xwget; then 42102 VALID_TOOL=yes 42103 wget -O $tmpfile $with_builddeps_server/$resource 42104 fi 42105 if test "x$BDEPS_FTP" = xlftp; then 42106 VALID_TOOL=yes 42107 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 42108 fi 42109 if test "x$BDEPS_FTP" = xftp; then 42110 VALID_TOOL=yes 42111 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 42112 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 42113 FTPUSERPWD=${FTPSERVER%%@*} 42114 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 42115 FTPUSER=${userpwd%%:*} 42116 FTPPWD=${userpwd#*@} 42117 FTPSERVER=${FTPSERVER#*@} 42118 else 42119 FTPUSER=ftp 42120 FTPPWD=ftp 42121 fi 42122 # the "pass" command does not work on some 42123 # ftp clients (read ftp.exe) but if it works, 42124 # passive mode is better! 42125 ( \ 42126 echo "user $FTPUSER $FTPPWD" ; \ 42127 echo "pass" ; \ 42128 echo "bin" ; \ 42129 echo "get $FTPPATH $tmpfile" ; \ 42130 ) | ftp -in $FTPSERVER 42131 fi 42132 if test "x$VALID_TOOL" != xyes; then 42133 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 42134 fi 42135 42136 mv $tmpfile $installdir/$filename 42137 if test ! -s $installdir/$filename; then 42138 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 42139 fi 42140 case "$extension" in 42141 zip) echo "Unzipping $installdir/$filename..." 42142 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 42143 ;; 42144 tar.gz) echo "Untaring $installdir/$filename..." 42145 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42146 ;; 42147 tgz) echo "Untaring $installdir/$filename..." 42148 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42149 ;; 42150 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 42151 ;; 42152 esac 42153 fi 42154 if test -f $installdir/$filename.unpacked; then 42155 depdir=$installdir 42156 fi 42157 42158 fi 42159 # Source the builddeps file again, because in the previous command, the depdir 42160 # was updated to point at the current build dependency install directory. 42161 . $builddepsfile 42162 # Now extract variables from the builddeps.conf files. 42163 theroot=${builddep_cups_ROOT} 42164 thecflags=${builddep_cups_CFLAGS} 42165 thelibs=${builddep_cups_LIBS} 42166 if test "x$depdir" = x; then 42167 as_fn_error $? "Could not download build dependency cups" "$LINENO" 5 42168 fi 42169 CUPS=$depdir 42170 if test "x$theroot" != x; then 42171 CUPS="$theroot" 42172 fi 42173 if test "x$thecflags" != x; then 42174 CUPS_CFLAGS="$thecflags" 42175 fi 42176 if test "x$thelibs" != x; then 42177 CUPS_LIBS="$thelibs" 42178 fi 42179 CUPS_FOUND=yes 42180 42181 fi 42182 42183 fi 42184 42185 fi 42186 if test "x$CUPS_FOUND" = xno; then 42187 # Are the cups headers installed in the default /usr/include location? 42188 for ac_header in cups/cups.h cups/ppd.h 42189 do : 42190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 42191 ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 42192 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 42193 cat >>confdefs.h <<_ACEOF 42194 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 42195 _ACEOF 42196 42197 CUPS_FOUND=yes 42198 CUPS_CFLAGS= 42199 DEFAULT_CUPS=yes 42200 42201 42202 fi 42203 42204 done 42205 42206 fi 42207 if test "x$CUPS_FOUND" = xno; then 42208 # Getting nervous now? Lets poke around for standard Solaris third-party 42209 # package installation locations. 42210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers" >&5 42211 $as_echo_n "checking for cups headers... " >&6; } 42212 if test -s /opt/sfw/cups/include/cups/cups.h; then 42213 # An SFW package seems to be installed! 42214 CUPS_FOUND=yes 42215 CUPS_CFLAGS="-I/opt/sfw/cups/include" 42216 elif test -s /opt/csw/include/cups/cups.h; then 42217 # A CSW package seems to be installed! 42218 CUPS_FOUND=yes 42219 CUPS_CFLAGS="-I/opt/csw/include" 42220 fi 42221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5 42222 $as_echo "$CUPS_FOUND" >&6; } 42223 fi 42224 if test "x$CUPS_FOUND" = xno; then 42225 42226 # Print a helpful message on how to acquire the necessary build dependency. 42227 # cups is the help tag: freetype, cups, pulse, alsa etc 42228 MISSING_DEPENDENCY=cups 42229 42230 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42231 cygwin_help $MISSING_DEPENDENCY 42232 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42233 msys_help $MISSING_DEPENDENCY 42234 else 42235 PKGHANDLER_COMMAND= 42236 42237 case $PKGHANDLER in 42238 apt-get) 42239 apt_help $MISSING_DEPENDENCY ;; 42240 yum) 42241 yum_help $MISSING_DEPENDENCY ;; 42242 port) 42243 port_help $MISSING_DEPENDENCY ;; 42244 pkgutil) 42245 pkgutil_help $MISSING_DEPENDENCY ;; 42246 pkgadd) 42247 pkgadd_help $MISSING_DEPENDENCY ;; 42248 esac 42249 42250 if test "x$PKGHANDLER_COMMAND" != x; then 42251 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 42252 fi 42253 fi 42254 42255 as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5 42256 fi 42257 fi 42258 42259 42260 42261 42262 42263 42264 ############################################################################### 42265 # 42266 # The ubiquitous freetype library is used to render fonts. 42267 # 42268 42269 # Check whether --with-freetype was given. 42270 if test "${with_freetype+set}" = set; then : 42271 withval=$with_freetype; 42272 fi 42273 42274 42275 # Check whether --with-freetype-include was given. 42276 if test "${with_freetype_include+set}" = set; then : 42277 withval=$with_freetype_include; 42278 fi 42279 42280 42281 # Check whether --with-freetype-lib was given. 42282 if test "${with_freetype_lib+set}" = set; then : 42283 withval=$with_freetype_lib; 42284 fi 42285 42286 # Check whether --enable-freetype-bundling was given. 42287 if test "${enable_freetype_bundling+set}" = set; then : 42288 enableval=$enable_freetype_bundling; 42289 fi 42290 42291 42292 FREETYPE_CFLAGS= 42293 FREETYPE_LIBS= 42294 FREETYPE_BUNDLE_LIB_PATH= 42295 42296 if test "x$FREETYPE_NOT_NEEDED" = xyes; then 42297 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 42298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5 42299 $as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;} 42300 fi 42301 if test "x$enable_freetype_bundling" != x; then 42302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&5 42303 $as_echo "$as_me: WARNING: freetype not used, so --enable-freetype-bundling is ignored" >&2;} 42304 fi 42305 else 42306 # freetype is needed to build; go get it! 42307 42308 BUNDLE_FREETYPE="$enable_freetype_bundling" 42309 42310 if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then 42311 # User has specified settings 42312 42313 if test "x$BUNDLE_FREETYPE" = x; then 42314 # If not specified, default is to bundle freetype 42315 BUNDLE_FREETYPE=yes 42316 fi 42317 42318 if test "x$with_freetype" != x; then 42319 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype/include" 42320 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype/lib" 42321 fi 42322 42323 # Allow --with-freetype-lib and --with-freetype-include to override 42324 if test "x$with_freetype_include" != x; then 42325 POTENTIAL_FREETYPE_INCLUDE_PATH="$with_freetype_include" 42326 fi 42327 if test "x$with_freetype_lib" != x; then 42328 POTENTIAL_FREETYPE_LIB_PATH="$with_freetype_lib" 42329 fi 42330 42331 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" != x && test "x$POTENTIAL_FREETYPE_LIB_PATH" != x; then 42332 # Okay, we got it. Check that it works. 42333 42334 POTENTIAL_FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42335 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 42336 METHOD="--with-freetype" 42337 42338 # First check if the files exists. 42339 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 42340 # We found an arbitrary include file. That's a good sign. 42341 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 42342 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 42343 FOUND_FREETYPE=yes 42344 42345 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 42346 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 42347 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 42348 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 42349 FOUND_FREETYPE=no 42350 else 42351 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42352 # On Windows, we will need both .lib and .dll file. 42353 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 42354 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 42355 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 42356 FOUND_FREETYPE=no 42357 fi 42358 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 42359 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 42360 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 42361 fi 42362 fi 42363 fi 42364 42365 if test "x$FOUND_FREETYPE" = xyes; then 42366 42367 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42368 42369 # Input might be given as Windows format, start by converting to 42370 # unix format. 42371 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42372 new_path=`$CYGPATH -u "$path"` 42373 42374 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42375 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42376 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42377 # "foo.exe" is OK but "foo" is an error. 42378 # 42379 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42380 # It is also a way to make sure we got the proper file name for the real test later on. 42381 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42382 if test "x$test_shortpath" = x; then 42383 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 42384 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 42385 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 42386 fi 42387 42388 # Call helper function which possibly converts this using DOS-style short mode. 42389 # If so, the updated path is stored in $new_path. 42390 42391 input_path="$new_path" 42392 # Check if we need to convert this using DOS-style short mode. If the path 42393 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42394 # take no chances and rewrite it. 42395 # Note: m4 eats our [], so we need to use [ and ] instead. 42396 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42397 if test "x$has_forbidden_chars" != x; then 42398 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42399 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42400 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42401 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42402 # Going to short mode and back again did indeed matter. Since short mode is 42403 # case insensitive, let's make it lowercase to improve readability. 42404 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42405 # Now convert it back to Unix-stile (cygpath) 42406 input_path=`$CYGPATH -u "$shortmode_path"` 42407 new_path="$input_path" 42408 fi 42409 fi 42410 42411 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42412 if test "x$test_cygdrive_prefix" = x; then 42413 # As a simple fix, exclude /usr/bin since it's not a real path. 42414 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 42415 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42416 # a path prefixed by /cygdrive for fixpath to work. 42417 new_path="$CYGWIN_ROOT_PATH$input_path" 42418 fi 42419 fi 42420 42421 42422 if test "x$path" != "x$new_path"; then 42423 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 42424 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 42425 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 42426 fi 42427 42428 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42429 42430 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42431 has_colon=`$ECHO $path | $GREP ^.:` 42432 new_path="$path" 42433 if test "x$has_colon" = x; then 42434 # Not in mixed or Windows style, start by that. 42435 new_path=`cmd //c echo $path` 42436 fi 42437 42438 42439 input_path="$new_path" 42440 # Check if we need to convert this using DOS-style short mode. If the path 42441 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42442 # take no chances and rewrite it. 42443 # Note: m4 eats our [], so we need to use [ and ] instead. 42444 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42445 if test "x$has_forbidden_chars" != x; then 42446 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42447 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42448 fi 42449 42450 42451 windows_path="$new_path" 42452 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42453 unix_path=`$CYGPATH -u "$windows_path"` 42454 new_path="$unix_path" 42455 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42456 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42457 new_path="$unix_path" 42458 fi 42459 42460 if test "x$path" != "x$new_path"; then 42461 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 42462 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 42463 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 42464 fi 42465 42466 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42467 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42468 42469 else 42470 # We're on a posix platform. Hooray! :) 42471 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42472 has_space=`$ECHO "$path" | $GREP " "` 42473 if test "x$has_space" != x; then 42474 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 42475 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 42476 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 42477 fi 42478 42479 # Use eval to expand a potential ~ 42480 eval path="$path" 42481 if test ! -f "$path" && test ! -d "$path"; then 42482 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 42483 fi 42484 42485 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 42486 fi 42487 42488 42489 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42490 42491 # Input might be given as Windows format, start by converting to 42492 # unix format. 42493 path="$POTENTIAL_FREETYPE_LIB_PATH" 42494 new_path=`$CYGPATH -u "$path"` 42495 42496 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42497 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42498 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42499 # "foo.exe" is OK but "foo" is an error. 42500 # 42501 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42502 # It is also a way to make sure we got the proper file name for the real test later on. 42503 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42504 if test "x$test_shortpath" = x; then 42505 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 42506 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 42507 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 42508 fi 42509 42510 # Call helper function which possibly converts this using DOS-style short mode. 42511 # If so, the updated path is stored in $new_path. 42512 42513 input_path="$new_path" 42514 # Check if we need to convert this using DOS-style short mode. If the path 42515 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42516 # take no chances and rewrite it. 42517 # Note: m4 eats our [], so we need to use [ and ] instead. 42518 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42519 if test "x$has_forbidden_chars" != x; then 42520 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42521 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42522 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42523 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42524 # Going to short mode and back again did indeed matter. Since short mode is 42525 # case insensitive, let's make it lowercase to improve readability. 42526 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42527 # Now convert it back to Unix-stile (cygpath) 42528 input_path=`$CYGPATH -u "$shortmode_path"` 42529 new_path="$input_path" 42530 fi 42531 fi 42532 42533 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42534 if test "x$test_cygdrive_prefix" = x; then 42535 # As a simple fix, exclude /usr/bin since it's not a real path. 42536 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 42537 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 42538 # a path prefixed by /cygdrive for fixpath to work. 42539 new_path="$CYGWIN_ROOT_PATH$input_path" 42540 fi 42541 fi 42542 42543 42544 if test "x$path" != "x$new_path"; then 42545 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 42546 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 42547 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 42548 fi 42549 42550 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42551 42552 path="$POTENTIAL_FREETYPE_LIB_PATH" 42553 has_colon=`$ECHO $path | $GREP ^.:` 42554 new_path="$path" 42555 if test "x$has_colon" = x; then 42556 # Not in mixed or Windows style, start by that. 42557 new_path=`cmd //c echo $path` 42558 fi 42559 42560 42561 input_path="$new_path" 42562 # Check if we need to convert this using DOS-style short mode. If the path 42563 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42564 # take no chances and rewrite it. 42565 # Note: m4 eats our [], so we need to use [ and ] instead. 42566 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 42567 if test "x$has_forbidden_chars" != x; then 42568 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42569 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42570 fi 42571 42572 42573 windows_path="$new_path" 42574 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42575 unix_path=`$CYGPATH -u "$windows_path"` 42576 new_path="$unix_path" 42577 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42578 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42579 new_path="$unix_path" 42580 fi 42581 42582 if test "x$path" != "x$new_path"; then 42583 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 42584 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 42585 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 42586 fi 42587 42588 # Save the first 10 bytes of this path to the storage, so fixpath can work. 42589 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 42590 42591 else 42592 # We're on a posix platform. Hooray! :) 42593 path="$POTENTIAL_FREETYPE_LIB_PATH" 42594 has_space=`$ECHO "$path" | $GREP " "` 42595 if test "x$has_space" != x; then 42596 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 42597 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 42598 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 42599 fi 42600 42601 # Use eval to expand a potential ~ 42602 eval path="$path" 42603 if test ! -f "$path" && test ! -d "$path"; then 42604 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 42605 fi 42606 42607 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 42608 fi 42609 42610 42611 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 42613 $as_echo_n "checking for freetype includes... " >&6; } 42614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 42615 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 42616 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 42617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 42618 $as_echo_n "checking for freetype libraries... " >&6; } 42619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 42620 $as_echo "$FREETYPE_LIB_PATH" >&6; } 42621 fi 42622 42623 if test "x$FOUND_FREETYPE" != xyes; then 42624 as_fn_error $? "Can not find or use freetype at location given by --with-freetype" "$LINENO" 5 42625 fi 42626 else 42627 # User specified only one of lib or include. This is an error. 42628 if test "x$POTENTIAL_FREETYPE_INCLUDE_PATH" = x ; then 42629 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-lib but not --with-freetype-include" >&5 42630 $as_echo "$as_me: User specified --with-freetype-lib but not --with-freetype-include" >&6;} 42631 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 42632 else 42633 { $as_echo "$as_me:${as_lineno-$LINENO}: User specified --with-freetype-include but not --with-freetype-lib" >&5 42634 $as_echo "$as_me: User specified --with-freetype-include but not --with-freetype-lib" >&6;} 42635 as_fn_error $? "Need both freetype lib and include paths. Consider using --with-freetype instead." "$LINENO" 5 42636 fi 42637 fi 42638 else 42639 # User did not specify settings, but we need freetype. Try to locate it. 42640 42641 if test "x$BUNDLE_FREETYPE" = x; then 42642 # If not specified, default is to bundle freetype only on windows 42643 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42644 BUNDLE_FREETYPE=yes 42645 else 42646 BUNDLE_FREETYPE=no 42647 fi 42648 fi 42649 42650 if test "x$FOUND_FREETYPE" != xyes; then 42651 # Check builddeps 42652 42653 42654 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 42655 # Source the builddeps file again, to make sure it uses the latest variables! 42656 . $builddepsfile 42657 # Look for a target and build machine specific resource! 42658 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 42659 if test "x$resource" = x; then 42660 # Ok, lets instead look for a target specific resource 42661 eval resource=\${builddep_freetype2_TARGET_${rewritten_target_var}} 42662 fi 42663 if test "x$resource" = x; then 42664 # Ok, lets instead look for a build specific resource 42665 eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}} 42666 fi 42667 if test "x$resource" = x; then 42668 # Ok, lets instead look for a generic resource 42669 # (The freetype2 comes from M4 and not the shell, thus no need for eval here.) 42670 resource=${builddep_freetype2} 42671 fi 42672 if test "x$resource" != x; then 42673 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5 42674 $as_echo "$as_me: Using builddeps $resource for freetype2" >&6;} 42675 # If the resource in the builddeps.conf file is an existing directory, 42676 # for example /java/linux/cups 42677 if test -d ${resource}; then 42678 depdir=${resource} 42679 else 42680 42681 # freetype2 is for example mymodule 42682 # $resource is for example libs/general/libmymod_1_2_3.zip 42683 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 42684 # $with_builddeps_dir is for example /localhome/builddeps 42685 # depdir is the name of the variable into which we store the depdir, eg MYMOD 42686 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 42687 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 42688 filename=`basename $resource` 42689 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 42690 filebase=${filename%%.*} 42691 extension=${filename#*.} 42692 installdir=$with_builddeps_dir/$filebase 42693 if test ! -f $installdir/$filename.unpacked; then 42694 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5 42695 $as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;} 42696 if test ! -d $installdir; then 42697 mkdir -p $installdir 42698 fi 42699 if test ! -d $installdir; then 42700 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 42701 fi 42702 tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX` 42703 touch $tmpfile 42704 if test ! -f $tmpfile; then 42705 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 42706 fi 42707 42708 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 42709 # $tmpfile is the local file name for the downloaded file. 42710 VALID_TOOL=no 42711 if test "x$BDEPS_FTP" = xwget; then 42712 VALID_TOOL=yes 42713 wget -O $tmpfile $with_builddeps_server/$resource 42714 fi 42715 if test "x$BDEPS_FTP" = xlftp; then 42716 VALID_TOOL=yes 42717 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 42718 fi 42719 if test "x$BDEPS_FTP" = xftp; then 42720 VALID_TOOL=yes 42721 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 42722 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 42723 FTPUSERPWD=${FTPSERVER%%@*} 42724 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 42725 FTPUSER=${userpwd%%:*} 42726 FTPPWD=${userpwd#*@} 42727 FTPSERVER=${FTPSERVER#*@} 42728 else 42729 FTPUSER=ftp 42730 FTPPWD=ftp 42731 fi 42732 # the "pass" command does not work on some 42733 # ftp clients (read ftp.exe) but if it works, 42734 # passive mode is better! 42735 ( \ 42736 echo "user $FTPUSER $FTPPWD" ; \ 42737 echo "pass" ; \ 42738 echo "bin" ; \ 42739 echo "get $FTPPATH $tmpfile" ; \ 42740 ) | ftp -in $FTPSERVER 42741 fi 42742 if test "x$VALID_TOOL" != xyes; then 42743 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 42744 fi 42745 42746 mv $tmpfile $installdir/$filename 42747 if test ! -s $installdir/$filename; then 42748 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 42749 fi 42750 case "$extension" in 42751 zip) echo "Unzipping $installdir/$filename..." 42752 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 42753 ;; 42754 tar.gz) echo "Untaring $installdir/$filename..." 42755 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42756 ;; 42757 tgz) echo "Untaring $installdir/$filename..." 42758 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 42759 ;; 42760 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 42761 ;; 42762 esac 42763 fi 42764 if test -f $installdir/$filename.unpacked; then 42765 depdir=$installdir 42766 fi 42767 42768 fi 42769 # Source the builddeps file again, because in the previous command, the depdir 42770 # was updated to point at the current build dependency install directory. 42771 . $builddepsfile 42772 # Now extract variables from the builddeps.conf files. 42773 theroot=${builddep_freetype2_ROOT} 42774 thecflags=${builddep_freetype2_CFLAGS} 42775 thelibs=${builddep_freetype2_LIBS} 42776 if test "x$depdir" = x; then 42777 as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5 42778 fi 42779 FREETYPE=$depdir 42780 if test "x$theroot" != x; then 42781 FREETYPE="$theroot" 42782 fi 42783 if test "x$thecflags" != x; then 42784 FREETYPE_CFLAGS="$thecflags" 42785 fi 42786 if test "x$thelibs" != x; then 42787 FREETYPE_LIBS="$thelibs" 42788 fi 42789 FOUND_FREETYPE=yes 42790 else FOUND_FREETYPE=no 42791 42792 fi 42793 else FOUND_FREETYPE=no 42794 42795 fi 42796 42797 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 42798 if test "x$FOUND_FREETYPE" = xyes; then 42799 if test "x$BUNDLE_FREETYPE" = xyes; then 42800 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using builddeps, but ignoring since we can not bundle that" >&5 42801 $as_echo "$as_me: Found freetype using builddeps, but ignoring since we can not bundle that" >&6;} 42802 FOUND_FREETYPE=no 42803 else 42804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 42805 $as_echo_n "checking for freetype... " >&6; } 42806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using builddeps)" >&5 42807 $as_echo "yes (using builddeps)" >&6; } 42808 fi 42809 fi 42810 fi 42811 42812 if test "x$FOUND_FREETYPE" != xyes; then 42813 # Check modules using pkg-config, but only if we have it (ugly output results otherwise) 42814 if test "x$PKG_CONFIG" != x; then 42815 42816 pkg_failed=no 42817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE" >&5 42818 $as_echo_n "checking for FREETYPE... " >&6; } 42819 42820 if test -n "$FREETYPE_CFLAGS"; then 42821 pkg_cv_FREETYPE_CFLAGS="$FREETYPE_CFLAGS" 42822 elif test -n "$PKG_CONFIG"; then 42823 if test -n "$PKG_CONFIG" && \ 42824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 42825 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 42826 ac_status=$? 42827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42828 test $ac_status = 0; }; then 42829 pkg_cv_FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null` 42830 else 42831 pkg_failed=yes 42832 fi 42833 else 42834 pkg_failed=untried 42835 fi 42836 if test -n "$FREETYPE_LIBS"; then 42837 pkg_cv_FREETYPE_LIBS="$FREETYPE_LIBS" 42838 elif test -n "$PKG_CONFIG"; then 42839 if test -n "$PKG_CONFIG" && \ 42840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5 42841 ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5 42842 ac_status=$? 42843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 42844 test $ac_status = 0; }; then 42845 pkg_cv_FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null` 42846 else 42847 pkg_failed=yes 42848 fi 42849 else 42850 pkg_failed=untried 42851 fi 42852 42853 42854 42855 if test $pkg_failed = yes; then 42856 42857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 42858 _pkg_short_errors_supported=yes 42859 else 42860 _pkg_short_errors_supported=no 42861 fi 42862 if test $_pkg_short_errors_supported = yes; then 42863 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1` 42864 else 42865 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1` 42866 fi 42867 # Put the nasty error message in config.log where it belongs 42868 echo "$FREETYPE_PKG_ERRORS" >&5 42869 42870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 42871 $as_echo "no" >&6; } 42872 FOUND_FREETYPE=no 42873 elif test $pkg_failed = untried; then 42874 FOUND_FREETYPE=no 42875 else 42876 FREETYPE_CFLAGS=$pkg_cv_FREETYPE_CFLAGS 42877 FREETYPE_LIBS=$pkg_cv_FREETYPE_LIBS 42878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 42879 $as_echo "yes" >&6; } 42880 FOUND_FREETYPE=yes 42881 fi 42882 if test "x$FOUND_FREETYPE" = xyes; then 42883 # On solaris, pkg_check adds -lz to freetype libs, which isn't necessary for us. 42884 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's/-lz//g'` 42885 # 64-bit libs for Solaris x86 are installed in the amd64 subdirectory, change lib to lib/amd64 42886 if test "x$OPENJDK_TARGET_OS" = xsolaris && test "x$OPENJDK_TARGET_CPU" = xx86_64; then 42887 FREETYPE_LIBS=`$ECHO $FREETYPE_LIBS | $SED 's?/lib?/lib/amd64?g'` 42888 fi 42889 # BDEPS_CHECK_MODULE will set FREETYPE_CFLAGS and _LIBS, but we don't get a lib path for bundling. 42890 if test "x$BUNDLE_FREETYPE" = xyes; then 42891 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype using pkg-config, but ignoring since we can not bundle that" >&5 42892 $as_echo "$as_me: Found freetype using pkg-config, but ignoring since we can not bundle that" >&6;} 42893 FOUND_FREETYPE=no 42894 else 42895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype" >&5 42896 $as_echo_n "checking for freetype... " >&6; } 42897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (using pkg-config)" >&5 42898 $as_echo "yes (using pkg-config)" >&6; } 42899 fi 42900 fi 42901 fi 42902 fi 42903 42904 if test "x$FOUND_FREETYPE" != xyes; then 42905 # Check in well-known locations 42906 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42907 FREETYPE_BASE_DIR="$PROGRAMFILES/GnuWin32" 42908 42909 windows_path="$FREETYPE_BASE_DIR" 42910 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42911 unix_path=`$CYGPATH -u "$windows_path"` 42912 FREETYPE_BASE_DIR="$unix_path" 42913 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 42914 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 42915 FREETYPE_BASE_DIR="$unix_path" 42916 fi 42917 42918 42919 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 42920 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 42921 METHOD="well-known location" 42922 42923 # First check if the files exists. 42924 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 42925 # We found an arbitrary include file. That's a good sign. 42926 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 42927 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 42928 FOUND_FREETYPE=yes 42929 42930 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 42931 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 42932 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 42933 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 42934 FOUND_FREETYPE=no 42935 else 42936 if test "x$OPENJDK_TARGET_OS" = xwindows; then 42937 # On Windows, we will need both .lib and .dll file. 42938 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 42939 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 42940 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 42941 FOUND_FREETYPE=no 42942 fi 42943 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 42944 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 42945 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 42946 fi 42947 fi 42948 fi 42949 42950 if test "x$FOUND_FREETYPE" = xyes; then 42951 42952 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 42953 42954 # Input might be given as Windows format, start by converting to 42955 # unix format. 42956 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 42957 new_path=`$CYGPATH -u "$path"` 42958 42959 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 42960 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 42961 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 42962 # "foo.exe" is OK but "foo" is an error. 42963 # 42964 # This test is therefore slightly more accurate than "test -f" to check for file precense. 42965 # It is also a way to make sure we got the proper file name for the real test later on. 42966 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 42967 if test "x$test_shortpath" = x; then 42968 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 42969 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 42970 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 42971 fi 42972 42973 # Call helper function which possibly converts this using DOS-style short mode. 42974 # If so, the updated path is stored in $new_path. 42975 42976 input_path="$new_path" 42977 # Check if we need to convert this using DOS-style short mode. If the path 42978 # contains just simple characters, use it. Otherwise (spaces, weird characters), 42979 # take no chances and rewrite it. 42980 # Note: m4 eats our [], so we need to use [ and ] instead. 42981 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 42982 if test "x$has_forbidden_chars" != x; then 42983 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 42984 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 42985 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 42986 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 42987 # Going to short mode and back again did indeed matter. Since short mode is 42988 # case insensitive, let's make it lowercase to improve readability. 42989 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 42990 # Now convert it back to Unix-stile (cygpath) 42991 input_path=`$CYGPATH -u "$shortmode_path"` 42992 new_path="$input_path" 42993 fi 42994 fi 42995 42996 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 42997 if test "x$test_cygdrive_prefix" = x; then 42998 # As a simple fix, exclude /usr/bin since it's not a real path. 42999 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43000 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43001 # a path prefixed by /cygdrive for fixpath to work. 43002 new_path="$CYGWIN_ROOT_PATH$input_path" 43003 fi 43004 fi 43005 43006 43007 if test "x$path" != "x$new_path"; then 43008 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43009 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43010 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43011 fi 43012 43013 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43014 43015 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43016 has_colon=`$ECHO $path | $GREP ^.:` 43017 new_path="$path" 43018 if test "x$has_colon" = x; then 43019 # Not in mixed or Windows style, start by that. 43020 new_path=`cmd //c echo $path` 43021 fi 43022 43023 43024 input_path="$new_path" 43025 # Check if we need to convert this using DOS-style short mode. If the path 43026 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43027 # take no chances and rewrite it. 43028 # Note: m4 eats our [], so we need to use [ and ] instead. 43029 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43030 if test "x$has_forbidden_chars" != x; then 43031 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43032 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43033 fi 43034 43035 43036 windows_path="$new_path" 43037 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43038 unix_path=`$CYGPATH -u "$windows_path"` 43039 new_path="$unix_path" 43040 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43041 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43042 new_path="$unix_path" 43043 fi 43044 43045 if test "x$path" != "x$new_path"; then 43046 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43047 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43048 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43049 fi 43050 43051 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43052 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43053 43054 else 43055 # We're on a posix platform. Hooray! :) 43056 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43057 has_space=`$ECHO "$path" | $GREP " "` 43058 if test "x$has_space" != x; then 43059 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43060 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43061 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43062 fi 43063 43064 # Use eval to expand a potential ~ 43065 eval path="$path" 43066 if test ! -f "$path" && test ! -d "$path"; then 43067 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43068 fi 43069 43070 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43071 fi 43072 43073 43074 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43075 43076 # Input might be given as Windows format, start by converting to 43077 # unix format. 43078 path="$POTENTIAL_FREETYPE_LIB_PATH" 43079 new_path=`$CYGPATH -u "$path"` 43080 43081 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43082 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43083 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43084 # "foo.exe" is OK but "foo" is an error. 43085 # 43086 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43087 # It is also a way to make sure we got the proper file name for the real test later on. 43088 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43089 if test "x$test_shortpath" = x; then 43090 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43091 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43092 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43093 fi 43094 43095 # Call helper function which possibly converts this using DOS-style short mode. 43096 # If so, the updated path is stored in $new_path. 43097 43098 input_path="$new_path" 43099 # Check if we need to convert this using DOS-style short mode. If the path 43100 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43101 # take no chances and rewrite it. 43102 # Note: m4 eats our [], so we need to use [ and ] instead. 43103 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43104 if test "x$has_forbidden_chars" != x; then 43105 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43106 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43107 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43108 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43109 # Going to short mode and back again did indeed matter. Since short mode is 43110 # case insensitive, let's make it lowercase to improve readability. 43111 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43112 # Now convert it back to Unix-stile (cygpath) 43113 input_path=`$CYGPATH -u "$shortmode_path"` 43114 new_path="$input_path" 43115 fi 43116 fi 43117 43118 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43119 if test "x$test_cygdrive_prefix" = x; then 43120 # As a simple fix, exclude /usr/bin since it's not a real path. 43121 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43122 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43123 # a path prefixed by /cygdrive for fixpath to work. 43124 new_path="$CYGWIN_ROOT_PATH$input_path" 43125 fi 43126 fi 43127 43128 43129 if test "x$path" != "x$new_path"; then 43130 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43131 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43132 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43133 fi 43134 43135 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43136 43137 path="$POTENTIAL_FREETYPE_LIB_PATH" 43138 has_colon=`$ECHO $path | $GREP ^.:` 43139 new_path="$path" 43140 if test "x$has_colon" = x; then 43141 # Not in mixed or Windows style, start by that. 43142 new_path=`cmd //c echo $path` 43143 fi 43144 43145 43146 input_path="$new_path" 43147 # Check if we need to convert this using DOS-style short mode. If the path 43148 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43149 # take no chances and rewrite it. 43150 # Note: m4 eats our [], so we need to use [ and ] instead. 43151 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43152 if test "x$has_forbidden_chars" != x; then 43153 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43154 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43155 fi 43156 43157 43158 windows_path="$new_path" 43159 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43160 unix_path=`$CYGPATH -u "$windows_path"` 43161 new_path="$unix_path" 43162 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43163 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43164 new_path="$unix_path" 43165 fi 43166 43167 if test "x$path" != "x$new_path"; then 43168 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43169 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43170 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43171 fi 43172 43173 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43174 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43175 43176 else 43177 # We're on a posix platform. Hooray! :) 43178 path="$POTENTIAL_FREETYPE_LIB_PATH" 43179 has_space=`$ECHO "$path" | $GREP " "` 43180 if test "x$has_space" != x; then 43181 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43182 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43183 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43184 fi 43185 43186 # Use eval to expand a potential ~ 43187 eval path="$path" 43188 if test ! -f "$path" && test ! -d "$path"; then 43189 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43190 fi 43191 43192 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43193 fi 43194 43195 43196 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43198 $as_echo_n "checking for freetype includes... " >&6; } 43199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43200 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43201 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43203 $as_echo_n "checking for freetype libraries... " >&6; } 43204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43205 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43206 fi 43207 43208 if test "x$FOUND_FREETYPE" != xyes; then 43209 FREETYPE_BASE_DIR="$ProgramW6432/GnuWin32" 43210 43211 windows_path="$FREETYPE_BASE_DIR" 43212 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43213 unix_path=`$CYGPATH -u "$windows_path"` 43214 FREETYPE_BASE_DIR="$unix_path" 43215 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43216 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43217 FREETYPE_BASE_DIR="$unix_path" 43218 fi 43219 43220 43221 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43222 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 43223 METHOD="well-known location" 43224 43225 # First check if the files exists. 43226 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43227 # We found an arbitrary include file. That's a good sign. 43228 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43229 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43230 FOUND_FREETYPE=yes 43231 43232 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43233 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43234 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43235 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43236 FOUND_FREETYPE=no 43237 else 43238 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43239 # On Windows, we will need both .lib and .dll file. 43240 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43241 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43242 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43243 FOUND_FREETYPE=no 43244 fi 43245 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 43246 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43247 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43248 fi 43249 fi 43250 fi 43251 43252 if test "x$FOUND_FREETYPE" = xyes; then 43253 43254 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43255 43256 # Input might be given as Windows format, start by converting to 43257 # unix format. 43258 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43259 new_path=`$CYGPATH -u "$path"` 43260 43261 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43262 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43263 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43264 # "foo.exe" is OK but "foo" is an error. 43265 # 43266 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43267 # It is also a way to make sure we got the proper file name for the real test later on. 43268 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43269 if test "x$test_shortpath" = x; then 43270 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43271 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43272 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43273 fi 43274 43275 # Call helper function which possibly converts this using DOS-style short mode. 43276 # If so, the updated path is stored in $new_path. 43277 43278 input_path="$new_path" 43279 # Check if we need to convert this using DOS-style short mode. If the path 43280 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43281 # take no chances and rewrite it. 43282 # Note: m4 eats our [], so we need to use [ and ] instead. 43283 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43284 if test "x$has_forbidden_chars" != x; then 43285 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43286 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43287 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43288 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43289 # Going to short mode and back again did indeed matter. Since short mode is 43290 # case insensitive, let's make it lowercase to improve readability. 43291 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43292 # Now convert it back to Unix-stile (cygpath) 43293 input_path=`$CYGPATH -u "$shortmode_path"` 43294 new_path="$input_path" 43295 fi 43296 fi 43297 43298 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43299 if test "x$test_cygdrive_prefix" = x; then 43300 # As a simple fix, exclude /usr/bin since it's not a real path. 43301 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43302 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43303 # a path prefixed by /cygdrive for fixpath to work. 43304 new_path="$CYGWIN_ROOT_PATH$input_path" 43305 fi 43306 fi 43307 43308 43309 if test "x$path" != "x$new_path"; then 43310 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43311 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43312 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43313 fi 43314 43315 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43316 43317 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43318 has_colon=`$ECHO $path | $GREP ^.:` 43319 new_path="$path" 43320 if test "x$has_colon" = x; then 43321 # Not in mixed or Windows style, start by that. 43322 new_path=`cmd //c echo $path` 43323 fi 43324 43325 43326 input_path="$new_path" 43327 # Check if we need to convert this using DOS-style short mode. If the path 43328 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43329 # take no chances and rewrite it. 43330 # Note: m4 eats our [], so we need to use [ and ] instead. 43331 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43332 if test "x$has_forbidden_chars" != x; then 43333 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43334 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43335 fi 43336 43337 43338 windows_path="$new_path" 43339 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43340 unix_path=`$CYGPATH -u "$windows_path"` 43341 new_path="$unix_path" 43342 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43343 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43344 new_path="$unix_path" 43345 fi 43346 43347 if test "x$path" != "x$new_path"; then 43348 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43349 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43350 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43351 fi 43352 43353 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43354 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43355 43356 else 43357 # We're on a posix platform. Hooray! :) 43358 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43359 has_space=`$ECHO "$path" | $GREP " "` 43360 if test "x$has_space" != x; then 43361 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43362 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43363 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43364 fi 43365 43366 # Use eval to expand a potential ~ 43367 eval path="$path" 43368 if test ! -f "$path" && test ! -d "$path"; then 43369 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43370 fi 43371 43372 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43373 fi 43374 43375 43376 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43377 43378 # Input might be given as Windows format, start by converting to 43379 # unix format. 43380 path="$POTENTIAL_FREETYPE_LIB_PATH" 43381 new_path=`$CYGPATH -u "$path"` 43382 43383 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43384 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43385 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43386 # "foo.exe" is OK but "foo" is an error. 43387 # 43388 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43389 # It is also a way to make sure we got the proper file name for the real test later on. 43390 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43391 if test "x$test_shortpath" = x; then 43392 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43393 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43394 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43395 fi 43396 43397 # Call helper function which possibly converts this using DOS-style short mode. 43398 # If so, the updated path is stored in $new_path. 43399 43400 input_path="$new_path" 43401 # Check if we need to convert this using DOS-style short mode. If the path 43402 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43403 # take no chances and rewrite it. 43404 # Note: m4 eats our [], so we need to use [ and ] instead. 43405 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43406 if test "x$has_forbidden_chars" != x; then 43407 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43408 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43409 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43410 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43411 # Going to short mode and back again did indeed matter. Since short mode is 43412 # case insensitive, let's make it lowercase to improve readability. 43413 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43414 # Now convert it back to Unix-stile (cygpath) 43415 input_path=`$CYGPATH -u "$shortmode_path"` 43416 new_path="$input_path" 43417 fi 43418 fi 43419 43420 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43421 if test "x$test_cygdrive_prefix" = x; then 43422 # As a simple fix, exclude /usr/bin since it's not a real path. 43423 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43424 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43425 # a path prefixed by /cygdrive for fixpath to work. 43426 new_path="$CYGWIN_ROOT_PATH$input_path" 43427 fi 43428 fi 43429 43430 43431 if test "x$path" != "x$new_path"; then 43432 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43433 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43434 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43435 fi 43436 43437 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43438 43439 path="$POTENTIAL_FREETYPE_LIB_PATH" 43440 has_colon=`$ECHO $path | $GREP ^.:` 43441 new_path="$path" 43442 if test "x$has_colon" = x; then 43443 # Not in mixed or Windows style, start by that. 43444 new_path=`cmd //c echo $path` 43445 fi 43446 43447 43448 input_path="$new_path" 43449 # Check if we need to convert this using DOS-style short mode. If the path 43450 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43451 # take no chances and rewrite it. 43452 # Note: m4 eats our [], so we need to use [ and ] instead. 43453 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43454 if test "x$has_forbidden_chars" != x; then 43455 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43456 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43457 fi 43458 43459 43460 windows_path="$new_path" 43461 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43462 unix_path=`$CYGPATH -u "$windows_path"` 43463 new_path="$unix_path" 43464 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43465 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43466 new_path="$unix_path" 43467 fi 43468 43469 if test "x$path" != "x$new_path"; then 43470 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43471 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43472 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43473 fi 43474 43475 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43476 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43477 43478 else 43479 # We're on a posix platform. Hooray! :) 43480 path="$POTENTIAL_FREETYPE_LIB_PATH" 43481 has_space=`$ECHO "$path" | $GREP " "` 43482 if test "x$has_space" != x; then 43483 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43484 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43485 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43486 fi 43487 43488 # Use eval to expand a potential ~ 43489 eval path="$path" 43490 if test ! -f "$path" && test ! -d "$path"; then 43491 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43492 fi 43493 43494 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43495 fi 43496 43497 43498 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43500 $as_echo_n "checking for freetype includes... " >&6; } 43501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43502 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43503 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43505 $as_echo_n "checking for freetype libraries... " >&6; } 43506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43507 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43508 fi 43509 43510 fi 43511 else 43512 if test "x$SYS_ROOT" = "x/"; then 43513 FREETYPE_ROOT= 43514 else 43515 FREETYPE_ROOT="$SYS_ROOT" 43516 fi 43517 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 43518 43519 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43520 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 43521 METHOD="well-known location" 43522 43523 # First check if the files exists. 43524 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43525 # We found an arbitrary include file. That's a good sign. 43526 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43527 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43528 FOUND_FREETYPE=yes 43529 43530 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43531 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43532 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43533 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43534 FOUND_FREETYPE=no 43535 else 43536 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43537 # On Windows, we will need both .lib and .dll file. 43538 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43539 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43540 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43541 FOUND_FREETYPE=no 43542 fi 43543 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 43544 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43545 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43546 fi 43547 fi 43548 fi 43549 43550 if test "x$FOUND_FREETYPE" = xyes; then 43551 43552 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43553 43554 # Input might be given as Windows format, start by converting to 43555 # unix format. 43556 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43557 new_path=`$CYGPATH -u "$path"` 43558 43559 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43560 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43561 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43562 # "foo.exe" is OK but "foo" is an error. 43563 # 43564 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43565 # It is also a way to make sure we got the proper file name for the real test later on. 43566 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43567 if test "x$test_shortpath" = x; then 43568 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43569 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43570 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43571 fi 43572 43573 # Call helper function which possibly converts this using DOS-style short mode. 43574 # If so, the updated path is stored in $new_path. 43575 43576 input_path="$new_path" 43577 # Check if we need to convert this using DOS-style short mode. If the path 43578 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43579 # take no chances and rewrite it. 43580 # Note: m4 eats our [], so we need to use [ and ] instead. 43581 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43582 if test "x$has_forbidden_chars" != x; then 43583 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43584 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43585 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43586 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43587 # Going to short mode and back again did indeed matter. Since short mode is 43588 # case insensitive, let's make it lowercase to improve readability. 43589 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43590 # Now convert it back to Unix-stile (cygpath) 43591 input_path=`$CYGPATH -u "$shortmode_path"` 43592 new_path="$input_path" 43593 fi 43594 fi 43595 43596 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43597 if test "x$test_cygdrive_prefix" = x; then 43598 # As a simple fix, exclude /usr/bin since it's not a real path. 43599 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43600 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43601 # a path prefixed by /cygdrive for fixpath to work. 43602 new_path="$CYGWIN_ROOT_PATH$input_path" 43603 fi 43604 fi 43605 43606 43607 if test "x$path" != "x$new_path"; then 43608 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43609 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43610 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43611 fi 43612 43613 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43614 43615 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43616 has_colon=`$ECHO $path | $GREP ^.:` 43617 new_path="$path" 43618 if test "x$has_colon" = x; then 43619 # Not in mixed or Windows style, start by that. 43620 new_path=`cmd //c echo $path` 43621 fi 43622 43623 43624 input_path="$new_path" 43625 # Check if we need to convert this using DOS-style short mode. If the path 43626 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43627 # take no chances and rewrite it. 43628 # Note: m4 eats our [], so we need to use [ and ] instead. 43629 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43630 if test "x$has_forbidden_chars" != x; then 43631 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43632 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43633 fi 43634 43635 43636 windows_path="$new_path" 43637 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43638 unix_path=`$CYGPATH -u "$windows_path"` 43639 new_path="$unix_path" 43640 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43641 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43642 new_path="$unix_path" 43643 fi 43644 43645 if test "x$path" != "x$new_path"; then 43646 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43647 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43648 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43649 fi 43650 43651 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43652 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43653 43654 else 43655 # We're on a posix platform. Hooray! :) 43656 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43657 has_space=`$ECHO "$path" | $GREP " "` 43658 if test "x$has_space" != x; then 43659 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43660 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43661 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43662 fi 43663 43664 # Use eval to expand a potential ~ 43665 eval path="$path" 43666 if test ! -f "$path" && test ! -d "$path"; then 43667 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43668 fi 43669 43670 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43671 fi 43672 43673 43674 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43675 43676 # Input might be given as Windows format, start by converting to 43677 # unix format. 43678 path="$POTENTIAL_FREETYPE_LIB_PATH" 43679 new_path=`$CYGPATH -u "$path"` 43680 43681 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43682 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43683 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43684 # "foo.exe" is OK but "foo" is an error. 43685 # 43686 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43687 # It is also a way to make sure we got the proper file name for the real test later on. 43688 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43689 if test "x$test_shortpath" = x; then 43690 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43691 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43692 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43693 fi 43694 43695 # Call helper function which possibly converts this using DOS-style short mode. 43696 # If so, the updated path is stored in $new_path. 43697 43698 input_path="$new_path" 43699 # Check if we need to convert this using DOS-style short mode. If the path 43700 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43701 # take no chances and rewrite it. 43702 # Note: m4 eats our [], so we need to use [ and ] instead. 43703 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43704 if test "x$has_forbidden_chars" != x; then 43705 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43706 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43707 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43708 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43709 # Going to short mode and back again did indeed matter. Since short mode is 43710 # case insensitive, let's make it lowercase to improve readability. 43711 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43712 # Now convert it back to Unix-stile (cygpath) 43713 input_path=`$CYGPATH -u "$shortmode_path"` 43714 new_path="$input_path" 43715 fi 43716 fi 43717 43718 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43719 if test "x$test_cygdrive_prefix" = x; then 43720 # As a simple fix, exclude /usr/bin since it's not a real path. 43721 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43722 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43723 # a path prefixed by /cygdrive for fixpath to work. 43724 new_path="$CYGWIN_ROOT_PATH$input_path" 43725 fi 43726 fi 43727 43728 43729 if test "x$path" != "x$new_path"; then 43730 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43731 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43732 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43733 fi 43734 43735 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43736 43737 path="$POTENTIAL_FREETYPE_LIB_PATH" 43738 has_colon=`$ECHO $path | $GREP ^.:` 43739 new_path="$path" 43740 if test "x$has_colon" = x; then 43741 # Not in mixed or Windows style, start by that. 43742 new_path=`cmd //c echo $path` 43743 fi 43744 43745 43746 input_path="$new_path" 43747 # Check if we need to convert this using DOS-style short mode. If the path 43748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43749 # take no chances and rewrite it. 43750 # Note: m4 eats our [], so we need to use [ and ] instead. 43751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43752 if test "x$has_forbidden_chars" != x; then 43753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43754 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43755 fi 43756 43757 43758 windows_path="$new_path" 43759 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43760 unix_path=`$CYGPATH -u "$windows_path"` 43761 new_path="$unix_path" 43762 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43763 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43764 new_path="$unix_path" 43765 fi 43766 43767 if test "x$path" != "x$new_path"; then 43768 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 43769 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 43770 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 43771 fi 43772 43773 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43774 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43775 43776 else 43777 # We're on a posix platform. Hooray! :) 43778 path="$POTENTIAL_FREETYPE_LIB_PATH" 43779 has_space=`$ECHO "$path" | $GREP " "` 43780 if test "x$has_space" != x; then 43781 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43782 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43783 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43784 fi 43785 43786 # Use eval to expand a potential ~ 43787 eval path="$path" 43788 if test ! -f "$path" && test ! -d "$path"; then 43789 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43790 fi 43791 43792 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 43793 fi 43794 43795 43796 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 43798 $as_echo_n "checking for freetype includes... " >&6; } 43799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 43800 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 43801 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 43802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 43803 $as_echo_n "checking for freetype libraries... " >&6; } 43804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 43805 $as_echo "$FREETYPE_LIB_PATH" >&6; } 43806 fi 43807 43808 43809 if test "x$FOUND_FREETYPE" != xyes; then 43810 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr/X11" 43811 43812 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 43813 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib" 43814 METHOD="well-known location" 43815 43816 # First check if the files exists. 43817 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 43818 # We found an arbitrary include file. That's a good sign. 43819 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 43820 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 43821 FOUND_FREETYPE=yes 43822 43823 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 43824 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 43825 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 43826 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 43827 FOUND_FREETYPE=no 43828 else 43829 if test "x$OPENJDK_TARGET_OS" = xwindows; then 43830 # On Windows, we will need both .lib and .dll file. 43831 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 43832 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 43833 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 43834 FOUND_FREETYPE=no 43835 fi 43836 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 43837 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 43838 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 43839 fi 43840 fi 43841 fi 43842 43843 if test "x$FOUND_FREETYPE" = xyes; then 43844 43845 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43846 43847 # Input might be given as Windows format, start by converting to 43848 # unix format. 43849 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43850 new_path=`$CYGPATH -u "$path"` 43851 43852 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43853 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43854 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43855 # "foo.exe" is OK but "foo" is an error. 43856 # 43857 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43858 # It is also a way to make sure we got the proper file name for the real test later on. 43859 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43860 if test "x$test_shortpath" = x; then 43861 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43862 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43863 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 43864 fi 43865 43866 # Call helper function which possibly converts this using DOS-style short mode. 43867 # If so, the updated path is stored in $new_path. 43868 43869 input_path="$new_path" 43870 # Check if we need to convert this using DOS-style short mode. If the path 43871 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43872 # take no chances and rewrite it. 43873 # Note: m4 eats our [], so we need to use [ and ] instead. 43874 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43875 if test "x$has_forbidden_chars" != x; then 43876 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43877 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 43878 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 43879 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 43880 # Going to short mode and back again did indeed matter. Since short mode is 43881 # case insensitive, let's make it lowercase to improve readability. 43882 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43883 # Now convert it back to Unix-stile (cygpath) 43884 input_path=`$CYGPATH -u "$shortmode_path"` 43885 new_path="$input_path" 43886 fi 43887 fi 43888 43889 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 43890 if test "x$test_cygdrive_prefix" = x; then 43891 # As a simple fix, exclude /usr/bin since it's not a real path. 43892 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 43893 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 43894 # a path prefixed by /cygdrive for fixpath to work. 43895 new_path="$CYGWIN_ROOT_PATH$input_path" 43896 fi 43897 fi 43898 43899 43900 if test "x$path" != "x$new_path"; then 43901 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43902 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43903 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43904 fi 43905 43906 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43907 43908 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43909 has_colon=`$ECHO $path | $GREP ^.:` 43910 new_path="$path" 43911 if test "x$has_colon" = x; then 43912 # Not in mixed or Windows style, start by that. 43913 new_path=`cmd //c echo $path` 43914 fi 43915 43916 43917 input_path="$new_path" 43918 # Check if we need to convert this using DOS-style short mode. If the path 43919 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43920 # take no chances and rewrite it. 43921 # Note: m4 eats our [], so we need to use [ and ] instead. 43922 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 43923 if test "x$has_forbidden_chars" != x; then 43924 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43925 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 43926 fi 43927 43928 43929 windows_path="$new_path" 43930 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43931 unix_path=`$CYGPATH -u "$windows_path"` 43932 new_path="$unix_path" 43933 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 43934 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 43935 new_path="$unix_path" 43936 fi 43937 43938 if test "x$path" != "x$new_path"; then 43939 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 43940 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 43941 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 43942 fi 43943 43944 # Save the first 10 bytes of this path to the storage, so fixpath can work. 43945 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 43946 43947 else 43948 # We're on a posix platform. Hooray! :) 43949 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 43950 has_space=`$ECHO "$path" | $GREP " "` 43951 if test "x$has_space" != x; then 43952 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 43953 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 43954 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 43955 fi 43956 43957 # Use eval to expand a potential ~ 43958 eval path="$path" 43959 if test ! -f "$path" && test ! -d "$path"; then 43960 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 43961 fi 43962 43963 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 43964 fi 43965 43966 43967 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 43968 43969 # Input might be given as Windows format, start by converting to 43970 # unix format. 43971 path="$POTENTIAL_FREETYPE_LIB_PATH" 43972 new_path=`$CYGPATH -u "$path"` 43973 43974 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 43975 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 43976 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 43977 # "foo.exe" is OK but "foo" is an error. 43978 # 43979 # This test is therefore slightly more accurate than "test -f" to check for file precense. 43980 # It is also a way to make sure we got the proper file name for the real test later on. 43981 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 43982 if test "x$test_shortpath" = x; then 43983 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 43984 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 43985 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 43986 fi 43987 43988 # Call helper function which possibly converts this using DOS-style short mode. 43989 # If so, the updated path is stored in $new_path. 43990 43991 input_path="$new_path" 43992 # Check if we need to convert this using DOS-style short mode. If the path 43993 # contains just simple characters, use it. Otherwise (spaces, weird characters), 43994 # take no chances and rewrite it. 43995 # Note: m4 eats our [], so we need to use [ and ] instead. 43996 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 43997 if test "x$has_forbidden_chars" != x; then 43998 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 43999 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44000 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44001 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44002 # Going to short mode and back again did indeed matter. Since short mode is 44003 # case insensitive, let's make it lowercase to improve readability. 44004 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44005 # Now convert it back to Unix-stile (cygpath) 44006 input_path=`$CYGPATH -u "$shortmode_path"` 44007 new_path="$input_path" 44008 fi 44009 fi 44010 44011 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44012 if test "x$test_cygdrive_prefix" = x; then 44013 # As a simple fix, exclude /usr/bin since it's not a real path. 44014 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44015 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44016 # a path prefixed by /cygdrive for fixpath to work. 44017 new_path="$CYGWIN_ROOT_PATH$input_path" 44018 fi 44019 fi 44020 44021 44022 if test "x$path" != "x$new_path"; then 44023 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44024 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44025 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44026 fi 44027 44028 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44029 44030 path="$POTENTIAL_FREETYPE_LIB_PATH" 44031 has_colon=`$ECHO $path | $GREP ^.:` 44032 new_path="$path" 44033 if test "x$has_colon" = x; then 44034 # Not in mixed or Windows style, start by that. 44035 new_path=`cmd //c echo $path` 44036 fi 44037 44038 44039 input_path="$new_path" 44040 # Check if we need to convert this using DOS-style short mode. If the path 44041 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44042 # take no chances and rewrite it. 44043 # Note: m4 eats our [], so we need to use [ and ] instead. 44044 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44045 if test "x$has_forbidden_chars" != x; then 44046 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44047 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44048 fi 44049 44050 44051 windows_path="$new_path" 44052 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44053 unix_path=`$CYGPATH -u "$windows_path"` 44054 new_path="$unix_path" 44055 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44056 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44057 new_path="$unix_path" 44058 fi 44059 44060 if test "x$path" != "x$new_path"; then 44061 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44062 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44063 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44064 fi 44065 44066 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44067 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44068 44069 else 44070 # We're on a posix platform. Hooray! :) 44071 path="$POTENTIAL_FREETYPE_LIB_PATH" 44072 has_space=`$ECHO "$path" | $GREP " "` 44073 if test "x$has_space" != x; then 44074 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44075 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44076 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44077 fi 44078 44079 # Use eval to expand a potential ~ 44080 eval path="$path" 44081 if test ! -f "$path" && test ! -d "$path"; then 44082 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44083 fi 44084 44085 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44086 fi 44087 44088 44089 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44091 $as_echo_n "checking for freetype includes... " >&6; } 44092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44093 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44094 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44096 $as_echo_n "checking for freetype libraries... " >&6; } 44097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44098 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44099 fi 44100 44101 fi 44102 44103 if test "x$FOUND_FREETYPE" != xyes; then 44104 FREETYPE_BASE_DIR="$FREETYPE_ROOT/usr" 44105 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 44106 44107 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44108 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/x86_64-linux-gnu" 44109 METHOD="well-known location" 44110 44111 # First check if the files exists. 44112 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44113 # We found an arbitrary include file. That's a good sign. 44114 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44115 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44116 FOUND_FREETYPE=yes 44117 44118 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44119 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44120 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44121 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44122 FOUND_FREETYPE=no 44123 else 44124 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44125 # On Windows, we will need both .lib and .dll file. 44126 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44127 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44128 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44129 FOUND_FREETYPE=no 44130 fi 44131 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 44132 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44133 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44134 fi 44135 fi 44136 fi 44137 44138 if test "x$FOUND_FREETYPE" = xyes; then 44139 44140 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44141 44142 # Input might be given as Windows format, start by converting to 44143 # unix format. 44144 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44145 new_path=`$CYGPATH -u "$path"` 44146 44147 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44148 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44149 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44150 # "foo.exe" is OK but "foo" is an error. 44151 # 44152 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44153 # It is also a way to make sure we got the proper file name for the real test later on. 44154 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44155 if test "x$test_shortpath" = x; then 44156 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44157 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44158 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44159 fi 44160 44161 # Call helper function which possibly converts this using DOS-style short mode. 44162 # If so, the updated path is stored in $new_path. 44163 44164 input_path="$new_path" 44165 # Check if we need to convert this using DOS-style short mode. If the path 44166 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44167 # take no chances and rewrite it. 44168 # Note: m4 eats our [], so we need to use [ and ] instead. 44169 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44170 if test "x$has_forbidden_chars" != x; then 44171 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44172 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44173 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44174 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44175 # Going to short mode and back again did indeed matter. Since short mode is 44176 # case insensitive, let's make it lowercase to improve readability. 44177 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44178 # Now convert it back to Unix-stile (cygpath) 44179 input_path=`$CYGPATH -u "$shortmode_path"` 44180 new_path="$input_path" 44181 fi 44182 fi 44183 44184 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44185 if test "x$test_cygdrive_prefix" = x; then 44186 # As a simple fix, exclude /usr/bin since it's not a real path. 44187 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44188 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44189 # a path prefixed by /cygdrive for fixpath to work. 44190 new_path="$CYGWIN_ROOT_PATH$input_path" 44191 fi 44192 fi 44193 44194 44195 if test "x$path" != "x$new_path"; then 44196 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44197 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44198 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44199 fi 44200 44201 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44202 44203 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44204 has_colon=`$ECHO $path | $GREP ^.:` 44205 new_path="$path" 44206 if test "x$has_colon" = x; then 44207 # Not in mixed or Windows style, start by that. 44208 new_path=`cmd //c echo $path` 44209 fi 44210 44211 44212 input_path="$new_path" 44213 # Check if we need to convert this using DOS-style short mode. If the path 44214 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44215 # take no chances and rewrite it. 44216 # Note: m4 eats our [], so we need to use [ and ] instead. 44217 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44218 if test "x$has_forbidden_chars" != x; then 44219 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44220 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44221 fi 44222 44223 44224 windows_path="$new_path" 44225 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44226 unix_path=`$CYGPATH -u "$windows_path"` 44227 new_path="$unix_path" 44228 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44229 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44230 new_path="$unix_path" 44231 fi 44232 44233 if test "x$path" != "x$new_path"; then 44234 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44235 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44236 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44237 fi 44238 44239 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44240 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44241 44242 else 44243 # We're on a posix platform. Hooray! :) 44244 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44245 has_space=`$ECHO "$path" | $GREP " "` 44246 if test "x$has_space" != x; then 44247 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44248 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44249 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44250 fi 44251 44252 # Use eval to expand a potential ~ 44253 eval path="$path" 44254 if test ! -f "$path" && test ! -d "$path"; then 44255 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44256 fi 44257 44258 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44259 fi 44260 44261 44262 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44263 44264 # Input might be given as Windows format, start by converting to 44265 # unix format. 44266 path="$POTENTIAL_FREETYPE_LIB_PATH" 44267 new_path=`$CYGPATH -u "$path"` 44268 44269 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44270 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44271 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44272 # "foo.exe" is OK but "foo" is an error. 44273 # 44274 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44275 # It is also a way to make sure we got the proper file name for the real test later on. 44276 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44277 if test "x$test_shortpath" = x; then 44278 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44279 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44280 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44281 fi 44282 44283 # Call helper function which possibly converts this using DOS-style short mode. 44284 # If so, the updated path is stored in $new_path. 44285 44286 input_path="$new_path" 44287 # Check if we need to convert this using DOS-style short mode. If the path 44288 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44289 # take no chances and rewrite it. 44290 # Note: m4 eats our [], so we need to use [ and ] instead. 44291 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44292 if test "x$has_forbidden_chars" != x; then 44293 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44294 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44295 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44296 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44297 # Going to short mode and back again did indeed matter. Since short mode is 44298 # case insensitive, let's make it lowercase to improve readability. 44299 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44300 # Now convert it back to Unix-stile (cygpath) 44301 input_path=`$CYGPATH -u "$shortmode_path"` 44302 new_path="$input_path" 44303 fi 44304 fi 44305 44306 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44307 if test "x$test_cygdrive_prefix" = x; then 44308 # As a simple fix, exclude /usr/bin since it's not a real path. 44309 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44310 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44311 # a path prefixed by /cygdrive for fixpath to work. 44312 new_path="$CYGWIN_ROOT_PATH$input_path" 44313 fi 44314 fi 44315 44316 44317 if test "x$path" != "x$new_path"; then 44318 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44319 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44320 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44321 fi 44322 44323 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44324 44325 path="$POTENTIAL_FREETYPE_LIB_PATH" 44326 has_colon=`$ECHO $path | $GREP ^.:` 44327 new_path="$path" 44328 if test "x$has_colon" = x; then 44329 # Not in mixed or Windows style, start by that. 44330 new_path=`cmd //c echo $path` 44331 fi 44332 44333 44334 input_path="$new_path" 44335 # Check if we need to convert this using DOS-style short mode. If the path 44336 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44337 # take no chances and rewrite it. 44338 # Note: m4 eats our [], so we need to use [ and ] instead. 44339 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44340 if test "x$has_forbidden_chars" != x; then 44341 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44342 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44343 fi 44344 44345 44346 windows_path="$new_path" 44347 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44348 unix_path=`$CYGPATH -u "$windows_path"` 44349 new_path="$unix_path" 44350 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44351 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44352 new_path="$unix_path" 44353 fi 44354 44355 if test "x$path" != "x$new_path"; then 44356 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44357 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44358 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44359 fi 44360 44361 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44362 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44363 44364 else 44365 # We're on a posix platform. Hooray! :) 44366 path="$POTENTIAL_FREETYPE_LIB_PATH" 44367 has_space=`$ECHO "$path" | $GREP " "` 44368 if test "x$has_space" != x; then 44369 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44370 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44371 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44372 fi 44373 44374 # Use eval to expand a potential ~ 44375 eval path="$path" 44376 if test ! -f "$path" && test ! -d "$path"; then 44377 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44378 fi 44379 44380 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44381 fi 44382 44383 44384 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44386 $as_echo_n "checking for freetype includes... " >&6; } 44387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44388 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44389 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44391 $as_echo_n "checking for freetype libraries... " >&6; } 44392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44393 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44394 fi 44395 44396 else 44397 44398 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44399 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib/i386-linux-gnu" 44400 METHOD="well-known location" 44401 44402 # First check if the files exists. 44403 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44404 # We found an arbitrary include file. That's a good sign. 44405 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44406 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44407 FOUND_FREETYPE=yes 44408 44409 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44410 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44411 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44412 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44413 FOUND_FREETYPE=no 44414 else 44415 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44416 # On Windows, we will need both .lib and .dll file. 44417 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44418 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44419 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44420 FOUND_FREETYPE=no 44421 fi 44422 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 44423 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44424 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44425 fi 44426 fi 44427 fi 44428 44429 if test "x$FOUND_FREETYPE" = xyes; then 44430 44431 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44432 44433 # Input might be given as Windows format, start by converting to 44434 # unix format. 44435 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44436 new_path=`$CYGPATH -u "$path"` 44437 44438 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44439 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44440 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44441 # "foo.exe" is OK but "foo" is an error. 44442 # 44443 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44444 # It is also a way to make sure we got the proper file name for the real test later on. 44445 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44446 if test "x$test_shortpath" = x; then 44447 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44448 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44449 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44450 fi 44451 44452 # Call helper function which possibly converts this using DOS-style short mode. 44453 # If so, the updated path is stored in $new_path. 44454 44455 input_path="$new_path" 44456 # Check if we need to convert this using DOS-style short mode. If the path 44457 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44458 # take no chances and rewrite it. 44459 # Note: m4 eats our [], so we need to use [ and ] instead. 44460 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44461 if test "x$has_forbidden_chars" != x; then 44462 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44463 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44464 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44465 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44466 # Going to short mode and back again did indeed matter. Since short mode is 44467 # case insensitive, let's make it lowercase to improve readability. 44468 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44469 # Now convert it back to Unix-stile (cygpath) 44470 input_path=`$CYGPATH -u "$shortmode_path"` 44471 new_path="$input_path" 44472 fi 44473 fi 44474 44475 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44476 if test "x$test_cygdrive_prefix" = x; then 44477 # As a simple fix, exclude /usr/bin since it's not a real path. 44478 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44479 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44480 # a path prefixed by /cygdrive for fixpath to work. 44481 new_path="$CYGWIN_ROOT_PATH$input_path" 44482 fi 44483 fi 44484 44485 44486 if test "x$path" != "x$new_path"; then 44487 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44488 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44489 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44490 fi 44491 44492 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44493 44494 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44495 has_colon=`$ECHO $path | $GREP ^.:` 44496 new_path="$path" 44497 if test "x$has_colon" = x; then 44498 # Not in mixed or Windows style, start by that. 44499 new_path=`cmd //c echo $path` 44500 fi 44501 44502 44503 input_path="$new_path" 44504 # Check if we need to convert this using DOS-style short mode. If the path 44505 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44506 # take no chances and rewrite it. 44507 # Note: m4 eats our [], so we need to use [ and ] instead. 44508 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44509 if test "x$has_forbidden_chars" != x; then 44510 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44511 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44512 fi 44513 44514 44515 windows_path="$new_path" 44516 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44517 unix_path=`$CYGPATH -u "$windows_path"` 44518 new_path="$unix_path" 44519 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44520 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44521 new_path="$unix_path" 44522 fi 44523 44524 if test "x$path" != "x$new_path"; then 44525 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44526 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44527 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44528 fi 44529 44530 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44531 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44532 44533 else 44534 # We're on a posix platform. Hooray! :) 44535 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44536 has_space=`$ECHO "$path" | $GREP " "` 44537 if test "x$has_space" != x; then 44538 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44539 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44540 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44541 fi 44542 44543 # Use eval to expand a potential ~ 44544 eval path="$path" 44545 if test ! -f "$path" && test ! -d "$path"; then 44546 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44547 fi 44548 44549 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44550 fi 44551 44552 44553 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44554 44555 # Input might be given as Windows format, start by converting to 44556 # unix format. 44557 path="$POTENTIAL_FREETYPE_LIB_PATH" 44558 new_path=`$CYGPATH -u "$path"` 44559 44560 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44561 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44562 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44563 # "foo.exe" is OK but "foo" is an error. 44564 # 44565 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44566 # It is also a way to make sure we got the proper file name for the real test later on. 44567 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44568 if test "x$test_shortpath" = x; then 44569 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44570 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44571 as_fn_error $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44572 fi 44573 44574 # Call helper function which possibly converts this using DOS-style short mode. 44575 # If so, the updated path is stored in $new_path. 44576 44577 input_path="$new_path" 44578 # Check if we need to convert this using DOS-style short mode. If the path 44579 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44580 # take no chances and rewrite it. 44581 # Note: m4 eats our [], so we need to use [ and ] instead. 44582 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44583 if test "x$has_forbidden_chars" != x; then 44584 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44585 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44586 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44587 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44588 # Going to short mode and back again did indeed matter. Since short mode is 44589 # case insensitive, let's make it lowercase to improve readability. 44590 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44591 # Now convert it back to Unix-stile (cygpath) 44592 input_path=`$CYGPATH -u "$shortmode_path"` 44593 new_path="$input_path" 44594 fi 44595 fi 44596 44597 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44598 if test "x$test_cygdrive_prefix" = x; then 44599 # As a simple fix, exclude /usr/bin since it's not a real path. 44600 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44601 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44602 # a path prefixed by /cygdrive for fixpath to work. 44603 new_path="$CYGWIN_ROOT_PATH$input_path" 44604 fi 44605 fi 44606 44607 44608 if test "x$path" != "x$new_path"; then 44609 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44610 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44611 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44612 fi 44613 44614 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44615 44616 path="$POTENTIAL_FREETYPE_LIB_PATH" 44617 has_colon=`$ECHO $path | $GREP ^.:` 44618 new_path="$path" 44619 if test "x$has_colon" = x; then 44620 # Not in mixed or Windows style, start by that. 44621 new_path=`cmd //c echo $path` 44622 fi 44623 44624 44625 input_path="$new_path" 44626 # Check if we need to convert this using DOS-style short mode. If the path 44627 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44628 # take no chances and rewrite it. 44629 # Note: m4 eats our [], so we need to use [ and ] instead. 44630 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44631 if test "x$has_forbidden_chars" != x; then 44632 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44633 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44634 fi 44635 44636 44637 windows_path="$new_path" 44638 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44639 unix_path=`$CYGPATH -u "$windows_path"` 44640 new_path="$unix_path" 44641 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44642 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44643 new_path="$unix_path" 44644 fi 44645 44646 if test "x$path" != "x$new_path"; then 44647 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44648 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44649 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44650 fi 44651 44652 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44653 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44654 44655 else 44656 # We're on a posix platform. Hooray! :) 44657 path="$POTENTIAL_FREETYPE_LIB_PATH" 44658 has_space=`$ECHO "$path" | $GREP " "` 44659 if test "x$has_space" != x; then 44660 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44661 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44662 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44663 fi 44664 44665 # Use eval to expand a potential ~ 44666 eval path="$path" 44667 if test ! -f "$path" && test ! -d "$path"; then 44668 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44669 fi 44670 44671 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44672 fi 44673 44674 44675 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44677 $as_echo_n "checking for freetype includes... " >&6; } 44678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44679 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44680 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44682 $as_echo_n "checking for freetype libraries... " >&6; } 44683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44684 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44685 fi 44686 44687 if test "x$FOUND_FREETYPE" != xyes; then 44688 44689 POTENTIAL_FREETYPE_INCLUDE_PATH="$FREETYPE_BASE_DIR/include" 44690 POTENTIAL_FREETYPE_LIB_PATH="$FREETYPE_BASE_DIR/lib32" 44691 METHOD="well-known location" 44692 44693 # First check if the files exists. 44694 if test -s "$POTENTIAL_FREETYPE_INCLUDE_PATH/ft2build.h"; then 44695 # We found an arbitrary include file. That's a good sign. 44696 { $as_echo "$as_me:${as_lineno-$LINENO}: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&5 44697 $as_echo "$as_me: Found freetype include files at $POTENTIAL_FREETYPE_INCLUDE_PATH using $METHOD" >&6;} 44698 FOUND_FREETYPE=yes 44699 44700 FREETYPE_LIB_NAME="${LIBRARY_PREFIX}freetype${SHARED_LIBRARY_SUFFIX}" 44701 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME"; then 44702 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&5 44703 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/$FREETYPE_LIB_NAME. Ignoring location." >&6;} 44704 FOUND_FREETYPE=no 44705 else 44706 if test "x$OPENJDK_TARGET_OS" = xwindows; then 44707 # On Windows, we will need both .lib and .dll file. 44708 if ! test -s "$POTENTIAL_FREETYPE_LIB_PATH/freetype.lib"; then 44709 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&5 44710 $as_echo "$as_me: Could not find $POTENTIAL_FREETYPE_LIB_PATH/freetype.lib. Ignoring location." >&6;} 44711 FOUND_FREETYPE=no 44712 fi 44713 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 44714 # On solaris-x86_86, default is (normally) PATH/lib/amd64. Update our guess! 44715 POTENTIAL_FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH/amd64" 44716 fi 44717 fi 44718 fi 44719 44720 if test "x$FOUND_FREETYPE" = xyes; then 44721 44722 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44723 44724 # Input might be given as Windows format, start by converting to 44725 # unix format. 44726 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44727 new_path=`$CYGPATH -u "$path"` 44728 44729 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44730 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44731 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44732 # "foo.exe" is OK but "foo" is an error. 44733 # 44734 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44735 # It is also a way to make sure we got the proper file name for the real test later on. 44736 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44737 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of POTENTIAL_FREETYPE_INCLUDE_PATH" "$LINENO" 5 44741 fi 44742 44743 # Call helper function which possibly converts this using DOS-style short mode. 44744 # If so, the updated path is stored in $new_path. 44745 44746 input_path="$new_path" 44747 # Check if we need to convert this using DOS-style short mode. If the path 44748 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44749 # take no chances and rewrite it. 44750 # Note: m4 eats our [], so we need to use [ and ] instead. 44751 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44752 if test "x$has_forbidden_chars" != x; then 44753 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44754 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44755 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44756 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44757 # Going to short mode and back again did indeed matter. Since short mode is 44758 # case insensitive, let's make it lowercase to improve readability. 44759 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44760 # Now convert it back to Unix-stile (cygpath) 44761 input_path=`$CYGPATH -u "$shortmode_path"` 44762 new_path="$input_path" 44763 fi 44764 fi 44765 44766 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44767 if test "x$test_cygdrive_prefix" = x; then 44768 # As a simple fix, exclude /usr/bin since it's not a real path. 44769 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44770 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44771 # a path prefixed by /cygdrive for fixpath to work. 44772 new_path="$CYGWIN_ROOT_PATH$input_path" 44773 fi 44774 fi 44775 44776 44777 if test "x$path" != "x$new_path"; then 44778 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44779 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44780 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44781 fi 44782 44783 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44784 44785 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44786 has_colon=`$ECHO $path | $GREP ^.:` 44787 new_path="$path" 44788 if test "x$has_colon" = x; then 44789 # Not in mixed or Windows style, start by that. 44790 new_path=`cmd //c echo $path` 44791 fi 44792 44793 44794 input_path="$new_path" 44795 # Check if we need to convert this using DOS-style short mode. If the path 44796 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44797 # take no chances and rewrite it. 44798 # Note: m4 eats our [], so we need to use [ and ] instead. 44799 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44800 if test "x$has_forbidden_chars" != x; then 44801 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44802 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44803 fi 44804 44805 44806 windows_path="$new_path" 44807 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44808 unix_path=`$CYGPATH -u "$windows_path"` 44809 new_path="$unix_path" 44810 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44811 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44812 new_path="$unix_path" 44813 fi 44814 44815 if test "x$path" != "x$new_path"; then 44816 POTENTIAL_FREETYPE_INCLUDE_PATH="$new_path" 44817 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 44818 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 44819 fi 44820 44821 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44822 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44823 44824 else 44825 # We're on a posix platform. Hooray! :) 44826 path="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44827 has_space=`$ECHO "$path" | $GREP " "` 44828 if test "x$has_space" != x; then 44829 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 44830 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 44831 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44832 fi 44833 44834 # Use eval to expand a potential ~ 44835 eval path="$path" 44836 if test ! -f "$path" && test ! -d "$path"; then 44837 as_fn_error $? "The path of POTENTIAL_FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44838 fi 44839 44840 POTENTIAL_FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 44841 fi 44842 44843 44844 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44845 44846 # Input might be given as Windows format, start by converting to 44847 # unix format. 44848 path="$POTENTIAL_FREETYPE_LIB_PATH" 44849 new_path=`$CYGPATH -u "$path"` 44850 44851 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 44852 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 44853 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 44854 # "foo.exe" is OK but "foo" is an error. 44855 # 44856 # This test is therefore slightly more accurate than "test -f" to check for file precense. 44857 # It is also a way to make sure we got the proper file name for the real test later on. 44858 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 44859 if test "x$test_shortpath" = 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 $? "Cannot locate the the path of POTENTIAL_FREETYPE_LIB_PATH" "$LINENO" 5 44863 fi 44864 44865 # Call helper function which possibly converts this using DOS-style short mode. 44866 # If so, the updated path is stored in $new_path. 44867 44868 input_path="$new_path" 44869 # Check if we need to convert this using DOS-style short mode. If the path 44870 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44871 # take no chances and rewrite it. 44872 # Note: m4 eats our [], so we need to use [ and ] instead. 44873 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 44874 if test "x$has_forbidden_chars" != x; then 44875 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44876 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 44877 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 44878 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 44879 # Going to short mode and back again did indeed matter. Since short mode is 44880 # case insensitive, let's make it lowercase to improve readability. 44881 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44882 # Now convert it back to Unix-stile (cygpath) 44883 input_path=`$CYGPATH -u "$shortmode_path"` 44884 new_path="$input_path" 44885 fi 44886 fi 44887 44888 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 44889 if test "x$test_cygdrive_prefix" = x; then 44890 # As a simple fix, exclude /usr/bin since it's not a real path. 44891 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 44892 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 44893 # a path prefixed by /cygdrive for fixpath to work. 44894 new_path="$CYGWIN_ROOT_PATH$input_path" 44895 fi 44896 fi 44897 44898 44899 if test "x$path" != "x$new_path"; then 44900 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44901 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44902 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44903 fi 44904 44905 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44906 44907 path="$POTENTIAL_FREETYPE_LIB_PATH" 44908 has_colon=`$ECHO $path | $GREP ^.:` 44909 new_path="$path" 44910 if test "x$has_colon" = x; then 44911 # Not in mixed or Windows style, start by that. 44912 new_path=`cmd //c echo $path` 44913 fi 44914 44915 44916 input_path="$new_path" 44917 # Check if we need to convert this using DOS-style short mode. If the path 44918 # contains just simple characters, use it. Otherwise (spaces, weird characters), 44919 # take no chances and rewrite it. 44920 # Note: m4 eats our [], so we need to use [ and ] instead. 44921 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 44922 if test "x$has_forbidden_chars" != x; then 44923 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 44924 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 44925 fi 44926 44927 44928 windows_path="$new_path" 44929 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44930 unix_path=`$CYGPATH -u "$windows_path"` 44931 new_path="$unix_path" 44932 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44933 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 44934 new_path="$unix_path" 44935 fi 44936 44937 if test "x$path" != "x$new_path"; then 44938 POTENTIAL_FREETYPE_LIB_PATH="$new_path" 44939 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&5 44940 $as_echo "$as_me: Rewriting POTENTIAL_FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 44941 fi 44942 44943 # Save the first 10 bytes of this path to the storage, so fixpath can work. 44944 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 44945 44946 else 44947 # We're on a posix platform. Hooray! :) 44948 path="$POTENTIAL_FREETYPE_LIB_PATH" 44949 has_space=`$ECHO "$path" | $GREP " "` 44950 if test "x$has_space" != x; then 44951 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 44952 $as_echo "$as_me: The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 44953 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 44954 fi 44955 44956 # Use eval to expand a potential ~ 44957 eval path="$path" 44958 if test ! -f "$path" && test ! -d "$path"; then 44959 as_fn_error $? "The path of POTENTIAL_FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 44960 fi 44961 44962 POTENTIAL_FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 44963 fi 44964 44965 44966 FREETYPE_INCLUDE_PATH="$POTENTIAL_FREETYPE_INCLUDE_PATH" 44967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype includes" >&5 44968 $as_echo_n "checking for freetype includes... " >&6; } 44969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_INCLUDE_PATH" >&5 44970 $as_echo "$FREETYPE_INCLUDE_PATH" >&6; } 44971 FREETYPE_LIB_PATH="$POTENTIAL_FREETYPE_LIB_PATH" 44972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype libraries" >&5 44973 $as_echo_n "checking for freetype libraries... " >&6; } 44974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIB_PATH" >&5 44975 $as_echo "$FREETYPE_LIB_PATH" >&6; } 44976 fi 44977 44978 fi 44979 fi 44980 fi 44981 fi 44982 fi # end check in well-known locations 44983 44984 if test "x$FOUND_FREETYPE" != xyes; then 44985 44986 # Print a helpful message on how to acquire the necessary build dependency. 44987 # freetype is the help tag: freetype, cups, pulse, alsa etc 44988 MISSING_DEPENDENCY=freetype 44989 44990 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 44991 cygwin_help $MISSING_DEPENDENCY 44992 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 44993 msys_help $MISSING_DEPENDENCY 44994 else 44995 PKGHANDLER_COMMAND= 44996 44997 case $PKGHANDLER in 44998 apt-get) 44999 apt_help $MISSING_DEPENDENCY ;; 45000 yum) 45001 yum_help $MISSING_DEPENDENCY ;; 45002 port) 45003 port_help $MISSING_DEPENDENCY ;; 45004 pkgutil) 45005 pkgutil_help $MISSING_DEPENDENCY ;; 45006 pkgadd) 45007 pkgadd_help $MISSING_DEPENDENCY ;; 45008 esac 45009 45010 if test "x$PKGHANDLER_COMMAND" != x; then 45011 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45012 fi 45013 fi 45014 45015 as_fn_error $? "Could not find freetype! $HELP_MSG " "$LINENO" 5 45016 fi 45017 fi # end user specified settings 45018 45019 # Set FREETYPE_CFLAGS, _LIBS and _LIB_PATH from include and lib dir. 45020 if test "x$FREETYPE_CFLAGS" = x; then 45021 45022 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45023 45024 # Input might be given as Windows format, start by converting to 45025 # unix format. 45026 path="$FREETYPE_INCLUDE_PATH" 45027 new_path=`$CYGPATH -u "$path"` 45028 45029 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45030 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45031 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45032 # "foo.exe" is OK but "foo" is an error. 45033 # 45034 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45035 # It is also a way to make sure we got the proper file name for the real test later on. 45036 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45037 if test "x$test_shortpath" = x; then 45038 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45039 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45040 as_fn_error $? "Cannot locate the the path of FREETYPE_INCLUDE_PATH" "$LINENO" 5 45041 fi 45042 45043 # Call helper function which possibly converts this using DOS-style short mode. 45044 # If so, the updated path is stored in $new_path. 45045 45046 input_path="$new_path" 45047 # Check if we need to convert this using DOS-style short mode. If the path 45048 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45049 # take no chances and rewrite it. 45050 # Note: m4 eats our [], so we need to use [ and ] instead. 45051 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45052 if test "x$has_forbidden_chars" != x; then 45053 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45054 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45055 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45056 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45057 # Going to short mode and back again did indeed matter. Since short mode is 45058 # case insensitive, let's make it lowercase to improve readability. 45059 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45060 # Now convert it back to Unix-stile (cygpath) 45061 input_path=`$CYGPATH -u "$shortmode_path"` 45062 new_path="$input_path" 45063 fi 45064 fi 45065 45066 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45067 if test "x$test_cygdrive_prefix" = x; then 45068 # As a simple fix, exclude /usr/bin since it's not a real path. 45069 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45070 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45071 # a path prefixed by /cygdrive for fixpath to work. 45072 new_path="$CYGWIN_ROOT_PATH$input_path" 45073 fi 45074 fi 45075 45076 45077 if test "x$path" != "x$new_path"; then 45078 FREETYPE_INCLUDE_PATH="$new_path" 45079 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45080 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45081 fi 45082 45083 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45084 45085 path="$FREETYPE_INCLUDE_PATH" 45086 has_colon=`$ECHO $path | $GREP ^.:` 45087 new_path="$path" 45088 if test "x$has_colon" = x; then 45089 # Not in mixed or Windows style, start by that. 45090 new_path=`cmd //c echo $path` 45091 fi 45092 45093 45094 input_path="$new_path" 45095 # Check if we need to convert this using DOS-style short mode. If the path 45096 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45097 # take no chances and rewrite it. 45098 # Note: m4 eats our [], so we need to use [ and ] instead. 45099 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45100 if test "x$has_forbidden_chars" != x; then 45101 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45102 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45103 fi 45104 45105 45106 windows_path="$new_path" 45107 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45108 unix_path=`$CYGPATH -u "$windows_path"` 45109 new_path="$unix_path" 45110 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45111 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45112 new_path="$unix_path" 45113 fi 45114 45115 if test "x$path" != "x$new_path"; then 45116 FREETYPE_INCLUDE_PATH="$new_path" 45117 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&5 45118 $as_echo "$as_me: Rewriting FREETYPE_INCLUDE_PATH to \"$new_path\"" >&6;} 45119 fi 45120 45121 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45122 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45123 45124 else 45125 # We're on a posix platform. Hooray! :) 45126 path="$FREETYPE_INCLUDE_PATH" 45127 has_space=`$ECHO "$path" | $GREP " "` 45128 if test "x$has_space" != x; then 45129 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&5 45130 $as_echo "$as_me: The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is invalid." >&6;} 45131 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45132 fi 45133 45134 # Use eval to expand a potential ~ 45135 eval path="$path" 45136 if test ! -f "$path" && test ! -d "$path"; then 45137 as_fn_error $? "The path of FREETYPE_INCLUDE_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45138 fi 45139 45140 FREETYPE_INCLUDE_PATH="`cd "$path"; $THEPWDCMD -L`" 45141 fi 45142 45143 if test -d $FREETYPE_INCLUDE_PATH/freetype2/freetype; then 45144 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH/freetype2 -I$FREETYPE_INCLUDE_PATH" 45145 else 45146 FREETYPE_CFLAGS="-I$FREETYPE_INCLUDE_PATH" 45147 fi 45148 fi 45149 45150 if test "x$FREETYPE_LIBS" = x; then 45151 45152 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45153 45154 # Input might be given as Windows format, start by converting to 45155 # unix format. 45156 path="$FREETYPE_LIB_PATH" 45157 new_path=`$CYGPATH -u "$path"` 45158 45159 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 45160 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 45161 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 45162 # "foo.exe" is OK but "foo" is an error. 45163 # 45164 # This test is therefore slightly more accurate than "test -f" to check for file precense. 45165 # It is also a way to make sure we got the proper file name for the real test later on. 45166 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 45167 if test "x$test_shortpath" = x; then 45168 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45169 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45170 as_fn_error $? "Cannot locate the the path of FREETYPE_LIB_PATH" "$LINENO" 5 45171 fi 45172 45173 # Call helper function which possibly converts this using DOS-style short mode. 45174 # If so, the updated path is stored in $new_path. 45175 45176 input_path="$new_path" 45177 # Check if we need to convert this using DOS-style short mode. If the path 45178 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45179 # take no chances and rewrite it. 45180 # Note: m4 eats our [], so we need to use [ and ] instead. 45181 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 45182 if test "x$has_forbidden_chars" != x; then 45183 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45184 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 45185 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 45186 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 45187 # Going to short mode and back again did indeed matter. Since short mode is 45188 # case insensitive, let's make it lowercase to improve readability. 45189 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45190 # Now convert it back to Unix-stile (cygpath) 45191 input_path=`$CYGPATH -u "$shortmode_path"` 45192 new_path="$input_path" 45193 fi 45194 fi 45195 45196 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 45197 if test "x$test_cygdrive_prefix" = x; then 45198 # As a simple fix, exclude /usr/bin since it's not a real path. 45199 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 45200 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 45201 # a path prefixed by /cygdrive for fixpath to work. 45202 new_path="$CYGWIN_ROOT_PATH$input_path" 45203 fi 45204 fi 45205 45206 45207 if test "x$path" != "x$new_path"; then 45208 FREETYPE_LIB_PATH="$new_path" 45209 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 45210 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45211 fi 45212 45213 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45214 45215 path="$FREETYPE_LIB_PATH" 45216 has_colon=`$ECHO $path | $GREP ^.:` 45217 new_path="$path" 45218 if test "x$has_colon" = x; then 45219 # Not in mixed or Windows style, start by that. 45220 new_path=`cmd //c echo $path` 45221 fi 45222 45223 45224 input_path="$new_path" 45225 # Check if we need to convert this using DOS-style short mode. If the path 45226 # contains just simple characters, use it. Otherwise (spaces, weird characters), 45227 # take no chances and rewrite it. 45228 # Note: m4 eats our [], so we need to use [ and ] instead. 45229 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 45230 if test "x$has_forbidden_chars" != x; then 45231 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 45232 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 45233 fi 45234 45235 45236 windows_path="$new_path" 45237 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45238 unix_path=`$CYGPATH -u "$windows_path"` 45239 new_path="$unix_path" 45240 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45241 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 45242 new_path="$unix_path" 45243 fi 45244 45245 if test "x$path" != "x$new_path"; then 45246 FREETYPE_LIB_PATH="$new_path" 45247 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&5 45248 $as_echo "$as_me: Rewriting FREETYPE_LIB_PATH to \"$new_path\"" >&6;} 45249 fi 45250 45251 # Save the first 10 bytes of this path to the storage, so fixpath can work. 45252 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 45253 45254 else 45255 # We're on a posix platform. Hooray! :) 45256 path="$FREETYPE_LIB_PATH" 45257 has_space=`$ECHO "$path" | $GREP " "` 45258 if test "x$has_space" != x; then 45259 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&5 45260 $as_echo "$as_me: The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is invalid." >&6;} 45261 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 45262 fi 45263 45264 # Use eval to expand a potential ~ 45265 eval path="$path" 45266 if test ! -f "$path" && test ! -d "$path"; then 45267 as_fn_error $? "The path of FREETYPE_LIB_PATH, which resolves as \"$path\", is not found." "$LINENO" 5 45268 fi 45269 45270 FREETYPE_LIB_PATH="`cd "$path"; $THEPWDCMD -L`" 45271 fi 45272 45273 if test "x$OPENJDK_TARGET_OS" = xwindows; then 45274 FREETYPE_LIBS="$FREETYPE_LIB_PATH/freetype.lib" 45275 else 45276 FREETYPE_LIBS="-L$FREETYPE_LIB_PATH -lfreetype" 45277 fi 45278 fi 45279 45280 # Try to compile it 45281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can compile and link with freetype" >&5 45282 $as_echo_n "checking if we can compile and link with freetype... " >&6; } 45283 ac_ext=cpp 45284 ac_cpp='$CXXCPP $CPPFLAGS' 45285 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45286 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45287 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45288 45289 PREV_CXXCFLAGS="$CXXFLAGS" 45290 PREV_LIBS="$LIBS" 45291 PREV_CXX="$CXX" 45292 CXXFLAGS="$CXXFLAGS $FREETYPE_CFLAGS" 45293 LIBS="$LIBS $FREETYPE_LIBS" 45294 CXX="$FIXPATH $CXX" 45295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45296 /* end confdefs.h. */ 45297 45298 #include<ft2build.h> 45299 #include FT_FREETYPE_H 45300 int main () { 45301 FT_Init_FreeType(NULL); 45302 return 0; 45303 } 45304 45305 _ACEOF 45306 if ac_fn_cxx_try_link "$LINENO"; then : 45307 45308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45309 $as_echo "yes" >&6; } 45310 45311 else 45312 45313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45314 $as_echo "no" >&6; } 45315 { $as_echo "$as_me:${as_lineno-$LINENO}: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&5 45316 $as_echo "$as_me: Could not compile and link with freetype. This might be a 32/64-bit mismatch." >&6;} 45317 { $as_echo "$as_me:${as_lineno-$LINENO}: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&5 45318 $as_echo "$as_me: Using FREETYPE_CFLAGS=$FREETYPE_CFLAGS and FREETYPE_LIBS=$FREETYPE_LIBS" >&6;} 45319 45320 45321 # Print a helpful message on how to acquire the necessary build dependency. 45322 # freetype is the help tag: freetype, cups, pulse, alsa etc 45323 MISSING_DEPENDENCY=freetype 45324 45325 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45326 cygwin_help $MISSING_DEPENDENCY 45327 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45328 msys_help $MISSING_DEPENDENCY 45329 else 45330 PKGHANDLER_COMMAND= 45331 45332 case $PKGHANDLER in 45333 apt-get) 45334 apt_help $MISSING_DEPENDENCY ;; 45335 yum) 45336 yum_help $MISSING_DEPENDENCY ;; 45337 port) 45338 port_help $MISSING_DEPENDENCY ;; 45339 pkgutil) 45340 pkgutil_help $MISSING_DEPENDENCY ;; 45341 pkgadd) 45342 pkgadd_help $MISSING_DEPENDENCY ;; 45343 esac 45344 45345 if test "x$PKGHANDLER_COMMAND" != x; then 45346 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45347 fi 45348 fi 45349 45350 45351 as_fn_error $? "Can not continue without freetype. $HELP_MSG" "$LINENO" 5 45352 45353 45354 fi 45355 rm -f core conftest.err conftest.$ac_objext \ 45356 conftest$ac_exeext conftest.$ac_ext 45357 CXXCFLAGS="$PREV_CXXFLAGS" 45358 LIBS="$PREV_LIBS" 45359 CXX="$PREV_CXX" 45360 ac_ext=cpp 45361 ac_cpp='$CXXCPP $CPPFLAGS' 45362 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 45363 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 45364 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 45365 45366 45367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we should bundle freetype" >&5 45368 $as_echo_n "checking if we should bundle freetype... " >&6; } 45369 if test "x$BUNDLE_FREETYPE" = xyes; then 45370 FREETYPE_BUNDLE_LIB_PATH="$FREETYPE_LIB_PATH" 45371 fi 45372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUNDLE_FREETYPE" >&5 45373 $as_echo "$BUNDLE_FREETYPE" >&6; } 45374 45375 fi # end freetype needed 45376 45377 45378 45379 45380 45381 45382 45383 ############################################################################### 45384 # 45385 # Check for alsa headers and libraries. Used on Linux/GNU systems. 45386 # 45387 45388 # Check whether --with-alsa was given. 45389 if test "${with_alsa+set}" = set; then : 45390 withval=$with_alsa; 45391 fi 45392 45393 45394 # Check whether --with-alsa-include was given. 45395 if test "${with_alsa_include+set}" = set; then : 45396 withval=$with_alsa_include; 45397 fi 45398 45399 45400 # Check whether --with-alsa-lib was given. 45401 if test "${with_alsa_lib+set}" = set; then : 45402 withval=$with_alsa_lib; 45403 fi 45404 45405 45406 if test "x$ALSA_NOT_NEEDED" = xyes; then 45407 if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then 45408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5 45409 $as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;} 45410 fi 45411 ALSA_CFLAGS= 45412 ALSA_LIBS= 45413 else 45414 ALSA_FOUND=no 45415 45416 if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then 45417 as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5 45418 fi 45419 45420 if test "x${with_alsa}" != x; then 45421 ALSA_LIBS="-L${with_alsa}/lib -lasound" 45422 ALSA_CFLAGS="-I${with_alsa}/include" 45423 ALSA_FOUND=yes 45424 fi 45425 if test "x${with_alsa_include}" != x; then 45426 ALSA_CFLAGS="-I${with_alsa_include}" 45427 ALSA_FOUND=yes 45428 fi 45429 if test "x${with_alsa_lib}" != x; then 45430 ALSA_LIBS="-L${with_alsa_lib} -lasound" 45431 ALSA_FOUND=yes 45432 fi 45433 if test "x$ALSA_FOUND" = xno; then 45434 45435 45436 if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then 45437 # Source the builddeps file again, to make sure it uses the latest variables! 45438 . $builddepsfile 45439 # Look for a target and build machine specific resource! 45440 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_TARGET_${rewritten_target_var}} 45441 if test "x$resource" = x; then 45442 # Ok, lets instead look for a target specific resource 45443 eval resource=\${builddep_alsa_TARGET_${rewritten_target_var}} 45444 fi 45445 if test "x$resource" = x; then 45446 # Ok, lets instead look for a build specific resource 45447 eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}} 45448 fi 45449 if test "x$resource" = x; then 45450 # Ok, lets instead look for a generic resource 45451 # (The alsa comes from M4 and not the shell, thus no need for eval here.) 45452 resource=${builddep_alsa} 45453 fi 45454 if test "x$resource" != x; then 45455 { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5 45456 $as_echo "$as_me: Using builddeps $resource for alsa" >&6;} 45457 # If the resource in the builddeps.conf file is an existing directory, 45458 # for example /java/linux/cups 45459 if test -d ${resource}; then 45460 depdir=${resource} 45461 else 45462 45463 # alsa is for example mymodule 45464 # $resource is for example libs/general/libmymod_1_2_3.zip 45465 # $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps 45466 # $with_builddeps_dir is for example /localhome/builddeps 45467 # depdir is the name of the variable into which we store the depdir, eg MYMOD 45468 # Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and 45469 # unzip into the directory: /localhome/builddeps/libmymod_1_2_3 45470 filename=`basename $resource` 45471 filebase=`echo $filename | sed 's/\.[^\.]*$//'` 45472 filebase=${filename%%.*} 45473 extension=${filename#*.} 45474 installdir=$with_builddeps_dir/$filebase 45475 if test ! -f $installdir/$filename.unpacked; then 45476 { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5 45477 $as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;} 45478 if test ! -d $installdir; then 45479 mkdir -p $installdir 45480 fi 45481 if test ! -d $installdir; then 45482 as_fn_error $? "Could not create directory $installdir" "$LINENO" 5 45483 fi 45484 tmpfile=`mktemp $installdir/alsa.XXXXXXXXX` 45485 touch $tmpfile 45486 if test ! -f $tmpfile; then 45487 as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5 45488 fi 45489 45490 # $with_builddeps_server/$resource is the ftp://abuilddeps.server.com/libs/cups.zip 45491 # $tmpfile is the local file name for the downloaded file. 45492 VALID_TOOL=no 45493 if test "x$BDEPS_FTP" = xwget; then 45494 VALID_TOOL=yes 45495 wget -O $tmpfile $with_builddeps_server/$resource 45496 fi 45497 if test "x$BDEPS_FTP" = xlftp; then 45498 VALID_TOOL=yes 45499 lftp -c "get $with_builddeps_server/$resource -o $tmpfile" 45500 fi 45501 if test "x$BDEPS_FTP" = xftp; then 45502 VALID_TOOL=yes 45503 FTPSERVER=`echo $with_builddeps_server/$resource | cut -f 3 -d '/'` 45504 FTPPATH=`echo $with_builddeps_server/$resource | cut -f 4- -d '/'` 45505 FTPUSERPWD=${FTPSERVER%%@*} 45506 if test "x$FTPSERVER" != "x$FTPUSERPWD"; then 45507 FTPUSER=${userpwd%%:*} 45508 FTPPWD=${userpwd#*@} 45509 FTPSERVER=${FTPSERVER#*@} 45510 else 45511 FTPUSER=ftp 45512 FTPPWD=ftp 45513 fi 45514 # the "pass" command does not work on some 45515 # ftp clients (read ftp.exe) but if it works, 45516 # passive mode is better! 45517 ( \ 45518 echo "user $FTPUSER $FTPPWD" ; \ 45519 echo "pass" ; \ 45520 echo "bin" ; \ 45521 echo "get $FTPPATH $tmpfile" ; \ 45522 ) | ftp -in $FTPSERVER 45523 fi 45524 if test "x$VALID_TOOL" != xyes; then 45525 as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5 45526 fi 45527 45528 mv $tmpfile $installdir/$filename 45529 if test ! -s $installdir/$filename; then 45530 as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5 45531 fi 45532 case "$extension" in 45533 zip) echo "Unzipping $installdir/$filename..." 45534 (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked) 45535 ;; 45536 tar.gz) echo "Untaring $installdir/$filename..." 45537 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45538 ;; 45539 tgz) echo "Untaring $installdir/$filename..." 45540 (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked) 45541 ;; 45542 *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5 45543 ;; 45544 esac 45545 fi 45546 if test -f $installdir/$filename.unpacked; then 45547 depdir=$installdir 45548 fi 45549 45550 fi 45551 # Source the builddeps file again, because in the previous command, the depdir 45552 # was updated to point at the current build dependency install directory. 45553 . $builddepsfile 45554 # Now extract variables from the builddeps.conf files. 45555 theroot=${builddep_alsa_ROOT} 45556 thecflags=${builddep_alsa_CFLAGS} 45557 thelibs=${builddep_alsa_LIBS} 45558 if test "x$depdir" = x; then 45559 as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5 45560 fi 45561 ALSA=$depdir 45562 if test "x$theroot" != x; then 45563 ALSA="$theroot" 45564 fi 45565 if test "x$thecflags" != x; then 45566 ALSA_CFLAGS="$thecflags" 45567 fi 45568 if test "x$thelibs" != x; then 45569 ALSA_LIBS="$thelibs" 45570 fi 45571 ALSA_FOUND=yes 45572 else ALSA_FOUND=no 45573 45574 fi 45575 else ALSA_FOUND=no 45576 45577 fi 45578 45579 fi 45580 if test "x$ALSA_FOUND" = xno; then 45581 45582 pkg_failed=no 45583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5 45584 $as_echo_n "checking for ALSA... " >&6; } 45585 45586 if test -n "$ALSA_CFLAGS"; then 45587 pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS" 45588 elif test -n "$PKG_CONFIG"; then 45589 if test -n "$PKG_CONFIG" && \ 45590 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 45591 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 45592 ac_status=$? 45593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45594 test $ac_status = 0; }; then 45595 pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null` 45596 else 45597 pkg_failed=yes 45598 fi 45599 else 45600 pkg_failed=untried 45601 fi 45602 if test -n "$ALSA_LIBS"; then 45603 pkg_cv_ALSA_LIBS="$ALSA_LIBS" 45604 elif test -n "$PKG_CONFIG"; then 45605 if test -n "$PKG_CONFIG" && \ 45606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5 45607 ($PKG_CONFIG --exists --print-errors "alsa") 2>&5 45608 ac_status=$? 45609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 45610 test $ac_status = 0; }; then 45611 pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null` 45612 else 45613 pkg_failed=yes 45614 fi 45615 else 45616 pkg_failed=untried 45617 fi 45618 45619 45620 45621 if test $pkg_failed = yes; then 45622 45623 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 45624 _pkg_short_errors_supported=yes 45625 else 45626 _pkg_short_errors_supported=no 45627 fi 45628 if test $_pkg_short_errors_supported = yes; then 45629 ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1` 45630 else 45631 ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1` 45632 fi 45633 # Put the nasty error message in config.log where it belongs 45634 echo "$ALSA_PKG_ERRORS" >&5 45635 45636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 45637 $as_echo "no" >&6; } 45638 ALSA_FOUND=no 45639 elif test $pkg_failed = untried; then 45640 ALSA_FOUND=no 45641 else 45642 ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS 45643 ALSA_LIBS=$pkg_cv_ALSA_LIBS 45644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 45645 $as_echo "yes" >&6; } 45646 ALSA_FOUND=yes 45647 fi 45648 fi 45649 if test "x$ALSA_FOUND" = xno; then 45650 for ac_header in alsa/asoundlib.h 45651 do : 45652 ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default" 45653 if test "x$ac_cv_header_alsa_asoundlib_h" = xyes; then : 45654 cat >>confdefs.h <<_ACEOF 45655 #define HAVE_ALSA_ASOUNDLIB_H 1 45656 _ACEOF 45657 45658 ALSA_FOUND=yes 45659 ALSA_CFLAGS=-Iignoreme 45660 ALSA_LIBS=-lasound 45661 DEFAULT_ALSA=yes 45662 45663 else 45664 ALSA_FOUND=no 45665 fi 45666 45667 done 45668 45669 fi 45670 if test "x$ALSA_FOUND" = xno; then 45671 45672 # Print a helpful message on how to acquire the necessary build dependency. 45673 # alsa is the help tag: freetype, cups, pulse, alsa etc 45674 MISSING_DEPENDENCY=alsa 45675 45676 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 45677 cygwin_help $MISSING_DEPENDENCY 45678 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 45679 msys_help $MISSING_DEPENDENCY 45680 else 45681 PKGHANDLER_COMMAND= 45682 45683 case $PKGHANDLER in 45684 apt-get) 45685 apt_help $MISSING_DEPENDENCY ;; 45686 yum) 45687 yum_help $MISSING_DEPENDENCY ;; 45688 port) 45689 port_help $MISSING_DEPENDENCY ;; 45690 pkgutil) 45691 pkgutil_help $MISSING_DEPENDENCY ;; 45692 pkgadd) 45693 pkgadd_help $MISSING_DEPENDENCY ;; 45694 esac 45695 45696 if test "x$PKGHANDLER_COMMAND" != x; then 45697 HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'." 45698 fi 45699 fi 45700 45701 as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5 45702 fi 45703 fi 45704 45705 45706 45707 45708 45709 45710 ############################################################################### 45711 # 45712 # Check for the jpeg library 45713 # 45714 45715 USE_EXTERNAL_LIBJPEG=true 45716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5 45717 $as_echo_n "checking for main in -ljpeg... " >&6; } 45718 if ${ac_cv_lib_jpeg_main+:} false; then : 45719 $as_echo_n "(cached) " >&6 45720 else 45721 ac_check_lib_save_LIBS=$LIBS 45722 LIBS="-ljpeg $LIBS" 45723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45724 /* end confdefs.h. */ 45725 45726 45727 int 45728 main () 45729 { 45730 return main (); 45731 ; 45732 return 0; 45733 } 45734 _ACEOF 45735 if ac_fn_cxx_try_link "$LINENO"; then : 45736 ac_cv_lib_jpeg_main=yes 45737 else 45738 ac_cv_lib_jpeg_main=no 45739 fi 45740 rm -f core conftest.err conftest.$ac_objext \ 45741 conftest$ac_exeext conftest.$ac_ext 45742 LIBS=$ac_check_lib_save_LIBS 45743 fi 45744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5 45745 $as_echo "$ac_cv_lib_jpeg_main" >&6; } 45746 if test "x$ac_cv_lib_jpeg_main" = xyes; then : 45747 cat >>confdefs.h <<_ACEOF 45748 #define HAVE_LIBJPEG 1 45749 _ACEOF 45750 45751 LIBS="-ljpeg $LIBS" 45752 45753 else 45754 USE_EXTERNAL_LIBJPEG=false 45755 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5 45756 $as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;} 45757 45758 fi 45759 45760 45761 45762 ############################################################################### 45763 # 45764 # Check for the gif library 45765 # 45766 45767 45768 # Check whether --with-giflib was given. 45769 if test "${with_giflib+set}" = set; then : 45770 withval=$with_giflib; 45771 fi 45772 45773 45774 45775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which giflib to use" >&5 45776 $as_echo_n "checking for which giflib to use... " >&6; } 45777 45778 # default is bundled 45779 DEFAULT_GIFLIB=bundled 45780 45781 # 45782 # if user didn't specify, use DEFAULT_GIFLIB 45783 # 45784 if test "x${with_giflib}" = "x"; then 45785 with_giflib=${DEFAULT_GIFLIB} 45786 fi 45787 45788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_giflib}" >&5 45789 $as_echo "${with_giflib}" >&6; } 45790 45791 if test "x${with_giflib}" = "xbundled"; then 45792 USE_EXTERNAL_LIBGIF=false 45793 elif test "x${with_giflib}" = "xsystem"; then 45794 ac_fn_cxx_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 45795 if test "x$ac_cv_header_gif_lib_h" = xyes; then : 45796 45797 else 45798 as_fn_error $? "--with-giflib=system specified, but gif_lib.h not found!" "$LINENO" 5 45799 fi 45800 45801 45802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DGifGetCode in -lgif" >&5 45803 $as_echo_n "checking for DGifGetCode in -lgif... " >&6; } 45804 if ${ac_cv_lib_gif_DGifGetCode+:} false; then : 45805 $as_echo_n "(cached) " >&6 45806 else 45807 ac_check_lib_save_LIBS=$LIBS 45808 LIBS="-lgif $LIBS" 45809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45810 /* end confdefs.h. */ 45811 45812 /* Override any GCC internal prototype to avoid an error. 45813 Use char because int might match the return type of a GCC 45814 builtin and then its argument prototype would still apply. */ 45815 #ifdef __cplusplus 45816 extern "C" 45817 #endif 45818 char DGifGetCode (); 45819 int 45820 main () 45821 { 45822 return DGifGetCode (); 45823 ; 45824 return 0; 45825 } 45826 _ACEOF 45827 if ac_fn_cxx_try_link "$LINENO"; then : 45828 ac_cv_lib_gif_DGifGetCode=yes 45829 else 45830 ac_cv_lib_gif_DGifGetCode=no 45831 fi 45832 rm -f core conftest.err conftest.$ac_objext \ 45833 conftest$ac_exeext conftest.$ac_ext 45834 LIBS=$ac_check_lib_save_LIBS 45835 fi 45836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_DGifGetCode" >&5 45837 $as_echo "$ac_cv_lib_gif_DGifGetCode" >&6; } 45838 if test "x$ac_cv_lib_gif_DGifGetCode" = xyes; then : 45839 cat >>confdefs.h <<_ACEOF 45840 #define HAVE_LIBGIF 1 45841 _ACEOF 45842 45843 LIBS="-lgif $LIBS" 45844 45845 else 45846 as_fn_error $? "--with-giflib=system specified, but no giflib found!" "$LINENO" 5 45847 fi 45848 45849 45850 USE_EXTERNAL_LIBGIF=true 45851 else 45852 as_fn_error $? "Invalid value of --with-giflib: ${with_giflib}, use 'system' or 'bundled'" "$LINENO" 5 45853 fi 45854 45855 45856 ############################################################################### 45857 # 45858 # Check for the zlib library 45859 # 45860 45861 45862 # Check whether --with-zlib was given. 45863 if test "${with_zlib+set}" = set; then : 45864 withval=$with_zlib; 45865 fi 45866 45867 45868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5 45869 $as_echo_n "checking for compress in -lz... " >&6; } 45870 if ${ac_cv_lib_z_compress+:} false; then : 45871 $as_echo_n "(cached) " >&6 45872 else 45873 ac_check_lib_save_LIBS=$LIBS 45874 LIBS="-lz $LIBS" 45875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45876 /* end confdefs.h. */ 45877 45878 /* Override any GCC internal prototype to avoid an error. 45879 Use char because int might match the return type of a GCC 45880 builtin and then its argument prototype would still apply. */ 45881 #ifdef __cplusplus 45882 extern "C" 45883 #endif 45884 char compress (); 45885 int 45886 main () 45887 { 45888 return compress (); 45889 ; 45890 return 0; 45891 } 45892 _ACEOF 45893 if ac_fn_cxx_try_link "$LINENO"; then : 45894 ac_cv_lib_z_compress=yes 45895 else 45896 ac_cv_lib_z_compress=no 45897 fi 45898 rm -f core conftest.err conftest.$ac_objext \ 45899 conftest$ac_exeext conftest.$ac_ext 45900 LIBS=$ac_check_lib_save_LIBS 45901 fi 45902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5 45903 $as_echo "$ac_cv_lib_z_compress" >&6; } 45904 if test "x$ac_cv_lib_z_compress" = xyes; then : 45905 ZLIB_FOUND=yes 45906 else 45907 ZLIB_FOUND=no 45908 fi 45909 45910 45911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for which zlib to use" >&5 45912 $as_echo_n "checking for which zlib to use... " >&6; } 45913 45914 DEFAULT_ZLIB=bundled 45915 if test "x$OPENJDK_TARGET_OS" = xmacosx; then 45916 # 45917 # On macosx default is system...on others default is 45918 # 45919 DEFAULT_ZLIB=system 45920 fi 45921 45922 if test "x${ZLIB_FOUND}" != "xyes"; then 45923 # 45924 # If we don't find any system...set default to bundled 45925 # 45926 DEFAULT_ZLIB=bundled 45927 fi 45928 45929 # 45930 # If user didn't specify, use DEFAULT_ZLIB 45931 # 45932 if test "x${with_zlib}" = "x"; then 45933 with_zlib=${DEFAULT_ZLIB} 45934 fi 45935 45936 if test "x${with_zlib}" = "xbundled"; then 45937 USE_EXTERNAL_LIBZ=false 45938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: bundled" >&5 45939 $as_echo "bundled" >&6; } 45940 elif test "x${with_zlib}" = "xsystem"; then 45941 if test "x${ZLIB_FOUND}" = "xyes"; then 45942 USE_EXTERNAL_LIBZ=true 45943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5 45944 $as_echo "system" >&6; } 45945 else 45946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: system not found" >&5 45947 $as_echo "system not found" >&6; } 45948 as_fn_error $? "--with-zlib=system specified, but no zlib found!" "$LINENO" 5 45949 fi 45950 else 45951 as_fn_error $? "Invalid value for --with-zlib: ${with_zlib}, use 'system' or 'bundled'" "$LINENO" 5 45952 fi 45953 45954 45955 45956 ############################################################################### 45957 LIBZIP_CAN_USE_MMAP=true 45958 45959 45960 45961 ############################################################################### 45962 # 45963 # Check if altzone exists in time.h 45964 # 45965 45966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 45967 /* end confdefs.h. */ 45968 #include <time.h> 45969 int 45970 main () 45971 { 45972 return (int)altzone; 45973 ; 45974 return 0; 45975 } 45976 _ACEOF 45977 if ac_fn_cxx_try_link "$LINENO"; then : 45978 has_altzone=yes 45979 else 45980 has_altzone=no 45981 fi 45982 rm -f core conftest.err conftest.$ac_objext \ 45983 conftest$ac_exeext conftest.$ac_ext 45984 if test "x$has_altzone" = xyes; then 45985 45986 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h 45987 45988 fi 45989 45990 ############################################################################### 45991 # 45992 # Check the maths library 45993 # 45994 45995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 45996 $as_echo_n "checking for cos in -lm... " >&6; } 45997 if ${ac_cv_lib_m_cos+:} false; then : 45998 $as_echo_n "(cached) " >&6 45999 else 46000 ac_check_lib_save_LIBS=$LIBS 46001 LIBS="-lm $LIBS" 46002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46003 /* end confdefs.h. */ 46004 46005 /* Override any GCC internal prototype to avoid an error. 46006 Use char because int might match the return type of a GCC 46007 builtin and then its argument prototype would still apply. */ 46008 #ifdef __cplusplus 46009 extern "C" 46010 #endif 46011 char cos (); 46012 int 46013 main () 46014 { 46015 return cos (); 46016 ; 46017 return 0; 46018 } 46019 _ACEOF 46020 if ac_fn_cxx_try_link "$LINENO"; then : 46021 ac_cv_lib_m_cos=yes 46022 else 46023 ac_cv_lib_m_cos=no 46024 fi 46025 rm -f core conftest.err conftest.$ac_objext \ 46026 conftest$ac_exeext conftest.$ac_ext 46027 LIBS=$ac_check_lib_save_LIBS 46028 fi 46029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 46030 $as_echo "$ac_cv_lib_m_cos" >&6; } 46031 if test "x$ac_cv_lib_m_cos" = xyes; then : 46032 cat >>confdefs.h <<_ACEOF 46033 #define HAVE_LIBM 1 46034 _ACEOF 46035 46036 LIBS="-lm $LIBS" 46037 46038 else 46039 46040 { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5 46041 $as_echo "$as_me: Maths library was not found" >&6;} 46042 46043 46044 fi 46045 46046 46047 46048 ############################################################################### 46049 # 46050 # Check for libdl.so 46051 46052 save_LIBS="$LIBS" 46053 LIBS="" 46054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 46055 $as_echo_n "checking for dlopen in -ldl... " >&6; } 46056 if ${ac_cv_lib_dl_dlopen+:} false; then : 46057 $as_echo_n "(cached) " >&6 46058 else 46059 ac_check_lib_save_LIBS=$LIBS 46060 LIBS="-ldl $LIBS" 46061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46062 /* end confdefs.h. */ 46063 46064 /* Override any GCC internal prototype to avoid an error. 46065 Use char because int might match the return type of a GCC 46066 builtin and then its argument prototype would still apply. */ 46067 #ifdef __cplusplus 46068 extern "C" 46069 #endif 46070 char dlopen (); 46071 int 46072 main () 46073 { 46074 return dlopen (); 46075 ; 46076 return 0; 46077 } 46078 _ACEOF 46079 if ac_fn_cxx_try_link "$LINENO"; then : 46080 ac_cv_lib_dl_dlopen=yes 46081 else 46082 ac_cv_lib_dl_dlopen=no 46083 fi 46084 rm -f core conftest.err conftest.$ac_objext \ 46085 conftest$ac_exeext conftest.$ac_ext 46086 LIBS=$ac_check_lib_save_LIBS 46087 fi 46088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 46089 $as_echo "$ac_cv_lib_dl_dlopen" >&6; } 46090 if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 46091 cat >>confdefs.h <<_ACEOF 46092 #define HAVE_LIBDL 1 46093 _ACEOF 46094 46095 LIBS="-ldl $LIBS" 46096 46097 fi 46098 46099 LIBDL="$LIBS" 46100 46101 LIBS="$save_LIBS" 46102 46103 46104 ############################################################################### 46105 # 46106 # statically link libstdc++ before C++ ABI is stablized on Linux unless 46107 # dynamic build is configured on command line. 46108 # 46109 46110 # Check whether --with-stdc++lib was given. 46111 if test "${with_stdc__lib+set}" = set; then : 46112 withval=$with_stdc__lib; 46113 if test "x$with_stdc__lib" != xdynamic && test "x$with_stdc__lib" != xstatic \ 46114 && test "x$with_stdc__lib" != xdefault; then 46115 as_fn_error $? "Bad parameter value --with-stdc++lib=$with_stdc__lib!" "$LINENO" 5 46116 fi 46117 46118 else 46119 with_stdc__lib=default 46120 46121 fi 46122 46123 46124 if test "x$OPENJDK_TARGET_OS" = xlinux; then 46125 # Test if -lstdc++ works. 46126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5 46127 $as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; } 46128 ac_ext=cpp 46129 ac_cpp='$CXXCPP $CPPFLAGS' 46130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46133 46134 OLD_CXXFLAGS="$CXXFLAGS" 46135 CXXFLAGS="$CXXFLAGS -lstdc++" 46136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46137 /* end confdefs.h. */ 46138 46139 int 46140 main () 46141 { 46142 return 0; 46143 ; 46144 return 0; 46145 } 46146 _ACEOF 46147 if ac_fn_cxx_try_link "$LINENO"; then : 46148 has_dynamic_libstdcxx=yes 46149 else 46150 has_dynamic_libstdcxx=no 46151 fi 46152 rm -f core conftest.err conftest.$ac_objext \ 46153 conftest$ac_exeext conftest.$ac_ext 46154 CXXFLAGS="$OLD_CXXFLAGS" 46155 ac_ext=cpp 46156 ac_cpp='$CXXCPP $CPPFLAGS' 46157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46160 46161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5 46162 $as_echo "$has_dynamic_libstdcxx" >&6; } 46163 46164 # Test if stdc++ can be linked statically. 46165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5 46166 $as_echo_n "checking if static link of stdc++ is possible... " >&6; } 46167 STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic" 46168 ac_ext=cpp 46169 ac_cpp='$CXXCPP $CPPFLAGS' 46170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46173 46174 OLD_LIBS="$LIBS" 46175 OLD_CXX="$CXX" 46176 LIBS="$STATIC_STDCXX_FLAGS" 46177 CXX="$CC" 46178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 46179 /* end confdefs.h. */ 46180 46181 int 46182 main () 46183 { 46184 return 0; 46185 ; 46186 return 0; 46187 } 46188 _ACEOF 46189 if ac_fn_cxx_try_link "$LINENO"; then : 46190 has_static_libstdcxx=yes 46191 else 46192 has_static_libstdcxx=no 46193 fi 46194 rm -f core conftest.err conftest.$ac_objext \ 46195 conftest$ac_exeext conftest.$ac_ext 46196 LIBS="$OLD_LIBS" 46197 CXX="$OLD_CXX" 46198 ac_ext=cpp 46199 ac_cpp='$CXXCPP $CPPFLAGS' 46200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 46201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 46202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 46203 46204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5 46205 $as_echo "$has_static_libstdcxx" >&6; } 46206 46207 if test "x$has_static_libstdcxx" = xno && test "x$has_dynamic_libstdcxx" = xno; then 46208 as_fn_error $? "Cannot link to stdc++, neither dynamically nor statically!" "$LINENO" 5 46209 fi 46210 46211 if test "x$with_stdc__lib" = xstatic && test "x$has_static_libstdcxx" = xno; then 46212 as_fn_error $? "Static linking of libstdc++ was not possible!" "$LINENO" 5 46213 fi 46214 46215 if test "x$with_stdc__lib" = xdynamic && test "x$has_dynamic_libstdcxx" = xno; then 46216 as_fn_error $? "Dynamic linking of libstdc++ was not possible!" "$LINENO" 5 46217 fi 46218 46219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5 46220 $as_echo_n "checking how to link with libstdc++... " >&6; } 46221 # If dynamic was requested, it's available since it would fail above otherwise. 46222 # If dynamic wasn't requested, go with static unless it isn't available. 46223 if test "x$with_stdc__lib" = xdynamic || test "x$has_static_libstdcxx" = xno || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 46224 LIBCXX="$LIBCXX -lstdc++" 46225 LDCXX="$CXX" 46226 STATIC_CXX_SETTING="STATIC_CXX=false" 46227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5 46228 $as_echo "dynamic" >&6; } 46229 else 46230 LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS" 46231 LDCXX="$CC" 46232 STATIC_CXX_SETTING="STATIC_CXX=true" 46233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5 46234 $as_echo "static" >&6; } 46235 fi 46236 fi 46237 46238 46239 if test "x$JVM_VARIANT_ZERO" = xtrue || test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 46240 # Figure out LIBFFI_CFLAGS and LIBFFI_LIBS 46241 46242 pkg_failed=no 46243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBFFI" >&5 46244 $as_echo_n "checking for LIBFFI... " >&6; } 46245 46246 if test -n "$LIBFFI_CFLAGS"; then 46247 pkg_cv_LIBFFI_CFLAGS="$LIBFFI_CFLAGS" 46248 elif test -n "$PKG_CONFIG"; then 46249 if test -n "$PKG_CONFIG" && \ 46250 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 46251 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 46252 ac_status=$? 46253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46254 test $ac_status = 0; }; then 46255 pkg_cv_LIBFFI_CFLAGS=`$PKG_CONFIG --cflags "libffi" 2>/dev/null` 46256 else 46257 pkg_failed=yes 46258 fi 46259 else 46260 pkg_failed=untried 46261 fi 46262 if test -n "$LIBFFI_LIBS"; then 46263 pkg_cv_LIBFFI_LIBS="$LIBFFI_LIBS" 46264 elif test -n "$PKG_CONFIG"; then 46265 if test -n "$PKG_CONFIG" && \ 46266 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libffi\""; } >&5 46267 ($PKG_CONFIG --exists --print-errors "libffi") 2>&5 46268 ac_status=$? 46269 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 46270 test $ac_status = 0; }; then 46271 pkg_cv_LIBFFI_LIBS=`$PKG_CONFIG --libs "libffi" 2>/dev/null` 46272 else 46273 pkg_failed=yes 46274 fi 46275 else 46276 pkg_failed=untried 46277 fi 46278 46279 46280 46281 if test $pkg_failed = yes; then 46282 46283 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 46284 _pkg_short_errors_supported=yes 46285 else 46286 _pkg_short_errors_supported=no 46287 fi 46288 if test $_pkg_short_errors_supported = yes; then 46289 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libffi" 2>&1` 46290 else 46291 LIBFFI_PKG_ERRORS=`$PKG_CONFIG --print-errors "libffi" 2>&1` 46292 fi 46293 # Put the nasty error message in config.log where it belongs 46294 echo "$LIBFFI_PKG_ERRORS" >&5 46295 46296 as_fn_error $? "Package requirements (libffi) were not met: 46297 46298 $LIBFFI_PKG_ERRORS 46299 46300 Consider adjusting the PKG_CONFIG_PATH environment variable if you 46301 installed software in a non-standard prefix. 46302 46303 Alternatively, you may set the environment variables LIBFFI_CFLAGS 46304 and LIBFFI_LIBS to avoid the need to call pkg-config. 46305 See the pkg-config man page for more details. 46306 " "$LINENO" 5 46307 elif test $pkg_failed = untried; then 46308 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 46309 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 46310 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 46311 is in your PATH or set the PKG_CONFIG environment variable to the full 46312 path to pkg-config. 46313 46314 Alternatively, you may set the environment variables LIBFFI_CFLAGS 46315 and LIBFFI_LIBS to avoid the need to call pkg-config. 46316 See the pkg-config man page for more details. 46317 46318 To get pkg-config, see <http://pkg-config.freedesktop.org/>. 46319 See \`config.log' for more details" "$LINENO" 5; } 46320 else 46321 LIBFFI_CFLAGS=$pkg_cv_LIBFFI_CFLAGS 46322 LIBFFI_LIBS=$pkg_cv_LIBFFI_LIBS 46323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46324 $as_echo "yes" >&6; } 46325 : 46326 fi 46327 46328 fi 46329 46330 if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then 46331 # Extract the first word of "llvm-config", so it can be a program name with args. 46332 set dummy llvm-config; ac_word=$2 46333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 46334 $as_echo_n "checking for $ac_word... " >&6; } 46335 if ${ac_cv_prog_LLVM_CONFIG+:} false; then : 46336 $as_echo_n "(cached) " >&6 46337 else 46338 if test -n "$LLVM_CONFIG"; then 46339 ac_cv_prog_LLVM_CONFIG="$LLVM_CONFIG" # Let the user override the test. 46340 else 46341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 46342 for as_dir in $PATH 46343 do 46344 IFS=$as_save_IFS 46345 test -z "$as_dir" && as_dir=. 46346 for ac_exec_ext in '' $ac_executable_extensions; do 46347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 46348 ac_cv_prog_LLVM_CONFIG="llvm-config" 46349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 46350 break 2 46351 fi 46352 done 46353 done 46354 IFS=$as_save_IFS 46355 46356 fi 46357 fi 46358 LLVM_CONFIG=$ac_cv_prog_LLVM_CONFIG 46359 if test -n "$LLVM_CONFIG"; then 46360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVM_CONFIG" >&5 46361 $as_echo "$LLVM_CONFIG" >&6; } 46362 else 46363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46364 $as_echo "no" >&6; } 46365 fi 46366 46367 46368 46369 if test "x$LLVM_CONFIG" != xllvm-config; then 46370 as_fn_error $? "llvm-config not found in $PATH." "$LINENO" 5 46371 fi 46372 46373 llvm_components="jit mcjit engine nativecodegen native" 46374 unset LLVM_CFLAGS 46375 for flag in $("$LLVM_CONFIG" --cxxflags); do 46376 if echo "${flag}" | grep -q '^-[ID]'; then 46377 if test "${flag}" != "-D_DEBUG" ; then 46378 if test "${LLVM_CFLAGS}" != "" ; then 46379 LLVM_CFLAGS="${LLVM_CFLAGS} " 46380 fi 46381 LLVM_CFLAGS="${LLVM_CFLAGS}${flag}" 46382 fi 46383 fi 46384 done 46385 llvm_version=$("${LLVM_CONFIG}" --version | sed 's/\.//; s/svn.*//') 46386 LLVM_CFLAGS="${LLVM_CFLAGS} -DSHARK_LLVM_VERSION=${llvm_version}" 46387 46388 unset LLVM_LDFLAGS 46389 for flag in $("${LLVM_CONFIG}" --ldflags); do 46390 if echo "${flag}" | grep -q '^-L'; then 46391 if test "${LLVM_LDFLAGS}" != ""; then 46392 LLVM_LDFLAGS="${LLVM_LDFLAGS} " 46393 fi 46394 LLVM_LDFLAGS="${LLVM_LDFLAGS}${flag}" 46395 fi 46396 done 46397 46398 unset LLVM_LIBS 46399 for flag in $("${LLVM_CONFIG}" --libs ${llvm_components}); do 46400 if echo "${flag}" | grep -q '^-l'; then 46401 if test "${LLVM_LIBS}" != ""; then 46402 LLVM_LIBS="${LLVM_LIBS} " 46403 fi 46404 LLVM_LIBS="${LLVM_LIBS}${flag}" 46405 fi 46406 done 46407 46408 46409 46410 46411 fi 46412 46413 # libCrun is the c++ runtime-library with SunStudio (roughly the equivalent of gcc's libstdc++.so) 46414 if test "x$TOOLCHAIN_TYPE" = xsolstudio && test "x$LIBCXX" = x; then 46415 LIBCXX="/usr/lib${OPENJDK_TARGET_CPU_ISADIR}/libCrun.so.1" 46416 fi 46417 46418 # TODO better (platform agnostic) test 46419 if test "x$OPENJDK_TARGET_OS" = xmacosx && test "x$LIBCXX" = x && test "x$TOOLCHAIN_TYPE" = xgcc; then 46420 LIBCXX="-lstdc++" 46421 fi 46422 46423 46424 46425 46426 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 46427 46428 46429 # Check whether --with-msvcr-dll was given. 46430 if test "${with_msvcr_dll+set}" = set; then : 46431 withval=$with_msvcr_dll; 46432 fi 46433 46434 46435 if test "x$with_msvcr_dll" != x; then 46436 # If given explicitely by user, do not probe. If not present, fail directly. 46437 46438 POSSIBLE_MSVCR_DLL="$with_msvcr_dll" 46439 METHOD="--with-msvcr-dll" 46440 if test -e "$POSSIBLE_MSVCR_DLL"; then 46441 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46442 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46443 46444 # Need to check if the found msvcr is correct architecture 46445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46446 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46447 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46448 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46449 CORRECT_MSVCR_ARCH=386 46450 else 46451 CORRECT_MSVCR_ARCH=x86-64 46452 fi 46453 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46455 $as_echo "ok" >&6; } 46456 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46458 $as_echo_n "checking for msvcr100.dll... " >&6; } 46459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46460 $as_echo "$MSVCR_DLL" >&6; } 46461 else 46462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46463 $as_echo "incorrect, ignoring" >&6; } 46464 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46465 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46466 fi 46467 fi 46468 46469 if test "x$MSVCR_DLL" = x; then 46470 as_fn_error $? "Could not find a proper msvcr100.dll as specified by --with-msvcr-dll" "$LINENO" 5 46471 fi 46472 fi 46473 46474 if test "x$MSVCR_DLL" = x; then 46475 # Probe: Using well-known location from Visual Studio 10.0 46476 if test "x$VCINSTALLDIR" != x; then 46477 CYGWIN_VC_INSTALL_DIR="$VCINSTALLDIR" 46478 46479 windows_path="$CYGWIN_VC_INSTALL_DIR" 46480 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46481 unix_path=`$CYGPATH -u "$windows_path"` 46482 CYGWIN_VC_INSTALL_DIR="$unix_path" 46483 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46484 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46485 CYGWIN_VC_INSTALL_DIR="$unix_path" 46486 fi 46487 46488 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46489 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x64/Microsoft.VC100.CRT/msvcr100.dll" 46490 else 46491 POSSIBLE_MSVCR_DLL="$CYGWIN_VC_INSTALL_DIR/redist/x86/Microsoft.VC100.CRT/msvcr100.dll" 46492 fi 46493 46494 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46495 METHOD="well-known location in VCINSTALLDIR" 46496 if test -e "$POSSIBLE_MSVCR_DLL"; then 46497 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46498 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46499 46500 # Need to check if the found msvcr is correct architecture 46501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46502 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46503 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46504 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46505 CORRECT_MSVCR_ARCH=386 46506 else 46507 CORRECT_MSVCR_ARCH=x86-64 46508 fi 46509 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46511 $as_echo "ok" >&6; } 46512 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46514 $as_echo_n "checking for msvcr100.dll... " >&6; } 46515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46516 $as_echo "$MSVCR_DLL" >&6; } 46517 else 46518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46519 $as_echo "incorrect, ignoring" >&6; } 46520 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46521 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46522 fi 46523 fi 46524 46525 fi 46526 fi 46527 46528 if test "x$MSVCR_DLL" = x; then 46529 # Probe: Check in the Boot JDK directory. 46530 POSSIBLE_MSVCR_DLL="$BOOT_JDK/bin/msvcr100.dll" 46531 46532 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46533 METHOD="well-known location in Boot JDK" 46534 if test -e "$POSSIBLE_MSVCR_DLL"; then 46535 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46536 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46537 46538 # Need to check if the found msvcr is correct architecture 46539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46540 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46541 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46542 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46543 CORRECT_MSVCR_ARCH=386 46544 else 46545 CORRECT_MSVCR_ARCH=x86-64 46546 fi 46547 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46549 $as_echo "ok" >&6; } 46550 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46552 $as_echo_n "checking for msvcr100.dll... " >&6; } 46553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46554 $as_echo "$MSVCR_DLL" >&6; } 46555 else 46556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46557 $as_echo "incorrect, ignoring" >&6; } 46558 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46559 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46560 fi 46561 fi 46562 46563 fi 46564 46565 if test "x$MSVCR_DLL" = x; then 46566 # Probe: Look in the Windows system32 directory 46567 CYGWIN_SYSTEMROOT="$SYSTEMROOT" 46568 46569 windows_path="$CYGWIN_SYSTEMROOT" 46570 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46571 unix_path=`$CYGPATH -u "$windows_path"` 46572 CYGWIN_SYSTEMROOT="$unix_path" 46573 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46574 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46575 CYGWIN_SYSTEMROOT="$unix_path" 46576 fi 46577 46578 POSSIBLE_MSVCR_DLL="$CYGWIN_SYSTEMROOT/system32/msvcr100.dll" 46579 46580 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46581 METHOD="well-known location in SYSTEMROOT" 46582 if test -e "$POSSIBLE_MSVCR_DLL"; then 46583 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46584 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46585 46586 # Need to check if the found msvcr is correct architecture 46587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46588 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46589 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46590 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46591 CORRECT_MSVCR_ARCH=386 46592 else 46593 CORRECT_MSVCR_ARCH=x86-64 46594 fi 46595 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46597 $as_echo "ok" >&6; } 46598 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46600 $as_echo_n "checking for msvcr100.dll... " >&6; } 46601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46602 $as_echo "$MSVCR_DLL" >&6; } 46603 else 46604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46605 $as_echo "incorrect, ignoring" >&6; } 46606 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46607 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46608 fi 46609 fi 46610 46611 fi 46612 46613 if test "x$MSVCR_DLL" = x; then 46614 # Probe: If Visual Studio Express is installed, there is usually one with the debugger 46615 if test "x$VS100COMNTOOLS" != x; then 46616 CYGWIN_VS_TOOLS_DIR="$VS100COMNTOOLS/.." 46617 46618 windows_path="$CYGWIN_VS_TOOLS_DIR" 46619 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46620 unix_path=`$CYGPATH -u "$windows_path"` 46621 CYGWIN_VS_TOOLS_DIR="$unix_path" 46622 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46623 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46624 CYGWIN_VS_TOOLS_DIR="$unix_path" 46625 fi 46626 46627 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46628 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x64/ | $HEAD --lines 1` 46629 else 46630 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VS_TOOLS_DIR" -name msvcr100.dll | $GREP -i /x86/ | $HEAD --lines 1` 46631 fi 46632 46633 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46634 METHOD="search of VS100COMNTOOLS" 46635 if test -e "$POSSIBLE_MSVCR_DLL"; then 46636 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46637 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46638 46639 # Need to check if the found msvcr is correct architecture 46640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46641 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46642 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46643 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46644 CORRECT_MSVCR_ARCH=386 46645 else 46646 CORRECT_MSVCR_ARCH=x86-64 46647 fi 46648 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46650 $as_echo "ok" >&6; } 46651 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46653 $as_echo_n "checking for msvcr100.dll... " >&6; } 46654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46655 $as_echo "$MSVCR_DLL" >&6; } 46656 else 46657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46658 $as_echo "incorrect, ignoring" >&6; } 46659 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46660 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46661 fi 46662 fi 46663 46664 fi 46665 fi 46666 46667 if test "x$MSVCR_DLL" = x; then 46668 # Probe: Search wildly in the VCINSTALLDIR. We've probably lost by now. 46669 # (This was the original behaviour; kept since it might turn up something) 46670 if test "x$CYGWIN_VC_INSTALL_DIR" != x; then 46671 if test "x$OPENJDK_TARGET_CPU_BITS" = x64; then 46672 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x64 | $HEAD --lines 1` 46673 else 46674 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $GREP x86 | $GREP -v ia64 | $GREP -v x64 | $HEAD --lines 1` 46675 if test "x$POSSIBLE_MSVCR_DLL" = x; then 46676 # We're grasping at straws now... 46677 POSSIBLE_MSVCR_DLL=`$FIND "$CYGWIN_VC_INSTALL_DIR" -name msvcr100.dll | $HEAD --lines 1` 46678 fi 46679 fi 46680 46681 46682 POSSIBLE_MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46683 METHOD="search of VCINSTALLDIR" 46684 if test -e "$POSSIBLE_MSVCR_DLL"; then 46685 { $as_echo "$as_me:${as_lineno-$LINENO}: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&5 46686 $as_echo "$as_me: Found msvcr100.dll at $POSSIBLE_MSVCR_DLL using $METHOD" >&6;} 46687 46688 # Need to check if the found msvcr is correct architecture 46689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking found msvcr100.dll architecture" >&5 46690 $as_echo_n "checking found msvcr100.dll architecture... " >&6; } 46691 MSVCR_DLL_FILETYPE=`$FILE -b "$POSSIBLE_MSVCR_DLL"` 46692 if test "x$OPENJDK_TARGET_CPU_BITS" = x32; then 46693 CORRECT_MSVCR_ARCH=386 46694 else 46695 CORRECT_MSVCR_ARCH=x86-64 46696 fi 46697 if $ECHO "$MSVCR_DLL_FILETYPE" | $GREP $CORRECT_MSVCR_ARCH 2>&1 > /dev/null; then 46698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 46699 $as_echo "ok" >&6; } 46700 MSVCR_DLL="$POSSIBLE_MSVCR_DLL" 46701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46702 $as_echo_n "checking for msvcr100.dll... " >&6; } 46703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR_DLL" >&5 46704 $as_echo "$MSVCR_DLL" >&6; } 46705 else 46706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: incorrect, ignoring" >&5 46707 $as_echo "incorrect, ignoring" >&6; } 46708 { $as_echo "$as_me:${as_lineno-$LINENO}: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&5 46709 $as_echo "$as_me: The file type of the located msvcr100.dll is $MSVCR_DLL_FILETYPE" >&6;} 46710 fi 46711 fi 46712 46713 fi 46714 fi 46715 46716 if test "x$MSVCR_DLL" = x; then 46717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5 46718 $as_echo_n "checking for msvcr100.dll... " >&6; } 46719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46720 $as_echo "no" >&6; } 46721 as_fn_error $? "Could not find msvcr100.dll. Please specify using --with-msvcr-dll." "$LINENO" 5 46722 fi 46723 46724 46725 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46726 46727 # Input might be given as Windows format, start by converting to 46728 # unix format. 46729 path="$MSVCR_DLL" 46730 new_path=`$CYGPATH -u "$path"` 46731 46732 # Cygwin tries to hide some aspects of the Windows file system, such that binaries are 46733 # named .exe but called without that suffix. Therefore, "foo" and "foo.exe" are considered 46734 # the same file, most of the time (as in "test -f"). But not when running cygpath -s, then 46735 # "foo.exe" is OK but "foo" is an error. 46736 # 46737 # This test is therefore slightly more accurate than "test -f" to check for file precense. 46738 # It is also a way to make sure we got the proper file name for the real test later on. 46739 test_shortpath=`$CYGPATH -s -m "$new_path" 2> /dev/null` 46740 if test "x$test_shortpath" = x; then 46741 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 46742 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 46743 as_fn_error $? "Cannot locate the the path of MSVCR_DLL" "$LINENO" 5 46744 fi 46745 46746 # Call helper function which possibly converts this using DOS-style short mode. 46747 # If so, the updated path is stored in $new_path. 46748 46749 input_path="$new_path" 46750 # Check if we need to convert this using DOS-style short mode. If the path 46751 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46752 # take no chances and rewrite it. 46753 # Note: m4 eats our [], so we need to use [ and ] instead. 46754 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-._/a-zA-Z0-9]` 46755 if test "x$has_forbidden_chars" != x; then 46756 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46757 shortmode_path=`$CYGPATH -s -m -a "$input_path"` 46758 path_after_shortmode=`$CYGPATH -u "$shortmode_path"` 46759 if test "x$path_after_shortmode" != "x$input_to_shortpath"; then 46760 # Going to short mode and back again did indeed matter. Since short mode is 46761 # case insensitive, let's make it lowercase to improve readability. 46762 shortmode_path=`$ECHO "$shortmode_path" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46763 # Now convert it back to Unix-stile (cygpath) 46764 input_path=`$CYGPATH -u "$shortmode_path"` 46765 new_path="$input_path" 46766 fi 46767 fi 46768 46769 test_cygdrive_prefix=`$ECHO $input_path | $GREP ^/cygdrive/` 46770 if test "x$test_cygdrive_prefix" = x; then 46771 # As a simple fix, exclude /usr/bin since it's not a real path. 46772 if test "x`$ECHO $new_path | $GREP ^/usr/bin/`" = x; then 46773 # The path is in a Cygwin special directory (e.g. /home). We need this converted to 46774 # a path prefixed by /cygdrive for fixpath to work. 46775 new_path="$CYGWIN_ROOT_PATH$input_path" 46776 fi 46777 fi 46778 46779 46780 if test "x$path" != "x$new_path"; then 46781 MSVCR_DLL="$new_path" 46782 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 46783 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 46784 fi 46785 46786 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46787 46788 path="$MSVCR_DLL" 46789 has_colon=`$ECHO $path | $GREP ^.:` 46790 new_path="$path" 46791 if test "x$has_colon" = x; then 46792 # Not in mixed or Windows style, start by that. 46793 new_path=`cmd //c echo $path` 46794 fi 46795 46796 46797 input_path="$new_path" 46798 # Check if we need to convert this using DOS-style short mode. If the path 46799 # contains just simple characters, use it. Otherwise (spaces, weird characters), 46800 # take no chances and rewrite it. 46801 # Note: m4 eats our [], so we need to use [ and ] instead. 46802 has_forbidden_chars=`$ECHO "$input_path" | $GREP [^-_/:a-zA-Z0-9]` 46803 if test "x$has_forbidden_chars" != x; then 46804 # Now convert it to mixed DOS-style, short mode (no spaces, and / instead of \) 46805 new_path=`cmd /c "for %A in (\"$input_path\") do @echo %~sA"|$TR \\\\\\\\ / | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'` 46806 fi 46807 46808 46809 windows_path="$new_path" 46810 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.cygwin"; then 46811 unix_path=`$CYGPATH -u "$windows_path"` 46812 new_path="$unix_path" 46813 elif test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 46814 unix_path=`$ECHO "$windows_path" | $SED -e 's,^\\(.\\):,/\\1,g' -e 's,\\\\,/,g'` 46815 new_path="$unix_path" 46816 fi 46817 46818 if test "x$path" != "x$new_path"; then 46819 MSVCR_DLL="$new_path" 46820 { $as_echo "$as_me:${as_lineno-$LINENO}: Rewriting MSVCR_DLL to \"$new_path\"" >&5 46821 $as_echo "$as_me: Rewriting MSVCR_DLL to \"$new_path\"" >&6;} 46822 fi 46823 46824 # Save the first 10 bytes of this path to the storage, so fixpath can work. 46825 all_fixpath_prefixes=("${all_fixpath_prefixes[@]}" "${new_path:0:10}") 46826 46827 else 46828 # We're on a posix platform. Hooray! :) 46829 path="$MSVCR_DLL" 46830 has_space=`$ECHO "$path" | $GREP " "` 46831 if test "x$has_space" != x; then 46832 { $as_echo "$as_me:${as_lineno-$LINENO}: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&5 46833 $as_echo "$as_me: The path of MSVCR_DLL, which resolves as \"$path\", is invalid." >&6;} 46834 as_fn_error $? "Spaces are not allowed in this path." "$LINENO" 5 46835 fi 46836 46837 # Use eval to expand a potential ~ 46838 eval path="$path" 46839 if test ! -f "$path" && test ! -d "$path"; then 46840 as_fn_error $? "The path of MSVCR_DLL, which resolves as \"$path\", is not found." "$LINENO" 5 46841 fi 46842 46843 MSVCR_DLL="`cd "$path"; $THEPWDCMD -L`" 46844 fi 46845 46846 46847 46848 46849 # Check whether --with-dxsdk was given. 46850 if test "${with_dxsdk+set}" = set; then : 46851 withval=$with_dxsdk; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&5 46852 $as_echo "$as_me: WARNING: Option --with-dxsdk is deprecated and will be ignored." >&2;} 46853 fi 46854 46855 46856 46857 46858 # Check whether --with-dxsdk-lib was given. 46859 if test "${with_dxsdk_lib+set}" = set; then : 46860 withval=$with_dxsdk_lib; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&5 46861 $as_echo "$as_me: WARNING: Option --with-dxsdk-lib is deprecated and will be ignored." >&2;} 46862 fi 46863 46864 46865 46866 46867 # Check whether --with-dxsdk-include was given. 46868 if test "${with_dxsdk_include+set}" = set; then : 46869 withval=$with_dxsdk_include; { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&5 46870 $as_echo "$as_me: WARNING: Option --with-dxsdk-include is deprecated and will be ignored." >&2;} 46871 fi 46872 46873 46874 fi 46875 46876 46877 46878 ############################################################################### 46879 # 46880 # We need to do some final tweaking, when everything else is done. 46881 # 46882 ############################################################################### 46883 46884 46885 HOTSPOT_MAKE_ARGS="$HOTSPOT_TARGET" 46886 46887 46888 # The name of the Service Agent jar. 46889 SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}" 46890 if test "x$OPENJDK_TARGET_OS" = "xwindows"; then 46891 SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}" 46892 fi 46893 46894 46895 46896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if elliptic curve crypto implementation is present" >&5 46897 $as_echo_n "checking if elliptic curve crypto implementation is present... " >&6; } 46898 46899 if test -d "${SRC_ROOT}/jdk/src/share/native/sun/security/ec/impl"; then 46900 ENABLE_INTREE_EC=yes 46901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 46902 $as_echo "yes" >&6; } 46903 else 46904 ENABLE_INTREE_EC=no 46905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 46906 $as_echo "no" >&6; } 46907 fi 46908 46909 46910 46911 46912 ############################################################################### 46913 # 46914 # Configure parts of the build that only affect the build performance, 46915 # not the result. 46916 # 46917 ############################################################################### 46918 46919 46920 # How many cores do we have on this build system? 46921 46922 # Check whether --with-num-cores was given. 46923 if test "${with_num_cores+set}" = set; then : 46924 withval=$with_num_cores; 46925 fi 46926 46927 if test "x$with_num_cores" = x; then 46928 # The number of cores were not specified, try to probe them. 46929 46930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5 46931 $as_echo_n "checking for number of cores... " >&6; } 46932 NUM_CORES=1 46933 FOUND_CORES=no 46934 46935 if test -f /proc/cpuinfo; then 46936 # Looks like a Linux (or cygwin) system 46937 NUM_CORES=`cat /proc/cpuinfo | grep -c processor` 46938 FOUND_CORES=yes 46939 elif test -x /usr/sbin/psrinfo; then 46940 # Looks like a Solaris system 46941 NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line` 46942 FOUND_CORES=yes 46943 elif test -x /usr/sbin/system_profiler; then 46944 # Looks like a MacOSX system 46945 NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk '{print $5}'` 46946 FOUND_CORES=yes 46947 elif test "x$OPENJDK_BUILD_OS" = xaix ; then 46948 NUM_CORES=`/usr/sbin/prtconf | grep "^Number Of Processors" | awk '{ print $4 }'` 46949 FOUND_CORES=yes 46950 elif test -n "$NUMBER_OF_PROCESSORS"; then 46951 # On windows, look in the env 46952 NUM_CORES=$NUMBER_OF_PROCESSORS 46953 FOUND_CORES=yes 46954 fi 46955 46956 if test "x$FOUND_CORES" = xyes; then 46957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5 46958 $as_echo "$NUM_CORES" >&6; } 46959 else 46960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1" >&5 46961 $as_echo "could not detect number of cores, defaulting to 1" >&6; } 46962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This will disable all parallelism from build!" >&5 46963 $as_echo "$as_me: WARNING: This will disable all parallelism from build!" >&2;} 46964 fi 46965 46966 else 46967 NUM_CORES=$with_num_cores 46968 fi 46969 46970 46971 46972 # How much memory do we have on this build system? 46973 46974 # Check whether --with-memory-size was given. 46975 if test "${with_memory_size+set}" = set; then : 46976 withval=$with_memory_size; 46977 fi 46978 46979 if test "x$with_memory_size" = x; then 46980 # The memory size was not specified, try to probe it. 46981 46982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5 46983 $as_echo_n "checking for memory size... " >&6; } 46984 # Default to 1024 MB 46985 MEMORY_SIZE=1024 46986 FOUND_MEM=no 46987 46988 if test -f /proc/meminfo; then 46989 # Looks like a Linux (or cygwin) system 46990 MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'` 46991 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024` 46992 FOUND_MEM=yes 46993 elif test -x /usr/sbin/prtconf; then 46994 # Looks like a Solaris or AIX system 46995 MEMORY_SIZE=`/usr/sbin/prtconf | grep "^Memory [Ss]ize" | awk '{ print $3 }'` 46996 FOUND_MEM=yes 46997 elif test -x /usr/sbin/system_profiler; then 46998 # Looks like a MacOSX system 46999 MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk '{print $2}'` 47000 MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024` 47001 FOUND_MEM=yes 47002 elif test "x$OPENJDK_BUILD_OS" = xwindows; then 47003 # Windows, but without cygwin 47004 MEMORY_SIZE=`wmic computersystem get totalphysicalmemory -value | grep = | cut -d "=" -f 2-` 47005 MEMORY_SIZE=`expr $MEMORY_SIZE / 1024 / 1024` 47006 FOUND_MEM=yes 47007 fi 47008 47009 if test "x$FOUND_MEM" = xyes; then 47010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5 47011 $as_echo "$MEMORY_SIZE MB" >&6; } 47012 else 47013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size, defaulting to 1024 MB" >&5 47014 $as_echo "could not detect memory size, defaulting to 1024 MB" >&6; } 47015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This might seriously impact build performance!" >&5 47016 $as_echo "$as_me: WARNING: This might seriously impact build performance!" >&2;} 47017 fi 47018 47019 else 47020 MEMORY_SIZE=$with_memory_size 47021 fi 47022 47023 47024 47025 # Provide a decent default number of parallel jobs for make depending on 47026 # number of cores, amount of memory and machine architecture. 47027 47028 # Check whether --with-jobs was given. 47029 if test "${with_jobs+set}" = set; then : 47030 withval=$with_jobs; 47031 fi 47032 47033 if test "x$with_jobs" = x; then 47034 # Number of jobs was not specified, calculate. 47035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for appropriate number of jobs to run in parallel" >&5 47036 $as_echo_n "checking for appropriate number of jobs to run in parallel... " >&6; } 47037 # Approximate memory in GB, rounding up a bit. 47038 memory_gb=`expr $MEMORY_SIZE / 1100` 47039 # Pick the lowest of memory in gb and number of cores. 47040 if test "$memory_gb" -lt "$NUM_CORES"; then 47041 JOBS="$memory_gb" 47042 else 47043 JOBS="$NUM_CORES" 47044 # On bigger machines, leave some room for other processes to run 47045 if test "$JOBS" -gt "4"; then 47046 JOBS=`expr $JOBS '*' 90 / 100` 47047 fi 47048 fi 47049 # Cap number of jobs to 16 47050 if test "$JOBS" -gt "16"; then 47051 JOBS=16 47052 fi 47053 if test "$JOBS" -eq "0"; then 47054 JOBS=1 47055 fi 47056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JOBS" >&5 47057 $as_echo "$JOBS" >&6; } 47058 else 47059 JOBS=$with_jobs 47060 fi 47061 47062 47063 47064 # Setup smart javac (after cores and memory have been setup) 47065 47066 47067 # Check whether --with-sjavac-server-java was given. 47068 if test "${with_sjavac_server_java+set}" = set; then : 47069 withval=$with_sjavac_server_java; 47070 fi 47071 47072 47073 if test "x$with_sjavac_server_java" != x; then 47074 SJAVAC_SERVER_JAVA="$with_sjavac_server_java" 47075 FOUND_VERSION=`$SJAVAC_SERVER_JAVA -version 2>&1 | grep " version \""` 47076 if test "x$FOUND_VERSION" = x; then 47077 as_fn_error $? "Could not execute server java: $SJAVAC_SERVER_JAVA" "$LINENO" 5 47078 fi 47079 else 47080 SJAVAC_SERVER_JAVA="" 47081 # Hotspot specific options. 47082 47083 $ECHO "Check if jvm arg is ok: -verbosegc" >&5 47084 $ECHO "Command: $JAVA -verbosegc -version" >&5 47085 OUTPUT=`$JAVA -verbosegc -version 2>&1` 47086 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47087 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47088 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47089 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -verbosegc" 47090 JVM_ARG_OK=true 47091 else 47092 $ECHO "Arg failed:" >&5 47093 $ECHO "$OUTPUT" >&5 47094 JVM_ARG_OK=false 47095 fi 47096 47097 # JRockit specific options. 47098 47099 $ECHO "Check if jvm arg is ok: -Xverbose:gc" >&5 47100 $ECHO "Command: $JAVA -Xverbose:gc -version" >&5 47101 OUTPUT=`$JAVA -Xverbose:gc -version 2>&1` 47102 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47103 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47104 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47105 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xverbose:gc" 47106 JVM_ARG_OK=true 47107 else 47108 $ECHO "Arg failed:" >&5 47109 $ECHO "$OUTPUT" >&5 47110 JVM_ARG_OK=false 47111 fi 47112 47113 SJAVAC_SERVER_JAVA="$JAVA $SJAVAC_SERVER_JAVA" 47114 fi 47115 47116 47117 if test "$MEMORY_SIZE" -gt "2500"; then 47118 47119 $ECHO "Check if jvm arg is ok: -d64" >&5 47120 $ECHO "Command: $SJAVAC_SERVER_JAVA -d64 -version" >&5 47121 OUTPUT=`$SJAVAC_SERVER_JAVA -d64 -version 2>&1` 47122 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47123 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47124 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47125 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -d64" 47126 JVM_ARG_OK=true 47127 else 47128 $ECHO "Arg failed:" >&5 47129 $ECHO "$OUTPUT" >&5 47130 JVM_ARG_OK=false 47131 fi 47132 47133 if test "$JVM_ARG_OK" = true; then 47134 JVM_64BIT=true 47135 JVM_ARG_OK=false 47136 fi 47137 fi 47138 47139 if test "$JVM_64BIT" = true; then 47140 if test "$MEMORY_SIZE" -gt "17000"; then 47141 47142 $ECHO "Check if jvm arg is ok: -Xms10G -Xmx10G" >&5 47143 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version" >&5 47144 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G -version 2>&1` 47145 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47146 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47147 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47148 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms10G -Xmx10G" 47149 JVM_ARG_OK=true 47150 else 47151 $ECHO "Arg failed:" >&5 47152 $ECHO "$OUTPUT" >&5 47153 JVM_ARG_OK=false 47154 fi 47155 47156 fi 47157 if test "$MEMORY_SIZE" -gt "10000" && test "$JVM_ARG_OK" = false; then 47158 47159 $ECHO "Check if jvm arg is ok: -Xms6G -Xmx6G" >&5 47160 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version" >&5 47161 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G -version 2>&1` 47162 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47163 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47164 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47165 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms6G -Xmx6G" 47166 JVM_ARG_OK=true 47167 else 47168 $ECHO "Arg failed:" >&5 47169 $ECHO "$OUTPUT" >&5 47170 JVM_ARG_OK=false 47171 fi 47172 47173 fi 47174 if test "$MEMORY_SIZE" -gt "5000" && test "$JVM_ARG_OK" = false; then 47175 47176 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx3G" >&5 47177 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version" >&5 47178 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G -version 2>&1` 47179 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47180 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47181 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47182 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx3G" 47183 JVM_ARG_OK=true 47184 else 47185 $ECHO "Arg failed:" >&5 47186 $ECHO "$OUTPUT" >&5 47187 JVM_ARG_OK=false 47188 fi 47189 47190 fi 47191 if test "$MEMORY_SIZE" -gt "3800" && test "$JVM_ARG_OK" = false; then 47192 47193 $ECHO "Check if jvm arg is ok: -Xms1G -Xmx2500M" >&5 47194 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version" >&5 47195 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1` 47196 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47197 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47198 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47199 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1G -Xmx2500M" 47200 JVM_ARG_OK=true 47201 else 47202 $ECHO "Arg failed:" >&5 47203 $ECHO "$OUTPUT" >&5 47204 JVM_ARG_OK=false 47205 fi 47206 47207 fi 47208 fi 47209 if test "$MEMORY_SIZE" -gt "2500" && test "$JVM_ARG_OK" = false; then 47210 47211 $ECHO "Check if jvm arg is ok: -Xms1000M -Xmx1500M" >&5 47212 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version" >&5 47213 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M -version 2>&1` 47214 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47215 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47216 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47217 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms1000M -Xmx1500M" 47218 JVM_ARG_OK=true 47219 else 47220 $ECHO "Arg failed:" >&5 47221 $ECHO "$OUTPUT" >&5 47222 JVM_ARG_OK=false 47223 fi 47224 47225 fi 47226 if test "$MEMORY_SIZE" -gt "1000" && test "$JVM_ARG_OK" = false; then 47227 47228 $ECHO "Check if jvm arg is ok: -Xms400M -Xmx1100M" >&5 47229 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version" >&5 47230 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M -version 2>&1` 47231 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47232 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47233 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47234 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms400M -Xmx1100M" 47235 JVM_ARG_OK=true 47236 else 47237 $ECHO "Arg failed:" >&5 47238 $ECHO "$OUTPUT" >&5 47239 JVM_ARG_OK=false 47240 fi 47241 47242 fi 47243 if test "$JVM_ARG_OK" = false; then 47244 47245 $ECHO "Check if jvm arg is ok: -Xms256M -Xmx512M" >&5 47246 $ECHO "Command: $SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version" >&5 47247 OUTPUT=`$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M -version 2>&1` 47248 FOUND_WARN=`$ECHO "$OUTPUT" | grep -i warn` 47249 FOUND_VERSION=`$ECHO $OUTPUT | grep " version \""` 47250 if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then 47251 SJAVAC_SERVER_JAVA="$SJAVAC_SERVER_JAVA -Xms256M -Xmx512M" 47252 JVM_ARG_OK=true 47253 else 47254 $ECHO "Arg failed:" >&5 47255 $ECHO "$OUTPUT" >&5 47256 JVM_ARG_OK=false 47257 fi 47258 47259 fi 47260 47261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use sjavac" >&5 47262 $as_echo_n "checking whether to use sjavac... " >&6; } 47263 # Check whether --enable-sjavac was given. 47264 if test "${enable_sjavac+set}" = set; then : 47265 enableval=$enable_sjavac; ENABLE_SJAVAC="${enableval}" 47266 else 47267 ENABLE_SJAVAC='no' 47268 fi 47269 47270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_SJAVAC" >&5 47271 $as_echo "$ENABLE_SJAVAC" >&6; } 47272 47273 47274 if test "x$ENABLE_SJAVAC" = xyes; then 47275 SJAVAC_SERVER_DIR="$OUTPUT_ROOT/javacservers" 47276 else 47277 SJAVAC_SERVER_DIR= 47278 fi 47279 47280 47281 47282 # Can the C/C++ compiler use precompiled headers? 47283 47284 47285 ############################################################################### 47286 # 47287 # Can the C/C++ compiler use precompiled headers? 47288 # 47289 # Check whether --enable-precompiled-headers was given. 47290 if test "${enable_precompiled_headers+set}" = set; then : 47291 enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled_headers} 47292 else 47293 ENABLE_PRECOMPH=yes 47294 fi 47295 47296 47297 USE_PRECOMPILED_HEADER=1 47298 if test "x$ENABLE_PRECOMPH" = xno; then 47299 USE_PRECOMPILED_HEADER=0 47300 fi 47301 47302 if test "x$ENABLE_PRECOMPH" = xyes; then 47303 # Check that the compiler actually supports precomp headers. 47304 if test "x$TOOLCHAIN_TYPE" = xgcc; then 47305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5 47306 $as_echo_n "checking that precompiled headers work... " >&6; } 47307 echo "int alfa();" > conftest.h 47308 $CXX -x c++-header conftest.h -o conftest.hpp.gch 2>&5 >&5 47309 if test ! -f conftest.hpp.gch; then 47310 USE_PRECOMPILED_HEADER=0 47311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47312 $as_echo "no" >&6; } 47313 else 47314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47315 $as_echo "yes" >&6; } 47316 fi 47317 rm -f conftest.h conftest.hpp.gch 47318 fi 47319 fi 47320 47321 47322 47323 47324 # Setup use of ccache, if available 47325 47326 # Check whether --enable-ccache was given. 47327 if test "${enable_ccache+set}" = set; then : 47328 enableval=$enable_ccache; 47329 fi 47330 47331 47332 CCACHE= 47333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking is ccache enabled" >&5 47334 $as_echo_n "checking is ccache enabled... " >&6; } 47335 ENABLE_CCACHE=$enable_ccache 47336 if test "x$enable_ccache" = xyes; then 47337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47338 $as_echo "yes" >&6; } 47339 OLD_PATH="$PATH" 47340 if test "x$TOOLS_DIR" != x; then 47341 PATH=$TOOLS_DIR:$PATH 47342 fi 47343 47344 47345 47346 # Publish this variable in the help. 47347 47348 47349 if test "x$CCACHE" = x; then 47350 # The variable is not set by user, try to locate tool using the code snippet 47351 for ac_prog in ccache 47352 do 47353 # Extract the first word of "$ac_prog", so it can be a program name with args. 47354 set dummy $ac_prog; ac_word=$2 47355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47356 $as_echo_n "checking for $ac_word... " >&6; } 47357 if ${ac_cv_path_CCACHE+:} false; then : 47358 $as_echo_n "(cached) " >&6 47359 else 47360 case $CCACHE in 47361 [\\/]* | ?:[\\/]*) 47362 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 47363 ;; 47364 *) 47365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47366 for as_dir in $PATH 47367 do 47368 IFS=$as_save_IFS 47369 test -z "$as_dir" && as_dir=. 47370 for ac_exec_ext in '' $ac_executable_extensions; do 47371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47372 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 47373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47374 break 2 47375 fi 47376 done 47377 done 47378 IFS=$as_save_IFS 47379 47380 ;; 47381 esac 47382 fi 47383 CCACHE=$ac_cv_path_CCACHE 47384 if test -n "$CCACHE"; then 47385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 47386 $as_echo "$CCACHE" >&6; } 47387 else 47388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47389 $as_echo "no" >&6; } 47390 fi 47391 47392 47393 test -n "$CCACHE" && break 47394 done 47395 47396 else 47397 # The variable is set, but is it from the command line or the environment? 47398 47399 # Try to remove the string !CCACHE! from our list. 47400 try_remove_var=${CONFIGURE_OVERRIDDEN_VARIABLES//!CCACHE!/} 47401 if test "x$try_remove_var" = "x$CONFIGURE_OVERRIDDEN_VARIABLES"; then 47402 # If it failed, the variable was not from the command line. Ignore it, 47403 # but warn the user (except for BASH, which is always set by the calling BASH). 47404 if test "xCCACHE" != xBASH; then 47405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&5 47406 $as_echo "$as_me: WARNING: Ignoring value of CCACHE from the environment. Use command line variables instead." >&2;} 47407 fi 47408 # Try to locate tool using the code snippet 47409 for ac_prog in ccache 47410 do 47411 # Extract the first word of "$ac_prog", so it can be a program name with args. 47412 set dummy $ac_prog; ac_word=$2 47413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47414 $as_echo_n "checking for $ac_word... " >&6; } 47415 if ${ac_cv_path_CCACHE+:} false; then : 47416 $as_echo_n "(cached) " >&6 47417 else 47418 case $CCACHE in 47419 [\\/]* | ?:[\\/]*) 47420 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 47421 ;; 47422 *) 47423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47424 for as_dir in $PATH 47425 do 47426 IFS=$as_save_IFS 47427 test -z "$as_dir" && as_dir=. 47428 for ac_exec_ext in '' $ac_executable_extensions; do 47429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47430 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 47431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47432 break 2 47433 fi 47434 done 47435 done 47436 IFS=$as_save_IFS 47437 47438 ;; 47439 esac 47440 fi 47441 CCACHE=$ac_cv_path_CCACHE 47442 if test -n "$CCACHE"; then 47443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 47444 $as_echo "$CCACHE" >&6; } 47445 else 47446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47447 $as_echo "no" >&6; } 47448 fi 47449 47450 47451 test -n "$CCACHE" && break 47452 done 47453 47454 else 47455 # If it succeeded, then it was overridden by the user. We will use it 47456 # for the tool. 47457 47458 # First remove it from the list of overridden variables, so we can test 47459 # for unknown variables in the end. 47460 CONFIGURE_OVERRIDDEN_VARIABLES="$try_remove_var" 47461 47462 # Check if the provided tool contains a complete path. 47463 tool_specified="$CCACHE" 47464 tool_basename="${tool_specified##*/}" 47465 if test "x$tool_basename" = "x$tool_specified"; then 47466 # A command without a complete path is provided, search $PATH. 47467 { $as_echo "$as_me:${as_lineno-$LINENO}: Will search for user supplied tool CCACHE=$tool_basename" >&5 47468 $as_echo "$as_me: Will search for user supplied tool CCACHE=$tool_basename" >&6;} 47469 # Extract the first word of "$tool_basename", so it can be a program name with args. 47470 set dummy $tool_basename; ac_word=$2 47471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 47472 $as_echo_n "checking for $ac_word... " >&6; } 47473 if ${ac_cv_path_CCACHE+:} false; then : 47474 $as_echo_n "(cached) " >&6 47475 else 47476 case $CCACHE in 47477 [\\/]* | ?:[\\/]*) 47478 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path. 47479 ;; 47480 *) 47481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47482 for as_dir in $PATH 47483 do 47484 IFS=$as_save_IFS 47485 test -z "$as_dir" && as_dir=. 47486 for ac_exec_ext in '' $ac_executable_extensions; do 47487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 47488 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext" 47489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 47490 break 2 47491 fi 47492 done 47493 done 47494 IFS=$as_save_IFS 47495 47496 ;; 47497 esac 47498 fi 47499 CCACHE=$ac_cv_path_CCACHE 47500 if test -n "$CCACHE"; then 47501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5 47502 $as_echo "$CCACHE" >&6; } 47503 else 47504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47505 $as_echo "no" >&6; } 47506 fi 47507 47508 47509 if test "x$CCACHE" = x; then 47510 as_fn_error $? "User supplied tool $tool_basename could not be found" "$LINENO" 5 47511 fi 47512 else 47513 # Otherwise we believe it is a complete path. Use it as it is. 47514 { $as_echo "$as_me:${as_lineno-$LINENO}: Will use user supplied tool CCACHE=$tool_specified" >&5 47515 $as_echo "$as_me: Will use user supplied tool CCACHE=$tool_specified" >&6;} 47516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CCACHE" >&5 47517 $as_echo_n "checking for CCACHE... " >&6; } 47518 if test ! -x "$tool_specified"; then 47519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5 47520 $as_echo "not found" >&6; } 47521 as_fn_error $? "User supplied tool CCACHE=$tool_specified does not exist or is not executable" "$LINENO" 5 47522 fi 47523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tool_specified" >&5 47524 $as_echo "$tool_specified" >&6; } 47525 fi 47526 fi 47527 fi 47528 47529 47530 47531 if test "x$CCACHE" = x; then 47532 as_fn_error $? "Could not find required tool for CCACHE" "$LINENO" 5 47533 fi 47534 47535 47536 CCACHE_STATUS="enabled" 47537 PATH="$OLD_PATH" 47538 elif test "x$enable_ccache" = xno; then 47539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, explicitly disabled" >&5 47540 $as_echo "no, explicitly disabled" >&6; } 47541 elif test "x$enable_ccache" = x; then 47542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 47543 $as_echo "no" >&6; } 47544 else 47545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5 47546 $as_echo "unknown" >&6; } 47547 as_fn_error $? "--enable-ccache does not accept any parameters" "$LINENO" 5 47548 fi 47549 47550 47551 47552 # Check whether --with-ccache-dir was given. 47553 if test "${with_ccache_dir+set}" = set; then : 47554 withval=$with_ccache_dir; 47555 fi 47556 47557 47558 if test "x$with_ccache_dir" != x; then 47559 # When using a non home ccache directory, assume the use is to share ccache files 47560 # with other users. Thus change the umask. 47561 SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002" 47562 if test "x$CCACHE" = x; then 47563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&5 47564 $as_echo "$as_me: WARNING: --with-ccache-dir has no meaning when ccache is not enabled" >&2;} 47565 fi 47566 fi 47567 47568 if test "x$CCACHE" != x; then 47569 47570 if test "x$CCACHE" != x; then 47571 # Only use ccache if it is 3.1.4 or later, which supports 47572 # precompiled headers. 47573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5 47574 $as_echo_n "checking if ccache supports precompiled headers... " >&6; } 47575 HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null` 47576 if test "x$HAS_GOOD_CCACHE" = x; then 47577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5 47578 $as_echo "no, disabling ccache" >&6; } 47579 CCACHE= 47580 CCACHE_STATUS="disabled" 47581 else 47582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47583 $as_echo "yes" >&6; } 47584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5 47585 $as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; } 47586 PUSHED_FLAGS="$CXXFLAGS" 47587 CXXFLAGS="-fpch-preprocess $CXXFLAGS" 47588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 47589 /* end confdefs.h. */ 47590 47591 int 47592 main () 47593 { 47594 47595 ; 47596 return 0; 47597 } 47598 _ACEOF 47599 if ac_fn_cxx_try_compile "$LINENO"; then : 47600 CC_KNOWS_CCACHE_TRICK=yes 47601 else 47602 CC_KNOWS_CCACHE_TRICK=no 47603 fi 47604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 47605 CXXFLAGS="$PUSHED_FLAGS" 47606 if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then 47607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 47608 $as_echo "yes" >&6; } 47609 else 47610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5 47611 $as_echo "no, disabling ccaching of precompiled headers" >&6; } 47612 CCACHE= 47613 CCACHE_STATUS="disabled" 47614 fi 47615 fi 47616 fi 47617 47618 if test "x$CCACHE" != x; then 47619 CCACHE_SLOPPINESS=time_macros 47620 CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE" 47621 CCACHE_FLAGS=-fpch-preprocess 47622 47623 if test "x$SET_CCACHE_DIR" != x; then 47624 mkdir -p $CCACHE_DIR > /dev/null 2>&1 47625 chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1 47626 fi 47627 fi 47628 47629 fi 47630 47631 47632 ############################################################################### 47633 # 47634 # And now the finish... 47635 # 47636 ############################################################################### 47637 47638 # Check for some common pitfalls 47639 47640 if test x"$OPENJDK_BUILD_OS" = xwindows; then 47641 file_to_test="$SRC_ROOT/LICENSE" 47642 if test `$STAT -c '%a' "$file_to_test"` -lt 400; then 47643 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 47644 fi 47645 fi 47646 47647 47648 # Did user specify any unknown variables? 47649 47650 if test "x$CONFIGURE_OVERRIDDEN_VARIABLES" != x; then 47651 # Replace the separating ! with spaces before presenting for end user. 47652 unknown_variables=${CONFIGURE_OVERRIDDEN_VARIABLES//!/ } 47653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The following variables might be unknown to configure: $unknown_variables" >&5 47654 $as_echo "$as_me: WARNING: The following variables might be unknown to configure: $unknown_variables" >&2;} 47655 fi 47656 47657 47658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5 47659 $as_echo_n "checking if build directory is on local disk... " >&6; } 47660 47661 # df -l lists only local disks; if the given directory is not found then 47662 # a non-zero exit code is given 47663 if test "x$DF" = x; then 47664 if test "x$OPENJDK_BUILD_OS_ENV" = "xwindows.msys"; then 47665 # msys does not have df; use Windows "net use" instead. 47666 IS_NETWORK_DISK=`net use | grep \`pwd -W | cut -d ":" -f 1 | tr a-z A-Z\`:` 47667 if test "x$IS_NETWORK_DISK" = x; then 47668 OUTPUT_DIR_IS_LOCAL="yes" 47669 else 47670 OUTPUT_DIR_IS_LOCAL="no" 47671 fi 47672 else 47673 # No df here, say it's local 47674 OUTPUT_DIR_IS_LOCAL="yes" 47675 fi 47676 else 47677 if $DF -l $OUTPUT_ROOT > /dev/null 2>&1; then 47678 OUTPUT_DIR_IS_LOCAL="yes" 47679 else 47680 OUTPUT_DIR_IS_LOCAL="no" 47681 fi 47682 fi 47683 47684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5 47685 $as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; } 47686 47687 47688 47689 # Check if the user has any old-style ALT_ variables set. 47690 FOUND_ALT_VARIABLES=`env | grep ^ALT_` 47691 47692 # Before generating output files, test if they exist. If they do, this is a reconfigure. 47693 # Since we can't properly handle the dependencies for this, warn the user about the situation 47694 if test -e $OUTPUT_ROOT/spec.gmk; then 47695 IS_RECONFIGURE=yes 47696 else 47697 IS_RECONFIGURE=no 47698 fi 47699 47700 47701 # At the end, call the custom hook. (Dummy macro if no custom sources available) 47702 47703 47704 # We're messing a bit with internal autoconf variables to put the config.status 47705 # in the output directory instead of the current directory. 47706 CONFIG_STATUS="$OUTPUT_ROOT/config.status" 47707 47708 # Create the actual output files. Now the main work of configure is done. 47709 cat >confcache <<\_ACEOF 47710 # This file is a shell script that caches the results of configure 47711 # tests run on this system so they can be shared between configure 47712 # scripts and configure runs, see configure's option --config-cache. 47713 # It is not useful on other systems. If it contains results you don't 47714 # want to keep, you may remove or edit it. 47715 # 47716 # config.status only pays attention to the cache file if you give it 47717 # the --recheck option to rerun configure. 47718 # 47719 # `ac_cv_env_foo' variables (set or unset) will be overridden when 47720 # loading this file, other *unset* `ac_cv_foo' will be assigned the 47721 # following values. 47722 47723 _ACEOF 47724 47725 # The following way of writing the cache mishandles newlines in values, 47726 # but we know of no workaround that is simple, portable, and efficient. 47727 # So, we kill variables containing newlines. 47728 # Ultrix sh set writes to stderr and can't be redirected directly, 47729 # and sets the high bit in the cache file unless we assign to the vars. 47730 ( 47731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 47732 eval ac_val=\$$ac_var 47733 case $ac_val in #( 47734 *${as_nl}*) 47735 case $ac_var in #( 47736 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 47737 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 47738 esac 47739 case $ac_var in #( 47740 _ | IFS | as_nl) ;; #( 47741 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 47742 *) { eval $ac_var=; unset $ac_var;} ;; 47743 esac ;; 47744 esac 47745 done 47746 47747 (set) 2>&1 | 47748 case $as_nl`(ac_space=' '; set) 2>&1` in #( 47749 *${as_nl}ac_space=\ *) 47750 # `set' does not quote correctly, so add quotes: double-quote 47751 # substitution turns \\\\ into \\, and sed turns \\ into \. 47752 sed -n \ 47753 "s/'/'\\\\''/g; 47754 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 47755 ;; #( 47756 *) 47757 # `set' quotes correctly as required by POSIX, so do not add quotes. 47758 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 47759 ;; 47760 esac | 47761 sort 47762 ) | 47763 sed ' 47764 /^ac_cv_env_/b end 47765 t clear 47766 :clear 47767 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 47768 t end 47769 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 47770 :end' >>confcache 47771 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 47772 if test -w "$cache_file"; then 47773 if test "x$cache_file" != "x/dev/null"; then 47774 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 47775 $as_echo "$as_me: updating cache $cache_file" >&6;} 47776 if test ! -f "$cache_file" || test -h "$cache_file"; then 47777 cat confcache >"$cache_file" 47778 else 47779 case $cache_file in #( 47780 */* | ?:*) 47781 mv -f confcache "$cache_file"$$ && 47782 mv -f "$cache_file"$$ "$cache_file" ;; #( 47783 *) 47784 mv -f confcache "$cache_file" ;; 47785 esac 47786 fi 47787 fi 47788 else 47789 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 47790 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 47791 fi 47792 fi 47793 rm -f confcache 47794 47795 test "x$prefix" = xNONE && prefix=$ac_default_prefix 47796 # Let make expand exec_prefix. 47797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 47798 47799 DEFS=-DHAVE_CONFIG_H 47800 47801 ac_libobjs= 47802 ac_ltlibobjs= 47803 U= 47804 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 47805 # 1. Remove the extension, and $U if already installed. 47806 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 47807 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 47808 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 47809 # will be set to the directory where LIBOBJS objects are built. 47810 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 47811 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 47812 done 47813 LIBOBJS=$ac_libobjs 47814 47815 LTLIBOBJS=$ac_ltlibobjs 47816 47817 47818 47819 : "${CONFIG_STATUS=./config.status}" 47820 ac_write_fail=0 47821 ac_clean_files_save=$ac_clean_files 47822 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 47823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 47824 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 47825 as_write_fail=0 47826 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 47827 #! $SHELL 47828 # Generated by $as_me. 47829 # Run this file to recreate the current configuration. 47830 # Compiler output produced by configure, useful for debugging 47831 # configure, is in config.log if it exists. 47832 47833 debug=false 47834 ac_cs_recheck=false 47835 ac_cs_silent=false 47836 47837 SHELL=\${CONFIG_SHELL-$SHELL} 47838 export SHELL 47839 _ASEOF 47840 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 47841 ## -------------------- ## 47842 ## M4sh Initialization. ## 47843 ## -------------------- ## 47844 47845 # Be more Bourne compatible 47846 DUALCASE=1; export DUALCASE # for MKS sh 47847 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 47848 emulate sh 47849 NULLCMD=: 47850 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 47851 # is contrary to our usage. Disable this feature. 47852 alias -g '${1+"$@"}'='"$@"' 47853 setopt NO_GLOB_SUBST 47854 else 47855 case `(set -o) 2>/dev/null` in #( 47856 *posix*) : 47857 set -o posix ;; #( 47858 *) : 47859 ;; 47860 esac 47861 fi 47862 47863 47864 as_nl=' 47865 ' 47866 export as_nl 47867 # Printing a long string crashes Solaris 7 /usr/bin/printf. 47868 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 47869 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 47870 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 47871 # Prefer a ksh shell builtin over an external printf program on Solaris, 47872 # but without wasting forks for bash or zsh. 47873 if test -z "$BASH_VERSION$ZSH_VERSION" \ 47874 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47875 as_echo='print -r --' 47876 as_echo_n='print -rn --' 47877 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 47878 as_echo='printf %s\n' 47879 as_echo_n='printf %s' 47880 else 47881 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 47882 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 47883 as_echo_n='/usr/ucb/echo -n' 47884 else 47885 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 47886 as_echo_n_body='eval 47887 arg=$1; 47888 case $arg in #( 47889 *"$as_nl"*) 47890 expr "X$arg" : "X\\(.*\\)$as_nl"; 47891 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 47892 esac; 47893 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 47894 ' 47895 export as_echo_n_body 47896 as_echo_n='sh -c $as_echo_n_body as_echo' 47897 fi 47898 export as_echo_body 47899 as_echo='sh -c $as_echo_body as_echo' 47900 fi 47901 47902 # The user is always right. 47903 if test "${PATH_SEPARATOR+set}" != set; then 47904 PATH_SEPARATOR=: 47905 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 47906 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 47907 PATH_SEPARATOR=';' 47908 } 47909 fi 47910 47911 47912 # IFS 47913 # We need space, tab and new line, in precisely that order. Quoting is 47914 # there to prevent editors from complaining about space-tab. 47915 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 47916 # splitting by setting IFS to empty value.) 47917 IFS=" "" $as_nl" 47918 47919 # Find who we are. Look in the path if we contain no directory separator. 47920 as_myself= 47921 case $0 in #(( 47922 *[\\/]* ) as_myself=$0 ;; 47923 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 47924 for as_dir in $PATH 47925 do 47926 IFS=$as_save_IFS 47927 test -z "$as_dir" && as_dir=. 47928 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 47929 done 47930 IFS=$as_save_IFS 47931 47932 ;; 47933 esac 47934 # We did not find ourselves, most probably we were run as `sh COMMAND' 47935 # in which case we are not to be found in the path. 47936 if test "x$as_myself" = x; then 47937 as_myself=$0 47938 fi 47939 if test ! -f "$as_myself"; then 47940 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 47941 exit 1 47942 fi 47943 47944 # Unset variables that we do not need and which cause bugs (e.g. in 47945 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 47946 # suppresses any "Segmentation fault" message there. '((' could 47947 # trigger a bug in pdksh 5.2.14. 47948 for as_var in BASH_ENV ENV MAIL MAILPATH 47949 do eval test x\${$as_var+set} = xset \ 47950 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 47951 done 47952 PS1='$ ' 47953 PS2='> ' 47954 PS4='+ ' 47955 47956 # NLS nuisances. 47957 LC_ALL=C 47958 export LC_ALL 47959 LANGUAGE=C 47960 export LANGUAGE 47961 47962 # CDPATH. 47963 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH 47964 47965 47966 # as_fn_error STATUS ERROR [LINENO LOG_FD] 47967 # ---------------------------------------- 47968 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 47969 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the 47970 # script with STATUS, using 1 if that was 0. 47971 as_fn_error () 47972 { 47973 as_status=$1; test $as_status -eq 0 && as_status=1 47974 if test "$4"; then 47975 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 47976 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 47977 fi 47978 $as_echo "$as_me: error: $2" >&2 47979 as_fn_exit $as_status 47980 } # as_fn_error 47981 47982 47983 # as_fn_set_status STATUS 47984 # ----------------------- 47985 # Set $? to STATUS, without forking. 47986 as_fn_set_status () 47987 { 47988 return $1 47989 } # as_fn_set_status 47990 47991 # as_fn_exit STATUS 47992 # ----------------- 47993 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 47994 as_fn_exit () 47995 { 47996 set +e 47997 as_fn_set_status $1 47998 exit $1 47999 } # as_fn_exit 48000 48001 # as_fn_unset VAR 48002 # --------------- 48003 # Portably unset VAR. 48004 as_fn_unset () 48005 { 48006 { eval $1=; unset $1;} 48007 } 48008 as_unset=as_fn_unset 48009 # as_fn_append VAR VALUE 48010 # ---------------------- 48011 # Append the text in VALUE to the end of the definition contained in VAR. Take 48012 # advantage of any shell optimizations that allow amortized linear growth over 48013 # repeated appends, instead of the typical quadratic growth present in naive 48014 # implementations. 48015 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 48016 eval 'as_fn_append () 48017 { 48018 eval $1+=\$2 48019 }' 48020 else 48021 as_fn_append () 48022 { 48023 eval $1=\$$1\$2 48024 } 48025 fi # as_fn_append 48026 48027 # as_fn_arith ARG... 48028 # ------------------ 48029 # Perform arithmetic evaluation on the ARGs, and store the result in the 48030 # global $as_val. Take advantage of shells that can avoid forks. The arguments 48031 # must be portable across $(()) and expr. 48032 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 48033 eval 'as_fn_arith () 48034 { 48035 as_val=$(( $* )) 48036 }' 48037 else 48038 as_fn_arith () 48039 { 48040 as_val=`expr "$@" || test $? -eq 1` 48041 } 48042 fi # as_fn_arith 48043 48044 48045 if expr a : '\(a\)' >/dev/null 2>&1 && 48046 test "X`expr 00001 : '.*\(...\)'`" = X001; then 48047 as_expr=expr 48048 else 48049 as_expr=false 48050 fi 48051 48052 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 48053 as_basename=basename 48054 else 48055 as_basename=false 48056 fi 48057 48058 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 48059 as_dirname=dirname 48060 else 48061 as_dirname=false 48062 fi 48063 48064 as_me=`$as_basename -- "$0" || 48065 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 48066 X"$0" : 'X\(//\)$' \| \ 48067 X"$0" : 'X\(/\)' \| . 2>/dev/null || 48068 $as_echo X/"$0" | 48069 sed '/^.*\/\([^/][^/]*\)\/*$/{ 48070 s//\1/ 48071 q 48072 } 48073 /^X\/\(\/\/\)$/{ 48074 s//\1/ 48075 q 48076 } 48077 /^X\/\(\/\).*/{ 48078 s//\1/ 48079 q 48080 } 48081 s/.*/./; q'` 48082 48083 # Avoid depending upon Character Ranges. 48084 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 48085 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 48086 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 48087 as_cr_digits='0123456789' 48088 as_cr_alnum=$as_cr_Letters$as_cr_digits 48089 48090 ECHO_C= ECHO_N= ECHO_T= 48091 case `echo -n x` in #((((( 48092 -n*) 48093 case `echo 'xy\c'` in 48094 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 48095 xy) ECHO_C='\c';; 48096 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 48097 ECHO_T=' ';; 48098 esac;; 48099 *) 48100 ECHO_N='-n';; 48101 esac 48102 48103 rm -f conf$$ conf$$.exe conf$$.file 48104 if test -d conf$$.dir; then 48105 rm -f conf$$.dir/conf$$.file 48106 else 48107 rm -f conf$$.dir 48108 mkdir conf$$.dir 2>/dev/null 48109 fi 48110 if (echo >conf$$.file) 2>/dev/null; then 48111 if ln -s conf$$.file conf$$ 2>/dev/null; then 48112 as_ln_s='ln -s' 48113 # ... but there are two gotchas: 48114 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 48115 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 48116 # In both cases, we have to default to `cp -pR'. 48117 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 48118 as_ln_s='cp -pR' 48119 elif ln conf$$.file conf$$ 2>/dev/null; then 48120 as_ln_s=ln 48121 else 48122 as_ln_s='cp -pR' 48123 fi 48124 else 48125 as_ln_s='cp -pR' 48126 fi 48127 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 48128 rmdir conf$$.dir 2>/dev/null 48129 48130 48131 # as_fn_mkdir_p 48132 # ------------- 48133 # Create "$as_dir" as a directory, including parents if necessary. 48134 as_fn_mkdir_p () 48135 { 48136 48137 case $as_dir in #( 48138 -*) as_dir=./$as_dir;; 48139 esac 48140 test -d "$as_dir" || eval $as_mkdir_p || { 48141 as_dirs= 48142 while :; do 48143 case $as_dir in #( 48144 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 48145 *) as_qdir=$as_dir;; 48146 esac 48147 as_dirs="'$as_qdir' $as_dirs" 48148 as_dir=`$as_dirname -- "$as_dir" || 48149 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 48150 X"$as_dir" : 'X\(//\)[^/]' \| \ 48151 X"$as_dir" : 'X\(//\)$' \| \ 48152 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 48153 $as_echo X"$as_dir" | 48154 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 48155 s//\1/ 48156 q 48157 } 48158 /^X\(\/\/\)[^/].*/{ 48159 s//\1/ 48160 q 48161 } 48162 /^X\(\/\/\)$/{ 48163 s//\1/ 48164 q 48165 } 48166 /^X\(\/\).*/{ 48167 s//\1/ 48168 q 48169 } 48170 s/.*/./; q'` 48171 test -d "$as_dir" && break 48172 done 48173 test -z "$as_dirs" || eval "mkdir $as_dirs" 48174 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 48175 48176 48177 } # as_fn_mkdir_p 48178 if mkdir -p . 2>/dev/null; then 48179 as_mkdir_p='mkdir -p "$as_dir"' 48180 else 48181 test -d ./-p && rmdir ./-p 48182 as_mkdir_p=false 48183 fi 48184 48185 48186 # as_fn_executable_p FILE 48187 # ----------------------- 48188 # Test if FILE is an executable regular file. 48189 as_fn_executable_p () 48190 { 48191 test -f "$1" && test -x "$1" 48192 } # as_fn_executable_p 48193 as_test_x='test -x' 48194 as_executable_p=as_fn_executable_p 48195 48196 # Sed expression to map a string onto a valid CPP name. 48197 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 48198 48199 # Sed expression to map a string onto a valid variable name. 48200 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 48201 48202 48203 exec 6>&1 48204 ## ----------------------------------- ## 48205 ## Main body of $CONFIG_STATUS script. ## 48206 ## ----------------------------------- ## 48207 _ASEOF 48208 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 48209 48210 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48211 # Save the log message, to keep $0 and so on meaningful, and to 48212 # report actual input values of CONFIG_FILES etc. instead of their 48213 # values after options handling. 48214 ac_log=" 48215 This file was extended by OpenJDK $as_me jdk8, which was 48216 generated by GNU Autoconf 2.69. Invocation command line was 48217 48218 CONFIG_FILES = $CONFIG_FILES 48219 CONFIG_HEADERS = $CONFIG_HEADERS 48220 CONFIG_LINKS = $CONFIG_LINKS 48221 CONFIG_COMMANDS = $CONFIG_COMMANDS 48222 $ $0 $@ 48223 48224 on `(hostname || uname -n) 2>/dev/null | sed 1q` 48225 " 48226 48227 _ACEOF 48228 48229 case $ac_config_files in *" 48230 "*) set x $ac_config_files; shift; ac_config_files=$*;; 48231 esac 48232 48233 case $ac_config_headers in *" 48234 "*) set x $ac_config_headers; shift; ac_config_headers=$*;; 48235 esac 48236 48237 48238 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48239 # Files that config.status was made for. 48240 config_files="$ac_config_files" 48241 config_headers="$ac_config_headers" 48242 48243 _ACEOF 48244 48245 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48246 ac_cs_usage="\ 48247 \`$as_me' instantiates files and other configuration actions 48248 from templates according to the current configuration. Unless the files 48249 and actions are specified as TAGs, all are instantiated by default. 48250 48251 Usage: $0 [OPTION]... [TAG]... 48252 48253 -h, --help print this help, then exit 48254 -V, --version print version number and configuration settings, then exit 48255 --config print configuration, then exit 48256 -q, --quiet, --silent 48257 do not print progress messages 48258 -d, --debug don't remove temporary files 48259 --recheck update $as_me by reconfiguring in the same conditions 48260 --file=FILE[:TEMPLATE] 48261 instantiate the configuration file FILE 48262 --header=FILE[:TEMPLATE] 48263 instantiate the configuration header FILE 48264 48265 Configuration files: 48266 $config_files 48267 48268 Configuration headers: 48269 $config_headers 48270 48271 Report bugs to <build-dev@openjdk.java.net>. 48272 OpenJDK home page: <http://openjdk.java.net>." 48273 48274 _ACEOF 48275 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48276 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 48277 ac_cs_version="\\ 48278 OpenJDK config.status jdk8 48279 configured by $0, generated by GNU Autoconf 2.69, 48280 with options \\"\$ac_cs_config\\" 48281 48282 Copyright (C) 2012 Free Software Foundation, Inc. 48283 This config.status script is free software; the Free Software Foundation 48284 gives unlimited permission to copy, distribute and modify it." 48285 48286 ac_pwd='$ac_pwd' 48287 srcdir='$srcdir' 48288 AWK='$AWK' 48289 test -n "\$AWK" || AWK=awk 48290 _ACEOF 48291 48292 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48293 # The default lists apply if the user does not specify any file. 48294 ac_need_defaults=: 48295 while test $# != 0 48296 do 48297 case $1 in 48298 --*=?*) 48299 ac_option=`expr "X$1" : 'X\([^=]*\)='` 48300 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 48301 ac_shift=: 48302 ;; 48303 --*=) 48304 ac_option=`expr "X$1" : 'X\([^=]*\)='` 48305 ac_optarg= 48306 ac_shift=: 48307 ;; 48308 *) 48309 ac_option=$1 48310 ac_optarg=$2 48311 ac_shift=shift 48312 ;; 48313 esac 48314 48315 case $ac_option in 48316 # Handling of the options. 48317 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 48318 ac_cs_recheck=: ;; 48319 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 48320 $as_echo "$ac_cs_version"; exit ;; 48321 --config | --confi | --conf | --con | --co | --c ) 48322 $as_echo "$ac_cs_config"; exit ;; 48323 --debug | --debu | --deb | --de | --d | -d ) 48324 debug=: ;; 48325 --file | --fil | --fi | --f ) 48326 $ac_shift 48327 case $ac_optarg in 48328 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 48329 '') as_fn_error $? "missing file argument" ;; 48330 esac 48331 as_fn_append CONFIG_FILES " '$ac_optarg'" 48332 ac_need_defaults=false;; 48333 --header | --heade | --head | --hea ) 48334 $ac_shift 48335 case $ac_optarg in 48336 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 48337 esac 48338 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 48339 ac_need_defaults=false;; 48340 --he | --h) 48341 # Conflict between --help and --header 48342 as_fn_error $? "ambiguous option: \`$1' 48343 Try \`$0 --help' for more information.";; 48344 --help | --hel | -h ) 48345 $as_echo "$ac_cs_usage"; exit ;; 48346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 48347 | -silent | --silent | --silen | --sile | --sil | --si | --s) 48348 ac_cs_silent=: ;; 48349 48350 # This is an error. 48351 -*) as_fn_error $? "unrecognized option: \`$1' 48352 Try \`$0 --help' for more information." ;; 48353 48354 *) as_fn_append ac_config_targets " $1" 48355 ac_need_defaults=false ;; 48356 48357 esac 48358 shift 48359 done 48360 48361 ac_configure_extra_args= 48362 48363 if $ac_cs_silent; then 48364 exec 6>/dev/null 48365 ac_configure_extra_args="$ac_configure_extra_args --silent" 48366 fi 48367 48368 _ACEOF 48369 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48370 if \$ac_cs_recheck; then 48371 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 48372 shift 48373 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 48374 CONFIG_SHELL='$SHELL' 48375 export CONFIG_SHELL 48376 exec "\$@" 48377 fi 48378 48379 _ACEOF 48380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48381 exec 5>>config.log 48382 { 48383 echo 48384 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 48385 ## Running $as_me. ## 48386 _ASBOX 48387 $as_echo "$ac_log" 48388 } >&5 48389 48390 _ACEOF 48391 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48392 _ACEOF 48393 48394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48395 48396 # Handling of arguments. 48397 for ac_config_target in $ac_config_targets 48398 do 48399 case $ac_config_target in 48400 "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;; 48401 "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;; 48402 "$OUTPUT_ROOT/hotspot-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/hotspot-spec.gmk:$AUTOCONF_DIR/hotspot-spec.gmk.in" ;; 48403 "$OUTPUT_ROOT/bootcycle-spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/bootcycle-spec.gmk:$AUTOCONF_DIR/bootcycle-spec.gmk.in" ;; 48404 "$OUTPUT_ROOT/compare.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/compare.sh:$AUTOCONF_DIR/compare.sh.in" ;; 48405 "$OUTPUT_ROOT/spec.sh") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.sh:$AUTOCONF_DIR/spec.sh.in" ;; 48406 "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;; 48407 48408 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 48409 esac 48410 done 48411 48412 48413 # If the user did not use the arguments to specify the items to instantiate, 48414 # then the envvar interface is used. Set only those that are not. 48415 # We use the long form for the default assignment because of an extremely 48416 # bizarre bug on SunOS 4.1.3. 48417 if $ac_need_defaults; then 48418 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 48419 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 48420 fi 48421 48422 # Have a temporary directory for convenience. Make it in the build tree 48423 # simply because there is no reason against having it here, and in addition, 48424 # creating and moving files from /tmp can sometimes cause problems. 48425 # Hook for its removal unless debugging. 48426 # Note that there is a small window in which the directory will not be cleaned: 48427 # after its creation but before its name has been assigned to `$tmp'. 48428 $debug || 48429 { 48430 tmp= ac_tmp= 48431 trap 'exit_status=$? 48432 : "${ac_tmp:=$tmp}" 48433 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 48434 ' 0 48435 trap 'as_fn_exit 1' 1 2 13 15 48436 } 48437 # Create a (secure) tmp directory for tmp files. 48438 48439 { 48440 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 48441 test -d "$tmp" 48442 } || 48443 { 48444 tmp=./conf$$-$RANDOM 48445 (umask 077 && mkdir "$tmp") 48446 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 48447 ac_tmp=$tmp 48448 48449 # Set up the scripts for CONFIG_FILES section. 48450 # No need to generate them if there are no CONFIG_FILES. 48451 # This happens for instance with `./config.status config.h'. 48452 if test -n "$CONFIG_FILES"; then 48453 48454 48455 ac_cr=`echo X | tr X '\015'` 48456 # On cygwin, bash can eat \r inside `` if the user requested igncr. 48457 # But we know of no other shell where ac_cr would be empty at this 48458 # point, so we can use a bashism as a fallback. 48459 if test "x$ac_cr" = x; then 48460 eval ac_cr=\$\'\\r\' 48461 fi 48462 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 48463 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 48464 ac_cs_awk_cr='\\r' 48465 else 48466 ac_cs_awk_cr=$ac_cr 48467 fi 48468 48469 echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 48470 _ACEOF 48471 48472 48473 { 48474 echo "cat >conf$$subs.awk <<_ACEOF" && 48475 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 48476 echo "_ACEOF" 48477 } >conf$$subs.sh || 48478 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 48479 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 48480 ac_delim='%!_!# ' 48481 for ac_last_try in false false false false false :; do 48482 . ./conf$$subs.sh || 48483 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 48484 48485 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 48486 if test $ac_delim_n = $ac_delim_num; then 48487 break 48488 elif $ac_last_try; then 48489 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 48490 else 48491 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 48492 fi 48493 done 48494 rm -f conf$$subs.sh 48495 48496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48497 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 48498 _ACEOF 48499 sed -n ' 48500 h 48501 s/^/S["/; s/!.*/"]=/ 48502 p 48503 g 48504 s/^[^!]*!// 48505 :repl 48506 t repl 48507 s/'"$ac_delim"'$// 48508 t delim 48509 :nl 48510 h 48511 s/\(.\{148\}\)..*/\1/ 48512 t more1 48513 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 48514 p 48515 n 48516 b repl 48517 :more1 48518 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 48519 p 48520 g 48521 s/.\{148\}// 48522 t nl 48523 :delim 48524 h 48525 s/\(.\{148\}\)..*/\1/ 48526 t more2 48527 s/["\\]/\\&/g; s/^/"/; s/$/"/ 48528 p 48529 b 48530 :more2 48531 s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 48532 p 48533 g 48534 s/.\{148\}// 48535 t delim 48536 ' <conf$$subs.awk | sed ' 48537 /^[^""]/{ 48538 N 48539 s/\n// 48540 } 48541 ' >>$CONFIG_STATUS || ac_write_fail=1 48542 rm -f conf$$subs.awk 48543 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48544 _ACAWK 48545 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 48546 for (key in S) S_is_set[key] = 1 48547 FS = "" 48548 48549 } 48550 { 48551 line = $ 0 48552 nfields = split(line, field, "@") 48553 substed = 0 48554 len = length(field[1]) 48555 for (i = 2; i < nfields; i++) { 48556 key = field[i] 48557 keylen = length(key) 48558 if (S_is_set[key]) { 48559 value = S[key] 48560 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 48561 len += length(value) + length(field[++i]) 48562 substed = 1 48563 } else 48564 len += 1 + keylen 48565 } 48566 48567 print line 48568 } 48569 48570 _ACAWK 48571 _ACEOF 48572 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48573 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 48574 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 48575 else 48576 cat 48577 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 48578 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 48579 _ACEOF 48580 48581 # VPATH may cause trouble with some makes, so we remove sole $(srcdir), 48582 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 48583 # trailing colons and then remove the whole line if VPATH becomes empty 48584 # (actually we leave an empty line to preserve line numbers). 48585 if test "x$srcdir" = x.; then 48586 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 48587 h 48588 s/// 48589 s/^/:/ 48590 s/[ ]*$/:/ 48591 s/:\$(srcdir):/:/g 48592 s/:\${srcdir}:/:/g 48593 s/:@srcdir@:/:/g 48594 s/^:*// 48595 s/:*$// 48596 x 48597 s/\(=[ ]*\).*/\1/ 48598 G 48599 s/\n// 48600 s/^[^=]*=[ ]*$// 48601 }' 48602 fi 48603 48604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48605 fi # test -n "$CONFIG_FILES" 48606 48607 # Set up the scripts for CONFIG_HEADERS section. 48608 # No need to generate them if there are no CONFIG_HEADERS. 48609 # This happens for instance with `./config.status Makefile'. 48610 if test -n "$CONFIG_HEADERS"; then 48611 cat >"$ac_tmp/defines.awk" <<\_ACAWK || 48612 BEGIN { 48613 _ACEOF 48614 48615 # Transform confdefs.h into an awk script `defines.awk', embedded as 48616 # here-document in config.status, that substitutes the proper values into 48617 # config.h.in to produce config.h. 48618 48619 # Create a delimiter string that does not exist in confdefs.h, to ease 48620 # handling of long lines. 48621 ac_delim='%!_!# ' 48622 for ac_last_try in false false :; do 48623 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 48624 if test -z "$ac_tt"; then 48625 break 48626 elif $ac_last_try; then 48627 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 48628 else 48629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 48630 fi 48631 done 48632 48633 # For the awk script, D is an array of macro values keyed by name, 48634 # likewise P contains macro parameters if any. Preserve backslash 48635 # newline sequences. 48636 48637 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 48638 sed -n ' 48639 s/.\{148\}/&'"$ac_delim"'/g 48640 t rset 48641 :rset 48642 s/^[ ]*#[ ]*define[ ][ ]*/ / 48643 t def 48644 d 48645 :def 48646 s/\\$// 48647 t bsnl 48648 s/["\\]/\\&/g 48649 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 48650 D["\1"]=" \3"/p 48651 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 48652 d 48653 :bsnl 48654 s/["\\]/\\&/g 48655 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 48656 D["\1"]=" \3\\\\\\n"\\/p 48657 t cont 48658 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 48659 t cont 48660 d 48661 :cont 48662 n 48663 s/.\{148\}/&'"$ac_delim"'/g 48664 t clear 48665 :clear 48666 s/\\$// 48667 t bsnlc 48668 s/["\\]/\\&/g; s/^/"/; s/$/"/p 48669 d 48670 :bsnlc 48671 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 48672 b cont 48673 ' <confdefs.h | sed ' 48674 s/'"$ac_delim"'/"\\\ 48675 "/g' >>$CONFIG_STATUS || ac_write_fail=1 48676 48677 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48678 for (key in D) D_is_set[key] = 1 48679 FS = "" 48680 } 48681 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 48682 line = \$ 0 48683 split(line, arg, " ") 48684 if (arg[1] == "#") { 48685 defundef = arg[2] 48686 mac1 = arg[3] 48687 } else { 48688 defundef = substr(arg[1], 2) 48689 mac1 = arg[2] 48690 } 48691 split(mac1, mac2, "(") #) 48692 macro = mac2[1] 48693 prefix = substr(line, 1, index(line, defundef) - 1) 48694 if (D_is_set[macro]) { 48695 # Preserve the white space surrounding the "#". 48696 print prefix "define", macro P[macro] D[macro] 48697 next 48698 } else { 48699 # Replace #undef with comments. This is necessary, for example, 48700 # in the case of _POSIX_SOURCE, which is predefined and required 48701 # on some systems where configure will not decide to define it. 48702 if (defundef == "undef") { 48703 print "/*", prefix defundef, macro, "*/" 48704 next 48705 } 48706 } 48707 } 48708 { print } 48709 _ACAWK 48710 _ACEOF 48711 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48712 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 48713 fi # test -n "$CONFIG_HEADERS" 48714 48715 48716 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS " 48717 shift 48718 for ac_tag 48719 do 48720 case $ac_tag in 48721 :[FHLC]) ac_mode=$ac_tag; continue;; 48722 esac 48723 case $ac_mode$ac_tag in 48724 :[FHL]*:*);; 48725 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 48726 :[FH]-) ac_tag=-:-;; 48727 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 48728 esac 48729 ac_save_IFS=$IFS 48730 IFS=: 48731 set x $ac_tag 48732 IFS=$ac_save_IFS 48733 shift 48734 ac_file=$1 48735 shift 48736 48737 case $ac_mode in 48738 :L) ac_source=$1;; 48739 :[FH]) 48740 ac_file_inputs= 48741 for ac_f 48742 do 48743 case $ac_f in 48744 -) ac_f="$ac_tmp/stdin";; 48745 *) # Look for the file first in the build tree, then in the source tree 48746 # (if the path is not absolute). The absolute path cannot be DOS-style, 48747 # because $ac_f cannot contain `:'. 48748 test -f "$ac_f" || 48749 case $ac_f in 48750 [\\/$]*) false;; 48751 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 48752 esac || 48753 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 48754 esac 48755 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 48756 as_fn_append ac_file_inputs " '$ac_f'" 48757 done 48758 48759 # Let's still pretend it is `configure' which instantiates (i.e., don't 48760 # use $as_me), people would be surprised to read: 48761 # /* config.h. Generated by config.status. */ 48762 configure_input='Generated from '` 48763 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 48764 `' by configure.' 48765 if test x"$ac_file" != x-; then 48766 configure_input="$ac_file. $configure_input" 48767 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 48768 $as_echo "$as_me: creating $ac_file" >&6;} 48769 fi 48770 # Neutralize special characters interpreted by sed in replacement strings. 48771 case $configure_input in #( 48772 *\&* | *\|* | *\\* ) 48773 ac_sed_conf_input=`$as_echo "$configure_input" | 48774 sed 's/[\\\\&|]/\\\\&/g'`;; #( 48775 *) ac_sed_conf_input=$configure_input;; 48776 esac 48777 48778 case $ac_tag in 48779 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 48780 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 48781 esac 48782 ;; 48783 esac 48784 48785 ac_dir=`$as_dirname -- "$ac_file" || 48786 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 48787 X"$ac_file" : 'X\(//\)[^/]' \| \ 48788 X"$ac_file" : 'X\(//\)$' \| \ 48789 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 48790 $as_echo X"$ac_file" | 48791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 48792 s//\1/ 48793 q 48794 } 48795 /^X\(\/\/\)[^/].*/{ 48796 s//\1/ 48797 q 48798 } 48799 /^X\(\/\/\)$/{ 48800 s//\1/ 48801 q 48802 } 48803 /^X\(\/\).*/{ 48804 s//\1/ 48805 q 48806 } 48807 s/.*/./; q'` 48808 as_dir="$ac_dir"; as_fn_mkdir_p 48809 ac_builddir=. 48810 48811 case "$ac_dir" in 48812 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 48813 *) 48814 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 48815 # A ".." for each directory in $ac_dir_suffix. 48816 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 48817 case $ac_top_builddir_sub in 48818 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 48819 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 48820 esac ;; 48821 esac 48822 ac_abs_top_builddir=$ac_pwd 48823 ac_abs_builddir=$ac_pwd$ac_dir_suffix 48824 # for backward compatibility: 48825 ac_top_builddir=$ac_top_build_prefix 48826 48827 case $srcdir in 48828 .) # We are building in place. 48829 ac_srcdir=. 48830 ac_top_srcdir=$ac_top_builddir_sub 48831 ac_abs_top_srcdir=$ac_pwd ;; 48832 [\\/]* | ?:[\\/]* ) # Absolute name. 48833 ac_srcdir=$srcdir$ac_dir_suffix; 48834 ac_top_srcdir=$srcdir 48835 ac_abs_top_srcdir=$srcdir ;; 48836 *) # Relative name. 48837 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 48838 ac_top_srcdir=$ac_top_build_prefix$srcdir 48839 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 48840 esac 48841 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 48842 48843 48844 case $ac_mode in 48845 :F) 48846 # 48847 # CONFIG_FILE 48848 # 48849 48850 _ACEOF 48851 48852 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48853 # If the template does not know about datarootdir, expand it. 48854 # FIXME: This hack should be removed a few years after 2.60. 48855 ac_datarootdir_hack=; ac_datarootdir_seen= 48856 ac_sed_dataroot=' 48857 /datarootdir/ { 48858 p 48859 q 48860 } 48861 /@datadir@/p 48862 /@docdir@/p 48863 /@infodir@/p 48864 /@localedir@/p 48865 /@mandir@/p' 48866 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 48867 *datarootdir*) ac_datarootdir_seen=yes;; 48868 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 48869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 48870 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 48871 _ACEOF 48872 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48873 ac_datarootdir_hack=' 48874 s&@datadir@&$datadir&g 48875 s&@docdir@&$docdir&g 48876 s&@infodir@&$infodir&g 48877 s&@localedir@&$localedir&g 48878 s&@mandir@&$mandir&g 48879 s&\\\${datarootdir}&$datarootdir&g' ;; 48880 esac 48881 _ACEOF 48882 48883 # Neutralize VPATH when `$srcdir' = `.'. 48884 # Shell code in configure.ac might set extrasub. 48885 # FIXME: do we really want to maintain this feature? 48886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 48887 ac_sed_extra="$ac_vpsub 48888 $extrasub 48889 _ACEOF 48890 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 48891 :t 48892 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b 48893 s|@configure_input@|$ac_sed_conf_input|;t t 48894 s&@top_builddir@&$ac_top_builddir_sub&;t t 48895 s&@top_build_prefix@&$ac_top_build_prefix&;t t 48896 s&@srcdir@&$ac_srcdir&;t t 48897 s&@abs_srcdir@&$ac_abs_srcdir&;t t 48898 s&@top_srcdir@&$ac_top_srcdir&;t t 48899 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 48900 s&@builddir@&$ac_builddir&;t t 48901 s&@abs_builddir@&$ac_abs_builddir&;t t 48902 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 48903 $ac_datarootdir_hack 48904 " 48905 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 48906 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48907 48908 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 48909 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 48910 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 48911 "$ac_tmp/out"`; test -z "$ac_out"; } && 48912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 48913 which seems to be undefined. Please make sure it is defined" >&5 48914 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 48915 which seems to be undefined. Please make sure it is defined" >&2;} 48916 48917 rm -f "$ac_tmp/stdin" 48918 case $ac_file in 48919 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 48920 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 48921 esac \ 48922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48923 ;; 48924 :H) 48925 # 48926 # CONFIG_HEADER 48927 # 48928 if test x"$ac_file" != x-; then 48929 { 48930 $as_echo "/* $configure_input */" \ 48931 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 48932 } >"$ac_tmp/config.h" \ 48933 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48934 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 48935 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 48936 $as_echo "$as_me: $ac_file is unchanged" >&6;} 48937 else 48938 rm -f "$ac_file" 48939 mv "$ac_tmp/config.h" "$ac_file" \ 48940 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 48941 fi 48942 else 48943 $as_echo "/* $configure_input */" \ 48944 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 48945 || as_fn_error $? "could not create -" "$LINENO" 5 48946 fi 48947 ;; 48948 48949 48950 esac 48951 48952 done # for ac_tag 48953 48954 48955 as_fn_exit 0 48956 _ACEOF 48957 ac_clean_files=$ac_clean_files_save 48958 48959 test $ac_write_fail = 0 || 48960 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 48961 48962 48963 # configure is writing to config.log, and then calls config.status. 48964 # config.status does its own redirection, appending to config.log. 48965 # Unfortunately, on DOS this fails, as config.log is still kept open 48966 # by configure, so config.status won't be able to write to it; its 48967 # output is simply discarded. So we exec the FD to /dev/null, 48968 # effectively closing config.log, so it can be properly (re)opened and 48969 # appended to by config.status. When coming back to configure, we 48970 # need to make the FD available again. 48971 if test "$no_create" != yes; then 48972 ac_cs_success=: 48973 ac_config_status_args= 48974 test "$silent" = yes && 48975 ac_config_status_args="$ac_config_status_args --quiet" 48976 exec 5>/dev/null 48977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 48978 exec 5>>config.log 48979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 48980 # would make configure fail if this is the last instruction. 48981 $ac_cs_success || as_fn_exit 1 48982 fi 48983 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 48984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 48985 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 48986 fi 48987 48988 48989 48990 # Try to move the config.log file to the output directory. 48991 if test -e ./config.log; then 48992 $MV -f ./config.log "$OUTPUT_ROOT/config.log" 2> /dev/null 48993 fi 48994 48995 # Make the compare script executable 48996 $CHMOD +x $OUTPUT_ROOT/compare.sh 48997 48998 # Finally output some useful information to the user 48999 49000 # Finally output some useful information to the user 49001 49002 printf "\n" 49003 printf "====================================================\n" 49004 printf "A new configuration has been successfully created in\n" 49005 printf "$OUTPUT_ROOT\n" 49006 if test "x$CONFIGURE_COMMAND_LINE" != x; then 49007 printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n" 49008 else 49009 printf "using default settings.\n" 49010 fi 49011 49012 printf "\n" 49013 printf "Configuration summary:\n" 49014 printf "* Debug level: $DEBUG_LEVEL\n" 49015 printf "* JDK variant: $JDK_VARIANT\n" 49016 printf "* JVM variants: $with_jvm_variants\n" 49017 printf "* OpenJDK target: OS: $OPENJDK_TARGET_OS, CPU architecture: $OPENJDK_TARGET_CPU_ARCH, address length: $OPENJDK_TARGET_CPU_BITS\n" 49018 49019 printf "\n" 49020 printf "Tools summary:\n" 49021 if test "x$OPENJDK_BUILD_OS" = "xwindows"; then 49022 printf "* Environment: $WINDOWS_ENV_VENDOR version $WINDOWS_ENV_VERSION (root at $WINDOWS_ENV_ROOT_PATH)\n" 49023 fi 49024 printf "* Boot JDK: $BOOT_JDK_VERSION (at $BOOT_JDK)\n" 49025 printf "* Toolchain: $TOOLCHAIN_TYPE ($TOOLCHAIN_DESCRIPTION)\n" 49026 printf "* C Compiler: Version $CC_VERSION_NUMBER (at $CC)\n" 49027 printf "* C++ Compiler: Version $CXX_VERSION_NUMBER (at $CXX)\n" 49028 49029 printf "\n" 49030 printf "Build performance summary:\n" 49031 printf "* Cores to use: $JOBS\n" 49032 printf "* Memory limit: $MEMORY_SIZE MB\n" 49033 if test "x$CCACHE_STATUS" != "x"; then 49034 printf "* ccache status: $CCACHE_STATUS\n" 49035 fi 49036 printf "\n" 49037 49038 if test "x$BUILDING_MULTIPLE_JVM_VARIANTS" = "xyes"; then 49039 printf "NOTE: You have requested to build more than one version of the JVM, which\n" 49040 printf "will result in longer build times.\n" 49041 printf "\n" 49042 fi 49043 49044 if test "x$FOUND_ALT_VARIABLES" != "x"; then 49045 printf "WARNING: You have old-style ALT_ environment variables set.\n" 49046 printf "These are not respected, and will be ignored. It is recommended\n" 49047 printf "that you clean your environment. The following variables are set:\n" 49048 printf "$FOUND_ALT_VARIABLES\n" 49049 printf "\n" 49050 fi 49051 49052 if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then 49053 printf "WARNING: Your build output directory is not on a local disk.\n" 49054 printf "This will severely degrade build performance!\n" 49055 printf "It is recommended that you create an output directory on a local disk,\n" 49056 printf "and run the configure script again from that directory.\n" 49057 printf "\n" 49058 fi 49059 49060 if test "x$IS_RECONFIGURE" = "xyes"; then 49061 printf "WARNING: The result of this configuration has overridden an older\n" 49062 printf "configuration. You *should* run 'make clean' to make sure you get a\n" 49063 printf "proper build. Failure to do so might result in strange build problems.\n" 49064 printf "\n" 49065 fi 49066